/* ==========================================================================
   Cormorant SC — self-hosted from /fonts/ (copied from CI3)
   ========================================================================== */
@font-face { font-family: 'Cormorant SC'; src: url('/fonts/CormorantSC-Light.ttf')    format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant SC'; src: url('/fonts/CormorantSC-Regular.ttf')  format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant SC'; src: url('/fonts/CormorantSC-Medium.ttf')   format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant SC'; src: url('/fonts/CormorantSC-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant SC'; src: url('/fonts/CormorantSC-Bold.ttf')     format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

/* ==========================================================================
   GeoCraft Design System — CSS Variables + Bootstrap 5 overrides
   One file to rule them all. Change a variable here, the whole UI shifts.
   ========================================================================== */

:root {
    /* Native widgets (inputs, checkboxes, selects, scrollbars) render dark on
       mobile — without this, iOS/Android paint white form controls. */
    color-scheme: dark;

    /* ── Gold ──────────────────────────────────────────────────────────── */
    --gc-gold:           #c8902a;               /* primary brand gold      */
    --gc-gold-light:     #e1b35b;               /* hover / highlight gold  */
    --gc-gold-rgb:       200, 144, 42; /* @kind other */ /* for rgba() construction */
    --gc-gold-dim:       rgba(200,144,42,.35);  /* borders, subtle accents */
    --gc-gold-glow:      rgba(200,144,42,.15);  /* badge bg, active states */

    /* ── Backgrounds ───────────────────────────────────────────────────── */
    --gc-bg:             #030302;               /* page base — near-black   */
    --gc-bg-card:        rgba(9,7,4,.85);       /* cards — deeper dark      */
    --gc-bg-inner:       rgba(5,4,2,.6);        /* inner panels / wells     */
    --gc-bg-sidebar:     rgba(6,4,2,.92);       /* portal sidebar          */
    --gc-bg-overlay:     rgba(4,3,2,.94);       /* navbar, modals          */
    --gc-bg-hover:       rgba(14,10,6,.9);      /* nav item hover          */
    --gc-bg-elevated:    rgba(16,12,7,.92);     /* focused inputs          */
    --gc-preview-vignette: radial-gradient(circle at 50% 30%, rgba(255,140,0,.07) 0%, rgba(255,140,0,.02) 40%, transparent 70%); /* @kind other */ /* forge/preview atmosphere */

    /* ── Glow / depth ──────────────────────────────────────────────────── */
    --gc-glow-subtle:    0 0 28px rgba(200,144,42,.06);   /* resting cards  */
    --gc-glow-active:    0 0 24px rgba(200,144,42,.14);   /* hover / active */

    /* ── Borders ───────────────────────────────────────────────────────── */
    --gc-border:         rgba(200,144,42,.08);   /* hairline — barely visible */
    --gc-border-strong:  rgba(200,144,42,.25);   /* hover / focus state       */

    /* ── Typography ────────────────────────────────────────────────────── */
    --gc-text:           #d4d4d4;
    --gc-text-heading:   #f0e6c8;
    --gc-text-muted:     #847766;               /* raised from #6b6b6b     */
    --gc-font-serif:     'Cormorant SC', Georgia, serif;
    --gc-font-sans:      system-ui, 'Segoe UI', sans-serif;

    /* ── Status ────────────────────────────────────────────────────────── */
    --gc-success:        #4caf7d;
    --gc-warning:        #e8b84b;
    --gc-danger:         #cf6679;
    --gc-info:           #5b9bd5;

    /* ── Layout ────────────────────────────────────────────────────────── */
    --gc-navbar-h:       64px;                  /* public navbar           */
    --gc-topbar-height:  64px;                  /* portal topbar (alias)   */
    --gc-sidebar-width:  220px;
    --gc-radius:         8px;
    --gc-radius-sm:      4px;
    --gc-transition:     150ms ease; /* @kind other */

    /* ── Bootstrap 5 bridge ────────────────────────────────────────────── */
    --bs-primary:            var(--gc-gold);
    --bs-primary-rgb:        200, 144, 42; /* @kind other */
    --bs-body-bg:            var(--gc-bg);
    --bs-body-color:         var(--gc-text);
    --bs-border-color:       var(--gc-border);
    --bs-border-radius:      var(--gc-radius);
    --bs-card-bg:            var(--gc-bg-card);
    --bs-card-border-color:  var(--gc-border);
    --bs-link-color:         var(--gc-gold);
    --bs-link-hover-color:   var(--gc-gold-light);
    --bs-font-sans-serif:    var(--gc-font-sans);
}

/* ==========================================================================
   Base resets
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html, body {
    height: 100%;
    background: var(--gc-bg);
    color: var(--gc-text);
    font-family: var(--bs-font-sans-serif);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--gc-text-heading);
    font-weight: 600;
}

a {
    color: var(--gc-gold);
    text-decoration: none;
    transition: color var(--gc-transition);
}
a:hover { color: var(--gc-gold-light); }

/* ==========================================================================
   Particle canvas — behind everything, never intercepts clicks
   ========================================================================== */

/* ==========================================================================
   Page border overlays — same images + approach as CI3
   ========================================================================== */

.nk-page-border .nk-page-border-t,
.nk-page-border .nk-page-border-r,
.nk-page-border .nk-page-border-b,
.nk-page-border .nk-page-border-l {
    position: fixed;
    z-index: 2000;
    user-select: none;
    pointer-events: none;
    background-size: 100% 100%;
}
.nk-page-border .nk-page-border-t,
.nk-page-border .nk-page-border-b { left: 0; width: 100%; height: 50px; }
.nk-page-border .nk-page-border-r,
.nk-page-border .nk-page-border-l { top: 0; height: 100%; width: 50px; }
.nk-page-border .nk-page-border-t { top: 0;    background-image: url('/img/border-top.png'); }
.nk-page-border .nk-page-border-b { bottom: 0; background-image: url('/img/border-bottom.png'); }
.nk-page-border .nk-page-border-r { right: 0;  background-image: url('/img/border-right.png'); }
.nk-page-border .nk-page-border-l { left: 0;   background-image: url('/img/border-left.png'); }

/* ==========================================================================
   Global form theming — every Bootstrap control, on every page
   (auth panel had local rules; mobile rendered native white controls)
   ========================================================================== */
.form-control,
.form-select {
    background-color: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.12);
    color: var(--gc-text);
}
.form-control::placeholder { color: rgba(212,212,212,.28); }
.form-control:focus,
.form-select:focus {
    background-color: rgba(255,255,255,.06);
    border-color: var(--gc-gold-dim);
    color: var(--gc-text-heading);
    box-shadow: 0 0 0 .2rem rgba(var(--gc-gold-rgb), .12);
}
/* Autofill paints white on WebKit — repaint it dark */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: inset 0 0 0 1000px #14110b;
    -webkit-text-fill-color: #d4d4d4;
    caret-color: #d4d4d4;
    transition: background-color 99999s ease-in-out 0s;
}
/* Checkboxes / radios — Bootstrap .form-check-input, gold-themed */
.form-check-input {
    background-color: rgba(255,255,255,.06);
    border: 1px solid rgba(var(--gc-gold-rgb), .45);
}
.form-check-input:checked {
    background-color: var(--gc-gold);
    border-color: var(--gc-gold);
}
.form-check-input:focus {
    border-color: var(--gc-gold);
    box-shadow: 0 0 0 .2rem rgba(var(--gc-gold-rgb), .2);
}
/* Bare (non-Bootstrap) checkboxes/radios fall back to gold accents */
input[type="checkbox"],
input[type="radio"] { accent-color: var(--gc-gold); }

/* particles-js + page background — identical to CI3 */
.nk-page-background {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    background-position: 50% 50%;
    background-size: cover;
    pointer-events: none;
}
.op-5 { opacity: .5 !important; }
/* Embers overlay — the particles canvas floats above page content (the fire
   IMAGE stays behind it at z 0). pointer-events:none keeps it click-through. */
.gc-embers {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
#particles-js canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    opacity: 2; /* restore canvas to full opacity over the dimmed bg */
}

/* Everything rendered above the canvas.
   The public layout's main/navbar/footer were missing from this list, so the
   fixed half-opacity fiery background painted OVER their content — /news and
   /database looked transparent/washed-out while the portal looked fine. */
.gc-sidebar,
.gc-topbar,
.gc-content,
.gc-rightpanel,
.gc-navbar,
.gc-footer,
body > main {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Portal layout — sidebar + content
   ========================================================================== */

.gc-portal-shell {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar — a TRANSPARENT column on the dark ground. It is NOT a card.
   It holds 4 pieces, only two of which are cards: an OPEN title row, the
   .gc-menu-card (nav only), a flex spacer, the .gc-upgrade card, and an OPEN
   version line. The page ground shows through so the two cards float. ── */
.gc-sidebar {
    width: var(--gc-sidebar-width);
    min-height: 100vh;
    background: transparent;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-shrink: 0;
    overflow-y: auto;
    padding: 14px;
}

.gc-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--gc-border);
    margin-bottom: 0.5rem;
    text-decoration: none;
}
.gc-sidebar-logo img { width: 32px; height: 32px; }
.gc-sidebar-logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gc-gold);
    letter-spacing: 0.03em;
}

.gc-nav-section {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    background: none;
    border: 0;
    padding: 0.85rem 0.9rem 0.3rem;
    /* Enlarged display serif — Cormorant SC's small-caps supply the caps, so no
       uppercase transform (matches mockup-portal-menu.png section headers). */
    font-family: var(--gc-font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--gc-text-heading);
    opacity: 0.9;
    cursor: pointer;
    user-select: none;
}
.gc-nav-section:hover { color: var(--gc-text); }
.gc-nav-caret {
    font-size: 0.5rem;
    opacity: 0.65;
    transition: transform var(--gc-transition);
}
.gc-nav-sec.collapsed .gc-nav-caret { transform: rotate(-90deg); }
.gc-nav-sec.collapsed .gc-nav-group { display: none; }

.gc-nav-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border: 1px solid transparent;         /* reserved so .active's border doesn't shift text */
    border-radius: var(--gc-radius-sm);
    color: var(--gc-text);
    font-size: 0.875rem;
    font-weight: 400;                      /* regular weight — items don't read bold */
    text-decoration: none;
    transition: background var(--gc-transition), color var(--gc-transition);
    position: relative;
}
/* Notification badge — red dot on nav items */
.gc-nav-badge {
    display: inline-block;
    width: 8px; height: 8px;
    background: #e5534b;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: auto;
    box-shadow: 0 0 0 2px var(--gc-bg-sidebar, #0d1117);
    animation: gc-badge-pulse 2s ease-in-out infinite;
}
@keyframes gc-badge-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .7; transform: scale(1.25); }
}
.gc-nav-item:hover {
    background: var(--gc-bg-hover);
    color: var(--gc-text-heading);
}
/* Active = filled gold pill — bordered + inner glow, 8px radius, weight stays 400
   (matches mockup-portal-menu.png / the daily-rewards handoff exactly). */
.gc-nav-item.active {
    background: rgba(var(--gc-gold-rgb), .14);
    border-color: rgba(var(--gc-gold-rgb), .30);
    border-radius: var(--gc-radius);
    box-shadow: inset 0 0 14px rgba(var(--gc-gold-rgb), .07);
    color: var(--gc-gold-light);
}
.gc-nav-item.active i, .gc-nav-item.active svg { opacity: 1; color: var(--gc-gold); }
.gc-nav-item svg, .gc-nav-item i {
    width: 16px;
    opacity: 0.7;
    flex-shrink: 0;
}
.gc-nav-label { flex: 1; }

/* ── Sidebar head: logo row + apps/collapse toggle ──────────────────────── */
/* Title row — OPEN (no card): logo + apps toggle on the page ground */
.gc-sidebar-head {
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    padding: 0.35rem 0.5rem; background: transparent; border: 0;
}
.gc-sidebar-head .gc-sidebar-logo { padding: 0; border: 0; margin: 0; min-width: 0; }
.gc-apps-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; flex-shrink: 0;
    background: rgba(255,255,255,.04); border: 1px solid var(--gc-border);
    border-radius: 8px; color: var(--gc-text-muted); cursor: pointer;
    transition: color var(--gc-transition), border-color var(--gc-transition);
}
.gc-apps-toggle:hover { color: var(--gc-gold); border-color: var(--gc-gold-dim); }

/* ── The two cards (menu + upgrade) share one treatment; the spacer between
   the menu card and the upgrade card pushes upgrade + version to the bottom. ── */
.gc-menu-card,
.gc-upgrade {
    /* Same milled surface as .gc-card: top-lit gradient over the base colour,
       plus a 1px inset highlight on the top edge so the card reads as a bevel
       catching light rather than a flat panel. */
    background:
        linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008)),
        #0b0907;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    box-shadow:
        0 12px 38px rgba(0, 0, 0, .55),
        inset 0 1px 0 rgba(255,255,255,.06);
}
.gc-menu-card { padding: 0.6rem 0; }                  /* nav only */
.gc-upgrade   { padding: 1.1rem; }                    /* its own separate card */
.gc-sidebar-spacer { flex: 1 1 auto; }

.gc-upgrade-title { display: flex; align-items: center; gap: 0.45rem; color: var(--gc-gold); font-weight: 600; font-size: 0.85rem; }
.gc-upgrade-text  { font-size: 0.72rem; color: var(--gc-text-muted); margin: 0.45rem 0 0.7rem; line-height: 1.5; }
.gc-upgrade-btn {
    display: block; text-align: center; padding: 0.45rem;
    background: linear-gradient(180deg, var(--gc-gold), #8a6116);
    color: #14110b; font-weight: 700; font-size: 0.8rem;
    border-radius: 7px; text-decoration: none;
}
.gc-upgrade-btn:hover { filter: brightness(1.07); }

/* Version line — OPEN (no card): status dot + version on the page ground */
.gc-sidebar-foot {
    display: flex; align-items: center; gap: 0.45rem;
    padding: 0 0.5rem; background: transparent; border: 0;
    font-size: 0.7rem; color: var(--gc-text-muted);
}
.gc-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #3fb950; box-shadow: 0 0 6px #3fb950; flex-shrink: 0; }

/* ── Collapsed (icon-only) sidebar — toggled by the apps button ──────────── */
.gc-sidebar.gc-collapsed { width: 64px; }
.gc-sidebar.gc-collapsed .gc-sidebar-logo-text,
.gc-sidebar.gc-collapsed .gc-nav-section,
.gc-sidebar.gc-collapsed .gc-nav-label,
.gc-sidebar.gc-collapsed .gc-upgrade,
.gc-sidebar.gc-collapsed .gc-sidebar-foot { display: none; }
.gc-sidebar.gc-collapsed .gc-nav-item { justify-content: center; padding: 0.5rem; margin: 0 0.4rem; }
.gc-sidebar.gc-collapsed .gc-sidebar-head { justify-content: center; }
/* Collapsed: the notification dot becomes a corner overlay so it no longer
   pushes the icon out of centre (margin-left:auto would otherwise shift it). */
.gc-sidebar.gc-collapsed .gc-nav-badge { position: absolute; top: 4px; right: 6px; margin: 0; }

/* ── Main content area ── */
.gc-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gc-topbar-portal {
    height: var(--gc-topbar-height);
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gc-border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.gc-topbar-search {
    flex: 1;
    max-width: 400px;
}
.gc-topbar-search input {
    background: var(--gc-bg-card);
    border: 1px solid var(--gc-border);
    border-radius: 6px;
    color: var(--gc-text);
    padding: 0.375rem 0.75rem;
    width: 100%;
    font-size: 0.875rem;
    outline: none;
    transition: border-color var(--gc-transition);
}
.gc-topbar-search input:focus {
    border-color: var(--gc-gold-dim);
}
.gc-topbar-search input::placeholder { color: var(--gc-text-muted); }

.gc-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.gc-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--gc-gold-dim);
    object-fit: cover;
    cursor: pointer;
}

/* Body row — content + optional right rail sit side by side below the topbar.
   Pages without a rightpanel section just have .gc-content (flex:1) → full width. */
.gc-body {
    flex: 1;
    display: flex;
    min-width: 0;
}

.gc-content {
    flex: 1;
    min-width: 0;
    padding: 1.5rem;
}

/* ── Right panel (optional) ── */
.gc-rightpanel {
    width: 280px;
    flex-shrink: 0;
    background: var(--gc-bg-card);
    border-left: 1px solid var(--gc-border);
    padding: 1.25rem;
}

/* ==========================================================================
   Public layout — navbar
   ========================================================================== */

.gc-navbar {
    background: rgba(10,9,7,.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gc-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0;
}
/* Bootstrap row carries the height; align-items-center (on the row) vertically centers columns */
.gc-navbar .row { min-height: 64px; }
.gc-navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Cormorant SC', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gc-text-heading);
    text-decoration: none;
    letter-spacing: 0.03em;
}
.gc-navbar-brand img { height: 38px; width: auto; display: block; }
.gc-navbar-soon { opacity: .45; pointer-events: none; }
.gc-navbar-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0; padding: 0;
}
.gc-navbar-links a {
    padding: 0.4rem 0.85rem;
    color: rgba(212,212,212,.88);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--gc-transition);
}
.gc-navbar-links a:hover,
.gc-navbar-links a.active { color: var(--gc-text-heading); }
.gc-navbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.gc-navbar-search-btn {
    background: none; border: none;
    color: rgba(212,212,212,.65);
    padding: 0.3rem; cursor: pointer;
    font-size: 1rem;
    transition: color var(--gc-transition);
}
.gc-navbar-search-btn:hover { color: var(--gc-text-heading); }
.btn-nav-login {
    background: none; border: none;
    color: rgba(212,212,212,.88);
    font-size: 0.9rem; font-weight: 500;
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    transition: color var(--gc-transition);
}
.btn-nav-login:hover { color: var(--gc-text-heading); }
.btn-nav-play {
    background: var(--gc-gold);
    color: #0a0805;
    border: none; border-radius: 3px;
    padding: 0.45rem 1.1rem;
    font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--gc-transition);
}
.btn-nav-play:hover { background: var(--gc-gold-light); color: #0a0805; }

/* ==========================================================================
   Public layout — footer
   ========================================================================== */

.gc-footer {
    background: #070605;
    border-top: 1px solid var(--gc-border);
    padding: 4rem 2rem 2rem;
    position: relative; z-index: 1;
}
.gc-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.6fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto 3rem;
}
.gc-footer-brand {
    font-family: 'Cormorant SC', serif; font-weight: 600;
    font-size: 1.1rem; font-weight: 700;
    color: var(--gc-text-heading);
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
    display: block;
}
.gc-footer-desc {
    font-size: 0.85rem; color: rgba(212,212,212,.55);
    line-height: 1.7; margin-bottom: 1.25rem;
}
.gc-footer-socials { display: flex; gap: 0.75rem; }
.gc-footer-socials a {
    width: 32px; height: 32px;
    border: 1px solid var(--gc-border); border-radius: var(--gc-radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: rgba(212,212,212,.5); font-size: 0.9rem;
    text-decoration: none;
    transition: border-color var(--gc-transition), color var(--gc-transition);
}
.gc-footer-socials a:hover { border-color: var(--gc-gold-dim); color: var(--gc-gold); }
.gc-footer-col-title {
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--gc-text-heading); margin-bottom: 1rem;
}
.gc-footer-col ul { list-style: none; margin: 0; padding: 0; }
.gc-footer-col ul li { margin-bottom: 0.55rem; }
.gc-footer-col ul a {
    font-size: 0.875rem; color: rgba(212,212,212,.6);
    text-decoration: none;
    transition: color var(--gc-transition);
}
.gc-footer-col ul a:hover { color: var(--gc-text-heading); }
.gc-footer-email-row {
    display: flex;
    border: 1px solid var(--gc-border); border-radius: var(--gc-radius-sm);
    overflow: hidden; margin-bottom: 1rem;
}
.gc-footer-email-row input {
    flex: 1; background: var(--gc-bg-card); border: none;
    color: var(--gc-text); padding: 0.5rem 0.75rem;
    font-size: 0.8rem; outline: none;
}
.gc-footer-email-row input::placeholder { color: var(--gc-text-muted); }

/* ── Newsletter opt-in — deliberately minimal ───────────────────────────────
   One field, one button, one quiet line. It lives in a narrow footer column
   next to the language switcher, so anything more (labels, a consent checkbox,
   a full-width CTA) turns the column into a wall. Consent is recorded by the
   double opt-in — the click in the confirmation email — not by a checkbox. */

/* Honeypot — off-screen, never focusable, invisible to AT. */
.gc-nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* The input+button row reuses .gc-footer-email-row; only the button is restyled. */
.gc-footer-email-row:focus-within {
    border-color: var(--gc-gold-dim);
    box-shadow: 0 0 0 3px rgba(var(--gc-gold-rgb), .08);
}
.gc-nl-btn {
    background: linear-gradient(135deg, var(--gc-gold-light) 0%, var(--gc-gold) 100%);
    border: 0; color: #1a1206; padding: 0 .85rem; font-size: .95rem; line-height: 1;
    cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
    transition: filter .18s ease;
}
.gc-nl-btn:hover:not(:disabled) { filter: brightness(1.08); }
.gc-nl-btn:disabled { opacity: .55; cursor: wait; }

.gc-nl-msg { font-size: .72rem; line-height: 1.4; margin-top: .4rem; }
.gc-nl-msg.error   { color: #e8867f; }
.gc-nl-msg.success { color: #7bd4a0; }
.gc-nl-note {
    font-size: .68rem; line-height: 1.4;
    color: rgba(212,212,212,.38); margin: .45rem 0 0;
}
.gc-footer-email-row button {
    background: var(--gc-gold); border: none; color: #0a0805;
    padding: 0 0.75rem; font-size: 0.9rem; cursor: pointer;
    transition: background var(--gc-transition);
}
.gc-footer-email-row button:hover { background: var(--gc-gold-light); }
/* Compact + inline — it sits in the bottom bar, not in a column. */
.gc-footer-lang select {
    background: var(--gc-bg-card); border: 1px solid var(--gc-border);
    border-radius: var(--gc-radius-sm); color: var(--gc-text-muted);
    padding: 0.3rem 0.6rem; font-size: 0.78rem; outline: none;
    cursor: pointer; transition: border-color .2s ease, color .2s ease;
}
.gc-footer-lang select:hover,
.gc-footer-lang select:focus { border-color: var(--gc-gold-dim); color: var(--gc-text); }

/* Bottom bar: copyright left, language right. */
/* Tables inside rendered markdown (legal + compliance pages). The renderer emits
   .gc-md-table; without these rules the trader-identification and pricing tables
   read as an undifferentiated run of text. Scrolls inside its own box so a wide
   table never makes the page scroll sideways. */
.gc-md-table {
    width: 100%; border-collapse: collapse;
    margin: 1.25rem 0; font-size: .95rem;
    display: block; overflow-x: auto;      /* narrow screens: scroll the table, not the page */
}
.gc-md-table th,
.gc-md-table td {
    border: 1px solid var(--gc-border);
    padding: .6rem .8rem; text-align: left; vertical-align: top;
}
.gc-md-table th { background: rgba(255,255,255,.03); font-weight: 600; }
.gc-md-table tbody tr:nth-child(even) td { background: rgba(255,255,255,.015); }
/* First column of a two-column table is a label, so keep it from wrapping oddly. */
.gc-md-table td:first-child { white-space: nowrap; }
@media (max-width: 575px) {
    .gc-md-table td:first-child { white-space: normal; }
}

/* Trust marks — NETOPIA logo strip + the two ANPC pictograms. Required by the
   payment processor and by Ordinul ANPC 449/2022, so they must be visible on
   every public page, not tucked behind a link. Kept quiet: this is a compliance
   strip, not a feature. */
.gc-footer-trust {
    max-width: 1100px; margin: 0 auto 1.5rem;
    border-top: 1px solid var(--gc-border); padding-top: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 1.25rem 2rem;
}
.gc-footer-trust img {
    /* The ANPC artwork is 165.448 x 40.991 (4.04:1). The order specifies
       250x50 (5:1); honour the width and let height follow so it is not
       stretched. */
    width: 200px; height: auto; display: block;
    opacity: .85; transition: opacity .15s ease;
}
.gc-footer-trust a:hover img { opacity: 1; }
@media (max-width: 575px) {
    .gc-footer-trust { gap: 1rem; }
    .gc-footer-trust img { width: 165px; }
}

.gc-footer-bottom {
    max-width: 1100px; margin: 0 auto;
    border-top: 1px solid var(--gc-border); padding-top: 1.5rem;
    font-size: 0.8rem; color: rgba(212,212,212,.4);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
@media (max-width: 575px) {
    /* Stack and centre on narrow screens rather than squeezing the two apart. */
    .gc-footer-bottom { flex-direction: column; text-align: center; gap: .85rem; }
}
@media (max-width: 991px) {
    .gc-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .gc-footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
    .gc-footer-grid { grid-template-columns: 1fr 1fr; }
    .gc-navbar-links { display: none; }
}

/* ==========================================================================
   Public page — hero
   ========================================================================== */

.gc-hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #050402 url('/img/hero-bg.jpg') 62% center / cover no-repeat;
}
/* Gradient veil: dark-left for readability, fade top+bottom */
.gc-hero-veil {
    position: absolute; inset: 0; z-index: 2;
    background:
        linear-gradient(to right,  rgba(5,4,2,.95) 0%, rgba(5,4,2,.78) 40%, rgba(5,4,2,.25) 65%, rgba(5,4,2,.05) 100%),
        linear-gradient(to top,    rgba(5,4,2,.8)  0%, transparent 30%),
        linear-gradient(to bottom, rgba(5,4,2,.55) 0%, transparent 12%);
}
.gc-hero-content {
    position: relative; z-index: 4;
    max-width: 600px;
    padding: 6rem 2rem 4rem;
    margin-left: clamp(1.5rem, 6vw, 6rem);
}
.gc-hero-emblem {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1.5rem; color: var(--gc-gold);
}
.gc-hero-emblem::before,
.gc-hero-emblem::after {
    content: ''; flex: 1; max-width: 52px; height: 1px;
    background: linear-gradient(to right, transparent, var(--gc-gold-dim));
}
.gc-hero-emblem::after { background: linear-gradient(to left, transparent, var(--gc-gold-dim)); }
.gc-hero-emblem span {
    font-size: 0.62rem; letter-spacing: 0.25em;
    text-transform: uppercase; font-weight: 700;
}
.gc-hero-tagline {
    font-size: 0.9rem; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--gc-gold);
    font-weight: 600; margin-bottom: 0.9rem;
}
.gc-hero h1 {
    font-family: 'Cormorant SC', serif; font-weight: 600;
    font-size: clamp(3rem, 6.5vw, 5.5rem);
    color: var(--gc-text-heading);
    line-height: 1.0; letter-spacing: 0.04em;
    margin-bottom: 1rem;
    text-shadow: 0 2px 40px rgba(200,144,42,.2), 0 0 120px rgba(200,144,42,.08);
}
.gc-hero-desc {
    color: #b0a080; font-size: 1.1rem;
    margin-bottom: 2.25rem; max-width: 420px; line-height: 1.78;
}
.gc-hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-hero-primary {
    background: var(--gc-gold); color: #08070a;
    border: none; border-radius: 2px;
    padding: 0.85rem 2.25rem;
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.5rem;
    transition: background .15s;
}
.btn-hero-primary:hover { background: var(--gc-gold-light); color: #08070a; }
.btn-hero-ghost {
    background: transparent; color: rgba(212,212,212,.65);
    border: 1px solid rgba(212,212,212,.2); border-radius: 2px;
    padding: 0.85rem 2.25rem;
    font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.5rem;
    transition: border-color .15s, color .15s;
}
.btn-hero-ghost:hover { border-color: rgba(200,144,42,.4); color: var(--gc-text-heading); }

/* ==========================================================================
   Public page — feature pillars
   ========================================================================== */

.gc-pillars {
    position: relative; z-index: 1;
    padding: 6rem 2rem; text-align: center;
    /* The Riftstone — the game's signature object presides over Features */
    background:
        linear-gradient(180deg, rgba(4,3,2,.93) 0%, rgba(4,3,2,.78) 35%, rgba(4,3,2,.88) 100%),
        url('/img/new_news/future_features.webp') center 30%/cover no-repeat;
    border-top: 1px solid rgba(200,144,42,.08);
}
.gc-pillars-inner { max-width: 1200px; margin: 0 auto; }
.gc-pillars-eyebrow {
    font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--gc-gold); font-weight: 600; margin-bottom: 1rem;
}
.gc-pillars-eyebrow::before,
.gc-pillars-eyebrow::after {
    content: '——'; margin: 0 0.6em; opacity: 0.5;
}
.gc-pillars-title {
    font-family: 'Cormorant SC', serif; font-weight: 600;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--gc-text-heading); letter-spacing: 0.06em; margin-bottom: 0.85rem;
}
.gc-pillars-sub {
    color: var(--gc-text); font-size: 1rem;
    max-width: 500px; margin: 0 auto 3.5rem; line-height: 1.85;
}
.gc-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.gc-pillar {
    background: rgba(14,11,7,.8);
    border: 1px solid rgba(200,144,42,0.15);
    border-radius: var(--gc-radius);
    padding: 2.5rem 1.75rem 2.25rem;
    transition: border-color .25s, transform .25s, box-shadow .25s;
}
.gc-pillar:hover {
    border-color: rgba(200,144,42,.45);
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.gc-pillar-icon { font-size: 2rem; color: var(--gc-gold); margin-bottom: 1.25rem; display: block; opacity: .9; }
.gc-pillar h3 { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gc-text-heading); margin-bottom: 0.75rem; font-weight: 700; }
.gc-pillar p  { font-size: 0.9rem; color: rgba(212,212,212,.7); margin: 0; line-height: 1.8; }

/* ==========================================================================
   Public page — world map band
   ========================================================================== */

.gc-mapband {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 1fr;
    min-height: 520px;
    border-top: 1px solid rgba(200,144,42,.08);
    border-bottom: 1px solid rgba(200,144,42,.08);
}
.gc-mapband-text {
    background: rgba(6,5,3,0.82);
    padding: 5rem 4rem 5rem clamp(1.5rem, 6vw, 6rem);
    display: flex; flex-direction: column; justify-content: center;
}
.gc-mapband-eyebrow {
    font-size: 0.78rem; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--gc-gold); margin-bottom: 1.25rem;
}
.gc-mapband-text h2 {
    font-family: 'Cormorant SC', serif; font-weight: 600;
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    color: var(--gc-text-heading); line-height: 1.2; margin-bottom: 1.25rem;
}
.gc-mapband-text p {
    color: var(--gc-text); font-size: 1rem;
    margin-bottom: 2.5rem; line-height: 1.85; max-width: 360px;
}
.btn-map {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    border: 1px solid rgba(200,144,42,.35); border-radius: 2px;
    color: var(--gc-text-heading);
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    text-decoration: none; width: fit-content;
    transition: background .15s, border-color .15s;
}
.btn-map:hover { background: var(--gc-gold-glow); border-color: var(--gc-gold); color: var(--gc-gold-light); }
.gc-mapband-visual { position: relative; overflow: hidden; background: #070502 url('/img/world-map-preview.jpg') center/cover no-repeat; }
.gc-mapband-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(to right, rgba(6,5,3,.9) 0%, rgba(6,5,3,.4) 30%, transparent 55%),
        linear-gradient(to bottom, rgba(5,4,2,.3) 0%, transparent 20%),
        rgba(5,4,2,.5);
}
.gc-mapband-icon {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.gc-mapband-icon i    { font-size: 7rem; color: rgba(200,144,42,.18); display: block; margin-bottom: 0.75rem; }
.gc-mapband-icon span { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(200,144,42,.32); }

/* ==========================================================================
   Public page — news section
   ========================================================================== */

.gc-news-wrap  { position: relative; z-index: 1; background: rgba(4,3,2,0.62); padding: 6rem 2rem; border-top: 1px solid rgba(200,144,42,.08); }
.gc-news-inner { max-width: 1200px; margin: 0 auto; }
.gc-section-header {
    display: flex; align-items: baseline;
    justify-content: space-between; margin-bottom: 2rem;
}
.gc-section-title {
    font-family: 'Cormorant SC', serif; font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--gc-text-heading); margin: 0;
}
.gc-section-link {
    font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--gc-gold); font-weight: 700; text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.3rem;
    transition: color .15s;
}
.gc-section-link:hover { color: var(--gc-gold-light); }
.gc-news-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
/* Same "milled surface" idea as .gc-card, adapted to this card's anatomy: the
   thumbnail is a child filling the top, so a card-level `inset 0 1px 0` would be
   painted UNDER it and never seen. The bevel therefore goes on the text panel's
   top edge — the real internal seam where image meets text — and the card keeps
   a resting drop shadow (it previously had none, so it sat flat until hover). */
.gc-news-card {
    background: rgba(16,13,9,.85);
    border: 1px solid var(--gc-border); border-radius: var(--gc-radius);
    overflow: hidden; text-decoration: none; color: var(--gc-text);
    box-shadow: 0 10px 26px rgba(0,0,0,.40);
    transition: border-color .25s, transform .25s, box-shadow .25s; display: block;
}
.gc-news-card:hover {
    border-color: rgba(200,144,42,.25);
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(0,0,0,.50), 0 0 22px rgba(200,144,42,.10);
    color: var(--gc-text);
}
.gc-news-thumb {
    width: 100%; aspect-ratio: 16/9;
    background-color: #1a1510;
    background-size: cover; background-position: center;
    position: relative; overflow: hidden;
    transition: transform .4s;
}
.gc-news-card:hover .gc-news-thumb { transform: scale(1.04); }
.gc-news-thumb::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 35%, rgba(5,4,2,.7) 100%);
}
.gc-news-body  {
    padding: 1.1rem 1.1rem 1.3rem;
    /* Lit panel + the bevel highlight on its top edge (the image/text seam). */
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.006));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.09);
    transition: background .25s ease, box-shadow .25s ease;
}
/* Hover warms the seam to gold instead of only moving the card. */
.gc-news-card:hover .gc-news-body {
    background: linear-gradient(180deg, rgba(var(--gc-gold-rgb),.09), rgba(255,255,255,.006));
    box-shadow: inset 0 1px 0 rgba(var(--gc-gold-rgb),.28);
}
.gc-news-cat   { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gc-gold); font-weight: 700; margin-bottom: 0.5rem; }
.gc-news-title { font-size: 1rem; font-weight: 600; color: var(--gc-text-heading); line-height: 1.45; margin-bottom: 0.5rem; font-family: 'Cormorant SC', serif; }
.gc-news-date  { font-size: 0.78rem; color: var(--gc-text-muted); }

/* ==========================================================================
   Public page — community stats
   ========================================================================== */

.gc-community {
    position: relative; z-index: 1;
    background: rgba(4,3,2,0.62);
    border-top: 1px solid rgba(200,144,42,.08);
    padding: 6rem 2rem; text-align: center;
}
.gc-community-inner { max-width: 1100px; margin: 0 auto; }
.gc-community h2 {
    font-family: 'Cormorant SC', serif; font-weight: 600;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--gc-text-heading); margin-bottom: 3.5rem;
    letter-spacing: 0.04em;
}
.gc-community-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 2rem; max-width: 960px; margin: 0 auto;
}
.gc-community-stat {
    padding: 2rem 1rem;
    border: 1px solid rgba(200,144,42,.1);
    border-radius: var(--gc-radius);
    background: rgba(18,14,8,.5);
    transition: border-color .2s;
}
.gc-community-stat:hover { border-color: rgba(200,144,42,.3); }
.gc-community-stat     { display: flex; align-items: center; gap: 1.25rem; }
.gc-community-stat i   { font-size: 1.8rem; color: var(--gc-gold); flex-shrink: 0; opacity: .75; }
.gc-community-val      { font-size: 2.6rem; color: var(--gc-gold); line-height: 1; font-family: 'Cormorant SC', serif; font-weight: 600; }
.gc-community-label    { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gc-text-muted); margin-top: 0.3rem; }

/* ==========================================================================
   Public page — responsive
   ========================================================================== */

@media (max-width: 991px) {
    .gc-pillars-grid   { grid-template-columns: repeat(2, 1fr); }
    .gc-news-grid      { grid-template-columns: repeat(2, 1fr); }
    .gc-community-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .gc-mapband        { grid-template-columns: 1fr; }
    .gc-mapband-visual { min-height: 240px; }
    .gc-hero-content   { margin-left: 0; }
}
@media (max-width: 575px) {
    .gc-pillars-grid   { grid-template-columns: 1fr; }
    .gc-news-grid      { grid-template-columns: 1fr; }
    .gc-community-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Cards
   ========================================================================== */

/* Cards are "milled" rather than flat: a top-lit vertical gradient + a 1px
   inset highlight on the top edge (the light catching a bevel) + a real drop
   shadow. The inset highlight is what reads as material depth — keep it subtle
   (≤ .06 alpha) or it turns plastic. */
.gc-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008)),
        var(--gc-bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--gc-border);
    border-radius: var(--gc-radius);
    padding: 1.25rem;
    box-shadow:
        0 10px 26px rgba(0,0,0,.40),
        inset 0 1px 0 rgba(255,255,255,.06),
        var(--gc-glow-subtle);
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.gc-card:hover {
    border-color: var(--gc-border-strong);
    transform: translateY(-3px);
    /* Warm the gradient toward gold on hover — the surface "catches" the light. */
    background:
        linear-gradient(180deg, rgba(var(--gc-gold-rgb),.06), rgba(255,255,255,.008)),
        var(--gc-bg-card);
    box-shadow:
        0 16px 38px rgba(0,0,0,.50),
        inset 0 1px 0 rgba(255,255,255,.09),
        var(--gc-glow-active);
}

.gc-card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--gc-radius-sm);
    background: var(--gc-gold-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gc-gold);
    margin-bottom: 0.75rem;
}

.gc-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gc-text-heading);
    line-height: 1;
    margin: 0.25rem 0;
}

.gc-stat-label {
    font-size: 0.75rem;
    color: var(--gc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gc-stat-sub {
    font-size: 0.8rem;
    color: var(--gc-text-muted);
    margin-top: 0.25rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-gc {
    background: var(--gc-gold);
    color: #0e0e0e;
    border: none;
    border-radius: var(--gc-radius-sm);
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--gc-transition), opacity var(--gc-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.btn-gc:hover {
    background: var(--gc-gold-light);
    color: #0e0e0e;
    box-shadow: 0 0 20px rgba(200,144,42,.25);
}

.btn-gc-outline {
    background: transparent;
    color: var(--gc-gold);
    border: 1px solid var(--gc-gold-dim);
    border-radius: var(--gc-radius-sm);
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--gc-transition), border-color var(--gc-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.btn-gc-outline:hover {
    background: var(--gc-gold-glow);
    border-color: var(--gc-gold);
    color: var(--gc-gold-light);
    box-shadow: 0 0 16px rgba(200,144,42,.15);
}

/* ==========================================================================
   Badges / pills
   ========================================================================== */

.gc-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.gc-badge-gold    { background: var(--gc-gold-glow);           color: var(--gc-gold-light); }
.gc-badge-success { background: rgba(76, 175, 125, 0.15);      color: var(--gc-success); }
.gc-badge-danger  { background: rgba(207, 102, 121, 0.15);     color: var(--gc-danger); }
.gc-badge-muted   { background: rgba(107, 107, 107, 0.15);     color: var(--gc-text-muted); }

/* ==========================================================================
   Quick Access grid
   ========================================================================== */

.gc-quickaccess {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.gc-quickaccess-item {
    background: var(--gc-bg-card);
    border: 1px solid var(--gc-border);
    border-radius: var(--gc-radius);
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--gc-text);
    transition: border-color var(--gc-transition), background var(--gc-transition);
}
.gc-quickaccess-item:hover {
    border-color: var(--gc-gold-dim);
    background: var(--gc-bg-elevated);
    color: var(--gc-text-heading);
}
.gc-quickaccess-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--gc-radius-sm);
    background: var(--gc-gold-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gc-gold);
    flex-shrink: 0;
}
.gc-quickaccess-label { font-size: 0.875rem; font-weight: 600; }
.gc-quickaccess-sub   { font-size: 0.75rem; color: var(--gc-text-muted); }

/* ==========================================================================
   Gold coin display (topbar)
   ========================================================================== */

.gc-coin-display {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    background: rgba(200, 144, 42, 0.12);
    border: 1px solid rgba(200, 144, 42, 0.3);
    color: var(--gc-gold);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    user-select: none;
}
.gc-coin-display .bi-coin {
    font-size: 1rem;
    opacity: 0.9;
}

/* ==========================================================================
   Responsive — collapse sidebar on mobile
   ========================================================================== */

@media (max-width: 768px) {
    .gc-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100%;
        transition: left var(--gc-transition);
        z-index: 200;
    }
    .gc-sidebar.open { left: 0; }
    .gc-rightpanel   { display: none; }
}

/* ==========================================================================
   Mockup: community stats — horizontal inline, no card borders
   ========================================================================== */
.gc-community-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    max-width: none;
    margin: 0 auto;
}
.gc-community-stat {
    border: none;
    background: transparent;
    padding: 1rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}
.gc-community-stat i {
    font-size: 2.2rem;
    margin-bottom: 0;
    opacity: 1;
    flex-shrink: 0;
    display: block;
}
.gc-community-val {
    font-size: 2rem;
    line-height: 1;
}

/* ==========================================================================
   Navbar — Bootstrap row height fix
   ========================================================================== */
.gc-navbar .container-fluid { height: 100%; }
.gc-navbar .row             { height: 100%; min-height: 64px; }

/* ==========================================================================
   Auth layout (login / register / recover) — full-screen two-column split
   ========================================================================== */
.gc-auth-shell {
    display: flex;
    min-height: calc(100vh - 64px);
}

/* ── Left panel ── */
.gc-auth-panel {
    position: relative;
    z-index: 1;
    width: 42%;
    min-height: calc(100vh - 64px);
    background: #050403;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 3.5rem;
    box-sizing: border-box;
}

/* ── Brand block ── */
.gc-auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}
.gc-auth-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    mix-blend-mode: lighten;
    margin-bottom: 0.75rem;
}
.gc-auth-brand-name {
    font-family: 'Cormorant SC', serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gc-text-heading);
}
.gc-auth-brand-sub {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gc-text-muted);
    margin-top: 0.2rem;
}

/* ── Heading ── */
.gc-auth-heading {
    font-family: 'Cormorant SC', serif;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 600;
    color: var(--gc-text-heading);
    margin-bottom: 0.4rem;
    text-align: center;
    max-width: 340px;
}
.gc-auth-sub {
    font-size: 0.875rem;
    color: rgba(212,212,212,.55);
    text-align: center;
    margin-bottom: 1.75rem;
    max-width: 340px;
}

/* ── Error ── */
.gc-auth-error {
    width: 100%;
    background: rgba(180,40,40,.12);
    border: 1px solid rgba(180,40,40,.3);
    border-radius: var(--gc-radius-sm);
    color: #e07070;
    font-size: 0.85rem;
    padding: 0.6rem 0.9rem;
    margin-bottom: 1rem;
}

/* ── Form ── */
.gc-auth-form { width: 100%; max-width: 340px; }
.gc-auth-field-wrap { margin-bottom: 1.1rem; }
.gc-auth-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gc-text-heading);
    margin-bottom: 0.45rem;
}

/* Bootstrap input-group overrides scoped to the auth panel */
.gc-auth-panel .input-group-text {
    background: rgba(255,255,255,.02);
    border-color: rgba(255,255,255,.10);
    color: rgba(212,212,212,.4);
    font-size: 0.9rem;
}
.gc-auth-panel .form-control {
    background: rgba(255,255,255,.02);
    border-color: rgba(255,255,255,.10);
    color: var(--gc-text);
    font-size: 0.9rem;
    height: 48px;
}
.gc-auth-panel .form-control::placeholder { color: rgba(212,212,212,.28); }
.gc-auth-panel .form-control:focus {
    background: rgba(255,255,255,.03);
    border-color: var(--gc-gold-dim);
    color: var(--gc-text-heading);
    box-shadow: none;
}
.gc-auth-panel .input-group:focus-within .input-group-text {
    border-color: var(--gc-gold-dim);
    color: rgba(212,212,212,.65);
}
.gc-auth-eye {
    cursor: pointer;
    color: rgba(212,212,212,.35);
    transition: color var(--gc-transition);
}
.gc-auth-eye:hover { color: var(--gc-text); }

/* ── Meta row ── */
.gc-auth-row-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.gc-auth-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: rgba(212,212,212,.65);
    cursor: pointer;
}
.gc-auth-remember input[type="checkbox"] { accent-color: var(--gc-gold); }
.gc-auth-forgot {
    font-size: 0.82rem;
    color: var(--gc-gold);
    text-decoration: none;
    transition: color var(--gc-transition);
}
.gc-auth-forgot:hover { color: var(--gc-gold-light); }

/* ── Buttons ── */
.gc-auth-btn-primary {
    display: block;
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gc-gold);
    border-radius: var(--gc-radius-sm);
    background: transparent;
    color: var(--gc-gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--gc-transition), color var(--gc-transition);
    margin-bottom: 0;
}
.gc-auth-btn-primary:hover {
    background: var(--gc-gold);
    color: #08070a;
}

/* ── Divider ── */
.gc-auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 340px;
    margin: 1.1rem 0;
    color: rgba(212,212,212,.3);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.gc-auth-divider::before,
.gc-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gc-border);
}

.gc-auth-btn-secondary {
    display: block;
    width: 100%;
    max-width: 340px;
    padding: 0.75rem;
    border: 1px solid var(--gc-border);
    border-radius: var(--gc-radius-sm);
    background: transparent;
    color: rgba(212,212,212,.75);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    transition: border-color var(--gc-transition), color var(--gc-transition);
}
.gc-auth-btn-secondary:hover {
    border-color: rgba(212,212,212,.4);
    color: var(--gc-text-heading);
}

/* ── Legal ── */
.gc-auth-legal {
    margin-top: 1.25rem;
    font-size: 0.75rem;
    color: rgba(212,212,212,.3);
    text-align: center;
    line-height: 1.6;
    max-width: 340px;
}
.gc-auth-legal a {
    color: rgba(212,212,212,.45);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--gc-transition);
}
.gc-auth-legal a:hover { color: var(--gc-text); }

/* ── Right panel — transparent so particles canvas (man-mapwall bg) shows through ── */
.gc-auth-hero {
    flex: 1;
    position: relative;
    background: transparent;
}
.gc-auth-hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(5,4,3,.6) 0%, transparent 40%);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .gc-auth-shell { flex-direction: column; }
    .gc-auth-panel { width: 100%; min-height: auto; padding: 2.5rem 1.75rem; }
    .gc-auth-hero  { min-height: 240px; }
}

/* ==========================================================================
   Portal dashboard — news feed cards (inside gc-card)
   ========================================================================== */

/* 2×2 grid inside the news card panel */
.gc-card .gc-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Parent card that holds the news grid should NOT lift — inner cards do that */
.gc-card:has(.gc-news-grid):hover {
    transform: none;
    box-shadow: var(--gc-glow-subtle);
}

/* Article title (portal size — slightly smaller than public landing) */
.gc-card .gc-news-title {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.4rem;
}

/* Date / meta line */
.gc-news-meta {
    font-size: 0.72rem;
    color: var(--gc-text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

@media (max-width: 576px) {
    .gc-card .gc-news-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Portal dashboard — account overview panel
   ========================================================================== */

/* Large avatar (account overview) */
.gc-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(200,144,42,.35);
}

/* XP / level progress bar */
.gc-xp-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,.06);
    border-radius: 3px;
    overflow: hidden;
}
.gc-xp-fill {
    height: 100%;
    width: var(--gc-w, 0);            /* dynamic fill — view sets --gc-w */
    background: linear-gradient(90deg, var(--gc-gold), var(--gc-gold-light));
    border-radius: 3px;
    transition: width .6s ease;
}

/* Stat mini-bars */
.gc-stats-mini { display: flex; flex-direction: column; gap: 0.55rem; }
.gc-stats-mini-row {
    display: grid;
    grid-template-columns: 80px 1fr 28px;
    align-items: center;
    gap: 0.5rem;
}
.gc-stats-mini-label {
    font-size: 0.72rem;
    color: var(--gc-text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}
.gc-stats-mini-label i { color: var(--gc-gold); opacity: .7; }
.gc-stats-mini-bar {
    height: 4px;
    background: rgba(255,255,255,.06);
    border-radius: 2px;
    overflow: hidden;
}
.gc-stats-mini-fill {
    height: 100%;
    background: var(--gc-gold);
    border-radius: 2px;
    opacity: .7;
    transition: width .5s ease;
}
.gc-stats-mini-val {
    font-size: 0.7rem;
    color: var(--gc-text-muted);
    text-align: right;
}

/* Small outline button variant */
.btn-gc-sm {
    font-size: 0.72rem;
    padding: 0.4rem 0.75rem;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   Dashboard — shared section label + view-all link
   ========================================================================== */

.gc-section-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gc-text-muted);
    margin-bottom: 0;
}
.gc-section-viewall {
    font-size: .72rem;
    color: var(--gc-gold);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    transition: color var(--gc-transition);
}
.gc-section-viewall:hover { color: var(--gc-gold-light); }

/* ==========================================================================
   Dashboard — right rail card variant (tighter padding, narrow col-3)
   ========================================================================== */

.gc-card-rail { padding: 1rem; }

/* Avatar sized for the narrow rail */
.gc-avatar-rail {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(200,144,42,.3);
    flex-shrink: 0;
}

.gc-rail-username {
    font-size: .82rem;
    font-weight: 600;
    color: var(--gc-text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gc-rail-role  { font-size: .72rem; color: var(--gc-text-muted); margin: .05rem 0; }
.gc-rail-since { font-size: .68rem; color: var(--gc-text-muted); }

/* ==========================================================================
   Portal dashboard — right-column panel components
   ========================================================================== */

/* Panel section header row */
.gc-panel-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gc-text-muted);
    margin-bottom: 1rem;
}

/* Key/value rows (overview + status) */
.gc-overview-rows { display: flex; flex-direction: column; gap: 0; }
.gc-overview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.8rem;
    color: var(--gc-text-muted);
    border-bottom: 1px solid var(--gc-border);
}
.gc-overview-row:last-child { border-bottom: none; }
.gc-overview-row i { margin-right: 0.4rem; opacity: .6; }
.gc-overview-row span:last-child { font-weight: 600; color: var(--gc-text); }

/* Status indicator dot */
.gc-status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.gc-status-dot-ok  { background: var(--gc-success); box-shadow: 0 0 6px var(--gc-success); }

/* ── Daily Rewards card ──────────────────────────────────────────────────── */
.gc-daily-day-badge   { margin-left: auto; font-size: .68rem; padding: 2px 8px; border-radius: 10px; background: rgba(200,144,42,.15); color: var(--gc-gold); border: 1px solid rgba(200,144,42,.3); }
.gc-daily-drops       { display: flex; gap: 10px; justify-content: center; margin: 8px 0 12px; flex-wrap: wrap; }
.gc-daily-drop        { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .7rem; color: var(--gc-text-heading); max-width: 64px; text-align: center; }
.gc-daily-drop img    { width: 40px; height: 40px; object-fit: contain; }
.gc-daily-timer-wrap  { text-align: center; margin: 4px 0 10px; }
.gc-daily-timer-label { font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gc-text-muted); margin-bottom: 3px; }
.gc-daily-timer       { font-size: 1.5rem; font-weight: 700; color: var(--gc-gold); letter-spacing: .05em; font-variant-numeric: tabular-nums; }
/* per-item claim rows */
.gc-daily-item-list         { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 10px; }
.gc-daily-item-row          { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; background: rgba(255,255,255,.04); transition: opacity .2s; }
.gc-daily-item-row img      { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.gc-daily-item-name         { flex: 1; min-width: 0; font-size: .78rem; color: var(--gc-text-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-daily-item-row.is-claimed { opacity: .45; }
.gc-daily-item-claimed      { color: var(--gc-success, #3fb950); font-size: 1rem; line-height: 1; flex-shrink: 0; }
.gc-daily-claim-item-btn    { flex-shrink: 0; padding: 3px 9px; background: linear-gradient(135deg,#c8902a 0%,#8a5e12 100%); color: #0d1117; border: none; border-radius: 5px; font-size: .72rem; font-weight: 700; cursor: pointer; transition: opacity .15s; white-space: nowrap; }
.gc-daily-claim-item-btn:hover    { opacity: .85; }
.gc-daily-claim-item-btn:disabled { opacity: .45; cursor: default; }
/* keep old single-button style for backward compat */
.gc-daily-claim-btn   { display: block; width: 100%; padding: 7px 12px; background: linear-gradient(135deg,#c8902a 0%,#8a5e12 100%); color: #0d1117; border: none; border-radius: 6px; font-size: .875rem; font-weight: 700; cursor: pointer; margin-bottom: 10px; transition: opacity .15s; }
.gc-daily-claim-btn:hover    { opacity: .85; }
.gc-daily-claim-btn:disabled { opacity: .5; cursor: default; }
.gc-daily-claimed-box        { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; margin: 6px 0; padding: 10px 8px 8px; background: rgba(200,144,42,.08); border: 1px solid rgba(200,144,42,.2); border-radius: 6px; font-size: .78rem; color: var(--gc-text); overflow: visible; }
.gc-daily-claimed-box img    { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.gc-daily-claimed-title      { font-size: .7rem; font-weight: 700; color: var(--gc-gold); text-align: center; margin-bottom: 6px; }
.gc-daily-past-title  { font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gc-text-muted); margin: 10px 0 6px; }
.gc-daily-past-list   { display: flex; flex-direction: column; gap: 0; }
.gc-daily-past-row    { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--gc-border); }
.gc-daily-past-row:last-child { border-bottom: none; }
.gc-daily-past-day    { display: flex; flex-direction: column; align-items: center; min-width: 28px; font-size: .65rem; color: var(--gc-text-muted); }
.gc-daily-past-day i  { font-size: .9rem; margin-bottom: 1px; }
.gc-daily-past-info   { flex: 1; min-width: 0; }
.gc-daily-past-name   { font-size: .78rem; font-weight: 600; color: var(--gc-text-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-daily-past-date   { font-size: .68rem; color: var(--gc-text-muted); margin-top: 1px; }
.gc-daily-past-img    { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }


/* ── User dropdown menu (topbar avatar) ─────────────────────────────────── */
/* Bootstrap .dropdown handles position:relative and show/hide via .show     */

.gc-user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: inherit;
}

/* Hide Bootstrap's auto-generated caret — we use our own chevron icon */
.gc-user-dropdown-toggle::after {
    display: none;
}

/* Visual overrides for Bootstrap's .dropdown-menu */
.gc-user-menu {
    background: #0d0b07;
    border: 1px solid var(--gc-border);
    border-radius: 10px;
    min-width: 200px;
    padding: 0.25rem 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    z-index: 1050;
}

.gc-user-menu-header {
    display: flex;
    flex-direction: column;
    padding: 0.65rem 1rem 0.5rem;
    line-height: 1.3;
}

.gc-user-menu-header span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gc-text-heading);
}

.gc-user-menu-header small {
    font-size: 0.75rem;
    color: var(--gc-text-muted);
}

.gc-menu-divider {
    border-color: var(--gc-border);
    margin: 0.25rem 0;
    opacity: 1;
}

.gc-menu-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
    color: var(--gc-text);
    border-radius: 0;
    transition: background 0.15s;
}

.gc-menu-item:hover,
.gc-menu-item:focus {
    background: var(--gc-sidebar-hover);
    color: var(--gc-text-heading);
}

.gc-menu-item-danger {
    color: #e05c5c;
}

.gc-menu-item-danger:hover,
.gc-menu-item-danger:focus {
    background: rgba(220, 53, 69, 0.12);
    color: #ff6b6b;
}

/* ==========================================================================
   Utility fillers
   ========================================================================== */
.min-w-0        { min-width: 0; }            /* Bootstrap 5 ships no min-width */
.gc-text-gold    { color: var(--gc-gold); }
.gc-text-heading { color: var(--gc-text-heading); }
.gc-text-danger  { color: #dc3545; }

/* ==========================================================================
   Profile — /my/profile (static bits; per-rarity colours stay inline as a
   genuinely-dynamic value)
   ========================================================================== */
.gc-field-hint     { font-size: .7rem; color: var(--gc-text-muted); font-weight: 400; }
.gc-avatar-status  { font-size: .75rem; color: var(--gc-text-muted); min-height: 1em; text-align: center; }
.gc-inv-mini-empty { color: var(--gc-text-muted); font-size: .85rem; text-align: center; padding: 1.5rem 0; }
.gc-inv-mini-foot  { font-size: .75rem; color: var(--gc-text-muted); }
.gc-inv-mini-page  {
    width: 22px; height: 22px;
    border: 1px solid var(--gc-border); border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: .68rem; cursor: pointer; user-select: none;
}
.gc-inv-mini-page--active { background: var(--gc-gold); color: #12100f; border-color: var(--gc-gold); }
.gc-inv-mini-more { font-size: .65rem; }

/* Danger zone (account deletion) */
.gc-card-danger { border-color: rgba(220,53,69,.35); }
.gc-danger-desc { font-size: .85rem; color: var(--gc-text-muted); margin-bottom: .75rem; }
.gc-danger-pwd  { max-width: 260px; background: rgba(0,0,0,.3); border: 1px solid var(--gc-border); color: var(--gc-text); }
.gc-btn-delete  { background: #dc3545; color: #fff; border: 0; padding: .45rem 1.1rem; }

/* ==========================================================================
   Daily rewards — /my/daily-rewards
   ========================================================================== */
.gc-text-ok        { color: #5cb85c; }
.gc-dr-card-active { border-color: rgba(200,144,42,.5); }
.gc-dr-daycount    { float: right; font-size: .78rem; color: var(--gc-text-muted); }
.gc-dr-choice {
    display: flex; gap: .75rem; align-items: center;
    background: rgba(0,0,0,.25); border: 1px solid rgba(200,144,42,.2);
    border-radius: 8px; padding: .75rem; height: 100%;
}
.gc-dr-dim { opacity: .45; filter: grayscale(.6); }
.gc-dr-choice-kind { font-size: .72rem; color: var(--gc-text-muted); text-transform: uppercase; letter-spacing: .08em; }
.gc-dr-choice-name { color: var(--gc-text-heading); font-size: .9rem; }
.gc-dr-claim       { background: var(--gc-gold); color: #14110b; border: 0; margin-top: .4rem; padding: .2rem .8rem; }
.gc-dr-next        { margin-top: 1rem; font-size: .9rem; color: var(--gc-text-muted); }
.gc-dr-countdown-val { color: var(--gc-text-heading); }
.gc-dr-msg         { margin-top: .75rem; font-size: .9rem; display: none; }
.gc-dr-day {
    background: rgba(0,0,0,.25); border: 1px solid rgba(200,144,42,.15);
    border-radius: 8px; padding: .75rem; height: 100%;
}
.gc-dr-today     { border-color: var(--gc-gold); box-shadow: 0 0 14px rgba(200,144,42,.25); }
.gc-dr-past      { opacity: .55; }
.gc-dr-day-label { font-size: .75rem; color: var(--gc-gold); text-transform: uppercase; letter-spacing: .1em; }
.gc-dr-lock      { color: var(--gc-text-muted); opacity: .5; }
.gc-dr-empty     { color: var(--gc-text-muted); font-size: .9rem; margin: 0; }
.gc-dr-hist-row  { padding: .45rem 0; border-bottom: 1px solid rgba(200,144,42,.1); font-size: .88rem; }
.gc-dr-hist-name { color: var(--gc-text); }
.gc-dr-hist-date { color: var(--gc-text-muted); }

/* ==========================================================================
   Daily rewards — "The Archivist's Offering" redesign
   Reference: assets/dailyrewards.png. A candlelit altar stage carrying a
   centered ritual header, a 72/28 two-column body, and a radial cycle dial.
   ========================================================================== */

/* ── Stage: full-bleed altar scene behind the content ───────────────────── */
.gc-dr-stage {
    position: relative;
    margin: -1.5rem;                       /* bleed past .gc-content padding */
    padding: 2.75rem 2rem 3.5rem;
    background: #0a0806;                    /* plain dark ground — the altar image lives in the offering, not here */
    min-height: calc(100vh - var(--gc-topbar-height));
}
.gc-dr-stage::before {                      /* darkening vignette over the ground */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 50% 28%,
        rgba(5,4,2,.10) 0%, rgba(5,4,2,.55) 70%, rgba(5,4,2,.85) 100%);
}
.gc-dr-stage > * { position: relative; z-index: 1; }
.gc-dr-grid { max-width: 1180px; margin: 0 auto; }

/* ── Offering — centered column; the altar scene heads it ──────────────────── */
.gc-dr-offering-wrap { max-width: 700px; margin: 0 auto 2.5rem; text-align: center; }

/* Section label flanked by 1px gradient rules */
.gc-dr-offering-label { display: flex; align-items: center; justify-content: center; gap: .9rem; margin-bottom: 1.25rem; }
.gc-dr-offering-label::before,
.gc-dr-offering-label::after { content: ''; width: 42px; height: 1px; }
.gc-dr-offering-label::before { background: linear-gradient(to right, transparent, var(--gc-gold-dim)); }
.gc-dr-offering-label::after  { background: linear-gradient(to left,  transparent, var(--gc-gold-dim)); }

/* The day's choices — pick one, separated by 1px vertical rules */
.gc-dr-choices { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .15rem; margin-top: 1.5rem; }
.gc-dr-choice2 {
    display: flex; align-items: center; gap: .6rem;
    padding: .45rem 1.3rem; background: none;
    border: 1px solid transparent; border-radius: 8px;
    cursor: pointer; transition: background var(--gc-transition), border-color var(--gc-transition);
}
.gc-dr-choice2:hover    { background: rgba(200,144,42,.05); }
.gc-dr-choice2.selected { background: rgba(200,144,42,.10); border-color: var(--gc-gold-dim); }
.gc-dr-choice2:disabled { cursor: default; opacity: .6; }
.gc-dr-choice2 .gc-dr-recent-icon { object-fit: contain; }
.gc-dr-choice-text { text-align: left; }
.gc-dr-choice-name2 {
    display: block; font-family: var(--gc-font-serif); font-size: 1.05rem; line-height: 1.2;
    color: var(--gc-text-heading); letter-spacing: .03em; white-space: nowrap;
}
.gc-dr-choice-sep { width: 1px; height: 36px; background: rgba(200,144,42,.2); flex-shrink: 0; }

/* Single serif "Claim Offering" pill (gold outline + glow) */
.gc-dr-claim-btn {
    margin-top: 1.6rem; display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--gc-font-serif); text-transform: uppercase; letter-spacing: .16em;
    font-size: 1.05rem; color: var(--gc-gold-light);
    background: rgba(200,144,42,.10); border: 1px solid var(--gc-gold-dim); border-radius: 6px;
    padding: .7rem 2.6rem; cursor: pointer;
    box-shadow: 0 0 26px rgba(200,144,42,.14), inset 0 0 18px rgba(200,144,42,.06);
    transition: background .2s, border-color .2s;
}
.gc-dr-claim-btn:hover    { background: rgba(200,144,42,.18); border-color: var(--gc-gold); }
.gc-dr-claim-btn:disabled { opacity: .55; cursor: default; }
.gc-dr-expiry { margin: .95rem 0 0; font-size: .85rem; color: var(--gc-text-muted); }
.gc-dr-expiry strong { color: var(--gc-text-heading); }
.gc-dr-altar {
    height: 300px; border-radius: var(--gc-radius);
    background: #0a0806 url('/img/dailyrewards-table.webp') center / cover no-repeat;
    /* feather the edges into the dark page so the scene floats */
    -webkit-mask-image: radial-gradient(ellipse 78% 82% at 50% 50%, #000 55%, transparent 100%);
            mask-image: radial-gradient(ellipse 78% 82% at 50% 50%, #000 55%, transparent 100%);
    margin-bottom: 1.25rem;
}

/* ── Interactive altar scene (DailyOffering island) — the offering itself: the
   table image is the ground, with the title, items and claim all sitting on it. ── */
.gc-dr-altar-scene {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 1.25rem;
    aspect-ratio: 1536 / 1024;                 /* matches dailyrewards-table.webp */
    background: #0a0806 center / cover no-repeat;
    border-radius: var(--gc-radius);
    -webkit-mask-image: radial-gradient(ellipse 86% 90% at 50% 50%, #000 64%, transparent 100%);
            mask-image: radial-gradient(ellipse 86% 90% at 50% 50%, #000 64%, transparent 100%);
}
/* Hero head (top): emblem + title + subtitle + "Today's Offering" — all on the scene */
.gc-dr-scene-head {
    position: absolute; top: 4%; left: 50%; transform: translateX(-50%); z-index: 4;
    width: 92%; text-align: center;
}
.gc-dr-scene-head .gc-dr-hero-emblem { margin-bottom: .35rem; }
.gc-dr-scene-head .gc-dr-hero-title {
    font-size: clamp(1.5rem, 2.7vw, 2.15rem); margin: 0 0 .4rem;   /* smaller than the standalone hero */
}
.gc-dr-scene-head .gc-dr-hero-sub { font-size: .86rem; margin: 0 0 .9rem; }
.gc-dr-scene-label { margin-top: .2rem; }
/* Actions (bottom) overlaid on the scene */
.gc-dr-scene-actions {
    position: absolute; bottom: 11%; left: 50%; transform: translateX(-50%); z-index: 4;
    display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center;
}
/* Each reward sits on the altar as a transparent PNG, z-indexed over the table */
.gc-dr-altar-item {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 19%;                                 /* item size relative to the scene */
    background: none; border: 0; padding: 0;
    cursor: pointer;
    transition: transform .18s ease;
}
.gc-dr-altar-item img {
    position: relative; z-index: 1;
    display: block; width: 100%; height: auto;
    filter: drop-shadow(0 8px 10px rgba(0,0,0,.65));
    transition: filter .2s ease;
}
.gc-dr-altar-item:not(.selected) { opacity: .8; }
.gc-dr-altar-item:hover  { transform: translate(-50%, -54%); }
.gc-dr-altar-item.selected { z-index: 3; }
.gc-dr-altar-item.selected img {
    /* a soft warm rim of light on the item itself (subtle, the pool does the work) */
    filter: drop-shadow(0 0 9px rgba(255,209,143,.5)) drop-shadow(0 8px 12px rgba(0,0,0,.6));
}
.gc-dr-altar-item:disabled { cursor: default; }
/* the droplight pool cast on the table beneath the selected item */
.gc-dr-altar-glow {
    position: absolute; left: 50%; top: 80%; transform: translate(-50%, -50%);
    width: 200%; height: 115%; z-index: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(ellipse at 50% 50%,
        rgba(255,198,120,.34) 0%, rgba(214,150,60,.16) 40%, transparent 72%);
    transition: opacity .22s ease;
}
.gc-dr-altar-item.selected .gc-dr-altar-glow { opacity: 1; }
.gc-dr-choice-wrap { display: inline-flex; align-items: center; }

/* ── Right-rail offering details (swapped in from Archivist Notes on select) ── */
.gc-offer-detail-kind {
    font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--gc-gold); text-align: center; margin-bottom: .75rem;
}
.gc-offer-detail-imgwrap {
    display: flex; align-items: center; justify-content: center;
    height: 122px; margin-bottom: .75rem;
    background: radial-gradient(ellipse at 50% 55%, rgba(200,144,42,.13) 0%, transparent 70%);
}
.gc-offer-detail-imgwrap img {
    max-width: 86px; max-height: 108px; width: auto; height: auto;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,.6));
}
.gc-offer-detail-name {
    font-family: var(--gc-font-serif); font-size: 1.2rem; color: var(--gc-text-heading);
    text-align: center; line-height: 1.2; margin-bottom: .6rem;
}
.gc-offer-detail-desc {
    font-size: .82rem; color: var(--gc-text-muted); line-height: 1.6; text-align: center; margin: 0 0 .85rem;
}
.gc-offer-detail-rows { border-top: 1px solid var(--gc-border); padding-top: .55rem; }
.gc-offer-row { display: flex; justify-content: space-between; font-size: .8rem; padding: .26rem 0; }
.gc-offer-row-label { color: var(--gc-text-muted); }
.gc-offer-row-val   { color: var(--gc-text-heading); font-weight: 600; }

/* ── Cycle footer caption ─────────────────────────────────────────────────── */
.gc-dr-cycle-caption {
    text-align: center; margin: 1.75rem 0 0;
    font-family: var(--gc-font-serif); font-size: .9rem; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase; color: var(--gc-text-muted);
}

/* ── Ritual header (centered) ───────────────────────────────────────────── */
.gc-dr-hero { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.gc-dr-hero-emblem {
    display: flex; align-items: center; justify-content: center; gap: .9rem;
    color: var(--gc-gold); font-size: .8rem; margin-bottom: 1rem; opacity: .85;
}
.gc-dr-hero-emblem::before,
.gc-dr-hero-emblem::after {
    content: ''; width: 56px; height: 1px;
    background: linear-gradient(to right, transparent, var(--gc-gold-dim));
}
.gc-dr-hero-emblem::after { background: linear-gradient(to left, transparent, var(--gc-gold-dim)); }
.gc-dr-hero-title {
    font-family: var(--gc-font-serif); font-weight: 600;
    font-size: clamp(2rem, 4.2vw, 3rem); color: var(--gc-text-heading);
    letter-spacing: .06em; margin: 0 0 .6rem;
    text-shadow: 0 2px 34px rgba(200,144,42,.28), 0 0 90px rgba(200,144,42,.1);
}
.gc-dr-hero-sub { color: var(--gc-text-muted); font-size: .95rem; line-height: 1.7; margin: 0; }

/* ── Section cards on the stage read a touch warmer/deeper ──────────────── */
.gc-dr-stage .gc-card { background: rgba(12,9,5,.82); }
.gc-dr-notes  { background: rgba(28,20,10,.82); border-color: rgba(200,144,42,.22); text-align: center; }
.gc-dr-notes-title  { display: block; text-align: center; }
.gc-dr-notes-lead   { font-family: var(--gc-font-serif); font-size: 1.05rem; color: var(--gc-text-heading); margin: 0 0 .75rem; }
.gc-dr-notes-body   { font-size: .85rem; color: var(--gc-text-muted); line-height: 1.7; margin: 0; }

/* ── The Cycle — radial dial ────────────────────────────────────────────── */
.gc-dr-cycle { text-align: center; }
.gc-dr-wheel {
    position: relative;
    width: 100%; max-width: 460px; aspect-ratio: 1; margin: .25rem auto 0;
    --gc-r: 178px;                                   /* node ring radius */
    --gc-step: calc(360deg / var(--gc-wheel-n, 9));
}
.gc-dr-wheel-node {
    position: absolute; top: 50%; left: 50%; width: 78px;
    transform:
        translate(-50%, -50%)
        rotate(calc(var(--gc-i) * var(--gc-step)))
        translateY(calc(-1 * var(--gc-r)))
        rotate(calc(-1 * var(--gc-i) * var(--gc-step)));
    display: flex; flex-direction: column; align-items: center; gap: .2rem;
}
.gc-dr-wheel-day  { font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gc-text-muted); }
.gc-dr-wheel-icon {
    width: 44px; height: 44px; object-fit: contain;
    border-radius: 8px; padding: 3px;
    background: rgba(0,0,0,.4); border: 1px solid rgba(200,144,42,.25);
}
.gc-dr-wheel-mark { position: absolute; top: 1rem; right: .2rem; font-size: .8rem; }
.gc-dr-wheel-done            { opacity: .6; }
.gc-dr-wheel-done .gc-dr-wheel-mark   { color: #5cb85c; }
.gc-dr-wheel-locked          { opacity: .4; }
.gc-dr-wheel-locked .gc-dr-wheel-mark { color: var(--gc-text-muted); }
.gc-dr-wheel-today .gc-dr-wheel-icon  {
    border-color: var(--gc-gold); box-shadow: 0 0 16px rgba(200,144,42,.45);
    transform: scale(1.12);
}
.gc-dr-wheel-today .gc-dr-wheel-day   { color: var(--gc-gold-light); }
.gc-dr-wheel-today .gc-dr-wheel-mark  { color: var(--gc-gold); }
.gc-dr-wheel-hub {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 190px; text-align: center;
}
.gc-dr-wheel-current { font-family: var(--gc-font-serif); font-size: 1.4rem; color: var(--gc-gold); display: block; }
.gc-dr-wheel-flavor  { font-size: .76rem; color: var(--gc-text-muted); line-height: 1.55; margin: .35rem 0 0; }

/* ── Consecutive recoveries (streak) ────────────────────────────────────── */
.gc-dr-streak { text-align: center; }
.gc-dr-streak-val  { font-family: var(--gc-font-serif); font-size: 3.4rem; line-height: 1; color: var(--gc-gold); }
.gc-dr-streak-unit { text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; color: var(--gc-text-muted); margin-top: .25rem; }

/* ── Cycle completion (meter) ───────────────────────────────────────────── */
.gc-dr-completion { text-align: center; }
.gc-dr-meter {
    height: 9px; border-radius: 100px; overflow: hidden;
    background: rgba(0,0,0,.45); border: 1px solid rgba(200,144,42,.2);
}
.gc-dr-meter-fill {
    display: block; height: 100%; width: var(--gc-w, 0%);
    background: linear-gradient(90deg, var(--gc-gold-light), var(--gc-gold));
    box-shadow: 0 0 12px rgba(200,144,42,.4);
}
.gc-dr-completion-num { font-family: var(--gc-font-serif); font-size: 1.15rem; color: var(--gc-text-heading); margin-top: .6rem; }
.gc-dr-completion-cap { font-size: .8rem; color: var(--gc-text-muted); line-height: 1.6; margin: .3rem 0 0; }

/* ── Recent offerings ───────────────────────────────────────────────────── */
.gc-dr-recent-row {
    display: flex; align-items: center; gap: .65rem;
    padding: .55rem 0; border-bottom: 1px solid rgba(200,144,42,.1);
}
.gc-dr-recent-row:last-child { border-bottom: 0; }
.gc-dr-recent-icon {
    width: 36px; height: 36px; object-fit: contain; padding: 2px; flex-shrink: 0;
    border-radius: 6px; background: rgba(0,0,0,.35); border: 1px solid rgba(200,144,42,.2);
}
.gc-dr-recent-meta  { flex: 1; min-width: 0; }
.gc-dr-recent-name  { font-size: .85rem; color: var(--gc-text-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-dr-recent-kind  { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gc-text-muted); }
.gc-dr-recent-check { color: var(--gc-gold); opacity: .7; flex-shrink: 0; }

/* ── Responsive: shrink the dial, then stack the columns ────────────────── */
@media (max-width: 991px) {
    .gc-dr-wheel { max-width: 380px; --gc-r: 146px; }
    .gc-dr-wheel-icon { width: 38px; height: 38px; }
}
@media (max-width: 575px) {
    .gc-dr-stage { padding: 1.75rem 1rem 2.5rem; }
    .gc-dr-wheel { max-width: 300px; --gc-r: 116px; }
    .gc-dr-wheel-node { width: 64px; }
}

/* ==========================================================================
   Dashboard — /my (portal home)
   ========================================================================== */
.gc-dash-descent      { padding: 1.25rem 1.5rem; }
.gc-dash-descent-meta { font-size: .8rem; color: var(--gc-text-muted); }
.gc-dash-xp-meta      { font-size: .68rem; color: var(--gc-text-muted); }
.gc-dash-help-text    { font-size: .78rem; color: var(--gc-text-muted); margin-bottom: 1rem; line-height: 1.55; }

/* Descent tier progression bar (was the view's inline <style>) */
.gc-tier-track { display: flex; gap: .5rem; }
.gc-tier {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column;
    align-items: center; gap: .3rem; opacity: .45;
}
.gc-tier-done    { opacity: .8; }
.gc-tier-current { opacity: 1; }
/* Fixed-height slots so every row (icon / name / bar / xp) shares one baseline
   across tiers — the current tier's bigger icon and XP pill would otherwise
   push their column out of line. */
.gc-tier-icon {
    font-size: 1.4rem; color: var(--gc-text-muted);
    height: 2.4rem; display: flex; align-items: center; justify-content: center;
}
.gc-tier-done .gc-tier-icon    { color: var(--gc-gold); }
.gc-tier-current .gc-tier-icon { color: var(--gc-gold); font-size: 1.7rem; filter: drop-shadow(0 0 6px rgba(200,144,42,.6)); }
.gc-tier-name {
    font-size: .72rem; color: var(--gc-text-muted); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; max-width: 100%;
    height: 1.1rem; line-height: 1.1rem;
}
.gc-tier-current .gc-tier-name { color: var(--gc-text-heading); font-weight: 600; }
.gc-tier-bar  { width: 100%; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.gc-tier-fill { height: 100%; width: var(--gc-w, 0); background: linear-gradient(90deg, #8a6116, var(--gc-gold)); border-radius: 3px; }
.gc-tier-xp   {
    font-size: .68rem; color: var(--gc-text-muted);
    height: 1.5rem; display: flex; align-items: center; justify-content: center;
}
.gc-tier-now  { background: var(--gc-gold); color: #14110b; font-weight: 700; border-radius: 10px; padding: .05rem .5rem; }
@media (max-width: 767px) {
    .gc-tier-track { flex-wrap: wrap; }
    .gc-tier { flex: 1 1 30%; }
}

/* Earn-more-XP action rows */
.gc-earn-row {
    display: flex; align-items: center; gap: .65rem;
    padding: .6rem .75rem; border: 1px solid rgba(200,144,42,.15); border-radius: 6px;
    color: var(--gc-text); text-decoration: none; font-size: .875rem;
}
.gc-earn-row:hover { border-color: rgba(200,144,42,.45); color: var(--gc-text-heading); }
.gc-earn-row > i:first-child { color: var(--gc-gold); font-size: 1rem; }
.gc-earn-row .bi-chevron-right { color: var(--gc-text-muted); font-size: .75rem; }

/* Leaderboard rail */
.gc-lb-callout {
    background: rgba(200,144,42,.08); border: 1px solid rgba(200,144,42,.25); border-radius: 6px;
    padding: .55rem .7rem; font-size: .78rem; color: var(--gc-text); margin-bottom: .75rem; text-align: center;
}
.gc-lb-row  { padding: .35rem .4rem; border-radius: 5px; font-size: .82rem; }
.gc-lb-row.is-me { background: rgba(200,144,42,.12); border-left: 3px solid var(--gc-gold); }
.gc-lb-rank { flex: 0 0 18px; color: var(--gc-text-muted); }
.gc-lb-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gc-text-heading); }
.gc-lb-row.is-me .gc-lb-name { color: var(--gc-gold); }
.gc-lb-xp   { color: var(--gc-gold); white-space: nowrap; }
.gc-lb-rankinfo { font-size: .72rem; color: var(--gc-text-muted); margin-top: .6rem; text-align: center; }

/* ==========================================================================
   Portal page primitives (shared across /my/* views)
   ========================================================================== */
.gc-page-head     { margin-bottom: 1.25rem; }
/* .gc-page-title / .gc-page-subtitle are owned by portal.css (Cormorant heading) */

.gc-empty       { text-align: center; padding: 3rem 1.5rem; }
.gc-empty-icon  { font-size: 2.2rem; color: var(--gc-gold); }
.gc-empty-title { color: var(--gc-text-heading); margin: 1rem 0 .5rem; }
.gc-empty-text  { color: var(--gc-text-muted); max-width: 460px; margin: 0 auto; }

/* ==========================================================================
   Guild — /my/guild
   ========================================================================== */
.gc-guild-emblem {
    flex: 0 0 auto; width: 84px; height: 84px;
    border: 2px solid var(--gc-gold); border-radius: 10px;
    background: rgba(0,0,0,.35);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.gc-guild-emblem img { width: 100%; height: 100%; object-fit: cover; }
.gc-guild-emblem i   { font-size: 2rem; color: var(--gc-gold); }
.gc-guild-name       { color: var(--gc-text-heading); margin: 0 0 .2rem; }
.gc-guild-name .bi-lock-fill { font-size: .85rem; color: var(--gc-text-muted); }
.gc-guild-meta       { font-size: .85rem; color: var(--gc-text-muted); }
.gc-guild-meta .bi-people-fill { color: var(--gc-gold); }
.gc-guild-meta-sep   { margin: 0 .5rem; opacity: .4; }
.gc-guild-note       { font-size: .8rem; color: var(--gc-text-muted); font-style: italic; }

/* Roster */
.gc-guild-row    { padding: .55rem 0; border-bottom: 1px solid rgba(200,144,42,.08); }
.gc-guild-rank   { flex: 0 0 26px; text-align: right; color: var(--gc-text-muted); font-size: .85rem; }
.gc-guild-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.gc-guild-member { color: var(--gc-text-heading); font-size: .92rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gc-guild-xp     { color: var(--gc-gold); font-size: .88rem; white-space: nowrap; }

/* Member badge (was an inline <style> block) */
.gc-guild-badge {
    flex: 0 0 auto;
    font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
    border: 1px solid; border-radius: 4px; padding: .1rem .45rem;
}
.gc-guild-badge--leader  { border-color: var(--gc-gold); color: var(--gc-gold); }
.gc-guild-badge--pending { border-color: rgba(255,255,255,.2); color: var(--gc-text-muted); }

/* Known-guild cards */
.gc-guild-card        { border: 1px solid rgba(200,144,42,.15); border-radius: 8px; padding: .75rem; }
.gc-guild-card-emblem {
    flex: 0 0 auto; width: 48px; height: 48px;
    border: 1px solid rgba(200,144,42,.35); border-radius: 8px;
    background: rgba(0,0,0,.35);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.gc-guild-card-emblem img { width: 100%; height: 100%; object-fit: cover; }
.gc-guild-card-emblem i   { color: var(--gc-gold); }
.gc-guild-card-name       { color: var(--gc-text-heading); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-guild-card-name .bi-lock-fill { font-size: .7rem; color: var(--gc-text-muted); }
.gc-guild-card-count      { font-size: .78rem; color: var(--gc-text-muted); }

/* ==========================================================================
   Keeper's Journal — /my/quests storylet UI (board + read page)
   Bespoke visuals live here; the views use these + Bootstrap utilities and
   carry zero inline style. Per-page art is passed in via the --gc-card-img
   custom property (the only thing that is genuinely dynamic per row).
   ========================================================================== */

/* ── Board header ── */
.gc-journal-head     { margin-bottom: 1.25rem; }
.gc-journal-title    { color: var(--gc-text-heading); margin: 0; }
.gc-journal-subtitle { font-size: .85rem; color: var(--gc-text-muted); }

/* ── Read-page breadcrumb ── */
.gc-journal-crumb    { margin-bottom: 1rem; font-size: .8rem; color: var(--gc-text-muted); }
.gc-journal-crumb a  { color: var(--gc-text-muted); text-decoration: none; }

/* ── Play-result banner ── */
.gc-journal-result { border-color: rgba(200,144,42,.45); margin-bottom: 1.25rem; padding: 1.25rem 1.5rem; }
.gc-journal-prose  { color: var(--gc-text); font-size: .95rem; line-height: 1.7; }

/* Change pills */
.gc-journal-pill {
    font-size: .78rem; padding: .25rem .6rem;
    border: 1px solid rgba(200,144,42,.35); border-radius: 999px;
    color: var(--gc-gold);
}
.gc-journal-pill--xp   { border-color: rgba(92,184,92,.35); color: #5cb85c; }
.gc-journal-pill--item { color: var(--gc-text); }
.gc-journal-changes    { margin-top: .85rem; }

/* ── Empty state ── */
.gc-journal-empty       { text-align: center; padding: 3rem 1.5rem; }
.gc-journal-empty-icon  { font-size: 2.2rem; color: var(--gc-gold); }
.gc-journal-empty-title { color: var(--gc-text-heading); margin: 1rem 0 .5rem; }
.gc-journal-empty-text  { color: var(--gc-text-muted); max-width: 440px; margin: 0 auto; }

/* ── Page cards (available + locked share the base) ── */
.gc-journal-card        { padding: 0; overflow: hidden; height: 100%; text-decoration: none; }
.gc-journal-card-img {
    height: 140px;
    background-image: var(--gc-card-img);
    background-position: center; background-size: cover; background-repeat: no-repeat;
    border-bottom: 1px solid rgba(200,144,42,.25);
}
.gc-journal-card-body   { padding: 1rem 1.15rem 1.15rem; }
.gc-journal-card-title  { color: var(--gc-text-heading); margin: 0 0 .35rem; }
.gc-journal-card-teaser { color: var(--gc-text-muted); font-size: .85rem; line-height: 1.55; margin: 0; }
.gc-journal-repeat      { color: var(--gc-text-muted); font-size: .8rem; }

/* Locked variant */
.gc-journal-card--locked { opacity: .78; }
.gc-journal-card--locked .gc-journal-card-img {
    background-image: linear-gradient(rgba(12,10,6,.55), rgba(12,10,6,.55)), var(--gc-card-img);
    border-bottom-color: rgba(200,144,42,.2);
    filter: grayscale(.4);
}
.gc-journal-card--locked .gc-journal-card-teaser { margin: 0 0 .65rem; }
.gc-journal-lock { font-size: .78rem; color: var(--gc-text-muted); }

/* World-gate chip + link */
.gc-journal-gate {
    display: flex; align-items: center; gap: .4rem;
    font-size: .78rem; color: var(--gc-gold);
    border: 1px solid rgba(200,144,42,.3); border-radius: 999px;
    padding: .25rem .7rem; margin-top: .35rem; width: fit-content;
}
.gc-journal-gate-label { color: var(--gc-text); }
.gc-journal-gate-count { color: var(--gc-text-muted); font-variant-numeric: tabular-nums; }
.gc-journal-gate-link {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .78rem; color: var(--gc-gold); text-decoration: none; margin-top: .55rem;
}

/* Section notes */
.gc-journal-note    { color: var(--gc-text-muted); font-size: .9rem;  margin: 0 0 .75rem; }
.gc-journal-note-sm { color: var(--gc-text-muted); font-size: .82rem; margin: 0 0 .75rem; }
.gc-journal-block   { margin-top: 2rem; }

/* Recovered list */
.gc-journal-list      { padding: .5rem .25rem; }
.gc-journal-list-item {
    display: flex; align-items: center; gap: .5rem;
    padding: .5rem .75rem; text-decoration: none;
    border-bottom: 1px solid rgba(200,144,42,.08);
}
.gc-journal-list-icon  { color: var(--gc-gold); font-size: .85rem; flex: 0 0 auto; }
.gc-journal-list-title { color: var(--gc-text); font-size: .9rem; }
.gc-journal-list-arrow { color: var(--gc-text-muted); font-size: .75rem; }

/* ── Right rail — the record ── */
.gc-journal-kind {
    font-size: .72rem; color: var(--gc-gold);
    text-transform: uppercase; letter-spacing: .12em;
    margin: .85rem 0 .4rem;
}
.gc-journal-record       { padding: .35rem 0; border-bottom: 1px solid rgba(200,144,42,.08); font-size: .86rem; }
.gc-journal-record-name  { color: var(--gc-text); }
.gc-journal-record-val   { color: var(--gc-gold); font-variant-numeric: tabular-nums; }
.gc-journal-record-done  { color: #5cb85c; font-size: .8rem; }
.gc-journal-record-empty { color: var(--gc-text-muted); font-size: .88rem; margin: 0; }
.gc-journal-aside        { color: var(--gc-text-muted); font-size: .86rem; line-height: 1.6; font-style: italic; margin: 0; }

/* ── Read page ── */
.gc-journal-hero {
    height: 240px;
    background-image: var(--gc-card-img);
    background-position: center; background-size: cover; background-repeat: no-repeat;
    border-bottom: 1px solid rgba(200,144,42,.25);
}
.gc-journal-page-body  { padding: 1.25rem 1.5rem 1.5rem; }
.gc-journal-page-title { color: var(--gc-text-heading); margin: 0 0 .75rem; }
.gc-journal-page-prose { color: var(--gc-text); font-size: .95rem; line-height: 1.75; }
.gc-journal-hr             { border-color: rgba(200,144,42,.15); margin: 1.5rem 0 1rem; }
.gc-journal-recovered-note { color: var(--gc-text-muted); font-size: .85rem; font-style: italic; margin: 0 0 1rem; }

/* Branch choices */
.gc-journal-branch       { padding: .85rem 1rem; border: 1px solid rgba(200,144,42,.12); border-radius: 6px; margin-bottom: .65rem; }
.gc-journal-branch--open { border-color: rgba(200,144,42,.3); }
.gc-journal-branch-label { color: var(--gc-text-heading); font-size: .95rem; }
.gc-journal-branch-meta  { font-size: .78rem; color: var(--gc-text-muted); margin-top: .25rem; }
.gc-journal-branch-dim   { opacity: .6; }
.gc-journal-choose {
    background: var(--gc-gold); color: #14110b; border: 0;
    padding: .3rem 1.1rem; white-space: nowrap;
}
.gc-journal-choose--off {
    background: rgba(200,144,42,.12); color: var(--gc-text-muted);
    border: 1px solid rgba(200,144,42,.18);
    padding: .3rem 1.1rem; white-space: nowrap; cursor: not-allowed;
}

/* Prev / next nav */
.gc-journal-nav       { margin-top: 1rem; }
.gc-journal-navlink   { padding: .6rem .9rem; text-decoration: none; flex: 1 1 0; min-width: 0; border-color: rgba(200,144,42,.25); }
.gc-journal-navlink i { color: var(--gc-gold); flex: 0 0 auto; }
.gc-journal-nav-eyebrow { display: block; font-size: .7rem; color: var(--gc-text-muted); text-transform: uppercase; letter-spacing: .08em; }
.gc-journal-nav-title   { display: block; color: var(--gc-text); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-journal-nav-spacer  { flex: 1 1 0; }

/* ==========================================================================
   Accessibility — honour prefers-reduced-motion
   --------------------------------------------------------------------------
   Users who set "reduce motion" at the OS level (vestibular disorders, motion
   sickness, focus needs) get the same UI with the movement removed: no lift,
   no slide, no looping animation. Colour/shadow feedback is KEPT so hover and
   focus states remain legible — we only strip movement, not affordance.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    /* Kill the translate/scale "lift" on every interactive surface. */
    .gc-card:hover,
    .gc-news-card:hover,
    .rt-node:hover {
        transform: none !important;
    }
}
