:root {
  --tomato: #C8452B;
  --mustard: #E9B23C;
  --cream: #FFF4DF;
  --brown: #2F1B12;
  --olive: #55602B;
  --wood: #7A4A2A;
  --line: #D9C49D;
  --display: 'Bowlby One', Impact, sans-serif;
  --body: 'Karla', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--brown); font: 18px/1.5 var(--body); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--tomato); }
.page { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; display: grid; gap: 28px; }
.brand { font-family: var(--display); color: var(--tomato); font-size: 20px; text-decoration: none; }
.hero h1 { font-size: clamp(42px, 9vw, 72px); color: var(--tomato); }
.hero p { margin-top: 14px; font-size: 21px; }
.sample { background: var(--brown); color: var(--cream); padding: 20px; font-size: clamp(20px, 4vw, 28px); font-family: var(--display); line-height: 1.2; }
.steps { display: grid; gap: 8px; padding-left: 22px; margin: 0; }
form, .stack { display: grid; gap: 16px; }
label { font-weight: 700; display: block; margin-bottom: 4px; }
input, textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--brown); background: #fff; color: var(--brown); font: 18px var(--body); border-radius: 0; }
textarea { min-height: 80px; }
select { min-height: 44px; border: 2px solid var(--brown); background: #fff; color: var(--brown); font: 16px var(--body); max-width: 220px; }
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--olive); outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 22px; border: 2px solid var(--brown); background: var(--tomato); color: #fff; font: 20px var(--display); text-decoration: none; cursor: pointer; }
.btn.line { background: transparent; color: var(--brown); font: 700 18px var(--body); }
.btn.small { min-height: 44px; padding: 6px 12px; font: 700 16px var(--body); background: transparent; color: var(--brown); }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hint { font-size: 15px; color: #5C4636; }
.error { color: #A62A14; font-weight: 700; }
.card { border-top: 3px solid var(--brown); padding-top: 16px; display: grid; gap: 12px; }
.answer { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.answer.hidden-answer span:first-child { text-decoration: line-through; opacity: .6; }
.answer small { color: #5C4636; }
.share { display: flex; gap: 8px; }
.share input { flex: 1; min-width: 0; }

/* The game is played on a TV, read from across a room. */
.tv { min-height: 100vh; background: var(--wood); color: var(--cream); padding: 2.2vh 3vw; display: grid; grid-template-rows: auto auto 1fr auto; gap: 2vh; }
.tv-top { display: flex; justify-content: space-between; align-items: center; gap: 3vw; }
.team { padding: 1vh 2vw; background: var(--brown); min-width: 18vw; text-align: center; border: 4px solid transparent; }
.team.on { border-color: var(--mustard); }
.team b { display: block; font: 400 clamp(18px, 2.2vw, 34px) var(--display); }
.team span { font: 400 clamp(32px, 5vw, 76px) var(--display); color: var(--mustard); line-height: 1; }
.strikes { font: 400 clamp(36px, 6vw, 88px) var(--display); color: var(--tomato); min-height: 1.1em; text-align: center; letter-spacing: .1em; }
.question { font: 400 clamp(26px, 4.4vw, 68px) var(--display); text-align: center; text-wrap: balance; line-height: 1.12; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6vh 1.6vw; align-content: center; }
.tile { min-height: 11vh; border: 3px solid var(--brown); background: var(--mustard); color: var(--brown); font: 400 clamp(18px, 3vw, 46px) var(--display); display: flex; justify-content: center; align-items: center; gap: 1em; padding: .4em .7em; cursor: pointer; }
.tile[aria-pressed='true'] { background: var(--cream); justify-content: space-between; cursor: default; text-align: left; }
.tile em { font-style: normal; color: var(--tomato); }
.controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.controls .btn { background: var(--brown); color: var(--cream); border-color: var(--cream); }
.controls .btn.wrong { background: var(--tomato); }
.champion { min-height: 100vh; background: var(--wood); display: grid; place-items: center; padding: 3vh 3vw; }
.certificate { max-width: 900px; width: 100%; background: var(--cream); color: var(--brown); border: 10px double var(--tomato); padding: clamp(20px, 5vw, 56px); text-align: center; display: grid; gap: 14px; }
.certificate h1 { color: var(--tomato); font-size: clamp(34px, 7vw, 72px); }
.certificate .winner { font: 400 clamp(32px, 7vw, 76px) var(--display); }
@media (max-width: 500px) { .tiles { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) { .tile { transition: background-color .2s; } }
.certificate-actions { justify-content: center; }
