/* The arcade layer every boredprof game shares: title screen, countdown, HUD, score pops, combo, shake, timer bar, results, confetti.
   Games 20261117 (Matt, Nov 17: "i was expecting more arcade shit ... make the person type it out"). Loaded after games.css. */
.arcade { --pop: #ffd43b; }

/* ---------- title screen ---------- */
.a-title { text-align: center; padding: 18px 0 8px; }
.a-title .kicker { display: inline-flex; align-items: center; gap: 10px; border: 1px solid #2a2a2e; border-radius: 999px; padding: 8px 16px; color: #e8e6e1; font-weight: 600; font-size: 15px; }
.a-title .kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.a-title h1 { font-size: clamp(52px, 12vw, 112px); font-weight: 800; line-height: .94; letter-spacing: -.05em; margin: 18px 0 14px; text-transform: none; }
.a-title h1 em { font-style: normal; color: var(--red); }
.a-title .sub { color: #b6b5b0; font-size: clamp(17px, 2.6vw, 22px); font-weight: 500; letter-spacing: -.01em; max-width: 620px; margin: 0 auto 26px; }
.a-title .best { color: var(--green); font-weight: 800; margin: 10px 0 0; min-height: 22px; }
.a-play { min-width: 240px; min-height: 60px; font-size: 19px; border-radius: 18px; }
.a-how { color: var(--muted); font-size: 14px; margin-top: 12px; }
.a-how kbd { border: 1px solid #2c2c31; border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; font: 700 12px var(--sys); color: var(--text); }

/* ---------- countdown ---------- */
.a-count { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 5; }
.a-count b { font: 800 clamp(90px, 22vw, 200px)/1 var(--sys); letter-spacing: -.04em; color: #fff; text-shadow: 0 0 40px #ff464699, 0 6px 0 #00000088; animation: a-countin .55s cubic-bezier(.2, 1.6, .4, 1) both; }
.a-count b.go { color: var(--red); }
@keyframes a-countin { from { transform: scale(2.2); opacity: 0; } 60% { opacity: 1; } to { transform: scale(1); opacity: 1; } }

/* ---------- HUD ---------- */
.a-hud { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 2px 0 10px; font-weight: 800; }
.a-hud .l { justify-self: start; display: flex; align-items: center; gap: 10px; color: #8a8a90; font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.a-hud .r { justify-self: end; display: flex; align-items: center; gap: 12px; }
.a-score { text-align: center; line-height: 1; }
.a-score .pts { font-size: clamp(26px, 5vw, 38px); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.a-score .mult { display: block; height: 18px; margin-top: 3px; font-size: 14px; color: var(--pop); letter-spacing: .08em; transition: transform .15s; }
.a-score .mult.hot { color: #ff8a3c; text-shadow: 0 0 12px #ff8a3c88; }
.a-clock { font-size: 22px; font-variant-numeric: tabular-nums; }
.a-lives { font-size: 20px; letter-spacing: 2px; }
.a-lives .gone { opacity: .2; }
.a-bars { display: flex; gap: 5px; }
.a-bars i { width: 26px; height: 6px; border-radius: 3px; background: var(--line-2); }
.a-bars i.on { background: var(--red); box-shadow: 0 0 10px #ff464688; }
.a-bars i.past { background: var(--soft); }
.a-timebar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: -4px 0 10px; }
.a-timebar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--red), #ffb84a); transform-origin: left; }

/* ---------- juice ---------- */
.a-stage { position: relative; }
.a-pop { position: absolute; z-index: 6; pointer-events: none; font: 800 26px var(--sys); color: var(--pop); text-shadow: 0 3px 0 #0009; animation: a-float .9s ease-out forwards; white-space: nowrap; translate: -50% 0; }
.a-pop.big { font-size: 36px; color: #ff8a3c; }
.a-pop.bad { color: #ff6b6b; font-size: 22px; }
@keyframes a-float { from { transform: translateY(0) scale(.6); opacity: 0; } 15% { transform: translateY(-8px) scale(1.15); opacity: 1; } to { transform: translateY(-70px) scale(1); opacity: 0; } }
.a-shake { animation: a-shake .32s; }
@keyframes a-shake { 15% { translate: -9px 2px; } 30% { translate: 8px -2px; } 45% { translate: -6px 1px; } 60% { translate: 5px 0; } 80% { translate: -2px 0; } }
.a-flash { animation: a-flash .35s; }
@keyframes a-flash { 0% { box-shadow: inset 0 0 0 999px #ff464633; } 100% { box-shadow: inset 0 0 0 999px #ff464600; } }
.a-good { animation: a-good .35s; }
@keyframes a-good { 0% { box-shadow: inset 0 0 0 999px #72e87222; } 100% { box-shadow: inset 0 0 0 999px #72e87200; } }
.a-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.a-confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: a-fall linear forwards; }
@keyframes a-fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- results ---------- */
.a-results { text-align: center; padding: 10px 0 0; }
.a-results .label { color: #8a8a90; font-weight: 700; letter-spacing: .04em; font-size: 15px; } /* (not uppercased: "Na⁺" would read "NA⁺") */
.a-results .big { font: 800 clamp(60px, 14vw, 120px)/1 var(--sys); letter-spacing: -.05em; margin: 6px 0 4px; }
.a-results .newbest { display: inline-block; margin: 6px 0 4px; padding: 6px 14px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; font-size: 14px; animation: a-countin .5s both; }
.a-results .stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 14px 0 18px; }
.a-results .stats div { min-width: 104px; padding: 12px 14px; border: 1px solid #1f1f23; border-radius: 14px; background: #0f0f11; }
.a-results .stats b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.a-results .stats span { color: #8a8a90; font-size: 12px; letter-spacing: .06em; font-weight: 600; } /* (case as written: "ATP" stays ATP) */
.a-results .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 0 16px; }

/* ---------- a start screen like a good game portal's: a live hero (the game playing itself), a pill, a huge two-tone title, flat buttons ---------- */
.pillnav { border: 1px solid #2a2a2e; border-radius: 999px; padding: 7px 15px; color: #d6d4cf !important; font-size: 14px; font-weight: 600; }
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 0 36px; }
.hero-board { width: min(100%, 680px); aspect-ratio: 16 / 9; }
.hero-board .board { background: transparent; }
.hero-demo { display: flex; align-items: center; gap: 12px; margin: 4px 0 2px; color: #8a8a90; font: 700 13px var(--sys); letter-spacing: .2em; text-transform: uppercase; }
.hd-bars { display: flex; gap: 5px; }
.hd-bars i { width: 22px; height: 4px; border-radius: 2px; background: #2a2a2e; }
.hd-bars i.on { background: var(--red); }
.hero-word { font: 800 clamp(36px, 8.4vw, 66px)/1.12 var(--sys); letter-spacing: -.025em; color: var(--red); min-height: 1.25em; margin: 0 0 24px; white-space: nowrap; }
.hero-word .rest { color: #34343a; }
.hero-word .caret { display: inline-block; width: 3px; height: .86em; margin: 0 1px; vertical-align: -.06em; background: var(--red); border-radius: 2px; animation: caret 1s steps(2, start) infinite; }
.pill { display: inline-flex; align-items: center; gap: 10px; border: 1px solid #2a2a2e; border-radius: 999px; padding: 9px 17px; color: #e8e6e1; font: 600 15px var(--sys); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.mega { font: 800 clamp(54px, 12.4vw, 116px)/.94 var(--sys); letter-spacing: -.05em; margin: 20px 0 14px; }
.mega em { font-style: normal; color: var(--red); }
.lead { color: #b6b5b0; font: 500 clamp(17px, 2.6vw, 22px)/1.4 var(--sys); letter-spacing: -.01em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: min(100%, 580px); }
.btn-pri, .btn-sec { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 0 28px; border-radius: 18px; font: 650 19px var(--sys); letter-spacing: -.01em; cursor: pointer; transition: transform .12s, background .15s, border-color .15s; }
.btn-pri { flex: 1.4 1 200px; background: #f2f0ea; color: #0a0a0b; border: 0; }
.btn-pri:hover { background: #fff; }
.btn-pri:active, .btn-sec:active { transform: scale(.98); }
.btn-sec { flex: 1 1 180px; background: #111113; color: #f2f0ea; border: 1px solid #2c2c31; }
.btn-sec:hover { border-color: #46464d; }
.btn-sec.small { flex: none; min-height: 50px; padding: 0 22px; margin-top: 18px; font-size: 16px; }
.btn-sec .chev { display: inline-block; width: 14px; height: 14px; transition: transform .2s; }
.btn-sec[aria-expanded="true"] .chev { transform: rotate(180deg); }
.hero .best { color: #8a8a90; font: 600 14px var(--sys); margin: 14px 0 0; min-height: 18px; }

.mega.long { font-size: clamp(36px, 9.6vw, 96px); line-height: .98; }
@media (max-width: 700px) {
  .mega { margin: 14px 0 10px; }
  .lead { margin: 0 0 20px; font-size: 16px; }
  .hero { padding-bottom: 24px; }
  .hero-board { width: 100%; }
  .cta { flex-direction: column; width: 100%; }
  .btn-pri, .btn-sec { width: 100%; flex: none; }
  .hero-word { white-space: normal; }
}
@media (max-width: 700px) {
  .a-hud { margin-bottom: 8px; }
  .a-hud .l { font-size: 11px; gap: 6px; }
  .a-bars i { width: 16px; }
  .a-clock { font-size: 18px; }
  .a-play { min-width: 200px; }
}
@media (prefers-reduced-motion: reduce) { .a-shake, .a-flash, .a-good { animation: none; } .a-pop { animation-duration: .01s; } }
