/* Game hub — minimal, phone-case friendly */
#page-game-hub.game-hub-page {
    --gh-bg: #f6f4f1;
    --gh-card: #fff;
    --gh-text: #2c241c;
    --gh-muted: #6b5f54;
    --gh-accent: #5c7c6e;
    --gh-border: rgba(44, 36, 28, 0.12);
    background: var(--gh-bg);
    font-family: "Nunito", system-ui, sans-serif;
    color: var(--gh-text);
}

#page-game-hub .game-hub-screen {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#page-game-hub .game-hub-header {
    display: flex;
    align-items: center;
    gap: 12px;
    /* phone-case已处理safe-area-inset-top，这里只保留固定内边距 */
    padding: 12px 16px 12px;
    background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(246,244,241,.85));
    border-bottom: 1px solid var(--gh-border);
    flex-shrink: 0;
}

#page-game-hub .game-hub-back {
    border: none;
    background: rgba(92, 124, 110, 0.12);
    color: var(--gh-accent);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

#page-game-hub .game-hub-title-wrap { flex: 1; min-width: 0; }
#page-game-hub .game-hub-title { font-size: 17px; font-weight: 800; letter-spacing: 0.02em; }
#page-game-hub .game-hub-sub { font-size: 12px; color: var(--gh-muted); margin-top: 2px; }

#page-game-hub .game-hub-body {
    flex: 1;
    overflow-y: auto;
    /* black-translucent模式下Home Bar悬浮在内容上方，无需bottom safe-area padding */
    padding: 14px 16px 20px;
    -webkit-overflow-scrolling: touch;
}

#page-game-hub .gh-section {
    margin-bottom: 18px;
}
#page-game-hub .gh-section-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--gh-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

#page-game-hub .gh-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

#page-game-hub .gh-menu-card {
    background: var(--gh-card);
    border: 1px solid var(--gh-border);
    border-radius: 16px;
    padding: 16px 14px;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 6px 20px rgba(44,36,28,.06);
    transition: transform .15s ease, box-shadow .15s ease;
}
#page-game-hub .gh-menu-card:active { transform: scale(0.98); }

#page-game-hub .gh-menu-card .emoji { font-size: 28px; margin-bottom: 8px; }
#page-game-hub .gh-menu-card .name { font-size: 15px; font-weight: 800; }
#page-game-hub .gh-menu-card .desc { font-size: 12px; color: var(--gh-muted); margin-top: 4px; line-height: 1.4; }

#page-game-hub .gh-card {
    background: var(--gh-card);
    border: 1px solid var(--gh-border);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
}

#page-game-hub .gh-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

#page-game-hub .gh-btn {
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}
#page-game-hub .gh-btn-primary {
    background: var(--gh-accent);
    color: #fff;
}
#page-game-hub .gh-btn-ghost {
    background: rgba(92,124,110,.12);
    color: var(--gh-accent);
}

#page-game-hub .gh-select, #page-game-hub .gh-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--gh-border);
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
}

#page-game-hub .gh-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--gh-border);
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}
#page-game-hub .gh-pill.on {
    border-color: var(--gh-accent);
    background: rgba(92,124,110,.12);
    color: var(--gh-accent);
    font-weight: 700;
}

#page-game-hub .gh-npc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (min-width: 400px) {
    #page-game-hub .gh-npc-grid { grid-template-columns: 1fr 1fr 1fr; }
}

#page-game-hub .gh-npc-card {
    border: 1px solid var(--gh-border);
    border-radius: 12px;
    padding: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.35;
    transition: border-color .15s, background .15s;
}
#page-game-hub .gh-npc-card.selected {
    border-color: var(--gh-accent);
    background: rgba(92,124,110,.08);
}
#page-game-hub .gh-npc-card .n { font-weight: 800; font-size: 13px; }
#page-game-hub .gh-npc-card .p { color: var(--gh-muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

#page-game-hub .gh-hint {
    font-size: 13px;
    color: var(--gh-muted);
    line-height: 1.45;
    margin: 8px 0;
}

#page-game-hub .gh-log {
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    max-height: 220px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0,0,0,.03);
    border-radius: 10px;
}

#page-game-hub .gh-placeholder-frame {
    width: 100%;
    min-height: 280px;
    border: none;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--gh-border);
}

#page-game-hub .gh-danger { color: #b44; font-size: 12px; margin-top: 8px; }

/* Truth or dare */
#page-game-hub .gh-truth-role-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}
#page-game-hub .gh-truth-role-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 72px;
    max-width: 96px;
    padding: 10px 8px;
    border-radius: 14px;
    border: 1px solid var(--gh-border);
    background: var(--gh-card);
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s, background .15s, transform .12s;
}
#page-game-hub .gh-truth-role-tile:active { transform: scale(0.98); }
#page-game-hub .gh-truth-role-tile.on {
    border-color: var(--gh-accent);
    background: rgba(92,124,110,.1);
    box-shadow: 0 4px 14px rgba(92,124,110,.12);
}
#page-game-hub .gh-truth-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.9);
    box-shadow: 0 2px 8px rgba(44,36,28,.1);
}
#page-game-hub .gh-truth-avatar-fallback {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(92,124,110,.35), rgba(92,124,110,.15));
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#page-game-hub .gh-truth-role-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--gh-text);
    text-align: center;
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

#page-game-hub .gh-truth-card {
    position: relative;
    border-radius: 16px;
    padding: 16px 16px 16px 18px;
    background: var(--gh-card);
    border: 1px solid var(--gh-border);
    box-shadow: 0 8px 28px rgba(44,36,28,.08);
    overflow: hidden;
}
#page-game-hub .gh-truth-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    border-radius: 16px 0 0 16px;
}
#page-game-hub .gh-truth-card--truth::before {
    background: linear-gradient(180deg, #6b9bd1, #4a7ab0);
}
#page-game-hub .gh-truth-card--dare::before {
    background: linear-gradient(180deg, #c97b5a, #a85a43);
}
#page-game-hub .gh-truth-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
#page-game-hub .gh-truth-card-badge {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--gh-accent);
}
#page-game-hub .gh-truth-card-tone {
    font-size: 11px;
    color: var(--gh-muted);
    background: rgba(0,0,0,.05);
    padding: 2px 8px;
    border-radius: 999px;
}
#page-game-hub .gh-truth-card-src {
    margin-left: auto;
    font-size: 11px;
    color: var(--gh-muted);
}
#page-game-hub .gh-truth-card-text {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
    color: var(--gh-text);
}

#page-game-hub .gh-truth-empty {
    text-align: center;
    padding: 28px 16px;
    border-radius: 16px;
    border: 1px dashed var(--gh-border);
    background: rgba(255,255,255,.5);
    color: var(--gh-muted);
}
#page-game-hub .gh-truth-empty-ico { font-size: 32px; display: block; margin-bottom: 8px; }
#page-game-hub .gh-truth-empty p { margin: 0; font-size: 13px; }

#page-game-hub .gh-truth-react {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(92,124,110,.1);
    border: 1px solid rgba(92,124,110,.2);
}
#page-game-hub .gh-truth-react-mood {
    font-size: 11px;
    font-weight: 800;
    color: var(--gh-accent);
    margin-bottom: 6px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
#page-game-hub .gh-truth-react-body {
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    color: var(--gh-text);
}

#page-game-hub .gh-truth-bank-details {
    margin-top: 16px;
    border: 1px solid var(--gh-border);
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(255,255,255,.6);
}
#page-game-hub .gh-truth-bank-summary {
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    list-style: none;
    padding: 4px 0;
}
#page-game-hub .gh-truth-bank-summary::-webkit-details-marker { display: none; }
#page-game-hub .gh-truth-bank-toolbar { margin-top: 10px; }
#page-game-hub .gh-truth-bank-list {
    max-height: 240px;
    overflow-y: auto;
    margin-top: 10px;
    -webkit-overflow-scrolling: touch;
}
#page-game-hub .gh-truth-bank-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 6px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
    border-bottom: 1px solid rgba(44,36,28,.06);
}
#page-game-hub .gh-truth-bank-row:last-child { border-bottom: none; }
#page-game-hub .gh-truth-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
    background: #6b9bd1;
}
#page-game-hub .gh-truth-dot--dare { background: #c97b5a; }
#page-game-hub .gh-truth-bank-text { flex: 1; min-width: 0; word-break: break-word; }
#page-game-hub .gh-truth-del {
    border: none;
    background: rgba(0,0,0,.06);
    color: var(--gh-muted);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}
#page-game-hub .gh-truth-del:active { background: rgba(180,68,68,.2); color: #a22; }

#page-game-hub .gh-truth-busy {
    position: sticky;
    top: 0;
    z-index: 3;
    margin: -6px -4px 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(92,124,110,.22), rgba(92,124,110,.12));
    border: 1px solid rgba(92,124,110,.35);
    font-size: 13px;
    font-weight: 700;
    color: var(--gh-accent);
    text-align: center;
    box-shadow: 0 4px 16px rgba(44,36,28,.08);
}

#page-game-hub .gh-truth-rules {
    margin-bottom: 14px;
    border: 1px solid var(--gh-border);
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(255,255,255,.75);
}
#page-game-hub .gh-truth-rules-sum {
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    list-style: none;
}
#page-game-hub .gh-truth-rules-sum::-webkit-details-marker { display: none; }
#page-game-hub .gh-truth-rules-body {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--gh-text);
}
#page-game-hub .gh-truth-rules-h {
    font-weight: 800;
    font-size: 12px;
    color: var(--gh-muted);
    margin: 10px 0 6px;
    letter-spacing: .04em;
}
#page-game-hub .gh-truth-rules-h:first-child { margin-top: 0; }
#page-game-hub .gh-truth-rules-ul,
#page-game-hub .gh-truth-rules-ol {
    margin: 0 0 0 1.1em;
    padding: 0;
    color: var(--gh-muted);
}
#page-game-hub .gh-truth-rules-ol li { margin-bottom: 6px; }

#page-game-hub .gh-truth-participant-card { margin-bottom: 12px; }
#page-game-hub .gh-truth-turn-banner {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(92,124,110,.14), rgba(92,124,110,.06));
    border: 1px solid rgba(92,124,110,.25);
    font-size: 14px;
}
#page-game-hub .gh-truth-turn-label {
    color: var(--gh-muted);
    font-size: 12px;
    margin-right: 8px;
}
#page-game-hub .gh-truth-turn-banner strong { font-size: 16px; color: var(--gh-accent); }

#page-game-hub .gh-truth-role-tile--multi { position: relative; }
#page-game-hub .gh-truth-role-tile--multi.on::after {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gh-accent);
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    font-weight: 800;
}

#page-game-hub .gh-truth-move-select {
    max-width: 112px;
    min-width: 72px;
    font-size: 12px;
    padding: 4px 6px;
    flex-shrink: 0;
}

#page-game-hub .gh-truth-group-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
#page-game-hub .gh-truth-group-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(92,124,110,.12);
    font-size: 12px;
    font-weight: 700;
}
#page-game-hub .gh-truth-group-tag--custom {
    background: rgba(107,155,209,.12);
}
#page-game-hub .gh-truth-group-rename,
#page-game-hub .gh-truth-group-del {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0 2px;
    font-size: 14px;
    color: var(--gh-muted);
}

#page-game-hub .gh-truth-setup-groups {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
#page-game-hub .gh-truth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

#page-game-hub .gh-truth-wheel {
    margin: 12px auto;
    max-width: 280px;
    min-height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(92,124,110,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(246,244,241,.9));
    transition: transform 0.72s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#page-game-hub .gh-truth-wheel--spin {
    transform: rotate(360deg);
}
#page-game-hub .gh-truth-wheel-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    padding: 12px;
    text-align: center;
}
#page-game-hub .gh-truth-wheel-name {
    font-size: 12px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(92,124,110,.12);
    color: var(--gh-text);
}

#page-game-hub .gh-truth-chat--scroll {
    flex: 1 1 auto;
    min-height: 240px;
    max-height: min(42vh, 400px);
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(0,0,0,.03);
    border: 1px solid var(--gh-border);
}
#page-game-hub .gh-truth-chat-empty {
    padding: 28px 12px;
    text-align: center;
    font-size: 13px;
    color: var(--gh-muted);
}
#page-game-hub .gh-truth-bubble {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    max-width: 92%;
    font-size: 14px;
    line-height: 1.45;
}
#page-game-hub .gh-truth-bubble--primary {
    margin-left: 0;
    margin-right: auto;
    border-left: 4px solid #6b9bd1;
    background: rgba(107,155,209,.1);
}
#page-game-hub .gh-truth-bubble--primary.gh-truth-bubble--action {
    border-left-color: #c97b5a;
    background: rgba(201,123,90,.12);
}
#page-game-hub .gh-truth-bubble--primary.gh-truth-bubble--dare-primary {
    border-left-color: #c97b5a;
    background: rgba(201,123,90,.1);
}
#page-game-hub .gh-truth-bubble--other {
    margin-left: auto;
    margin-right: 0;
    border-right: 3px solid rgba(92,124,110,.4);
    background: rgba(255,255,255,.85);
    text-align: right;
}
#page-game-hub .gh-truth-bubble--user-extra {
    margin-right: auto;
    margin-left: 0;
    border-left: 4px solid #8b7bc9;
    background: rgba(139,123,201,.12);
    max-width: 92%;
}
#page-game-hub .gh-truth-bubble--user.gh-truth-bubble--user-right {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
    border-right: 4px solid #6b9bd1;
    border-left: none;
    background: rgba(107,155,209,.14);
}
#page-game-hub .gh-truth-bubble--user.gh-truth-bubble--user-left {
    margin-right: auto;
    margin-left: 0;
    text-align: left;
    border-left: 4px solid #8b7bc9;
    border-right: none;
    background: rgba(139,123,201,.12);
}
#page-game-hub .gh-truth-bubble-meta {
    font-size: 11px;
    font-weight: 800;
    color: var(--gh-muted);
    margin-bottom: 4px;
}
#page-game-hub .gh-truth-bubble-text {
    white-space: pre-wrap;
    word-break: break-word;
}

#page-game-hub .gh-truth-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(44,36,28,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
#page-game-hub .gh-truth-modal {
    width: 100%;
    max-width: 380px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--gh-card);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 16px 48px rgba(44,36,28,.2);
}
#page-game-hub .gh-truth-modal-title {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 8px;
}
#page-game-hub .gh-truth-share-picks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
    max-height: 160px;
    overflow-y: auto;
}
#page-game-hub .gh-truth-session-card {
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
    padding: 12px;
    border-radius: 12px;
    background: rgba(0,0,0,.04);
    border: 1px dashed var(--gh-border);
    font-family: ui-monospace, monospace;
}

#page-game-hub .gh-truth-play-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
#page-game-hub .gh-truth-play-column {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}
#page-game-hub .gh-truth-play-actions {
    flex-shrink: 0;
    width: 100%;
}

/* —— 角色生成器（梦幻粉蓝 / 手账） —— */
#page-game-hub .gh-cg-body {
    --cg-pink: #f9e1e5;
    --cg-pink-deep: #e6a8b3;
    --cg-blue: #e8f4ff;
    --cg-mint: #d4f0e8;
    --cg-silver: rgba(180, 185, 195, 0.55);
    --cg-text: #3d3540;
    --cg-soft-shadow: 0 10px 28px rgba(61, 53, 64, 0.1), 0 2px 8px rgba(61, 53, 64, 0.06);
    background-color: #dff0ff;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.65) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.65) 1px, transparent 1px);
    background-size: 18px 18px;
    color: var(--cg-text);
    margin: -14px -16px -20px;
    padding: 14px 16px 24px;
}

#page-game-hub .gh-cg-banner {
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 12px;
    box-shadow: var(--cg-soft-shadow);
}
#page-game-hub .gh-cg-banner-warn {
    background: linear-gradient(135deg, #fff5f7, #ffe8ee);
    border: 1px solid rgba(230, 168, 179, 0.45);
    color: #6b4a52;
}

#page-game-hub .gh-cg-busy {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--cg-soft-shadow);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}
#page-game-hub .gh-cg-straw {
    display: inline-block;
    animation: gh-cg-spin 1.1s ease-in-out infinite;
}
@keyframes gh-cg-spin {
    0%, 100% { transform: rotate(-8deg) scale(1); }
    50% { transform: rotate(8deg) scale(1.08); }
}

#page-game-hub .gh-cg-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
@media (min-width: 420px) {
    #page-game-hub .gh-cg-layout {
        flex-direction: row;
        align-items: flex-start;
    }
    #page-game-hub .gh-cg-clipboard {
        flex: 1 1 52%;
        min-width: 0;
    }
    #page-game-hub .gh-cg-right {
        flex: 1 1 48%;
        min-width: 0;
    }
}

#page-game-hub .gh-cg-clipboard {
    position: relative;
    background: linear-gradient(165deg, #fff 0%, #fff8fa 48%, var(--cg-pink) 100%);
    border-radius: 20px;
    padding: 18px 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--cg-soft-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
#page-game-hub .gh-cg-ribbon {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cg-pink-deep);
    opacity: 0.75;
    font-family: Georgia, "Times New Roman", serif;
}
#page-game-hub .gh-cg-clipboard-title {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.03em;
    margin-bottom: 12px;
    color: #4a3d45;
}

#page-game-hub .gh-cg-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #7a6b74;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 10px 0 6px;
}
#page-game-hub .gh-cg-hint-inline {
    font-size: 11px;
    color: #8a7a88;
    line-height: 1.45;
    margin: -4px 0 8px;
}
#page-game-hub .gh-cg-writing-custom-wrap {
    margin-top: 2px;
    margin-bottom: 6px;
}
#page-game-hub .gh-cg-save-writing-inline {
    margin-top: 8px !important;
    width: 100%;
}
#page-game-hub .gh-cg-input,
#page-game-hub .gh-cg-select,
#page-game-hub .gh-cg-textarea {
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid rgba(230, 168, 179, 0.35);
    background: rgba(255, 255, 255, 0.92);
    font-family: inherit;
    font-size: 14px;
    color: var(--cg-text);
    outline: none;
    transition: box-shadow 0.2s, border-color 0.2s;
}
#page-game-hub .gh-cg-input:focus,
#page-game-hub .gh-cg-select:focus,
#page-game-hub .gh-cg-textarea:focus {
    border-color: rgba(180, 195, 220, 0.95);
    box-shadow: 0 0 0 3px rgba(232, 244, 255, 0.9);
}
#page-game-hub .gh-cg-input-line {
    padding: 10px 12px;
}
#page-game-hub .gh-cg-select {
    padding: 10px 12px;
    cursor: pointer;
}
#page-game-hub .gh-cg-textarea {
    padding: 10px 12px;
    resize: vertical;
    min-height: 88px;
    line-height: 1.5;
}

#page-game-hub .gh-cg-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
#page-game-hub .gh-cg-chip {
    border: 1px solid rgba(200, 200, 210, 0.65);
    background: linear-gradient(180deg, #fff, #f6f7fb);
    color: #5c5560;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(61, 53, 64, 0.06);
    transition: transform 0.15s, box-shadow 0.15s;
}
#page-game-hub .gh-cg-chip:active {
    transform: scale(0.97);
}
#page-game-hub .gh-cg-chip.on {
    background: linear-gradient(180deg, var(--cg-pink), #f5d0da);
    border-color: rgba(230, 168, 179, 0.75);
    color: #5a3d48;
    box-shadow: 0 4px 12px rgba(230, 168, 179, 0.35);
}

#page-game-hub .gh-cg-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
    width: 100%;
    margin-top: 8px;
}
#page-game-hub .gh-cg-pill:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
#page-game-hub .gh-cg-pill:not(:disabled):active {
    transform: scale(0.98);
}
#page-game-hub .gh-cg-pill-primary {
    margin-top: 16px;
    background: linear-gradient(180deg, #ffd6e4, var(--cg-pink-deep));
    color: #fff;
    box-shadow: 0 8px 22px rgba(230, 168, 179, 0.45);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
#page-game-hub .gh-cg-pill-pink {
    background: linear-gradient(180deg, #fff0f5, var(--cg-pink));
    color: #5a3d48;
    border: 1px solid rgba(230, 168, 179, 0.45);
    box-shadow: 0 4px 14px rgba(230, 168, 179, 0.25);
    width: auto;
    flex: 1;
    min-width: 0;
}
#page-game-hub .gh-cg-pill-soft {
    background: rgba(255, 255, 255, 0.85);
    color: #5c5560;
    border: 1px solid rgba(200, 200, 210, 0.6);
    width: auto;
    flex: 1;
    min-width: 0;
}
#page-game-hub .gh-cg-pill-mint {
    background: linear-gradient(180deg, #eefbf6, var(--cg-mint));
    color: #3d5c52;
    border: 1px solid rgba(120, 200, 170, 0.35);
    width: auto;
    flex: 1;
    min-width: 0;
}
#page-game-hub .gh-cg-gen-btn {
    margin-top: 6px;
}

#page-game-hub .gh-cg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
#page-game-hub .gh-cg-actions .gh-cg-pill {
    margin-top: 0;
    flex: 1 1 calc(50% - 4px);
}

#page-game-hub .gh-cg-placeholder-card {
    border-radius: 20px;
    min-height: 220px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.2));
    border: 2px dashed rgba(230, 168, 179, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
#page-game-hub .gh-cg-ph-inner {
    text-align: center;
    font-size: 13px;
    line-height: 1.65;
    color: #7a6b74;
    font-weight: 600;
}
#page-game-hub .gh-cg-ph-sub {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--cg-pink-deep);
    opacity: 0.85;
}

#page-game-hub .gh-cg-badge-card {
    position: relative;
    border-radius: 22px;
    padding: 0 0 16px;
    background: linear-gradient(180deg, #fff 0%, #faf8ff 100%);
    box-shadow: var(--cg-soft-shadow), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    border: 1px solid rgba(210, 215, 230, 0.65);
}
#page-game-hub .gh-cg-badge-clip {
    height: 14px;
    margin: 0 auto;
    width: 56px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(90deg, #e8e9ed, #f5f6fa, #d4d6dd);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}
#page-game-hub .gh-cg-badge-inner {
    padding: 12px 16px 4px;
}

#page-game-hub .gh-cg-polaroid-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-height: 160px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--cg-blue), #f5f0ff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.5);
}
#page-game-hub .gh-cg-avatar-initial {
    font-size: 48px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 12px rgba(100, 120, 200, 0.35);
}
#page-game-hub .gh-cg-spark {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    animation: gh-cg-spark 2s ease-in-out infinite;
}
@keyframes gh-cg-spark {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

#page-game-hub .gh-cg-badge-title {
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 10px;
    color: #4a3d45;
}
#page-game-hub .gh-cg-badge-name {
    text-align: center;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.04em;
    margin: 10px 0 12px;
    color: #3d3548;
    font-family: "Nunito", system-ui, sans-serif;
}

#page-game-hub .gh-cg-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 6px 10px;
    margin-bottom: 6px;
    border-radius: 10px;
    background: rgba(249, 225, 229, 0.35);
    border: 1px solid rgba(230, 168, 179, 0.2);
}
#page-game-hub .gh-cg-meta-label {
    font-weight: 800;
    color: #8a7a88;
}
#page-game-hub .gh-cg-meta-val {
    font-weight: 800;
    color: #4a3d45;
}

#page-game-hub .gh-cg-persona-box {
    margin-top: 10px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(230, 168, 179, 0.28);
    max-height: 220px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
#page-game-hub .gh-cg-persona-label {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--cg-pink-deep);
    margin-bottom: 8px;
    text-transform: uppercase;
}
#page-game-hub .gh-cg-persona-text {
    font-size: 13px;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
    color: #4a4048;
}

#page-game-hub .gh-cg-linked-tag {
    margin-top: 10px;
    text-align: center;
    font-size: 11px;
    font-weight: 900;
    color: #5c7c6e;
    padding: 6px;
    border-radius: 999px;
    background: rgba(212, 240, 232, 0.65);
    border: 1px solid rgba(120, 200, 170, 0.35);
}

#page-game-hub .gh-cg-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #6b5f66;
    margin-top: 12px;
    cursor: pointer;
}
#page-game-hub .gh-cg-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--cg-pink-deep);
}

#page-game-hub .gh-cg-history-section {
    margin-top: 20px;
    padding-top: 6px;
}
#page-game-hub .gh-cg-history-title {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #4a3d45;
    margin-bottom: 12px;
}
#page-game-hub .gh-cg-history-sub {
    font-weight: 700;
    color: var(--cg-pink-deep);
    opacity: 0.85;
    font-size: 12px;
}

#page-game-hub .gh-cg-polaroid-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    align-items: flex-end;
}

#page-game-hub .gh-cg-polaroid {
    position: relative;
    width: 96px;
    padding: 8px 8px 28px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 10px 22px rgba(61, 53, 64, 0.14), 0 2px 6px rgba(61, 53, 64, 0.08);
    transform: rotate(var(--rot, -1deg));
    cursor: pointer;
    border: 1px solid rgba(230, 230, 240, 0.95);
    transition: transform 0.2s, box-shadow 0.2s;
}
#page-game-hub .gh-cg-polaroid:hover {
    box-shadow: 0 14px 28px rgba(230, 168, 179, 0.35);
    transform: rotate(var(--rot, -1deg)) translateY(-2px);
}
#page-game-hub .gh-cg-polaroid.selected {
    outline: 3px solid rgba(230, 168, 179, 0.85);
    box-shadow: 0 14px 32px rgba(230, 168, 179, 0.45);
}

#page-game-hub .gh-cg-polaroid-pic {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 2px;
    background: linear-gradient(160deg, var(--cg-pink), var(--cg-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    padding: 4px;
    line-height: 1.25;
    word-break: break-all;
}

#page-game-hub .gh-cg-polaroid-cap {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 6px;
    font-size: 10px;
    font-weight: 800;
    color: #6b5f66;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#page-game-hub .gh-cg-polaroid-del {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(180deg, #fff, #f0f0f5);
    color: #999;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    z-index: 2;
}
#page-game-hub .gh-cg-polaroid-del:hover {
    color: #c44;
    background: #fff5f5;
}

#page-game-hub .gh-cg-empty-hint {
    font-size: 12px;
    color: #7a6b74;
    width: 100%;
    text-align: center;
    padding: 12px;
}
