/* ============================================
   Mobile Portal Components & Modules
   ============================================ */

/* お知らせ領域 */
.mobile-info-section {
    padding: 12px 16px;
}

.notification-carousel {
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(0, 188, 212, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.notification-carousel:active {
    transform: scale(0.98);
    background: #f8fafd;
}

.notif-label {
    font-size: 0.65rem;
    font-weight: 900;
    background: var(--green-dark);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.notif-content {
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* 更新タイマー領域 */
.mobile-timer-section {
    padding: 4px 16px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--green-dark);
}

.timer-value {
    font-family: var(--font-title);
    color: var(--green-neon);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.info-icon-small {
    width: 18px;
    height: 18px;
    background: var(--green-neon);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 900;
    cursor: pointer;
}

/* ゲームリストコンテナ */
.main-game-area {
    padding: 8px 16px;
}

/* サブゲーム専用エリア */
.sub-games-area {
    background: #ffffff;
    padding: 20px 16px;
    margin-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-game-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 2.5px solid rgba(0, 188, 212, 0.6);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 20px rgba(0, 172, 193, 0.1);
    text-decoration: none;
}

.card-image-area {
    position: relative;
    height: 140px;
    background: #f0f7f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-title-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 131, 143, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 900;
}

.card-content {
    padding: 14px;
}

.game-desc {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.daily-checker-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.daily-checker-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 900;
    color: var(--green-dark);
    line-height: 1.1;
    text-align: center;
    min-width: 50px;
}

.check-pills {
    display: flex;
    gap: 4px;
    flex: 1;
}

.pill {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 0;
    border-radius: 6px;
    background: #f1f3f4;
    color: #b0bec5;
}

.daily-check.diff-easy.done {
    background: #e8f5e9;
    color: #2e7d32;
}

.daily-check.diff-normal.done {
    background: #fffde7;
    color: #f9a825;
}

.daily-check.diff-hard.done {
    background: #ffebee;
    color: #c62828;
}

.btn-row {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.btn-how-to {
    flex: 1;
    background: linear-gradient(135deg, #FFD700, #FFAB00);
    border: none;
    color: #5d4037;
    padding: 10px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 0.75rem;
    box-shadow: 0 4px 10px rgba(255, 171, 0, 0.3);
    cursor: pointer;
}

.btn-play {
    flex: 1.5;
    background: var(--green-neon);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 12px;
    font-weight: 900;
    font-family: var(--font-title);
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* レジュームバー */
.mobile-resume-inline {
    position: relative;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: 16px;
    padding: 12px;
    margin: 16px 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#resume-loading-state {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 5;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.resume-label {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--green-dark);
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.resume-items {
    display: flex;
    gap: 8px;
}

.resume-chip {
    flex: 1;
    min-height: 54px;
    background: white;
    border: 1px dashed var(--green-neon);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #90a4ae;
    padding: 4px;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

.resume-chip.has-data {
    background: white;
    border: 2px solid var(--green-neon);
    color: var(--green-dark);
    box-shadow: 0 4px 12px rgba(0, 172, 193, 0.1);
}

.resume-chip.has-data.is-daily {
    border-color: #03a9f4;
    color: #0277bd;
    box-shadow: 0 4px 12px rgba(3, 169, 244, 0.15);
}
.resume-chip.has-data.is-daily .slot-label {
    color: #0277bd;
}
.resume-chip.has-data.is-daily:active {
    background: #e1f5fe;
    border-color: #0288d1;
}

.resume-chip.has-data.is-stage {
    border-color: #4caf50;
    color: #2e7d32;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}
.resume-chip.has-data.is-stage .slot-label {
    color: #2e7d32;
}
.resume-chip.has-data.is-stage:active {
    background: #e8f5e9;
    border-color: #388e3c;
}

.slot-label {
    font-size: 0.65rem;
    font-weight: 900;
    font-family: var(--font-title);
}

.slot-detail {
    font-size: 0.6rem;
    color: var(--text-secondary);
    margin-top: 1px;
}

.slot-date {
    font-size: 0.55rem;
    color: #b0bec5;
    margin-top: 1px;
}

/* ゲストユーザー時のレジュームエリア無効化マスク */
.mobile-resume-inline.is-guest {
    pointer-events: none !important;
    user-select: none !important;
}
.mobile-resume-inline.is-guest .resume-items,
.mobile-resume-inline.is-guest .resume-label {
    opacity: 0.3 !important;
    filter: grayscale(1) !important;
}
.mobile-resume-inline.is-guest::after {
    content: attr(data-mask-text);
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    color: #546e7a;
    font-size: 0.7rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    z-index: 10;
    border: 1px solid rgba(0, 188, 212, 0.1);
    box-sizing: border-box;
    text-align: center;
    padding: 0 16px;
}


