@font-face{font-family:Manrope;src:url(/fonts/Manrope-Variable.ttf) format("truetype");font-weight:200 800;font-display:swap}
@font-face{font-family:Newsreader;src:url(/fonts/Newsreader-Variable.ttf) format("truetype");font-weight:200 800;font-display:swap}
:root{font-family:Manrope,system-ui,sans-serif;color:#202943;background:#fbf6e9;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;background-image:radial-gradient(#d5ccb580 .8px,transparent .9px);background-size:9px 9px;min-height:100vh}
button{font:inherit;cursor:pointer}
[hidden]{display:none!important}
a{color:inherit}
.sheet{max-width:1024px;margin:auto;padding:0 clamp(16px,4vw,46px) 48px}
nav{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 0 14px;border-bottom:2px solid #303956;font-size:.82rem;font-weight:800}
nav a{text-decoration:none} nav a:hover{text-decoration:underline}
header{padding:clamp(18px,4vw,42px) 0 22px}
h1,h2{font-family:Newsreader,Georgia,serif;margin:0;font-weight:750;letter-spacing:-.052em}
h1{font-size:clamp(3.5rem,9vw,6.4rem);line-height:1.03}
h1 em{color:#ce552f;font-style:normal}
header p{font-weight:600;line-height:1.6;margin:2px 0 0}
.board{background:#293f99;color:#fff8e7;border-radius:20px;padding:clamp(16px,3vw,32px);border:2px solid #1e2c65;box-shadow:0 5px 0 #1e2c65;text-align:center}
.scoreline{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #ffffff50;padding-bottom:14px;font-size:.85rem;font-weight:800}
.score{display:inline-flex;gap:7px;align-items:center}
.score b{color:#ffcc65;font-size:1.3rem}
.dots{display:flex;gap:6px}
.dots i{width:9px;height:9px;border:1px solid #d4def7;border-radius:50%}
.dots .current{background:#fff8e7}
.dots .right{background:#ffce68;border-color:#ffce68}
.dots .miss{background:#acb8df}
h2{font-size:clamp(2.4rem,6vw,4.5rem);line-height:1.04;margin:25px 0 1px;overflow-wrap:anywhere}
h2:focus{outline:0}
#listen{border:0;color:#fff9e8;background:transparent;font-size:.85rem;font-weight:700;min-height:40px;text-decoration:underline;text-underline-offset:4px}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(6px,2vw,18px);margin:14px 0 0}
.cards:empty{display:none}
.card{padding:clamp(7px,1.6vw,17px);display:grid;grid-template-rows:1fr auto;align-items:center;border:2px solid #19244e;border-radius:14px;color:#25283c;box-shadow:0 4px 0 #19244e;transition:transform .12s}
.horse{background:#fae1c9}.monad{background:#d2eadc}.monoid{background:#faeab5}
.picture{position:relative;display:block;width:100%;height:clamp(92px,16vw,165px)}
.picture img,.picture svg{position:absolute;inset:0;margin:auto;display:block;width:92%;height:100%;object-fit:contain}
.label{display:block;margin-top:10px;border-top:1px solid #20294342;padding:10px 0 2px;font-weight:800;text-transform:capitalize}
@media(hover:hover){.card:not([aria-disabled]):hover{transform:translateY(-4px)}}
.card[aria-disabled]{cursor:default}
.card.match{outline:4px solid #ffcd63;outline-offset:2px}
.card.wrong .label{text-decoration:line-through}
.response{display:flex;align-items:center;justify-content:center;gap:18px;margin:23px 0 0;min-height:32px;line-height:1.5}
#feedback{font-size:.96rem}
#feedback:has(strong){text-align:left;flex:1}
#next{border:2px solid #19244e;border-radius:9px;background:#ffce68;color:#19244e;font-weight:800;padding:10px 16px;white-space:nowrap}
a:focus-visible,button:focus-visible{outline:3px dashed currentColor;outline-offset:3px}
.card:focus-visible,#next:focus-visible{outline-color:white}
@media(max-width:550px){
  .sheet{padding:0 12px 24px}nav{font-size:.72rem}
  header{padding:22px 3px 17px}header p{font-size:.9rem}
  .board{padding:14px 10px}.dots{gap:3px}.dots i{width:6px;height:6px}
  .scoreline{font-size:.75rem}.card{border-radius:10px}.label{font-size:.74rem}
  .response{flex-direction:column;gap:10px}.response #feedback{text-align:center}
}
@media(prefers-reduced-motion:reduce){.card{transition:none}}
