* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    min-height: 100dvh;
    font-family: 'Noto Sans JP', sans-serif;
    background: #0a0806;
    color: #f5e6d3;
    overflow-x: hidden;
}

.page {
    max-width: 560px;
    margin: 0 auto;
    padding: calc(100px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
        max(40px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    transition: opacity 0.4s ease;
}

/* Header */
.gh-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    transition: background 0.3s;
}

.gh-header-inner {
    width: 100%;
    padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px
        max(16px, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.gh-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.gh-header-links {
    display: none;
}

@media (min-width: 480px) {
    .gh-header-links {
        display: flex;
        gap: 24px;
        font-size: 14px;
        font-weight: 500;
    }
}

.gh-header-links a {
    color: rgba(250, 246, 240, 0.85);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    padding: 4px 0;
    letter-spacing: 0.03em;
}

.gh-header-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c9a84c;
    transition: width 0.3s;
}

.gh-header-links a:hover {
    color: #e2c97e;
}

.gh-header-links a:hover::after {
    width: 100%;
}

.gh-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.gh-header-left img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #c9a84c;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gh-header-left:hover img {
    transform: rotate(10deg) scale(1.1);
}

.gh-header-left h1 {
    font-size: 18px;
    background: linear-gradient(135deg, #f5e6d3, #c9a96e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gh-header-left h1 span {
    font-size: 11px;
    font-weight: 400;
    -webkit-text-fill-color: #888;
}

.gh-nav-btn {
    padding: 7px 14px;
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 10px;
    background: rgba(201, 169, 110, 0.08);
    color: #c9a96e;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.gh-nav-btn:hover {
    background: rgba(201, 169, 110, 0.2);
}

/* Player Card */
.player-card {
    margin: 12px 0 20px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(30, 25, 18, 0.9), rgba(42, 34, 26, 0.9));
    border: 1px solid rgba(201, 169, 110, 0.15);
    border-radius: 14px;
    backdrop-filter: blur(8px);
}

.player-card.hidden {
    display: none;
}

.player-greeting {
    font-size: 13px;
    opacity: 0.6;
    margin-bottom: 12px;
    color: #f5e6d3;
}

.player-card .gc-stats-box {
    background: transparent;
    padding: 0;
    margin: 0;
    color: inherit;
}

.player-card .gc-stats-title {
    color: rgba(245, 230, 211, 0.6);
}

.player-card .gc-stats-pct {
    color: #c9a96e;
}

.player-card .gc-progress-bg {
    background: rgba(201, 169, 110, 0.12);
}

.player-card .gc-progress-fill {
    background: linear-gradient(90deg, #c9a96e, #8b6914);
}

.player-card .gc-stats-footer {
    color: rgba(245, 230, 211, 0.5);
}

.daily-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 16px;
    padding: 16px;
    min-height: 112px;
    border-radius: 14px;
    text-decoration: none;
    color: #f5e6d3;
    background:
        linear-gradient(135deg, rgba(45, 142, 111, 0.2), rgba(212, 136, 58, 0.12)),
        linear-gradient(145deg, rgba(30, 25, 18, 0.92), rgba(42, 34, 26, 0.86));
    border: 1px solid rgba(201, 169, 110, 0.24);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        border-color 0.2s;
}

.daily-card:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 169, 110, 0.45);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35);
}

.daily-card.completed {
    background:
        linear-gradient(135deg, rgba(45, 142, 111, 0.28), rgba(201, 169, 110, 0.12)),
        linear-gradient(145deg, rgba(30, 25, 18, 0.92), rgba(42, 34, 26, 0.86));
}

.daily-card-main {
    min-width: 0;
}

.daily-kicker {
    font-size: 11px;
    font-weight: 700;
    color: #8ad7ae;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
}

.daily-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 5px;
}

.daily-sub {
    font-size: 12px;
    line-height: 1.55;
    color: rgba(245, 230, 211, 0.62);
}

.daily-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.daily-streak {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(45, 142, 111, 0.18);
    color: #a8e3c2;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.daily-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(212, 136, 58, 0.38), rgba(212, 136, 58, 0.18));
    border: 1px solid rgba(212, 136, 58, 0.35);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 420px) {
    .daily-card {
        align-items: stretch;
        flex-direction: column;
    }

    .daily-status {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Game Cards */
.game-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.game-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    text-decoration: none;
    color: #f5e6d3;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.game-card:active {
    transform: scale(0.97);
}

#section-games,
#section-collection,
#section-ranking {
    scroll-margin-top: 100px;
}

.gc-explorer {
    background: linear-gradient(160deg, #2a1f14, #1a1510);
    border: 1px solid rgba(212, 136, 58, 0.2);
}

.gc-quiz {
    background: linear-gradient(160deg, #1a1c2a, #14151e);
    border: 1px solid rgba(74, 111, 165, 0.25);
}

.gc-visual {
    position: relative;
    height: 120px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gc-visual-icon {
    font-size: 48px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    z-index: 2;
    position: relative;
}

.gc-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(10, 8, 6, 0.8) 100%);
}

.gc-explorer .gc-visual {
    background: radial-gradient(circle at 40% 40%, rgba(212, 136, 58, 0.15), transparent 70%);
}

.gc-quiz .gc-visual {
    background: radial-gradient(circle at 60% 40%, rgba(74, 111, 165, 0.15), transparent 70%);
}

.gc-body {
    padding: 14px 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gc-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.gc-desc {
    font-size: 11px;
    opacity: 0.5;
    line-height: 1.5;
    margin-bottom: 10px;
    flex: 1;
}

.gc-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    opacity: 0.4;
    margin-bottom: 8px;
}

.gc-stats-box {
    background: #fdfaf4;
    border-radius: 8px;
    padding: 12px 14px;
    margin: auto 0 8px;
}

body.game-signed-out .game-card .gc-stats-box,
body.game-signed-out #section-collection {
    display: none;
}

.gc-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 8px;
}

.gc-stats-title {
    font-size: 13px;
    font-weight: 700;
    color: #8c7355;
    margin-bottom: 4px;
}

.gc-stats-pct {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: #6b4c2a;
}

.gc-progress-bg {
    height: 14px;
    background: #eadecd;
    border-radius: 7px;
    overflow: hidden;
    margin-bottom: 8px;
}

.gc-progress-fill {
    height: 100%;
    background: #9a7629;
    border-radius: 7px;
    transition: width 0.8s ease;
}

.gc-stats-footer {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9c8468;
    font-weight: 500;
}

.gc-quiz .gc-stats-box {
    background: #f4f8fd;
}

.gc-quiz .gc-stats-title {
    color: #55738c;
}

.gc-quiz .gc-stats-pct {
    color: #2a4c6b;
}

.gc-quiz .gc-progress-bg {
    background: #cde0ea;
}

.gc-quiz .gc-progress-fill {
    background: #29609a;
}

.gc-quiz .gc-stats-footer {
    color: #68809c;
}

.gc-action {
    display: block;
    margin-top: 10px;
    padding: 9px;
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: #fff;
}

.gc-explorer .gc-action {
    background: linear-gradient(135deg, rgba(212, 136, 58, 0.35), rgba(212, 136, 58, 0.15));
    border: 1px solid rgba(212, 136, 58, 0.3);
}

.gc-quiz .gc-action {
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.35), rgba(74, 111, 165, 0.15));
    border: 1px solid rgba(74, 111, 165, 0.3);
}

.gc-action:hover {
    filter: brightness(1.2);
}

/* Section headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.section-header h2 {
    font-size: 15px;
    font-weight: 600;
}

.section-header .section-link {
    margin-left: auto;
    font-size: 11px;
    color: #c9a96e;
    opacity: 0.6;
    text-decoration: none;
    cursor: pointer;
}

/* Collection Strip */
.collection-section {
    margin-bottom: 28px;
}

.collection-resume {
    min-height: 116px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid rgba(201, 169, 110, 0.16);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(30, 25, 18, 0.72), rgba(42, 34, 26, 0.56));
}

.collection-resume:empty {
    display: none;
}

.collection-resume-thumb {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    padding: 0;
    border: 1px solid rgba(201, 169, 110, 0.22);
    border-radius: 10px;
    background: #15110d;
    overflow: hidden;
    cursor: pointer;
}

.collection-resume-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.collection-resume-thumb span {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 2px 5px;
    border-radius: 5px;
    background: #e74c3c;
    color: #fff;
    font-size: 8px;
    font-weight: 800;
}

.collection-resume-copy {
    min-width: 0;
    flex: 1;
}

.collection-resume-kicker {
    margin-bottom: 4px;
    color: rgba(201, 169, 110, 0.62);
    font-size: 11px;
    font-weight: 700;
}

.collection-resume-title {
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
}

.collection-resume-sub {
    color: rgba(245, 230, 211, 0.54);
    font-size: 11px;
    line-height: 1.55;
}

.collection-resume-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid rgba(201, 169, 110, 0.34);
    border-radius: 10px;
    background: rgba(201, 169, 110, 0.1);
    color: #c9a96e;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

@media (max-width: 420px) {
    .collection-resume {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .collection-resume-copy {
        flex-basis: calc(100% - 86px);
    }

    .collection-resume-action {
        width: 100%;
    }
}

.coll-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 12px;
    padding-bottom: 16px;
}

.coll-item {
    width: 100%;
    padding: 0;
    background: none;
    border: 0;
    color: inherit;
    font-family: inherit;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.coll-item:hover {
    transform: scale(1.05);
}

.coll-item-img {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #15110d;
    border: 1px solid rgba(201, 169, 110, 0.15);
}

.coll-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coll-item-img.locked {
    filter: brightness(0.3) blur(1px);
}

.coll-item-img .lock-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.coll-item-img .new-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #e74c3c;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 4px;
}

.coll-item-name {
    width: 100%;
    font-size: 9px;
    text-align: center;
    margin-top: 4px;
    opacity: 0.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Collection tabs (game hub) */
.coll-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.coll-tab {
    flex: 1;
    padding: 8px 6px;
    border: 1.5px solid rgba(201, 169, 110, 0.12);
    border-radius: 10px;
    background: rgba(201, 169, 110, 0.04);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    color: rgba(245, 230, 211, 0.4);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.coll-tab.active {
    border-color: rgba(201, 169, 110, 0.4);
    background: rgba(201, 169, 110, 0.1);
    color: #c9a96e;
}

.coll-tab:hover:not(.active) {
    background: rgba(201, 169, 110, 0.08);
}

/* Ranking */
.ranking-section {
    margin-bottom: 28px;
}

.rank-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(30, 25, 18, 0.6);
    border: 1px solid rgba(201, 169, 110, 0.08);
    border-radius: 10px;
    font-size: 13px;
    animation: rankIn 0.4s both;
}

@keyframes rankIn {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.rank-item.self {
    border-color: rgba(201, 169, 110, 0.25);
    background: rgba(201, 169, 110, 0.08);
}

.rank-medal {
    font-size: 18px;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.rank-num {
    font-size: 13px;
    opacity: 0.3;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.rank-name {
    width: 110px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-you {
    color: #c9a96e;
    font-size: 10px;
    margin-left: 4px;
}

.rank-bar-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    margin: 0 4px;
}

.rank-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.rank-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #c9a96e, #8b6914);
    border-radius: 3px;
    transition: width 0.8s;
}

.rank-score {
    width: 36px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: #c9a96e;
}

.rank-separator {
    text-align: center;
    opacity: 0.2;
    font-size: 12px;
    padding: 4px;
}

.rank-loading,
.rank-empty {
    text-align: center;
    padding: 20px;
    opacity: 0.3;
    font-size: 13px;
}

/* Footer */
.gh-footer {
    padding: 20px 0;
    border-top: 1px solid rgba(201, 169, 110, 0.08);
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.gh-footer a {
    font-size: 12px;
    color: #c9a96e;
    opacity: 0.4;
    text-decoration: none;
}

.gh-footer a:hover {
    opacity: 0.7;
}

.footer-copy {
    font-size: 12px;
    color: #c9a96e;
    opacity: 0.4;
    text-decoration: none;
}

/* 初期アカウント設定 */
.account-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    background: rgba(10, 8, 6, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.account-modal-overlay.show {
    display: flex;
}

.account-modal {
    width: min(90vw, 360px);
    padding: 28px 24px 22px;
    border: 1px solid rgba(201, 169, 110, 0.32);
    border-radius: 16px;
    background: linear-gradient(145deg, #1e1912, #2a221a);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    animation: gh-account-pop 0.24s ease;
}

@keyframes gh-account-pop {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.account-modal h3 {
    margin: 0 0 18px;
    color: #c9a96e;
    font-size: 18px;
    font-weight: 700;
}

.account-field {
    margin-bottom: 16px;
}

.account-field label {
    display: block;
    margin-bottom: 6px;
    color: rgba(245, 230, 211, 0.7);
    font-size: 12px;
    font-weight: 500;
}

.account-value {
    min-height: 18px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(10, 8, 6, 0.46);
    color: rgba(245, 230, 211, 0.78);
    font-size: 13px;
    word-break: break-all;
}

.account-field input[type='text'] {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid rgba(201, 169, 110, 0.25);
    border-radius: 8px;
    outline: none;
    background: rgba(10, 8, 6, 0.58);
    color: #f5e6d3;
    font: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
}

.account-field input[type='text']:focus {
    border-color: rgba(201, 169, 110, 0.82);
}

.display-name-status {
    min-height: 17px;
    margin-top: 5px;
    font-size: 12px;
}

.account-checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
}

.account-checkbox-group input[type='checkbox'] {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    accent-color: #c9a96e;
}

.account-checkbox-group label {
    margin: 0;
    color: rgba(245, 230, 211, 0.76);
    font-size: 13px;
    line-height: 1.5;
}

.account-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn-account-cancel,
.btn-account-ok {
    min-width: 76px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}

.btn-account-cancel {
    background: rgba(245, 230, 211, 0.08);
    color: rgba(245, 230, 211, 0.72);
}

.btn-account-ok {
    background: linear-gradient(135deg, #c9a96e, #a88532);
    color: #fff;
    font-weight: 700;
}

.btn-account-cancel:hover,
.btn-account-ok:hover {
    transform: translateY(-1px);
}

.btn-account-ok:hover {
    box-shadow: 0 6px 18px rgba(168, 133, 50, 0.34);
}

.toast {
    position: fixed;
    bottom: 22px;
    left: 50%;
    z-index: 11000;
    max-width: min(90vw, 420px);
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.34);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(70px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: #2f8f5b;
}

.toast.error {
    background: #c94c45;
}

/* Login prompt */
.login-prompt {
    text-align: center;
    padding: 24px 16px;
    background: rgba(30, 25, 18, 0.6);
    border: 1px solid rgba(201, 169, 110, 0.12);
    border-radius: 14px;
    margin: 12px 0 20px;
}

.login-prompt p {
    font-size: 13px;
    opacity: 0.5;
    margin-bottom: 12px;
}

.login-prompt a {
    display: inline-block;
    padding: 9px 24px;
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.25), rgba(201, 169, 110, 0.1));
    border: 1px solid rgba(201, 169, 110, 0.4);
    border-radius: 10px;
    color: #f5e6d3;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.login-prompt a:hover {
    background: rgba(201, 169, 110, 0.3);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.anim-in {
    animation: fadeUp 0.5s both;
}

.anim-d1 {
    animation-delay: 0.1s;
}

.anim-d2 {
    animation-delay: 0.2s;
}

.anim-d3 {
    animation-delay: 0.3s;
}

.anim-d4 {
    animation-delay: 0.4s;
}

/* Detail Modal */
.gh-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 8, 6, 0);
    backdrop-filter: blur(0px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}

.gh-detail-overlay.show {
    opacity: 1;
    pointer-events: auto;
    background: rgba(10, 8, 6, 0.1);
    backdrop-filter: none;
}

body.map-active .page {
    opacity: 0;
    pointer-events: none;
}

body.map-active #bg-map {
    opacity: 0.85 !important;
}

.gh-detail-card {
    width: 90%;
    max-width: 600px;
    max-height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(145deg, #1e1912, #2a221a);
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    transform: scale(0.92) translateY(16px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gh-detail-overlay.show .gh-detail-card {
    transform: none;
}

.gh-detail-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(10, 8, 6, 0.6);
    color: #f5e6d3;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.gh-detail-close:hover {
    background: rgba(10, 8, 6, 0.85);
}

.gh-detail-img {
    width: 100%;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: #15110d;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Slideshow */
.gh-slideshow {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.gh-slideshow-viewport {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gh-slideshow-viewport img {
    width: 100%;
    height: 40vh;
    object-fit: contain;
    animation: ghImgReveal 0.6s 0.15s both;
}

.gh-slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 8, 6, 0.6);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    font-size: 20px;
    padding-bottom: 2px;
}

.gh-slideshow-nav:hover {
    background: rgba(10, 8, 6, 0.9);
}

.gh-slideshow-prev {
    left: 8px;
}

.gh-slideshow-next {
    right: 8px;
}

.gh-slideshow-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 5;
}

.gh-slideshow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s;
}

.gh-slideshow-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.gh-slideshow-counter {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    z-index: 5;
    pointer-events: none;
}

/* Floating Page Nav */
.gh-page-nav-floating {
    display: flex;
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(10, 8, 6, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: 30px;
    padding: 8px 16px;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    animation: ghFadeIn 0.4s ease;
}

.gh-page-nav-btn {
    background: none;
    border: none;
    color: #c9a96e;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 12px;
    transition: color 0.2s;
    white-space: nowrap;
}

.gh-page-nav-btn:hover {
    color: #f5e6d3;
}

.gh-page-nav-count {
    font-size: 13px;
    color: rgba(245, 230, 211, 0.8);
    font-family: monospace;
    white-space: nowrap;
}

.gh-detail-img img {
    width: 100%;
    height: 40vh;
    object-fit: contain;
    animation: ghImgReveal 0.6s 0.15s both;
}

@keyframes ghImgReveal {
    from {
        opacity: 0;
        filter: blur(8px);
    }

    to {
        opacity: 1;
        filter: none;
    }
}

.gh-detail-body {
    padding: 18px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    overflow: hidden;
}

.gh-detail-title {
    font-size: 18px;
    font-weight: 700;
    color: #f5e6d3;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.gh-detail-desc {
    padding: 14px;
    background: rgba(201, 169, 110, 0.06);
    border-left: 3px solid rgba(201, 169, 110, 0.4);
    border-radius: 0 10px 10px 0;
    font-size: 13px;
    line-height: 1.8;
    color: rgba(245, 230, 211, 0.85);
    overflow-y: auto;
    flex: 1 1 auto;
}

.gh-detail-desc .desc-title {
    font-size: 1.15em;
    font-weight: 700;
    margin: 8px 0 4px;
    color: #c9a96e;
}

.gh-detail-desc .desc-subtitle {
    font-size: 1em;
    font-weight: 700;
    margin: 6px 0 2px;
    color: rgba(201, 169, 110, 0.8);
}

.gh-detail-desc .desc-quote {
    border-left: 2px solid rgba(201, 169, 110, 0.4);
    padding-left: 8px;
    margin: 4px 0;
    opacity: 0.8;
    font-style: italic;
}

.gh-detail-desc hr {
    border: none;
    border-top: 1px solid rgba(201, 169, 110, 0.2);
    margin: 8px 0;
}

/* 古地図背景 (全画面共通) */
/* Image Preview Overlay (Lightbox) */
.image-preview-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
    animation: ghFadeIn 0.25s ease;
    touch-action: none;
}

.image-preview-overlay.show {
    display: flex;
}

.image-preview-overlay img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    cursor: default;
    transition: transform 0.1s ease;
    transform-origin: center center;
}

.image-preview-overlay img.dragging {
    transition: none;
    cursor: grabbing;
}

.image-preview-overlay img.zoomed {
    cursor: grab;
}

.image-preview-overlay .zoom-indicator {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.image-preview-overlay .zoom-indicator.show {
    opacity: 1;
}

.image-preview-overlay .preview-title {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin-top: 16px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.image-preview-overlay .preview-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.2s;
}

.image-preview-overlay .preview-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.image-preview-overlay .preview-nav,
.image-preview-overlay .preview-counter {
    display: none !important;
}

@keyframes ghFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* PC (Desktop) Adjustments */
@media (min-width: 768px) {
    /* 1. 全体の幅と余白：広げすぎず、セクション間の余白で間を持たせる */
    .page {
        max-width: 680px;
        padding-top: calc(120px + env(safe-area-inset-top));
        padding-bottom: max(80px, env(safe-area-inset-bottom));
    }

    /* ヘッダー：メリハリ */
    .gh-header-inner {
        width: 100%;
        padding: max(16px, env(safe-area-inset-top)) max(32px, env(safe-area-inset-right)) 16px
            max(32px, env(safe-area-inset-left));
    }

    .gh-header-left img {
        width: 44px;
        height: 44px;
    }

    .gh-header-left h1 {
        font-size: 22px;
        letter-spacing: 0.05em;
    }

    .gh-header-left h1 span {
        font-size: 13px;
        letter-spacing: 0;
    }

    .gh-nav-btn {
        font-size: 13px;
        padding: 10px 24px;
        border-radius: 20px;
    }

    /* プレイヤーカード：密度を高める */
    .player-card {
        padding: 24px 32px;
        margin: 0 0 40px;
        border-radius: 16px;
        background: linear-gradient(135deg, rgba(30, 25, 18, 0.95), rgba(42, 34, 26, 0.95));
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }

    .player-greeting {
        font-size: 14px;
        margin-bottom: 16px;
        opacity: 0.7;
    }

    .player-stats {
        gap: 32px;
        margin-bottom: 16px;
    }

    .player-stat {
        font-size: 14px;
        gap: 8px;
    }

    /* ゲームカード：無駄な高さを削り、情報を引き締める */
    .game-grid {
        gap: 20px;
        margin-bottom: 48px;
    }

    .game-card {
        border-radius: 16px;
    }

    .gc-visual {
        height: 140px;
    }

    .gc-visual-icon {
        font-size: 56px;
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .game-card:hover .gc-visual-icon {
        transform: scale(1.15) rotate(5deg);
    }

    .gc-body {
        padding: 20px 24px;
    }

    .gc-title {
        font-size: 18px;
        margin-bottom: 6px;
        letter-spacing: 0.05em;
    }

    .gc-desc {
        font-size: 13px;
        margin-bottom: 16px;
        line-height: 1.6;
        opacity: 0.6;
    }

    .gc-meta {
        font-size: 12px;
        gap: 12px;
        margin-bottom: 16px;
        opacity: 0.5;
    }

    .gc-action {
        font-size: 14px;
        padding: 12px;
        margin-top: 20px;
        border-radius: 10px;
        letter-spacing: 0.05em;
    }

    /* セクションヘッダー：視線誘導の起点 */
    .section-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(201, 169, 110, 0.15);
    }

    .section-header h2 {
        font-size: 18px;
        letter-spacing: 0.05em;
    }

    .section-header .section-link {
        font-size: 13px;
        transition: color 0.2s;
    }

    .section-header .section-link:hover {
        color: #fff;
    }

    /* コレクション：スクロール領域を魅力的に */
    .collection-section {
        margin-bottom: 48px;
    }

    .coll-tabs {
        gap: 16px;
        margin-bottom: 20px;
    }

    .coll-tab {
        font-size: 14px;
        padding: 12px 24px;
        border-radius: 12px;
        letter-spacing: 0.02em;
    }

    .coll-strip {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 16px;
        padding-bottom: 24px;
    }

    .coll-item {
        width: 100%;
    }

    .coll-item-img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .coll-item-img .lock-icon {
        font-size: 24px;
    }

    .coll-item-img .new-badge {
        font-size: 10px;
        padding: 2px 6px;
        border-radius: 6px;
        top: 4px;
        right: 4px;
    }

    .coll-item-name {
        font-size: 12px;
        margin-top: 10px;
        opacity: 0.7;
    }

    /* ランキング：リストの洗練 */
    .ranking-section {
        margin-bottom: 48px;
    }

    .rank-list {
        gap: 8px;
    }

    .rank-item {
        padding: 14px 24px;
        border-radius: 12px;
        font-size: 15px;
        background: rgba(30, 25, 18, 0.4);
        border-color: rgba(201, 169, 110, 0.05);
        transition: background 0.2s;
    }

    .rank-item:hover {
        background: rgba(30, 25, 18, 0.8);
    }

    .rank-medal {
        font-size: 20px;
        width: 32px;
    }

    .rank-num {
        font-size: 15px;
        width: 32px;
        opacity: 0.4;
    }

    .rank-name {
        width: 140px;
    }

    .rank-bar-wrap {
        margin: 0 16px;
    }

    .rank-bar-bg {
        height: 8px;
        border-radius: 4px;
    }

    .rank-bar-fill {
        border-radius: 4px;
    }

    .rank-score {
        font-size: 16px;
        letter-spacing: 0.05em;
        width: 48px;
    }

    /* フッター */
    .gh-footer {
        padding: 40px 0;
        gap: 32px;
    }

    .gh-footer a {
        font-size: 13px;
        letter-spacing: 0.05em;
        transition: color 0.2s;
    }

    .gh-footer a:hover {
        color: #f5e6d3;
        opacity: 1;
    }

    .login-prompt {
        padding: 32px;
        margin: 20px 0 40px;
        border-radius: 16px;
    }

    .login-prompt p {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .login-prompt a {
        font-size: 14px;
        padding: 12px 32px;
        border-radius: 12px;
        letter-spacing: 0.05em;
    }

    /* 詳細モーダル */
    .gh-detail-overlay {
        justify-content: flex-start;
        padding-left: 0;
    }

    .gh-detail-card {
        margin-left: 5vw;
        margin-right: 0;
        width: calc(45vw - 24px);
        max-width: 900px;
        border-radius: 20px;
    }

    .gh-detail-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 16px;
        right: 16px;
    }

    .gh-detail-img {
        border-radius: 20px 20px 0 0;
        background: #0a0806;
    }

    .gh-detail-img img {
        height: 45vh;
        object-fit: contain;
    }

    .gh-detail-body {
        padding: 32px 40px 40px;
    }

    .gh-detail-title {
        font-size: 22px;
        margin-bottom: 20px;
        letter-spacing: 0.05em;
    }

    .gh-detail-desc {
        font-size: 14px;
        max-height: 300px;
        padding: 24px;
        border-radius: 0 12px 12px 0;
        line-height: 1.8;
        background: rgba(201, 169, 110, 0.04);
        opacity: 0.85;
    }

    .gh-page-nav-floating {
        left: 75%;
        bottom: 32px;
    }

    /* 左右余白を活かす装飾 (Option 4) */
    body::before {
        content: '';
        position: fixed;
        inset: 0;
        background:
            radial-gradient(circle at 15% 30%, rgba(201, 169, 110, 0.03) 0%, transparent 40%),
            radial-gradient(circle at 85% 70%, rgba(74, 111, 165, 0.03) 0%, transparent 40%);
        pointer-events: none;
        z-index: -1;
    }
}

/* 光るピン (背景マップ用) */
.glow-pin-wrapper {
    width: 27px;
    height: 41px;
}

.glow-pin {
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjcgNDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTI3LDEzLjVDMjcsMTkuMDcgMjAuMjUsMjcgMTQuNzUsMzQuNUMxNC4wMiwzNS41IDEyLjk4LDM1LjUgMTIuMjUsMzQuNUM2Ljc1LDI3IDAsMTkuMjIgMCwxMy41QzAsNi4wNCA2LjA0LDAgMTMuNSwwQzIwLjk2LDAgMjcsNi4wNCAyNywxMy41WiIgZmlsbD0iI2IwNGE0YSIvPjxjaXJjbGUgY3g9IjEzLjUiIGN5PSIxMy41IiByPSI1LjUiIGZpbGw9IiNmZmZmZmYiLz48L3N2Zz4=');
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0 10px rgba(176, 74, 74, 1));
    animation: float-pin 2s ease-in-out infinite;
}

/* スポットライト効果（画面固定のレイヤー） */
#spotlight-overlay {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(10, 8, 6, 0) 0px,
        rgba(10, 8, 6, 0.1) 80px,
        rgba(10, 8, 6, 0.7) 250px,
        #0a0806 600px
    );
}

@media (min-width: 768px) {
    #spotlight-overlay {
        background: radial-gradient(
            circle at 75vw 50%,
            rgba(10, 8, 6, 0) 0px,
            rgba(10, 8, 6, 0.1) 80px,
            rgba(10, 8, 6, 0.7) 250px,
            #0a0806 600px
        );
    }
}

body.map-active #spotlight-overlay {
    opacity: 1;
}

@media (max-width: 420px) {
    .gh-header-inner {
        gap: 10px;
    }

    .gh-header-left h1 {
        font-size: 16px;
    }

    .gh-header-left h1 span {
        display: block;
        font-size: 10px;
    }

    .gh-nav-btn {
        min-height: 40px;
        padding: 8px 12px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .gh-header-left:hover img,
    .game-card:hover .gc-visual-icon,
    .rank-item:hover {
        transform: none;
    }
}

@keyframes float-pin {
    0%,
    100% {
        transform: translateY(0);
        filter: drop-shadow(0 0 8px rgba(201, 169, 110, 0.8));
    }

    50% {
        transform: translateY(-8px);
        filter: drop-shadow(0 12px 16px rgba(201, 169, 110, 1));
    }
}
