/* ============================================================
   Hate.Vegas — "After the tourists leave at 3AM"
   ============================================================ */

:root {
    --void:       #1a0033;
    --void-deep:  #0a0010;
    --asphalt:    #0a0a0a;
    --pearl:      #fff2c4;
    --pearl-dim:  #b8a989;
    --marble:     #8b0000;
    --marble-hot: #c41010;
    --neon:       #ffa500;
    --neon-hot:   #ff7b00;
    --cherry:     #ff2d6a;
    --gold:       #d4a548;
    --gold-deep:  #6e5119;
    --shadow:     rgba(0,0,0,.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
    font-family: 'Special Elite', 'Courier New', monospace;
    background: var(--void-deep);
    color: var(--pearl);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* ---------- Casino-carpet pattern (kitsch but legible) ---------- */
.carpet {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-color: var(--void-deep);
    background-image:
        radial-gradient(circle at 25% 25%, rgba(212,165,72,0.10) 1.5px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255,45,106,0.08) 2px, transparent 3px),
        radial-gradient(circle at 50% 0%, rgba(139,0,0,0.18) 4px, transparent 6px),
        radial-gradient(circle at 0% 50%, rgba(255,165,0,0.07) 1px, transparent 2px),
        repeating-linear-gradient(45deg, rgba(26,0,51,0.4) 0 24px, rgba(10,0,16,0.4) 24px 48px);
    background-size: 60px 60px, 90px 90px, 120px 120px, 30px 30px, auto;
    background-position: 0 0, 30px 30px, 60px 0, 0 0, 0 0;
    opacity: 0.85;
}

/* atmospheric overlays — borrowed feel from doom spiral */
.grain {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: .08;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.scanlines {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 9998;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0px,
        rgba(0,0,0,0) 2px,
        rgba(0,0,0,.14) 3px,
        rgba(0,0,0,0) 4px
    );
}
.vignette {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 9997;
    background: radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,.85) 100%);
}

/* ---------- Page chrome ---------- */
.page {
    width: 95%;
    max-width: 920px;
    margin: 18px auto 28px;
    position: relative;
    z-index: 1;
}

/* ---------- Top bar / logo ---------- */
.topbar {
    text-align: center;
    padding: 14px 8px 6px;
    border: 1px solid var(--marble);
    background:
        linear-gradient(180deg, rgba(26,0,51,0.6), rgba(10,0,16,0.85)),
        repeating-linear-gradient(-3deg, rgba(255,242,196,0.025) 0 6px, transparent 6px 18px);
    box-shadow:
        0 0 0 1px rgba(212,165,72,0.4) inset,
        0 0 60px rgba(139,0,0,0.35),
        0 4px 0 rgba(0,0,0,0.6);
    position: relative;
}
.topbar::before {
    content: "VOID 21";
    position: absolute;
    top: 6px; right: 10px;
    font-family: 'VT323', monospace;
    font-size: 14px;
    letter-spacing: .2em;
    color: var(--marble-hot);
    border: 1px solid var(--marble);
    padding: 1px 6px;
    transform: rotate(6deg);
    opacity: .7;
}
.topbar::after {
    content: "FILE NO. ∞";
    position: absolute;
    bottom: 4px; left: 10px;
    font-family: 'VT323', monospace;
    font-size: 13px;
    letter-spacing: .25em;
    color: var(--gold);
    opacity: .6;
}

.logo {
    font-family: 'Monoton', 'Impact', sans-serif;
    font-size: clamp(48px, 9vw, 88px);
    letter-spacing: .04em;
    line-height: 1;
    color: var(--pearl);
    text-shadow:
        0 0 6px var(--cherry),
        0 0 22px var(--marble),
        3px 3px 0 var(--asphalt),
        -1px -1px 0 var(--neon);
    margin: 0;
}
.logo a, .logo a:visited { color: inherit; text-decoration: none; }
.logo .sep {
    display: inline-block;
    color: var(--neon);
    text-shadow: 0 0 10px var(--neon-hot), 0 0 30px var(--cherry);
    animation: blink 1.1s step-start infinite;
}
.logo .vegas {
    color: var(--cherry);
    text-shadow:
        0 0 8px var(--cherry),
        0 0 22px var(--marble-hot),
        3px 3px 0 var(--asphalt);
}

.tagline {
    margin-top: 8px;
    font-family: 'VT323', monospace;
    font-size: 16px;
    letter-spacing: .25em;
    color: var(--gold);
    text-shadow: 0 0 6px rgba(212,165,72,0.4);
}

.marquee-bar {
    display: block;
    margin-top: 10px;
    background: var(--asphalt);
    color: var(--neon);
    border: 1px solid var(--gold-deep);
    border-left-style: dashed;
    border-right-style: dashed;
    font-family: 'VT323', monospace;
    font-size: 14px;
    letter-spacing: .2em;
    padding: 5px 0;
    text-shadow: 0 0 6px var(--neon-hot);
}

/* ---------- Nav ---------- */
.navbar {
    margin: 6px 0;
    background: var(--asphalt);
    border: 1px solid var(--gold-deep);
    box-shadow: 0 0 20px rgba(212,165,72,.15) inset;
    display: flex;
    flex-wrap: wrap;
}
.navlink {
    flex: 1 1 auto;
    text-align: center;
    padding: 10px 6px;
    color: var(--pearl) !important;
    background: transparent;
    border-right: 1px solid var(--gold-deep);
    text-decoration: none !important;
    font-family: 'VT323', monospace;
    font-size: 16px;
    letter-spacing: .15em;
    transition: background .15s, color .15s;
}
.navlink:last-child { border-right: none; }
.navlink:hover {
    background: var(--marble);
    color: var(--pearl) !important;
    text-shadow: 0 0 8px var(--neon);
}
.navlink.active {
    background: linear-gradient(180deg, var(--marble) 0%, var(--marble-hot) 100%);
    color: var(--pearl) !important;
    text-shadow: 0 0 10px var(--neon), 0 0 20px var(--cherry);
    box-shadow: 0 0 0 1px var(--neon) inset;
}
.navlink.cta {
    color: var(--neon) !important;
    font-weight: bold;
    text-shadow: 0 0 8px var(--neon-hot);
}

/* ---------- Content ---------- */
.content {
    background: linear-gradient(180deg, rgba(10,0,16,0.85) 0%, rgba(26,0,51,0.85) 100%);
    border: 1px solid var(--gold-deep);
    box-shadow:
        0 0 0 1px rgba(212,165,72,0.2) inset,
        0 0 40px rgba(139,0,0,0.25);
    padding: 22px 22px 30px;
    min-height: 320px;
}

.section-title {
    font-family: 'Monoton', 'Impact', sans-serif;
    font-size: 28px;
    letter-spacing: .04em;
    color: var(--pearl);
    text-shadow: 0 0 8px var(--marble-hot), 2px 2px 0 var(--asphalt);
    margin: 0 0 18px;
    border-bottom: 1px dashed var(--gold-deep);
    padding-bottom: 8px;
}
.section-sub {
    font-family: 'VT323', monospace;
    font-size: 14px;
    letter-spacing: .2em;
    color: var(--gold);
    margin: -10px 0 16px;
}

/* ============================================================
   THE SLOT MACHINE
   ============================================================ */
.slot-machine {
    margin: 8px auto 24px;
    max-width: 720px;
    padding: 22px 18px 26px;
    border: 2px solid var(--gold);
    background:
        linear-gradient(180deg, #2a0033 0%, #0a0010 100%);
    box-shadow:
        0 0 0 4px var(--gold-deep) inset,
        0 0 0 6px var(--asphalt) inset,
        0 0 30px rgba(255,165,0,0.35),
        0 8px 0 var(--asphalt);
    position: relative;
}
.slot-machine::before {
    content: "JACKPOT";
    position: absolute;
    top: -16px; left: 50%;
    transform: translateX(-50%);
    background: var(--asphalt);
    color: var(--neon);
    border: 1px solid var(--gold);
    font-family: 'Monoton', sans-serif;
    font-size: 18px;
    letter-spacing: .25em;
    padding: 2px 14px;
    text-shadow: 0 0 8px var(--neon-hot);
    animation: chase 2s linear infinite;
}
.slot-machine::after {
    content: "PULL THE HANDLE";
    position: absolute;
    bottom: -12px; right: 14px;
    background: var(--asphalt);
    color: var(--gold);
    font-family: 'VT323', monospace;
    font-size: 13px;
    letter-spacing: .25em;
    padding: 1px 8px;
    border: 1px solid var(--gold-deep);
}

/* The 3 reels — flex columns */
.reels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: var(--asphalt);
    border: 2px solid var(--gold-deep);
    padding: 6px;
    box-shadow: 0 0 0 1px var(--neon) inset, 0 0 20px rgba(255,45,106,0.25) inset;
}
.reel {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: linear-gradient(180deg, #150022 0%, #0a0010 50%, #150022 100%);
    border: 1px solid var(--gold-deep);
}
.reel::before, .reel::after {
    content: "";
    position: absolute; left: 0; right: 0;
    height: 28px;
    pointer-events: none;
    z-index: 3;
}
.reel::before {
    top: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.95), transparent);
}
.reel::after {
    bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.95), transparent);
}
.reel-strip {
    position: absolute;
    top: 0; left: 0; right: 0;
    transition: transform 1.6s cubic-bezier(.18, .82, .15, 1);
    will-change: transform;
}
.reel-cell {
    height: 230px; /* matches reel — only the centered cell is "shown" */
    padding: 14px 12px;
    color: var(--pearl);
    font-family: 'Special Elite', monospace;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    border-bottom: 1px dashed rgba(212,165,72,0.18);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.reel-cell .cell-id {
    font-family: 'VT323', monospace;
    font-size: 12px;
    letter-spacing: .15em;
    color: var(--gold);
    margin-bottom: 6px;
    opacity: .85;
}
.reel-cell .cell-body {
    font-size: 14px;
    color: var(--pearl);
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    flex: 1;
    /* clamp body to ~7 lines via webkit-line-clamp where supported */
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
}
.reel-cell .cell-meta {
    margin-top: 6px;
    font-family: 'VT323', monospace;
    font-size: 12px;
    color: var(--pearl-dim);
    letter-spacing: .12em;
    display: flex;
    justify-content: space-between;
}
.reel-cell .cell-meta a {
    color: var(--neon);
    text-decoration: none;
}
.reel-cell .cell-meta a:hover { color: var(--cherry); }

/* slot status banner */
.slot-status {
    margin: 10px auto 0;
    text-align: center;
    font-family: 'VT323', monospace;
    font-size: 18px;
    letter-spacing: .2em;
    color: var(--pearl-dim);
    min-height: 22px;
}
.slot-status.is-match {
    color: var(--neon);
    text-shadow: 0 0 8px var(--neon-hot);
}
.slot-status.is-jackpot {
    color: var(--cherry);
    text-shadow: 0 0 10px var(--cherry), 0 0 30px var(--marble-hot);
    font-size: 22px;
    animation: pulse 1.4s ease-in-out infinite;
}
.slot-status .word {
    color: var(--pearl);
    font-style: italic;
    font-family: 'Special Elite', serif;
    text-transform: uppercase;
    margin-left: 6px;
}

/* slot reactions row — wraps each reel */
/* Mirror .reels geometry so columns line up perfectly:
   .reels has 2px border + 6px padding (4px on mobile) and gap: 8px (4px on mobile). */
.reel-rxns-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 6px;
    padding: 0 8px;
    box-sizing: border-box;
}
.reel-rxns {
    display: flex;
    justify-content: space-around;
    padding: 6px 4px 2px;
    background: var(--asphalt);
    border: 1px solid var(--gold-deep);
    border-top: none;
    margin-top: -1px;
}
.reel-rxns .rxn {
    flex: 0 0 auto;
    position: relative;
    padding: 4px 6px;
    gap: 0;
}
/* Count rendered as a small badge over the emoji, only present after a vote. */
.reel-rxns .rxn .count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border-radius: 7px;
    background: var(--cherry, #c41e3a);
    color: var(--pearl, #fff);
    font-size: 10px;
    font-weight: bold;
    line-height: 14px;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 0 0 1px var(--asphalt);
}

/* PULL handle button */
.pull-handle {
    display: block;
    margin: 22px auto 4px;
    background:
        linear-gradient(180deg, var(--marble-hot) 0%, var(--marble) 60%, #4a0606 100%);
    color: var(--pearl);
    border: 2px solid var(--gold);
    padding: 18px 48px;
    font-family: 'Monoton', 'Impact', sans-serif;
    font-size: 30px;
    letter-spacing: .12em;
    cursor: pointer;
    text-shadow: 2px 2px 0 var(--asphalt), 0 0 10px var(--neon);
    box-shadow:
        0 0 0 2px var(--asphalt) inset,
        0 0 24px rgba(255,165,0,0.5),
        0 8px 0 #4a0606;
    transition: transform .08s ease, box-shadow .08s ease;
    position: relative;
}
.pull-handle:hover {
    background: linear-gradient(180deg, var(--cherry) 0%, var(--marble-hot) 60%, var(--marble) 100%);
}
.pull-handle:active {
    transform: translateY(6px);
    box-shadow:
        0 0 0 2px var(--asphalt) inset,
        0 0 24px rgba(255,165,0,0.4),
        0 2px 0 #4a0606;
}
.pull-handle:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}
.pull-handle small {
    display: block;
    margin-top: 4px;
    font-family: 'VT323', monospace;
    font-size: 13px;
    letter-spacing: .25em;
    color: var(--gold);
    text-shadow: none;
}

.slot-actions {
    text-align: center;
    margin-top: 10px;
    font-family: 'VT323', monospace;
    font-size: 14px;
    letter-spacing: .15em;
    color: var(--pearl-dim);
}
.slot-actions a {
    color: var(--neon);
    text-decoration: none;
    border-bottom: 1px dotted var(--neon);
    margin: 0 4px;
}
.slot-actions a:hover { color: var(--cherry); border-color: var(--cherry); }

/* cold-start notice */
.cold-start {
    text-align: center;
    padding: 38px 18px;
    border: 1px dashed var(--gold);
    background: var(--asphalt);
}
.cold-start h2 {
    font-family: 'Monoton', sans-serif;
    font-size: 28px;
    color: var(--pearl);
    text-shadow: 0 0 10px var(--marble-hot);
    letter-spacing: .04em;
}
.cold-start p {
    margin: 10px 0 22px;
    color: var(--gold);
    font-family: 'VT323', monospace;
    font-size: 18px;
    letter-spacing: .15em;
}

/* ============================================================
   HATE CARD (used on /h/<id>, /new, /jackpot)
   ============================================================ */
.hate {
    background: linear-gradient(180deg, rgba(26,0,51,0.6), rgba(10,0,16,0.85));
    border: 1px solid var(--gold-deep);
    border-left: 3px solid var(--marble);
    padding: 14px 16px;
    margin: 0 0 16px;
    box-shadow: 4px 4px 0 var(--asphalt);
    position: relative;
}
.hate:nth-child(odd)  { border-left-color: var(--neon); }
.hate:nth-child(3n)   { border-left-color: var(--cherry); }

.hate-meta {
    font-family: 'VT323', monospace;
    font-size: 13px;
    letter-spacing: .15em;
    color: var(--pearl-dim);
    margin-bottom: 8px;
    border-bottom: 1px dotted var(--gold-deep);
    padding-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hate-meta .id {
    color: var(--cherry);
    font-weight: bold;
}
.hate-meta a { color: var(--neon); text-decoration: none; border-bottom: 1px dotted var(--neon); }
.hate-meta a:hover { color: var(--cherry); border-color: var(--cherry); }

.hate-body {
    font-family: 'Special Elite', monospace;
    font-size: 16px;
    line-height: 1.55;
    color: var(--pearl);
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.hate-body.truncated::after {
    content: " ... [tap to read the rest of this grudge]";
    color: var(--neon);
    font-style: italic;
    font-size: 13px;
}

/* ---------- REACTIONS ---------- */
.reactions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.rxn {
    background: var(--asphalt);
    color: var(--pearl);
    border: 1px solid var(--gold-deep);
    padding: 5px 10px;
    font-family: 'VT323', monospace;
    font-size: 14px;
    letter-spacing: .1em;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .15s, border-color .15s, color .15s;
}
.rxn:hover {
    background: var(--marble);
    border-color: var(--neon);
    color: var(--pearl);
}
.rxn.active {
    background: linear-gradient(180deg, var(--marble), var(--marble-hot));
    border-color: var(--neon);
    color: var(--pearl);
    text-shadow: 0 0 6px var(--neon-hot);
    box-shadow: 0 0 0 1px var(--neon) inset;
}
.rxn .emoji { font-size: 16px; line-height: 1; }
.rxn .count { font-weight: bold; color: var(--gold); }
.rxn.active .count { color: var(--pearl); }

.replylink {
    margin-left: auto;
    font-size: 13px;
    color: var(--neon);
    font-family: 'VT323', monospace;
    letter-spacing: .15em;
    text-decoration: none;
    border-bottom: 1px dotted var(--neon);
}
.replylink:hover { color: var(--cherry); border-color: var(--cherry); }

/* ---------- SUBMIT FORM ---------- */
.form-box {
    background: var(--asphalt);
    border: 1px solid var(--gold);
    padding: 18px;
    box-shadow: 0 0 0 1px var(--gold-deep) inset;
}
.form-box label {
    display: block;
    font-family: 'VT323', monospace;
    font-size: 16px;
    letter-spacing: .2em;
    color: var(--neon);
    margin-bottom: 6px;
    text-shadow: 0 0 6px var(--neon-hot);
}
.form-box textarea, .form-box input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    background: var(--void-deep);
    color: var(--pearl);
    border: 1px solid var(--gold-deep);
    padding: 10px;
    font-family: 'Special Elite', monospace;
    font-size: 15px;
    resize: vertical;
}
.form-box textarea:focus, .form-box input:focus {
    outline: none;
    border-color: var(--neon);
    box-shadow: 0 0 0 1px var(--neon) inset;
}
.form-box textarea { min-height: 150px; }
.form-box .hint {
    font-size: 13px;
    color: var(--gold);
    margin-top: 6px;
    font-family: 'VT323', monospace;
    letter-spacing: .12em;
}
.form-box .charcount {
    font-size: 13px;
    color: var(--gold);
    text-align: right;
    font-family: 'VT323', monospace;
    letter-spacing: .15em;
}
.form-box .charcount.over { color: var(--cherry); font-weight: bold; }

/* honeypot */
.hp { position: absolute; left: -10000px; top: -10000px; height: 1px; width: 1px; overflow: hidden; }

button.bigbtn, .bigbtn {
    display: inline-block;
    background: linear-gradient(180deg, var(--cherry) 0%, var(--marble-hot) 60%, var(--marble) 100%);
    color: var(--pearl);
    border: 2px solid var(--gold);
    padding: 12px 26px;
    font-family: 'Monoton', 'Impact', sans-serif;
    font-size: 22px;
    letter-spacing: .1em;
    cursor: pointer;
    text-decoration: none;
    text-shadow: 2px 2px 0 var(--asphalt), 0 0 6px var(--neon-hot);
    box-shadow:
        0 0 0 1px var(--asphalt) inset,
        0 0 18px rgba(255,165,0,0.4),
        0 5px 0 #4a0606;
    transition: transform .08s, box-shadow .08s;
}
button.bigbtn:hover, .bigbtn:hover {
    background: linear-gradient(180deg, var(--neon) 0%, var(--cherry) 60%, var(--marble-hot) 100%);
}
button.bigbtn:active, .bigbtn:active {
    transform: translateY(4px);
    box-shadow:
        0 0 0 1px var(--asphalt) inset,
        0 0 18px rgba(255,165,0,0.4),
        0 1px 0 #4a0606;
}

/* flash messages */
.flash {
    background: rgba(0,80,0,0.3);
    color: var(--pearl);
    border: 1px solid #00aa44;
    border-left: 3px solid #00ff66;
    padding: 10px;
    margin-bottom: 14px;
    font-family: 'VT323', monospace;
    font-size: 16px;
    letter-spacing: .1em;
}
.flash.error {
    background: rgba(80,0,0,0.4);
    border-color: var(--marble-hot);
    border-left-color: var(--cherry);
    color: var(--pearl);
}

/* ---------- REPLIES (whispers from the floor) ---------- */
.replies {
    margin-top: 18px;
    border-top: 1px dashed var(--gold-deep);
    padding-top: 14px;
}
.replies h3 {
    font-family: 'Monoton', sans-serif;
    font-size: 22px;
    color: var(--pearl);
    letter-spacing: .04em;
    margin-bottom: 10px;
    text-shadow: 0 0 8px var(--cherry);
}
.replies h3 small {
    font-family: 'VT323', monospace;
    font-size: 14px;
    color: var(--gold);
    letter-spacing: .2em;
    margin-left: 8px;
}
.reply {
    background: var(--asphalt);
    border-left: 3px solid var(--marble);
    padding: 8px 12px;
    margin: 0 0 8px;
    font-family: 'Special Elite', monospace;
    font-size: 14px;
    color: var(--pearl);
    position: relative;
}
.reply:nth-child(odd)  { border-left-color: var(--neon); }
.reply:nth-child(3n)   { border-left-color: var(--cherry); }
.reply::before {
    content: "♣";
    position: absolute;
    top: 4px; right: 8px;
    color: var(--gold-deep);
    font-size: 12px;
    opacity: .6;
}
.reply .reply-meta {
    font-family: 'VT323', monospace;
    font-size: 12px;
    color: var(--pearl-dim);
    letter-spacing: .15em;
    margin-top: 4px;
}
.reply-form {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}
.reply-form input {
    flex: 1;
    background: var(--void-deep);
    color: var(--pearl);
    border: 1px solid var(--gold-deep);
    padding: 8px 10px;
    font-family: 'Special Elite', monospace;
    font-size: 14px;
}
.reply-form input:focus {
    outline: none;
    border-color: var(--neon);
}
.reply-form button {
    background: var(--marble);
    color: var(--pearl);
    border: 1px solid var(--gold);
    font-family: 'Monoton', sans-serif;
    font-size: 16px;
    letter-spacing: .1em;
    padding: 6px 14px;
    cursor: pointer;
}
.reply-form button:hover {
    background: var(--cherry);
}

/* ---------- FOOTER ---------- */
.footer {
    margin-top: 6px;
    text-align: center;
    background: var(--asphalt);
    border: 1px solid var(--gold-deep);
    padding: 14px 10px;
    color: var(--pearl-dim);
    font-family: 'VT323', monospace;
    font-size: 13px;
    letter-spacing: .15em;
}
.footer .ledger {
    display: inline-block;
    margin: 0 0 8px;
    background: var(--void-deep);
    border: 1px solid var(--gold-deep);
    padding: 6px 10px;
}
.ledger-label {
    color: var(--gold);
    font-size: 12px;
    margin-right: 6px;
    vertical-align: middle;
}
.ledger-digit {
    display: inline-block;
    background: var(--asphalt);
    color: var(--cherry);
    font-family: 'VT323', monospace;
    font-weight: bold;
    font-size: 22px;
    border: 1px solid var(--marble);
    padding: 0 5px;
    margin: 0 1px;
    text-shadow: 0 0 6px var(--cherry);
}
.footer-links a {
    color: var(--neon);
    text-decoration: none;
    border-bottom: 1px dotted var(--neon);
    margin: 0 6px;
}
.footer-links a:hover { color: var(--cherry); border-color: var(--cherry); }
.badges { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.badge {
    display: inline-block;
    font-size: 10px;
    padding: 2px 6px;
    border: 1px solid var(--pearl);
    font-family: 'VT323', monospace;
    font-weight: bold;
    letter-spacing: .15em;
}
.badge-cherry { background: var(--cherry); color: var(--pearl); }
.badge-neon   { background: var(--neon);   color: var(--asphalt); }
.badge-gold   { background: var(--gold);   color: var(--asphalt); }
.badge-void   { background: var(--void);   color: var(--pearl); border-color: var(--gold); }

/* ---------- TOS Gate ---------- */
.tos-gate {
    position: fixed; inset: 0;
    z-index: 10000;
    background: var(--void-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.tos-card {
    max-width: 540px;
    width: 100%;
    border: 2px solid var(--marble);
    background:
        repeating-linear-gradient(-2deg, rgba(255,242,196,.02) 0 4px, transparent 4px 18px),
        var(--asphalt);
    padding: 36px 30px 26px;
    position: relative;
    box-shadow:
        0 0 0 1px var(--marble-hot) inset,
        0 0 60px rgba(178,16,16,.45);
}
.tos-card::before {
    content: "VOID 21 // EYES ONLY";
    position: absolute;
    top: -14px; left: 18px;
    background: var(--void-deep);
    padding: 2px 10px;
    font-family: 'VT323', monospace;
    font-size: 14px;
    letter-spacing: .2em;
    color: var(--neon);
}
.tos-card::after {
    content: "FILE NO. ∞ // STAKES AGREEMENT";
    position: absolute;
    bottom: -12px; right: 18px;
    background: var(--void-deep);
    padding: 2px 10px;
    font-family: 'VT323', monospace;
    font-size: 12px;
    letter-spacing: .15em;
    color: var(--gold);
}
.tos-stamp {
    position: absolute;
    top: 14px; right: 18px;
    font-family: 'VT323', monospace;
    border: 2px solid var(--cherry);
    color: var(--cherry);
    padding: 2px 8px;
    transform: rotate(8deg);
    font-size: 14px;
    letter-spacing: .12em;
    opacity: .85;
}
.tos-title {
    font-family: 'Monoton', sans-serif;
    font-size: clamp(40px, 8vw, 64px);
    color: var(--pearl);
    text-align: center;
    margin-bottom: 6px;
    line-height: 1;
    text-shadow:
        0 0 8px var(--cherry),
        2px 2px 0 var(--marble-hot);
}
.tos-title .vegas { color: var(--cherry); }
.tos-sub {
    text-align: center;
    font-family: 'VT323', monospace;
    font-size: 16px;
    letter-spacing: .25em;
    color: var(--gold);
    margin-bottom: 22px;
}
.tos-body {
    font-family: 'Special Elite', monospace;
    font-size: 15px;
    line-height: 1.55;
    color: var(--pearl);
    margin-bottom: 22px;
}
.tos-body ol {
    list-style: none;
    counter-reset: tos;
}
.tos-body li {
    counter-increment: tos;
    padding: 8px 0 8px 36px;
    position: relative;
    border-bottom: 1px dashed rgba(212,165,72,.18);
}
.tos-body li::before {
    content: "§" counter(tos, decimal-leading-zero);
    position: absolute; left: 0; top: 8px;
    font-family: 'VT323', monospace;
    color: var(--cherry);
    font-size: 16px;
    letter-spacing: .1em;
}
.tos-body li:last-child { border-bottom: none; }
.tos-button {
    display: block;
    width: 100%;
    background: var(--marble);
    color: var(--pearl);
    border: 1px solid var(--gold);
    padding: 16px 20px;
    font-family: 'Monoton', 'Special Elite', monospace;
    font-size: 22px;
    letter-spacing: .12em;
    cursor: pointer;
    text-shadow: 2px 2px 0 var(--asphalt), 0 0 8px var(--neon-hot);
    box-shadow: 0 4px 0 #4a0606;
    transition: transform .08s ease, box-shadow .08s ease, background .15s;
}
.tos-button:hover { background: var(--cherry); }
.tos-button:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #4a0606;
}

/* ---------- Elvis interrupt (mid-spin) ---------- */
.elvis {
    position: fixed; inset: 0;
    z-index: 8500;
    display: none;
    background: var(--void-deep);
    color: var(--pearl);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 30px;
}
.elvis.is-open { display: flex; }
.elvis::before {
    content: "";
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0) 0 6px,
        rgba(0,0,0,.55) 6px 8px);
    mix-blend-mode: multiply;
    animation: vhs-roll .9s linear infinite;
    pointer-events: none;
}
.elvis-tag {
    font-family: 'VT323', monospace;
    font-size: 20px;
    letter-spacing: .35em;
    color: var(--neon);
    margin-bottom: 8px;
    animation: glitch-hue .5s steps(2) infinite;
}
.elvis-msg {
    font-family: 'Monoton', serif;
    font-size: clamp(38px, 8vw, 64px);
    color: var(--pearl);
    text-shadow:
        3px 0 var(--neon),
        -3px 0 #00d4ff,
        0 0 30px rgba(0,0,0,.8);
    animation: glitch-shake .14s steps(2) infinite;
    letter-spacing: .03em;
}
.elvis-sub {
    margin-top: 14px;
    font-family: 'VT323', monospace;
    font-size: 18px;
    letter-spacing: .18em;
    color: var(--gold);
    opacity: .9;
}

/* ---------- Chapel-wedding interrupt (mid-spin) ---------- */
.chapel {
    position: fixed; inset: 0;
    z-index: 8500;
    display: none;
    background: var(--void-deep);
    color: var(--pearl);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 30px;
}
.chapel.is-open { display: flex; }
.chapel::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at top, rgba(255, 24, 90, .18), transparent 60%),
        repeating-linear-gradient(
            0deg,
            rgba(0,0,0,0) 0 6px,
            rgba(0,0,0,.55) 6px 8px);
    mix-blend-mode: multiply;
    animation: vhs-roll .9s linear infinite;
    pointer-events: none;
}
.chapel-tag {
    font-family: 'VT323', monospace;
    font-size: 20px;
    letter-spacing: .35em;
    color: var(--cherry);
    margin-bottom: 8px;
    animation: glitch-hue .5s steps(2) infinite;
}
.chapel-msg {
    font-family: 'Monoton', serif;
    font-size: clamp(38px, 8vw, 64px);
    color: var(--pearl);
    text-shadow:
        3px 0 var(--cherry),
        -3px 0 var(--gold),
        0 0 30px rgba(0,0,0,.8);
    animation: glitch-shake .14s steps(2) infinite;
    letter-spacing: .03em;
}
.chapel-sub {
    margin-top: 14px;
    font-family: 'VT323', monospace;
    font-size: 18px;
    letter-spacing: .18em;
    color: var(--gold);
    opacity: .9;
}

/* ---------- Animations ---------- */
@keyframes blink { 50% { opacity: .25; } }
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .65; transform: scale(.97); }
}
@keyframes chase {
    0% { box-shadow: 0 0 6px var(--neon); }
    50% { box-shadow: 0 0 18px var(--cherry), 0 0 30px var(--neon-hot); }
    100% { box-shadow: 0 0 6px var(--neon); }
}
@keyframes vhs-roll {
    from { background-position: 0 0; }
    to   { background-position: 0 80px; }
}
@keyframes glitch-shake {
    0%   { transform: translate(0,0); }
    25%  { transform: translate(-2px,1px); }
    50%  { transform: translate(2px,-1px); }
    75%  { transform: translate(-1px,2px); }
}
@keyframes glitch-hue {
    0%   { color: var(--neon); }
    50%  { color: #00d4ff; }
    100% { color: var(--pearl); }
}

/* ---------- error toast ---------- */
.toast {
    position: fixed;
    bottom: 24px; left: 50%;
    transform: translateX(-50%);
    background: var(--marble);
    color: var(--pearl);
    padding: 10px 16px;
    font-family: 'VT323', monospace;
    letter-spacing: .15em;
    z-index: 11000;
    border-left: 3px solid var(--neon);
    display: none;
}
.toast.is-open { display: block; }

/* ---------- Coin-burst for jackpot (slot-tray payout) ---------- */
.money-layer {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 9500;
    overflow: hidden;
}
.coin {
    position: fixed;
    width: 22px; height: 22px;
    pointer-events: none;
    border-radius: 50%;
    transform-style: preserve-3d;
    backface-visibility: visible;
    will-change: transform;
}
/* Metallic faces — radial gradient gives the "shine" highlight; box-shadow gives rim depth + glow. */
.coin.gold {
    background: radial-gradient(circle at 35% 30%, #fff5c4 0%, #ffd54a 22%, #d4a017 55%, #8a6508 92%);
    box-shadow:
        inset 0 0 0 1.5px #b88a10,
        inset 0 -2px 4px rgba(0,0,0,0.45),
        inset 0 2px 3px rgba(255,255,255,0.55),
        0 2px 5px rgba(0,0,0,0.5),
        0 0 10px rgba(255, 200, 60, 0.35);
}
.coin.silver {
    background: radial-gradient(circle at 35% 30%, #ffffff 0%, #e8e8e8 22%, #aaaaaa 55%, #5e5e5e 92%);
    box-shadow:
        inset 0 0 0 1.5px #888,
        inset 0 -2px 4px rgba(0,0,0,0.45),
        inset 0 2px 3px rgba(255,255,255,0.6),
        0 2px 5px rgba(0,0,0,0.5),
        0 0 8px rgba(220, 220, 220, 0.3);
}
.coin.copper {
    background: radial-gradient(circle at 35% 30%, #ffd9b3 0%, #d97a3a 22%, #9a4a17 55%, #5a2606 92%);
    box-shadow:
        inset 0 0 0 1.5px #7a3a10,
        inset 0 -2px 4px rgba(0,0,0,0.5),
        inset 0 2px 3px rgba(255,200,150,0.5),
        0 2px 5px rgba(0,0,0,0.5),
        0 0 9px rgba(220, 120, 60, 0.3);
}
/* Center "$" stamp — small, embossed feel, scales with the coin via em units. */
.coin::before {
    content: '$';
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Bebas Neue', 'Special Elite', monospace;
    font-weight: bold;
    font-size: 0.62em;
    color: rgba(0, 0, 0, 0.35);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ---------- responsive ---------- */
@media (max-width: 640px) {
    .logo { font-size: 44px; }
    .navbar { display: grid; grid-template-columns: 1fr 1fr; }
    .navlink { border-right: 1px solid var(--gold-deep); border-bottom: 1px solid var(--gold-deep); }
    .reels { gap: 4px; padding: 4px; }
    .reel-rxns-row { gap: 4px; padding: 0 6px; }
    .reel-rxns { padding: 4px 0 2px; }
    .reel-rxns .rxn { padding: 0; border: none; background: transparent; }
    .reel { height: 200px; }
    .reel-cell { height: 200px; padding: 10px 8px; font-size: 13px; }
    .reel-cell .cell-body { -webkit-line-clamp: 6; }
    .pull-handle { font-size: 24px; padding: 14px 32px; }
    .tos-card { padding: 28px 18px 18px; }
    .topbar::before, .topbar::after { font-size: 11px; }
}
