/* Trivia Slots web v1. Fixed 750x1334 stage, scaled to fit the window by game.js. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #07131a; overflow: hidden; }
body { font-family: "Arial Black", "Arial Bold", Arial, Helvetica, sans-serif; color: #fff;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 4px solid #ffe14d; outline-offset: 3px; }

#viewport { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
#stage { position: relative; width: 750px; height: 1334px; flex: none; overflow: hidden;
  transform-origin: center center; background: #0f6f8f; box-shadow: 0 0 60px rgba(0,0,0,.6); }

.screen { position: absolute; inset: 0; display: none; }
.screen.active { display: block; }
.overlay { position: absolute; inset: 0; display: none; z-index: 20; background: rgba(0,0,0,.72);
  align-items: center; justify-content: center; padding: 30px; }
.overlay.active { display: flex; }

/* ---------- loading ---------- */
#scr-loading { background: #0f6f8f; text-align: center; }
.loading-logo { width: 560px; margin-top: 520px; }
.loading-text { font-size: 30px; opacity: .8; }

/* ---------- start ---------- */
#scr-start { background: url(../assets/bg-start.webp) center/cover; }
.start-city { position: absolute; left: 0; bottom: 0; width: 750px; opacity: .55; }
/* Animated lights from the 2017 start screen: vertical sprite sheets stepped at the original 4-5 fps. */
.anim { position: absolute; background-repeat: no-repeat; background-size: 100% calc(var(--n) * 100%);
  animation: sheet var(--d) steps(var(--n)) infinite; pointer-events: none; }
@keyframes sheet { from { background-position: 0 0; } to { background-position: 0 calc(var(--n) * var(--fh) * -1px); } }
.anim-logo { left: 29px; top: 140px; width: 699px; height: 475px; --fh: 475; --n: 6; --d: 1.2s; background-image: url(../assets/anim-logo.webp);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }
.anim-circles { width: 364px; height: 691px; --fh: 691; --n: 5; --d: 1s; background-image: url(../assets/anim-circles.webp); opacity: .7; }
.anim-circles[style*="697"] { --fh: 697; }
.anim-vlights { width: 50px; height: 628px; --fh: 628; --n: 7; --d: 1.4s; background-image: url(../assets/anim-vlights.webp); }
.anim-twinkle { left: 57px; top: 666px; width: 642px; height: 380px; --fh: 380; --n: 4; --d: 1s; background-image: url(../assets/anim-twinkle.webp); }
.anim-sparkle { width: 146px; height: 118px; --fh: 118; --n: 6; --d: 1.2s; background-image: url(../assets/anim-sparkle.webp); }
.start-cove { position: absolute; left: 0; right: 0; bottom: 26px; height: 64px; display: flex; align-items: center; justify-content: center;
  z-index: 2; color: #fff; text-decoration: none; font-size: 30px; text-shadow: 0 3px 0 #000; }
.start-cove img { max-height: 64px; max-width: 360px; }
.start-buttons { position: absolute; left: 0; right: 0; top: 760px; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.start-buttons .img-btn img { width: 360px; }
.start-best { position: absolute; left: 0; right: 0; top: 1150px; text-align: center; font-size: 30px;
  text-shadow: 0 3px 0 #000; margin: 0; }
.start-frame { position: absolute; inset: 0; width: 750px; height: 1334px; pointer-events: none; }
@keyframes bob { 50% { transform: translateX(-50%) translateY(-12px); } }

/* ---------- buttons ---------- */
.img-btn { position: relative; background: none; border: 0; padding: 0; line-height: 0; transition: transform .08s, filter .15s; }
.img-btn:not(:disabled):active { transform: scale(.95); }
.img-btn:disabled { filter: grayscale(.85) brightness(.6); }
.big-btn { background: linear-gradient(#ffe86b, #f2b705); color: #2b1900; border: 4px solid #fff6c4;
  border-radius: 16px; padding: 16px 34px; font-size: 34px; box-shadow: 0 6px 0 #9b6b00, 0 10px 18px rgba(0,0,0,.4); }
.big-btn.alt { background: linear-gradient(#d9e6ea, #9fb6bd); color: #13262c; border-color: #fff; box-shadow: 0 6px 0 #5d7378, 0 10px 18px rgba(0,0,0,.4); }
.big-btn:not(:disabled):active { transform: translateY(4px); box-shadow: 0 2px 0 #9b6b00; }
.big-btn:disabled { opacity: .55; }
.txt-btn { background: rgba(0,0,0,.35); border: 2px solid rgba(255,255,255,.45); border-radius: 12px;
  padding: 10px 22px; font-size: 24px; }

/* ---------- game ---------- */
#scr-game { background: url(../assets/bg-r1.webp) center/cover; }
#scr-game.r2 { background-image: url(../assets/bg-r2.webp); }
#scr-game.r3 { background-image: url(../assets/bg-r3.webp); }
.hud { position: absolute; left: 20px; right: 20px; top: 14px; text-align: center; }
.hud-logo { height: 110px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.4)); }
.hud-row { display: flex; gap: 14px; margin-top: 6px; }
.hud-box { flex: 1; background: #111; border: 4px solid #c9c9c9; border-radius: 12px; padding: 4px 6px 6px;
  box-shadow: inset 0 0 0 3px #555, 0 6px 10px rgba(0,0,0,.35); }
.hud-score { flex: 1.4; }
.hud-label { display: block; font-size: 18px; color: #9fe7ff; letter-spacing: .08em; text-transform: uppercase; }
.hud-val { display: block; font-size: 40px; color: #ffe14d; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hud-val.bump { animation: bump .5s; }
@keyframes bump { 40% { transform: scale(1.25); color: #fff; } }

.machine { position: absolute; left: 22px; right: 22px; top: 238px; background: rgba(0,0,0,.55);
  border: 6px solid #d8d8d8; border-radius: 18px; padding: 14px 12px 12px;
  box-shadow: inset 0 0 0 4px #6e6e6e, 0 10px 24px rgba(0,0,0,.45); }
.reels, .values, .selects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.reel { position: relative; height: 262px; overflow: hidden; border-radius: 12px; background: #1a1915;
  box-shadow: inset 0 10px 16px rgba(0,0,0,.65), inset 0 -10px 16px rgba(0,0,0,.65); }
.reel-strip { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.reel-strip img { display: block; width: 100%; height: 262px; object-fit: cover; }
/* The highest-paying cards after a spin flash; Wilds never highlight. */
.reel.best { animation: bestflash .45s steps(1) infinite; }
@keyframes bestflash { 0% { box-shadow: 0 0 0 6px #ffe14d, 0 0 30px #ffe14d; } 50% { box-shadow: 0 0 0 6px #fff, 0 0 14px #fff6c4; } }
.reel::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 12px;
  background: linear-gradient(rgba(0,0,0,.35), transparent 18%, transparent 82%, rgba(0,0,0,.35)); }
.values { margin-top: 10px; }
.val { height: 54px; border-radius: 10px; background: #062a3a; border: 3px solid #5fd0f0; display: flex;
  align-items: center; justify-content: center; font-size: 30px; color: #ffe14d; font-variant-numeric: tabular-nums; }
.r2 .val { background: #08300f; border-color: #6cf07a; }
.r3 .val { background: #3a0c08; border-color: #f0866c; }
.val.wild { font-size: 22px; color: #fff; }
.selects { margin-top: 8px; }
.sel { position: relative; background: none; border: 0; padding: 0; line-height: 0; }
.sel img { width: 100%; }
.sel:disabled { filter: grayscale(1) brightness(.5); }
.sel:not(:disabled) { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { filter: brightness(1.25); } }

.status { position: absolute; left: 30px; right: 30px; top: 676px; margin: 0; min-height: 76px; text-align: center;
  font-size: 28px; line-height: 1.3; text-shadow: 0 3px 0 rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; }

.risk-row { position: absolute; left: 22px; right: 22px; top: 762px; display: flex; align-items: center; gap: 14px; }
.risk-amt { flex: 1; background: #000; border: 4px solid #c9c9c9; border-radius: 12px; padding: 10px 14px; font-size: 34px;
  color: #fff; text-align: center; }
.risk-amt span { color: #ffe14d; }
.risk-row .img-btn img { width: 180px; }
.reset-btn { flex: none; background: linear-gradient(#ffffff, #b9c6cb); color: #13262c; border: 3px solid #fff; border-radius: 12px;
  padding: 12px 14px; font-size: 22px; box-shadow: 0 4px 0 #5d7378; }
.reset-btn:disabled { opacity: .35; }
.reset-btn:not(:disabled):active { transform: translateY(3px); box-shadow: 0 1px 0 #5d7378; }
.risk-help { position: absolute; left: 22px; right: 22px; top: 846px; margin: 0; text-align: center; font-size: 22px;
  color: #e3f6ff; text-shadow: 0 2px 0 rgba(0,0,0,.6); font-family: Arial, Helvetica, sans-serif; font-weight: 700; }
.spin-btn { position: absolute; left: 50%; top: 890px; transform: translateX(-50%); }
.spin-btn img { width: 460px; }
.spin-btn:not(:disabled):active { transform: translateX(-50%) scale(.96); }

/* Bonus Spin and the token shelf sit in their own boxes so each can get its own treatment. */
.box-label { display: block; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 0 #000; margin-bottom: 8px; }
.bonus-box, .token-box { position: absolute; top: 1006px; height: 160px; border-radius: 18px; padding: 10px 14px; text-align: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.4); }
.bonus-box { left: 22px; width: 300px; background: linear-gradient(#5a1b5e, #2a0a2d); border: 4px solid #e66be0; }
.bonus-box.ready { animation: boxglow 1.2s ease-in-out infinite; }
@keyframes boxglow { 50% { box-shadow: 0 0 0 4px #ffe14d, 0 0 34px #ff6bf0; } }
.bonus-box .img-btn img { width: 260px; }
.token-box { right: 22px; width: 396px; background: linear-gradient(#0c3f57, #062433); border: 4px solid #5fd0f0; }
.tokens { display: flex; gap: 18px; justify-content: center; }
.tok { position: relative; background: none; border: 0; padding: 0; line-height: 0; }
.tok img { width: 100px; }
.tok:disabled { cursor: default; }
.tok.empty .tok-n { background: #555; }
.tok:not(:disabled) img { animation: pulse 1s infinite; }
.tok:not(:disabled) { filter: drop-shadow(0 0 12px #ffe14d); }
.tok-n { position: absolute; right: -6px; top: -8px; min-width: 36px; height: 36px; border-radius: 18px; background: #e8174b;
  border: 3px solid #fff; font-size: 20px; line-height: 30px; text-align: center; }
.game-foot { position: absolute; left: 22px; right: 22px; bottom: 26px; display: flex; justify-content: space-between; }

/* ---------- question ---------- */
.q-card { width: 690px; background: #0b1e27; border: 6px solid #d8d8d8; border-radius: 22px; padding: 22px;
  box-shadow: inset 0 0 0 4px #6e6e6e, 0 20px 50px rgba(0,0,0,.6); }
.q-top { display: flex; align-items: center; gap: 18px; }
.q-tile { width: 96px; height: 154px; object-fit: cover; border-radius: 10px; }
.q-meta { flex: 1; }
.q-cat { font-size: 40px; color: #ffe14d; }
.q-worth, .q-risk { font-size: 24px; font-family: Arial, sans-serif; font-weight: 700; color: #cfefff; }
.q-worth b { color: #7dff8a; font-size: 30px; }
.q-risk b { color: #ff9a8a; }
.q-timer { width: 108px; height: 108px; border-radius: 50%; border: 6px solid #ffe14d; display: flex; align-items: center;
  justify-content: center; font-size: 46px; background: #000; }
.q-timer.low { border-color: #ff4d4d; color: #ff4d4d; animation: pulse .5s infinite; }
.q-bar { height: 12px; margin: 16px 0 8px; background: #233; border-radius: 6px; overflow: hidden; }
.q-bar-fill { height: 100%; width: 100%; background: linear-gradient(90deg, #ff4d4d, #ffe14d 30%, #7dff8a); transform-origin: left; }
.q-text { font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 34px; line-height: 1.3; margin: 18px 4px 22px; min-height: 130px; }
.q-answers { display: grid; gap: 14px; }
.ans { text-align: left; background: #13313f; border: 4px solid #5fd0f0; border-radius: 14px; padding: 16px 20px;
  font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 30px; color: #fff; display: flex; gap: 16px; align-items: center; }
.ans .k { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #5fd0f0; color: #062a3a; display: flex;
  align-items: center; justify-content: center; font-family: "Arial Black", Arial, sans-serif; }
.ans:not(:disabled):hover { background: #1b4558; }
.ans.right { background: #135c1d; border-color: #7dff8a; }
.ans.right .k { background: #7dff8a; }
.ans.wrong { background: #5c1313; border-color: #ff6b6b; }
.ans.wrong .k { background: #ff6b6b; }
.ans:disabled { cursor: default; }
.q-result { margin-top: 18px; text-align: center; }
.q-verdict { font-size: 38px; margin: 6px 0; }
.q-verdict.good { color: #7dff8a; }
.q-verdict.bad { color: #ff7b7b; }
.q-fact { font-family: Arial, sans-serif; font-weight: 700; font-size: 25px; color: #cfefff; margin: 6px 10px 18px; line-height: 1.35; }
.q-report { display: block; margin: 16px auto 0; background: none; border: 0; color: #8fb3c0; font-family: Arial, sans-serif; font-size: 20px; text-decoration: underline; }

/* ---------- panels ---------- */
.panel { width: 680px; max-height: 1260px; overflow: auto; background: #0b1e27; border: 6px solid #d8d8d8; border-radius: 22px;
  padding: 26px 30px; text-align: center; box-shadow: inset 0 0 0 4px #6e6e6e, 0 20px 50px rgba(0,0,0,.6); }
.panel h2 { font-size: 46px; color: #ffe14d; margin: 6px 0 14px; text-shadow: 0 4px 0 #000; }
.panel p, .panel li, .panel td, .panel th, .panel caption { font-family: Arial, Helvetica, sans-serif; font-weight: 700; }
.panel p { font-size: 28px; line-height: 1.35; }
.panel-btns { display: flex; gap: 18px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.choose-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.choose-grid button { background: none; border: 0; padding: 0; line-height: 0; }
.choose-grid img { width: 100%; border-radius: 10px; }
/* contain: paint keeps the spinning square image from resizing the panel (that made the wheel jump about). */
.wheel-panel { overflow: hidden; }
.wheel-wrap { position: relative; width: 539px; height: 539px; margin: 0 auto; contain: paint; }
#wheel { width: 539px; height: 539px; transition: transform 5s cubic-bezier(.12,.68,.16,1); }
.wheel-ptr { position: absolute; left: 50%; top: 0; width: 0; height: 0; transform: translateX(-50%);
  border-left: 26px solid transparent; border-right: 26px solid transparent; border-top: 50px solid #d7ef1c;
  filter: drop-shadow(0 4px 3px rgba(0,0,0,.6)); }
.wheel-msg { min-height: 80px; }
.msg-img { max-width: 520px; display: block; margin: 0 auto 10px; }
.msg-big { font-size: 80px !important; color: #ffe14d; margin: 6px 0 !important; text-shadow: 0 5px 0 #000; font-family: "Arial Black", Arial, sans-serif !important; }
.rules { text-align: left; padding-left: 40px; margin: 0; }
.rules li { font-size: 25px; line-height: 1.38; margin-bottom: 12px; }
.paytable { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 24px; }
.paytable caption { font-size: 22px; color: #9fe7ff; padding-bottom: 8px; }
.paytable th, .paytable td { border: 2px solid #345; padding: 8px 12px; }
.paytable td:last-child { color: #ffe14d; text-align: right; }

/* ---------- ads ---------- */
#ov-break { background: rgba(0,0,0,.9); z-index: 40; }
.brk-box { text-align: center; }
.brk-label { font-family: Arial, sans-serif; font-size: 22px; color: #aaa; letter-spacing: .15em; text-transform: uppercase; }
.brk-slot { width: 600px; height: 500px; margin: 0 auto 26px; border: 4px dashed #777; border-radius: 12px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #999; font-family: Arial, sans-serif; font-size: 34px; }
.brk-small { font-size: 22px; }

.toast { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 60; background: #000c; border: 3px solid #ffe14d;
  border-radius: 14px; padding: 14px 24px; font-size: 26px; max-width: 640px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .anim, .sel:not(:disabled), .tok:not(:disabled) img, .q-timer.low { animation: none; }
  #wheel { transition-duration: .8s; }
}

/* ---------- button animations (frame strips from the 2017 build) ---------- */
/* .on loops while the button is live; .once plays a single press. Frame 0 matches the static image underneath. */
.spr { position: absolute; inset: 0; background-repeat: no-repeat; background-size: 100% calc(var(--n) * 100%);
  pointer-events: none; opacity: 0; }
.spr.on { opacity: 1; animation: spr var(--d) steps(var(--n), jump-none) infinite; }
.spr.once { opacity: 1; animation: spr var(--d) steps(var(--n), jump-none) 1 forwards; }
@keyframes spr { from { background-position: 0 0; } to { background-position: 0 100%; } }
.img-btn:disabled .spr { opacity: 0; animation: none; }
.spr-spin { --n: 24; --d: 1.9s; background-image: url(../assets/spr-spin-loop.webp); }
.spr-start { --n: 27; --d: 5.4s; background-image: url(../assets/spr-start.webp); }
.spr-rules { --n: 16; --d: 3.2s; background-image: url(../assets/spr-rules.webp); }
.spr-risk25 { --n: 4; --d: .57s; background-image: url(../assets/spr-risk25.webp); }
.spr-riskmax { --n: 4; --d: .57s; background-image: url(../assets/spr-riskmax.webp); }
.spr-select { --n: 4; --d: .4s; background-image: url(../assets/spr-select.webp); }
.spr-bonus { --n: 3; --d: .6s; background-image: url(../assets/spr-bonus.webp); }
.spr-marquee { --n: 4; --d: .8s; background-image: url(../assets/spr-marquee.webp); }
.hud-logo-wrap { position: relative; display: inline-block; line-height: 0; }
@media (prefers-reduced-motion: reduce) { .spr.on, .spr.once { animation: none; } }

/* ---------- bug reports (js/bugreport.js) ---------- */
#ov-bug { z-index: 50; }
.bug-panel { text-align: left; }
.bug-panel h2 { text-align: center; }
.bug-panel label { display: block; font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 26px; margin: 0 0 18px; }
.bug-panel input[type=text], .bug-panel input:not([type]), .bug-panel input[name=title], .bug-panel textarea, .bug-panel select {
  display: block; width: 100%; margin-top: 8px; padding: 12px 14px; font: 700 26px Arial, Helvetica, sans-serif;
  color: #fff; background: #13313f; border: 3px solid #5fd0f0; border-radius: 12px; }
.bug-panel textarea { resize: vertical; }
.bug-panel .muted { color: #8fb3c0; font-weight: 400; }
.bug-q { font-size: 24px !important; color: #cfefff; background: #13313f; border-radius: 12px; padding: 12px 16px; margin: 0 0 18px; }
.bug-shot { display: flex !important; flex-wrap: wrap; align-items: center; gap: 12px; }
.bug-shot input { width: 32px; height: 32px; }
.bug-shot img { width: 160px; border: 2px solid #5fd0f0; border-radius: 6px; margin-left: auto; }
.bug-where { font-size: 20px !important; color: #8fb3c0; margin: 0 0 6px; }
.bug-msg { font-size: 22px !important; color: #ffe14d; min-height: 30px; margin: 0; }
.start-bug { position: absolute; right: 34px; top: 30px; z-index: 3; font-size: 20px; padding: 8px 14px; }
.game-foot .txt-btn { font-size: 22px; padding: 10px 16px; }
.q-report[hidden], .bug-shot[hidden] { display: none !important; }

/* ---------- title sign box ---------- */
.start-signbox { position: absolute; left: 57px; top: 666px; width: 642px; height: 380px; background: #000; border-radius: 10px;
  box-shadow: inset 0 0 0 3px #222, 0 12px 30px rgba(0,0,0,.6); }
.start-buttons { top: 735px; }

/* ---------- volume ---------- */
.vol { display: flex; align-items: center; gap: 10px; cursor: default; }
.vol input { width: 150px; accent-color: #ffe14d; }
#vol-n { min-width: 26px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- game-show slams ---------- */
.slam { position: absolute; inset: 0; z-index: 45; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(0,0,0,.35), rgba(0,0,0,.8)); pointer-events: all; }
.slam[hidden] { display: none; }
.slam-burst { position: absolute; width: 1400px; height: 1400px; left: 50%; top: 50%; margin: -700px 0 0 -700px; opacity: .55;
  background: repeating-conic-gradient(rgba(255,225,77,.55) 0 9deg, transparent 9deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 62%); mask: radial-gradient(circle, #000 20%, transparent 62%);
  animation: burst 6s linear infinite; }
@keyframes burst { to { transform: rotate(360deg); } }
.slam-text { position: relative; white-space: pre-line; text-transform: uppercase; font-size: 92px; line-height: 1.02; text-align: center; color: #ffe14d; padding: 0 30px;
  -webkit-text-stroke: 3px #7a2a00; text-shadow: 0 8px 0 #7a2a00, 0 14px 30px rgba(0,0,0,.8); }
.slam-sub { position: relative; margin-top: 18px; font-size: 34px; color: #fff; text-shadow: 0 4px 0 #000; }
.slam.go .slam-text { animation: slamin .45s cubic-bezier(.2,1.6,.4,1) both; }
.slam.go .slam-sub { animation: slamin .45s .18s cubic-bezier(.2,1.6,.4,1) both; }
.slam.go { animation: shake .35s .32s; }
.slam.out { animation: slamout .3s ease-in forwards; }
@keyframes slamin { from { transform: scale(3.2) rotate(-6deg); opacity: 0; } 70% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes shake { 25% { transform: translate(-10px, 6px); } 50% { transform: translate(9px, -6px); } 75% { transform: translate(-5px, 3px); } }
@keyframes slamout { to { opacity: 0; transform: scale(1.15); } }
.slam.last .slam-text { color: #ff5a5a; -webkit-text-stroke-color: #4a0000; text-shadow: 0 8px 0 #4a0000, 0 14px 30px rgba(0,0,0,.8); }
@media (prefers-reduced-motion: reduce) { .slam-burst, .slam.go, .slam.go .slam-text, .slam.go .slam-sub, .reel.best, .bonus-box.ready { animation: none; } }

/* ---------- accounts and leaderboard ---------- */
.start-account { position: absolute; left: 30px; right: 30px; top: 1066px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; z-index: 2; }
.start-account .txt-btn { font-size: 22px; background: rgba(0,0,0,.6); }
.acct-name { width: 100%; text-align: center; font-family: Arial, sans-serif; font-weight: 700; font-size: 24px; text-shadow: 0 2px 0 #000; }
.acct-note { font-size: 22px !important; color: #9fe7ff; text-align: center; margin: 0 0 16px; }
.acct-links { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; }
.link { background: none; border: 0; color: #9fe7ff; text-decoration: underline; font: 700 22px Arial, sans-serif; }
.bug-panel input[type=email], .bug-panel input[type=password] { display: block; width: 100%; margin-top: 8px; padding: 12px 14px;
  font: 700 26px Arial, Helvetica, sans-serif; color: #fff; background: #13313f; border: 3px solid #5fd0f0; border-radius: 12px; }
#ov-account, #ov-board { z-index: 48; }
.board-sub { font-size: 22px !important; color: #9fe7ff; margin: -6px 0 10px; }
.board-list { max-height: 880px; overflow: auto; }
.board { width: 100%; border-collapse: collapse; font: 700 24px Arial, Helvetica, sans-serif; }
.board th { color: #9fe7ff; font-size: 18px; text-transform: uppercase; letter-spacing: .06em; padding: 6px 8px; text-align: left; position: sticky; top: 0; background: #0b1e27; }
.board td { padding: 9px 8px; border-top: 1px solid #234; text-align: left; }
.board td:nth-child(3), .board th:nth-child(3) { text-align: right; color: #ffe14d; }
.board td:first-child { color: #9fe7ff; width: 48px; }
.board tr:nth-child(-n+3) td:first-child { color: #ffe14d; }
.board tr.me td { background: rgba(255,225,77,.15); }
.board-empty { font-size: 24px !important; color: #9fe7ff; padding: 30px 0; }
.go-post { font-size: 24px !important; color: #9fe7ff; }
.go-post .txt-btn { margin-top: 10px; font-size: 22px; }

/* ---------- v1.2: Daily Spin, Jackpot Question, 50/50 lifeline, server games ---------- */
.daily-btn { position: absolute; left: 50%; top: 1062px; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center;
  min-width: 400px; padding: 8px 26px 10px; border-radius: 18px; border: 4px solid #ffe14d; color: #fff; cursor: pointer;
  background: linear-gradient(#7a2fc0, #3d1170); font: 900 34px/1.05 Arial Black, Arial, Helvetica, sans-serif; letter-spacing: .02em;
  text-shadow: 0 3px 0 #1d0638; box-shadow: 0 0 18px rgba(255,225,77,.55), 0 5px 0 #1d0638; animation: dailyglow 1.6s ease-in-out infinite; }
.daily-btn small { font: 700 17px Arial, Helvetica, sans-serif; color: #ffe9a3; letter-spacing: 0; text-shadow: none; margin-top: 4px; }
.daily-btn:active { transform: translateX(-50%) translateY(3px); box-shadow: 0 0 18px rgba(255,225,77,.55), 0 2px 0 #1d0638; }
@keyframes dailyglow { 50% { box-shadow: 0 0 34px rgba(255,225,77,.9), 0 5px 0 #1d0638; } }
.screen.daily .hud-score { box-shadow: 0 0 0 4px #b46cff; }

.jackpot-btn { position: absolute; left: 50%; top: 684px; transform: translateX(-50%); z-index: 3; white-space: nowrap;
  padding: 12px 26px; border-radius: 40px; border: 4px solid #ffe14d; background: linear-gradient(#ffcf3a, #c8780a); color: #3a1d00;
  font: 900 30px Arial Black, Arial, Helvetica, sans-serif; box-shadow: 0 5px 0 #6b3a00, 0 0 22px rgba(255,207,58,.7); animation: pulse 1.1s infinite; }
.jackpot-btn.on { background: linear-gradient(#ff5470, #b0002a); color: #fff; border-color: #fff; text-shadow: 0 2px 0 #500; }
.jackpot-btn:disabled { animation: none; cursor: default; }
.jackpot-btn[hidden] { display: none; }
.jackpot-btn:not([hidden]) ~ .status, #scr-game:has(.jackpot-btn:not([hidden])) .status { visibility: hidden; }

.tokens { gap: 10px; }
.tok img { width: 84px; }
.q-fifty { display: flex; align-items: center; gap: 10px; margin: 14px auto 0; padding: 8px 18px 8px 8px; border-radius: 14px; border: 3px solid #c08cff;
  background: #3d1170; color: #fff; font: 900 24px Arial, Helvetica, sans-serif; position: relative; }
.q-fifty img { width: 52px; }
.q-fifty .tok-n { position: static; }
.q-fifty:disabled { opacity: .45; cursor: default; }
.q-fifty[hidden] { display: none; }
.ans.gone { opacity: .18; visibility: hidden; }
.ans.picked { border-color: #ffe14d; background: #3a3413; }
.q-card.jackpot { border-color: #ffcf3a; box-shadow: 0 0 40px rgba(255,207,58,.6); }

.reel.rolling .reel-strip { animation: reelroll .12s linear infinite; filter: blur(3px); }
@keyframes reelroll { from { transform: translateY(-20px); } to { transform: translateY(20px); } }

.loading-game { position: absolute; inset: 0; z-index: 55; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); }
.loading-game span { background: #0b1e27; border: 4px solid #ffe14d; border-radius: 18px; padding: 22px 34px; font: 900 32px Arial, Helvetica, sans-serif; color: #fff; }
.loading-game[hidden] { display: none; }

.board-tabs { display: flex; gap: 8px; justify-content: center; margin: 4px 0 8px; }
.board-tabs button { font: 700 22px Arial, Helvetica, sans-serif; color: #9fe7ff; background: #13313f; border: 3px solid #2b5566; border-radius: 12px; padding: 8px 16px; }
.board-tabs button.on { color: #062a3a; background: #ffe14d; border-color: #ffe14d; }
@media (prefers-reduced-motion: reduce) { .daily-btn, .jackpot-btn, .reel.rolling .reel-strip { animation: none; } }
.start-account { top: 1168px; }
.start-best { top: 1222px; font-size: 26px; }
#risk-amt { white-space: nowrap; }
.risk-amt { white-space: nowrap; }
.risk-amt.allin { font-size: 24px; color: #ffcf3a; }
/* Title screen bottom, top to bottom: Daily Spin, best score, account row, Cove Games logo. No overlaps. */
.start-best { top: 1150px; font-size: 22px; line-height: 28px; height: 28px; margin: 0; }
.start-account { top: 1184px; flex-wrap: nowrap; gap: 10px; }
.start-account .acct-name { width: auto; font-size: 20px; white-space: nowrap; }
.start-account .txt-btn { font-size: 20px; padding: 7px 12px; white-space: nowrap; }
.start-cove { bottom: 22px; height: 56px; }
.start-cove img { max-height: 56px; }

/* ---------- v1.3: bonus meter, live paytable, Final Round wager, Spin Again prompt ---------- */
#scr-game.r4 { background-image: url(../assets/bg-r3.webp); }
.r4 .val { background: #2d0a3a; border-color: #d08cff; }
#scr-game:not(.final) .final-only, #scr-game.final .normal-only { display: none; }
.pct-btn { flex: none; min-width: 150px; padding: 14px 16px; border-radius: 14px; border: 4px solid #fff6c4; color: #2b1900;
  background: linear-gradient(#ffe86b, #f2b705); font: 900 30px Arial Black, Arial, Helvetica, sans-serif; box-shadow: 0 5px 0 #9b6b00; }
.pct-btn.max { background: linear-gradient(#ff5470, #b0002a); color: #fff; border-color: #fff; box-shadow: 0 5px 0 #5a0016; }
.pct-btn:disabled { filter: grayscale(.85) brightness(.6); }
.pct-btn:not(:disabled):active { transform: translateY(3px); box-shadow: 0 2px 0 #9b6b00; }
.final .risk-amt { font-size: 30px; }
#risk-amt.bump { animation: bump .5s; display: inline-block; }

.respin-ask { position: absolute; left: 22px; right: 22px; top: 670px; height: 86px; z-index: 4; display: flex; align-items: center; gap: 14px;
  padding: 0 14px; border-radius: 18px; background: linear-gradient(#7a2fc0, #3d1170); border: 4px solid #ffe14d;
  box-shadow: 0 0 26px rgba(255,225,77,.7); animation: dailyglow 1.2s ease-in-out infinite; }
.respin-ask span { flex: 1; font-size: 25px; line-height: 1.1; text-shadow: 0 2px 0 #1d0638; }
.respin-ask .big-btn { font-size: 26px; padding: 10px 18px; }
.respin-ask[hidden] { display: none; }

.meter-box, .pay-box { position: absolute; top: 1004px; height: 236px; border-radius: 18px; padding: 10px 14px; text-align: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.4); }
.meter-box { left: 22px; width: 214px; background: linear-gradient(#5a1b5e, #2a0a2d); border: 4px solid #e66be0; }
.meter-box.ready { animation: boxglow 1s ease-in-out infinite; }
.meter-box.boost { border-color: #ffe14d; box-shadow: 0 0 0 3px #ffe14d, 0 0 26px rgba(255,225,77,.7); }
.checks { display: flex; justify-content: center; gap: 12px; margin: 6px 0 10px; }
.chk { position: relative; width: 50px; height: 50px; border-radius: 10px; background: #12051a; border: 4px solid #c78bd0;
  box-shadow: inset 0 3px 6px rgba(0,0,0,.7); }
.chk.on { background: linear-gradient(#7dff8a, #19a92c); border-color: #fff; box-shadow: 0 0 16px #7dff8a; }
.chk.on::after { content: ""; position: absolute; left: 14px; top: 2px; width: 13px; height: 26px; border: solid #fff; border-width: 0 7px 7px 0;
  transform: rotate(40deg); filter: drop-shadow(0 2px 0 #0a5a14); }
.chk.bump { animation: chkpop .6s cubic-bezier(.2,1.8,.4,1); }
@keyframes chkpop { from { transform: scale(2.2) rotate(-20deg); } }
.meter-note { margin: 0; font: 700 21px/1.2 Arial, Helvetica, sans-serif; color: #ffd8fb; }
.meter-box.boost .meter-note { color: #ffe14d; }

.pay-box { right: 22px; width: 486px; background: linear-gradient(#0c3f57, #062433); border: 4px solid #5fd0f0; padding: 10px 12px; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(4, 1fr); gap: 6px 12px; }
.pay-row { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 10px 0 8px; border-radius: 9px;
  background: rgba(0,0,0,.35); transition: background .2s; }
.pay-row.hit { background: #ffe14d; animation: pulse .8s infinite; }
.pay-row.hit .pay-val { color: #2b1900; }
.pay-cards { display: flex; gap: 4px; }
.pay-cards i { width: 20px; height: 30px; border-radius: 4px; background: linear-gradient(#5fd0f0, #1b7fa3); border: 2px solid #fff;
  font: 900 14px/26px Arial Black, Arial, sans-serif; font-style: normal; text-align: center; color: #fff; }
.pay-cards i.w { background: linear-gradient(#e66be0, #7a2fc0); }
.pay-val { font: 900 26px Arial Black, Arial, Helvetica, sans-serif; color: #ffe14d; font-variant-numeric: tabular-nums; }
.pay-val.bump { animation: bump .5s; }
.pay-box.final { background: linear-gradient(#5a1b1b, #2a0808); border-color: #ff7b7b; }
.pay-box.final .pay-grid { display: block; }
.pay-final { margin: 18px 0 0; font: 700 28px Arial, Helvetica, sans-serif; color: #ffd8d8; }
.pay-final b { display: block; font: 900 64px Arial Black, Arial, sans-serif; color: #ffe14d; text-shadow: 0 4px 0 #000; }
.q-card.final { border-color: #ff7b7b; box-shadow: 0 0 40px rgba(255,90,90,.5); }

/* ---------- slams fill the whole window, not just the 750x1334 game area ---------- */
.slam { position: fixed; inset: 0; z-index: 100; overflow: hidden;
  background: radial-gradient(circle, rgba(0,0,0,.4), rgba(0,0,0,.82)); }
.slam.go { animation: none; }
.slam-burst { width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; opacity: .5; -webkit-mask: none; mask: none; }
.slam-inner { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 100vw; }
.slam.go .slam-inner { animation: shake .35s .32s; }
.slam-text { font-size: min(13vw, 13vh); padding: 0 3vw; -webkit-text-stroke: .035em #7a2a00; text-shadow: 0 .08em 0 #7a2a00, 0 .15em .3em rgba(0,0,0,.8); }
.slam-sub { font-size: min(4.6vw, 4.2vh); margin-top: 2vh; padding: 0 4vw; text-align: center; }
.slam.last .slam-text { -webkit-text-stroke-color: #4a0000; text-shadow: 0 .08em 0 #4a0000, 0 .15em .3em rgba(0,0,0,.8); }
.slam.win .slam-text { font-size: min(19vw, 24vh); color: #7dff8a; -webkit-text-stroke-color: #0a4a14; text-shadow: 0 .07em 0 #0a4a14, 0 0 .4em rgba(125,255,138,.6); }
.slam.win .slam-burst { background: repeating-conic-gradient(rgba(125,255,138,.45) 0 9deg, rgba(255,225,77,.35) 9deg 18deg); opacity: .6; }
.slam.bonus .slam-text { color: #ffb8fb; -webkit-text-stroke-color: #4a0a50; text-shadow: 0 .08em 0 #4a0a50, 0 0 .4em rgba(230,107,224,.8); }
.slam.bonus .slam-burst { background: repeating-conic-gradient(rgba(230,107,224,.5) 0 9deg, rgba(255,225,77,.35) 9deg 18deg); opacity: .6; }
.slam-fx { position: absolute; left: 50%; top: 45%; width: 0; height: 0; }
.slam-fx i { position: absolute; left: -.6vmin; top: -1vmin; width: 1.4vmin; height: 2.2vmin; border-radius: 2px; opacity: 0;
  animation: confetti 1.4s cubic-bezier(.15,.7,.4,1) forwards; }
@keyframes confetti { 0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(.4); } 80% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1); } }
@media (prefers-reduced-motion: reduce) { .slam.go .slam-inner, .slam-fx i, .chk.bump, .pay-row.hit, .respin-ask, .meter-box.ready { animation: none; } .slam-fx { display: none; } }

/* ---------- Game Over box: black, chasing marquee lights ---------- */
.msg-panel { position: relative; }
.msg-panel .bulbs { display: none; }
.msg-panel.gameover { background: #000; border: 0; padding: 58px 54px 46px; box-shadow: 0 0 60px rgba(255,225,77,.35), 0 20px 50px rgba(0,0,0,.8);
  border-radius: 26px; }
.msg-panel.gameover .bulbs, .msg-panel.gameover .bulbs::before, .msg-panel.gameover .bulbs::after { position: absolute; inset: 0; border-radius: 26px; pointer-events: none; }
.msg-panel.gameover .bulbs { display: block; padding: 28px; background: #1a1200;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.msg-panel.gameover .bulbs::before, .msg-panel.gameover .bulbs::after { content: ""; background-size: 56px 56px; background-repeat: round; }
.msg-panel.gameover .bulbs::before { background-image: radial-gradient(circle at 25% 25%, #fff6c4 0 5px, #ffe14d 6px 9px, transparent 10px),
  radial-gradient(circle at 75% 75%, #fff6c4 0 5px, #ffe14d 6px 9px, transparent 10px); animation: chase .5s steps(1) infinite; }
.msg-panel.gameover .bulbs::after { background-image: radial-gradient(circle at 75% 25%, #fff6c4 0 5px, #ffe14d 6px 9px, transparent 10px),
  radial-gradient(circle at 25% 75%, #fff6c4 0 5px, #ffe14d 6px 9px, transparent 10px); animation: chase .5s .25s steps(1) infinite; }
@keyframes chase { 0% { opacity: 1; } 50% { opacity: .12; } }
.msg-panel.gameover h2 { font-size: 96px; line-height: 1; margin: 0 0 6px; color: #ff4d4d; -webkit-text-stroke: 3px #4a0000;
  text-shadow: 0 6px 0 #4a0000, 0 0 30px rgba(255,77,77,.7); text-transform: uppercase; }
.msg-panel.gameover .go-why { font-size: 32px; color: #ffe14d; margin: 0; }
.msg-panel.gameover > * { position: relative; }
.msg-panel.gameover > .bulbs { position: absolute; }
@media (prefers-reduced-motion: reduce) { .msg-panel.gameover .bulbs::before, .msg-panel.gameover .bulbs::after { animation: none; } }
.final .risk-row { gap: 10px; }
.final .risk-amt { font-size: 22px; padding: 12px 8px; }
.final .pct-btn { min-width: 112px; padding: 12px 10px; font-size: 26px; }
.slam { background: radial-gradient(circle, rgba(0,0,0,.6), rgba(0,0,0,.9)); }
.slam-text { font-size: min(15vw, 13vh); }
.slam.win .slam-text { font-size: min(26vw, 26vh); }
.msg-panel.gameover h2 { font-size: 78px; white-space: nowrap; }

/* ---------- Show / Hide password ---------- */
.pw-wrap { position: relative; display: block; margin-top: 8px; }
.bug-panel .pw-wrap input[type=password], .bug-panel .pw-wrap input[type=text] { margin-top: 0; padding-right: 110px; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: #0b1e27; color: #9fe7ff;
  border: 2px solid #5fd0f0; border-radius: 10px; padding: 6px 12px; font: 700 20px Arial, Helvetica, sans-serif; }
.pw-eye[aria-pressed=true] { background: #5fd0f0; color: #062a3a; }
