/* Grave.gg public hub design system */

@font-face {
    font-family: "Rajdhani";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/rajdhani-latin-500-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Rajdhani";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/rajdhani-latin-600-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Rajdhani";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/rajdhani-latin-700-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
}

:root {
    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;

    /* Surfaces */
    --surface-bg: #07090d;
    --surface-panel: #0c0f15;
    --surface-card: #141922;
    --surface-elevated: #10141c;
    --surface-hover: #1a2030;
    --surface-selected: rgba(242, 110, 34, 0.14);
    --surface-input: #0c0f15;

    /* Legacy aliases (map existing components to the system) */
    --gg-bg: var(--surface-bg);
    --gg-bg-elevated: var(--surface-elevated);
    --gg-bg-panel: var(--surface-card);
    --gg-bg-panel-2: var(--surface-hover);
    --gg-bg-input: var(--surface-input);
    --gg-surface: var(--surface-card);

    /* Borders */
    --border-muted: #1e2533;
    --border-primary: #2a3344;
    --gg-border: var(--border-primary);
    --gg-border-strong: #3a455c;

    /* Accent / status */
    --gg-accent: #f26e22;
    --gg-accent-hover: #ff843d;
    --gg-accent-soft: var(--surface-selected);
    --gg-text: #eef1f6;
    --gg-text-muted: #8b95a8;
    --gg-danger: #ff6b6b;
    --gg-success: #7dcea0;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --gg-radius: var(--radius-md);
    --gg-radius-lg: var(--radius-lg);

    /* Typography: calibrated to wiki readability (body ~1.05rem) */
    --gg-font-display: "Rajdhani", "Segoe UI", sans-serif;
    --gg-font-body: "Source Sans 3", "Segoe UI", sans-serif;
    --type-display: 700 2.35rem/1.15 var(--gg-font-display);
    --type-heading: 600 1.65rem/1.25 var(--gg-font-display);
    --type-title: 600 1.125rem/1.35 var(--gg-font-body);
    --type-body: 400 1.05rem/1.55 var(--gg-font-body);
    --type-small: 400 0.9375rem/1.5 var(--gg-font-body);
    --type-caption: 600 0.8125rem/1.4 var(--gg-font-body);

    /* Shadow: subtle only */
    --shadow-subtle: 0 4px 16px rgba(0, 0, 0, 0.28);
    --gg-shadow: var(--shadow-subtle);

    /* Shell */
    --gg-touch: 44px;
    --gg-z-ambient: 1;
    --gg-z-content: 2;
    --gg-z-topbar: 300;
    --gg-z-menu: 320;
    --gg-z-mobile-nav: 280;
    --gg-z-mobile-backdrop: 270;
    --gg-gutter: var(--space-5);
    --gg-shell: 1400px;
    --gg-max: var(--gg-shell);
    --gg-max-wide: var(--gg-shell);
    --gg-topbar-h: 72px;
    --gg-footer-h: 3.75rem;
}
@media (max-width: 720px) {
    :root {
        /* Use more of the phone width for shop tiles / forms. */
        --gg-gutter: var(--space-2);
    }
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

img,
svg {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

html { scroll-behavior: smooth; font-size: 20.5px; overflow-x: clip; }
html.gg-font-medium { font-size: 18.5px; }
html.gg-font-compact { font-size: 16px; }

body.gg-body {
    position: relative;
    min-height: 100vh;
    max-width: 100%;
    overflow-x: clip;
    display: flex;
    flex-direction: column;
    font: var(--type-body);
    color: var(--gg-text);
    background-color: var(--surface-bg);
    -webkit-font-smoothing: antialiased;
}

/* Soft site atmosphere (glow + particles). Quiet on profile photo backdrops. */
.gg-ambient {
    position: fixed;
    inset: 0;
    z-index: var(--gg-z-ambient);
    pointer-events: none;
    overflow: hidden;
}
.gg-ambient-glow {
    position: absolute;
    inset: -10% -5%;
    background:
        radial-gradient(ellipse 55% 40% at 18% 12%, var(--ambient-a) 0%, transparent 62%),
        radial-gradient(ellipse 50% 45% at 82% 18%, var(--ambient-b) 0%, transparent 65%),
        radial-gradient(ellipse 70% 55% at 50% 88%, var(--ambient-c) 0%, transparent 70%),
        radial-gradient(ellipse 90% 70% at 50% 40%, rgba(20, 28, 42, 0.35) 0%, transparent 75%);
    opacity: 1;
}
body.gg-body,
body.gg-hue-orange {
    --ambient-a: rgba(242, 110, 34, 0.11);
    --ambient-b: rgba(90, 140, 190, 0.09);
    --ambient-c: rgba(242, 110, 34, 0.06);
}
body.gg-hue-purple {
    --ambient-a: rgba(168, 85, 247, 0.12);
    --ambient-b: rgba(99, 102, 241, 0.09);
    --ambient-c: rgba(192, 132, 252, 0.07);
}
body.gg-hue-red {
    --ambient-a: rgba(239, 68, 68, 0.12);
    --ambient-b: rgba(251, 146, 60, 0.08);
    --ambient-c: rgba(248, 113, 113, 0.07);
}
body.gg-hue-blue {
    --ambient-a: rgba(59, 130, 246, 0.12);
    --ambient-b: rgba(34, 211, 238, 0.08);
    --ambient-c: rgba(96, 165, 250, 0.07);
}
/* VIP studio: same hub shell; only the page head stays open (no Account card). */
body.gg-page-vip-tools .gg-main {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
}
body.gg-page-vip-tools .gg-presence {
    gap: var(--space-4);
}
body.gg-page-vip-tools .gg-presence-head {
    background: transparent;
    border: 0;
    padding: 0 0 var(--space-1);
    align-items: flex-end;
    margin-bottom: 0;
}
body.gg-page-vip-tools .gg-presence-head-main {
    gap: var(--space-2);
}
body.gg-page-vip-tools .gg-presence-head .gg-page-title {
    margin: 0;
}
body.gg-page-vip-tools .gg-presence-head .gg-page-helper {
    max-width: 28rem;
    text-align: right;
}
@media (max-width: 700px) {
    body.gg-page-vip-tools .gg-presence-head {
        align-items: flex-start;
        flex-direction: column;
        gap: var(--space-2);
    }
    body.gg-page-vip-tools .gg-presence-head .gg-page-helper {
        text-align: left;
        max-width: 36rem;
    }
}
.gg-ambient-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.85;
}
body.has-page-backdrop .gg-ambient {
    opacity: 0.35;
}
body.has-page-backdrop .gg-ambient-particles {
    opacity: 0.35;
}
@media (prefers-reduced-motion: reduce) {
    html:not(.gg-motion-full) .gg-ambient-particles { opacity: 0.7; }
}

/* Soft reveal: stay fully hidden (not just transparent) until JS marks ready.
   Progressive JPEGs can still paint scans at opacity:0 in some browsers; visibility blocks that. */
img.gg-fade,
.gg-tile-media img,
.gg-inv-thumb img,
.gg-confirm-thumb img {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
img.gg-fade.is-ready,
.gg-tile-media img.is-ready,
.gg-inv-thumb img.is-ready,
.gg-confirm-thumb img.is-ready {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
    img.gg-fade,
    .gg-tile-media img,
    .gg-inv-thumb img,
    .gg-confirm-thumb img,
    .gg-page-backdrop {
        opacity: 1;
        visibility: visible;
        transition: none;
    }
}

/* Full-bleed profile cosmetic backdrop (vignette + soft bottom fade). */
.gg-page-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: min(92vh, 1100px);
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0s linear 0.55s;
    -webkit-mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 42%,
        rgba(0, 0, 0, 0.85) 58%,
        rgba(0, 0, 0, 0.45) 72%,
        rgba(0, 0, 0, 0.15) 86%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        #000 0%,
        #000 42%,
        rgba(0, 0, 0, 0.85) 58%,
        rgba(0, 0, 0, 0.45) 72%,
        rgba(0, 0, 0, 0.15) 86%,
        transparent 100%
    );
}
.gg-page-backdrop.is-ready {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.55s ease, visibility 0s;
}
.gg-page-backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--page-backdrop);
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.03);
}
.gg-page-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 75% at 50% 22%, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.35) 58%, rgba(0, 0, 0, 0.72) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.22) 16%, rgba(0, 0, 0, 0.12) 50%, rgba(0, 0, 0, 0.22) 84%, rgba(0, 0, 0, 0.78) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.16) 18%, rgba(0, 0, 0, 0.2) 48%, rgba(0, 0, 0, 0.55) 78%, rgba(7, 9, 13, 0.92) 100%);
}
/* Hub wallpaper stays behind the UI. Profile pages keep the stronger look. */
body.has-hub-backdrop .gg-page-backdrop::before {
    opacity: 0.82;
    filter: saturate(0.88) brightness(0.8);
}
body.has-hub-backdrop .gg-page-backdrop::after {
    background:
        radial-gradient(ellipse 90% 75% at 50% 22%, rgba(7, 9, 13, 0.18) 0%, rgba(7, 9, 13, 0.4) 58%, rgba(7, 9, 13, 0.78) 100%),
        linear-gradient(90deg, rgba(7, 9, 13, 0.8) 0%, rgba(7, 9, 13, 0.28) 16%, rgba(7, 9, 13, 0.2) 50%, rgba(7, 9, 13, 0.28) 84%, rgba(7, 9, 13, 0.8) 100%),
        linear-gradient(180deg, rgba(7, 9, 13, 0.38) 0%, rgba(7, 9, 13, 0.2) 20%, rgba(7, 9, 13, 0.3) 50%, rgba(7, 9, 13, 0.58) 78%, rgba(7, 9, 13, 0.94) 100%);
}

img { max-width: 100%; display: block; }
a { color: var(--gg-accent); }
a[href] { cursor: pointer; }
button, [type="button"], [type="submit"], .gg-btn, a.gg-btn { cursor: pointer; }
button:disabled, .gg-btn:disabled, .gg-btn.is-disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

/* -- Top bar / nav -- */
.gg-topbar {
    position: sticky;
    top: 0;
    z-index: var(--gg-z-topbar);
    background: var(--surface-panel);
    border-bottom: 1px solid var(--border-muted);
}
.gg-topbar-inner {
    width: 100%;
    max-width: var(--gg-shell);
    min-width: 0;
    margin: 0 auto;
    padding: 0 var(--gg-gutter);
    min-height: var(--gg-topbar-h);
    display: flex;
    align-items: center;
    gap: var(--space-4);
}
.gg-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
}
.gg-logo img {
    width: auto;
    height: auto;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.gg-nav-toggle {
    display: none;
    min-height: var(--gg-touch);
    min-width: var(--gg-touch);
    padding: 0 var(--space-3);
    background: var(--surface-card);
    border: 1px solid var(--border-primary);
    color: var(--gg-text);
    border-radius: var(--radius-md);
    font: var(--type-small);
    font-weight: 600;
}

.gg-nav {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex: 1;
    min-width: 0;
}
.gg-nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    overflow: hidden;
}
.gg-nav-list > li {
    display: flex;
    flex: 0 0 auto;
}
.gg-nav-aside {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-left: auto;
    padding-left: var(--space-3);
    position: relative;
    z-index: 2;
    background: var(--surface-panel);
}
/* a.gg-nav-link beats a[href] so Firefox does not mark cursor as overridden. */
a.gg-nav-link,
.gg-nav a.gg-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.65rem;
    color: var(--gg-text-muted);
    text-decoration: none;
    font: var(--type-small);
    font-weight: 600;
    border-radius: var(--radius-md);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    cursor: pointer !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
a.gg-nav-link img,
a.gg-nav-link span {
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
    cursor: inherit;
}
a.gg-nav-link:hover {
    color: var(--gg-text);
    background: var(--surface-hover);
    cursor: pointer !important;
}
a.gg-nav-link.is-active {
    color: #fff;
    border-bottom-color: var(--gg-accent);
    background: transparent;
    cursor: pointer !important;
}
.gg-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    margin-left: var(--space-2);
    padding: 0 var(--space-1);
    border-radius: var(--radius-sm);
    background: var(--gg-accent-soft);
    color: var(--gg-accent);
    font: var(--type-caption);
    font-weight: 700;
}
a.gg-nav-link-vip {
    color: var(--gg-accent);
}
a.gg-nav-link-vip .gg-nav-vip-mark {
    width: 6px;
    height: 6px;
    margin-left: 6px;
    border-radius: 50%;
    background: var(--gg-accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--gg-accent) 28%, transparent);
    flex-shrink: 0;
}
a.gg-nav-link-vip.is-active {
    color: var(--gg-accent);
}

.gg-desktop-only { display: block; }
.gg-mobile-only { display: none !important; }

/* Account cluster: HK + bell + chip */
.gg-account-cluster {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.gg-hk-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-muted);
    background: rgba(0, 0, 0, 0.18);
    color: var(--gg-text-muted);
    text-decoration: none;
    font: var(--type-caption);
    font-weight: 700;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
.gg-hk-chip:hover {
    color: var(--gg-text);
    border-color: var(--border-primary);
    background: var(--surface-hover);
}
.gg-hk-chip.is-active {
    color: var(--gg-text);
    border-color: var(--gg-accent);
    background: var(--gg-accent-soft);
}

.gg-notify-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    color: var(--gg-text-muted);
    text-decoration: none;
    border: 1px solid transparent;
    flex-shrink: 0;
}
.gg-notify-bell:hover {
    color: var(--gg-text);
    background: var(--surface-hover);
}
.gg-notify-bell.is-active {
    color: var(--gg-text);
    background: var(--surface-selected);
}
.gg-notify-bell svg {
    width: 20px;
    height: 20px;
}
.gg-notify-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--gg-accent);
    color: #fff;
    font: var(--type-caption);
    font-weight: 700;
    font-size: 0.7rem;
    line-height: 14px;
    text-align: center;
    border: 2px solid var(--surface-panel);
    box-shadow: 0 0 0 1px rgba(242, 110, 34, 0.35);
}

.gg-topbar-actions {
    display: none;
    align-items: center;
    gap: var(--space-2);
    margin-left: auto;
    flex-shrink: 0;
}

/* Account menu */
.gg-menu { position: relative; z-index: var(--gg-z-menu); }
.gg-menu-toggle,
.gg-account-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 42px;
    padding: var(--space-1) var(--space-3) var(--space-1) var(--space-1);
    background: var(--surface-card);
    border: 1px solid var(--border-muted);
    color: var(--gg-text);
    font: var(--type-small);
    font-weight: 600;
    position: relative;
    text-align: left;
}
.gg-menu-toggle {
    border-radius: var(--radius-md);
}
/* Square in the topbar: radius against the bar edge looks cramped. */
.gg-account-chip {
    border-radius: 0;
}
.gg-menu-toggle:hover,
.gg-account-chip:hover {
    border-color: var(--gg-border-strong);
    background: var(--surface-hover);
}
.gg-menu-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.gg-account-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.gg-account-name {
    font: var(--type-small);
    font-weight: 600;
    color: var(--gg-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}
.gg-account-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}
.gg-vip-badge {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    border-radius: var(--radius-sm);
    background: var(--surface-selected);
    color: var(--gg-accent);
    font: var(--type-caption);
    font-weight: 700;
}
.gg-gem-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--gg-text-muted);
    font: var(--type-caption);
    font-weight: 600;
}
.gg-gem-inline img {
    width: 12px;
    height: 12px;
}
.gg-menu-panel {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + var(--space-2));
    width: 280px;
    background: var(--surface-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-subtle);
    z-index: var(--gg-z-menu);
    overflow: hidden;
}
.gg-menu.is-open .gg-menu-panel { display: block; }
.gg-wallet {
    background: var(--surface-input);
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-muted);
}
.gg-wallet-label {
    display: block;
    font: var(--type-caption);
    color: var(--gg-text-muted);
    margin-bottom: var(--space-2);
}
.gg-wallet-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.gg-wallet-row img { width: 18px; height: 18px; }
.gg-wallet-amount {
    font: var(--type-heading);
    line-height: 1;
}
.gg-wallet-base {
    display: block;
    margin-top: var(--space-2);
    font: var(--type-small);
    color: var(--gg-text-muted);
}
.gg-menu-links { display: flex; flex-direction: column; }
.gg-menu-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    color: var(--gg-text);
    text-decoration: none;
    border-bottom: 1px solid var(--border-muted);
    position: relative;
    font: var(--type-small);
}
.gg-menu-links a:hover { background: var(--surface-hover); }
.gg-menu-links .is-danger { color: var(--gg-danger); }
.gg-menu-arrow { color: var(--gg-text-muted); }

.gg-btn-signin {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 40px;
    padding: 0 var(--space-4);
    background: var(--surface-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--gg-text);
    text-decoration: none;
    font: var(--type-small);
    font-weight: 600;
}
.gg-btn-signin:hover { border-color: var(--gg-accent); color: #fff; }
.gg-btn-signin img { width: 16px; height: 16px; }

/* -- Shell content -- */
.gg-main {
    position: relative;
    z-index: var(--gg-z-content);
    flex: 1;
    width: 100%;
    max-width: var(--gg-shell);
    min-width: 0;
    margin: 0 auto;
    padding: var(--space-6) var(--gg-gutter) var(--space-7);
    overflow-x: clip;
}
.gg-main.is-wide { max-width: var(--gg-shell); }
.gg-main > * { width: 100%; max-width: 100%; min-width: 0; }

.gg-footer {
    position: relative;
    z-index: var(--gg-z-content);
    border-top: 1px solid var(--border-muted);
    background: var(--surface-bg);
}
.gg-footer-inner {
    max-width: var(--gg-shell);
    margin: 0 auto;
    padding: var(--space-4) var(--gg-gutter);
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    color: var(--gg-text-muted);
    font: var(--type-small);
}
.gg-footer-inner a {
    color: var(--gg-text-muted);
    text-decoration: none;
}
.gg-footer-inner a:hover { color: #fff; }

/* -- Page header -- */
.gg-page { margin-bottom: var(--space-5); }
.gg-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    color: var(--gg-text-muted);
    font: var(--type-small);
    margin-bottom: var(--space-3);
}
.gg-crumb a {
    color: var(--gg-text-muted);
    text-decoration: none;
}
.gg-crumb a:hover { color: #fff; }
.gg-crumb-sep {
    color: rgba(255, 255, 255, 0.28);
    user-select: none;
}
.gg-wiki-crumb {
    margin-bottom: var(--space-4);
}
.gg-wiki-empty {
    padding: var(--space-2) 0 var(--space-4);
}
.gg-wiki-empty h1 {
    margin: 0 0 var(--space-3);
}
.gg-wiki-empty > .gg-muted {
    margin: 0 0 var(--space-4);
    max-width: 36rem;
    line-height: 1.55;
}
.gg-wiki-empty-tips {
    margin: 0 0 var(--space-5);
    padding-left: 1.25rem;
    color: var(--gg-text-muted);
    max-width: 36rem;
}
.gg-wiki-empty-tips li {
    margin-bottom: 0.4rem;
}
.gg-wiki-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.gg-page-kicker,
.gg-shop-kicker,
.gg-inv-kicker,
.gg-feed-kicker,
.gg-stats-kicker,
.gg-dash-kicker,
.gg-presence-kicker,
.gg-support-kicker,
.gg-wiki-kicker {
    margin: 0 0 var(--space-1);
    font: var(--type-caption);
    color: var(--gg-text-muted);
}
.gg-page-head,
.gg-shop-head,
.gg-inv-head,
.gg-feed-head,
.gg-stats-head,
.gg-presence-head,
.gg-prefs-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-5);
    margin-bottom: var(--space-5);
    padding: var(--space-5);
    background: var(--surface-card);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
}
.gg-page-head .gg-page-title,
.gg-shop-head .gg-page-title,
.gg-inv-head .gg-page-title,
.gg-feed-head .gg-page-title,
.gg-stats-head .gg-page-title,
.gg-presence-head .gg-page-title,
.gg-prefs-head .gg-page-title {
    margin-bottom: var(--space-2);
}
.gg-page-helper,
.gg-shop-helper,
.gg-inv-helper,
.gg-feed-helper,
.gg-presence-helper,
.gg-prefs-head .gg-muted,
.gg-stats-head .gg-muted {
    margin: 0;
    max-width: 36rem;
    color: var(--gg-text-muted);
    font: var(--type-small);
}
.gg-page-title {
    font: var(--type-heading);
    color: var(--gg-text);
    margin-bottom: var(--space-2);
}
.gg-lead {
    color: var(--gg-text-muted);
    max-width: 40rem;
    font: var(--type-body);
}

/* -- Flash / buttons / forms -- */
.gg-flash {
    margin: 0 0 var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    border: 1px solid;
    font: var(--type-small);
    font-weight: 600;
    line-height: 1.45;
    animation: gg-flash-in 0.25s ease;
}
.gg-flash-success {
    background: rgba(46, 125, 50, 0.16);
    border-color: rgba(46, 125, 50, 0.45);
    color: var(--gg-success);
}
.gg-flash-error {
    background: rgba(255, 82, 82, 0.14);
    border-color: rgba(255, 82, 82, 0.55);
    color: var(--gg-danger);
}
.gg-online-banner {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}
.gg-online-banner[hidden] {
    display: none !important;
}
.gg-online-banner-spinner {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    margin-top: 0.2rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 107, 107, 0.25);
    border-top-color: var(--gg-danger);
    border-right-color: var(--gg-danger);
    animation: gg-server-spin 0.75s linear infinite;
    will-change: transform;
}
.gg-online-banner-copy {
    min-width: 0;
    flex: 1;
}
.gg-online-banner-check {
    display: block;
    margin-top: var(--space-2);
    font-weight: 600;
    color: rgba(255, 180, 180, 0.95);
}
@media (prefers-reduced-motion: reduce) {
    .gg-online-banner-spinner {
        animation-duration: 1.6s;
    }
}
.gg-flash-info {
    background: rgba(33, 150, 243, 0.12);
    border-color: rgba(33, 150, 243, 0.4);
    color: #74b9ff;
}
.gg-impersonate-banner {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(120, 72, 20, 0.95);
    border-bottom: 1px solid rgba(255, 200, 120, 0.45);
    color: #fff8e8;
}
.gg-impersonate-banner-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    max-width: var(--gg-max, 72rem);
    margin: 0 auto;
    padding: var(--space-2) var(--space-4);
}
.gg-impersonate-banner p {
    margin: 0;
    font: var(--type-small);
    font-weight: 600;
}
.gg-impersonate-banner strong {
    font-weight: 800;
}
.gg-impersonate-stop {
    border-color: rgba(255, 248, 232, 0.45) !important;
    color: #fff8e8 !important;
}
@keyframes gg-flash-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

/* Top notice while the Rust server is offline (guests + signed-in). Does not block the page. */
.gg-server-wait {
    display: flex;
    align-items: center;
    margin: 0 0 var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    border: 1px solid #2a2f3a;
    background: #1a1d24;
    color: var(--gg-text);
}
.gg-server-wait[hidden] {
    display: none !important;
}
.gg-server-wait-inner {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    width: 100%;
    min-width: 0;
}
.gg-server-wait-spinner {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-top-color: var(--gg-accent);
    border-right-color: var(--gg-accent);
    animation: gg-server-spin 0.75s linear infinite;
    will-change: transform;
}
.gg-server-wait-text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    min-width: 0;
    flex: 1;
}
.gg-server-wait-title {
    margin: 0;
    font: var(--type-title);
    color: #fff;
}
.gg-server-wait-timer {
    margin: 0;
    font: var(--type-small);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--gg-accent);
}
.gg-server-wait-timer[hidden],
.gg-server-wait-eta[hidden] {
    display: none !important;
}
.gg-server-wait-eta {
    margin: 0;
    font: var(--type-small);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #9ad0ff;
}
.gg-server-wait-copy {
    margin: 0;
    flex: 1 1 100%;
    font: var(--type-small);
    color: var(--gg-text-muted);
}
@keyframes gg-server-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .gg-server-wait-spinner {
        animation-duration: 1.6s;
    }
}

.gg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 40px;
    padding: 0 var(--space-4);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font: var(--type-small);
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.gg-btn-primary {
    background: var(--gg-accent);
    border-color: var(--gg-accent);
    color: #fff;
}
.gg-btn-primary:hover {
    background: var(--gg-accent-hover);
    border-color: var(--gg-accent-hover);
    color: #fff;
}
.gg-btn-secondary {
    background: var(--surface-hover);
    border-color: var(--border-primary);
    color: var(--gg-text);
}
.gg-btn-secondary:hover {
    border-color: var(--gg-border-strong);
    background: var(--surface-card);
    color: #fff;
}
.gg-btn-ghost {
    background: transparent;
    border-color: var(--border-primary);
    color: var(--gg-text);
}
.gg-btn-ghost:hover {
    border-color: var(--gg-border-strong);
    background: var(--surface-hover);
    color: #fff;
}
.gg-btn-danger {
    background: transparent;
    border-color: rgba(255, 107, 107, 0.45);
    color: var(--gg-danger);
}
.gg-btn-danger:hover {
    background: rgba(255, 107, 107, 0.12);
    border-color: var(--gg-danger);
    color: #fff;
}
.gg-btn-muted {
    background: var(--surface-hover);
    border-color: var(--border-primary);
    color: var(--gg-text-muted);
    cursor: default;
}
.gg-btn-sm {
    min-height: 36px;
    padding: 0 var(--space-3);
    font-size: 0.9375rem;
}

.gg-panel {
    background: var(--surface-card);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.gg-panel-pad { padding: var(--space-5); }
.gg-muted { color: var(--gg-text-muted); }
.gg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
}

.gg-input,
.gg-search input {
    width: 100%;
    min-height: var(--gg-touch);
    padding: 10px 12px;
    background: var(--gg-bg-input);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius);
    color: var(--gg-text);
    font: inherit;
}
.gg-input:focus,
.gg-search input:focus {
    outline: none;
    border-color: var(--gg-accent);
}
.gg-search {
    display: flex;
    gap: var(--space-2);
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    max-width: 28rem;
}
.gg-search input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* -- Guest welcome (full-bleed gate) -- */
.gg-main:has(.gg-welcome) {
    position: relative;
    max-width: none;
    padding: 0;
    overflow: clip;
}
/* Keep login/security flashes from shoving the hero down. */
.gg-main:has(.gg-welcome) > .gg-flash {
    position: absolute;
    top: var(--space-3);
    left: max(var(--gg-gutter), 1rem);
    right: max(var(--gg-gutter), 1rem);
    z-index: 6;
    width: auto;
    max-width: none;
    margin: 0;
    padding: var(--space-2) var(--space-3);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
body:has(.gg-welcome) .gg-ambient {
    opacity: 0;
    pointer-events: none;
}
body:has(.gg-welcome) .gg-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
    background: rgba(8, 10, 14, 0.92);
}
.gg-welcome {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    /* Fit topbar + hero + footer in one screen (no dead scroll). */
    min-height: calc(100dvh - var(--gg-topbar-h) - var(--gg-footer-h));
    /* Sit the hero in the upper third, not dead-center. */
    padding:
        clamp(1.25rem, 4.5vh, 2.75rem)
        var(--gg-gutter)
        clamp(1.5rem, 6vh, 3.5rem);
    overflow: hidden;
    max-width: none;
    text-align: center;
}
/* Clear the absolute security flash so title is not under it. */
.gg-main:has(.gg-welcome):has(> .gg-flash) .gg-welcome {
    padding-top: clamp(4.75rem, 11vh, 6.5rem);
}
.gg-welcome-media,
.gg-welcome-scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.gg-welcome-media {
    z-index: 0;
    background: var(--welcome-hero) center / cover no-repeat;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.06);
    transition: opacity 0.55s ease, visibility 0s linear 0.55s;
}
.gg-welcome-media.is-ready {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.55s ease, visibility 0s;
    animation: gg-welcome-drift 28s ease-in-out infinite alternate;
}
.gg-welcome-scrim {
    z-index: 1;
    background:
        radial-gradient(ellipse 70% 55% at 50% 48%, rgba(6, 8, 12, 0.55) 0%, rgba(6, 8, 12, 0.72) 55%, rgba(6, 8, 12, 0.82) 100%),
        linear-gradient(180deg, rgba(6, 8, 12, 0.4) 0%, rgba(6, 8, 12, 0.28) 40%, rgba(6, 8, 12, 0.55) 100%);
}
.gg-welcome-inner {
    position: relative;
    z-index: 2;
    width: min(100%, 40rem);
    margin-inline: auto;
    animation: gg-welcome-rise 0.85s ease-out both;
}
.gg-welcome-brand {
    margin: 0 0 var(--space-3);
    font: 700 clamp(2.6rem, 7vw, 4.4rem)/1.05 var(--gg-font-display);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f4f1ea;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.gg-welcome-lead {
    margin: 0 auto var(--space-5);
    max-width: 32rem;
    color: rgba(232, 228, 220, 0.86);
    font: var(--type-body);
    font-size: 1.12rem;
    line-height: 1.5;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.gg-welcome-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}
.gg-welcome-cta {
    min-height: 48px;
    padding-inline: 1.25rem;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    animation: gg-welcome-rise 0.85s ease-out 0.12s both;
}
.gg-welcome-cta img {
    width: 16px;
    height: 16px;
}
.gg-welcome-secondary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    animation: gg-welcome-rise 0.85s ease-out 0.22s both;
}
.gg-welcome-secondary .gg-btn-ghost {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(10, 12, 16, 0.35);
    color: rgba(244, 241, 234, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.gg-welcome-secondary .gg-btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(10, 12, 16, 0.5);
    color: #fff;
}
.gg-welcome-trust {
    margin: var(--space-4) 0 0;
    color: rgba(210, 206, 198, 0.72);
    font: var(--type-small);
    animation: gg-welcome-rise 0.85s ease-out 0.32s both;
}
@keyframes gg-welcome-drift {
    from { transform: scale(1.06) translate3d(0, 0, 0); }
    to { transform: scale(1.12) translate3d(-1.2%, -0.6%, 0); }
}
@keyframes gg-welcome-rise {
    from {
        opacity: 0;
        transform: translate3d(0, 14px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .gg-welcome-media,
    .gg-welcome-inner,
    .gg-welcome-cta,
    .gg-welcome-secondary,
    .gg-welcome-trust {
        animation: none;
    }
    .gg-welcome-media {
        opacity: 1;
        visibility: visible;
        transform: scale(1.04);
        transition: none;
    }
}
@media (max-width: 720px) {
    .gg-welcome {
        align-items: flex-start;
        justify-content: center;
        min-height: calc(100dvh - var(--gg-topbar-h) - var(--gg-footer-h));
        padding:
            clamp(1rem, 3.5vh, 2rem)
            var(--gg-gutter)
            var(--space-6);
    }
    .gg-main:has(.gg-welcome):has(> .gg-flash) .gg-welcome {
        padding-top: clamp(5.25rem, 14vh, 7rem);
    }
    .gg-main:has(.gg-welcome) > .gg-flash {
        top: var(--space-2);
        left: var(--space-3);
        right: var(--space-3);
        width: auto;
    }
    .gg-welcome-scrim {
        background:
            radial-gradient(ellipse 90% 70% at 50% 45%, rgba(6, 8, 12, 0.58) 0%, rgba(6, 8, 12, 0.78) 100%);
    }
    .gg-welcome-brand {
        letter-spacing: 0.03em;
    }
}

/* -- Account dashboard -- */
.gg-dash {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}
.gg-dash-summary {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-5);
    background: var(--surface-card);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    min-width: 0;
    max-width: 100%;
}
.gg-dash-identity {
    display: flex;
    gap: var(--space-4);
    align-items: center;
    min-width: 0;
}
.gg-dash-avatar-link {
    display: block;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    line-height: 0;
}
.gg-dash-avatar-link:focus-visible {
    outline: 2px solid var(--gg-accent, #f26e22);
    outline-offset: 2px;
}
.gg-dash-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}
.gg-dash-title {
    font: var(--type-heading);
    margin-bottom: var(--space-2);
}
.gg-name-link {
    color: inherit;
    text-decoration: none;
}
.gg-name-link:hover,
.gg-name-link:focus-visible {
    color: var(--gg-accent, #f26e22);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.gg-dash-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}
.gg-dash-chips [data-online-chip] {
    display: contents;
}
.gg-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 24px;
    min-height: 24px;
    padding: 0 var(--space-2);
    border-radius: var(--radius-sm);
    background: var(--surface-hover);
    color: var(--gg-text-muted);
    font: var(--type-caption);
    font-weight: 700;
    line-height: 1;
}
.gg-chip-vip {
    background: var(--surface-selected);
    color: var(--gg-accent);
}
.gg-chip-online {
    background: rgba(125, 206, 160, 0.14);
    color: var(--gg-success);
}
.gg-chip-offline {
    background: var(--surface-hover);
    color: var(--gg-text-muted);
}
.gg-dash-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
    gap: var(--space-4);
    margin: 0;
    min-width: min(100%, 420px);
}
.gg-dash-metric {
    min-width: 0;
}
.gg-dash-metric dt {
    font: var(--type-caption);
    color: var(--gg-text-muted);
    margin-bottom: var(--space-1);
}
.gg-dash-metric dd {
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font: var(--type-title);
}
.gg-dash-metric dd img {
    width: 16px;
    height: 16px;
}
.gg-dash-metric a {
    color: var(--gg-accent);
    text-decoration: none;
    font-weight: 600;
}
.gg-dash-metric a:hover { text-decoration: underline; }
.gg-dash-metric.is-unread {
    padding: 8px 10px;
    border-radius: var(--radius-md);
    background: rgba(242, 110, 34, 0.12);
    border: 1px solid rgba(242, 110, 34, 0.45);
}
.gg-dash-unread-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}
.gg-dash-unread-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--gg-accent);
    color: #fff;
    font: var(--type-caption);
    font-weight: 700;
    line-height: 1;
}
.gg-dash-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 14px 16px;
    margin-bottom: var(--space-5);
    background: rgba(242, 110, 34, 0.14);
    border: 1px solid rgba(242, 110, 34, 0.5);
    border-left: 4px solid var(--gg-accent);
    border-radius: var(--radius-md);
    animation: gg-dash-notice-in 0.35s ease-out;
}
.gg-dash-notice-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.gg-dash-notice-copy strong {
    color: #fff;
    font: var(--type-title);
}
.gg-dash-notice-copy span {
    color: var(--gg-text-muted);
    font: var(--type-small);
}
.gg-btn-notify {
    position: relative;
    border-color: rgba(242, 110, 34, 0.55);
    color: #fff;
}
.gg-btn-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--gg-accent);
    color: #fff;
    font: var(--type-caption);
    font-weight: 700;
    line-height: 1;
}
@keyframes gg-dash-notice-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.gg-daily-bonus {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    margin: 0 0 var(--space-4);
    padding: 14px 16px;
    background: rgba(196, 120, 62, 0.14);
    border: 1px solid rgba(196, 120, 62, 0.5);
    border-left: 4px solid #c4783e;
    border-radius: var(--radius-md);
    animation: gg-dash-notice-in 0.35s ease-out;
}
.gg-daily-bonus-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: rgba(12, 14, 18, 0.45);
    border: 1px solid rgba(196, 120, 62, 0.4);
    border-radius: var(--radius-md);
}
.gg-daily-bonus-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}
.gg-daily-bonus-copy {
    flex: 1 1 12rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.gg-daily-bonus-copy strong {
    color: #fff;
    font: var(--type-title);
}
.gg-daily-bonus-copy span {
    color: var(--gg-text-muted);
    font: var(--type-small);
}
.gg-daily-bonus-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

.gg-dash-section-title {
    font: var(--type-title);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.gg-dash-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.gg-dash-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
}

.gg-dash-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-5);
}
.gg-dash-prefs {
    margin-top: var(--space-5);
}
.gg-dash-landing-form {
    margin: 0;
}
.gg-dash-prefs-hint {
    margin: var(--space-3) 0 0;
    font: var(--type-small);
}
.gg-prefs {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}
.gg-prefs-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    max-width: 40rem;
}
.gg-prefs-layout {
    display: grid;
    grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
    gap: var(--space-5);
    align-items: start;
    width: 100%;
}
.gg-prefs-layout .gg-prefs-form {
    max-width: none;
    width: 100%;
}
.gg-prefs-hubbg {
    min-width: 0;
}
.gg-prefs-hubbg .gg-dash-section-title {
    margin: 0 0 var(--space-2);
}
.gg-prefs-hubbg .gg-hint {
    margin: 0 0 var(--space-4);
}
.gg-prefs-hubbg-empty {
    margin: var(--space-4) 0 0;
}
.gg-prefs-hubbg .gg-look-grid {
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
}
@media (max-width: 960px) {
    .gg-prefs-layout {
        grid-template-columns: 1fr;
    }
}
body.has-page-backdrop .gg-prefs-layout .gg-panel {
    background: rgba(16, 20, 28, 0.96);
    border-color: var(--border-primary);
    box-shadow: var(--shadow-subtle);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.gg-prefs-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin: 0;
    min-width: 0;
}
.gg-prefs-label {
    font: var(--type-caption);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gg-text-muted);
}
.gg-prefs-field select {
    box-sizing: border-box;
    width: 100%;
    height: var(--gg-touch);
    min-height: var(--gg-touch);
    padding: 0 12px;
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-sm);
    background: var(--surface-input, #1a1a1a);
    color: var(--gg-text);
    font: var(--type-body);
    line-height: 1.2;
}
.gg-prefs-field .gg-hint {
    margin: 0;
}
.gg-prefs-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    padding-top: var(--space-2);
    border-top: 1px solid var(--border-muted);
}
.gg-prefs.gg-edit-profile {
    max-width: min(1100px, 100%);
}
.gg-prefs .gg-prefs-head,
.gg-presence .gg-presence-head {
    margin-bottom: 0;
}
.gg-prefs-actions {
    margin-top: var(--space-4);
}
.gg-prefs .gg-dash-prefs {
    margin-top: 0;
}
body.has-page-backdrop .gg-prefs-head {
    padding: 16px 18px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(16, 20, 28, 0.97) 0%, rgba(12, 15, 21, 0.98) 100%);
    box-shadow: var(--shadow-subtle);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
body.has-page-backdrop .gg-prefs-head .gg-page-title {
    color: #fff;
}
body.has-page-backdrop .gg-prefs-head .gg-page-kicker,
body.has-page-backdrop .gg-prefs-head .gg-page-helper,
body.has-page-backdrop .gg-prefs-head .gg-feed-kicker,
body.has-page-backdrop .gg-prefs-head .gg-muted {
    color: #c2cad8;
}
body.has-page-backdrop .gg-prefs .gg-profile-customize,
body.has-page-backdrop .gg-prefs .gg-dash-prefs,
body.has-page-backdrop .gg-prefs .gg-dash-panel {
    background: rgba(16, 20, 28, 0.96);
    border-color: var(--border-primary);
    box-shadow: var(--shadow-subtle);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
body.has-page-backdrop .gg-prefs .gg-profile-look-form select,
body.has-page-backdrop .gg-prefs .gg-dash-landing-form select {
    background: var(--surface-input);
    color: var(--gg-text);
    border-color: var(--border-primary);
}
.gg-dash-panel {
    padding: var(--space-5);
    background: var(--surface-card);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    min-width: 0;
}
.gg-dash-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-3);
}
.gg-dash-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gg-text-muted);
    text-decoration: none;
    opacity: 0.75;
}
.gg-dash-open:hover,
.gg-dash-open:focus-visible {
    color: var(--gg-text);
    opacity: 1;
}
.gg-dash-panel-intro {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
}
.gg-dash-panel-intro .gg-dash-section-title,
.gg-dash-panel-intro .gg-muted {
    margin: 0;
}
/* Forms / stacks inside dash panels: one vertical rhythm */
.gg-panel-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    min-width: 0;
}
.gg-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-muted);
}
.gg-panel-actions > form {
    display: inline-flex;
    margin: 0;
}
.gg-panel-stack > .gg-mystats-controls,
.gg-panel-stack > .gg-prefs-fields {
    margin-bottom: 0;
}
.gg-dash-link {
    font: var(--type-small);
    font-weight: 600;
    color: var(--gg-text-muted);
    text-decoration: none;
}
.gg-dash-link:hover { color: var(--gg-text); }

.gg-dash-inv {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.gg-dash-inv-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.gg-dash-inv-redeem {
    flex-shrink: 0;
    margin-left: auto;
}
.gg-dash-inv-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--surface-input);
    border: 1px solid var(--border-muted);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gg-dash-inv-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.gg-dash-inv-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.gg-dash-inv-meta strong {
    font: var(--type-title);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gg-dash-more {
    font: var(--type-small);
}
.gg-dash-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.gg-dash-activity {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.gg-dash-activity li {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-muted);
}
.gg-dash-activity li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.gg-dash-activity span {
    font: var(--type-small);
    color: var(--gg-text);
}
.gg-dash-activity time {
    font: var(--type-caption);
    color: var(--gg-text-muted);
}

@media (max-width: 900px) {
    .gg-dash-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        min-width: 0;
    }
    .gg-dash-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .gg-dash-summary { padding: var(--space-4); }
    .gg-dash-identity { align-items: flex-start; }
    .gg-dash-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* -- Gem Shop -- */
.gg-shop-note {
    margin: var(--space-3) 0 0;
    max-width: 40rem;
    color: var(--gg-text-muted);
    font: var(--type-small);
    line-height: 1.5;
}
.gg-shop-support {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3) var(--space-4);
    margin: 0 0 var(--space-5);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    background: var(--surface-elevated);
}
.gg-shop-support-copy {
    min-width: 0;
    flex: 1 1 16rem;
}
.gg-shop-support-title {
    margin: 0;
    font: var(--type-small);
    font-weight: 600;
    color: var(--gg-text);
}
.gg-shop-support-text {
    margin: 2px 0 0;
    font: var(--type-caption);
    color: var(--gg-text-muted);
    line-height: 1.45;
}
.gg-shop-support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
}
.gg-shop-filters {
    margin-bottom: var(--space-5);
}
.gg-shop-claim {
    margin: 0 0 var(--space-6);
    padding: 0;
    background: var(--surface-card);
    border: 1px solid rgba(242, 110, 34, 0.35);
    border-radius: var(--radius-lg);
}
.gg-shop-claim-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    cursor: pointer;
    user-select: none;
}
.gg-shop-claim-summary::-webkit-details-marker { display: none; }
.gg-shop-claim-summary-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-2) var(--space-3);
    min-width: 0;
}
.gg-shop-claim-summary-title {
    font: 600 1.25rem/1.3 var(--gg-font-display);
    color: var(--gg-text);
}
.gg-shop-claim-summary-meta {
    font: var(--type-small);
    color: var(--gg-text-muted);
}
.gg-shop-claim-summary-hint {
    flex: 0 0 auto;
    font: var(--type-caption);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gg-text-muted);
}
.gg-shop-claim[open] .gg-shop-claim-summary {
    border-bottom: 1px solid rgba(242, 110, 34, 0.2);
}
.gg-shop-claim-body {
    padding: var(--space-4) var(--space-5) var(--space-5);
}
.gg-shop-claim-lead {
    margin: 0 0 var(--space-4);
    max-width: 40rem;
}
.gg-shop-claim .gg-tile-grid {
    margin: 0;
}
.gg-tile.is-claim {
    border-color: rgba(242, 110, 34, 0.28);
}

.gg-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0;
}
.gg-filter {
    appearance: none;
    -webkit-appearance: none;
    min-height: 36px;
    padding: 0 var(--space-4);
    background: var(--surface-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--gg-text-muted);
    font: var(--type-small);
    font-weight: 600;
    font-family: var(--gg-font-body);
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.gg-filter:hover {
    border-color: var(--gg-border-strong);
    color: var(--gg-text);
    background: var(--surface-hover);
}
.gg-filter.is-active {
    border-color: var(--gg-accent);
    color: #fff;
    background: var(--surface-selected);
}

.gg-vault-head { display: none; }
.gg-vault-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-5);
    flex-wrap: wrap;
    margin-bottom: var(--space-2);
}
.gg-vault-page .gg-page-title { margin-bottom: var(--space-2); }

.gg-balance-strip {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--surface-elevated);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
    flex-shrink: 1;
}
.gg-balance-block {
    padding: var(--space-3) var(--space-4);
    flex: 1 1 auto;
    min-width: 0;
}
.gg-balance-block-link {
    color: inherit;
    text-decoration: none;
    transition: background 0.15s ease;
}
.gg-balance-block-link:hover,
.gg-balance-block-link:focus-visible {
    background: rgba(255, 255, 255, 0.04);
    outline: none;
}
.gg-balance-label {
    display: block;
    font: var(--type-caption);
    color: var(--gg-text-muted);
    margin-bottom: var(--space-1);
}
.gg-balance-value {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 1.5rem;
}
.gg-balance-value img { width: 18px; height: 18px; }
.gg-balance-value strong {
    font: var(--type-heading);
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}
.gg-balance-divider {
    width: 1px;
    background: var(--border-muted);
    flex-shrink: 0;
}
.gg-balance-metric-tail {
    display: contents;
}
.gg-balance-metric-tail[hidden] {
    display: none !important;
}
.gg-balance-block.is-fresh .gg-balance-value strong {
    color: var(--gg-accent);
}

.gg-inv-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--space-2);
    max-width: 100%;
    min-width: 0;
}
.gg-inv-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-1);
    padding: var(--space-3) var(--space-4);
    background: var(--surface-elevated);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    min-width: 5.5rem;
}
.gg-inv-stat-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.gg-inv-stat-link:hover,
.gg-inv-stat-link:focus-visible {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-primary);
    outline: none;
}
.gg-inv-stat-label {
    font: var(--type-caption);
    color: var(--gg-text-muted);
}
.gg-inv-stat-value {
    font: var(--type-heading);
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
    min-height: 1.5rem;
}

@media (max-width: 720px) {
    .gg-inv-head {
        gap: var(--space-4);
        padding: var(--space-4);
    }
    .gg-inv-stats {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
    }
    .gg-inv-stat {
        min-width: 0;
        width: 100%;
    }
}

.gg-wallet-chip {
    background: var(--surface-input);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    min-width: min(150px, 100%);
}

.gg-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: var(--space-4);
}
@media (max-width: 720px) {
    .gg-tile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-3);
    }
    .gg-tile-media {
        height: 108px;
        padding: var(--space-2);
    }
    .gg-tile-media img {
        width: 72px;
        height: 72px;
        max-width: 72px;
        max-height: 72px;
    }
    .gg-tile-media.is-cover {
        height: 118px;
    }
    .gg-tile-media.is-cover-frame img {
        padding: 8px;
    }
    .gg-tile-body {
        padding: var(--space-2) var(--space-3) var(--space-1);
        display: flex;
        flex-direction: column;
    }
    .gg-tile-title {
        font-size: 0.95rem;
        line-height: 1.25;
        min-height: calc(1.25em * 2);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .gg-tile-category {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .gg-tile-meta {
        min-height: 1.5rem;
        margin-top: 6px;
    }
    .gg-tile-limit-note {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin: 0;
    }
    .gg-tile-contains {
        width: auto;
        margin: 0;
        padding: 0;
        min-height: 0;
        font-size: 0.75rem;
    }
    .gg-tile-limit {
        top: 6px;
        right: 6px;
        padding: 2px 5px;
        font-size: 0.68rem;
    }
    .gg-tile-limit span {
        display: none;
    }
    .gg-tile-foot {
        padding: var(--space-2) var(--space-3) var(--space-3);
        gap: var(--space-2);
    }
    .gg-cost {
        font-size: 0.95rem;
        gap: 4px;
    }
    .gg-cost img {
        width: 14px;
        height: 14px;
    }
    .gg-tile-foot .gg-btn-sm {
        padding: 0 10px;
        min-height: 34px;
        font-size: 0.8rem;
    }
}
@media (max-width: 380px) {
    .gg-tile-grid {
        gap: var(--space-2);
    }
    .gg-tile-media {
        height: 92px;
    }
    .gg-tile-media.is-cover {
        height: 100px;
    }
}
.gg-tile {
    display: flex;
    flex-direction: column;
    background: var(--surface-card);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.15s ease, background 0.15s ease;
    text-decoration: none;
    color: inherit;
}
.gg-tile:hover {
    border-color: var(--border-primary);
    background: var(--surface-hover);
}
a.gg-tile {
    cursor: pointer !important;
    user-select: none;
    -webkit-user-select: none;
}
a.gg-tile:hover,
a.gg-tile:active,
a.gg-tile:focus,
a.gg-tile:focus-visible {
    cursor: pointer !important;
}
/*
 * Text/labels inside the tile must not become hit targets.
 * Otherwise Chrome flips between pointer and the I-beam over "Add" / titles.
 * Only Contains stays interactive.
 */
a.gg-tile .gg-tile-media,
a.gg-tile .gg-tile-media *,
a.gg-tile .gg-tile-title,
a.gg-tile .gg-tile-category,
a.gg-tile .gg-tile-limit-note,
a.gg-tile .gg-tile-limit,
a.gg-tile .gg-tile-meta,
a.gg-tile .gg-cost,
a.gg-tile .gg-cost *,
a.gg-tile .gg-tile-foot,
a.gg-tile .gg-tile-foot * {
    pointer-events: none !important;
    user-select: none;
    -webkit-user-select: none;
}
a.gg-tile .gg-tile-contains {
    pointer-events: auto !important;
    cursor: pointer !important;
    user-select: none;
    -webkit-user-select: none;
}
a.gg-tile:focus-visible {
    outline: 2px solid var(--accent, #e07a3a);
    outline-offset: 2px;
}
.gg-tile.is-soft {
    opacity: 0.72;
}
.gg-tile-media {
    position: relative;
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.04), transparent 60%),
        #10141a;
    border-bottom: 1px solid var(--border-muted);
    padding: var(--space-3);
}
.gg-tile-media img {
    width: 96px;
    height: 96px;
    max-width: 96px;
    max-height: 96px;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
}
.gg-tile-media.is-cover {
    height: 150px;
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
}
.gg-tile-media.is-cover img {
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
}
.gg-tile-media.is-cover-bg img {
    object-fit: cover;
    object-position: center top;
}
.gg-tile-media.is-cover-frame img {
    object-fit: contain;
    object-position: center;
    padding: 12px;
    background: var(--surface-input);
}
.gg-tile-badge { display: none; }
.gg-tile-limit {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-muted);
    color: var(--gg-text-muted);
    font: var(--type-caption);
    font-weight: 600;
    line-height: 1;
    z-index: 1;
}
.gg-tile-limit-icon {
    display: block;
    flex-shrink: 0;
}
.gg-tile-limit-note {
    margin: 0;
    color: var(--gg-text-muted);
    font: var(--type-caption);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gg-product-limit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 10px 0 0;
    color: var(--gg-text-muted);
    font: var(--type-small);
    font-weight: 600;
}
.gg-product-limit-block {
    margin: 0 0 var(--space-3);
    padding: 10px 12px;
    background: var(--surface-input);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    color: var(--gg-text);
    font: var(--type-small);
}
.gg-tile-body {
    display: flex;
    flex-direction: column;
    padding: var(--space-3) var(--space-4) var(--space-2);
    flex: 1;
    min-height: 0;
}
.gg-tile-title {
    font: var(--type-title);
    margin: 0 0 var(--space-1);
    line-height: 1.3;
    min-height: calc(1.3em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.gg-tile-category,
.gg-tile-desc {
    margin: 0;
    color: var(--gg-text-muted);
    font: var(--type-small);
}
.gg-tile-category {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 1.25em;
}
.gg-tile-meta {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
    min-height: 1.5rem;
}
.gg-tile-contains {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--gg-accent, #e07a3a);
    font: var(--type-small);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--gg-accent, #e07a3a) 45%, transparent);
    text-underline-offset: 2px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.gg-tile-contains:hover,
.gg-tile-contains:focus-visible {
    color: #fff;
    text-decoration-color: currentColor;
    outline: none;
}
a.gg-tile .gg-tile-contains {
    position: relative;
    z-index: 1;
}
.gg-contains-dialog {
    width: min(100%, 400px);
    max-height: min(80vh, 560px);
    display: flex;
    flex-direction: column;
}
.gg-contains-list {
    margin: 0 0 var(--space-4);
    padding: 0 0 0 1.15em;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    color: var(--gg-text);
    font: var(--type-body);
}
.gg-contains-list li {
    margin: 0 0 8px;
    padding-left: 2px;
    line-height: 1.4;
}
.gg-contains-list li:last-child {
    margin-bottom: 0;
}
.gg-product-contains {
    margin: 14px 0 0;
}
.gg-product-contains-title {
    margin: 0 0 8px;
    font: var(--type-small);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--gg-text-muted);
}
.gg-product-contains-list {
    margin: 0;
    padding: 0 0 0 1.15em;
    color: var(--gg-text);
    font: var(--type-body);
}
.gg-product-contains-list li {
    margin: 0 0 6px;
    line-height: 1.4;
}
.gg-product-contains-list li:last-child {
    margin-bottom: 0;
}
.gg-tile-desc {
    display: none;
}
.gg-tile-meta {
    margin-top: var(--space-2);
    font: var(--type-caption);
    color: var(--gg-text-muted);
}
.gg-tile-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-top: auto;
    padding: var(--space-3) var(--space-4) var(--space-4);
    border-top: 1px solid var(--border-muted);
}
.gg-cost {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font: var(--type-title);
}
.gg-cost img { width: 16px; height: 16px; }

.gg-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.gg-confirm {
    max-width: 640px;
    margin: 0 auto;
}
.gg-confirm-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gg-border);
    font: var(--type-title);
    color: var(--gg-text);
}
.gg-confirm-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--gg-border);
    align-items: center;
}
.gg-confirm-body { padding: 18px 20px 22px; }
.gg-success-text { color: var(--gg-success); }

/* Purchase confirm: transaction first, art as identity thumb */
.gg-back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    color: var(--gg-text-muted);
    text-decoration: none;
    font: var(--type-small);
    font-weight: 600;
}
.gg-back-link:hover { color: var(--gg-text); }

.gg-product {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.gg-confirm-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    padding: var(--space-5);
    background: var(--surface-card);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
}

.gg-confirm-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.gg-confirm-thumb {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-input);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: var(--space-2);
}
.gg-confirm-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gg-confirm-item-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.gg-confirm-item-copy .gg-page-title {
    margin: 0;
    font: var(--type-heading);
}

.gg-product-kicker {
    margin: 0;
    font: var(--type-caption);
    color: var(--gg-text-muted);
}
.gg-product-desc {
    margin: 0;
    color: var(--gg-text-muted);
    font: var(--type-small);
}
.gg-product-visual-empty {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--surface-elevated);
    border: 1px dashed var(--border-primary);
}

.gg-confirm-summary {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.gg-confirm-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}
.gg-confirm-price-label {
    font: var(--type-small);
    color: var(--gg-text-muted);
}
.gg-confirm-price-value {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font: var(--type-heading);
}
.gg-confirm-price-value img {
    width: 20px;
    height: 20px;
}

.gg-product-ledger {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4);
    background: var(--surface-input);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
}
.gg-product-ledger-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    font: var(--type-small);
    color: var(--gg-text-muted);
}
.gg-product-ledger-row strong {
    color: var(--gg-text);
    font-weight: 600;
}

.gg-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
}
.gg-product-actions form { margin: 0; }
.gg-product-actions .gg-btn {
    white-space: nowrap;
}
.gg-product-note {
    margin: 0;
    color: var(--gg-text-muted);
    font: var(--type-caption);
}

.gg-gift-panel {
    margin-top: var(--space-5);
    padding-top: var(--space-5);
    border-top: 1px solid var(--border-muted);
}
.gg-gift-toggle {
    list-style: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}
.gg-gift-toggle::-webkit-details-marker { display: none; }
.gg-gift-toggle::marker { content: ""; }
.gg-gift-toggle-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
}
.gg-gift-title {
    margin: 0;
    font: var(--type-title);
}
.gg-gift-copy {
    margin: 0;
}
.gg-gift-toggle-hint {
    flex-shrink: 0;
    margin-top: 0.2rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    color: var(--gg-text-muted);
    font: var(--type-caption);
    font-weight: 600;
}
.gg-gift-panel[open] .gg-gift-toggle-hint { display: none; }
.gg-gift-panel[open] .gg-gift-toggle {
    margin-bottom: var(--space-3);
}
.gg-gift-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    align-items: stretch;
    width: 100%;
    max-width: none;
}
.gg-gift-search {
    position: relative;
    z-index: 5;
}
.gg-gift-search[hidden],
.gg-gift-search input[hidden] {
    display: none !important;
}
.gg-gift-suggest {
    position: absolute;
    z-index: 40;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--surface-elevated);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    /* Cap to ~3 rows so the list never spills into the footer. */
    max-height: 9.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.gg-gift-suggest[hidden] {
    display: none !important;
}
.gg-gift-suggest-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
    padding: var(--space-2) var(--space-3);
    border: 0;
    background: transparent;
    color: var(--gg-text);
    text-align: left;
    cursor: pointer;
    font: var(--type-small);
}
.gg-gift-suggest-item:hover,
.gg-gift-suggest-item:focus-visible {
    background: var(--surface-hover);
    outline: none;
}
.gg-gift-suggest-item img {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.gg-gift-selected {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--surface-elevated);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
}
.gg-gift-selected[hidden] {
    display: none !important;
}
.gg-gift-selected img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.gg-gift-selected-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.gg-gift-selected-meta strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gg-gift-summary {
    margin: 0;
    font: var(--type-small);
    color: var(--gg-text-muted);
}
.gg-gift-summary[hidden] {
    display: none !important;
}

@media (max-width: 640px) {
    .gg-confirm-card {
        padding: var(--space-4);
        gap: var(--space-4);
    }
    .gg-confirm-item {
        flex-direction: column;
    }
    .gg-confirm-thumb {
        width: 72px;
        height: 72px;
    }
    .gg-product-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .gg-product-actions form,
    .gg-product-actions .gg-btn {
        width: 100%;
    }
    .gg-product-actions .gg-btn {
        justify-content: center;
    }
    .gg-gift-toggle {
        align-items: center;
    }
}

@media (max-width: 520px) {
    .gg-confirm-item-copy .gg-page-title {
        font-size: 1.35rem;
    }
}

/* VIP presence studio */
.gg-presence {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}
.gg-presence-studio {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.45fr);
    gap: var(--space-5);
    align-items: start;
}
.gg-presence-rail {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    position: sticky;
    top: calc(var(--gg-topbar-h) + var(--space-4));
}
.gg-presence-commands-card {
    padding: var(--space-4);
    background: var(--surface-card);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.gg-presence-commands-card[hidden] {
    display: none !important;
}
.gg-presence-join {
    width: 100%;
}
.gg-presence-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    min-width: 0;
}
.gg-presence-head-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    min-width: 0;
}
.gg-presence-tabs {
    display: inline-flex;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface-input);
}
.gg-presence-tab {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 var(--space-4);
    font: var(--type-small);
    font-weight: 600;
    color: var(--gg-text-muted);
    text-decoration: none;
    border-right: 1px solid var(--border-muted);
}
.gg-presence-tab:last-child {
    border-right: 0;
}
.gg-presence-tab:hover,
.gg-presence-tab:focus-visible {
    color: #fff;
}
.gg-presence-tab.is-active {
    background: var(--surface-selected);
    color: #fff;
}
.gg-pet-picks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
}
.gg-pet-pick {
    margin: 0;
    cursor: pointer;
}
.gg-pet-pick input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.gg-pet-pick-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 88px;
    padding: var(--space-4);
    background: var(--surface-input);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    color: var(--gg-text-muted);
}
.gg-pet-pick-card strong {
    color: #fff;
    font: var(--type-small);
    font-weight: 700;
}
.gg-pet-pick-card span:last-child {
    font: var(--type-caption);
}
.gg-pet-pick-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
    border-radius: 999px;
    background: var(--surface-selected);
    color: #fff;
    font: var(--type-small);
    font-weight: 700;
}
.gg-pet-pick input:checked + .gg-pet-pick-card {
    border-color: var(--border-primary);
    background: var(--surface-selected);
    color: #c2cad8;
}
.gg-pet-pick input:focus-visible + .gg-pet-pick-card {
    outline: 2px solid var(--gg-accent, #f26e22);
    outline-offset: 2px;
}
.gg-pet-toolbar {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin: 0 0 var(--space-5);
    padding: 0 0 var(--space-5);
    border-bottom: 1px solid var(--border-muted);
}
.gg-pet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-4);
}
.gg-pet-toolbar .gg-pet-actions {
    margin-top: 0;
}
.gg-pet-actions .gg-btn {
    min-height: 40px;
}
#vipPetForm .gg-pet-actions .gg-btn {
    flex: 1 1 0;
    min-width: 5.5rem;
    justify-content: center;
}
.gg-pet-status {
    margin: var(--space-3) 0 0;
    min-height: 1.3em;
    font: var(--type-small);
    font-weight: 600;
    color: var(--gg-text-muted);
}
.gg-pet-toolbar .gg-pet-status {
    margin: 0;
}
.gg-pet-status.is-ok {
    color: var(--gg-success, #2ecc71);
}
.gg-pet-status.is-error {
    color: var(--gg-danger);
}
.gg-pet-status.is-busy {
    color: var(--gg-text-muted);
}
#vipPetForm.is-busy .gg-pet-actions .gg-btn {
    opacity: 0.65;
}
.gg-pet-howto {
    display: grid;
    gap: var(--space-3);
    margin: var(--space-5) 0 0;
}
.gg-pet-howto div {
    margin: 0;
}
.gg-pet-howto dt {
    font: var(--type-small);
    font-weight: 700;
    color: #fff;
}
.gg-pet-howto dd {
    margin: 2px 0 0;
    font: var(--type-caption);
    color: var(--gg-text-muted);
}
.gg-pet-clips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-5);
}
.gg-pet-clip {
    margin: 0;
    min-width: 0;
}
.gg-pet-clip img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-muted);
    background: var(--surface-input);
}
.gg-pet-clip figcaption {
    margin-top: 8px;
    font: var(--type-caption);
    color: var(--gg-text-muted);
}
.gg-pet-clip figcaption strong {
    display: block;
    color: #fff;
    font-weight: 700;
}
.gg-pet-online {
    margin: 0;
    font: var(--type-caption);
    color: var(--gg-success, #2ecc71);
}
.gg-pet-onboard {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}
.gg-pet-onboard[hidden],
#vipPetHatchForm[hidden],
#vipPetForm[hidden] {
    display: none !important;
}
[data-pet-studio][data-has-chicken] #vipPetHatchForm {
    display: none !important;
}
[data-pet-studio]:not([data-has-chicken]) #vipPetForm {
    display: none !important;
}
.gg-pet-onboard-copy {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.gg-pet-onboard-kicker {
    margin: 0;
    font: var(--type-caption);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ff9f43;
}
.gg-pet-onboard-lead {
    margin: 0;
    font: var(--type-body);
    color: var(--gg-text-muted);
    max-width: 36rem;
}
.gg-pet-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
}
.gg-pet-field .gg-input {
    margin: 0;
}
.gg-pet-welcome-dialog {
    width: min(100%, 520px);
}
.gg-pet-welcome-dialog .gg-modal-message p {
    margin: 0 0 var(--space-3);
}
.gg-pet-welcome-dialog .gg-modal-message p:last-child {
    margin-bottom: 0;
}
.gg-pet-welcome-again {
    margin: var(--space-3) 0 0;
}
.gg-text-btn {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: #ff9f43;
    font: var(--type-caption);
    font-weight: 700;
    cursor: pointer;
}
.gg-text-btn:hover,
.gg-text-btn:focus-visible {
    text-decoration: underline;
}
#vipPetHatchForm .gg-input {
    width: 100%;
    max-width: 20rem;
}
#vipPetHatchForm .gg-pet-actions {
    margin-top: 0;
}
.gg-pet-name,
.gg-presence-preview.gg-pet-name {
    color: #ff9f43;
    font: var(--type-heading);
    font-weight: 800;
}
.gg-pet-age,
.gg-pet-age-inline {
    margin: 0.15rem 0 0;
    font: var(--type-caption);
    color: var(--gg-text-muted);
}
.gg-pet-age[hidden],
.gg-pet-age-inline[hidden] {
    display: none !important;
}
.gg-pet-story {
    margin: var(--space-4) 0 0;
    padding: var(--space-3) 0 0;
    border-top: 1px solid rgba(255, 159, 67, 0.18);
}
.gg-pet-story-empty {
    margin: 0.35rem 0 0;
    font: var(--type-caption);
    color: var(--gg-text-muted);
}
.gg-pet-story-list {
    display: grid;
    gap: 0.55rem;
    margin: 0.4rem 0 0;
}
.gg-pet-story-list div {
    display: grid;
    gap: 0.1rem;
}
.gg-pet-story-list dt {
    font: var(--type-caption);
    color: var(--gg-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.gg-pet-story-list dd {
    margin: 0;
    font: var(--type-body);
    color: var(--gg-text);
}
.gg-pet-onboard-note {
    margin: 0;
    font: var(--type-caption);
    color: var(--gg-text-muted);
}
.gg-pet-color-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    margin: 0;
}
.gg-pet-color-field .gg-presence-field-label {
    margin: 0;
}
.gg-palette-grid.gg-pet-swatches {
    margin: 0;
    width: max-content;
    max-width: 100%;
    grid-template-columns: repeat(8, 32px);
    gap: 8px;
}
.gg-pet-swatches .gg-swatch {
    width: 32px;
    height: 32px;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 5px;
}
.gg-pet-swatches .gg-swatch.is-on {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 0 2px var(--gg-accent, #f26e22);
}
.gg-pet-stage .gg-presence-preview {
    min-height: 0;
}
.gg-pet-stage {
    align-items: center;
    text-align: center;
    min-height: 0;
}
[data-pet-studio][data-has-chicken] .gg-pet-stage {
    min-height: 240px;
}
[data-pet-studio]:not([data-has-chicken]) .gg-presence-section-title {
    margin: 0;
}
.gg-pet-portrait {
    width: min(100%, 200px);
    margin: var(--space-2) auto;
}
.gg-pet-portrait img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45));
}

.gg-presence[data-active-tab="pet"]:has([data-pet-studio]:not([data-has-chicken])) {
    gap: var(--space-3);
}
[data-pet-studio]:not([data-has-chicken]) {
    width: 100%;
    max-width: none;
    margin: 0;
    grid-template-columns: minmax(260px, 0.7fr) minmax(380px, 1.3fr);
    gap: 0;
    align-items: stretch;
    background: var(--surface-card);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}
[data-pet-studio]:not([data-has-chicken]) .gg-presence-rail {
    position: static;
    gap: 0;
    min-width: 0;
}
[data-pet-studio]:not([data-has-chicken]) .gg-pet-stage {
    height: 100%;
    min-height: 0;
    justify-content: center;
    padding: var(--space-5) var(--space-4);
    background:
        radial-gradient(ellipse at 50% 40%, rgba(242, 110, 34, 0.2), transparent 56%),
        linear-gradient(180deg, #1a2230 0%, #10151e 100%);
    border: 0;
    border-radius: 0;
    border-right: 1px solid var(--border-muted);
}
[data-pet-studio]:not([data-has-chicken]) .gg-presence-stage-label {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 159, 67, 0.9);
}
[data-pet-studio]:not([data-has-chicken]) .gg-pet-portrait {
    position: relative;
    width: min(100%, 188px);
    margin: var(--space-3) auto var(--space-3);
}
[data-pet-studio]:not([data-has-chicken]) .gg-pet-portrait::before {
    content: "";
    position: absolute;
    inset: 14% 10% 6%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 110, 34, 0.42), transparent 68%);
    filter: blur(14px);
    z-index: 0;
}
[data-pet-studio]:not([data-has-chicken]) .gg-pet-portrait img {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5));
}
[data-pet-studio]:not([data-has-chicken]) .gg-pet-name {
    font: var(--type-heading);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.15;
    min-height: 1.15em;
}
[data-pet-studio]:not([data-has-chicken]) .gg-pet-online {
    margin-top: var(--space-2);
    color: var(--gg-text-muted);
}
[data-pet-studio]:not([data-has-chicken]) .gg-presence-panel {
    background: transparent;
    border: 0;
    border-radius: 0;
    min-width: 0;
    box-shadow: none;
}
[data-pet-studio]:not([data-has-chicken]) .gg-presence-panel-head {
    border-bottom: 0;
    padding: var(--space-5) var(--space-5) 0;
}
[data-pet-studio]:not([data-has-chicken]) .gg-presence-section-title {
    font: var(--type-heading);
    font-weight: 700;
}
[data-pet-studio]:not([data-has-chicken]) .gg-presence-panel-body {
    padding: var(--space-3) var(--space-5) var(--space-5);
    gap: 0;
}
[data-pet-studio]:not([data-has-chicken]) .gg-pet-onboard {
    gap: var(--space-4);
}
[data-pet-studio]:not([data-has-chicken]) .gg-pet-onboard-copy {
    gap: 6px;
}
[data-pet-studio]:not([data-has-chicken]) .gg-pet-onboard-lead {
    max-width: none;
}
[data-pet-studio]:not([data-has-chicken]) .gg-pet-field,
[data-pet-studio]:not([data-has-chicken]) .gg-pet-color-field {
    width: 100%;
    gap: var(--space-2);
}
[data-pet-studio]:not([data-has-chicken]) .gg-presence-field-label {
    font: var(--type-small);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #c5ccd8;
}
[data-pet-studio]:not([data-has-chicken]) #vipPetHatchForm .gg-pet-name-input {
    width: 100%;
    max-width: none;
    min-height: 44px;
    padding: 0 var(--space-4);
    font: var(--type-title);
    font-weight: 700;
    letter-spacing: 0.02em;
    background: var(--surface-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
}
[data-pet-studio]:not([data-has-chicken]) #vipPetHatchForm .gg-pet-name-input:focus {
    border-color: var(--gg-accent);
    box-shadow: 0 0 0 3px rgba(242, 110, 34, 0.22);
}
[data-pet-studio]:not([data-has-chicken]) .gg-pet-swatch-tray {
    width: 100%;
    padding: 10px;
    background: var(--surface-input);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
}
[data-pet-studio]:not([data-has-chicken]) #vipPetHatchForm .gg-pet-swatches {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
}
[data-pet-studio]:not([data-has-chicken]) #vipPetHatchForm .gg-pet-swatches .gg-swatch {
    width: auto;
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
    border-radius: 6px;
}
[data-pet-studio]:not([data-has-chicken]) .gg-pet-hatch-go {
    width: 100%;
    min-height: 44px;
    font: var(--type-title);
    font-family: var(--gg-font-display), sans-serif;
    font-weight: 700;
    letter-spacing: 0.06em;
    box-shadow: 0 8px 18px rgba(242, 110, 34, 0.28);
}
[data-pet-studio]:not([data-has-chicken]) .gg-pet-hatch-go:hover {
    box-shadow: 0 12px 30px rgba(255, 132, 61, 0.4);
}
[data-pet-studio]:not([data-has-chicken]) .gg-pet-actions {
    width: 100%;
}
[data-pet-studio]:not([data-has-chicken]) #vipPetHatchForm .gg-pet-status {
    margin: 0;
}

@media (max-width: 960px) {
    [data-pet-studio]:not([data-has-chicken]) {
        grid-template-columns: 1fr;
        max-width: 640px;
        margin: 0 auto;
    }
    [data-pet-studio]:not([data-has-chicken]) .gg-pet-stage {
        min-height: 0;
        padding: var(--space-5) var(--space-4);
        border-right: 0;
        border-bottom: 1px solid var(--border-muted);
    }
    [data-pet-studio]:not([data-has-chicken]) .gg-pet-portrait {
        width: min(100%, 200px);
        margin: var(--space-3) auto var(--space-3);
    }
    [data-pet-studio]:not([data-has-chicken]) .gg-pet-name {
        font-size: 1.85rem;
    }
    [data-pet-studio]:not([data-has-chicken]) .gg-presence-panel-head {
        padding: var(--space-5) var(--space-5) 0;
    }
    [data-pet-studio]:not([data-has-chicken]) .gg-presence-panel-body {
        padding: var(--space-4) var(--space-5) var(--space-5);
    }
}
@media (max-width: 800px) {
    .gg-pet-picks,
    .gg-pet-clips {
        grid-template-columns: 1fr;
    }
}

.gg-presence-stage {
    padding: var(--space-6) var(--space-5);
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-3);
    background: var(--surface-card);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
}
.gg-presence-stage-label {
    margin: 0;
    font: var(--type-caption);
    color: var(--gg-text-muted);
}
.gg-presence-preview {
    margin: 0;
    font: var(--type-heading);
    line-height: 1.35;
    color: #fff;
    word-break: break-word;
}
.gg-presence-preview .gg-preview-name,
.gg-presence-preview .gg-preview-msg {
    display: inline;
}

.gg-presence-panel {
    display: flex;
    flex-direction: column;
    background: var(--surface-card);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-width: 0;
}
.gg-presence-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5);
    border-bottom: 1px solid var(--border-muted);
}
.gg-presence-section-title {
    margin: 0 0 var(--space-2);
    font: var(--type-title);
}
.gg-presence-panel-head .gg-muted {
    margin: 0;
    font: var(--type-small);
    max-width: 36rem;
}
.gg-presence-panel-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-5);
}
.gg-presence-panel-foot {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--border-muted);
    background: var(--surface-elevated);
}
.gg-presence-panel-foot > .gg-btn {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
}
@media (max-width: 700px) {
    /* Keep Save / Clear (and colour actions) on one row when possible. */
    .gg-presence-join .gg-presence-panel-foot {
        flex-wrap: nowrap;
        gap: var(--space-2);
    }
    .gg-presence-join .gg-presence-panel-foot > .gg-btn {
        flex: 1 1 0;
        white-space: nowrap;
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }
    .gg-presence-actions {
        display: flex;
        flex-wrap: nowrap;
        gap: var(--space-2);
        width: 100%;
    }
    .gg-presence-actions .gg-btn {
        flex: 1 1 0;
        justify-content: center;
        min-width: 0;
        white-space: nowrap;
    }
}

.gg-presence-hex-row {
    display: none;
}
.gg-presence-field-label {
    font: var(--type-small);
    font-weight: 600;
    color: var(--gg-text-muted);
}
.gg-presence-field-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
}
.gg-presence-char-count {
    font: var(--type-caption);
    color: var(--gg-text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.gg-presence-char-count.is-near {
    color: #f2ad22;
}
.gg-presence-char-count.is-full {
    color: var(--gg-danger);
}
.gg-presence-panel-body textarea {
    width: 100%;
    min-height: 88px;
    padding: var(--space-3) var(--space-4);
    background: var(--surface-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--gg-text);
    font: var(--type-body);
    resize: vertical;
}
.gg-presence-panel-body textarea:focus {
    outline: none;
    border-color: var(--gg-accent);
}

.gg-presence-join-status {
    margin: var(--space-3) 0 0;
    font: var(--type-small);
    font-weight: 700;
}
.gg-presence-join-status.is-pending { color: #f2ad22; }
.gg-presence-join-status.is-approved { color: var(--gg-success); }
.gg-presence-join-status.is-silent { color: var(--gg-text-muted); }
.gg-presence-join-status.is-denied { color: var(--gg-danger); }
.gg-join-announce {
    margin: 0 0 var(--space-2);
}

.gg-join-idea {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    margin-top: var(--space-2);
    padding: var(--space-4);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    background:
        linear-gradient(135deg, rgba(242, 110, 34, 0.08) 0%, transparent 42%),
        var(--surface-elevated);
}
.gg-join-idea-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    width: 100%;
}
.gg-join-idea-tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 var(--space-2);
    border-radius: var(--radius-sm);
    background: var(--surface-selected);
    color: var(--gg-accent);
    font: var(--type-caption);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.gg-join-idea-next {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--gg-text-muted);
    font: var(--type-small);
    font-weight: 600;
    cursor: pointer;
}
.gg-join-idea-next:hover,
.gg-join-idea-next:focus-visible {
    color: var(--gg-text);
}
.gg-join-idea-quote {
    margin: 0;
    max-width: 36rem;
    color: var(--gg-text);
    font: var(--type-title);
    font-weight: 600;
    line-height: 1.35;
    font-style: italic;
}
.gg-join-idea-quote::before {
    content: '"';
    color: var(--gg-accent);
    margin-right: 0.12em;
}
.gg-join-idea-quote::after {
    content: '"';
    color: var(--gg-accent);
    margin-left: 0.12em;
}
.gg-join-idea-note {
    margin: 0;
    color: var(--gg-text-muted);
    font: var(--type-caption);
}
.gg-join-approved {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.gg-join-approved-label {
    margin: 0;
    font: var(--type-caption);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gg-text-muted);
}
.gg-join-approved-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.gg-join-approved-chip {
    appearance: none;
    -webkit-appearance: none;
    max-width: 100%;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    background: var(--surface-elevated);
    color: var(--gg-text);
    font: var(--type-small);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.gg-join-approved-chip:hover,
.gg-join-approved-chip:focus-visible {
    border-color: var(--border-primary);
    background: var(--surface-hover);
}
.gg-join-idea-use {
    min-height: 32px;
    padding: 0 var(--space-3);
}

.gg-presence-panel-foot-stack {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
}
.gg-presence-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
}
.gg-apply-target {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}
.gg-apply-target-label {
    font: var(--type-small);
    font-weight: 600;
    color: var(--gg-text-muted);
}

.gg-color-commands {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.gg-command-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--surface-input);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    color: var(--gg-text);
    text-align: left;
    cursor: pointer;
    font: inherit;
}
.gg-command-copy:hover {
    border-color: var(--border-primary);
    background: var(--surface-hover);
}
.gg-command-copy-label {
    font: var(--type-caption);
    color: var(--gg-text-muted);
}
.gg-command-copy code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.95rem;
    color: #fff;
    word-break: break-all;
}
.gg-command-copy-hint {
    position: absolute;
    top: var(--space-3);
    right: var(--space-4);
    font: var(--type-caption);
    color: var(--gg-success);
}

@media (max-width: 960px) {
    .gg-presence-studio {
        grid-template-columns: 1fr;
    }
    .gg-presence-rail {
        position: static;
    }
}
@media (max-width: 700px) {
    .gg-presence-stage { padding: var(--space-5) var(--space-4); min-height: 140px; }
    .gg-presence-panel-head,
    .gg-presence-panel-body,
    .gg-presence-panel-foot,
    .gg-presence-commands-card { padding-left: var(--space-4); padding-right: var(--space-4); }
}

/* -- Support / VIP info -- */
.gg-support {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}
.gg-support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    width: 100%;
}
@media (max-width: 820px) {
    .gg-support-grid { grid-template-columns: 1fr; }
}
.gg-support-hero .gg-page-title {
    margin-top: var(--space-1);
}
.gg-support-thanks {
    padding: var(--space-5);
    background: var(--surface-card);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
}
.gg-support-thanks h2 {
    margin: 0 0 var(--space-3);
    font-size: 1.35rem;
    color: #fff;
}
.gg-support-thanks p {
    margin: 0 0 var(--space-3);
    color: var(--gg-text);
    line-height: 1.65;
    font-size: 1rem;
}
.gg-support-sign {
    margin-top: var(--space-2) !important;
    color: var(--gg-text-muted) !important;
    font-style: italic;
}
.gg-support-block {
    padding: var(--space-5);
    background: var(--surface-card);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
}
.gg-support-block h2 {
    margin: 0 0 var(--space-3);
    font-size: 1.15rem;
    color: #fff;
}
.gg-support-block p {
    margin: 0;
    color: var(--gg-text-muted);
    line-height: 1.6;
}
.gg-support-how {
    width: 100%;
}
.gg-support-how p + p {
    margin-top: var(--space-3);
}
.gg-support-perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.gg-support-perks li {
    position: relative;
    padding-left: 18px;
    color: var(--gg-text);
    line-height: 1.45;
}
.gg-support-perks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gg-accent);
}
.gg-support-donate {
    padding: var(--space-5);
    background: var(--surface-card);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
}
.gg-support-donate h2 {
    margin: 0 0 var(--space-2);
    font-size: 1.25rem;
    color: #fff;
}
.gg-support-donate .gg-lead {
    margin-bottom: var(--space-4);
}
.gg-support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
}

/* -- Connect -- */
.gg-connect {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}
.gg-connect-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: var(--space-5);
    align-items: start;
    width: 100%;
}
.gg-connect-side {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    min-width: 0;
}
.gg-connect-side .gg-connect-howto {
    position: sticky;
    top: calc(var(--gg-topbar-h) + var(--space-4));
}
.gg-connect-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: var(--space-4);
    width: 100%;
}

/* In-game server browser style listing, hub chrome */
.gg-browser {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--surface-card);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-subtle);
}
.gg-browser-head {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.gg-browser-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
}
.gg-browser-name {
    margin: 0;
    font: var(--type-heading);
    font-size: 1.35rem;
    color: #fff;
    letter-spacing: 0.01em;
}
.gg-browser-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
}
.gg-browser-tags li {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    background: var(--surface-hover);
    color: var(--gg-text-muted);
    font: var(--type-caption);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.gg-browser-banner {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--surface-input);
    aspect-ratio: 2 / 1;
}
.gg-browser-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gg-browser-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
    margin: 0;
}
.gg-browser-stats[data-stat-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gg-browser-stats[data-stat-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gg-browser-stats > div {
    min-width: 0;
}
.gg-browser-stats dt {
    margin: 0 0 6px;
    color: var(--gg-text-muted);
    font: var(--type-caption);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.gg-browser-stats dd {
    margin: 0;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: var(--surface-hover);
    color: #fff;
    font: var(--type-title);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gg-browser-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}
.gg-browser-map-view {
    flex: 0 0 auto;
    padding: 1px 7px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--gg-success) 22%, transparent);
    color: var(--gg-success);
    font: var(--type-caption);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}
.gg-browser-map-view:hover {
    background: color-mix(in srgb, var(--gg-success) 34%, transparent);
    color: #b8ebcc;
}
.gg-browser-desc {
    max-height: 11.5rem;
    overflow: auto;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--surface-hover);
    color: var(--gg-text);
    font: var(--type-small);
    line-height: 1.55;
    white-space: pre-wrap;
}
.gg-browser-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}
.gg-browser-join {
    margin-left: auto;
    min-width: 8.5rem;
    justify-content: center;
}
@media (max-width: 640px) {
    .gg-browser {
        padding: var(--space-4);
    }
    .gg-browser-stats,
    .gg-browser-stats[data-stat-count="3"],
    .gg-browser-stats[data-stat-count="2"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gg-browser-join {
        margin-left: 0;
        flex: 1 1 100%;
    }
}
.gg-connect-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}
.gg-connect-players {
    display: inline-flex;
    align-items: baseline;
    gap: var(--space-2);
    font: var(--type-title);
    color: #fff;
}
.gg-connect-status-note {
    margin: var(--space-3) 0 0;
}
.gg-connect-address {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}
.gg-connect-address code,
.gg-connect-console code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.05rem;
    color: #fff;
    word-break: break-all;
}
.gg-connect-console {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    margin: var(--space-4) 0 0;
}
.gg-connect-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    margin-top: var(--space-4);
}
.gg-connect-steps {
    margin: 0;
    padding: 0 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    color: var(--gg-text);
    line-height: 1.55;
}
.gg-connect-login {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    margin: var(--space-5) 0 0;
}
@media (max-width: 900px) {
    .gg-connect-layout,
    .gg-connect-grid { grid-template-columns: 1fr; }
    .gg-connect-side .gg-connect-howto { position: static; }
}

/* -- Wiki -- */
.gg-wiki-preview-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    margin: -8px 0 18px;
    background: rgba(242, 173, 34, 0.12);
    border: 1px solid rgba(242, 173, 34, 0.45);
    border-radius: var(--gg-radius);
}
.gg-wiki-preview-bar-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
}
.gg-wiki-preview-bar strong {
    display: block;
    color: #f2ad22;
    margin-bottom: 2px;
}
.gg-wiki-preview-bar span {
    color: var(--gg-text-muted);
    font-size: 0.88rem;
}
.gg-wiki-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.gg-wiki-preview-actions form { margin: 0; }
.gg-wiki-draft-tag {
    margin-left: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #f2ad22;
}
.gg-wiki-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gg-border);
}
.gg-wiki-search {
    width: 100%;
    margin: 0 0 var(--space-3);
    flex-wrap: nowrap;
}
.gg-wiki-search input {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
}
.gg-wiki-search .gg-btn {
    flex: 0 0 auto;
}
.gg-wiki-shelf-head {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin: 0 0 var(--space-5);
    max-width: 720px;
}
.gg-wiki-shelf {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    width: 100%;
    max-width: 920px;
}
.gg-wiki-book-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: var(--space-4);
    background: var(--gg-bg-panel, var(--surface-card));
    border: 1px solid var(--gg-border, var(--border-muted));
    border-radius: var(--gg-radius-lg, var(--radius-lg));
    text-decoration: none;
    color: inherit;
    box-shadow: var(--gg-shadow, none);
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
a.gg-wiki-book-card:hover {
    border-color: var(--gg-border-strong, #5d667a);
    background: var(--gg-accent-soft, rgba(242, 110, 34, 0.08));
    transform: translateY(-2px);
}
.gg-wiki-book-kicker {
    margin: 0;
    font: var(--type-caption);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gg-text-muted);
}
.gg-wiki-book-title {
    margin: 0;
    font: var(--type-heading);
    font-size: 1.25rem;
    color: #fff;
}
.gg-wiki-book-blurb {
    margin: 0;
    color: var(--gg-text-muted);
    flex: 1;
}
.gg-wiki-book-meta {
    margin: 6px 0 0;
    font: var(--type-caption);
    color: var(--gg-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.gg-wiki-toc-book {
    margin: 14px 0 6px;
    font-size: 0.82rem;
    color: var(--gg-text-muted);
}
.gg-wiki-toc-book a {
    color: inherit;
    text-decoration: none;
}
.gg-wiki-toc-book a:hover {
    color: var(--gg-accent);
}
.gg-wiki-toc-head {
    margin: 0 0 12px;
}
.gg-wiki-toc-root {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--gg-text-muted);
    text-decoration: none;
}
.gg-wiki-toc-root:hover {
    color: var(--gg-accent);
}
.gg-wiki-toc-current {
    margin: 4px 0 0;
    font-size: 1rem;
    font-weight: 650;
    color: #fff;
    line-height: 1.3;
}
.gg-wiki-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: var(--space-5);
    align-items: start;
}
.gg-wiki-nav { position: sticky; top: calc(var(--gg-topbar-h) + var(--space-4)); }
.gg-wiki-nav-toggle {
    display: none;
    width: 100%;
    min-height: var(--gg-touch);
    margin-bottom: var(--space-2);
    background: var(--gg-bg-panel);
    border: 1px solid var(--gg-border);
    color: #fff;
    border-radius: var(--gg-radius);
    font: var(--type-title);
}
.gg-wiki-toc {
    background: var(--gg-bg-panel);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-lg);
    padding: 16px 14px 18px;
}
.gg-wiki-toc h2 {
    font: var(--type-title);
    margin: 0 0 var(--space-3);
    color: var(--gg-text);
}
.gg-wiki-toc ol { list-style: none; }
.gg-wiki-toc a {
    display: flex;
    gap: 8px;
    padding: 9px 10px;
    min-height: 40px;
    color: var(--gg-text-muted);
    text-decoration: none;
    border-radius: var(--gg-radius);
    font-size: 0.92rem;
    align-items: center;
}
.gg-wiki-toc a:hover,
.gg-wiki-toc a.is-active {
    background: var(--gg-accent-soft);
    color: #fff;
}
.gg-wiki-num { color: #5d667a; min-width: 1.4em; }
.gg-wiki-article {
    background: var(--gg-bg-panel);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-lg);
    padding: var(--space-6) var(--space-6) var(--space-7);
    min-height: 480px;
    box-shadow: var(--gg-shadow);
}
.gg-wiki-article h1 {
    font: var(--type-heading);
    margin-bottom: var(--space-2);
}
.gg-wiki-article-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
}
.gg-wiki-article-head-main {
    min-width: 0;
    flex: 1 1 16rem;
}
.gg-wiki-article-head-main .gg-page-kicker {
    margin-bottom: var(--space-1);
}
.gg-wiki-article-head-main .gg-page-title {
    margin-bottom: var(--space-2);
}
.gg-wiki-article-head-actions {
    flex: 0 0 auto;
    padding-top: 0.35rem;
}
.gg-wiki-body {
    margin-top: var(--space-4);
    color: #d7dde8;
    line-height: 1.75;
    font-size: 1.05rem;
}
.gg-wiki-body mark.gg-search-hit,
.gg-wiki-article h1 mark.gg-search-hit,
.gg-wiki-toc mark.gg-search-hit {
    background: rgba(245, 197, 24, 0.28);
    color: #fff6c8;
    border: 1px dotted #f5c518;
    border-radius: 3px;
    padding: 0 3px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.gg-wiki-body h2,
.gg-wiki-body h3 {
    font-family: var(--gg-font-display);
    color: #fff;
    margin: 28px 0 12px;
    scroll-margin-top: 96px;
}
.gg-wiki-body h2 { font-size: 1.4rem; border-bottom: 1px solid var(--gg-border); padding-bottom: 8px; }
.gg-wiki-body h3 { font-size: 1.15rem; color: var(--gg-accent); }
.gg-wiki-body p { margin-bottom: 14px; }
.gg-wiki-body ul,
.gg-wiki-body ol { padding-left: 1.35rem; margin: 0 0 16px; }
.gg-wiki-body li { margin-bottom: 8px; }
.gg-wiki-body a { color: var(--gg-accent); }
.gg-wiki-body .wiki-callout {
    border-left: 3px solid var(--gg-accent);
    background: var(--gg-accent-soft);
    padding: 12px 14px;
    margin: 14px 0;
    border-radius: 0 6px 6px 0;
}
.gg-wiki-body .wiki-callout.warn {
    border-left-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}
.gg-wiki-body .wiki-callout.explain,
.gg-wiki-body .wiki-callout.info,
.gg-wiki-body .wiki-callout.note {
    border-left-color: #4ea3e8;
    background: rgba(78, 163, 232, 0.1);
}
.gg-wiki-body .wiki-callout.tip {
    border-left-color: #3dba74;
    background: rgba(61, 186, 116, 0.1);
}
.gg-wiki-body .wiki-callout.danger {
    border-left-color: #ff5252;
    background: rgba(255, 82, 82, 0.12);
}
.gg-wiki-body .wiki-announce {
    margin: 18px 0;
    padding: 16px 18px;
    border: 1px solid rgba(242, 110, 34, 0.45);
    border-radius: var(--gg-radius);
    background: linear-gradient(135deg, rgba(242, 110, 34, 0.16), rgba(242, 110, 34, 0.04));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.gg-wiki-body .wiki-announce > :first-child { margin-top: 0; }
.gg-wiki-body .wiki-announce > :last-child { margin-bottom: 0; }
.gg-wiki-body .wiki-box {
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius);
    background: var(--gg-bg-input);
}
.gg-wiki-body .wiki-box.is-accent {
    border-color: rgba(242, 110, 34, 0.45);
    background: var(--gg-accent-soft);
}
.gg-wiki-body .wiki-box.is-muted {
    color: var(--gg-text-muted);
}
.gg-wiki-body .wiki-box.is-warn {
    border-color: rgba(231, 76, 60, 0.45);
    background: rgba(231, 76, 60, 0.08);
}
.gg-wiki-body .wiki-box.is-danger {
    border-color: rgba(255, 82, 82, 0.5);
    background: rgba(255, 82, 82, 0.1);
}
.gg-wiki-body .wiki-quote {
    margin: 16px 0;
    padding: 10px 16px;
    border-left: 3px solid var(--gg-border-strong, #5d667a);
    color: var(--gg-text-muted);
    background: transparent;
}
.gg-wiki-body .wiki-align.is-center { text-align: center; }
.gg-wiki-body .wiki-align.is-right { text-align: right; }
.gg-wiki-body .wiki-align.is-left { text-align: left; }
.gg-wiki-body .wiki-align.is-center ul,
.gg-wiki-body .wiki-align.is-center ol {
    display: inline-block;
    text-align: left;
}
.gg-wiki-body .wiki-align.is-center .wiki-media,
.gg-wiki-body .wiki-align.is-center .wiki-img {
    margin-left: auto;
    margin-right: auto;
}
.gg-wiki-body .wiki-align.is-right .wiki-media,
.gg-wiki-body .wiki-align.is-right .wiki-img {
    margin-left: auto;
    margin-right: 0;
}
.gg-wiki-body .wiki-hr {
    border: 0;
    border-top: 1px solid var(--gg-border);
    margin: 22px 0;
}
.gg-wiki-body .wiki-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 14px 0;
    border-radius: var(--gg-radius);
    border: 1px solid var(--gg-border);
}
.gg-wiki-body .wiki-img.is-center { margin-left: auto; margin-right: auto; }
.gg-wiki-body .wiki-img.is-left { margin-right: auto; }
.gg-wiki-body .wiki-img.is-right { margin-left: auto; }
.gg-wiki-body .wiki-img.is-wide {
    width: 100%;
    max-width: none;
}
.gg-wiki-body .wiki-media {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 16px 0;
    aspect-ratio: 16 / 9;
    background: #0c0e12;
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius);
    overflow: hidden;
}
.gg-wiki-body .wiki-media iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.gg-wiki-body .wiki-media-file {
    aspect-ratio: auto;
    height: auto;
}
.gg-wiki-body .wiki-media-file video {
    display: block;
    width: 100%;
    max-height: 70vh;
    background: #0c0e12;
}
.gg-wiki-body .wiki-spoiler {
    margin: 14px 0;
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius);
    background: var(--gg-bg-input);
    padding: 0 12px 10px;
}
.gg-wiki-body .wiki-spoiler > summary {
    cursor: pointer;
    font-weight: 600;
    padding: 10px 4px;
    color: var(--gg-text);
}
.gg-wiki-body .wiki-spoiler-body { padding: 0 4px 4px; }
.gg-wiki-body .wiki-table-wrap {
    overflow-x: auto;
    margin: 16px 0;
}
.gg-wiki-body .wiki-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.gg-wiki-body .wiki-table th,
.gg-wiki-body .wiki-table td {
    border: 1px solid var(--gg-border);
    padding: 8px 10px;
    text-align: left;
}
.gg-wiki-body .wiki-table th {
    background: var(--gg-bg-input);
    color: #fff;
    font-family: var(--gg-font-display);
}
.gg-wiki-body .wiki-mark {
    background: rgba(245, 197, 24, 0.28);
    color: #fff6c8;
    border-radius: 3px;
    padding: 0 3px;
}
.gg-wiki-body .wiki-muted { color: var(--gg-text-muted); }
.gg-wiki-body pre {
    background: var(--gg-bg-input);
    border: 1px solid var(--gg-border);
    padding: 12px 14px;
    overflow: auto;
    border-radius: var(--gg-radius);
    margin: 12px 0;
}
.gg-wiki-page-toc {
    background: var(--gg-bg-input);
    border: 1px solid var(--gg-border);
    padding: 14px 16px;
    margin: 18px 0;
    max-width: 420px;
    border-radius: var(--gg-radius);
}
.gg-wiki-page-toc strong { display: block; margin-bottom: 8px; font-size: 0.85rem; }
.gg-wiki-page-toc ol { margin: 0; padding-left: 1.2rem; color: var(--gg-text-muted); }
.gg-wiki-page-toc a { color: var(--gg-text-muted); text-decoration: none; font-size: 0.9rem; }
.gg-wiki-page-toc a:hover { color: var(--gg-accent); }
.gg-wiki-foot {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--gg-border);
}
.gg-wiki-pager {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.gg-wiki-pager a {
    color: var(--gg-text-muted);
    text-decoration: none;
    font-family: var(--gg-font-display);
    font-weight: 600;
    letter-spacing: 0.04em;
}
.gg-wiki-pager a:hover { color: var(--gg-accent); }
.gg-wiki-hint { font-size: 0.8rem; color: var(--gg-text-muted); margin-bottom: 6px; }
.gg-wiki-clear { display: inline-block; margin-bottom: 10px; font-size: 0.85rem; }

/* -- VIP Tools (legacy settings shell removed) -- */
.gg-hint { display: block; margin-top: 6px; font-size: 0.8rem; color: var(--gg-text-muted); }
.gg-mode-toggle {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.gg-mode-toggle label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
}
.gg-color-area {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

/* Colour palette + custom colour field */
.gg-palette { display: flex; flex-direction: column; gap: var(--space-4); }
.gg-palette-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: var(--space-3);
}
.gg-palette-slot {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-align: left;
    min-height: 56px;
    padding: var(--space-3);
    background: var(--surface-input);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    color: var(--gg-text);
    cursor: pointer;
    font: inherit;
}
.gg-palette-slot:hover { border-color: var(--border-primary); }
.gg-palette-slot.is-active {
    border-color: var(--gg-accent);
    background: var(--surface-selected);
}
.gg-palette-swatch {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}
.gg-palette-slot-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.gg-palette-slot-meta strong {
    font: var(--type-small);
    font-weight: 600;
}
.gg-palette-slot-meta code {
    font: var(--type-caption);
    color: var(--gg-text-muted);
    font-weight: 400;
}
.gg-palette-gradient-bar {
    height: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-muted);
}

.gg-color-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    max-width: 360px;
}
.gg-color-field-label,
.gg-color-presets-label {
    margin: 0;
    font: var(--type-small);
    font-weight: 600;
    color: var(--gg-text-muted);
}
.gg-color-field-hint {
    margin: 0;
    font: var(--type-caption);
    font-weight: 400;
    color: var(--gg-text-muted);
}
.gg-color-field-control {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: var(--gg-touch);
    background: var(--surface-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.gg-color-field-control:focus-within {
    border-color: var(--gg-accent);
}
.gg-color-field-swatch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    border-right: 1px solid var(--border-muted);
    background: transparent;
    cursor: pointer;
}
.gg-color-field-swatch-btn:hover,
.gg-color-field-swatch-btn:focus-visible {
    background: var(--surface-hover);
    outline: none;
}
.gg-color-field-swatch {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.gg-color-field-hex {
    flex: 1;
    min-width: 0;
    min-height: var(--gg-touch) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-left: var(--space-3) !important;
    padding-right: var(--space-3) !important;
}
.gg-color-field-hex:focus {
    outline: none;
}
.gg-color-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.gg-color-presets,
.gg-color-recent {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.gg-palette-grid,
.gg-color-recent-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: var(--space-2);
    max-width: 420px;
}
.gg-color-recent-grid {
    grid-template-columns: repeat(8, minmax(0, 40px));
}
.gg-swatch {
    appearance: none;
    -webkit-appearance: none;
    aspect-ratio: 1;
    min-height: 36px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
    padding: 0;
}
.gg-swatch:hover {
    border-color: var(--gg-border-strong);
}
.gg-swatch.is-selected {
    border-color: #fff;
    box-shadow: 0 0 0 2px var(--gg-accent);
}
.gg-palette-hex-controls {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    flex-wrap: wrap;
}
.gg-hex-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    max-width: 148px;
}

@media (max-width: 700px) {
    .gg-palette-grid,
    .gg-color-recent-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .gg-color-field { max-width: none; }
}
/* Inventory */
.gg-inv-controls {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}
.gg-inv-search {
    margin-bottom: 0;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}
.gg-inv-search .gg-search {
    max-width: none;
    flex: 1 1 16rem;
}
.gg-inv-sort {
    margin: 0;
    flex: 0 0 auto;
}
.gg-inv-sort select {
    min-height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-muted);
    background: var(--surface-input);
    color: var(--gg-text);
    font: var(--type-small);
}
.gg-inv-filter-count {
    margin: 0;
    font: var(--type-caption);
    white-space: nowrap;
}
.gg-inv-filter-empty {
    margin: 0 0 var(--space-4);
}
.gg-inv-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
}
.gg-inv-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
}

/* Shared quiet empty / utility pages */
.gg-empty {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.gg-empty .gg-page-title { margin-bottom: 0; }
.gg-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-2);
}
.gg-panel.gg-empty {
    max-width: none;
    margin: 0;
}

/* 404: centered dead-end with local meme art */
.gg-notfound {
    max-width: 28rem;
    margin: 0 auto;
    min-height: calc(100dvh - var(--gg-topbar-h) - 8rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-3);
    padding: var(--space-6) 0 var(--space-7);
}
.gg-notfound-media {
    width: min(100%, 17.5rem);
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-muted);
    background: rgba(0, 0, 0, 0.28);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.gg-notfound-code {
    margin: var(--space-3) 0 0;
    font: var(--type-caption);
    letter-spacing: 0.42em;
    text-indent: 0.42em;
    color: var(--gg-text-muted);
    text-transform: uppercase;
}
.gg-notfound-title {
    margin: 0;
    font: 700 clamp(1.85rem, 4.5vw, 2.55rem)/1.1 var(--gg-font-display);
    letter-spacing: 0.03em;
    color: var(--gg-text);
}
.gg-notfound-lead {
    margin: 0;
    max-width: 26rem;
    color: var(--gg-text-muted);
    font: var(--type-body);
    line-height: 1.5;
}
.gg-notfound-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
}
.gg-notfound-foot {
    margin: var(--space-2) 0 0;
    max-width: 24rem;
    color: rgba(154, 166, 184, 0.78);
    font: var(--type-caption);
    font-weight: 400;
}
@media (max-width: 720px) {
    .gg-notfound {
        min-height: calc(100dvh - var(--gg-topbar-h) - 5rem);
        padding: var(--space-5) 0 var(--space-6);
    }
    .gg-notfound-actions {
        width: 100%;
        flex-direction: column;
    }
    .gg-notfound-actions .gg-btn {
        width: 100%;
        justify-content: center;
    }
}

.gg-inv-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: var(--surface-elevated);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
}
.gg-inv-redeem-cap {
    font: var(--type-small);
    align-self: center;
}
.gg-inv-redeem-cap.is-full {
    color: var(--gg-warning, #e6b84d);
}
.gg-inv-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.gg-inv-row {
    display: grid;
    grid-template-columns: auto 72px minmax(0, 1fr) auto;
    grid-template-areas: "check thumb info actions";
    gap: var(--space-4);
    align-items: center;
    padding: var(--space-3) var(--space-4);
    background: var(--surface-card);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    cursor: pointer;
}
.gg-inv-row[hidden] {
    display: none !important;
}
.gg-inv-row:hover {
    border-color: var(--border-primary);
    background: var(--surface-hover);
}
.gg-inv-row.is-selected {
    border-color: rgba(242, 110, 34, 0.55);
    background: rgba(242, 110, 34, 0.1);
}
.gg-inv-row .gg-inv-actions,
.gg-inv-row .gg-inv-select {
    cursor: default;
}
.gg-inv-select {
    grid-area: check;
    display: flex;
    align-items: center;
}
.gg-inv-thumb {
    grid-area: thumb;
    width: 72px;
    height: 72px;
    background: var(--surface-input);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.gg-inv-thumb img {
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
}
.gg-inv-info {
    grid-area: info;
    min-width: 0;
}
.gg-inv-name {
    font: var(--type-title);
    margin: 0 0 var(--space-1);
    overflow-wrap: anywhere;
}
.gg-inv-meta {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    color: var(--gg-text-muted);
    font: var(--type-small);
}
.gg-inv-permanent {
    color: #f0c078;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.gg-inv-trash {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    scroll-margin-top: 96px;
}
.gg-inv-trash-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}
.gg-inv-trash-title {
    margin: 0;
    font: var(--type-title);
}
.gg-inv-row.is-trashed {
    opacity: 0.88;
    cursor: default;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    grid-template-areas: "thumb info actions";
}
.gg-inv-shell {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.gg-inv-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.gg-inv-tab {
    min-height: 40px;
    padding: 0 var(--space-4);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    background: var(--surface-card);
    color: var(--gg-text-muted);
    font: var(--type-small);
    font-weight: 600;
    cursor: pointer;
}
.gg-inv-tab:hover {
    color: var(--gg-text);
    border-color: var(--border-primary);
}
.gg-inv-tab.is-active {
    color: #fff;
    border-color: var(--gg-accent);
    background: rgba(242, 110, 34, 0.16);
}
.gg-inv-panel[hidden] {
    display: none !important;
}
.gg-inv-permanent-copy {
    margin: 0 0 var(--space-3);
}
.gg-inv-row-permanent {
    cursor: default;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    grid-template-areas: "thumb info actions";
}
.gg-inv-row-permanent.is-used {
    opacity: 0.55;
    filter: grayscale(0.35);
}
.gg-inv-row-permanent.is-used:hover {
    background: var(--surface-card);
    border-color: var(--border-muted);
}
.gg-inv-used-label,
.gg-inv-used-pill {
    color: var(--gg-text-muted);
    font-weight: 600;
}
.gg-inv-used-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 var(--space-3);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    background: var(--surface-elevated);
    font: var(--type-small);
    white-space: nowrap;
}
.gg-inv-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    justify-content: flex-end;
}
.gg-inv-of {
    font: var(--type-small);
    color: var(--gg-text-muted);
    white-space: nowrap;
}

/* Stack before the actions column gets cramped next to item copy. */
@media (max-width: 1100px) {
    .gg-inv-row {
        grid-template-columns: auto 64px minmax(0, 1fr);
        grid-template-areas:
            "check thumb info"
            ". . actions";
        gap: var(--space-3) var(--space-4);
        align-items: center;
    }
    .gg-inv-row.is-trashed {
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-areas:
            "thumb info"
            ". actions";
    }
    .gg-inv-row-permanent {
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-areas:
            "thumb info"
            ". actions";
    }
    .gg-inv-thumb {
        width: 64px;
        height: 64px;
    }
    .gg-inv-thumb img {
        max-width: 56px;
        max-height: 56px;
    }
    .gg-inv-actions {
        justify-content: center;
        padding-top: var(--space-1);
    }
}

@media (max-width: 640px) {
    .gg-inv-row {
        grid-template-columns: auto 56px minmax(0, 1fr);
        grid-template-areas:
            "check thumb info"
            "actions actions actions";
        gap: var(--space-3);
        align-items: start;
    }
    .gg-inv-row.is-trashed {
        grid-template-columns: 56px minmax(0, 1fr);
        grid-template-areas:
            "thumb info"
            "actions actions";
    }
    .gg-inv-row-permanent {
        grid-template-columns: 56px minmax(0, 1fr);
        grid-template-areas:
            "thumb info"
            "actions actions";
    }
    .gg-inv-thumb {
        width: 56px;
        height: 56px;
    }
    .gg-inv-thumb img {
        max-width: 48px;
        max-height: 48px;
    }
    .gg-inv-actions {
        justify-content: center;
        width: 100%;
    }
    .gg-inv-toolbar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .gg-inv-toolbar .gg-actions {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 520px) {
    .gg-inv-actions .gg-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
    .gg-inv-toolbar .gg-actions {
        width: 100%;
        justify-content: center;
    }
    .gg-inv-toolbar .gg-actions .gg-btn,
    .gg-inv-toolbar .gg-actions form {
        flex: 1 1 100%;
    }
    .gg-inv-toolbar .gg-actions form .gg-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Checkbox */
.gg-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--gg-text-muted);
    user-select: none;
}
.gg-check input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--gg-border-strong);
    border-radius: 4px;
    background: var(--gg-bg-input);
    display: grid;
    place-content: center;
    cursor: pointer;
    margin: 0;
}
.gg-check input::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    background: var(--gg-accent);
    border-radius: 2px;
    transition: transform 0.12s ease;
}
.gg-check input:checked {
    border-color: var(--gg-accent);
    background: rgba(242, 110, 34, 0.15);
}
.gg-check input:checked::before { transform: scale(1); }

/* Number stepper */
.gg-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius);
    overflow: hidden;
    background: var(--gg-bg-input);
}
.gg-stepper-btn {
    width: 36px;
    min-height: 40px;
    border: 0;
    background: transparent;
    color: var(--gg-text);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}
.gg-stepper-max {
    width: auto;
    min-width: 40px;
    padding: 0 8px;
    border-left: 1px solid var(--gg-border);
    font: var(--type-caption);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.gg-stepper-btn:hover:not(:disabled) { background: var(--gg-bg-panel-2); }
.gg-stepper-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.gg-stepper-input {
    width: 52px !important;
    min-height: 40px !important;
    border: 0 !important;
    border-left: 1px solid var(--gg-border) !important;
    border-right: 1px solid var(--gg-border) !important;
    border-radius: 0 !important;
    text-align: center;
    background: transparent !important;
    padding: 0 !important;
    -moz-appearance: textfield;
}
.gg-stepper-input::-webkit-outer-spin-button,
.gg-stepper-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Account management (VIP) */
.gg-acct {
    width: 100%;
    max-width: none;
    border-top: 1px solid var(--gg-border);
}
.gg-acct-section {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 36px;
    padding: 32px 0;
    border-bottom: 1px solid var(--gg-border);
}
.gg-acct-intro h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 0;
    text-transform: none;
    font-family: var(--gg-font-body);
}
.gg-acct-intro p {
    color: var(--gg-text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
}
.gg-acct-intro .gg-status {
    display: inline-block;
    margin-top: 14px;
}
.gg-status {
    display: inline-block;
    margin-top: 14px;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.gg-status-pending {
    background: rgba(242, 173, 34, 0.12);
    color: #f2ad22;
    border-color: rgba(242, 173, 34, 0.35);
}
.gg-status-approved {
    background: rgba(46, 125, 50, 0.12);
    color: #8fd19a;
    border-color: rgba(46, 125, 50, 0.35);
}
.gg-status-denied {
    background: rgba(211, 47, 47, 0.1);
    color: #ff8a8a;
    border-color: rgba(211, 47, 47, 0.3);
}
.gg-acct-body { display: flex; flex-direction: column; gap: 18px; }
.gg-acct-field { display: flex; flex-direction: column; gap: 8px; }
.gg-acct-field > label,
.gg-acct-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gg-text-muted);
    letter-spacing: 0.02em;
}
.gg-acct-field textarea {
    width: 100%;
    min-height: 72px;
    padding: 12px 14px;
    background: var(--gg-bg-input);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius);
    color: var(--gg-text);
    font: inherit;
    resize: vertical;
}
.gg-acct-field textarea:focus {
    outline: none;
    border-color: var(--gg-accent);
}
.gg-acct-preview {
    background: var(--gg-bg-input);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius);
    padding: 16px 18px;
}
.gg-acct-preview p {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}
.gg-acct-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    padding-top: 4px;
}
.gg-acct-status {
    margin-right: auto;
    font-size: 0.82rem;
    color: var(--gg-text-muted);
}
.gg-segment {
    display: inline-flex;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface-input);
}
.gg-segment-option {
    cursor: pointer;
    margin: 0;
}
.gg-segment-option input { position: absolute; opacity: 0; pointer-events: none; }
.gg-segment-option span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 var(--space-4);
    font: var(--type-small);
    font-weight: 600;
    color: var(--gg-text-muted);
    border-right: 1px solid var(--border-muted);
}
.gg-segment-option:last-child span { border-right: 0; }
.gg-segment-option input:checked + span {
    background: var(--surface-selected);
    color: #fff;
}

@media (max-width: 800px) {
    .gg-acct-section { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
}

.gg-wiki-history {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--gg-border);
}
.gg-wiki-history h2 {
    font: var(--type-title);
    margin-bottom: var(--space-3);
}
.gg-wiki-history ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.gg-wiki-history li {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    padding: 8px 10px;
    background: var(--gg-bg-input);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius);
    font-size: 0.92rem;
}

/* -- Account feeds (notifications / history) -- */
.gg-feed-fresh-note,
.gg-feed-range {
    max-width: none;
    margin: 0 0 var(--space-3);
    color: var(--gg-text-muted);
    font: var(--type-small);
}
.gg-feed-list,
.gg-feed-empty,
.gg-pager {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}
.gg-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.gg-list-item {
    display: block;
    background: var(--surface-card);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    color: inherit;
    text-decoration: none;
}
a.gg-list-item.is-link {
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
a.gg-list-item.is-link:hover {
    border-color: var(--border-primary);
    background: var(--surface-hover);
}
a.gg-list-item.is-link.is-unread:hover,
a.gg-list-item.is-link.is-fresh:hover {
    border-color: rgba(242, 110, 34, 0.75);
    background: rgba(242, 110, 34, 0.2);
}
.gg-list-item.is-unread,
.gg-list-item.is-fresh {
    border-color: rgba(242, 110, 34, 0.55);
    border-left: 4px solid var(--gg-accent);
    background: rgba(242, 110, 34, 0.14);
    box-shadow: inset 0 0 0 1px rgba(242, 110, 34, 0.12);
}
.gg-list-new {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--gg-accent);
    color: #fff;
    font: var(--type-caption);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    vertical-align: middle;
}
.gg-list-head {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-2);
}
.gg-list-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-top: var(--space-3);
}
.gg-list-foot .gg-tag {
    margin-top: 0;
}
.gg-list-go {
    font: var(--type-caption);
    font-weight: 700;
    color: var(--gg-accent);
}
.gg-list-head strong {
    font: var(--type-title);
}
.gg-list-head time,
.gg-list-item time {
    color: var(--gg-text-muted);
    font: var(--type-caption);
    font-weight: 400;
}
.gg-list-body {
    font: var(--type-body);
    color: var(--gg-text);
}
.gg-tag {
    display: inline-block;
    margin-top: var(--space-3);
    font: var(--type-caption);
    color: var(--gg-text-muted);
    border: 1px solid var(--border-muted);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}
.gg-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-5);
}
.gg-pager-status {
    font: var(--type-small);
    color: var(--gg-text-muted);
}


/* -- Compact: Menu drawer instead of cramped inline nav -- */
/* Desktop: mobile-only topbar actions stay hidden */
.gg-topbar-actions { display: none; }

@media (max-width: 1280px) {
    .gg-topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: var(--gg-z-topbar);
    }
    body {
        padding-top: var(--gg-topbar-h);
    }
    .gg-topbar-actions {
        display: flex;
        margin-left: auto;
    }
    .gg-nav-toggle {
        display: inline-flex;
        align-items: center;
        margin-left: 0;
        position: relative;
        z-index: 290;
    }
    .gg-topbar-inner > .gg-logo {
        position: relative;
        z-index: 290;
    }
    .gg-desktop-only { display: none !important; }
    .gg-mobile-only { display: block !important; }
    .gg-topbar-inner {
        flex-wrap: nowrap;
        padding: var(--space-2) var(--space-4);
        min-height: var(--gg-topbar-h);
    }
    .gg-nav-backdrop {
        display: none;
        position: fixed;
        top: var(--gg-topbar-h);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: var(--gg-z-mobile-backdrop);
        background: rgba(0, 0, 0, 0.55);
    }
    .gg-nav-backdrop.is-open { display: block; }
    .gg-nav {
        display: block;
        position: fixed;
        top: var(--gg-topbar-h);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: var(--gg-z-mobile-nav);
        width: 100%;
        max-width: none;
        margin: 0;
        padding: var(--space-3) var(--space-4) calc(var(--space-6) + env(safe-area-inset-bottom));
        background: var(--surface-bg);
        border: 0;
        border-radius: 0;
        box-shadow: none;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        visibility: hidden;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.15s ease, visibility 0.15s;
    }
    .gg-nav.is-open {
        visibility: visible;
        pointer-events: auto;
        opacity: 1;
    }
    .gg-nav-aside {
        display: block;
        width: 100%;
        max-width: 520px;
        margin: var(--space-4) auto 0;
        padding-left: 0;
        border-top: 1px solid var(--border-muted);
        padding-top: var(--space-3);
    }
    .gg-nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-1);
        width: 100%;
        min-width: 0;
        max-width: 520px;
        margin: 0 auto;
        flex: none;
    }
    .gg-nav-list > li {
        width: 100%;
        display: block;
    }
    a.gg-nav-link {
        width: 100%;
        justify-content: flex-start;
        min-height: var(--gg-touch);
        padding: 0 var(--space-3);
        border-bottom: 0;
        border-radius: var(--radius-md);
        cursor: pointer !important;
    }
    a.gg-nav-link.is-active {
        background: var(--surface-selected);
        border-bottom: 0;
        color: #fff;
        cursor: pointer !important;
    }
    .gg-btn-signin {
        width: 100%;
        justify-content: center;
        min-height: var(--gg-touch);
    }
    .gg-account-chip {
        width: 100%;
        justify-content: flex-start;
        border-radius: var(--radius-md);
    }
    .gg-account-name { max-width: none; }
    .gg-mobile-account {
        width: 100%;
    }
    .gg-mobile-account .gg-wallet {
        border: 1px solid var(--border-primary);
        border-radius: var(--radius-md);
        margin-bottom: var(--space-2);
    }
    .gg-mobile-account .gg-menu-links {
        border: 1px solid var(--border-primary);
        border-radius: var(--radius-md);
        overflow: hidden;
        background: var(--surface-card);
    }
    .gg-mobile-account .gg-menu-links a:last-child {
        border-bottom: 0;
    }
    .gg-account-cluster .gg-notify-bell {
        display: none;
    }
    body.gg-nav-open {
        overflow: hidden;
        /* iOS: overflow:hidden alone still lets the page scroll under the drawer. */
        position: fixed;
        width: 100%;
        left: 0;
        right: 0;
    }
    .gg-wiki-shelf { grid-template-columns: 1fr; }
    .gg-wiki-layout { grid-template-columns: 1fr; }
    .gg-wiki-nav { position: static; }
    .gg-wiki-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .gg-wiki-nav .gg-wiki-toc { display: none; }
    .gg-wiki-nav.is-open .gg-wiki-toc { display: block; }
    .gg-wiki-article { padding: 22px 18px 28px; }
.gg-acct-section {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px 0;
    }
}

/* Confirm modal */
.gg-modal[hidden] { display: none !important; }
.gg-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.gg-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 10, 0.72);
    backdrop-filter: blur(4px);
}
.gg-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    padding: 24px 24px 20px;
    background: var(--gg-bg-elevated);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-lg);
    box-shadow: var(--gg-shadow);
    animation: gg-modal-in 0.16s ease-out;
}
@keyframes gg-modal-in {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.gg-modal-title {
    margin: 0 0 var(--space-3);
    font: var(--type-heading);
    color: #fff;
}
.gg-modal-message {
    margin: 0 0 var(--space-5);
    color: var(--gg-text-muted);
    font: var(--type-body);
}
.gg-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}
.gg-modal-actions .gg-btn {
    min-width: 108px;
    justify-content: center;
}
.gg-modal.is-danger .gg-modal-actions [data-gg-confirm-ok] {
    background: #c0392b;
    border-color: #c0392b;
}
body.gg-modal-open { overflow: hidden; }

/* -- Player stats (leaderboard + my stats) -- */
.gg-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.gg-stats,
.gg-mystats {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 0 var(--space-8);
}
.gg-stats-filters,
.gg-mystats-controls {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: flex-end;
    margin-bottom: var(--space-4);
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.gg-stats-filters label,
.gg-mystats-controls label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1 1 12rem;
    font: var(--type-caption);
    color: var(--gg-text-muted);
}
.gg-stats-filters input,
.gg-stats-filters select,
.gg-mystats-controls select {
    box-sizing: border-box;
    width: 100%;
    height: var(--gg-touch);
    min-height: var(--gg-touch);
    padding: 0 12px;
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-sm);
    background: var(--surface-input, #1a1a1a);
    color: var(--gg-text);
    font: var(--type-body);
    line-height: 1.2;
}
.gg-stats-filters .gg-btn,
.gg-mystats-controls .gg-btn {
    box-sizing: border-box;
    flex: 0 0 auto;
    align-self: flex-end;
    height: var(--gg-touch);
    min-height: var(--gg-touch);
    padding-top: 0;
    padding-bottom: 0;
}
.gg-stats-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-bottom: var(--space-4);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-muted);
}
.gg-stats-tab {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 2px;
    color: var(--gg-text-muted);
    text-decoration: none;
    font: var(--type-small);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
}
.gg-stats-tab.is-active {
    color: var(--gg-accent);
    border-bottom-color: var(--gg-accent);
}
.gg-stats-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    background: var(--surface-card);
}
.gg-stats-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 0;
}
.gg-stats-table th,
.gg-stats-table td {
    padding: 10px 12px;
    text-align: right;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font: var(--type-small);
    color: var(--gg-text);
}
.gg-stats-table th {
    color: var(--gg-text-muted);
    font-weight: 600;
}
.gg-stats-table th a,
.gg-stats-sort-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    padding: 4px 0;
}
.gg-stats-sort-link:hover,
.gg-stats-table th a:hover {
    color: var(--gg-text);
}
.gg-stats-sort-link.is-active {
    color: var(--gg-accent);
}
.gg-stats-table .gg-stats-player-col {
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--surface-card);
    box-shadow: 1px 0 0 rgba(255, 255, 255, 0.06);
    width: 160px;
    min-width: 160px;
    max-width: 160px;
}
.gg-stats-table thead .gg-stats-player-col {
    z-index: 2;
    background: #1c1c1c;
}
.gg-stats-table tbody .gg-stats-player-col {
    background: #161616;
}
.gg-stats-table tbody tr:nth-child(even) .gg-stats-player-col {
    background: #191919;
}
.gg-stats-table tbody tr:nth-child(even) td:not(.gg-stats-player-col) {
    background: rgba(255, 255, 255, 0.02);
}
.gg-stats-player {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.gg-stats-player:hover .gg-stats-name:not(.gg-name-tint) {
    color: var(--gg-accent);
}
.gg-stats-player img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: cover;
    flex: 0 0 auto;
}
.gg-stats-name {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    font-weight: 600;
    color: var(--gg-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gg-stats-name.is-vip { color: var(--gg-accent); }
.gg-name-tint.is-solid {
    color: var(--name-c1);
}
.gg-name-tint.is-gradient {
    background-image: linear-gradient(90deg, var(--name-c1), var(--name-c2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.gg-stats-sort { margin-left: 4px; font-size: 10px; }
.gg-stats-empty {
    text-align: center !important;
    color: var(--gg-text-muted);
    padding: 28px 16px !important;
}
.gg-stats-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-5);
}
.gg-stats-pager a,
.gg-stats-pager .gg-stats-page-num,
.gg-stats-pager .gg-stats-pager-disabled,
.gg-stats-pager .gg-stats-pager-ellipsis {
    min-width: 2rem;
    min-height: 44px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gg-text);
    text-decoration: none;
    font: var(--type-small);
}
.gg-stats-pager a:hover,
.gg-stats-pager a:focus-visible {
    text-decoration: underline;
}
.gg-stats-page-num { color: var(--gg-text-muted); }
.gg-stats-page-num.is-current {
    color: var(--gg-text);
    font-weight: 700;
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-sm);
}
.gg-stats-pager-disabled,
.gg-stats-pager-ellipsis {
    color: var(--gg-text-muted);
    opacity: 0.55;
    pointer-events: none;
}

.gg-mystats-section { margin-top: var(--space-6); }
.gg-mystats-section h2 {
    margin: 0 0 var(--space-3);
    font: var(--type-title);
}
.gg-mystats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
    gap: 10px;
}
.gg-mystats-card {
    background: var(--surface-card);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.gg-mystats-label {
    font: var(--type-caption);
    color: var(--gg-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.gg-mystats-value {
    font: var(--type-title);
    font-weight: 700;
}
.gg-mystats-delta {
    font: var(--type-caption);
    color: var(--gg-text-muted);
}
.gg-mystats-delta.is-up { color: #7dbe6a; }
.gg-mystats-delta.is-down { color: #d97868; }
.gg-mystats-value.is-up { color: #7dbe6a; }
.gg-mystats-value.is-down { color: #d97868; }

/* -- Public player profile -- */
.gg-profile {
    position: relative;
    width: 100%;
    max-width: none;
    padding: 0 0 var(--space-8);
    background: transparent;
    border: 0;
    box-shadow: none;
}
body.has-page-backdrop .gg-profile-hero {
    padding: 16px 18px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(16, 20, 28, 0.97) 0%, rgba(12, 15, 21, 0.98) 100%);
    box-shadow: var(--shadow-subtle);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
body.has-page-backdrop .gg-profile .gg-mystats-controls {
    padding: 12px 14px;
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    background: rgba(16, 20, 28, 0.96);
    box-shadow: var(--shadow-subtle);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
body.has-page-backdrop .gg-profile-stats.gg-profile-panel .gg-mystats-controls {
    margin: 0 0 var(--space-3);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.has-page-backdrop .gg-profile-customize,
body.has-page-backdrop .gg-profile-achievements:not(.gg-profile-panel),
body.has-page-backdrop .gg-profile-about:not(.vibe-scrap):not(.vibe-neon):not(.vibe-candy):not(.vibe-sticky):not(.vibe-terminal):not(.vibe-polaroid):not(.vibe-hazard):not(.vibe-arcade),
body.has-page-backdrop .gg-profile-recap:not(.gg-profile-panel),
body.has-page-backdrop .gg-profile-overall:not(.gg-profile-panel),
body.has-page-backdrop .gg-profile-games:not(.gg-profile-panel),
body.has-page-backdrop .gg-profile-chicken:not(.gg-profile-panel),
body.has-page-backdrop .gg-profile-stats:not(.gg-profile-panel),
body.has-page-backdrop .gg-profile .gg-panel:not(.gg-profile-panel),
body.has-page-backdrop .gg-profile .gg-empty:not(.gg-profile-panel),
body.has-page-backdrop .gg-profile .gg-mystats-section:not(.gg-profile-panel) {
    background: rgba(16, 20, 28, 0.96);
    border-color: var(--border-primary);
    box-shadow: var(--shadow-subtle);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
body.has-page-backdrop .gg-profile .gg-mystats-section {
    margin-top: var(--space-5);
    padding: var(--space-4);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
}
body.has-page-backdrop .gg-profile-stats.gg-profile-panel .gg-mystats-section {
    margin-top: var(--space-4);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.has-page-backdrop .gg-profile-stats.gg-profile-panel .gg-mystats-section:first-of-type {
    margin-top: var(--space-3);
}
body.has-page-backdrop .gg-profile .gg-mystats-controls {
    margin-bottom: var(--space-4);
}
body.has-page-backdrop .gg-profile .gg-mystats-controls select,
body.has-page-backdrop .gg-profile-look-form select,
body.has-page-backdrop .gg-profile-share-field input {
    background: var(--surface-input);
    color: var(--gg-text);
    border-color: var(--border-primary);
}
body.has-page-backdrop .gg-profile-hero .gg-page-title {
    color: #fff;
}
body.has-page-backdrop .gg-profile-hero .gg-name-tint.is-solid {
    color: var(--name-c1);
}
body.has-page-backdrop .gg-profile-hero .gg-name-tint.is-gradient {
    color: transparent;
}
body.has-page-backdrop .gg-profile-hero .gg-feed-kicker,
body.has-page-backdrop .gg-profile-hero .gg-profile-steam,
body.has-page-backdrop .gg-profile .gg-muted {
    color: #c2cad8;
}
body.has-page-backdrop .gg-profile-preview-bar {
    background: rgba(16, 20, 28, 0.96);
    border-color: rgba(242, 173, 34, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
body.has-page-backdrop .gg-profile-preview-bar span {
    color: #c2cad8;
}
.gg-profile-hero {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    padding: 16px 18px;
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    background: var(--surface-card);
}
.gg-profile-hero-main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4);
}
.gg-profile-identity {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    min-width: 0;
}
.gg-profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border-muted);
    flex: 0 0 auto;
    display: block;
}
.gg-profile-avatar-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    flex: 0 0 auto;
}
.gg-profile-avatar-wrap .gg-profile-avatar {
    width: 100%;
    height: 100%;
}
.gg-profile-avatar-wrap.has-frame {
    width: 96px;
    height: 96px;
}
.gg-profile-avatar-wrap.has-frame .gg-profile-avatar {
    width: 78px;
    height: 78px;
    position: absolute;
    inset: 9px;
    border: 0;
}
.gg-profile-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    z-index: 1;
}
.gg-profile-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.gg-profile-steam {
    font: var(--type-caption);
    word-break: break-all;
}
.gg-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.gg-profile-preview-bar {
    position: relative;
    z-index: 1;
    margin: 0 0 var(--space-6);
    background: rgba(242, 173, 34, 0.12);
    border: 1px solid rgba(242, 173, 34, 0.45);
    border-radius: var(--gg-radius, var(--radius-md));
}
.gg-profile-preview-bar-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
}
.gg-profile-preview-bar strong {
    display: block;
    color: #f2ad22;
    margin-bottom: 2px;
}
.gg-profile-preview-bar span {
    color: var(--gg-text-muted);
    font-size: 0.88rem;
}
.gg-profile-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.gg-profile-share-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 36rem;
    margin: 0;
}
.gg-profile-share-field {
    flex: 1;
    min-width: 0;
}
.gg-profile-share-field input {
    width: 100%;
    height: var(--gg-touch);
    min-height: var(--gg-touch);
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid var(--border-muted);
    border-right: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background: var(--surface-input, #1a1a1a);
    color: var(--gg-text-muted);
    font: var(--type-small);
}
.gg-profile-share-copy {
    flex-shrink: 0;
    box-sizing: border-box;
    height: var(--gg-touch);
    min-height: var(--gg-touch);
    padding-top: 0;
    padding-bottom: 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.gg-profile-recap,
.gg-profile-overall,
.gg-profile-games,
.gg-profile-chicken {
    margin: 0 0 var(--space-6);
    padding: var(--space-4);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    background: var(--surface-card);
}
.gg-profile-recap-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: var(--space-3);
}
.gg-profile-recap-head h2 {
    margin: 0;
    font: var(--type-title);
}
.gg-profile-recap-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.gg-profile-recap .gg-mystats-card,
.gg-profile-overall .gg-mystats-card,
.gg-profile-games .gg-mystats-card,
.gg-profile-chicken .gg-mystats-card {
    flex: 0 1 auto;
    min-width: 118px;
    width: auto;
    max-width: 100%;
    padding: 10px 12px;
}
.gg-profile-game + .gg-profile-game {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-muted);
}
.gg-profile-game-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 10px;
}
.gg-profile-game-tag {
    margin: 0 0 2px;
    font: var(--type-caption);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gg-text-muted);
}
.gg-profile-game-head h3 {
    margin: 0;
    font: var(--type-title);
    font-size: 1.05rem;
}
.gg-profile-chicken-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 16px;
    margin-bottom: 12px;
}
.gg-profile-chicken-portrait {
    width: 72px;
    height: 72px;
    object-fit: contain;
    image-rendering: auto;
}
.gg-profile-chicken-name {
    margin: 0;
    font: var(--type-title);
    font-size: 1.2rem;
    font-weight: 800;
}
.gg-profile-chicken-finds {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}
.gg-profile-chicken-tools {
    margin: 12px 0 0;
}
.gg-profile-game-recent {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}
.gg-profile-game-recent li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 4px 8px;
    border: 1px solid var(--border-muted);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    font: var(--type-caption);
    color: var(--gg-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gg-profile-game-chip {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.gg-profile-customize {
    margin-bottom: var(--space-4);
    padding: var(--space-4);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md, 12px);
    background: var(--surface-card);
}
.gg-profile-achievements {
    margin: 0 0 var(--space-4);
    padding: var(--space-4);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md, 12px);
    background: var(--surface-card);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
body.has-page-backdrop .gg-profile .gg-panel,
body.has-page-backdrop .gg-profile .gg-empty {
    background: var(--surface-card);
}
.gg-profile-customize-head {
    margin-bottom: 12px;
}
.gg-profile-customize-head h2,
.gg-profile-achievements h2 {
    margin: 0;
    font: var(--type-title);
}
.gg-profile-customize-head .gg-muted {
    margin: 0;
}
.gg-profile-look-form {
    margin-bottom: 0;
}
.gg-profile-customize-hint {
    margin: 10px 0 0;
}
.gg-profile-bg-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
    margin-top: 10px;
}
.gg-profile-bg-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1 1 160px;
    font: var(--type-caption);
    color: var(--gg-text-muted);
}
.gg-profile-bg-form select {
    min-height: var(--gg-touch);
    padding: 10px 12px;
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-sm);
    background: var(--surface-input, #1a1a1a);
    color: var(--gg-text);
    font: var(--type-body);
}
.gg-profile-bg-form .gg-btn {
    align-self: flex-end;
    min-height: var(--gg-touch);
    flex: 0 0 auto;
}
.gg-ach-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
}
.gg-ach-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    min-width: 0;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 10px;
    transition: box-shadow 0.35s ease, background 0.35s ease;
}
.gg-ach-item.is-hash-target,
.gg-profile-achievements.is-hash-target,
.gg-profile-games.is-hash-target,
.gg-profile-chicken.is-hash-target,
.gg-profile-stats.is-hash-target {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}
.gg-ach-item img {
    flex: 0 0 auto;
    border-radius: 6px;
    object-fit: cover;
}
.gg-ach-item > div {
    min-width: 0;
}
.gg-ach-item strong {
    display: block;
    overflow-wrap: anywhere;
}
.gg-ach-item p {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
}

/* Edit profile: look tiles, order, about, pins */
.gg-edit-profile {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}
.gg-edit-profile.has-save-dock {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}
.gg-edit-profile.has-save-dock .gg-edit-section-save {
    display: none;
}
.gg-edit-profile.has-save-dock .gg-panel-actions:not(:has(button:not(.gg-edit-section-save))) {
    display: none;
}
.gg-edit-profile.has-save-dock .gg-edit-save-status {
    display: none;
}
.gg-edit-save-dock[hidden] {
    display: none !important;
}
.gg-edit-save-dock {
    position: fixed;
    left: 50%;
    bottom: max(var(--space-3), env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 260;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-3);
    width: min(calc(100vw - (var(--gg-gutter) * 2)), 28rem);
    padding: 10px 12px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: rgba(16, 20, 28, 0.96);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.gg-edit-save-dock-status {
    flex: 1 1 auto;
    margin: 0;
    min-height: 1.2em;
    font: var(--type-caption);
    text-align: left;
}
.gg-edit-save-dock-status.is-ok {
    color: var(--gg-accent, #f26e22);
}
.gg-edit-save-dock-status.is-error {
    color: #e57373;
}
.gg-edit-save-dock .gg-btn {
    flex: 0 0 auto;
    min-width: 6.5rem;
}
.gg-edit-save-dock.is-dirty .gg-btn-primary {
    box-shadow: 0 0 0 1px rgba(242, 110, 34, 0.45);
}
.gg-edit-save-dock.is-busy {
    opacity: 0.92;
}
@media (prefers-reduced-motion: reduce) {
    .gg-edit-save-dock {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}
.gg-look-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}
.gg-look-fieldset legend {
    padding: 0;
    margin: 0 0 10px;
    font: var(--type-caption);
    font-weight: 700;
    color: var(--gg-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.gg-look-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.gg-look-grid-frame {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}
.gg-look-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    cursor: pointer;
    user-select: none;
    min-width: 0;
}
.gg-look-tile input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.gg-look-tile-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-sm, 8px);
    border: 2px solid var(--border-muted);
    background: var(--surface-input, #1a1a1a);
    overflow: hidden;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.gg-look-tile-frame .gg-look-tile-media {
    aspect-ratio: 1;
}
.gg-look-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gg-look-tile-default {
    background:
        linear-gradient(145deg, rgba(242, 110, 34, 0.28), transparent 55%),
        linear-gradient(180deg, #2a3140, #151a22);
}
.gg-look-tile.is-selected .gg-look-tile-media,
.gg-look-tile:has(input:checked) .gg-look-tile-media {
    border-color: var(--gg-accent);
    box-shadow: 0 0 0 1px var(--gg-accent);
}
.gg-look-tile:focus-within .gg-look-tile-media {
    outline: 2px solid var(--gg-accent);
    outline-offset: 2px;
}
.gg-look-tile-caption {
    font: var(--type-caption);
    color: var(--gg-text-muted);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gg-look-tile.is-selected .gg-look-tile-caption,
.gg-look-tile:has(input:checked) .gg-look-tile-caption {
    color: var(--gg-text);
    font-weight: 600;
}
.gg-look-tile-vip {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.72);
    color: var(--gg-accent);
    font: var(--type-caption);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.04em;
}
.gg-edit-about-form textarea {
    width: 100%;
    min-height: 88px;
    resize: vertical;
    padding: 12px;
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-sm);
    background: var(--surface-input, #1a1a1a);
    color: var(--gg-text);
    font: var(--type-body);
    box-sizing: border-box;
}
.gg-about-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 8px;
}
.gg-about-tool {
    appearance: none;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.22);
    color: var(--gg-text);
    font: var(--type-caption);
    font-weight: 650;
    cursor: pointer;
    line-height: 1;
}
.gg-about-tool:hover,
.gg-about-tool:focus-visible {
    border-color: var(--gg-accent);
    outline: none;
}
.gg-about-tool em {
    font-style: italic;
    font-weight: 650;
}
.gg-edit-about-form textarea:focus {
    outline: none;
    border-color: var(--gg-accent);
}
.gg-section-order {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.gg-section-order-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: 10px 12px;
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.14);
    transition: background-color 0.28s ease, border-color 0.28s ease, opacity 0.28s ease;
}
.gg-section-order-item.is-hidden-section {
    opacity: 0.62;
    border-style: dashed;
}
.gg-section-vis {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 12rem;
    cursor: pointer;
}
.gg-section-vis input {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    accent-color: var(--gg-accent, #f26e22);
}
.gg-section-vis-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.gg-section-vis-state {
    font: var(--type-caption);
}
.gg-section-order-label {
    font-weight: 600;
    min-width: 0;
}
.gg-section-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.gg-section-order-actions .gg-btn:disabled {
    opacity: 0.35;
    cursor: default;
}
.gg-section-order-item.is-just-moved {
    border-color: rgba(242, 110, 34, 0.45);
    background: rgba(242, 110, 34, 0.12);
}
.gg-section-order.is-saving {
    opacity: 0.92;
}
.gg-section-order-status {
    min-height: 1.25em;
    margin: var(--space-2) 0 0;
    font: var(--type-caption);
}
.gg-section-order-status.is-ok {
    color: var(--gg-accent, #f26e22);
}
.gg-section-order-status.is-error {
    color: #e57373;
}
.gg-edit-vip-note {
    margin: 0 0 var(--space-3);
}
.gg-edit-vip-note a {
    color: var(--gg-accent, #f26e22);
}
.gg-edit-vip-lock {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4);
    border: 1px dashed rgba(242, 110, 34, 0.35);
    border-radius: var(--radius-md);
    background: rgba(242, 110, 34, 0.06);
}
.gg-edit-vip-lock p {
    margin: 0;
    flex: 1 1 16rem;
    color: var(--gg-text-muted);
}
.gg-dash-panel.is-vip-locked .gg-dash-panel-intro .gg-muted {
    opacity: 0.9;
}
.gg-dash-section-title .gg-vip-badge,
.gg-presence-field-label .gg-vip-badge {
    vertical-align: middle;
    margin-left: 6px;
}
.gg-edit-save-status {
    min-height: 1.25em;
    margin: var(--space-2) 0 0;
    font: var(--type-caption);
}
.gg-edit-save-status.is-ok {
    color: var(--gg-accent, #f26e22);
}
.gg-edit-save-status.is-error {
    color: #e57373;
}
.gg-btn-compact {
    min-height: 36px;
    padding: 6px 12px;
}
.gg-edit-ach-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.gg-edit-ach-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.18);
}
.gg-edit-ach-list.is-locked .gg-edit-ach-item {
    opacity: 0.72;
}
.gg-edit-ach-icon {
    border-radius: 6px;
    object-fit: cover;
    flex: 0 0 auto;
}
.gg-edit-ach-copy {
    min-width: 0;
    flex: 1 1 auto;
}
.gg-edit-ach-copy strong {
    display: block;
}
.gg-edit-ach-copy p {
    margin: 2px 0 0;
}
.gg-edit-ach-pin {
    flex: 0 0 auto;
    margin-top: 2px;
}
.gg-edit-ach-locked {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-muted);
}
.gg-edit-ach-locked-title {
    margin: 0;
    font: var(--type-caption);
    font-weight: 700;
    color: var(--gg-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.gg-profile-about {
    margin: 0 0 var(--space-4);
    padding: var(--space-4);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md, 12px);
    background: var(--surface-card);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.gg-profile-about h2 {
    margin: 0;
    font: var(--type-title);
}
.gg-profile-about-text {
    margin: 0;
    font: var(--type-body);
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.gg-profile-about-body {
    margin: 0;
    font: var(--type-body);
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.gg-profile-about-body p {
    margin: 0 0 0.75em;
}
.gg-profile-about-body p:last-child {
    margin-bottom: 0;
}
.gg-profile-about-body ul {
    margin: 0 0 0.75em;
    padding-left: 1.25rem;
}
.gg-profile-about-body li {
    margin: 0 0 0.35em;
}
.gg-profile-about-body strong {
    font-weight: 700;
}
.gg-profile-about-body .gg-about-align.is-center {
    text-align: center;
}
.gg-profile-about-body .gg-about-align.is-right {
    text-align: right;
}
.gg-profile-about-body .gg-about-align.is-left {
    text-align: left;
}
.gg-profile-about-body .gg-about-align.is-center ul {
    display: inline-block;
    text-align: left;
}
.gg-profile-about-body .gg-about-hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin: 0.9em 0;
}
.gg-profile-about-body :is(h3, h4, h5, h6) {
    margin: 1em 0 0.4em;
    line-height: 1.3;
    font-family: var(--gg-font-display);
    font-weight: 650;
    color: var(--gg-text);
}
.gg-profile-about-body :is(h3, h4, h5, h6):first-child {
    margin-top: 0;
}
.gg-profile-about-body h3 {
    font-size: 1.15rem;
}
.gg-profile-about-body h4 {
    font-size: 1.05rem;
}
.gg-profile-about-body h5 {
    font-size: 0.98rem;
}
.gg-profile-about-body h6 {
    font-size: 0.92rem;
    font-weight: 600;
    opacity: 0.92;
}
.gg-profile-about-media {
    position: relative;
    width: min(100%, 600px);
    margin-inline: auto;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
.gg-profile-about-media iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* About vibes: refined skins (quiet accents, soft depth). */
body.has-page-backdrop .gg-profile-about.vibe-scrap,
.gg-profile-about.vibe-scrap {
    border-color: rgba(194, 120, 62, 0.28);
    background: linear-gradient(165deg, rgba(58, 36, 24, 0.92), rgba(18, 16, 14, 0.96));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.has-page-backdrop .gg-profile-about.vibe-scrap h2,
.gg-profile-about.vibe-scrap h2 {
    color: #e0b07a;
    font-weight: 650;
}
body.has-page-backdrop .gg-profile-about.vibe-scrap .gg-profile-about-body :is(h3, h4, h5, h6),
.gg-profile-about.vibe-scrap .gg-profile-about-body :is(h3, h4, h5, h6) {
    color: #e0b07a;
}
body.has-page-backdrop .gg-profile-about.vibe-neon,
.gg-profile-about.vibe-neon {
    border-color: rgba(100, 200, 190, 0.28);
    background: linear-gradient(180deg, rgba(14, 22, 26, 0.97), rgba(10, 14, 18, 0.98));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(100, 200, 190, 0.12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.has-page-backdrop .gg-profile-about.vibe-neon h2,
.gg-profile-about.vibe-neon h2 {
    color: #8fd9d0;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.92em;
    font-weight: 650;
}
body.has-page-backdrop .gg-profile-about.vibe-neon .gg-profile-about-body a,
.gg-profile-about.vibe-neon .gg-profile-about-body a {
    color: #8fd9d0;
}
body.has-page-backdrop .gg-profile-about.vibe-neon .gg-profile-about-body :is(h3, h4, h5, h6),
.gg-profile-about.vibe-neon .gg-profile-about-body :is(h3, h4, h5, h6) {
    color: #8fd9d0;
}
body.has-page-backdrop .gg-profile-about.vibe-candy,
.gg-profile-about.vibe-candy {
    border-color: rgba(255, 150, 175, 0.28);
    background: linear-gradient(160deg, rgba(42, 22, 30, 0.96), rgba(22, 14, 20, 0.98));
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.has-page-backdrop .gg-profile-about.vibe-candy h2,
.gg-profile-about.vibe-candy h2 {
    color: #f0b0c2;
}
body.has-page-backdrop .gg-profile-about.vibe-candy .gg-profile-about-body :is(h3, h4, h5, h6),
.gg-profile-about.vibe-candy .gg-profile-about-body :is(h3, h4, h5, h6) {
    color: #f0b0c2;
}
body.has-page-backdrop .gg-profile-about.vibe-candy .gg-profile-about-body a,
.gg-profile-about.vibe-candy .gg-profile-about-body a {
    color: #f0c4a8;
}
body.has-page-backdrop .gg-profile-about.vibe-sticky,
.gg-profile-about.vibe-sticky {
    border-color: rgba(210, 185, 120, 0.45);
    background: linear-gradient(180deg, #f3ead0 0%, #e8d9a8 100%);
    color: #2f2a1c;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    transform: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.has-page-backdrop .gg-profile-about.vibe-sticky h2,
body.has-page-backdrop .gg-profile-about.vibe-sticky .gg-profile-about-body,
body.has-page-backdrop .gg-profile-about.vibe-sticky .gg-profile-about-body a,
.gg-profile-about.vibe-sticky h2,
.gg-profile-about.vibe-sticky .gg-profile-about-body,
.gg-profile-about.vibe-sticky .gg-profile-about-body a {
    color: #2f2a1c;
}
body.has-page-backdrop .gg-profile-about.vibe-sticky .gg-profile-about-body a,
.gg-profile-about.vibe-sticky .gg-profile-about-body a {
    text-decoration: underline;
    text-underline-offset: 2px;
}
body.has-page-backdrop .gg-profile-about.vibe-sticky .gg-profile-about-body .gg-about-hr,
.gg-profile-about.vibe-sticky .gg-profile-about-body .gg-about-hr,
body.has-page-backdrop .gg-profile-about.vibe-polaroid .gg-profile-about-body .gg-about-hr,
.gg-profile-about.vibe-polaroid .gg-profile-about-body .gg-about-hr {
    border-top-color: rgba(42, 36, 24, 0.22);
}
body.has-page-backdrop .gg-profile-about.vibe-sticky .gg-profile-about-media,
.gg-profile-about.vibe-sticky .gg-profile-about-media {
    border-color: rgba(47, 42, 28, 0.14);
    box-shadow: 0 6px 18px rgba(47, 42, 28, 0.12);
}

body.has-page-backdrop .gg-profile-about.vibe-terminal,
.gg-profile-about.vibe-terminal {
    border-color: rgba(90, 170, 100, 0.28);
    background: rgba(10, 16, 12, 0.97);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(90, 170, 100, 0.1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.has-page-backdrop .gg-profile-about.vibe-terminal h2,
.gg-profile-about.vibe-terminal h2 {
    color: #8fd99a;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9em;
    font-family: ui-monospace, Consolas, "Courier New", monospace;
    font-weight: 650;
}
body.has-page-backdrop .gg-profile-about.vibe-terminal .gg-profile-about-body,
.gg-profile-about.vibe-terminal .gg-profile-about-body,
body.has-page-backdrop .gg-profile-about.vibe-terminal .gg-profile-about-body a,
.gg-profile-about.vibe-terminal .gg-profile-about-body a {
    color: #b4e0bc;
    font-family: ui-monospace, Consolas, "Courier New", monospace;
    font-size: 0.95em;
}
body.has-page-backdrop .gg-profile-about.vibe-terminal h2::before,
.gg-profile-about.vibe-terminal h2::before {
    content: "";
}
body.has-page-backdrop .gg-profile-about.vibe-terminal .gg-profile-about-body :is(h3, h4, h5, h6),
.gg-profile-about.vibe-terminal .gg-profile-about-body :is(h3, h4, h5, h6) {
    color: #8fd99a;
    font-family: ui-monospace, Consolas, "Courier New", monospace;
}

body.has-page-backdrop .gg-profile-about.vibe-polaroid,
.gg-profile-about.vibe-polaroid {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #efeae0;
    color: #2a2418;
    padding: 16px 16px 22px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
    transform: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.has-page-backdrop .gg-profile-about.vibe-polaroid h2,
.gg-profile-about.vibe-polaroid h2 {
    color: #2a2418;
    font-weight: 700;
    letter-spacing: 0.01em;
}
body.has-page-backdrop .gg-profile-about.vibe-polaroid .gg-profile-about-body,
body.has-page-backdrop .gg-profile-about.vibe-polaroid .gg-profile-about-body a,
.gg-profile-about.vibe-polaroid .gg-profile-about-body,
.gg-profile-about.vibe-polaroid .gg-profile-about-body a {
    color: #3a3224;
}
body.has-page-backdrop .gg-profile-about.vibe-polaroid .gg-profile-about-media,
.gg-profile-about.vibe-polaroid .gg-profile-about-media {
    border: 1px solid rgba(42, 36, 24, 0.12);
    border-radius: 4px;
}

body.has-page-backdrop .gg-profile-about.vibe-hazard,
.gg-profile-about.vibe-hazard {
    border-color: rgba(210, 150, 60, 0.32);
    background: linear-gradient(180deg, rgba(28, 24, 18, 0.97), rgba(14, 14, 14, 0.98));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    padding: var(--space-4);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: relative;
}
body.has-page-backdrop .gg-profile-about.vibe-hazard::before,
.gg-profile-about.vibe-hazard::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(240, 170, 70, 0.7), transparent);
}
body.has-page-backdrop .gg-profile-about.vibe-hazard > h2,
body.has-page-backdrop .gg-profile-about.vibe-hazard > .gg-profile-about-body,
body.has-page-backdrop .gg-profile-about.vibe-hazard > .gg-profile-about-media,
.gg-profile-about.vibe-hazard > h2,
.gg-profile-about.vibe-hazard > .gg-profile-about-body,
.gg-profile-about.vibe-hazard > .gg-profile-about-media {
    background: transparent;
    margin: 0;
    padding: 0;
}
body.has-page-backdrop .gg-profile-about.vibe-hazard > h2,
.gg-profile-about.vibe-hazard > h2 {
    color: #e0b46a;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.92em;
    border-bottom: 0;
}
body.has-page-backdrop .gg-profile-about.vibe-hazard > .gg-profile-about-body,
.gg-profile-about.vibe-hazard > .gg-profile-about-body {
    padding-top: 0;
}
body.has-page-backdrop .gg-profile-about.vibe-hazard .gg-profile-about-body :is(h3, h4, h5, h6),
.gg-profile-about.vibe-hazard .gg-profile-about-body :is(h3, h4, h5, h6) {
    color: #e0b46a;
}
body.has-page-backdrop .gg-profile-about.vibe-hazard > .gg-profile-about-media,
.gg-profile-about.vibe-hazard > .gg-profile-about-media {
    width: min(100%, 600px);
    margin: 0 auto;
    border-radius: 10px;
}

body.has-page-backdrop .gg-profile-about.vibe-arcade,
.gg-profile-about.vibe-arcade {
    border-color: rgba(242, 110, 34, 0.28);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(22, 26, 34, 0.97), rgba(12, 14, 18, 0.98));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(242, 110, 34, 0.14);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.has-page-backdrop .gg-profile-about.vibe-arcade h2,
.gg-profile-about.vibe-arcade h2 {
    color: #efc57a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.92em;
    text-shadow: none;
}
body.has-page-backdrop .gg-profile-about.vibe-arcade .gg-profile-about-body a,
.gg-profile-about.vibe-arcade .gg-profile-about-body a {
    color: #8fd9d0;
}
body.has-page-backdrop .gg-profile-about.vibe-arcade .gg-profile-about-body :is(h3, h4, h5, h6),
.gg-profile-about.vibe-arcade .gg-profile-about-body :is(h3, h4, h5, h6) {
    color: #efc57a;
}

.gg-edit-about-hint {
    margin: 0;
    font: var(--type-caption);
}
.gg-edit-about-hint code {
    font-size: 0.92em;
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.22);
}
.gg-about-vibe-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}
/* Legend margin is unreliable in fieldsets; float + clear restores real gap. */
.gg-about-vibe-fieldset > legend {
    float: left;
    width: 100%;
    padding: 0;
    margin: 0 0 var(--space-3);
}
.gg-about-vibe-fieldset::after {
    content: "";
    display: table;
    clear: both;
}
.gg-about-vibe-fieldset > .gg-edit-about-hint {
    margin: 0 0 var(--space-3);
    clear: both;
}
.gg-about-vibe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-2);
    clear: both;
}
.gg-about-vibe-option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin: 0;
    padding: var(--space-2);
    border: 1px solid var(--border-muted);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.16);
    cursor: pointer;
    min-width: 0;
}
.gg-about-vibe-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.gg-about-vibe-option:has(input:checked),
.gg-about-vibe-option:has(input:focus-visible) {
    border-color: var(--gg-accent);
    box-shadow: 0 0 0 1px rgba(242, 110, 34, 0.35);
}
.gg-about-vibe-swatch {
    display: block;
    height: 36px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.gg-about-vibe-option.vibe-classic .gg-about-vibe-swatch {
    background: var(--surface-card);
}
.gg-about-vibe-option.vibe-scrap .gg-about-vibe-swatch {
    background: linear-gradient(145deg, #8a4a22, #2a1a12);
}
.gg-about-vibe-option.vibe-neon .gg-about-vibe-swatch {
    background: linear-gradient(135deg, #12343a, #1a1010 55%, #40e0d0);
}
.gg-about-vibe-option.vibe-candy .gg-about-vibe-swatch {
    background: linear-gradient(160deg, #5a2030, #2a1520);
}
.gg-about-vibe-option.vibe-sticky .gg-about-vibe-swatch {
    background: linear-gradient(180deg, #efe0a0, #e2c86a);
}
.gg-about-vibe-option.vibe-terminal .gg-about-vibe-swatch {
    background:
        linear-gradient(rgba(70, 200, 90, 0.25) 1px, transparent 1px),
        #0a140c;
    background-size: 100% 3px, auto;
}
.gg-about-vibe-option.vibe-polaroid .gg-about-vibe-swatch {
    background: linear-gradient(180deg, #ddd6c8 0 70%, #f4f0e6 70%);
    box-shadow: inset 0 0 0 2px #f4f0e6;
}
.gg-about-vibe-option.vibe-hazard .gg-about-vibe-swatch {
    background: linear-gradient(180deg, #2a2418, #141414);
    box-shadow: inset 0 2px 0 rgba(240, 170, 70, 0.7);
}
.gg-about-vibe-option.vibe-arcade .gg-about-vibe-swatch {
    background: linear-gradient(180deg, #1a2030, #10141c);
    box-shadow: inset 0 1px 0 rgba(242, 110, 34, 0.55);
}
.gg-about-vibe-name {
    font: var(--type-caption);
    font-weight: 600;
}

/* Page flair: cursors, selection, seasonal, section skins */
.gg-profile.cursor-crosshair { cursor: crosshair; }
.gg-profile.cursor-cell { cursor: cell; }
.gg-profile.cursor-grab { cursor: grab; }
.gg-profile.cursor-help { cursor: help; }
.gg-profile.cursor-scrap {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath fill='%23c4783e' stroke='%231a120c' stroke-width='1' d='M6 26 L14 10 L18 12 L10 28 Z'/%3E%3Ccircle cx='20' cy='8' r='3' fill='%23f2a65a' stroke='%231a120c'/%3E%3C/svg%3E") 6 6, crosshair;
}
.gg-profile.cursor-neon {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath fill='%237ef0e0' stroke='%230a1a1a' stroke-width='1.5' d='M4 4 L22 14 L14 16 L12 28 Z'/%3E%3C/svg%3E") 4 4, pointer;
}
.gg-profile.cursor-candy {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath fill='%23ff9fbc' stroke='%235a2030' stroke-width='1' d='M16 3 L19 12 L28 12 L21 18 L24 27 L16 21 L8 27 L11 18 L4 12 L13 12 Z'/%3E%3C/svg%3E") 16 16, pointer;
}
.gg-profile.cursor-crosshair a,
.gg-profile.cursor-crosshair button,
.gg-profile.cursor-cell a,
.gg-profile.cursor-cell button,
.gg-profile.cursor-grab a,
.gg-profile.cursor-grab button,
.gg-profile.cursor-help a,
.gg-profile.cursor-help button,
.gg-profile.cursor-scrap a,
.gg-profile.cursor-scrap button,
.gg-profile.cursor-neon a,
.gg-profile.cursor-neon button,
.gg-profile.cursor-candy a,
.gg-profile.cursor-candy button {
    cursor: pointer;
}

.gg-profile.select-scrap ::selection { background: rgba(194, 120, 62, 0.55); color: #fff8f0; }
.gg-profile.select-neon ::selection { background: rgba(64, 224, 208, 0.45); color: #041414; }
.gg-profile.select-candy ::selection { background: rgba(255, 140, 170, 0.55); color: #2a1018; }
.gg-profile.select-terminal ::selection { background: rgba(70, 200, 90, 0.45); color: #041208; }
.gg-profile.select-sticky ::selection { background: rgba(42, 36, 16, 0.85); color: #efe0a0; }

.gg-profile-seasonal {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
    border-radius: inherit;
}
.gg-profile.seasonal-halloween .gg-profile-seasonal {
    background: radial-gradient(ellipse at 50% 0%, rgba(242, 110, 34, 0.1), transparent 42%);
}
.gg-profile.seasonal-halloween .gg-profile-seasonal::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(242, 110, 34, 0.35) 1px, transparent 1.5px);
    background-size: 48px 48px;
    background-position: 12px 8px;
    opacity: 0.35;
}
.gg-profile.seasonal-winter .gg-profile-seasonal {
    background: linear-gradient(180deg, rgba(210, 225, 245, 0.07), transparent 36%);
}
.gg-profile.seasonal-winter .gg-profile-seasonal::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.55) 1px, transparent 1.5px);
    background-size: 36px 36px;
    opacity: 0.28;
    animation: gg-season-fall 22s linear infinite;
}
.gg-profile.seasonal-spring .gg-profile-seasonal {
    background: radial-gradient(ellipse at 85% 0%, rgba(255, 180, 160, 0.08), transparent 34%);
}
.gg-profile.seasonal-spring .gg-profile-seasonal::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 180, 170, 0.4) 1.2px, transparent 1.8px);
    background-size: 44px 44px;
    opacity: 0.3;
}
.gg-profile.seasonal-wipe {
    padding-top: 0;
}
.gg-profile.seasonal-wipe .gg-profile-hero {
    padding-top: 42px;
}
.gg-profile.seasonal-wipe .gg-profile-seasonal {
    background:
        radial-gradient(ellipse 55% 28% at 50% 0%, rgba(240, 170, 70, 0.14), transparent 70%),
        linear-gradient(180deg, rgba(240, 170, 70, 0.05), transparent 22%);
    overflow: visible;
}
.gg-profile.seasonal-wipe .gg-profile-seasonal::before {
    content: "Wipe day";
    position: absolute;
    top: 14px;
    left: 50%;
    z-index: 3;
    transform: translateX(-50%);
    padding: 5px 10px;
    border-radius: 999px;
    font: var(--type-caption);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f6e4c0;
    background:
        linear-gradient(135deg, rgba(240, 170, 70, 0.28), transparent 55%),
        rgba(18, 14, 10, 0.88);
    border: 1px solid rgba(240, 170, 70, 0.5);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}
.gg-profile.seasonal-wipe .gg-profile-seasonal::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 96px;
    background: repeating-linear-gradient(
        -45deg,
        #f0aa46 0 6px,
        #1a1410 6px 12px
    );
    opacity: 0.75;
    mask-image: linear-gradient(180deg, #000 40%, transparent);
    -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent);
}
@keyframes gg-season-fall {
    from { transform: translateY(-6%); }
    to { transform: translateY(18%); }
}

/* Section skins: same quiet language as About vibes */
body.has-page-backdrop .gg-profile-panel.vibe-scrap,
.gg-profile-panel.vibe-scrap {
    --gg-skin-input-bg: rgba(24, 14, 10, 0.92);
    --gg-skin-input-border: rgba(194, 120, 62, 0.42);
    --gg-skin-input-text: #f0dcc4;
    --gg-skin-label: rgba(224, 176, 122, 0.78);
    --gg-skin-btn-border: rgba(194, 120, 62, 0.42);
    --gg-skin-btn-bg: rgba(194, 120, 62, 0.12);
    --gg-skin-accent: #c4783e;
    border-color: rgba(194, 120, 62, 0.28);
    background: linear-gradient(165deg, rgba(58, 36, 24, 0.92), rgba(18, 16, 14, 0.96));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.has-page-backdrop .gg-profile-panel.vibe-scrap h2,
.gg-profile-panel.vibe-scrap h2 { color: #e0b07a; }
body.has-page-backdrop .gg-profile-panel.vibe-neon,
.gg-profile-panel.vibe-neon {
    --gg-skin-input-bg: rgba(8, 16, 18, 0.94);
    --gg-skin-input-border: rgba(100, 200, 190, 0.38);
    --gg-skin-input-text: #d8f6f2;
    --gg-skin-label: rgba(143, 217, 208, 0.78);
    --gg-skin-btn-border: rgba(100, 200, 190, 0.38);
    --gg-skin-btn-bg: rgba(64, 224, 208, 0.1);
    --gg-skin-accent: #40e0d0;
    border-color: rgba(100, 200, 190, 0.28);
    background: linear-gradient(180deg, rgba(14, 22, 26, 0.97), rgba(10, 14, 18, 0.98));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(100, 200, 190, 0.12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.has-page-backdrop .gg-profile-panel.vibe-neon h2,
.gg-profile-panel.vibe-neon h2 {
    color: #8fd9d0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.92em;
}
body.has-page-backdrop .gg-profile-panel.vibe-candy,
.gg-profile-panel.vibe-candy {
    --gg-skin-input-bg: rgba(28, 12, 18, 0.94);
    --gg-skin-input-border: rgba(255, 150, 175, 0.4);
    --gg-skin-input-text: #ffe4ec;
    --gg-skin-label: rgba(240, 176, 194, 0.78);
    --gg-skin-btn-border: rgba(255, 150, 175, 0.4);
    --gg-skin-btn-bg: rgba(255, 150, 175, 0.1);
    --gg-skin-accent: #ff8faf;
    border-color: rgba(255, 150, 175, 0.28);
    background: linear-gradient(160deg, rgba(42, 22, 30, 0.96), rgba(22, 14, 20, 0.98));
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.has-page-backdrop .gg-profile-panel.vibe-candy h2,
.gg-profile-panel.vibe-candy h2 { color: #f0b0c2; }
body.has-page-backdrop .gg-profile-panel.vibe-candy .gg-muted,
.gg-profile-panel.vibe-candy .gg-muted { color: rgba(240, 176, 194, 0.7); }
body.has-page-backdrop .gg-profile-panel.vibe-sticky,
.gg-profile-panel.vibe-sticky {
    --gg-skin-input-bg: rgba(28, 24, 14, 0.92);
    --gg-skin-input-border: rgba(210, 185, 120, 0.42);
    --gg-skin-input-text: #efe6c8;
    --gg-skin-label: rgba(228, 213, 164, 0.75);
    --gg-skin-btn-border: rgba(210, 185, 120, 0.42);
    --gg-skin-btn-bg: rgba(232, 217, 164, 0.1);
    --gg-skin-accent: #d4b85a;
    border-color: rgba(210, 185, 120, 0.32);
    background: linear-gradient(180deg, rgba(40, 34, 22, 0.96), rgba(16, 14, 12, 0.98));
    color: #efe6c8;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), inset 0 2px 0 rgba(232, 217, 164, 0.55);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.has-page-backdrop .gg-profile-panel.vibe-sticky h2,
body.has-page-backdrop .gg-profile-panel.vibe-sticky .gg-muted,
.gg-profile-panel.vibe-sticky h2,
.gg-profile-panel.vibe-sticky .gg-muted { color: #e4d5a4; }
body.has-page-backdrop .gg-profile-panel.vibe-sticky .gg-muted,
.gg-profile-panel.vibe-sticky .gg-muted { color: rgba(228, 213, 164, 0.65); }
body.has-page-backdrop .gg-profile-panel.vibe-terminal,
.gg-profile-panel.vibe-terminal {
    --gg-skin-input-bg: rgba(6, 12, 8, 0.96);
    --gg-skin-input-border: rgba(70, 200, 90, 0.38);
    --gg-skin-input-text: #b8f0c0;
    --gg-skin-label: rgba(143, 217, 154, 0.78);
    --gg-skin-btn-border: rgba(70, 200, 90, 0.38);
    --gg-skin-btn-bg: rgba(70, 200, 90, 0.1);
    --gg-skin-accent: #46c85a;
    border-color: rgba(90, 170, 100, 0.28);
    background: rgba(10, 16, 12, 0.97);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.has-page-backdrop .gg-profile-panel.vibe-terminal h2,
.gg-profile-panel.vibe-terminal h2 {
    color: #8fd99a;
    font-family: ui-monospace, Consolas, "Courier New", monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9em;
}
body.has-page-backdrop .gg-profile-panel.vibe-polaroid,
.gg-profile-panel.vibe-polaroid {
    --gg-skin-input-bg: rgba(22, 18, 16, 0.94);
    --gg-skin-input-border: rgba(239, 234, 224, 0.32);
    --gg-skin-input-text: #efeae0;
    --gg-skin-label: rgba(239, 234, 224, 0.7);
    --gg-skin-btn-border: rgba(239, 234, 224, 0.32);
    --gg-skin-btn-bg: rgba(239, 234, 224, 0.08);
    --gg-skin-accent: #d8cfc0;
    border: 1px solid rgba(239, 234, 224, 0.22);
    background: linear-gradient(180deg, rgba(34, 30, 26, 0.97), rgba(14, 12, 11, 0.98));
    color: #efeae0;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), inset 0 3px 0 #efeae0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.has-page-backdrop .gg-profile-panel.vibe-polaroid h2,
body.has-page-backdrop .gg-profile-panel.vibe-polaroid .gg-muted,
.gg-profile-panel.vibe-polaroid h2,
.gg-profile-panel.vibe-polaroid .gg-muted { color: #efeae0; }
body.has-page-backdrop .gg-profile-panel.vibe-polaroid .gg-muted,
.gg-profile-panel.vibe-polaroid .gg-muted { color: rgba(239, 234, 224, 0.62); }
body.has-page-backdrop .gg-profile-panel.vibe-hazard,
.gg-profile-panel.vibe-hazard {
    --gg-skin-input-bg: rgba(18, 14, 10, 0.94);
    --gg-skin-input-border: rgba(240, 170, 70, 0.4);
    --gg-skin-input-text: #f5e2c0;
    --gg-skin-label: rgba(224, 180, 106, 0.78);
    --gg-skin-btn-border: rgba(240, 170, 70, 0.4);
    --gg-skin-btn-bg: rgba(240, 170, 70, 0.1);
    --gg-skin-accent: #f0aa46;
    border-color: rgba(210, 150, 60, 0.32);
    background: linear-gradient(180deg, rgba(28, 24, 18, 0.97), rgba(14, 14, 14, 0.98));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    padding: var(--space-4);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: relative;
}
body.has-page-backdrop .gg-profile-panel.vibe-hazard::before,
.gg-profile-panel.vibe-hazard::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(240, 170, 70, 0.7), transparent);
}
body.has-page-backdrop .gg-profile-panel.vibe-hazard > *,
.gg-profile-panel.vibe-hazard > * {
    background: transparent;
}
body.has-page-backdrop .gg-profile-panel.vibe-hazard h2,
.gg-profile-panel.vibe-hazard h2 {
    color: #e0b46a;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.92em;
}
body.has-page-backdrop .gg-profile-panel.vibe-arcade,
.gg-profile-panel.vibe-arcade {
    --gg-skin-input-bg: rgba(12, 14, 20, 0.96);
    --gg-skin-input-border: rgba(242, 110, 34, 0.4);
    --gg-skin-input-text: #ffe4c4;
    --gg-skin-label: rgba(239, 197, 122, 0.78);
    --gg-skin-btn-border: rgba(242, 110, 34, 0.4);
    --gg-skin-btn-bg: rgba(242, 110, 34, 0.1);
    --gg-skin-accent: #f26e22;
    border-color: rgba(242, 110, 34, 0.28);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(22, 26, 34, 0.97), rgba(12, 14, 18, 0.98));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(242, 110, 34, 0.14);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.has-page-backdrop .gg-profile-panel.vibe-arcade h2,
.gg-profile-panel.vibe-arcade h2 {
    color: #efc57a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.92em;
}

/* Form controls inherit the active section skin. */
.gg-profile-panel {
    --gg-skin-input-bg: rgba(12, 16, 22, 0.95);
    --gg-skin-input-border: rgba(255, 255, 255, 0.14);
    --gg-skin-input-text: var(--gg-text, #e8edf5);
    --gg-skin-label: var(--gg-text-muted, #9aa6b8);
    --gg-skin-btn-border: rgba(255, 255, 255, 0.18);
    --gg-skin-btn-bg: rgba(255, 255, 255, 0.05);
    --gg-skin-accent: var(--gg-accent, #f26e22);
}
body.has-page-backdrop .gg-profile .gg-profile-panel .gg-mystats-controls label,
.gg-profile-panel .gg-mystats-controls label {
    color: var(--gg-skin-label);
}
body.has-page-backdrop .gg-profile .gg-profile-panel select,
body.has-page-backdrop .gg-profile .gg-profile-panel input[type="text"],
body.has-page-backdrop .gg-profile .gg-profile-panel input[type="url"],
body.has-page-backdrop .gg-profile .gg-profile-panel .gg-mystats-controls select,
body.has-page-backdrop .gg-profile .gg-profile-panel .gg-profile-share-field input,
.gg-profile-panel select,
.gg-profile-panel input[type="text"],
.gg-profile-panel input[type="url"],
.gg-profile-panel .gg-mystats-controls select,
.gg-profile-panel .gg-profile-share-field input {
    background: var(--gg-skin-input-bg);
    border-color: var(--gg-skin-input-border);
    color: var(--gg-skin-input-text);
    color-scheme: dark;
}
body.has-page-backdrop .gg-profile .gg-profile-panel select:focus,
body.has-page-backdrop .gg-profile .gg-profile-panel input[type="text"]:focus,
body.has-page-backdrop .gg-profile .gg-profile-panel .gg-profile-share-field input:focus,
.gg-profile-panel select:focus,
.gg-profile-panel input[type="text"]:focus,
.gg-profile-panel .gg-profile-share-field input:focus {
    outline: none;
    border-color: var(--gg-skin-accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--gg-skin-accent) 28%, transparent);
}
body.has-page-backdrop .gg-profile .gg-profile-panel .gg-btn-ghost,
body.has-page-backdrop .gg-profile .gg-profile-panel .gg-btn-secondary,
.gg-profile-panel .gg-btn-ghost,
.gg-profile-panel .gg-btn-secondary {
    border-color: var(--gg-skin-btn-border);
    background: var(--gg-skin-btn-bg);
    color: var(--gg-skin-input-text);
}
body.has-page-backdrop .gg-profile .gg-profile-panel .gg-btn-ghost:hover,
body.has-page-backdrop .gg-profile .gg-profile-panel .gg-btn-secondary:hover,
.gg-profile-panel .gg-btn-ghost:hover,
.gg-profile-panel .gg-btn-secondary:hover {
    border-color: var(--gg-skin-accent);
    color: #fff;
}
body.has-page-backdrop .gg-profile .gg-profile-panel .gg-btn-primary,
.gg-profile-panel .gg-btn-primary {
    background: var(--gg-skin-accent);
    border-color: var(--gg-skin-accent);
    color: #14110e;
}
body.has-page-backdrop .gg-profile .gg-profile-panel.vibe-neon .gg-btn-primary,
body.has-page-backdrop .gg-profile .gg-profile-panel.vibe-terminal .gg-btn-primary,
body.has-page-backdrop .gg-profile .gg-profile-panel.vibe-candy .gg-btn-primary,
.gg-profile-panel.vibe-neon .gg-btn-primary,
.gg-profile-panel.vibe-terminal .gg-btn-primary,
.gg-profile-panel.vibe-candy .gg-btn-primary {
    color: #101418;
}
body.has-page-backdrop .gg-profile .gg-profile-panel.vibe-terminal select,
body.has-page-backdrop .gg-profile .gg-profile-panel.vibe-terminal input[type="text"],
.gg-profile-panel.vibe-terminal select,
.gg-profile-panel.vibe-terminal input[type="text"] {
    font-family: ui-monospace, Consolas, "Courier New", monospace;
}

/* Profile header name picks up section-skin accent colors (size stays normal). */
body.has-page-backdrop .gg-profile-hero.vibe-scrap .gg-page-title,
.gg-profile-hero.vibe-scrap .gg-page-title { color: #e0b07a; }
body.has-page-backdrop .gg-profile-hero.vibe-neon .gg-page-title,
.gg-profile-hero.vibe-neon .gg-page-title { color: #8fd9d0; }
body.has-page-backdrop .gg-profile-hero.vibe-candy .gg-page-title,
.gg-profile-hero.vibe-candy .gg-page-title { color: #f0b0c2; }
body.has-page-backdrop .gg-profile-hero.vibe-sticky .gg-page-title,
.gg-profile-hero.vibe-sticky .gg-page-title { color: #e4d5a4; }
body.has-page-backdrop .gg-profile-hero.vibe-terminal .gg-page-title,
.gg-profile-hero.vibe-terminal .gg-page-title { color: #8fd99a; }
body.has-page-backdrop .gg-profile-hero.vibe-polaroid .gg-page-title,
.gg-profile-hero.vibe-polaroid .gg-page-title { color: #efeae0; }
body.has-page-backdrop .gg-profile-hero.vibe-hazard .gg-page-title,
.gg-profile-hero.vibe-hazard .gg-page-title { color: #e0b46a; }
body.has-page-backdrop .gg-profile-hero.vibe-arcade .gg-page-title,
.gg-profile-hero.vibe-arcade .gg-page-title { color: #efc57a; }
body.has-page-backdrop .gg-profile-hero.vibe-scrap .gg-profile-steam,
.gg-profile-hero.vibe-scrap .gg-profile-steam { color: rgba(224, 176, 122, 0.7); }
body.has-page-backdrop .gg-profile-hero.vibe-neon .gg-profile-steam,
.gg-profile-hero.vibe-neon .gg-profile-steam { color: rgba(143, 217, 208, 0.7); }
body.has-page-backdrop .gg-profile-hero.vibe-candy .gg-profile-steam,
.gg-profile-hero.vibe-candy .gg-profile-steam { color: rgba(240, 176, 194, 0.7); }
body.has-page-backdrop .gg-profile-hero.vibe-sticky .gg-profile-steam,
.gg-profile-hero.vibe-sticky .gg-profile-steam { color: rgba(228, 213, 164, 0.65); }
body.has-page-backdrop .gg-profile-hero.vibe-terminal .gg-profile-steam,
.gg-profile-hero.vibe-terminal .gg-profile-steam { color: rgba(143, 217, 154, 0.7); }
body.has-page-backdrop .gg-profile-hero.vibe-polaroid .gg-profile-steam,
.gg-profile-hero.vibe-polaroid .gg-profile-steam { color: rgba(239, 234, 224, 0.62); }
body.has-page-backdrop .gg-profile-hero.vibe-hazard .gg-profile-steam,
.gg-profile-hero.vibe-hazard .gg-profile-steam { color: rgba(224, 180, 106, 0.7); }
body.has-page-backdrop .gg-profile-hero.vibe-arcade .gg-profile-steam,
.gg-profile-hero.vibe-arcade .gg-profile-steam { color: rgba(239, 197, 122, 0.7); }

/* Metric / achievement chips inside skinned panels */
.gg-profile-panel .gg-mystats-card {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.08);
}
.gg-profile-panel .gg-mystats-label,
.gg-profile-panel .gg-mystats-delta {
    color: rgba(255, 255, 255, 0.55);
}
.gg-profile-panel .gg-ach-item {
    background: rgba(255, 255, 255, 0.04);
}
.gg-profile-panel.vibe-sticky .gg-mystats-card {
    background: rgba(232, 217, 164, 0.08);
    border-color: rgba(232, 217, 164, 0.16);
}
.gg-profile-panel.vibe-sticky .gg-mystats-label,
.gg-profile-panel.vibe-sticky .gg-mystats-delta {
    color: rgba(228, 213, 164, 0.62);
}
.gg-profile-panel.vibe-sticky .gg-ach-item {
    background: rgba(232, 217, 164, 0.08);
}
.gg-profile-panel.vibe-polaroid .gg-mystats-card {
    background: rgba(239, 234, 224, 0.07);
    border-color: rgba(239, 234, 224, 0.16);
}
.gg-profile-panel.vibe-polaroid .gg-mystats-label,
.gg-profile-panel.vibe-polaroid .gg-mystats-delta {
    color: rgba(239, 234, 224, 0.6);
}
.gg-profile-panel.vibe-polaroid .gg-ach-item {
    background: rgba(239, 234, 224, 0.06);
}
.gg-profile-panel.vibe-neon .gg-mystats-card {
    background: rgba(64, 224, 208, 0.06);
    border-color: rgba(64, 224, 208, 0.16);
}
.gg-profile-panel.vibe-terminal .gg-mystats-card {
    background: rgba(70, 200, 90, 0.06);
    border-color: rgba(70, 200, 90, 0.14);
}
.gg-profile-panel.vibe-candy .gg-mystats-card {
    background: rgba(255, 150, 175, 0.07);
    border-color: rgba(255, 150, 175, 0.16);
}
.gg-profile-panel.vibe-scrap .gg-mystats-card {
    background: rgba(196, 120, 62, 0.08);
    border-color: rgba(196, 120, 62, 0.18);
}
.gg-profile-recap.gg-profile-panel,
.gg-profile-overall.gg-profile-panel,
.gg-profile-games.gg-profile-panel,
.gg-profile-chicken.gg-profile-panel {
    padding: 14px 16px;
}
.gg-profile-recap.gg-profile-panel .gg-profile-recap-head,
.gg-profile-overall.gg-profile-panel .gg-profile-recap-head,
.gg-profile-games.gg-profile-panel .gg-profile-recap-head {
    margin-bottom: 10px;
}
/* Classic (no vibe-*) matches Achievements / Stats muted chrome. */
body.has-page-backdrop .gg-profile-recap.gg-profile-panel:not([class*="vibe-"]),
body.has-page-backdrop .gg-profile-overall.gg-profile-panel:not([class*="vibe-"]),
body.has-page-backdrop .gg-profile-games.gg-profile-panel:not([class*="vibe-"]),
body.has-page-backdrop .gg-profile-chicken.gg-profile-panel:not([class*="vibe-"]) {
    background: rgba(16, 20, 28, 0.96);
    border-color: var(--border-primary);
    box-shadow: var(--shadow-subtle);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.gg-profile-stats {
    margin: 0 0 var(--space-6);
    padding: var(--space-4);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    background: var(--surface-card);
}
body.has-page-backdrop .gg-profile-stats {
    background: rgba(16, 20, 28, 0.96);
    border-color: var(--border-primary);
    box-shadow: var(--shadow-subtle);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.gg-profile-stats .gg-mystats-controls {
    margin-bottom: var(--space-3);
}
.gg-profile-stats-empty {
    margin: 0;
}
.gg-profile-stats-empty .gg-muted {
    margin: 0;
}
.gg-profile-stats .gg-mystats-section {
    margin-top: var(--space-4);
}
.gg-profile-stats .gg-mystats-section:first-of-type {
    margin-top: var(--space-3);
}
.gg-profile.gg-empty.gg-profile-panel,
.gg-profile .gg-empty.gg-profile-panel {
    padding: 16px 18px;
}

.gg-about-vibe-option.cursor-default .gg-about-vibe-swatch { background: #2a3038; }
.gg-about-vibe-option.cursor-crosshair .gg-about-vibe-swatch {
    background: #1a2030;
    background-image: linear-gradient(#7ef0e0, #7ef0e0), linear-gradient(#7ef0e0, #7ef0e0);
    background-size: 2px 70%, 70% 2px;
    background-position: center;
    background-repeat: no-repeat;
}
.gg-about-vibe-option.cursor-cell .gg-about-vibe-swatch {
    background:
        linear-gradient(rgba(255,255,255,0.2) 1px, transparent 1px) 0 0 / 12px 12px,
        linear-gradient(90deg, rgba(255,255,255,0.2) 1px, transparent 1px) 0 0 / 12px 12px,
        #1a2030;
}
.gg-about-vibe-option.cursor-grab .gg-about-vibe-swatch { background: radial-gradient(circle at 40% 40%, #f2a65a, #3a2818); }
.gg-about-vibe-option.cursor-help .gg-about-vibe-swatch { background: radial-gradient(circle, #ffe08a, #3a3418); }
.gg-about-vibe-option.cursor-scrap .gg-about-vibe-swatch { background: linear-gradient(145deg, #c4783e, #2a1a12); }
.gg-about-vibe-option.cursor-neon .gg-about-vibe-swatch { background: linear-gradient(135deg, #0a2020, #40e0d0); }
.gg-about-vibe-option.cursor-candy .gg-about-vibe-swatch { background: radial-gradient(circle, #ff9fbc, #5a2038); }
.gg-about-vibe-option.select-default .gg-about-vibe-swatch { background: linear-gradient(90deg, #f26e22 40%, #2a3038 40%); }
.gg-about-vibe-option.select-scrap .gg-about-vibe-swatch { background: linear-gradient(90deg, #c4783e 40%, #2a1a12 40%); }
.gg-about-vibe-option.select-neon .gg-about-vibe-swatch { background: linear-gradient(90deg, #40e0d0 40%, #0a1a1a 40%); }
.gg-about-vibe-option.select-candy .gg-about-vibe-swatch { background: linear-gradient(90deg, #ff9fbc 40%, #3a1520 40%); }
.gg-about-vibe-option.select-terminal .gg-about-vibe-swatch { background: linear-gradient(90deg, #46c85a 40%, #0a140c 40%); }
.gg-about-vibe-option.select-sticky .gg-about-vibe-swatch { background: linear-gradient(90deg, #2a2410 40%, #efe0a0 40%); }
.gg-about-vibe-option.seasonal-none .gg-about-vibe-swatch { background: #2a3038; }
.gg-about-vibe-option.seasonal-auto .gg-about-vibe-swatch {
    background: linear-gradient(135deg, #3a3030, #f26e22 45%, #8fd9d0);
}
.gg-about-vibe-option.seasonal-halloween .gg-about-vibe-swatch { background: linear-gradient(135deg, #1a1a1a, #f26e22); }
.gg-about-vibe-option.seasonal-winter .gg-about-vibe-swatch { background: linear-gradient(180deg, #d8e8ff, #3a4a60); }
.gg-about-vibe-option.seasonal-spring .gg-about-vibe-swatch { background: linear-gradient(180deg, #ff9fbc, #ffd36a); }
.gg-about-vibe-option.seasonal-wipe .gg-about-vibe-swatch {
    background:
        linear-gradient(180deg, rgba(240, 170, 70, 0.35), transparent 55%),
        repeating-linear-gradient(-45deg, #f0aa46 0 4px, #1a1410 4px 8px) 0 0 / 8px 100% no-repeat,
        #2a2218;
}

.gg-ach-list-featured {
    margin: 0;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}
.gg-ach-list-featured .gg-ach-item {
    border: 1px solid rgba(242, 110, 34, 0.35);
    background: rgba(242, 110, 34, 0.08);
}
.gg-ach-more-title {
    margin: 0;
    font: var(--type-caption);
    font-weight: 700;
    color: var(--gg-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 720px) {
    .gg-look-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gg-look-grid-frame {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .gg-section-order-item {
        flex-direction: column;
        align-items: stretch;
    }
    .gg-section-order-actions {
        width: 100%;
    }
    .gg-section-order-actions .gg-btn {
        flex: 1 1 auto;
    }
    .gg-panel-actions .gg-btn {
        width: 100%;
    }
    .gg-prefs-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .gg-prefs-actions .gg-btn {
        flex: 1 1 auto;
        text-align: center;
    }
}

@media (max-width: 720px) {
    .gg-stats-filters,
    .gg-mystats-controls,
    .gg-profile-look-form,
    .gg-profile-bg-form {
        flex-direction: column;
    }
    .gg-stats-filters label,
    .gg-mystats-controls label,
    .gg-stats-filters .gg-btn,
    .gg-mystats-controls .gg-btn,
    .gg-profile-look-form .gg-btn,
    .gg-profile-bg-form .gg-btn {
        flex: 1 1 auto;
        width: 100%;
        align-self: stretch;
    }
    .gg-stats-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 12px;
    }
    /* Mobile: primary metrics only (moose-style column drop). */
    .gg-stats-table th.is-extra,
    .gg-stats-table td.is-extra {
        display: none;
    }
    .gg-stats-table {
        min-width: 0;
        table-layout: fixed;
    }
    .gg-stats-table th,
    .gg-stats-table td {
        padding: 10px 8px;
        font-size: 0.875rem;
    }
    .gg-stats-table .gg-stats-player-col {
        width: 132px;
        min-width: 132px;
        max-width: 132px;
    }
    .gg-stats-player img {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 520px) {
    .gg-modal-dialog { padding: 20px 18px 16px; }
    .gg-modal-actions {
        flex-direction: column-reverse;
    }
    .gg-modal-actions .gg-btn {
        width: 100%;
        min-height: var(--gg-touch);
    }
    .gg-tile-contains {
        padding: 8px 0;
        margin: -8px 0;
        min-height: var(--gg-touch);
    }
    .gg-contains-dialog {
        max-height: min(78vh, 520px);
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
    .gg-contains-list {
        font: var(--type-body);
        margin-bottom: var(--space-3);
    }
}

/* Scrap Prize Wheel */
.gg-wheel-page-head {
    margin-bottom: 0.55rem;
    align-items: center;
    gap: 0.75rem;
}
.gg-wheel-page-head.gg-shop-head {
    margin-bottom: 0.55rem;
    padding: 0.45rem 0.8rem;
    gap: 0.75rem;
}
.gg-wheel-page-head .gg-page-title {
    margin: 0;
    font: var(--type-title-sm);
    letter-spacing: 0.04em;
}
.gg-wheel-page-head .gg-balance-strip {
    margin: 0;
}
.gg-wheel-page-head .gg-balance-block {
    padding: 0.2rem 0.45rem;
}
body.has-page-backdrop .gg-wheel-page-head {
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    background: rgba(12, 14, 18, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
body.has-page-backdrop .gg-wheel-page-head .gg-page-title {
    color: #f2f4f7;
}
body.gg-page-wheel .gg-main {
    padding-top: var(--space-3);
    padding-bottom: var(--space-4);
}
.gg-wheel {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.gg-wheel-stage {
    --wheel-fit: calc(100dvh - 9.5rem);
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 1fr);
    gap: 0.85rem 1.35rem;
    align-items: stretch;
    padding: 0.7rem 0.85rem;
    max-height: var(--wheel-fit);
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 15%, rgba(90, 110, 140, 0.1), transparent 45%),
        linear-gradient(165deg, #1c2026 0%, #14171c 55%, #0f1216 100%);
    border: 1px solid #2a3038;
    border-radius: var(--radius-lg);
}
body.has-page-backdrop .gg-wheel-stage {
    background: rgba(12, 14, 18, 0.58);
    border-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
body.has-page-backdrop .gg-wheel-panel-main,
body.has-page-backdrop .gg-wheel-history {
    background: rgba(10, 12, 16, 0.62);
    border-color: rgba(255, 255, 255, 0.08);
}
.gg-wheel-disc-wrap {
    position: relative;
    width: min(100%, 500px, calc(var(--wheel-fit) - 1.5rem));
    margin: 0 auto;
    aspect-ratio: 1;
    padding-top: 12px;
    align-self: center;
    max-height: calc(var(--wheel-fit) - 1.5rem);
    min-height: 0;
    box-sizing: border-box;
}
.gg-wheel-disc {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%;
    border-radius: 50%;
    transform-origin: 50% 50%;
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
    will-change: transform;
}
.gg-wheel-pointer {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 4;
    width: clamp(34px, 8%, 52px);
    height: auto;
    transform: translateX(-50%);
    transform-origin: 50% 18%;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.65));
}
.gg-wheel-pointer.is-click {
    animation: gg-wheel-tick 70ms ease-out;
}
@keyframes gg-wheel-tick {
    0% { transform: translateX(-50%) rotate(0deg); }
    40% { transform: translateX(-50%) rotate(-14deg); }
    100% { transform: translateX(-50%) rotate(0deg); }
}
.gg-wheel-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.65rem;
    align-self: stretch;
    align-items: stretch;
    min-height: 0;
    min-width: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}
.gg-wheel-panel-main {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.7rem 0.8rem;
    background: rgba(14, 16, 20, 0.72);
    border: 1px solid #2a3038;
    border-radius: 10px;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}
.gg-wheel-controls-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.gg-wheel-controls-title {
    margin: 0;
    font: var(--type-small);
    font-weight: 700;
    color: #eee4d4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.gg-wheel-mute {
    border: 1px solid #4a4034;
    background: #1c1712;
    color: #cbb89a;
    font: var(--type-caption);
    padding: 0.25rem 0.45rem;
    border-radius: 6px;
    cursor: pointer;
}
.gg-wheel-mute.is-muted { color: #8a7a68; }
.gg-wheel-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem 0.75rem;
}
.gg-wheel-cost {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font: var(--type-small);
    color: #d8cfc0;
}
.gg-wheel-cost img {
    width: 16px;
    height: 16px;
}
.gg-wheel-limit {
    margin: 0;
    font: var(--type-small);
    color: #a89880;
}
.gg-wheel-limit strong {
    color: #eee4d4;
    font-variant-numeric: tabular-nums;
}
.gg-wheel-spin-btn {
    width: 100%;
    min-height: 2.5rem;
    padding: 0.55rem 1rem;
    font-size: 1rem;
}
.gg-wheel-status {
    min-height: 1.1em;
    margin: 0;
    color: var(--gg-text-muted);
    font: var(--type-caption);
}
.gg-wheel-status.is-ok { color: var(--gg-success); }
.gg-wheel-status.is-err { color: var(--gg-danger); }
.gg-wheel-result {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    padding: 0.55rem;
    border: 1px solid #2a3038;
    border-radius: 8px;
    background: rgba(10, 12, 16, 0.75);
}
.gg-wheel-result[hidden],
.gg-wheel-result-art[hidden],
.gg-wheel-result-copy .gg-btn[hidden] {
    display: none !important;
}
.gg-wheel-result-art {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: #151920 center / contain no-repeat;
    border: 1px solid #2a3038;
    flex-shrink: 0;
}
.gg-wheel-result-title {
    margin: 0 0 2px;
    font: var(--type-small);
    font-weight: 700;
}
.gg-wheel-result-copy .gg-btn {
    margin-top: 0.3rem;
}
.gg-wheel-odds-block {
    margin-top: auto;
    padding-top: 0.25rem;
    border-top: 1px solid #2a3038;
    flex-shrink: 0;
}
.gg-wheel-side-label {
    margin: 0 0 0.35rem;
    font: var(--type-caption);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #a89880;
}
.gg-wheel-odds-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}
.gg-wheel-odds-list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.4rem;
    align-items: center;
    font: var(--type-caption);
}
.gg-wheel-odds-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gg-wheel-odds-pct {
    color: #cbb89a;
    font-variant-numeric: tabular-nums;
}
.gg-wheel-swatch {
    display: inline-block;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.35);
}
.gg-wheel-history {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.65rem 0.7rem;
    background: rgba(14, 16, 20, 0.72);
    border: 1px solid #2a3038;
    border-radius: 10px;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}
.gg-wheel-history-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
}
.gg-wheel-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 0.3rem 0.25rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}
.gg-wheel-stat span {
    font: var(--type-caption);
    color: #8f8678;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.62rem;
}
.gg-wheel-stat strong {
    font: var(--type-caption);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #e8dfd0;
}
.gg-wheel-stat strong.is-up,
.gg-wheel-history-net.is-up,
.gg-wheel-history-alltime .is-up {
    color: #7dba74;
}
.gg-wheel-stat strong.is-down,
.gg-wheel-history-net.is-down,
.gg-wheel-history-alltime .is-down {
    color: #d08068;
}
.gg-wheel-history-alltime {
    margin: 0;
    font: var(--type-caption);
    color: #8f8678;
    line-height: 1.3;
}
.gg-wheel-history-alltime span {
    color: #cbb89a;
    font-variant-numeric: tabular-nums;
}
.gg-wheel-history-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: auto;
    min-height: 0;
    flex: 1 1 auto;
    margin: 0 -0.1rem;
    padding: 0 0.1rem;
    overscroll-behavior: contain;
}
.gg-wheel-history-empty {
    margin: 0.5rem 0;
    text-align: center;
    font: var(--type-caption);
}
.gg-wheel-history-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 0.35rem;
    align-items: center;
    padding: 0.22rem 0.25rem;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.22);
}
.gg-wheel-history-chip {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: grid;
    place-items: center;
    color: #12100c;
    font-weight: 800;
    font-size: 0.65rem;
    border: 1px solid rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.gg-wheel-history-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: var(--type-caption);
    color: #d8cfc0;
}
.gg-wheel-history-net {
    font: var(--type-caption);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #a89880;
}
@media (max-width: 980px) {
    .gg-wheel-stage {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
        overflow: visible;
    }
    .gg-wheel-disc-wrap {
        width: min(100%, 420px);
        max-height: none;
    }
    .gg-wheel-side {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        height: auto;
        max-height: none;
        min-height: 280px;
        overflow: visible;
    }
    .gg-wheel-panel-main,
    .gg-wheel-history {
        height: auto;
        min-height: 100%;
        max-height: 320px;
        overflow: hidden;
    }
}
@media (max-width: 560px) {
    .gg-wheel-side {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .gg-wheel-panel-main,
    .gg-wheel-history {
        height: auto;
        min-height: 0;
        max-height: none;
    }
    .gg-wheel-history-list {
        max-height: 200px;
    }
}

/* -- News posts (Discord-hotlinked, no public nav) -- */
.gg-news {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}
.gg-news-hero .gg-page-title {
    margin-top: var(--space-1);
}
.gg-news-staff {
    margin: var(--space-3) 0 0;
}
.gg-news-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.gg-news-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--gg-bg-panel);
    border: 1px solid var(--gg-border);
    border-radius: var(--gg-radius-lg);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--gg-shadow);
    transition: border-color 0.15s ease, background 0.15s ease;
}
.gg-news-card.has-cover {
    grid-template-columns: 168px minmax(0, 1fr);
    align-items: center;
}
.gg-news-card:hover {
    border-color: var(--gg-border-strong, #5d667a);
    background: var(--gg-accent-soft);
}
.gg-news-card-cover {
    display: block;
    overflow: hidden;
    border-radius: var(--gg-radius);
    border: 1px solid var(--gg-border);
    aspect-ratio: 16 / 9;
    background: #0c0e12;
}
.gg-news-card-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gg-news-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.gg-news-card-title {
    font: var(--type-heading);
    font-size: 1.15rem;
    color: #fff;
}
.gg-news-date,
.gg-news-byline {
    margin: 0;
    font: var(--type-caption);
    color: var(--gg-text-muted);
}
.gg-news-cover {
    margin-top: 0;
    margin-bottom: var(--space-4);
    width: 100%;
    max-width: none;
}
.gg-news-article-wrap .gg-wiki-article {
    min-height: 0;
}
.gg-page-kicker a.gg-kicker-link {
    color: inherit;
    text-decoration: none;
}
.gg-page-kicker a.gg-kicker-link:hover {
    color: #fff;
}

/* -- Games lobby -- */
.gg-games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    width: 100%;
    max-width: 920px;
}
.gg-game-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--gg-bg-panel, var(--surface-card));
    border: 1px solid var(--gg-border, var(--border-muted));
    border-radius: var(--gg-radius-lg, var(--radius-lg));
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--gg-shadow, none);
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
a.gg-game-card:hover {
    border-color: var(--gg-border-strong, #5d667a);
    background: var(--gg-accent-soft, rgba(242, 110, 34, 0.08));
    transform: translateY(-2px);
}
.gg-game-card.is-soon {
    opacity: 0.78;
}
.gg-game-card-art {
    position: relative;
    height: 180px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(ellipse 70% 80% at 50% 80%, rgba(242, 110, 34, 0.18) 0%, transparent 70%),
        #12151c;
    overflow: hidden;
}
.gg-game-card-art img {
    width: min(72%, 220px);
    height: auto;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}
.gg-game-card-art-soon {
    background:
        radial-gradient(ellipse 70% 80% at 50% 80%, rgba(120, 130, 150, 0.16) 0%, transparent 70%),
        #12151c;
}
.gg-game-card-soon-mark {
    font: var(--type-heading);
    font-size: 3.2rem;
    font-weight: 800;
    color: rgba(232, 223, 208, 0.35);
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.gg-game-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(12, 14, 18, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font: var(--type-caption);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.gg-game-card-badge.is-test {
    border-color: rgba(242, 173, 34, 0.55);
    color: #f2ad22;
}
.gg-game-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: var(--space-4);
    flex: 1;
}
.gg-game-card-tag {
    margin: 0;
    font: var(--type-caption);
    color: var(--gg-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.gg-game-card-title {
    margin: 0;
    font: var(--type-heading);
    font-size: 1.25rem;
    color: #fff;
}
.gg-game-card-blurb {
    margin: 0;
    color: var(--gg-text-muted);
    font: var(--type-small);
    line-height: 1.5;
    flex: 1;
}
.gg-game-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: var(--space-3);
}
.gg-game-card-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: var(--type-small);
    font-weight: 600;
    color: #fff;
}
.gg-game-card-meta img {
    width: 16px;
    height: 16px;
}
a.gg-game-card .gg-btn {
    pointer-events: none;
}
@media (max-width: 720px) {
    .gg-games-grid {
        grid-template-columns: 1fr;
    }
    .gg-game-card-art {
        height: 150px;
    }
}
