/* ==========================================================================
   RuneCake — Royal Gold / Illuminated Medieval layer
   Loaded after theme.css, brand.css and page-level styles so it can gild
   every page without changing the existing markup or behaviour.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English:ital@0;1&display=swap');

:root {
    --gold: #e3bb54;
    --gold-bright: #ffe8a1;
    --gold-pale: #fff4c9;
    --gold-mid: #c99b2f;
    --gold-dark: #8c6616;
    --gold-deep: #5e440d;
    --parchment: #f6e6b8;
    --muted: #c8a84e;
    --border: #9b7a3a;
    --brown: #1c110a;
    --brown-light: #332013;
    --ink: #0b0805;
    --royal-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}

/* ---------- Foundations: aged parchment ground + brocade glow ---------- */
html { background: var(--ink); }

body {
    font-family: 'IM Fell English', 'Cinzel', Georgia, serif;
    color: var(--parchment);
    background-color: var(--ink);
    background-image:
        radial-gradient(ellipse 90% 55% at 50% -12%, rgba(255, 226, 140, 0.17), transparent 62%),
        radial-gradient(ellipse 80% 45% at 50% 112%, rgba(140, 102, 22, 0.18), transparent 66%),
        repeating-linear-gradient(0deg, rgba(255, 230, 160, 0.020) 0 1px, transparent 1px 5px),
        repeating-linear-gradient(90deg, rgba(255, 230, 160, 0.015) 0 1px, transparent 1px 5px),
        linear-gradient(rgba(10, 7, 4, 0.86), rgba(8, 6, 4, 0.94)),
        url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?w=1920') center/cover;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    body { background-attachment: scroll; }
}

::selection {
    background: rgba(255, 214, 110, 0.42);
    color: #fffdf0;
    text-shadow: none;
}

/* Old-print body copy, engraved headings */
p, li, dt, dd, blockquote,
.hero p, .hero-subtitle, .subtitle, .callout, .steps,
.seo-content p, .seo-content li, .method p, .listing-details,
.legal, .footer-inner > p, .footer-legal {
    font-family: 'IM Fell English', Georgia, 'Times New Roman', serif;
    letter-spacing: 0.012em;
}

h1, h2, h3, h4, h5, h6,
.hero h1, .hero h2, .panel h2, .seo-content h2, .modal h2,
.duel-hero h1, .duel-hero h2, .brand-wordmark, .logo,
.quest-kicker, .prize-amount, .prize-big,
.rs-support-head, .area-title {
    /* Cinzel's capital D has a clear straight stem. Uncial Antiqua's rounded
       uncial D was frequently mistaken for an O in headings. */
    font-family: 'Cinzel', 'MedievalSharp', Georgia, serif;
    font-weight: 600;
    letter-spacing: 0.045em;
}

a { color: var(--gold-bright); }
a:hover { color: #fff9dd; }

/* Embossed gold leaf on the great headings */
.hero h1, .hero h2, .panel h2, .seo-content h2, .modal h2,
.prize-amount, .prize-big, .brand-wordmark, .duel-hero h1 {
    color: #f8e6a4;
    text-shadow:
        0 1px 0 #fff6cf,
        0 2px 0 #d0a435,
        0 3px 0 #8c6616,
        0 6px 14px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(255, 210, 100, 0.35);
}

.brand-wordmark span { color: var(--gold-pale); }

/* Little illuminated fleuron under the big titles */
.hero h1::after, .panel h2::after, .modal h2::after, .duel-hero h2::after {
    content: '❖';
    display: block;
    margin: 0.55rem auto 0;
    padding-left: 0.85em;
    color: var(--gold-mid);
    font-family: 'Cinzel', serif;
    font-size: 0.5em;
    line-height: 1;
    letter-spacing: 0.85em;
    text-shadow: 0 0 14px rgba(255, 214, 110, 0.65);
}

.seo-content h2::after {
    margin-left: 0;
    padding-left: 0;
    text-align: left;
}

.hero h1 { line-height: 1.18; }
.hero p, .hero-subtitle { color: var(--parchment); }

/* ---------- Royal header ---------- */
.header {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 226, 140, 0.10), transparent 28%),
        linear-gradient(90deg, #140d08 0%, #332013 50%, #140d08 100%);
    border-bottom: 1px solid rgba(255, 226, 140, 0.72);
    box-shadow:
        0 1px 0 #000,
        0 3px 0 rgba(140, 102, 22, 0.55),
        0 16px 40px rgba(0, 0, 0, 0.55),
        inset 0 -1px 0 rgba(255, 235, 170, 0.22);
}

.header.rs-navbar {
    background:
        linear-gradient(180deg, rgba(255, 226, 140, 0.15) 0%, rgba(255, 226, 140, 0.02) 42%, transparent 100%),
        linear-gradient(180deg, rgba(38, 24, 14, 0.99) 0%, rgba(13, 8, 4, 0.99) 100%);
    border-bottom: 1px solid rgba(255, 226, 140, 0.72);
    box-shadow:
        0 1px 0 #000,
        0 3px 0 rgba(120, 86, 16, 0.5),
        0 16px 40px rgba(0, 0, 0, 0.58),
        inset 0 1px 0 rgba(255, 235, 170, 0.20);
}

/* fine gold fillet along the very top of the bar */
.header.rs-navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    pointer-events: none;
    background: linear-gradient(90deg,
        transparent 0%, rgba(255, 232, 161, 0.65) 16%, #fff6cf 50%,
        rgba(255, 232, 161, 0.65) 84%, transparent 100%);
    box-shadow: 0 0 14px rgba(255, 214, 110, 0.45);
}

.header.rs-navbar::after {
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%, rgba(255, 232, 161, 0.85) 22%, #fff6cf 50%,
        rgba(255, 232, 161, 0.85) 78%, transparent 100%);
    box-shadow: 0 0 12px rgba(255, 214, 110, 0.55);
}

.header .logo,
.header.rs-navbar .logo {
    color: var(--gold-bright);
    letter-spacing: 0.06em;
    text-shadow:
        0 1px 0 #fff6cf,
        0 2px 0 #b8891f,
        0 4px 8px #000,
        0 0 24px rgba(255, 214, 110, 0.35);
}

.header.rs-navbar .logo:hover { color: #fff9dd; }

/* Page keys, LCD readouts and the spin key are defined in brand.css so
   the remote keeps one source of truth. */

.header.rs-navbar .rs-nav-spin {
    border-color: #fff3c1;
    background: linear-gradient(180deg, #fff6cf 0%, #f2d26e 22%, #d9ab34 58%, #a87c16 100%);
    box-shadow:
        inset 0 1px 0 #fffbe6,
        inset 0 -2px 0 rgba(84, 56, 6, 0.55),
        0 3px 0 #5e440d,
        0 6px 16px rgba(0, 0, 0, 0.45),
        0 0 20px rgba(255, 214, 110, 0.35);
    text-shadow: 0 1px 0 rgba(255, 245, 200, 0.55);
}

/* ---------- Grand hero / banner ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 226, 140, 0.23), transparent 60%),
        linear-gradient(180deg, rgba(40, 25, 15, 0.97) 0%, rgba(15, 9, 5, 0.99) 100%),
        url('https://images.unsplash.com/photo-1553481187-be93c21490a9?w=1200') center/cover;
    border: 1px solid rgba(255, 226, 140, 0.75);
    box-shadow:
        inset 0 0 0 5px rgba(10, 6, 4, 0.82),
        inset 0 0 0 6px rgba(255, 226, 140, 0.35),
        inset 0 0 80px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(0, 0, 0, 0.85),
        0 20px 60px rgba(0, 0, 0, 0.58),
        0 0 70px rgba(255, 214, 110, 0.10);
}

/* four gilded corner brackets */
.hero::after {
    content: '';
    position: absolute;
    inset: 12px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.72;
    background:
        linear-gradient(var(--gold-bright), var(--gold-bright)) left top / 44px 1px no-repeat,
        linear-gradient(var(--gold-bright), var(--gold-bright)) left top / 1px 44px no-repeat,
        linear-gradient(var(--gold-bright), var(--gold-bright)) right top / 44px 1px no-repeat,
        linear-gradient(var(--gold-bright), var(--gold-bright)) right top / 1px 44px no-repeat,
        linear-gradient(var(--gold-bright), var(--gold-bright)) left bottom / 44px 1px no-repeat,
        linear-gradient(var(--gold-bright), var(--gold-bright)) left bottom / 1px 44px no-repeat,
        linear-gradient(var(--gold-bright), var(--gold-bright)) right bottom / 44px 1px no-repeat,
        linear-gradient(var(--gold-bright), var(--gold-bright)) right bottom / 1px 44px no-repeat;
}

.hero > * { position: relative; z-index: 1; }

.hero::before {
    background:
        radial-gradient(circle at 35% 12%, rgba(255, 235, 170, 0.20), transparent 55%),
        radial-gradient(circle at 70% 5%, rgba(255, 190, 90, 0.14), transparent 50%);
}

/* the crest itself gets a stronger halo */
.brand-lockup .crest {
    filter:
        drop-shadow(0 8px 18px rgba(0, 0, 0, 0.72))
        drop-shadow(0 0 26px rgba(255, 214, 110, 0.40));
}

.brand-wordmark {
    font-size: clamp(1.55rem, 4.8vw, 2.4rem);
    letter-spacing: 0.08em;
}

.brand-tagline {
    color: var(--gold-bright);
    letter-spacing: 0.30em;
    text-shadow: 0 0 14px rgba(255, 214, 110, 0.35);
}

.brand-rule::before { background: linear-gradient(90deg, transparent, var(--gold-bright)); }
.brand-rule::after { background: linear-gradient(90deg, var(--gold-bright), transparent); }

/* ---------- Panels: tabernacle frames ---------- */
.panel, .seo-content, .modal-content {
    position: relative;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 226, 140, 0.10), transparent 60%),
        linear-gradient(180deg, rgba(43, 27, 16, 0.985) 0%, rgba(15, 9, 5, 0.995) 100%);
    border: 1px solid rgba(255, 226, 140, 0.65);
    box-shadow:
        inset 0 0 0 4px rgba(12, 8, 5, 0.88),
        inset 0 0 0 5px rgba(255, 226, 140, 0.30),
        inset 0 0 65px rgba(0, 0, 0, 0.62),
        0 0 0 1px rgba(0, 0, 0, 0.9),
        var(--royal-shadow),
        0 0 55px rgba(255, 214, 110, 0.09);
}

.panel::before {
    content: '❖';
    position: absolute;
    top: -0.72em;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
    padding: 0 0.65rem;
    background: #1a1009;
    color: var(--gold-mid);
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    line-height: 1;
    letter-spacing: 0.2em;
    text-shadow: 0 0 12px rgba(255, 214, 110, 0.6);
}

.panel h2 { margin-bottom: 1.35rem; }

/* ---------- Cards and plaques ---------- */
.card, .feature-card, .seo-card, .method, .record-cell, .side-card,
.my-challenge-card, .duel-stat, .prize-panel, .admin-user-card {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 226, 140, 0.075) 0%, transparent 34%),
        linear-gradient(180deg, rgba(56, 35, 22, 0.94) 0%, rgba(22, 13, 8, 0.97) 100%);
    border: 1px solid rgba(255, 226, 140, 0.34);
    box-shadow:
        inset 0 0 0 2px rgba(8, 5, 3, 0.55),
        inset 0 0 0 3px rgba(255, 226, 140, 0.09),
        inset 0 0 34px rgba(0, 0, 0, 0.38),
        0 10px 28px rgba(0, 0, 0, 0.42);
}

.listing-card, .challenge-row {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 226, 140, 0.065) 0%, transparent 38%),
        linear-gradient(90deg, rgba(60, 38, 24, 0.94) 0%, rgba(22, 13, 8, 0.94) 100%);
    border-top-color: rgba(255, 226, 140, 0.36);
    border-right-color: rgba(255, 226, 140, 0.36);
    border-bottom-color: rgba(255, 226, 140, 0.36);
    box-shadow:
        inset 0 0 0 2px rgba(8, 5, 3, 0.5),
        inset 0 0 0 3px rgba(255, 226, 140, 0.07),
        0 8px 22px rgba(0, 0, 0, 0.38);
}

.card::before, .feature-card::before, .seo-card::before, .method::before,
.record-cell::before, .side-card::before, .my-challenge-card::before,
.duel-stat::before, .prize-panel::before, .admin-user-card::before,
.listing-card::before, .challenge-row::before {
    content: '';
    position: absolute;
    inset: 6px;
    z-index: 0;
    border: 1px solid rgba(255, 226, 140, 0.14);
    pointer-events: none;
}

.card > *, .feature-card > *, .seo-card > *, .method > *,
.record-cell > *, .side-card > *, .my-challenge-card > *,
.duel-stat > *, .prize-panel > *, .admin-user-card > *,
.listing-card > *, .challenge-row > * {
    position: relative;
    z-index: 1;
}

.feature-card h3, .card h3, .seo-card h3, .method h3 {
    color: var(--gold-bright);
    text-shadow: 0 1px 0 #fff1ba, 0 2px 4px #000, 0 0 18px rgba(255, 214, 110, 0.22);
}

/* ---------- Goldsmith buttons ---------- */
.btn:not(.btn-secondary):not(.btn-green):not(.btn-red),
.btn-hero,
.rs-nav-spin,
#rs-support-btn,
.rs-support-form button {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border: 1px solid #fff3c1;
    background: linear-gradient(180deg, #fff6cf 0%, #f2d26e 22%, #d9ab34 58%, #a87c16 100%);
    color: #241406;
    text-shadow: 0 1px 0 rgba(255, 245, 200, 0.55);
    box-shadow:
        inset 0 1px 0 #fffbe6,
        inset 0 -3px 0 rgba(84, 56, 6, 0.55),
        0 3px 0 #5e440d,
        0 8px 18px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(255, 214, 110, 0.22);
    transition: transform 0.22s var(--ease-out, ease), box-shadow 0.22s, filter 0.22s;
}

.btn:not(.btn-secondary):not(.btn-green):not(.btn-red):hover,
.btn-hero:hover,
.rs-nav-spin:hover,
#rs-support-btn:hover,
.rs-support-form button:hover {
    color: #1b0f05;
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 #fffbe6,
        inset 0 -3px 0 rgba(84, 56, 6, 0.55),
        0 5px 0 #5e440d,
        0 12px 22px rgba(0, 0, 0, 0.48),
        0 0 34px rgba(255, 214, 110, 0.52);
}

.btn:not(.btn-secondary):not(.btn-green):not(.btn-red):active,
.btn-hero:active,
.rs-nav-spin:active {
    transform: translateY(1px);
    box-shadow:
        inset 0 2px 6px rgba(84, 56, 6, 0.5),
        0 1px 0 #5e440d,
        0 4px 10px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
    border: 1px solid rgba(255, 226, 140, 0.58);
    background: linear-gradient(180deg, #3d2717 0%, #1a0f08 60%, #0d0804 100%);
    color: var(--gold-bright);
    text-shadow: 0 1px 2px #000;
    box-shadow:
        inset 0 1px 0 rgba(255, 235, 170, 0.18),
        inset 0 -3px 0 rgba(0, 0, 0, 0.6),
        0 3px 0 #060402,
        0 8px 18px rgba(0, 0, 0, 0.42);
}

.btn-secondary:hover {
    color: #fff9dd;
    border-color: rgba(255, 232, 161, 0.85);
    box-shadow:
        inset 0 1px 0 rgba(255, 235, 170, 0.24),
        inset 0 -3px 0 rgba(0, 0, 0, 0.6),
        0 5px 0 #060402,
        0 0 26px rgba(255, 214, 110, 0.28);
}

.btn-green, .btn-red { text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Tabs: carved oak plaques ---------- */
.tab {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #e8d398;
    border: 1px solid rgba(255, 226, 140, 0.40);
    background:
        linear-gradient(180deg, rgba(255, 226, 140, 0.09), transparent 42%),
        linear-gradient(180deg, #3a2415 0%, #160d07 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 235, 170, 0.14),
        inset 0 -2px 0 rgba(0, 0, 0, 0.55),
        0 4px 12px rgba(0, 0, 0, 0.34);
}

.tab:hover:not(.active) {
    color: #fff6cf;
    border-color: rgba(255, 232, 161, 0.7);
    background:
        linear-gradient(180deg, rgba(255, 226, 140, 0.14), transparent 42%),
        linear-gradient(180deg, #462b19 0%, #1b1009 100%);
}

.tab.active {
    color: #241406;
    border-color: #fff3c1;
    background: linear-gradient(180deg, #fff6cf 0%, #f2d26e 22%, #d9ab34 58%, #a87c16 100%);
    text-shadow: 0 1px 0 rgba(255, 245, 200, 0.55);
    box-shadow:
        inset 0 1px 0 #fffbe6,
        inset 0 -3px 0 rgba(84, 56, 6, 0.5),
        0 3px 0 #5e440d,
        0 8px 18px rgba(0, 0, 0, 0.22),
        0 0 26px rgba(255, 214, 110, 0.30);
}

/* ---------- Fields: dark leather with gilt tooling ---------- */
input[type="text"], input[type="number"], input[type="password"],
input[type="email"], input[type="search"], select, textarea,
.admin-amount-input, .admin-reason-input {
    font-family: 'Cinzel', serif;
    color: var(--parchment);
    border: 1px solid rgba(255, 226, 140, 0.36);
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(8, 5, 3, 0.72));
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, 0.7),
        0 1px 0 rgba(255, 235, 170, 0.08);
}

input::placeholder, textarea::placeholder { color: #a8873e; opacity: 0.9; }

input:focus, select:focus, textarea:focus,
.admin-amount-input:focus, .admin-reason-input:focus {
    border-color: rgba(255, 232, 161, 0.9);
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, 0.65),
        0 0 0 3px rgba(255, 214, 110, 0.14),
        0 0 20px rgba(255, 214, 110, 0.28);
}

/* ---------- Badges, callouts, plaques ---------- */
.badge {
    padding: 0.32rem 0.85rem;
    border: 1px solid rgba(255, 232, 161, 0.7);
    background:
        linear-gradient(180deg, rgba(255, 226, 140, 0.20), rgba(0, 0, 0, 0.20));
    color: var(--gold-bright);
    font-weight: 700;
    letter-spacing: 0.22em;
    text-shadow: 0 0 14px rgba(255, 214, 110, 0.35);
    box-shadow:
        inset 0 0 0 2px rgba(0, 0, 0, 0.34),
        0 0 20px rgba(255, 214, 110, 0.16);
}

.callout {
    background:
        linear-gradient(180deg, rgba(255, 226, 140, 0.10), rgba(0, 0, 0, 0.14));
    border: 1px solid rgba(255, 226, 140, 0.48);
    border-left: 4px solid var(--gold);
    box-shadow:
        inset 0 0 0 2px rgba(8, 5, 3, 0.35),
        0 6px 18px rgba(0, 0, 0, 0.3);
    color: var(--parchment);
}

.balance-bar {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 226, 140, 0.15), rgba(0, 0, 0, 0.14)),
        linear-gradient(90deg, #2a1810 0%, #3d2717 50%, #2a1810 100%);
    border: 1px solid rgba(255, 226, 140, 0.68);
    box-shadow:
        inset 0 0 0 3px rgba(10, 6, 4, 0.8),
        inset 0 0 0 4px rgba(255, 226, 140, 0.22),
        0 10px 28px rgba(0, 0, 0, 0.42);
}

.balance-bar .amount {
    color: var(--gold-pale);
    letter-spacing: 0.04em;
    text-shadow:
        0 1px 0 #fff6cf,
        0 2px 0 #a87c16,
        0 4px 10px #000,
        0 0 22px rgba(255, 214, 110, 0.35);
}

.table-list .row { border-bottom: 1px solid rgba(255, 226, 140, 0.16); }
.table-list .row:last-child { border-bottom: none; }

.result-box {
    border: 1px solid rgba(255, 226, 140, 0.5);
    background:
        linear-gradient(180deg, rgba(255, 226, 140, 0.05), rgba(0, 0, 0, 0.25));
    box-shadow:
        inset 0 0 0 2px rgba(8, 5, 3, 0.5),
        inset 0 0 26px rgba(0, 0, 0, 0.45);
}

.result-box.win, .result-box.lose, .result-box.push { border-width: 1px; }

/* ---------- Wager tables and wheels ---------- */
.dice-stage {
    border: 1px solid rgba(255, 226, 140, 0.42);
    background:
        radial-gradient(circle at center, rgba(255, 226, 140, 0.18), rgba(10, 6, 4, 0.35));
    box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.5);
}

.dice-face {
    color: #2b1907;
    background:
        radial-gradient(circle at 32% 24%, #fffbd9 0%, #f6dc86 24%, #d9ab34 62%, #a87c16 100%);
    border: 3px solid #6d4d0c;
    box-shadow:
        0 0 0 2px #ffe9a3,
        0 12px 30px rgba(0, 0, 0, 0.5),
        0 0 38px rgba(255, 214, 110, 0.35),
        inset 0 -7px 18px rgba(84, 56, 6, 0.42),
        inset 0 5px 12px rgba(255, 255, 225, 0.55);
}

.felt {
    border: 1px solid rgba(255, 226, 140, 0.55);
    box-shadow:
        inset 0 0 0 3px rgba(0, 0, 0, 0.5),
        inset 0 0 50px rgba(0, 0, 0, 0.7),
        0 10px 28px rgba(0, 0, 0, 0.4);
}

.prize-panel {
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 226, 140, 0.22), transparent 62%),
        linear-gradient(180deg, rgba(48, 30, 18, 0.98), rgba(14, 8, 5, 0.99));
    border: 1px solid rgba(255, 226, 140, 0.68);
    box-shadow:
        inset 0 0 0 4px rgba(10, 6, 4, 0.8),
        inset 0 0 0 5px rgba(255, 226, 140, 0.24),
        0 16px 42px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(255, 214, 110, 0.10);
}

.prize-amount, .prize-big {
    color: var(--gold-pale);
    text-shadow:
        0 1px 0 #fff6cf,
        0 2px 0 #d0a435,
        0 4px 0 #8c6616,
        0 10px 24px rgba(0, 0, 0, 0.8),
        0 0 38px rgba(255, 214, 110, 0.55);
}

.countdown .unit {
    background:
        linear-gradient(180deg, rgba(255, 226, 140, 0.12), rgba(0, 0, 0, 0.2)),
        linear-gradient(180deg, #2d1a0f, #100a06);
    border: 1px solid rgba(255, 226, 140, 0.5);
    box-shadow:
        inset 0 0 0 2px rgba(8, 5, 3, 0.6),
        0 6px 16px rgba(0, 0, 0, 0.35);
}

.countdown .num { color: var(--gold-bright); text-shadow: 0 0 18px rgba(255, 214, 110, 0.4); }

.progress-track {
    border: 1px solid rgba(255, 226, 140, 0.48);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.7);
}

.progress-fill {
    background: linear-gradient(90deg, #8c6616 0%, #e3bb54 42%, #fff4c9 68%, #e3bb54 100%);
    box-shadow: 0 0 16px rgba(255, 214, 110, 0.6);
}

.wheel-stage { filter: drop-shadow(0 0 30px rgba(255, 214, 110, 0.22)); }

/* ---------- Quest tracker ---------- */
.quest-tracker {
    background:
        linear-gradient(180deg, rgba(255, 226, 140, 0.08), transparent 38%),
        linear-gradient(180deg, rgba(52, 32, 20, 0.96), rgba(16, 10, 6, 0.98));
    border: 1px solid rgba(255, 226, 140, 0.55);
    border-left: 5px solid var(--gold);
    box-shadow:
        inset 0 0 0 3px rgba(8, 5, 3, 0.55),
        0 10px 26px rgba(0, 0, 0, 0.38);
}

.quest-step {
    border: 1px solid rgba(255, 226, 140, 0.28);
    background: rgba(0, 0, 0, 0.24);
}

.quest-step.is-current {
    border-color: rgba(255, 232, 161, 0.85);
    box-shadow: 0 0 18px rgba(255, 214, 110, 0.26), inset 0 0 0 2px rgba(8, 5, 3, 0.4);
}

.quest-dot {
    color: var(--gold-bright);
    border-color: rgba(255, 226, 140, 0.55);
    box-shadow: inset 0 0 0 2px rgba(8, 5, 3, 0.35);
}

.quest-step.is-current .quest-dot {
    color: #241406;
    border-color: #fff3c1;
    background: linear-gradient(180deg, #fff6cf, #d9ab34);
    box-shadow: 0 0 14px rgba(255, 214, 110, 0.4);
}

/* ---------- Toasts ---------- */
.rs-toast {
    background:
        linear-gradient(180deg, rgba(255, 226, 140, 0.10), transparent 40%),
        linear-gradient(160deg, #3d2717 0%, #160d07 100%);
    border: 1px solid rgba(255, 232, 161, 0.72);
    border-left-width: 5px;
    box-shadow:
        inset 0 0 0 2px rgba(8, 5, 3, 0.55),
        0 12px 34px rgba(0, 0, 0, 0.62),
        0 0 24px rgba(255, 214, 110, 0.20);
}

.rs-toast-title { color: var(--gold-bright); }

/* ---------- Grand footer ---------- */
.site-footer {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 226, 140, 0.09), transparent 42%),
        linear-gradient(90deg, #120c07 0%, #2b1a10 50%, #120c07 100%);
    border-top: 1px solid rgba(255, 226, 140, 0.72);
    box-shadow:
        inset 0 3px 0 rgba(255, 226, 140, 0.28),
        inset 0 6px 0 rgba(0, 0, 0, 0.55),
        0 -14px 44px rgba(0, 0, 0, 0.5);
}

.site-footer::before {
    content: '❦';
    position: absolute;
    top: -0.85em;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 0.8rem;
    background: #140d08;
    color: var(--gold-mid);
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    line-height: 1;
    text-shadow: 0 0 16px rgba(255, 214, 110, 0.6);
}

.footer-links a {
    color: var(--gold-bright);
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-links a:hover {
    color: #fff9dd;
    text-decoration: none;
    text-shadow: 0 0 14px rgba(255, 214, 110, 0.8);
}

.footer-legal { color: #bfa04a; }

/* ---------- Modals and support ---------- */
.modal {
    background:
        radial-gradient(ellipse at center, rgba(255, 214, 110, 0.10), transparent 60%),
        rgba(0, 0, 0, 0.88);
}

.modal-content { border-width: 1px; }

.close {
    color: var(--gold-bright);
    text-shadow: 0 0 14px rgba(255, 214, 110, 0.5);
}

#rs-support-panel {
    background:
        linear-gradient(180deg, rgba(255, 226, 140, 0.08), transparent 40%),
        linear-gradient(145deg, #2f1c11, #0f0905);
    border: 1px solid rgba(255, 232, 161, 0.72);
    box-shadow:
        inset 0 0 0 3px rgba(8, 5, 3, 0.55),
        0 14px 50px rgba(0, 0, 0, 0.82),
        0 0 34px rgba(255, 214, 110, 0.16);
}

.rs-support-head {
    background: linear-gradient(180deg, rgba(255, 226, 140, 0.18), rgba(0, 0, 0, 0.16));
    border-bottom: 1px solid rgba(255, 226, 140, 0.36);
    color: var(--gold-bright);
}

.rs-msg {
    background: rgba(255, 226, 140, 0.07);
    border-left: 3px solid var(--gold);
}

/* ---------- Small gilded details ---------- */
.tag, .round-tag, .round-pill, .pot-pill, .rule-badge {
    border: 1px solid rgba(255, 226, 140, 0.38);
    background: rgba(255, 226, 140, 0.07);
    color: var(--gold-bright);
    letter-spacing: 0.05em;
}

.gp-hour { color: #9fe6ad; text-shadow: 0 0 14px rgba(81, 207, 102, 0.35); }

.winner-row { border-left: 4px solid var(--gold); background: rgba(255, 226, 140, 0.05); }
.winner-name { color: var(--parchment); }
.winner-prize { color: #9fe6ad; }

code, .btc-address, .address {
    color: var(--gold-bright);
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 226, 140, 0.28);
}

/* Gold scrollbar, like a tooled leather spine */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #0b0805; }
::-webkit-scrollbar-thumb {
    border: 2px solid #0b0805;
    border-radius: 8px;
    background: linear-gradient(180deg, #8c6616 0%, #e3bb54 45%, #fff4c9 55%, #8c6616 100%);
}

/* Keyboard focus stays unmistakably gold */
:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
