/* ==========================================================================
   AI 小游戏合集 —— 大厅样式（深夜霓虹风，与 game.css 同一套色）
   ========================================================================== */
[hidden] { display: none !important; }

:root {
    --gh-bg:      #0a0f1a;
    --gh-panel:   #121a29;
    --gh-line:    #23324a;
    --gh-text:    #e8eefb;
    --gh-text-2:  #96a6c0;
    --gh-accent:  #4c8dff;
    --gh-accent-2:#7c5cff;
    --gh-gold:    #fbbf24;
    --gh-radius:  16px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 14px;
    min-height: 100vh;
    background:
        radial-gradient(1200px 620px at 50% -10%, #1b2a45 0%, transparent 62%),
        radial-gradient(760px 500px at 100% 100%, #1a1636 0%, transparent 60%),
        var(--gh-bg);
    color: var(--gh-text);
    font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.gh-wrap { max-width: 1180px; margin: 0 auto; }

/* ===================== 顶栏 ===================== */
.gh-topbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    padding: 12px 16px;
    background: linear-gradient(135deg, #101a2c, #16233a);
    border: 1px solid var(--gh-line);
    border-radius: var(--gh-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.gh-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gh-logo { font-size: 22px; filter: drop-shadow(0 0 10px rgba(76, 141, 255, .6)); }
.gh-brand h1 { margin: 0; font-size: 18px; letter-spacing: .3px; white-space: nowrap; }
.gh-sub {
    font-size: 11.5px; color: var(--gh-text-2);
    padding: 3px 9px; border: 1px solid var(--gh-line);
    border-radius: 999px; white-space: nowrap;
}
.gh-topbar-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gh-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 13px; font-size: 13px; color: var(--gh-text);
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--gh-line); border-radius: 999px;
    text-decoration: none; transition: all .16s ease; white-space: nowrap;
}
a.gh-pill:hover { background: rgba(76, 141, 255, .16); border-color: rgba(76, 141, 255, .5); transform: translateY(-1px); }
.gh-me { border-color: rgba(76, 141, 255, .36); }
.gh-role {
    font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 999px;
    background: rgba(76, 141, 255, .22); color: #bcd7ff;
}
.gh-temp {
    font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 999px;
    background: rgba(251, 191, 36, .2); color: #fde68a;
}

/* ===================== Hero ===================== */
.gh-hero {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-top: 16px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(76, 141, 255, .14), rgba(124, 92, 255, .12));
    border: 1px solid rgba(76, 141, 255, .28);
    border-radius: var(--gh-radius);
}
.gh-hero-txt h2 { margin: 0 0 6px; font-size: 20px; }
.gh-hero-txt p { margin: 0; font-size: 13px; color: var(--gh-text-2); line-height: 1.7; }
.gh-hero-stats { display: flex; gap: 20px; flex-wrap: wrap; }
.gh-hstat { text-align: center; }
.gh-hstat b { display: block; font-size: 24px; color: var(--gh-accent); font-variant-numeric: tabular-nums; }
.gh-hstat span { font-size: 11.5px; color: var(--gh-text-2); }

/* ===================== 卡片网格 ===================== */
.gh-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.gh-card {
    position: relative; display: flex; flex-direction: column;
    padding: 18px; min-height: 208px;
    background: linear-gradient(160deg, #121a29, #16203a);
    border: 1px solid var(--gh-line);
    border-radius: var(--gh-radius);
    color: inherit; text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    overflow: hidden;
}
.gh-card::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: var(--acc-a, #4c8dff); opacity: .9;
}
.gh-card:hover {
    transform: translateY(-4px);
    border-color: var(--acc-a, #4c8dff);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45), 0 0 0 1px var(--acc-a, #4c8dff) inset;
}
.gh-card:active { transform: translateY(-1px); }

.accent-blue   { --acc-a: #4c8dff; --acc-b: #7c5cff; }
.accent-purple { --acc-a: #7c5cff; --acc-b: #b388ff; }
.accent-amber  { --acc-a: #fbbf24; --acc-b: #fb923c; }
.accent-green  { --acc-a: #34d399; --acc-b: #22d3ee; }
.accent-cyan   { --acc-a: #22d3ee; --acc-b: #4c8dff; }
.accent-pink   { --acc-a: #f472b6; --acc-b: #fb7185; }

.gh-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.gh-card-ico {
    width: 46px; height: 46px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; border-radius: 13px;
    background: linear-gradient(140deg, var(--acc-a, #4c8dff), var(--acc-b, #7c5cff));
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.gh-badge {
    font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
    border: 1px solid var(--gh-line); color: var(--gh-text-2);
}
.gh-badge.on { color: #86efac; border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .12); }
.gh-badge.off { color: #bcd7ff; border-color: rgba(76, 141, 255, .4); background: rgba(76, 141, 255, .12); }

.gh-card-name { margin: 0 0 7px; font-size: 16px; }
.gh-card-desc {
    margin: 0 0 12px; font-size: 12.5px; line-height: 1.7; color: var(--gh-text-2);
    flex: 1;
}
.gh-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.gh-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.gh-tag {
    font-size: 10.5px; padding: 2px 8px; border-radius: 999px;
    color: var(--gh-text-2); background: rgba(255, 255, 255, .05);
    border: 1px solid var(--gh-line);
}
.gh-best {
    font-size: 11px; color: var(--gh-gold); white-space: nowrap;
    font-variant-numeric: tabular-nums;
    min-width: 0; max-width: 100%;
    overflow: hidden; text-overflow: ellipsis;
}
.gh-go {
    position: absolute; right: 16px; bottom: 14px;
    font-size: 12px; font-weight: 600; color: var(--acc-a, #4c8dff);
    opacity: 0; transform: translateX(-6px); transition: all .18s ease;
}
.gh-card:hover .gh-go { opacity: 1; transform: translateX(0); }

/* ===================== 页脚 ===================== */
.gh-foot {
    margin-top: 20px; padding: 14px 4px;
    text-align: center; font-size: 12px; color: var(--gh-text-2);
    display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.gh-dot { opacity: .5; }

/* ===================== 手机端 ===================== */
@media (max-width: 900px) {
    .gh-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    body { padding: 10px; }
    .gh-grid { grid-template-columns: 1fr; gap: 12px; }
    .gh-card { min-height: 0; padding: 16px; }
    .gh-brand h1 { font-size: 16px; }
    .gh-sub { display: none; }
    .gh-hero { padding: 14px 16px; }
    .gh-hero-txt h2 { font-size: 17px; }
    .gh-hero-stats { gap: 16px; }
    .gh-hstat b { font-size: 20px; }
    .gh-hide-s { display: none; }
    .gh-go { opacity: 1; transform: none; }
    /* 「开始玩 →」在手机上常驻，给卡片脚留出它的位置，别压住 🏅 名次 */
    .gh-card-foot { padding-right: 62px; }
}
