@font-face { font-family: "Patrick Hand"; src: url(patrick-hand.ttf) format("truetype"); font-display: swap; }
:root {
  --navy: #142442;
  --button: #223b53;
  --cream: #faf4ea;
  --gold: #ffecae;
  --coral: #fbd5c9;
  --teal: #d3e8de;
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--cream);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
body:has(.welcome:not([hidden])) {
  background:
    radial-gradient(circle at calc(100% + 75px) 6%, #ff7952 0 143px, transparent 144px),
    radial-gradient(circle at -84px 72%, #62a29c 0 145px, transparent 146px),
    radial-gradient(circle at calc(100% + 70px) calc(100% + 110px), #f4b62f 0 154px, transparent 155px),
    #f5f4f2;
}
main { min-height: 100svh; display: grid; place-items: center; padding: 24px 18px; }
section { width: min(100%, 510px); text-align: center; }
h1, h2, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .47; }
button:focus-visible { outline: 3px solid #a34730; outline-offset: 4px; }
h2[tabindex]:focus { outline: none; }
.welcome { display: flex; align-items: center; flex-direction: column; }
.wordmark { display: block; width: min(69vw, 326px); max-height: 24svh; object-fit: contain; height: auto; }
.tagline { font-size: clamp(1rem, 4.45vw, 1.52rem); font-weight: 800; margin-top: 7px; }
.stack { display: block; width: min(100%, 430px); max-height: 43svh; object-fit: contain; height: auto; margin: 9px 0 15px; }
.primary {
  border: 0;
  border-radius: 13px;
  background: var(--button);
  color: white;
  min-height: 46px;
  padding: 10px 27px;
  font-size: 1.1rem;
  font-weight: 750;
}
.primary:hover:not(:disabled) { background: #162b40; }
.play {
  background: #213344;
  border-radius: 18px;
  box-shadow: 8px 9px #ff7952;
  width: min(68%, 300px);
  font-size: clamp(1.55rem, 6vw, 2.32rem);
}
.text-button { background: none; border: 0; min-height: 44px; padding: 8px 12px; font-weight: 750; }
.text-button:hover:not(:disabled), .underlined { text-decoration: underline; text-underline-offset: .23em; }
.welcome .text-button { margin-top: 17px; font-size: 1.06rem; }
.picker { max-width: 410px; }
.picker h2, dialog h2 { font-size: clamp(1.72rem, 6vw, 2.25rem); line-height: 1.1; text-wrap: balance; }
.picker-hint { margin-top: 9px; }
.category-list { display: grid; gap: 10px; margin: 21px 0; }
[data-category="laughs"] { --card: var(--gold); }
[data-category="stories"] { --card: var(--coral); }
[data-category="deeper"] { --card: var(--teal); }
[data-category="mix"] { --card: #f4e9dc; }
.category-option {
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 12px 15px;
}
.category-option[aria-pressed="true"] { border-color: var(--navy); }
.category-option strong { display: block; margin-bottom: 4px; font-size: 1.07rem; }
.category-option small { display: block; font-size: .9rem; line-height: 1.3; }
.check {
  display: grid;
  place-items: center;
  border: 1px solid #5b6472;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: transparent;
}
[aria-pressed="true"] .check { color: white; background: var(--navy); }
.picker .primary { width: 100%; }
.picker #back { margin-top: 6px; }
body:has(.game:not([hidden])) { background: #f5f4f2; }
.game {
  --outline: #213344;
  max-width: 505px;
  padding: 0 12px;
}
.game h2 {
  margin: 0 0 34px;
  font-size: clamp(.875rem, 3.4vw, 1rem);
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.paper {
  --front: #f4b62f;
  --back: #62a29c;
  --middle: #ff7952;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(310px, 50svh, 425px);
  padding: clamp(25px, 6vw, 42px);
  color: var(--outline);
}
.paper[data-color="coral"] { --front: #ff7952; --back: #f4b62f; --middle: #62a29c; }
.paper[data-color="teal"] { --front: #62a29c; --back: #ff7952; --middle: #f4b62f; }
.paper::before, .paper::after, .paper-face {
  position: absolute;
  inset: 0;
  border: 4px solid var(--outline);
  border-radius: 27px;
  pointer-events: none;
}
.paper::before {
  content: "";
  z-index: -3;
  background: var(--back);
  transform: translate(-5px, 0) rotate(-5deg);
  box-shadow: 6px 8px 0 var(--outline);
}
.paper::after {
  content: "";
  z-index: -2;
  background: var(--middle);
  transform: translate(6px, 3px) rotate(4deg);
  box-shadow: 6px 8px 0 var(--outline);
}
.paper-face {
  z-index: -1;
  background: var(--front);
  box-shadow: 7px 9px 0 var(--outline);
  transition: background-color 180ms ease;
}
.prompt {
  position: relative;
  max-width: 100%;
  font-family: inherit;
  font-size: clamp(1.65rem, 6.6vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-wrap: pretty;
  overflow-wrap: break-word;
}
.choices { font-size: clamp(1.4rem, 5.7vw, 1.95rem); }
.choice-intro { margin-bottom: .65em; }
.choice-or { font-size: .65em; margin: .6em 0; font-weight: 700; }
.next { margin-top: 43px; }
.game-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 13px auto 0;
  max-width: 400px;
}
.card-enter { animation: card-enter 170ms ease-out; }
@keyframes card-enter {
  from { opacity: .65; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .card-enter { animation: none; }
  .paper-face { transition: none; }
}
@media (max-width: 359px) {
  .game { padding: 0 9px; }
  .paper { padding: 24px 20px; }
  .prompt { font-size: 1.5rem; }
  .choices { font-size: 1.3rem; }
}
dialog { width: min(420px, calc(100% - 32px)); padding: 24px; border: 2px solid var(--navy); border-radius: 15px; background: var(--cream); color: var(--navy); }
dialog p { margin: 14px 0; line-height: 1.45; }
dialog::backdrop { background: #14244283; }
