/* 報紙彈窗樣式 */
.newspaper-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: flex-start;
    /* Changed from center to avoid cutoff */
    z-index: 10000;
    backdrop-filter: blur(5px);
    overflow: auto;
    /* Allow both scrolling axes */
    padding: 20px;
}

.newspaper-modal {
    position: relative;
    width: 100%;
    max-width: 1050px;
    min-width: 1050px;
    /* Force desktop width so content isn't mashed */
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: auto;
}

.newspaper-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.np-download-btn {
    background: #e67e22;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.np-download-btn:hover {
    background: #d35400;
}

.np-close {
    color: white;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

/* 報紙本體樣式 - 復古風格 */
.newspaper-paper {
    background: #f4f1ea;
    color: #1a1a1a;
    padding: 40px;
    font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-height: 1000px;
    border: 1px solid #dcdad1;
    position: relative;
}

/* 報紙質感 */
.newspaper-paper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://wsrv.nl/?url=https%3A%2F%2Fwww.transparenttextures.com%2Fpatterns%2Fpaper-fibers.png');
    opacity: 0.2;
    pointer-events: none;
}

.newspaper-title {
    text-align: center;
    font-size: 80px;
    font-weight: 900;
    margin: 0;
    border-bottom: 4px solid #1a1a1a;
    padding-bottom: 10px;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.newspaper-header-info {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #1a1a1a;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.newspaper-headline {
    text-align: center;
    margin: 30px 0;
}

.newspaper-headline h1 {
    font-size: 42px;
    line-height: 1.2;
    margin: 0;
    font-weight: 800;
}

/* 版面配置 */
.newspaper-main-grid {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 20px;
    margin-top: 20px;
}

.np-section {
    border-top: 2px solid #1a1a1a;
    margin-bottom: 20px;
}

.np-section-title {
    background: #1a1a1a;
    color: white;
    padding: 5px 10px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

/* 頭像與基本資訊 */
.np-profile-box {
    border: 3px solid #1a1a1a;
    background: #000;
    margin-bottom: 10px;
}

.np-profile-img {
    width: 100%;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
}

.np-profile-caption {
    padding: 8px;
    font-size: 12px;
    line-height: 1.4;
    border-top: 1px solid #333;
    background: #f4f1ea;
}

/* 數據列表 */
.np-data-list {
    font-size: 13px;
    line-height: 1.8;
}

.np-data-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dotted #ccc;
}

.np-data-item .label {
    font-weight: bold;
}

.np-data-item .value {
    color: #c0392b;
    font-weight: bold;
}

/* 裝備清單 (兩欄) */
.np-equip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: x 15px;
    font-size: 11px;
}

.np-equip-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid #ddd;
    padding: 2px 0;
}

/* 守護力進度條 */
#np-board-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.np-progress-box {
    margin-bottom: 8px;
    border: 1px solid #ccc;
    padding: 5px;
    background: rgba(255, 255, 255, 0.3);
}

.np-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 2px;
}

.np-progress-bar-bg {
    height: 8px;
    background: #ddd;
    border: 1px solid #1a1a1a;
}

.np-progress-bar-fill {
    height: 100%;
    background: #1a1a1a;
}


/* 巨型分數 */
.np-giant-score {
    border-top: 4px solid #1a1a1a;
    padding-top: 20px;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.np-score-text {
    font-size: 140px;
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -5px;
}

.np-score-label {
    font-size: 24px;
    font-weight: bold;
    border-bottom: 4px solid #1a1a1a;
}

/* 印章樣式 */
.np-stamp-secret {
    position: absolute;
    bottom: 120px;
    right: 50px;
    width: 190px;
    height: 75px;
    border: 5px solid #c0392b;
    border-radius: 10px;
    color: #c0392b;
    font-size: 24px;
    font-weight: 900;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: rotate(-15deg);
    opacity: 0.8;
    pointer-events: none;
    text-transform: uppercase;
}

.np-stamp-secret::before {
    content: "TOP SECRET";
    font-size: 30px;
    line-height: 1;
}

.np-stamp-secret::after {
    content: "最高機密";
    font-size: 18px;
    line-height: 1;
    margin-top: 2px;
}

/* 圖表佔位 */
.np-chart-placeholder {
    width: 100%;
    height: 120px;
    border: 1px solid #999;
    background: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    color: #666;
}

/* 套裝效果 */
.np-set-box {
    border: 1px solid #333;
    padding: 8px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.np-set-name {
    font-weight: bold;
    font-size: 13px;
    color: #2c3e50;
    border-bottom: 2px solid #333;
    margin-bottom: 8px;
    padding-bottom: 3px;
}

.np-set-desc {
    font-size: 11px;
    line-height: 1.5;
}

/* 戰力指標雙欄 */
.np-combat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 15px;
}