/* SheepleDog: cream paper, meadow green, charcoal ink; colours sampled from the illustrations.
   Fonts from Fontshare: Chubbo (display) + General Sans (text). Light theme only for now.
   Shape language: hand-cut, uneven corners and hard offset shadows (like printed stickers),
   panels with a fringe of grass along the top. Deliberately no smooth uniform pills. */
:root {
  --paper: #f7f1e1;
  --paper-2: #fffaf0;
  --ink: #2d2a26;
  --muted: #7a7262;
  --line: #ddd3bb;
  --meadow: #355e2b;
  --meadow-dark: #22401b;
  --grass: #8cc152;
  --grass-mid: #6fa83f;
  --grass-dark: #5f8f2f;
  --wool: #f3ead2;
  --red: #e5573b;
  --red-dark: #a83a22;
  --bad: #c2412a;
  /* tier colours: deep meadow (whole flock) down to pale (one stray) */
  --stampede: #355e2b;
  --herd: #5f8f2f;
  --flock: #8cc152;
  --handful: #c7d98f;
  --lone-wolf: #b9ad8f;
  --none: #b9ad8f;
  --accent: var(--meadow); /* used by the ranking curve */
  --fg: var(--ink);
  --display: 'Chubbo', 'Georgia', serif;
  --text: 'General Sans', system-ui, sans-serif;
  /* uneven "cut with scissors" corners, reused everywhere */
  --cut: 14px 6px 16px 5px / 6px 15px 5px 14px;
  --cut-sm: 8px 3px 9px 4px / 4px 8px 3px 9px;
  --cut-btn: 18px 7px 20px 6px / 8px 18px 6px 20px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* The whole page is meadow: deep green with a faint, tonal pattern of grass tufts. */
body {
  margin: 0; color: var(--ink); font: 500 17px/1.5 var(--text);
  background-color: var(--meadow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='140' viewBox='0 0 160 140'%3E%3Cg fill='%232f5427'%3E%3Cpath d='M20 40c2-10 4-14 6-16-1 6 0 10 2 13 1-8 4-13 7-15-2 6-2 11 0 16z'/%3E%3Cpath d='M100 100c2-9 5-13 7-14-1 5 0 9 2 12 1-7 3-11 6-13-2 6-1 10 0 15z'/%3E%3Ccircle cx='130' cy='30' r='3'/%3E%3Ccircle cx='60' cy='120' r='2.5'/%3E%3Ccircle cx='70' cy='70' r='2'/%3E%3C/g%3E%3C/svg%3E");
  min-height: 100vh; overflow-x: hidden;
}
main {
  max-width: 640px; margin: 0 auto;
  /* keep clear of notches and the home indicator on phones */
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(48px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
/* Scaling to the window is done in game.js (fit): the home screen always fits without scrolling. */

button, a, input { touch-action: manipulation; } /* no double-tap zoom delay */
h1, h2, .display { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 38px; line-height: 1.05; margin: 0 0 8px; }
h2 { font-size: clamp(26px, 5vw, 32px); line-height: 1.15; margin: 8px 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
a { color: var(--meadow); font-weight: 600; }
.row { display: flex; gap: 8px; align-items: center; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 8px; }

/* cream panel the game sits on, with grass growing along its top edge */
.paper {
  position: relative; background: var(--paper); border-radius: var(--cut);
  padding: clamp(18px, 4vw, 26px); margin-top: 30px; box-shadow: 5px 7px 0 var(--meadow-dark);
}
.paper::before, #after > .card::before {
  content: ""; position: absolute; left: 4px; right: 4px; top: -19px; height: 22px; pointer-events: none;
  /* a continuous band of overlapping blades in two shades: no gaps along the edge */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='22' viewBox='0 0 120 22'%3E%3Cpath fill='%236fa83f' d='M0 22 L1.8 10.3 L4.0 18 L6.2 11.2 L8.0 18 L10.0 8.0 L12.0 18 L13.5 6.4 L16.0 18 L17.4 7.2 L20.0 18 L21.5 11.0 L24.0 18 L25.9 2.9 L28.0 18 L29.5 9.5 L32.0 18 L34.2 1.6 L36.0 18 L38.1 7.6 L40.0 18 L42.6 11.5 L44.0 18 L46.4 8.8 L48.0 18 L49.6 10.7 L52.0 18 L53.8 3.0 L56.0 18 L57.6 5.6 L60.0 18 L62.2 7.9 L64.0 18 L66.1 11.3 L68.0 18 L69.5 9.7 L72.0 18 L74.2 7.3 L76.0 18 L77.8 5.6 L80.0 18 L81.9 8.7 L84.0 18 L86.4 4.3 L88.0 18 L89.7 5.7 L92.0 18 L94.0 2.4 L96.0 18 L98.3 8.8 L100.0 18 L102.6 10.7 L104.0 18 L105.9 3.7 L108.0 18 L109.6 6.6 L112.0 18 L113.4 4.6 L116.0 18 L118.3 5.7 L120.0 18 L120 22Z'/%3E%3Cpath fill='%238cc152' d='M0 22 L2.1 13.2 L3.2 20 L5.0 10.7 L6.4 20 L8.1 11.9 L9.6 20 L11.6 7.5 L12.8 20 L14.4 10.0 L16.0 20 L17.1 9.7 L19.2 20 L21.0 7.1 L22.4 20 L24.4 13.4 L25.6 20 L27.1 10.0 L28.8 20 L29.8 11.8 L32.0 20 L33.2 14.9 L35.2 20 L36.3 9.1 L38.4 20 L39.6 13.8 L41.6 20 L43.1 8.2 L44.8 20 L45.9 12.0 L48.0 20 L49.7 8.0 L51.2 20 L53.2 8.2 L54.4 20 L55.7 12.3 L57.6 20 L59.0 8.0 L60.8 20 L62.9 14.6 L64.0 20 L65.2 13.9 L67.2 20 L68.5 11.6 L70.4 20 L72.1 13.6 L73.6 20 L74.6 12.2 L76.8 20 L78.2 10.9 L80.0 20 L82.1 9.8 L83.2 20 L84.8 10.4 L86.4 20 L88.2 15.5 L89.6 20 L91.7 9.0 L92.8 20 L94.8 8.8 L96.0 20 L97.5 12.4 L99.2 20 L100.3 10.3 L102.4 20 L103.5 15.4 L105.6 20 L106.9 14.5 L108.8 20 L110.2 15.5 L112.0 20 L113.0 14.6 L115.2 20 L116.3 12.7 L118.4 20 L119.4 8.1 L120 20 L120 22Z'/%3E%3Crect y='19' width='120' height='3' fill='%238cc152'/%3E%3C/svg%3E") repeat-x bottom / 120px 22px;
}
.paper.muted { color: var(--muted); }
#after > .card { position: relative; background: var(--paper); border: none; border-radius: var(--cut); box-shadow: 5px 7px 0 var(--meadow-dark); margin-top: 30px; }
.card { background: var(--paper-2); border: 2px solid var(--line); border-radius: var(--cut); padding: 16px; margin: 14px 0; }

/* buttons: hand-cut stickers with a hard offset shadow */
button {
  font: 600 17px var(--text); cursor: pointer; border-radius: var(--cut-btn); padding: 12px 22px; min-height: 50px; white-space: nowrap;
  border: 2.5px solid var(--ink); background: var(--paper-2); color: var(--ink); box-shadow: 3px 4px 0 var(--ink);
  transition: transform 0.08s, box-shadow 0.08s;
}
button:hover:not(:disabled) { transform: translate(-1px, -1px) rotate(-0.6deg); box-shadow: 4px 5px 0 var(--ink); }
button:active:not(:disabled) { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }
button.primary { background: var(--red); color: #fff; font-family: var(--display); font-size: 20px; }
button:disabled { opacity: 0.45; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions > button { flex: 1 1 auto; }
.link-button { background: none; border: none; box-shadow: none; color: var(--meadow); text-decoration: underline; padding: 10px 4px; font-weight: 600; }
.link-button:hover:not(:disabled), .link-button:active:not(:disabled) { transform: none; box-shadow: none; }

input[type=text] {
  font: 500 17px var(--text); /* 16px+ stops iOS zooming in on focus */
  flex: 1; min-width: 0; min-height: 52px; padding: 10px 16px; border-radius: var(--cut-btn);
  border: 2.5px solid var(--ink); background: var(--paper-2); color: var(--ink);
}
input[type=text]:focus { outline: 3px solid var(--grass); outline-offset: 2px; }

/* home hero */
.hero { color: var(--wool); text-align: center; position: relative; padding-top: 4px; }
.hero .badge { width: 150px; display: block; margin: 0 auto 2px; }
.hero h1 { font-size: 60px; color: var(--wool); margin-bottom: 6px; }
.hero .tag { font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
/* the one rule people must not miss, right under the tagline */
.hero .rule { display: inline-block; margin-top: 10px; padding: 6px 14px; font-size: 15px; font-weight: 600; color: var(--ink); background: var(--wool); border-radius: var(--cut-sm); transform: rotate(-1deg); box-shadow: 3px 3px 0 var(--meadow-dark); }
.hero .rule em { color: var(--bad); font-style: normal; text-decoration: underline; text-underline-offset: 3px; }
.home .scene { position: relative; height: 200px; margin: 22px 0 0; border-radius: var(--cut); border-bottom-left-radius: 0; border-bottom-right-radius: 0; overflow: hidden; background: #b9dc8a; }
.home .scene img { position: absolute; }
.home .scene .hills { position: absolute; left: 0; bottom: 0; width: 100%; height: 55%; }
.home .scene .dog { left: 4%; bottom: 7%; width: 200px; z-index: 2; }
.home .scene .s1 { right: 20%; bottom: 15%; width: 86px; z-index: 1; animation: hop 0.9s ease-in-out infinite; }
.home .scene .s2 { right: 3%; bottom: 26%; width: 96px; z-index: 1; animation: hop 0.8s ease-in-out -0.3s infinite; }
.home .scene .s3 { right: 37%; bottom: 7%; width: 68px; z-index: 1; animation: hop 1s ease-in-out -0.5s infinite; }
@media (max-width: 520px) {
  .hero .badge { width: 120px; }
  .hero h1 { font-size: 48px; }
  .home .scene { height: 160px; }
  .home .scene .dog { width: 150px; }
  .home .scene .s1 { width: 66px; } .home .scene .s2 { width: 74px; } .home .scene .s3 { width: 54px; }
}
.scene + .paper { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.scene + .paper::before { display: none; }
.streak-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: 15px; color: var(--ink); }
.flame { width: 20px; height: 20px; flex: none; fill: var(--red); }
.flame .core { fill: #f6b93b; }
.result-hero .streak-line { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 15px; }
.home-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.home-foot .link-button { font-size: 15px; }
.modal.privacy p { margin: 0 0 10px; font-size: 15px; line-height: 1.45; }
.dev { margin: 6px 0 0; }
.home-links { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 2px; }
/* The Privacy button and the Contact link must look identical: same font, no button height. */
.home-links .link-button { display: inline-block; min-height: 0; padding: 2px 0; font: 600 14px/1.3 var(--text); color: var(--muted); }
.home-links #howto { margin-right: auto; color: var(--meadow); } /* How to play on the left, Privacy and Contact on the right */
.report { align-self: flex-start; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

.how { display: grid; grid-template-columns: 70px 1fr; gap: 14px; align-items: center; margin-top: 8px; }
.how img { width: 70px; }
.warn { color: var(--bad); }

/* how-to-play pop-up */
.modal-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(20, 35, 15, 0.6); display: grid; padding: 16px; overflow-y: auto; }
.modal { max-width: 560px; width: 100%; margin: auto; } /* auto margins centre it, and a tall pop-up on a short screen scrolls instead of being cut off */

/* archive calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.cal-head h2 { margin: 6px 0 10px; }
.cal-nav { min-height: 44px; padding: 4px 16px; font-size: 22px; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 12px; }
.dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.day { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; min-height: 0; padding: 2px; font-family: var(--display); font-size: 18px; border-radius: var(--cut-sm); box-shadow: 2px 2px 0 var(--ink); border-width: 2px; }
.day small { font-family: var(--text); font-size: 11px; font-weight: 700; min-height: 13px; }
.day.empty, .day.off { box-shadow: none; border: 0; }
.day.off { color: var(--line); font-family: var(--display); font-size: 18px; display: flex; align-items: center; justify-content: center; }
.day.played { background: var(--grass); }
.day.today { background: var(--red); color: #fff; }
.topbar .link-button { padding: 4px 0; min-height: 0; font-size: 14px; }
.topbar-right, .foot-right { display: inline-flex; align-items: center; gap: 12px; }
.sound-toggle { display: inline-flex; align-items: center; padding: 6px !important; min-height: 0; color: var(--muted); }
.speaker { width: 22px; height: 22px; fill: currentColor; stroke: currentColor; }

/* prompt screen */
.topbar { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; color: var(--muted); }
.sheep-count { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-family: var(--display); font-size: 24px; }
.sheep-count img { width: 40px; }
.sheep-count.bump { animation: bump 0.25s ease-out; }
.timer { height: 10px; background: var(--line); border-radius: var(--cut-sm); overflow: hidden; margin: 10px 0 14px; }
.timer > div { height: 100%; background: var(--grass-mid); transition: width 0.25s linear, background-color 0.3s; }
.timer.urgent > div { background: var(--red); }
.timer.urgent { animation: pulse 0.5s ease-in-out infinite alternate; }
#hint.urgent #secs { color: var(--bad); font-weight: 700; }
.reaction { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: end; min-height: 76px; margin-top: 12px; }
/* the dog stands on a little grass mound so it isn't floating as a cut-out */
.dogspot { position: relative; width: 84px; padding-bottom: 6px; }
.dogspot::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: 0; height: 16px; border-radius: 50% 50% 6px 6px / 100% 100% 6px 6px; background: var(--grass); box-shadow: inset 0 -5px 0 var(--grass-mid); z-index: 0; }
.dogspot img { position: relative; z-index: 1; width: 84px; display: block; margin-bottom: -4px; }
.dogspot img.hop { animation: dog-hop 0.35s ease-out; }
.feedback { font-weight: 600; padding-bottom: 10px; }
.feedback.bad { color: var(--bad); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; }
.slot { border: 2px dashed var(--line); border-radius: var(--cut); padding: 8px 10px; min-height: 66px; font-size: 14px; background: transparent; }
.slot.filled { border-style: solid; border-color: var(--ink); background: var(--paper-2); box-shadow: 2px 3px 0 var(--line); animation: drop-in 0.3s ease-out; }
.slot .ans { font-weight: 700; overflow-wrap: anywhere; }
.tier { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--cut-sm); color: #fff; letter-spacing: 0.02em; }
.tier.stampede { background: var(--stampede); }
.tier.herd { background: var(--herd); }
.tier.flock { background: var(--flock); color: var(--meadow-dark); }
.tier.handful { background: var(--handful); color: var(--meadow-dark); }
.tier.lone-wolf { background: var(--lone-wolf); color: var(--ink); }
.tier.none { background: var(--none); }
.tier.strike { background: var(--red); }
.after-prompt { margin-top: 12px; min-height: 52px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; animation: drop-in 0.3s ease-out; }
.after-prompt .correct { color: var(--meadow); font-family: var(--display); font-size: 24px; }
.slot.voided { opacity: 0.55; }
.slot.voided .pts { text-decoration: line-through; color: var(--bad); }
.pen-total s { color: var(--bad); }
/* bottom of the prompt card: gate on the left while playing, Next in the bottom-right corner after */
.bottom-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 16px; min-height: 50px; }
.gate-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 10px; background: #f3dfc0; }
.btn-icon { width: 38px; height: auto; }
/* Pinned to the bottom right of the game's column, always in the same spot. Scrolling ends with the
   button just clear of the last card: #after's padding plus main's 48px leaves exactly that room. */
.next-bar {
  position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; max-width: 640px; margin: 0 auto; display: flex; justify-content: flex-end; pointer-events: none;
  padding: 12px max(16px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.next-btn { pointer-events: auto; animation: drop-in 0.3s ease-out; }
#after:not(:empty) { padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px)); }
#after > .card:last-child { margin-bottom: 0; }
/* The round's over: close the gaps so the crowd's answers start as high on the screen as they can. */
.round-over { padding-top: 14px; padding-bottom: 12px; }
.round-over h2 { margin: 6px 0 6px; }
.round-over .after-prompt { margin-top: 0; min-height: 0; }
.round-over .reaction { margin-top: 2px; min-height: 0; align-items: center; }
.round-over .feedback { padding-bottom: 0; }
.round-over .pen-wrap { min-height: 0; margin: 4px 0 0; }
.round-over .slots { margin: 6px 0 0; }
#after > .card:first-child { margin-top: 24px; }
.bonus-head { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; margin-bottom: 8px; }
.bonus-head img { width: 64px; }

/* sheep: one little sheep = 5 points; colours step up as a prompt's haul grows */
.sheep { width: 22px; height: 17px; flex: none; }
.sheep .leg, .sheep .face { fill: var(--ink); }
.sheep .wool { stroke-width: 0.7; }
.sheep.cream .wool { fill: #f3ead2; stroke: #cdbd93; }
.sheep.gold .wool { fill: #f5cd5a; stroke: #c9962a; }
.sheep.amber .wool { fill: #f0a03c; stroke: #b86f1c; }
.sheep.copper .wool { fill: #d9714a; stroke: #9c4627; }
.sheep.rose .wool { fill: #c2577a; stroke: #87344f; }
.sheep.plum .wool { fill: #7d4a8c; stroke: #4f2b5a; }
.sheep.black .wool { fill: #3a3633; stroke: #a59d8f; }
.sheep.black .face { fill: #8c8478; }
.sheep.new { animation: pop 0.45s cubic-bezier(.3,1.6,.5,1) both; }
.pen-wrap { display: flex; align-items: center; gap: 10px; min-height: 30px; margin: 10px 0 4px; }
.pen { display: flex; flex-wrap: wrap; gap: 3px; flex: 1; }
.pen .sheep { width: 28px; height: 21px; }
.pen-total { font-family: var(--display); font-size: 26px; color: var(--meadow); }
.day-flock { display: flex; flex-wrap: wrap; gap: 2px; min-height: 14px; margin-top: 8px; } /* not ".flock": that is a tier badge class */
.day-flock .sheep { width: 20px; height: 15px; }
.flyer { position: fixed; z-index: 50; pointer-events: none; }

/* reveal: the bar shows the sheep an answer was worth; the % of the crowd is the label */
.bars { display: grid; gap: 7px; }
.bars-head { display: grid; grid-template-columns: 1fr 52px 40px; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.bar { display: grid; grid-template-columns: 1fr 52px 40px; gap: 8px; align-items: center; font-size: 14px; }
.bar .track { position: relative; height: 28px; background: var(--wool); border-radius: var(--cut-sm); overflow: hidden; }
.bar .fill { position: absolute; inset: 0 auto 0 0; opacity: 0.55; transform-origin: left; animation: grow 0.6s cubic-bezier(.2,.8,.2,1) both; }
.bar .label { position: absolute; left: 10px; right: 6px; top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--ink); }
.bar.hit .label { font-weight: 700; }
.bar.hit .label::before { content: "✓ "; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.correct { color: var(--meadow); font-family: var(--display); font-size: 20px; }

/* results */
.result-hero { background: var(--meadow); color: var(--wool); border-radius: var(--cut); padding: 20px 20px 18px; margin-top: 12px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.result-hero img { width: 150px; margin-bottom: 4px; }
.result-hero .score { font-family: var(--display); font-weight: 700; font-size: 76px; line-height: 0.95; }
.result-hero .score-label { font-family: var(--display); font-size: 22px; margin-top: 2px; }
.result-hero .score-best { font-size: 14px; opacity: 0.8; margin-top: 2px; }
.result-hero .think-like { margin-top: 10px; padding: 5px 14px; background: var(--wool); color: var(--ink); border-radius: var(--cut-sm); font-size: 15px; transform: rotate(-1deg); }
.result-hero .day-flock { justify-content: center; margin-top: 14px; max-width: 460px; }
/* Buy Me a Coffee: the game's sticker button in BMC yellow; the note shows on 7/15/30-day streaks */
.support { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 16px; text-align: center; }
.support-note { margin: 0; max-width: 46ch; font-size: 15px; line-height: 1.45; }
.bmc { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; min-height: 48px; border: 2.5px solid var(--ink); border-radius: var(--cut-btn); background: #ffdd00; color: #1d1a16; font: 700 17px var(--text); text-decoration: none; box-shadow: 3px 4px 0 var(--ink); transition: transform 0.08s, box-shadow 0.08s; }
.bmc:hover { transform: translate(-1px, -1px) rotate(-0.6deg); box-shadow: 4px 5px 0 var(--ink); }
.bmc:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.bmc:focus-visible { outline: 3px solid var(--meadow); outline-offset: 3px; }
.bmc .cup { width: 24px; height: 24px; flex: none; }
.prompt-list { padding: 6px 16px; }
.prompt-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; font-size: 15px; border-bottom: 2px dotted var(--line); }
.prompt-row:last-child, .prompt-item:last-child > .prompt-row, .prompt-item:last-child[open] > .prompt-row { border-bottom: 0; }
.prompt-pts { font-family: var(--display); font-size: 20px; color: var(--meadow); white-space: nowrap; }
.prompt-tip { padding: 8px 0 4px; }
.prompt-item > summary { cursor: pointer; list-style: none; }
.prompt-item > summary::-webkit-details-marker { display: none; }
.prompt-item > summary:focus-visible { outline: 3px solid var(--meadow); outline-offset: 2px; }
.prompt-end { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.chev { width: 9px; height: 9px; border-right: 3px solid var(--muted); border-bottom: 3px solid var(--muted); transform: translateY(-2px) rotate(45deg); transition: transform 0.15s; }
.prompt-item[open] .chev { transform: translateY(2px) rotate(225deg); }
.prompt-more { padding: 4px 0 14px; border-bottom: 2px dotted var(--line); }
.prompt-item:last-child .prompt-more { border-bottom: 0; }
.prompt-head { margin: 10px 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.prompt-guess { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 3px 0; font-size: 15px; overflow-wrap: anywhere; }
.prompt-guess > :last-child { flex: none; }
.prompt-guess-pts { font-family: var(--display); font-size: 17px; color: var(--meadow); }
.prompt-correct { margin-top: 10px; font-size: 15px; }
.prompt-correct strong { color: var(--meadow); }
.score { font-family: var(--display); font-size: 44px; }

/* screen transitions */
.enter { animation: slide-in 0.35s cubic-bezier(.2,.8,.2,1) both; }
.leave { animation: slide-out 0.22s ease-in both; }

@keyframes pop { from { transform: translateY(-14px) scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulse { to { transform: scaleY(1.6); } }
@keyframes bump { 50% { transform: scale(1.25) rotate(-4deg); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes drop-in { from { transform: translateY(-8px); opacity: 0; } }
@keyframes slide-in { from { transform: translateX(40px) rotate(1deg); opacity: 0; } }
@keyframes slide-out { to { transform: translateX(-40px) rotate(-1deg); opacity: 0; } }
@keyframes hop { 50% { transform: translateY(-5px); } }
@keyframes dog-hop { 40% { transform: translateY(-10px) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
