/* Web game — one question at a time, BS / Arena styling */
body.game { min-height: 100dvh; display: flex; flex-direction: column; overscroll-behavior: none;
  background: radial-gradient(800px 500px at 90% 0%, rgba(254, 131, 107, 0.16), transparent 60%),
              radial-gradient(700px 500px at 0% 100%, rgba(176, 17, 23, 0.22), transparent 60%), var(--ink); }
.g-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; color: var(--white); font-size: 18px; display: grid; place-items: center; }
@media (max-width: 560px) { .hide-xs { display: none !important; } }
.stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 8px 0 36px; }
.screen { width: min(760px, 100%); display: none; }
.screen.on { display: block; animation: screenIn 0.45s cubic-bezier(.2, .8, .2, 1); }
@keyframes screenIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.center { text-align: center; }

/* Start */
.s-start h1 { font-size: clamp(40px, 7.4vw, 72px); margin: 22px 0 16px; }
.s-start .sub { font-size: 20px; color: var(--on-dark-2); margin: 0 0 32px; }
.pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.best-banner { margin-top: 22px; font-weight: 500; color: var(--coral); }
@media (max-width: 560px) { .br-lg { display: none; } }

/* HUD */
.hud { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.qcount { font-size: 16px; color: var(--on-dark-2); white-space: nowrap; }
.qcount b { color: var(--white); font-family: var(--serif); font-size: 24px; }
.dots { display: flex; gap: 8px; margin-top: 8px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); transition: all 0.3s; }
.dots i.done { background: var(--coral); }
.dots i.now { background: var(--white); transform: scale(1.3); }
.timer { position: relative; width: 64px; height: 64px; }
.timer svg { transform: rotate(-90deg); }
.timer .t-bg { stroke: rgba(255, 255, 255, 0.14); }
.timer .t-fg { stroke: var(--coral); stroke-linecap: round; transition: stroke 0.3s; }
.timer.warn .t-fg { stroke: #FF4D57; }
.timer.warn { animation: shake 0.4s infinite; }
.timer span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 19px; }
.vault { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 100px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-dark); }
.vault .lock { width: 34px; height: 34px; border-radius: 50%; background: var(--peach); display: grid; place-items: center; font-size: 15px; }
.vault .meter { width: 90px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.vault .meter i { display: block; height: 100%; width: 0; background: var(--coral); transition: width 0.5s cubic-bezier(.2, .9, .3, 1.2); }
.vault small { display: block; font-size: 12px; color: var(--on-dark-2); margin-bottom: 4px; }
.vault.bump { animation: bump 0.4s; }
@keyframes bump { 40% { transform: scale(1.08); } }

/* Question card: pastel pink panel inside a white rounded border (guideline) */
.qcard { background: var(--peach); color: var(--text); border-radius: 30px; padding: 30px; box-shadow: 0 0 0 8px var(--white), 0 30px 60px rgba(0, 0, 0, 0.35); }
.qcat { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; font-size: 14px; color: var(--burgundy); }
.qtext { font-family: var(--serif); font-weight: 700; font-size: clamp(25px, 4.2vw, 36px); line-height: 1.2; margin: 10px 0 24px; }
.opts { display: grid; gap: 12px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 18px; min-height: 70px; border-radius: 18px; border: 0;
  background: var(--white); color: var(--text); font-size: 18px; font-weight: 500; line-height: 1.3; box-shadow: 0 1px 2px rgba(13, 13, 20, 0.08);
  transition: transform 0.12s, background 0.2s; opacity: 0; animation: optIn 0.4s forwards; -webkit-tap-highlight-color: transparent; }
.opt:nth-child(2) { animation-delay: 0.06s; } .opt:nth-child(3) { animation-delay: 0.12s; } .opt:nth-child(4) { animation-delay: 0.18s; }
@keyframes optIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.opt:hover { background: #FFF7F4; }
.opt:active { transform: scale(0.985); }
.opt .k { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--peach); font-weight: 700; font-size: 15px; }
.opt.picked { background: var(--coral); opacity: 1; animation: picked 0.45s; }
.opt.picked .k { background: var(--ink); color: var(--white); }
.opt.dim { opacity: 0.4 !important; }
.opts.locked .opt { pointer-events: none; }
@keyframes picked { 35% { transform: scale(1.02); } }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.qcard.shake { animation: shake 0.3s 2; }
.toast { position: fixed; left: 50%; top: 44%; transform: translate(-50%, 0); font-family: var(--serif); font-weight: 700; font-size: 32px; pointer-events: none; z-index: 30;
  padding: 10px 24px; border-radius: 100px; background: var(--ink); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); animation: toast 0.9s forwards; white-space: nowrap; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 16px) scale(0.8); } 25% { opacity: 1; transform: translate(-50%, 0) scale(1.04); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -30px) scale(1); } }
.flycoin { position: fixed; z-index: 40; font-size: 24px; pointer-events: none; transition: transform 0.7s cubic-bezier(.5, -0.3, .7, 1), opacity 0.7s; }

/* Complete */
.chest { font-size: 110px; line-height: 1; display: inline-block; animation: chest 1.6s ease-in-out infinite; }
@keyframes chest { 0%, 100% { transform: rotate(0) scale(1); } 20% { transform: rotate(-6deg) scale(1.04); } 40% { transform: rotate(6deg) scale(1.04); } 60% { transform: rotate(-3deg); } }
.s-done h2 { font-size: clamp(38px, 6.6vw, 60px); margin: 20px 0 10px; }
.s-done p { font-size: 20px; color: var(--on-dark-2); margin: 0 0 8px; }
.s-done .ask { color: var(--white); font-weight: 500; margin: 26px 0 24px; }

/* Details — coral form card like the Arena booking form */
.d-title { font-size: clamp(32px, 5vw, 44px); margin: 0 0 8px; }
.d-sub { color: var(--on-dark-2); font-size: 18px; margin: 0; }
.form-card { color: var(--ink); padding: 28px; }
.field { margin-bottom: 16px; text-align: left; }
.field label { display: block; font-weight: 500; font-size: 15px; margin: 0 0 8px 4px; }
.field input { width: 100%; font: inherit; font-size: 19px; padding: 16px 18px; border-radius: 14px; border: 1.5px solid transparent; background: rgba(255, 255, 255, 0.82); color: var(--ink); outline: none; transition: border-color 0.2s, background 0.2s; }
.field input::placeholder { color: #9a8f8a; }
.field input:focus { background: var(--white); border-color: var(--ink); }
.field.err input { border-color: var(--burgundy); background: var(--white); }
.field .msg { color: var(--burgundy); font-weight: 700; font-size: 14px; margin: 6px 0 0 6px; }
.mob { display: flex; gap: 8px; }
.mob span { display: grid; place-items: center; padding: 0 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.82); font-weight: 500; font-size: 18px; }
.fine { color: rgba(13, 13, 20, 0.7); font-size: 13px; margin: 14px 0 0; text-align: center; }

/* Result */
.result { display: grid; gap: 18px; }
.score-hero { text-align: center; padding: 28px 22px; color: var(--text); }
.r-label { font-size: 15px; font-weight: 500; color: var(--burgundy); }
.ring { position: relative; width: 220px; height: 220px; margin: 14px auto 0; }
.ring svg { transform: rotate(-90deg); }
.ring .r-bg { stroke: rgba(13, 13, 20, 0.08); }
.ring .r-fg { stroke: url(#goldGrad); stroke-linecap: round; transition: stroke-dashoffset 1.8s cubic-bezier(.2, .8, .2, 1); }
.ring .num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .num b { font-family: var(--serif); font-size: 76px; line-height: 1; }
.ring .num small { color: var(--muted); font-size: 14px; }
.band-title { font-family: var(--serif); font-size: clamp(26px, 4.6vw, 34px); font-weight: 700; margin: 16px 0 6px; }
.band-msg { color: var(--text-2); font-size: 18px; margin: 0; }
.brag { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.brag span { padding: 7px 14px; border-radius: 100px; background: var(--white); font-weight: 500; font-size: 14px; }
.brag .hot { background: var(--ink); color: var(--white); }
.offer-card { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; padding: 26px; border-radius: 24px; background: var(--coral); color: var(--ink); }
.o-title { font-size: 24px; margin: 14px 0 4px; }
.o-when { color: rgba(13, 13, 20, 0.75); font-weight: 500; }
.o-note { font-weight: 700; margin-top: 6px; color: var(--burgundy); }
.offer-card .price { font-size: 52px; }
.qr-box { background: var(--white); border-radius: 18px; padding: 12px; width: 180px; text-align: center; color: var(--ink); animation: qrglow 2.2s ease-in-out infinite; }
@keyframes qrglow { 50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.35); } }
.qr-box img { display: block; width: 156px; height: 156px; margin: 0 auto; }
.qr-box small { display: block; font-weight: 500; font-size: 13px; margin-top: 6px; }
@media (max-width: 600px) { .offer-card { grid-template-columns: 1fr; text-align: center; } .qr-box { margin: 0 auto; } }
.board-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; }
.board-head b { font-family: var(--serif); font-size: 20px; }
.board-head span { color: var(--on-dark-2); font-size: 14px; }
.row-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.disclaimer { color: var(--on-dark-2); font-size: 12px; text-align: center; }
canvas#fx { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

@media (max-width: 560px) {
  .hud { gap: 8px; }
  .qcount { font-size: 14px; } .qcount b { font-size: 20px; }
  .vault { padding: 5px; gap: 0; } .vault small, .vault .meter { display: none; }
  .timer { transform: scale(0.85); }
  .qcard { padding: 22px 18px; border-radius: 24px; box-shadow: 0 0 0 6px var(--white); }
  .opt { font-size: 16px; min-height: 62px; padding: 14px; }
  .toast { font-size: 24px; }
  .row-btns { grid-template-columns: 1fr; }
}
.ring .num b, .qcount b, .price { font-variant-numeric: lining-nums; }
.ring .num b { color: var(--ink); }
