@font-face {
  font-family: PX;
  src: url(assets/pixel.woff2) format("woff2");
  font-display: swap;
}
:root {
  --red: #FF1210;
  --red-d: #B80B09;
  --ink: #091E23;
  --ink2: #3E4B4F;
  --muted: #5E6A6E;
  --bg: #F5F5F5;
  --paper: var(--bg);
  --card: #FFFFFF;
  --zone: #F3F5F6;
  --line: #DCE0E2;
  --green: #12A15A;
  --gold: #FFC83D;
  --pink: #E0408A;
  --pink-ink: #C2185B;
  --plus: #04C37E;
  --sun: linear-gradient(90deg,#6A2C80 0%,#E0408A 30%,#FF1210 55%,#FFB347 80%,#FFD27A 100%);
  --display: "Arial Black","Arial Bold",Arial,Helvetica,sans-serif;
  --px: "PX",ui-monospace,Menlo,Consolas,"Courier New",monospace;
  --mono: ui-monospace,Menlo,Consolas,"Courier New",monospace;
  --r: 24px;
  --ease: cubic-bezier(.22,.7,.2,1);
  color-scheme: light;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  background-image: linear-gradient(rgba(9,30,35,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(9,30,35,.05) 1px,transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  font: 16px/1.45 Arial,Helvetica,sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent;
}
button,input,textarea { font: inherit; color: inherit; }
button,a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 0; }
button:disabled { cursor: default; }
a { color: inherit; }
h1,h2,h3,p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { max-width: 600px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.site-header { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: block; flex: none; }
.brand img { display: block; height: 26px; width: auto; }
.header-label { margin-left: auto; color: var(--muted); font: 700 10px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.horizon { height: 4px; margin-top: -4px; margin-bottom: 14px; border-radius: 2px; background: var(--sun); }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--ink2); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.red-dot { display: inline-block; flex: none; width: 8px; height: 8px; background: var(--red); border-radius: 1px; }
.intro { position: relative; background: var(--card); border-radius: var(--r); padding: 22px 20px 18px; margin-bottom: 20px; box-shadow: 0 1px 0 rgba(9,30,35,.04); }
.intro-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.intro-top .eyebrow { font-size: 10px; }
.intro-sticker { display: inline-block; flex: none; transform: rotate(-4deg); color: #fff; background: var(--red); border-radius: 8px; padding: 6px 8px; font: 700 10px/1 var(--mono); letter-spacing: .04em; box-shadow: 0 3px 0 rgba(9,30,35,.2); }
.intro h1 { position: relative; max-width: 390px; font: 900 clamp(40px,10vw,54px)/1.02 var(--display); letter-spacing: -.015em; text-transform: uppercase; margin: 18px 0 18px 5px; transform: skewX(-8deg); transform-origin: 0 100%; }
.intro h1>span { color: var(--red); }
.intro h1 svg { position: absolute; left: -2px; bottom: -12px; width: 240px; height: 15px; fill: none; stroke: var(--ink); stroke-width: 4px; stroke-linecap: round; }
.intro-copy { position: relative; max-width: 35em; font-size: 15px; line-height: 1.45; color: var(--ink2); }
.facts { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 18px; }
.facts>span { min-width: 0; display: block; background: var(--bg); border-radius: 14px; padding: 10px 12px; color: var(--ink2); font-size: 12px; line-height: 1.25; }
.facts b { display: block; color: var(--ink); font: 900 24px/1 var(--display); letter-spacing: -.02em; margin-bottom: 4px; }
.link-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; color: var(--muted); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: var(--pink-ink); }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.mode-switch>button { min-width: 0; min-height: 44px; padding: 10px; border-radius: 12px; background: var(--card); color: var(--ink); font-size: 13px; font-weight: 700; display: flex; justify-content: center; align-items: center; gap: 8px; box-shadow: 0 3px 0 rgba(9,30,35,.12); }
.mode-switch>button.selected { background: var(--ink); color: #fff; box-shadow: 0 3px 0 var(--red); }
.mode-switch>button:active { transform: translateY(2px); }
.mode-switch>button:disabled { opacity: .5; }
.mode-count { display: inline-block; font: 700 10px/1 var(--mono); padding: 3px 5px; border-radius: 5px; background: var(--zone); color: var(--muted); }
.arena { position: relative; min-width: 0; background: var(--card); border-radius: var(--r); padding: 22px 20px 18px; box-shadow: 0 1px 0 rgba(9,30,35,.04); }
.loading { padding: 55px 10px; text-align: center; color: var(--muted); }
.case-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.case-number { display: inline-block; padding: 5px 7px 4px; border-radius: 6px; background: var(--ink); color: #fff; font: 700 10px/1.2 var(--mono); letter-spacing: .04em; }
.case-date { color: var(--muted); font-size: 11px; }
.game-title { font: 900 28px/1.05 var(--display); text-transform: uppercase; letter-spacing: -.015em; margin: 16px 0 8px; }
.game-subtitle { font-size: 13px; line-height: 1.45; color: var(--muted); }
.attempt-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 22px 0 18px; }
.attempt-caption { color: var(--muted); font: 700 10px/1.4 var(--mono); text-transform: uppercase; }
.attempt-caption b { font-size: 14px; color: var(--ink); }
.attempts { display: flex; gap: 5px; }
.attempts>span { width: 23px; height: 8px; border-radius: 2px; background: var(--line); }
.attempts>span.current { background: var(--ink); }
.attempts>span.missed { background: var(--red); }
.attempts>span.skip { background: var(--gold); }
.review-card { position: relative; margin-left: 7px; border-radius: 18px 18px 18px 6px; background: var(--zone); padding: 16px 18px; min-height: 160px; box-shadow: 0 3px 0 rgba(9,30,35,.1); display: flex; flex-direction: column; }
.review-card::before { content: ""; position: absolute; left: -7px; bottom: 0; width: 14px; height: 14px; background: var(--zone); clip-path: polygon(100% 0,100% 100%,0 100%); }
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.review-label { color: var(--pink-ink); font: 700 10px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.review-origin { color: var(--muted); font: 700 10px/1.4 var(--mono); letter-spacing: .04em; }
.review-text { font-size: 19px; line-height: 1.4; margin: 14px 0 16px; }
.compact-quote .review-text { font-size: 24px; font-weight: 700; }
.review-bottom { margin-top: auto; font-size: 11px; color: var(--muted); }
.review-tabs { display: flex; align-items: center; gap: 7px; margin-top: 17px; }
.review-tabs>button { flex: 1 1 0; min-width: 0; height: 44px; display: grid; place-items: center; border-radius: 8px; background: var(--zone); color: var(--ink); font: 700 11px/1 var(--mono); box-shadow: 0 2px 0 var(--line); }
.review-tabs>button.active { background: var(--ink); color: #fff; box-shadow: 0 2px 0 var(--pink); }
.review-tabs>button:disabled { color: #859196; box-shadow: none; }
.lock-icon { display: block; position: relative; width: 8px; height: 7px; margin-top: 4px; border: 1px solid currentColor; border-radius: 1px; }
.lock-icon::before { content: ""; position: absolute; left: 1px; top: -5px; width: 4px; height: 5px; border: 1px solid currentColor; border-radius: 3px 3px 0 0; }
.feedback { padding-top: 12px; min-height: 28px; color: var(--pink-ink); font-size: 12px; line-height: 1.4; }
.answer-label { display: inline-block; margin-top: 7px; font-size: 14px; font-weight: 700; }
.input-row { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 2px solid #C5CDD0; border-radius: 12px; background: #fff; }
.input-row:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.search-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.input-row input { width: 100%; min-width: 0; height: 48px; border: 0; background: transparent; outline: none; font-size: 16px; }
.input-row input:focus-visible { outline: none; }
.input-row input::placeholder { color: #7C878B; }
.input-row input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.clear-search { flex: none; width: 44px; height: 44px; margin-right: -10px; background: none; font-size: 23px; color: var(--muted); padding: 0; }
.search-wrap { position: relative; margin-top: 8px; }
.dropdown { position: absolute; z-index: 10; top: calc(100% + 7px); left: 0; right: 0; overflow: hidden; background: #fff; border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 5px 0 rgba(9,30,35,.18); }
.dropdown-head { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; background: var(--ink); color: #fff; font: 700 10px/1.4 var(--mono); }
.options { max-height: 240px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.option { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 53px; padding: 10px 12px; border-top: 1px solid #ECEFF0; cursor: pointer; }
.option-name { min-width: 0; overflow-wrap: anywhere; font-size: 13px; line-height: 1.4; }
.option small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.option-arrow { flex: none; color: var(--pink-ink); font-size: 18px; }
.option:hover { background: #FFF1F6; }
.option.active { background: #FFF1F6; box-shadow: inset 4px 0 0 var(--red); }
.option.used { opacity: .5; cursor: default; }
.option.used .option-arrow { font-size: 10px; }
.empty-search { padding: 18px 14px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.selection-note { min-height: 16px; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.answer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 5px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 18px; border: 0; border-radius: 16px; font-size: 15px; font-weight: 700; transition: transform .1s var(--ease),box-shadow .1s var(--ease),background-color .2s; }
.primary { background: var(--red); color: #fff; box-shadow: 0 5px 0 var(--red-d); }
.primary:not(:disabled):hover { background: #E7100E; }
.primary:not(:disabled):active { transform: translateY(4px); box-shadow: 0 1px 0 var(--red-d); }
.primary>span { font-size: 22px; font-weight: 400; line-height: 1; }
.primary:disabled { background: #DCE0E2; color: var(--ink2); box-shadow: 0 5px 0 #BCC4C7; }
.secondary,.skip-button { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink),0 5px 0 var(--ink); }
.secondary:not(:disabled):active,.skip-button:active { transform: translateY(4px); box-shadow: inset 0 0 0 2px var(--ink),0 1px 0 var(--ink); }
.skip-button { flex-direction: column; gap: 3px; font-size: 13px; }
.skip-button small { color: var(--muted); font-weight: 400; font-size: 11px; white-space: nowrap; }
.game-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 12px; }
.giveup { display: inline-flex; align-items: center; padding: 0; background: none; color: var(--muted); font-size: 11px; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.history,.all-reviews { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 13px; }
.history>summary,.all-reviews>summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.history-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.history-list li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.history-mark { flex: none; display: grid; place-items: center; width: 19px; height: 19px; color: #8A1210; background: #FFF1F0; border-radius: 5px; font-size: 14px; }
.history-mark.skip { color: #6E4E00; background: #FFF3D3; }
.history-mark.correct { color: #0B5C34; background: #DDF2E5; }
.under-game { display: flex; justify-content: flex-end; align-items: center; gap: 20px; padding: 4px 2px 0; }
.under-game .link-button { white-space: nowrap; }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-top: 22px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 11px; line-height: 1.5; }
.footer-cross { color: var(--pink-ink); margin: 0 4px; }
.footer a { text-underline-offset: 3px; }
.storage-notice { background: #FFF3D3; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; color: #6E4E00; font-size: 12px; line-height: 1.5; }
.arena.is-result { color: #fff; background: var(--ink); }
.is-result .case-number { padding: 0; color: #C8D5D9; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.result-stamp { display: inline-block; background: var(--gold); color: var(--ink); border-radius: 8px; padding: 7px 8px; transform: rotate(-4deg); box-shadow: 0 3px 0 #000; font: 700 10px/1.2 var(--mono); text-align: center; }
.result-stamp.lost { background: #DCE0E2; }
.result-title { color: #fff; font: 900 36px/1.05 var(--display); letter-spacing: -.015em; margin: 21px 0 12px; text-shadow: 3px 3px 0 var(--pink); }
.is-result .game-subtitle { color: #C8D5D9; }
.is-result .result-answer { font-size: 18px; font-weight: 700; color: #fff; }
.review-source-link { display: block; padding: 12px 0; color: #FFA5CE; font-size: 11px; line-height: 1.5; text-underline-offset: 3px; overflow-wrap: anywhere; }
.source-block p+p { margin-top: 10px; }
.product-reveal { display: grid; grid-template-columns: 125px minmax(0,1fr); align-items: center; gap: 20px; background: var(--card); color: var(--ink); border-radius: 18px; padding: 18px; margin: 22px 0 16px; }
.product-photo { height: 155px; display: flex; align-items: center; justify-content: center; }
.product-photo img { width: 100%; height: 100%; object-fit: contain; }
.photo-fallback { color: var(--muted); font-size: 12px; text-align: center; }
.product-info>.eyebrow { color: var(--pink-ink); font: 700 10px/1.3 var(--mono); }
.product-info h3 { font: 900 21px/1.15 var(--display); text-transform: uppercase; margin: 9px 0 7px; overflow-wrap: anywhere; }
.product-detail { color: var(--muted); font-size: 12px; line-height: 1.5; }
.product-info a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; color: var(--muted); font-size: 11px; text-underline-offset: 3px; }
.receipt-score { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 0; }
.receipt-score>span { color: #C8D5D9; font: 700 10px/1.6 var(--mono); text-transform: uppercase; }
.receipt-score b { font: 400 48px/1.1 var(--px); letter-spacing: -.07em; background: var(--sun); background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.receipt-score b small { display: inline-block; margin-left: 5px; color: #C8D5D9; -webkit-text-fill-color: #C8D5D9; font: 14px Arial,sans-serif; letter-spacing: 0; }
.share-squares { display: inline-block; margin-top: 6px; font-size: 21px; letter-spacing: 2px; white-space: nowrap; }
.result-note { background: rgba(255,255,255,.08); color: #DCE3E5; border-radius: 14px; padding: 12px 14px; margin: 8px 0 20px; font-size: 13px; line-height: 1.5; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 10px; }
.result-actions .button { font-size: 14px; padding: 12px; }
.is-result .secondary { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff,0 5px 0 #000; }
.is-result .secondary:active { box-shadow: inset 0 0 0 2px #fff,0 1px 0 #000; }
.next-daily,.deck-note { color: #9AA4A8; font-size: 12px; line-height: 1.6; margin-top: 19px; }
.is-result .history,.is-result .all-reviews { border-color: #34474C; }
.is-result .history>summary,.is-result .all-reviews>summary,.is-result .history-list li { color: #C8D5D9; }
.is-result .history-mark { background: rgba(255,255,255,.08); color: #FFACA9; }
.is-result .history-mark.skip { color: var(--gold); }
.is-result .history-mark.correct { color: var(--plus); }
.all-reviews ol { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.all-reviews li { background: rgba(255,255,255,.08); color: #DCE3E5; border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.5; }
.all-reviews li>span { display: block; color: #F394BF; font: 700 10px/1.3 var(--mono); margin-bottom: 6px; }
.result-data-note { color: #9AA4A8; font-size: 11px; line-height: 1.6; margin-top: 17px; }
.modal { position: fixed; border: 0; border-radius: var(--r); background: var(--card); color: var(--ink); width: calc(100% - 32px); max-width: 560px; max-height: 86svh; padding: 28px 24px; overflow: auto; }
.modal::backdrop { background: rgba(9,30,35,.42); }
.close-button { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 12px; background: var(--bg); font-size: 23px; }
.modal .eyebrow { padding-right: 40px; font-size: 10px; color: var(--pink-ink); }
.modal h2 { font: 900 26px/1.05 var(--display); text-transform: uppercase; letter-spacing: -.015em; margin: 17px 35px 22px 0; }
.rules { padding-left: 22px; margin: 0; display: grid; gap: 14px; font-size: 14px; line-height: 1.6; color: var(--ink2); }
.rules strong { color: var(--ink); }
.rules li::marker { color: var(--pink-ink); font: 700 14px var(--mono); }
.modal-note { background: var(--bg); border-radius: 14px; padding: 13px 14px; margin: 20px 0 15px; font-size: 13px; line-height: 1.6; }
.source-disclaimer { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 16px 0 23px; }
.modal>.button { width: 100%; margin-bottom: 5px; }
.source-block { border-top: 1px solid var(--line); padding-top: 16px; }
.source-tag { font: 700 10px/1.3 var(--mono); color: var(--pink-ink); }
.source-block p { color: var(--ink2); font-size: 13px; line-height: 1.6; margin: 8px 0 18px; }
.small-modal { max-width: 450px; }
.small-modal>p:not(.eyebrow) { color: var(--ink2); font-size: 13px; line-height: 1.6; }
.confirm-actions { display: flex; gap: 12px; margin: 24px 0 6px; }
.confirm-actions .button { flex: 1; font-size: 13px; padding: 12px; }
.small-modal textarea { display: block; width: 100%; margin-bottom: 16px; resize: vertical; border: 2px solid var(--ink); border-radius: 12px; background: var(--zone); padding: 12px; font-size: 14px; line-height: 1.8; }
#copy-status { min-height: 18px; margin-top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -70px; background: var(--ink); color: white; padding: 15px; z-index: 20; }
.skip-link:focus { top: 8px; }
.review-card:focus,#result-title:focus { outline: none; }
.noscript { padding: 24px; text-align: center; }
@media (max-width:600px) {
  .intro { padding: 16px; margin-bottom: 14px; }
  .intro h1 { font-size: clamp(32px,9vw,44px); margin: 12px 0 14px 4px; }
  .facts { margin-top: 12px; }
  .modal { inset: auto 0 0; margin: 0; width: 100%; max-width: none; border-radius: var(--r) var(--r) 0 0; padding: 26px 22px calc(24px + env(safe-area-inset-bottom)); }
}
@media (max-width:420px) {
  .intro-top .eyebrow { letter-spacing: .05em; }
  .intro-sticker { padding: 6px; }
  .intro h1 svg { width: 198px; }
  .intro-copy { font-size: 14px; }
  .facts>span { padding: 10px; font-size: 11px; }
  .facts b { font-size: 23px; }
  .arena { padding: 20px 16px 17px; }
  .game-title { font-size: 26px; }
  .game-subtitle { font-size: 12px; }
  .attempts { gap: 4px; }
  .attempts>span { width: 19px; }
  .review-card { padding: 14px; }
  .review-text { font-size: 18px; }
  .review-tabs { gap: 6px; }
  .button { font-size: 13px; padding: 12px; }
  .answer-actions { grid-template-columns: 1fr; }
  .skip-button { font-size: 12px; }
  .result-title { font-size: 31px; }
  .result-stamp { padding: 6px; }
  .product-reveal { grid-template-columns: 95px minmax(0,1fr); padding: 14px; gap: 14px; }
  .product-photo { height: 130px; }
  .product-info h3 { font-size: 18px; }
  .receipt-score b { font-size: 41px; }
  .share-squares { font-size: 18px; letter-spacing: 1px; }
  .result-actions { gap: 12px; }
  .result-actions .button { font-size: 12px; }
}
@media (max-width:350px) {
  .header-label { display: none; }
  .attempts>span { width: 16px; }
  .review-tabs { gap: 4px; }
  .result-actions { grid-template-columns: 1fr; }
  .button { min-height: 48px; }
  .product-reveal { grid-template-columns: 80px minmax(0,1fr); padding: 12px; gap: 10px; }
  .product-info h3 { font-size: 16px; }
  .product-photo { height: 115px; }
  .result-title { font-size: 29px; }
}
@media (min-width:960px) {
  .wrap { max-width: 1040px; }
  .layout { display: grid; grid-template-columns: minmax(0,1fr) 560px; gap: 24px; align-items: start; }
  .intro { position: sticky; top: 16px; margin-bottom: 0; }
  .intro h1 { font-size: 48px; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
