/* ============================================
   Mobile Portal Modals & Popups
   ============================================ */

/* お知らせ一覧モーダル (Mobile) */
#news-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 3500;
}

#news-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    width: 88%;
    max-width: 400px;
    max-height: 75vh;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 4000;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.news-modal-header {
    padding: 24px 20px 16px;
    background: #f8fafd;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #00bcd4;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.1em;
    font-weight: 900;
}

.news-close-x {
    background: #eceff1;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #90a4ae;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.news-close-x:active {
    background: #cfd8dc;
    transform: scale(0.9);
}

.news-list-container {
    padding: 8px 0;
    overflow-y: auto;
    flex: 1;
}

.news-item {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.news-tag {
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.news-tag.info {
    background: #e0f2f1;
    color: #00796b;
}

.news-tag.update {
    background: #e8f5e9;
    color: #2e7d32;
}

.news-tag.maintenance {
    background: #fff3e0;
    color: #e65100;
}

.news-date {
    font-size: 0.7rem;
    color: #94a3b8;
}

.news-title {
    font-weight: bold;
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 4px;
}

.news-content {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

/* --- ルールモーダル (Mobile) --- */
#rule-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 3000;
    width: 85%;
    max-width: 320px;
    font-size: 0.85rem;
    line-height: 1.6;
    box-sizing: border-box;
}

#modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 2999;
}
