:root {
  color-scheme: light;
  --background: #f8f3e8;
  --paper: #fffdf8;
  --ink: #21392e;
  --muted: #68776a;
  --orange: #ed7a29;
  --orange-dark: #c55b1e;
  --green: #2f6748;
  --line: #e5ddcf;
  --sans: 'Avenir Next', Avenir, Helvetica, Arial, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; }
button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.page-shell { position: relative; isolation: isolate; min-height: 100vh; padding: 47px 24px 100px; overflow: hidden; }
.game-column { position: relative; z-index: 1; width: min(100%, 800px); margin: 0 auto; }
.collage-rail { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.clipping { position: absolute; display: block; max-width: none; height: auto; transform-origin: center; }
.collage-left .clipping:nth-child(1) { top: 3%; left: 3%; width: clamp(78px, 8vw, 112px); transform: rotate(-11deg); z-index: 3; }
.collage-left .clipping:nth-child(2) { top: 15%; left: 12%; width: clamp(150px, 16vw, 240px); transform: rotate(8deg); z-index: 1; }
.collage-left .clipping:nth-child(3) { top: 29%; left: 0; width: clamp(190px, 19vw, 290px); transform: rotate(-14deg); z-index: 4; }
.collage-left .clipping:nth-child(4) { top: 44%; left: 11%; width: clamp(175px, 16vw, 245px); transform: rotate(10deg); z-index: 2; }
.collage-left .clipping:nth-child(5) { top: 59%; left: 1%; width: clamp(155px, 14vw, 220px); transform: rotate(-8deg); z-index: 3; }
.collage-left .clipping:nth-child(6) { top: 69%; left: 31%; width: clamp(75px, 6vw, 100px); transform: rotate(12deg); z-index: 2; }
.collage-left .clipping:nth-child(7) { top: 75%; left: 28%; width: clamp(190px, 20vw, 300px); transform: rotate(-6deg); z-index: 4; }
.collage-right .clipping:nth-child(1) { top: 1%; right: 1%; width: clamp(220px, 22vw, 320px); transform: rotate(5deg); z-index: 2; }
.collage-right .clipping:nth-child(2) { top: 15%; right: 10%; width: clamp(150px, 16vw, 230px); transform: rotate(-9deg); z-index: 3; }
.collage-right .clipping:nth-child(3) { top: 38%; right: 2%; width: clamp(220px, 22vw, 330px); transform: rotate(-12deg); z-index: 4; }
.collage-right .clipping:nth-child(4) { top: 53%; right: 1%; width: clamp(130px, 12vw, 190px); transform: rotate(8deg); z-index: 1; }
.collage-right .clipping:nth-child(5) { top: 63%; right: 36%; width: clamp(145px, 14vw, 210px); transform: rotate(-7deg); z-index: 3; }
.collage-right .clipping:nth-child(6) { top: 80%; right: 17%; width: clamp(125px, 12vw, 175px); transform: rotate(11deg); z-index: 2; }
.site-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 23px; background: var(--level-page, var(--background)); }
.brand-group { display: flex; align-items: baseline; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: clamp(39px, 7vw, 55px); letter-spacing: -.07em; line-height: 1; margin: 0; }
.header-day-number { color: var(--orange-dark); font-size: 17px; }
.brand-fruit { position: relative; width: 28px; height: 28px; flex: 0 0 28px; margin: 10px 2px 0 0; border-radius: 50%; background: var(--orange); box-shadow: inset -4px -4px 0 #cf6622; transform: rotate(-15deg); }
.brand-fruit::before { content: ''; position: absolute; width: 12px; height: 6px; background: #4c8a5b; border-radius: 12px 0 12px 0; top: -5px; left: 17px; transform: rotate(-28deg); }
.day-label { padding-bottom: 3px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.game-card { min-height: 475px; padding: 32px 37px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 0 -3px #e9dfcd, 0 24px 40px #765b3814; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.card-pips { display: flex; gap: 6px; }
.pip { width: 30px; height: 7px; border-radius: 8px; background: #e8e5da; }
.pip.done { background: #70a67c; }
.pip.current { background: var(--orange); }
.difficulty { font-size: 16px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.difficulty.easy { color: var(--green); }
.difficulty.medium { color: #a97800; }
.difficulty.hard { color: var(--orange-dark); }
.difficulty.impossible { color: #b93636; }
.question-title { max-width: 680px; margin: 27px 0 25px; font-family: var(--serif); font-size: clamp(29px, 4.6vw, 38px); line-height: 1.2; letter-spacing: -.035em; }
.option-list { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.option { display: flex; align-items: center; gap: 12px; min-height: 65px; padding: 10px 15px; border: 1.5px solid #e6dfd2; border-radius: 10px; background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.option.selected { border-color: var(--orange); background: #fff2df; }
.option.correct { border-color: #68a773; background: #e9f4e9; }
.option.incorrect { border-color: #d78a69; background: #fff0e8; }
.option:disabled { cursor: default; }
.option-letter { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 29px; border-radius: 6px; background: #f2eee5; color: #617167; font-size: 11px; font-weight: 800; }
.option.selected .option-letter { color: white; background: var(--orange); }
.option.correct .option-letter { color: white; background: #599a67; }
.option.incorrect .option-letter { color: white; background: #dc8a69; }
.option-text { font-size: 13px; font-weight: 700; line-height: 1.35; }
.card-actions { display: flex; justify-content: flex-end; margin-top: 24px; }
.primary-button { display: inline-flex; justify-content: center; align-items: center; min-width: 175px; min-height: 48px; padding: 11px 18px; border: 0; border-radius: 9px; background: var(--green); color: white; font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 0 #214b33; }
.primary-button:hover:not(:disabled) { background: #26583b; }
.primary-button:disabled { background: #abb6aa; box-shadow: 0 4px 0 #879486; cursor: not-allowed; }
.primary-button.orange { background: var(--orange-dark); box-shadow: 0 4px 0 #a54a1b; }
.primary-button.orange:hover { background: #ad4d19; }
.feedback { margin-top: 17px; padding: 14px 17px; background: #eaf3e9; border: 1px solid #c4ddc3; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.feedback.wrong { background: #fff0e8; border-color: #f0cdb9; }
.feedback strong { display: block; font-size: 15px; }
.feedback p { margin: 4px 0 0; color: #526554; }
.feedback .explanation { margin-top: 10px; color: var(--ink); }
.article-link { display: inline-block; margin-top: 10px; color: var(--orange-dark); font-weight: 800; text-underline-offset: 3px; }
.article-link:hover { color: #944017; }

body[data-difficulty="easy"] {
  --level-page: #f0f6ed; --level-card: #f9fcf7; --level-heading: #244c35;
  --level-accent: #2f6748; --level-action: #2f6748; --level-action-hover: #26563c;
  --level-action-shadow: #214b33; --level-border: #c6ddc6; --level-soft: #e8f3e6;
  --level-soft-hover: #f0f8ed; --level-done: #88b291; --level-shadow: #dbe9d9;
}
body[data-difficulty="medium"] {
  --level-page: #fbf5e5; --level-card: #fffcf2; --level-heading: #654907;
  --level-accent: #966400; --level-action: #8b5c00; --level-action-hover: #754d00;
  --level-action-shadow: #674400; --level-border: #e6d59f; --level-soft: #f9edc9;
  --level-soft-hover: #fff5d9; --level-done: #c5a849; --level-shadow: #efe3bf;
}
body[data-difficulty="hard"] {
  --level-page: #faf0e7; --level-card: #fff9f3; --level-heading: #713714;
  --level-accent: #bb551b; --level-action: #ad4c18; --level-action-hover: #963d10;
  --level-action-shadow: #81370f; --level-border: #ebc6a9; --level-soft: #fae5d5;
  --level-soft-hover: #fff0e3; --level-done: #d8966b; --level-shadow: #eed9c9;
}
body[data-difficulty="impossible"] {
  --level-page: #faedeb; --level-card: #fff7f6; --level-heading: #702f30;
  --level-accent: #b93636; --level-action: #a83232; --level-action-hover: #922727;
  --level-action-shadow: #792424; --level-border: #e9bcb7; --level-soft: #f8e0dd;
  --level-soft-hover: #fff0ed; --level-done: #d38985; --level-shadow: #efd5d2;
}
body[data-difficulty] { background: var(--level-page); }
body[data-difficulty] .brand { color: var(--level-heading); }
body[data-difficulty] .header-day-number { color: var(--level-accent); }
body[data-difficulty] button:focus-visible { outline-color: var(--level-accent); }
body[data-difficulty] .game-card {
  background: var(--level-card); border-color: var(--level-border);
  box-shadow: 0 8px 0 -3px var(--level-shadow), 0 24px 40px #45301e14;
}
body[data-difficulty] .card-top { border-bottom-color: var(--level-border); }
body[data-difficulty] .difficulty { color: var(--level-accent); }
body[data-difficulty] .question-title { color: var(--level-heading); }
body[data-difficulty] .pip { background: var(--level-border); }
body[data-difficulty] .pip.done { background: var(--level-done); }
body[data-difficulty] .pip.current { background: var(--level-accent); }
body[data-difficulty] .option { background: #fffefa; border-color: var(--level-border); }
body[data-difficulty] .option.selected:not(.correct):not(.incorrect) { background: var(--level-soft); border-color: var(--level-accent); }
body[data-difficulty] .option-letter { background: var(--level-soft); color: var(--level-accent); }
body[data-difficulty] .option.selected:not(.correct):not(.incorrect) .option-letter { background: var(--level-accent); color: white; }
body[data-difficulty] .option.correct { border-color: #68a773; background: #e9f4e9; }
body[data-difficulty] .option.incorrect { border-color: #d78a69; background: #fff0e8; }
body[data-difficulty] .option.correct .option-letter { background: #599a67; color: white; }
body[data-difficulty] .option.incorrect .option-letter { background: #dc8a69; color: white; }
body[data-difficulty] .primary-button { background: var(--level-action); box-shadow: 0 4px 0 var(--level-action-shadow); }
body[data-difficulty] .primary-button:hover:not(:disabled) { background: var(--level-action-hover); }
body[data-difficulty] .primary-button:disabled { opacity: .62; }
body[data-difficulty] .feedback,
body[data-difficulty] .feedback.wrong { background: var(--level-soft); border-color: var(--level-border); }
body[data-difficulty] .feedback p { color: var(--level-heading); }
body[data-difficulty] .article-link { color: var(--level-accent); }
body[data-difficulty] .article-link:hover { color: var(--level-action-hover); }

.results, .state-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 408px; }
.results h2, .state-screen h2 { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(39px, 7vw, 55px); letter-spacing: -.05em; }
.score { margin: 6px 0 14px; color: var(--green); font-family: var(--serif); font-size: 54px; font-weight: 700; line-height: 1; }
.emoji-row { margin-bottom: 29px; padding-left: 10px; font-size: 36px; letter-spacing: 10px; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.restart-button { min-width: 175px; min-height: 48px; padding: 11px 18px; border: 1.5px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 800; cursor: pointer; }
.restart-button:hover { border-color: var(--orange); background: #fff9f1; }
.state-screen p { max-width: 400px; margin: 0; color: var(--muted); line-height: 1.6; }
@media (max-width: 1080px) {
  .page-shell { padding-bottom: 200px; }
  .collage-left .clipping:nth-child(6) { top: 78%; left: 38%; }
  .collage-left .clipping:nth-child(7) { top: 81%; left: 9%; }
  .collage-right .clipping:nth-child(5) { top: 77%; right: 29%; }
  .collage-right .clipping:nth-child(6) { top: 84%; right: 4%; }
}
@media (max-width: 620px) {
  .page-shell { padding: 28px 14px 170px; }
  .collage-left .clipping:nth-child(1) { top: 81%; left: -6%; width: 105px; }
  .collage-left .clipping:nth-child(2) { top: 88%; left: 13%; width: 100px; }
  .collage-left .clipping:nth-child(3) { top: 79%; left: 38%; width: 125px; }
  .collage-left .clipping:nth-child(4) { top: 89%; left: 67%; width: 110px; }
  .collage-left .clipping:nth-child(5), .collage-left .clipping:nth-child(6), .collage-left .clipping:nth-child(7),
  .collage-right .clipping:nth-child(1), .collage-right .clipping:nth-child(2), .collage-right .clipping:nth-child(3),
  .collage-right .clipping:nth-child(4), .collage-right .clipping:nth-child(5), .collage-right .clipping:nth-child(6) { top: 80%; }
  .site-header { align-items: flex-start; }
  .brand { font-size: 39px; }
  .brand-group { gap: 9px; }
  .header-day-number { font-size: 15px; }
  .brand-fruit { width: 24px; height: 24px; flex-basis: 24px; margin-top: 8px; }
  .day-label { font-size: 11px; }
  .game-card { padding: 23px 19px 27px; }
  .option-list { grid-template-columns: 1fr; gap: 8px; }
  .option { min-height: 56px; }
  .question-title { font-size: 31px; }
  .primary-button { width: 100%; }
  .result-actions { width: 100%; }
  .restart-button { width: 100%; }
  .collage-left .clipping:nth-child(5) { left: 0; width: 110px; top: 94%; }
  .collage-left .clipping:nth-child(6) { left: 30%; width: 90px; top: 93%; }
  .collage-left .clipping:nth-child(7) { left: 58%; width: 140px; top: 94%; }
  .collage-right .clipping:nth-child(1) { right: 0; width: 120px; top: 73%; }
  .collage-right .clipping:nth-child(2) { right: 5%; width: 100px; top: 83%; }
  .collage-right .clipping:nth-child(3) { right: 35%; width: 100px; top: 89%; }
  .collage-right .clipping:nth-child(4) { right: 0; width: 100px; top: 91%; }
  .collage-right .clipping:nth-child(5) { right: 50%; width: 105px; top: 95%; }
  .collage-right .clipping:nth-child(6) { right: 20%; width: 100px; top: 97%; }
}
@media (max-width: 390px) {
  .site-header { flex-wrap: wrap; gap: 6px; }
  .day-label { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; } }

/* Overlapping round photo cutouts cover the viewport beneath the smaller objects. */
html, body { width: 100%; height: 100%; overflow: hidden; }
.page-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: clamp(16px, 4vh, 38px) 24px 12px;
  background: transparent;
}
.collage-fill {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.fill-cutout { position: absolute; display: block; width: max(75vw, 105vh); height: auto; max-width: none; transform: translate(-50%, -50%); }
.fill-one { left: 25%; top: 25%; }
.fill-two { left: 75%; top: 25%; }
.fill-three { left: 25%; top: 75%; }
.fill-four { left: 75%; top: 75%; }
.collage-rail { z-index: 1; }
.game-column { z-index: 2; width: min(100%, 640px); }
.site-header { padding: 4px 10px 7px; border-radius: 10px; }

/* Photo cutouts are deliberately layered behind the card, with no image shadows. */
#clip-pansterone { top: 2%; left: 1%; width: clamp(90px, 8vw, 130px); transform: rotate(-11deg); }
#clip-sketch { top: 64%; left: 1%; width: clamp(130px, 13vw, 190px); transform: rotate(8deg); z-index: 6; }
#clip-carrot { top: 37%; left: -4%; width: clamp(225px, 20vw, 330px); transform: rotate(-14deg); }
#clip-veronica { top: 48%; left: 1%; width: clamp(145px, 14vw, 210px); transform: rotate(10deg); z-index: 5; }
#clip-mushrooms { top: 75%; left: -3%; width: clamp(165px, 14vw, 230px); transform: rotate(-8deg); }
#clip-chocolate { top: 46%; left: 0; width: clamp(75px, 7vw, 100px); transform: rotate(12deg); z-index: 6; }
#clip-eagle { top: 76%; left: 13%; width: clamp(190px, 19vw, 300px); transform: rotate(-6deg); }
#clip-matts { top: -4%; left: 7%; width: clamp(120px, 11vw, 160px); transform: rotate(14deg); }
#clip-haribo { top: 27%; left: 0; width: clamp(150px, 13vw, 190px); transform: rotate(11deg); }
#clip-peat { top: 81%; left: 23%; width: clamp(135px, 13vw, 180px); transform: rotate(-7deg); z-index: 6; }
#clip-soup { top: 81%; left: 36%; width: clamp(180px, 17vw, 240px); transform: rotate(8deg); }
#clip-redroom { top: 79%; left: 57%; width: clamp(110px, 10vw, 145px); transform: rotate(-8deg); clip-path: polygon(8% 0, 100% 5%, 95% 93%, 0 100%, 4% 48%); }
#clip-cynomel { top: 0; right: -2%; width: clamp(235px, 22vw, 340px); transform: rotate(5deg); }
#clip-danny { top: 12%; right: -1%; width: clamp(145px, 14vw, 200px); transform: rotate(-9deg); z-index: 5; }
#clip-sport { top: 42%; right: -3%; width: clamp(240px, 22vw, 350px); transform: rotate(-12deg); }
#clip-mouse { top: 65%; right: 0; width: clamp(145px, 13vw, 210px); transform: rotate(8deg); z-index: 10; }
#clip-heart { top: 72%; right: 14%; width: clamp(145px, 14vw, 210px); transform: rotate(-7deg); }
#clip-dog { top: 83%; right: 9%; width: clamp(130px, 12vw, 185px); transform: rotate(11deg); }
#clip-vanleeuwen { top: 28%; right: 0; width: clamp(155px, 14vw, 205px); transform: rotate(9deg); }
#clip-soybean { top: 47%; right: 1%; width: clamp(115px, 11vw, 165px); transform: rotate(-8deg); }
#clip-chicken { top: 81%; right: 18%; width: clamp(125px, 12vw, 170px); transform: rotate(6deg); z-index: 6; }
#clip-leopard { top: 49%; right: -2%; width: clamp(150px, 15vw, 210px); transform: rotate(-5deg); z-index: 8; }
#clip-champagne { top: 81%; right: 34%; width: clamp(130px, 13vw, 180px); transform: rotate(7deg); z-index: 7; }

@media (max-width: 1080px) {
  .page-shell { padding-bottom: 12px; }
}
@media (max-width: 620px) {
  .fill-cutout { width: max(145vw, 66vh); }
  .fill-one { left: 50%; top: 17%; }
  .fill-two { left: 50%; top: 50%; }
  .fill-three { left: 50%; top: 83%; }
  .fill-four { display: none; }
  .page-shell { padding: 11px 12px 8px; }
  .site-header { margin-bottom: 9px; padding: 4px 8px 6px; }
  .brand { font-size: 33px; }
  .brand-fruit { width: 20px; height: 20px; flex-basis: 20px; margin-top: 6px; }
  .header-day-number { font-size: 13px; }
  .day-label { font-size: 10px; }
  .game-card { min-height: 0; padding: 16px 15px 18px; border-radius: 13px; }
  .card-top { padding-bottom: 12px; }
  .question-title { margin: 15px 0 16px; font-size: clamp(22px, 6vw, 29px); line-height: 1.18; }
  .option-list { gap: 6px; }
  .option { min-height: 49px; padding: 7px 10px; }
  .card-actions { margin-top: 15px; }
  .primary-button, .restart-button { min-height: 43px; }
  .feedback { margin-top: 13px; padding: 11px 12px; }
  .feedback .explanation { margin-top: 6px; }
  .article-link { margin-top: 6px; }
  .results, .state-screen { min-height: 340px; }
  #clip-pansterone { top: 3%; left: -7%; width: 104px; }
  #clip-sketch { top: 15%; left: -24%; width: 165px; }
  #clip-carrot { top: 42%; left: -24%; width: 195px; }
  #clip-veronica { top: 70%; left: -13%; width: 132px; }
  #clip-mushrooms { top: 87%; left: -6%; width: 140px; }
  #clip-chocolate { top: 78%; left: 25%; width: 68px; }
  #clip-eagle { top: 88%; left: 41%; width: 180px; }
  #clip-matts { top: -3%; left: 55%; width: 94px; }
  #clip-haribo { top: 31%; left: -13%; width: 130px; }
  #clip-peat { top: 77%; left: -9%; width: 180px; }
  #clip-soup { top: 86%; left: 2%; width: 175px; }
  #clip-redroom { top: 83%; left: 37%; width: 105px; }
  #clip-cynomel { top: 0; right: -20%; width: 180px; }
  #clip-danny { top: 17%; right: -14%; width: 145px; }
  #clip-sport { top: 48%; right: -17%; width: 180px; }
  #clip-mouse { top: 68%; right: -15%; width: 145px; }
  #clip-heart { top: 81%; right: 8%; width: 125px; }
  #clip-dog { top: 88%; right: -4%; width: 125px; }
  #clip-vanleeuwen { top: 31%; right: -12%; width: 120px; }
  #clip-soybean { top: 59%; right: -9%; width: 110px; }
  #clip-chicken { top: 76%; right: -13%; width: 160px; }
  #clip-leopard { top: 66%; right: 32%; width: 130px; }
  #clip-champagne { top: 72%; right: 2%; width: 125px; }
}
@media (max-height: 650px) and (max-width: 620px) {
  .page-shell { padding-top: 5px; }
  .site-header { margin-bottom: 5px; }
  .brand { font-size: 29px; }
  .game-card { padding: 10px 12px 11px; }
  .card-top { padding-bottom: 7px; }
  .question-title { margin: 10px 0; font-size: 21px; }
  .option { min-height: 40px; padding: 4px 8px; }
  .option-list { gap: 4px; }
  .card-actions { margin-top: 9px; }
  .primary-button { min-height: 37px; }
  .feedback { margin-top: 8px; padding: 8px 10px; font-size: 12px; }
  #clip-leopard { top: 78%; }
  #clip-champagne { top: 78%; right: 0; width: 110px; }
}

/* Printed-paper treatment for the game UI. The collage imagery stays outside it. */
:root { --print-ink: #20251e; --print-paper: #fff9e9; --print-accent: #ec7d36; --print-accent-ink: #20251e; }
body[data-difficulty="easy"] { --print-paper: #f5f9ee; --print-accent: #4e9e64; --print-accent-ink: #fffdf3; }
body[data-difficulty="medium"] { --print-paper: #fff8dc; --print-accent: #f1cb4d; --print-accent-ink: #20251e; }
body[data-difficulty="hard"] { --print-paper: #fff0e2; --print-accent: #ef8a3e; --print-accent-ink: #20251e; }
body[data-difficulty="impossible"] { --print-paper: #fff0eb; --print-accent: #d64a40; --print-accent-ink: #fffdf3; }
.site-header {
  margin-bottom: 18px;
  padding: 6px 13px 8px;
  background: var(--print-paper);
  border: 3px solid var(--print-ink);
  border-radius: 0;
  transform: rotate(-.6deg);
}
.brand, body[data-difficulty] .brand { color: var(--print-ink); }
.header-day-number, body[data-difficulty] .header-day-number { color: var(--print-ink); font-family: var(--serif); font-size: 19px; }
.day-label { color: var(--print-ink); font-weight: 800; letter-spacing: .025em; }
.game-card, body[data-difficulty] .game-card {
  position: relative;
  background: var(--print-paper);
  border: 3px solid var(--print-ink);
  border-radius: 0;
  box-shadow: 8px 8px 0 var(--print-accent);
  transform: rotate(.3deg);
}
.card-top, body[data-difficulty] .card-top { border-bottom: 3px solid var(--print-ink); padding-bottom: 15px; }
.difficulty, body[data-difficulty] .difficulty {
  display: inline-block;
  padding: 7px 12px 5px;
  background: var(--print-accent);
  border: 2px solid var(--print-ink);
  color: var(--print-accent-ink);
  font-family: Impact, 'Arial Narrow', var(--sans);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .035em;
  line-height: 1;
}
.card-pips { gap: 5px; }
.pip, body[data-difficulty] .pip { width: 27px; height: 12px; background: var(--print-paper); border: 2px solid var(--print-ink); border-radius: 0; }
.pip.done, body[data-difficulty] .pip.done { background: var(--print-ink); }
.pip.current, body[data-difficulty] .pip.current { background: var(--print-accent); }
.question-title, body[data-difficulty] .question-title {
  margin: 25px 0 23px;
  color: var(--print-ink);
  font-size: clamp(29px, 4.4vw, 38px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.05em;
}
.option, body[data-difficulty] .option {
  min-height: 64px;
  background: #fffefa;
  border: 2px solid var(--print-ink);
  border-radius: 0;
  color: var(--print-ink);
  transition: background .15s, transform .15s;
}
.option:nth-child(1) { transform: rotate(-.45deg); }
.option:nth-child(2) { transform: rotate(.35deg); }
.option:nth-child(3) { transform: rotate(.3deg); }
.option:nth-child(4) { transform: rotate(-.4deg); }
@media (hover: hover) and (pointer: fine) {
  .option:hover:not(:disabled):not(.selected),
  body[data-difficulty] .option:hover:not(:disabled):not(.selected) {
    background: var(--level-soft-hover, #fff0d0);
    border-color: var(--level-accent, var(--orange));
    transform: rotate(0deg) translateY(-2px);
  }
}
.option.selected:not(.correct):not(.incorrect), body[data-difficulty] .option.selected:not(.correct):not(.incorrect) { background: var(--level-soft, #ffe7c7); border-color: var(--print-ink); }
.option-letter, body[data-difficulty] .option-letter {
  width: 35px;
  height: 35px;
  flex-basis: 35px;
  background: var(--print-ink);
  border-radius: 0;
  color: #fffdf3;
  font-family: Impact, 'Arial Narrow', var(--sans);
  font-size: 18px;
  letter-spacing: .02em;
}
.option.selected:not(.correct):not(.incorrect) .option-letter,
body[data-difficulty] .option.selected:not(.correct):not(.incorrect) .option-letter { background: var(--print-accent); color: var(--print-accent-ink); }
.option-text { font-size: 14px; font-weight: 900; }
.primary-button, body[data-difficulty] .primary-button,
.primary-button.orange {
  min-height: 49px;
  background: var(--print-accent);
  border: 2px solid var(--print-ink);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--print-ink);
  color: var(--print-accent-ink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.primary-button:hover:not(:disabled), body[data-difficulty] .primary-button:hover:not(:disabled),
.primary-button.orange:hover { background: var(--print-accent); filter: brightness(1.06); }
.primary-button:disabled, body[data-difficulty] .primary-button:disabled { opacity: .52; box-shadow: 4px 4px 0 var(--print-ink); }
.feedback, body[data-difficulty] .feedback, body[data-difficulty] .feedback.wrong {
  background: #fffefa;
  border: 2px solid var(--print-ink);
  border-left: 9px solid var(--print-accent);
  border-radius: 0;
}
.feedback, body[data-difficulty] .feedback { border-left-color: #4e9e64; }
.feedback.wrong, body[data-difficulty] .feedback.wrong { border-left-color: #d64a40; }
.feedback strong { color: var(--print-ink); font-family: var(--serif); font-size: 19px; }
.feedback p, body[data-difficulty] .feedback p { color: var(--print-ink); }
.article-link, body[data-difficulty] .article-link { color: var(--print-ink); text-decoration-thickness: 2px; }
.score { color: var(--print-ink); font-size: 64px; }
.restart-button {
  min-height: 49px;
  background: #fffefa;
  border: 2px solid var(--print-ink);
  border-radius: 0;
  color: var(--print-ink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.restart-button:hover { background: #ffe9c4; border-color: var(--print-ink); }
button:focus-visible, body[data-difficulty] button:focus-visible { outline: 3px dashed var(--print-ink); outline-offset: 4px; }
@media (max-width: 620px) {
  .site-header { margin-bottom: 9px; padding: 4px 7px 5px; border-width: 2px; }
  .header-day-number, body[data-difficulty] .header-day-number { font-size: 14px; }
  .game-card, body[data-difficulty] .game-card { min-height: 0; padding: 16px 14px 18px; border-width: 2px; box-shadow: 5px 5px 0 var(--print-accent); transform: none; }
  .card-top, body[data-difficulty] .card-top { padding-bottom: 11px; border-bottom-width: 2px; }
  .difficulty, body[data-difficulty] .difficulty { padding: 5px 8px 4px; font-size: 18px; }
  .pip, body[data-difficulty] .pip { width: 24px; height: 10px; }
  .question-title, body[data-difficulty] .question-title { margin: 15px 0 17px; font-size: clamp(22px, 6vw, 29px); line-height: 1.12; }
  .option, body[data-difficulty] .option { min-height: 48px; padding: 6px 9px; }
  .option-letter, body[data-difficulty] .option-letter { width: 29px; height: 29px; flex-basis: 29px; font-size: 15px; }
  .option-text { font-size: 13px; }
  .primary-button, body[data-difficulty] .primary-button, .primary-button.orange, .restart-button { min-height: 43px; }
  .feedback { margin-top: 13px; }
  .results, .state-screen { min-height: 330px; }
}
@media (max-height: 650px) and (max-width: 620px) {
  .site-header { margin-bottom: 5px; }
  .game-card, body[data-difficulty] .game-card { padding: 10px 11px 11px; }
  .card-top, body[data-difficulty] .card-top { padding-bottom: 7px; }
  .difficulty, body[data-difficulty] .difficulty { font-size: 16px; padding: 4px 6px 3px; }
  .pip, body[data-difficulty] .pip { width: 21px; height: 8px; }
  .question-title, body[data-difficulty] .question-title { margin: 10px 0; font-size: 21px; }
  .option, body[data-difficulty] .option { min-height: 39px; padding: 3px 7px; }
  .option-letter, body[data-difficulty] .option-letter { width: 25px; height: 25px; flex-basis: 25px; }
  .primary-button, body[data-difficulty] .primary-button, .primary-button.orange { min-height: 37px; }
  .results, .state-screen { min-height: 290px; }
}

.results-with-review { min-height: 0; justify-content: flex-start; }
.results-with-review .score { margin: 0 0 6px; }
.results-with-review .emoji-row { margin-bottom: 14px; }
.answer-review { width: 100%; margin-top: 20px; padding-top: 14px; border-top: 3px solid var(--print-ink); text-align: left; }
.review-heading { margin: 0 0 9px; font-family: Impact, 'Arial Narrow', var(--sans); font-size: 20px; letter-spacing: .04em; text-transform: uppercase; }
.review-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.review-tab { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 42px; padding: 5px 8px; border: 2px solid var(--print-ink); background: #fffefa; color: var(--print-ink); font-family: Impact, 'Arial Narrow', var(--sans); font-size: 14px; letter-spacing: .02em; text-transform: uppercase; cursor: pointer; }
.review-tab.current { background: var(--print-ink); color: #fffefa; }
.review-detail { min-height: 138px; margin-top: 9px; padding: 12px 14px; border: 2px solid var(--print-ink); background: #fffefa; }
.review-question { margin: 0 0 9px; font-family: var(--serif); font-size: 19px; line-height: 1.15; }
.review-answer, .review-correct-answer, .review-explanation { margin: 0 0 4px; font-size: 13px; line-height: 1.3; }
.review-explanation { margin: 8px 0 0; }
@media (max-width: 620px) {
  .results-with-review h2 { font-size: 39px; }
  .answer-review { margin-top: 15px; padding-top: 11px; }
  .review-tab { min-height: 39px; padding: 4px 5px; font-size: 11px; }
  .review-detail { min-height: 0; padding: 10px 11px; }
  .review-question { font-size: 17px; }
}
@media (max-width: 620px) and (max-height: 700px) {
  .results-with-review h2 { margin-bottom: 5px; font-size: 34px; }
  .results-with-review .score { font-size: 48px; }
  .results-with-review .emoji-row { margin-bottom: 8px; font-size: 29px; }
  .result-actions { gap: 7px; }
  .answer-review { margin-top: 11px; padding-top: 8px; }
  .review-heading { margin-bottom: 6px; font-size: 17px; }
  .review-tabs { gap: 4px; }
  .review-tab { min-height: 34px; }
  .review-detail { margin-top: 6px; padding: 7px 9px; }
  .review-question { margin-bottom: 5px; font-size: 15px; }
  .review-answer, .review-correct-answer, .review-explanation { font-size: 12px; }
  .review-explanation { margin-top: 5px; }
}
@media (max-width: 360px) {
  .review-tab { flex-direction: column; justify-content: center; gap: 0; padding: 2px 1px; font-size: 10px; line-height: 1; }
  .review-tab span:last-child { font-size: 13px; }
}
@media (max-width: 360px) and (max-height: 600px) {
  .results-with-review h2 { margin-bottom: 2px; font-size: 29px; }
  .results-with-review .score { font-size: 42px; margin-bottom: 2px; }
  .results-with-review .emoji-row { margin-bottom: 5px; font-size: 24px; }
  .results-with-review .result-actions { gap: 5px; }
  .results-with-review .result-actions .primary-button,
  .results-with-review .result-actions .restart-button { min-height: 34px; padding: 5px; }
  .answer-review { margin-top: 8px; padding-top: 6px; }
  .review-heading { margin-bottom: 4px; font-size: 15px; }
  .review-tab { min-height: 30px; }
  .review-detail { padding: 6px 7px; }
  .review-question { font-size: 14px; }
  .review-answer, .review-correct-answer, .review-explanation { font-size: 11px; }
}
