/* Pentacula Mini — shared look of the series.
   Tokens follow docs/mini_games/STYLE.md: velvet table, warm gold, candle light. No new colours. */

@font-face { font-family: "PM Cormorant"; src: url("fonts/cormorant-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: block; }
@font-face { font-family: "PM Cormorant"; src: url("fonts/cormorant-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: "PM Cormorant"; src: url("fonts/cormorant-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: block; }
@font-face { font-family: "PM Cormorant"; src: url("fonts/cormorant-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: block; }

:root {
  --night: #0A090D; --velvet: #16131F; --raised: #211C2E; --line: #3A3349;
  --gold: #D4AF37; --gold-light: #F2D170; --gold-pale: #F3DFA2; --gold-gleam: #FFF0C2;
  --ivory: #F5EEE3; --mist: #A8A3B8; --candle: #E9A15B;
  --serif: "PM Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1); /* outQuint */
  --pad: 20px;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--night); overflow: hidden; }
body {
  color: var(--ivory); font-family: var(--sans); font-size: 16px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none; touch-action: none; overscroll-behavior: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, .chip:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* The room around the table: on wide screens the play column sits in the middle of velvet. */
#room {
  position: fixed; inset: 0;
  background:
    radial-gradient(120% 70% at 50% 8%, rgba(233,161,91,.10), transparent 60%),
    radial-gradient(90% 90% at 50% 50%, #1b1726 0%, var(--velvet) 45%, var(--night) 100%);
}
#room::after { /* candle light breathes, 7 s */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 50% at 50% 0%, rgba(233,161,91,.09), transparent 70%);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

#stage {
  position: absolute; left: 50%; top: 0; height: 100%;
  width: min(100vw, calc(100dvh * 0.62)); transform: translateX(-50%);
  overflow: hidden; isolation: isolate;
}
@supports not (height: 100dvh) { #stage { width: min(100vw, calc(100vh * 0.62)); } }
#stage.dawn #room-tint { opacity: 1; }
#room-tint { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 2s var(--ease);
  background: radial-gradient(90% 45% at 50% 0%, rgba(255,214,150,.13), transparent 70%); }

canvas.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; transition: opacity .9s var(--ease), filter .9s var(--ease); }
canvas.scene.away { opacity: 0; filter: blur(6px); pointer-events: none; }
canvas#dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }

/* ---------- top corner: progress dots left, coin menu right ---------- */
.top { position: absolute; z-index: 20; left: 0; right: 0; top: 0; height: 64px; padding: 14px var(--pad) 0; display: flex; align-items: flex-start; justify-content: space-between; pointer-events: none; }
.top > * { pointer-events: auto; }
.dots { display: flex; gap: 8px; padding-top: 12px; min-height: 22px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.3px solid var(--gold-light); opacity: .75; transition: background .6s var(--ease), box-shadow .6s var(--ease), opacity .6s; }
.dots i.on { background: var(--gold-light); opacity: 1; box-shadow: 0 0 10px rgba(242,209,112,.7); }
.coin-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(10,9,13,.35); box-shadow: 0 0 0 1px rgba(242,209,112,.35), 0 6px 18px rgba(0,0,0,.45); transition: transform .4s var(--ease), box-shadow .4s; }
.coin-btn img { width: 36px; height: 36px; border-radius: 50%; display: block; }
.coin-btn:active { transform: scale(.94); }

/* ---------- screens ---------- */
.screen { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; padding: 72px var(--pad) calc(22px + env(safe-area-inset-bottom)); pointer-events: none; }
.screen > * { pointer-events: auto; }
.screen.enter { animation: screen-in .9s var(--ease) both; }
.screen.leave { animation: screen-out .6s var(--ease) both; pointer-events: none; }
.screen.leave > * { pointer-events: none; }
@keyframes screen-in { from { opacity: 0; filter: blur(6px); transform: translateY(14px); } to { opacity: 1; filter: none; transform: none; } }
@keyframes screen-out { to { opacity: 0; filter: blur(5px); transform: translateY(10px); } }
.grow { flex: 1 1 auto; pointer-events: none !important; }

/* prompt over the table — one thought per screen */
.prompt { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 30px; line-height: 1.12; color: var(--gold-pale); text-align: center; max-width: 330px; margin: 0 auto; text-shadow: 0 2px 18px rgba(0,0,0,.7); min-height: 34px; }
.prompt .g { display: inline-block; opacity: 0; filter: blur(4px); animation: glyph .8s var(--ease) forwards; }
@keyframes glyph { 0% { opacity: 0; filter: blur(4px); color: var(--gold-gleam); } 60% { opacity: 1; filter: none; color: var(--gold-gleam); } 100% { opacity: 1; filter: none; color: var(--gold-pale); } }
.hint { font-family: var(--sans); font-size: 15px; color: var(--mist); text-align: center; text-shadow: 0 1px 10px rgba(0,0,0,.8); transition: opacity .6s; }

/* ---------- splash ---------- */
.splash { padding-top: 0; }
.hero { position: relative; width: calc(100% + 2 * var(--pad)); margin: 0 calc(-1 * var(--pad)); flex: 1 1 auto; min-height: 150px; overflow: hidden; pointer-events: none !important; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 62%, transparent 100%);
  animation: hero-live 16s ease-in-out infinite alternate; }
@keyframes hero-live { from { transform: scale(1.02); } to { transform: scale(1.08) translateY(-1.5%); } }
.title { font-family: var(--serif); font-weight: 500; font-size: 46px; line-height: 1.02; color: var(--gold-pale); margin: 6px 0 20px; text-align: center; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 340px; margin-bottom: 24px; }
.chip { min-height: 40px; padding: 0 17px; border-radius: 20px; font-family: var(--serif); font-weight: 500; font-size: 19px; color: var(--gold-pale); box-shadow: inset 0 0 0 1px rgba(243,223,162,.32); transition: box-shadow .4s var(--ease), color .4s, background .4s; }
.chip[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--gold-light), 0 0 16px rgba(242,209,112,.25); color: var(--gold-gleam); background: rgba(212,175,55,.08); }

/* ---------- buttons: gold one in the centre, quiet one under it ---------- */
.btn { position: relative; display: flex; align-items: center; justify-content: center; height: 56px; min-width: 230px; padding: 0 30px; border-radius: 28px; white-space: nowrap; overflow: hidden;
  font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: .01em; color: #241a06;
  background: linear-gradient(180deg, #F6DC86 0%, #E2BD4E 46%, #C99B2B 100%);
  box-shadow: 0 0 0 1px rgba(255,240,194,.55) inset, 0 -2px 0 rgba(120,80,10,.35) inset, 0 10px 26px rgba(0,0,0,.5), 0 0 22px rgba(212,175,55,.25);
  transition: transform .35s var(--ease), filter .35s, opacity .5s; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,250,225,.55), transparent); animation: sheen 5.5s var(--ease) infinite 1.5s; }
@keyframes sheen { 0% { left: -60%; } 30%, 100% { left: 130%; } }
.btn:active { transform: scale(.97); filter: brightness(1.08); }
.btn[disabled] { opacity: .35; pointer-events: none; }
.quiet { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px; font-family: var(--serif); font-weight: 500; font-size: 19px; color: var(--gold-light); white-space: nowrap; }
.quiet:active { opacity: .7; }
.actions { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }

/* ---------- the quiet line about Pentacula: one look across the series ---------- */
.adline { font-family: var(--sans); font-size: 14px; line-height: 1.35; color: var(--mist); text-align: center; max-width: 300px; margin: 0 auto; }
.adline b { font-weight: 600; color: var(--gold-light); }
.answer .actions { margin-top: 14px; }
/* topics: only the chosen one is drawn as a pill */
.chip:not([aria-pressed="true"]) { box-shadow: none; color: var(--mist); }
.adline.promo { display: block; min-height: 44px; padding: 8px 0; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(168,163,184,.35); text-underline-offset: 4px; }

/* ---------- answer sheet ---------- */
.answer { padding-top: 70px; overflow-y: auto; touch-action: pan-y; -webkit-overflow-scrolling: touch; justify-content: flex-start; }
.answer h2 { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.08; color: var(--gold-pale); margin: 0 0 16px; text-align: center; }
.rows:empty { display: none; }
.rows { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 380px; margin-bottom: 18px; }
.row { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; opacity: 0; transform: translateY(12px); animation: row-in 1s var(--ease) forwards; }
.row .pic { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #2a2338, #15111d 70%); box-shadow: 0 0 0 1px rgba(242,209,112,.35), 0 0 24px rgba(212,175,55,.18); overflow: hidden; }
.row .pic canvas, .row .pic img { width: 100%; height: 100%; display: block; }
.row .pic.card { border-radius: 8px; height: 112px; }
.row .pic.card img { object-fit: cover; }
.label { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.name { font-family: var(--serif); font-weight: 500; font-size: 27px; line-height: 1.08; color: var(--gold-pale); margin: 2px 0 4px; }
.line { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.32; color: var(--ivory); }
@keyframes row-in { to { opacity: 1; transform: none; } }
/* picks (Rune Cast, Coffee Cup): items in a row, the touched one speaks; the whole answer sits in the middle of the screen */
/* the answer is built of two groups (what was drawn, what it says); in portrait they are one column */
.a-main, .a-side { display: contents; }
.answer.airy .a-main > :first-child { margin-top: auto; } .answer.airy .a-side > :last-child { margin-bottom: auto; } .answer.airy { padding-bottom: 40px; }
.pick-row { display: flex; justify-content: center; gap: 12px; width: 100%; max-width: 356px; margin: 18px 0 30px; }
/* a long name ("The Guiding Star") takes two balanced lines at most, never three (task 308) */
.pick { flex: 0 1 110px; min-width: 0; display: grid; justify-items: center; gap: 10px; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; opacity: 0; transform: translateY(12px); animation: row-in 1s var(--ease) forwards; -webkit-tap-highlight-color: transparent; }
.pick .pic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #2a2338, #15111d 70%); box-shadow: 0 0 0 1px rgba(242,209,112,.18); transition: box-shadow .4s, filter .4s; filter: saturate(.6) brightness(.7); }
.pick .pic canvas { width: 100%; height: 100%; display: block; }
.pick .sname { font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.1; color: var(--mist); transition: color .4s; text-align: center; text-wrap: balance; }
.pick[aria-pressed="true"] .pic { filter: none; box-shadow: 0 0 0 1.5px rgba(242,209,112,.75), 0 0 28px rgba(212,175,55,.3); }
.pick[aria-pressed="true"] .sname { color: var(--gold-pale); }
.pick:focus-visible { outline: none; } .pick:focus-visible .pic { outline: 2px solid var(--gold-pale); outline-offset: 3px; }
.pick-line { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.5; color: var(--ivory); text-align: center; max-width: 310px; min-height: 6em; margin: 0 0 22px; text-wrap: pretty; opacity: 0; }
.pick-line.show { animation: line-in .7s var(--ease) .1s forwards; }
@keyframes line-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pick-hint { margin: -10px 0 18px; font-size: 13px; color: var(--mist); }

/* ---------- sheets: menu and book ---------- */
.sheet { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; background: rgba(10,9,13,.95); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.sheet.open { opacity: 1; pointer-events: auto; }
.sheet .body { flex: 1; overflow-y: auto; touch-action: pan-y; -webkit-overflow-scrolling: touch; padding: 76px var(--pad) calc(28px + env(safe-area-inset-bottom)); transform: translateY(18px); transition: transform .6s var(--ease); }
.sheet.open .body { transform: none; }
.sheet h2 { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.08; color: var(--gold-pale); margin: 0 0 4px; text-align: center; }
.sheet .count { text-align: center; font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--gold-light); margin-bottom: 18px; }
.close { position: absolute; z-index: 2; right: var(--pad); top: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-pale); box-shadow: 0 0 0 1px rgba(243,223,162,.35); background: rgba(10,9,13,.4); }
.close svg { width: 18px; height: 18px; }
.menu-list { display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin: 18px auto 0; }
.menu-item { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 14px; border-radius: 16px; text-align: left; background: rgba(33,28,46,.7); box-shadow: inset 0 0 0 1px rgba(58,51,73,.9); }
.menu-item .ic { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; color: var(--gold-light); overflow: hidden; }
.menu-item .ic img { width: 100%; height: 100%; object-fit: cover; }
.menu-item .ic svg { width: 26px; height: 26px; }
.menu-item .t { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--gold-pale); line-height: 1.1; }
.menu-item .s { font-size: 14px; color: var(--mist); margin-top: 2px; }
.menu-head { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--gold-pale); text-align: center; margin: 26px 0 0; }

.book-group { margin: 0 auto 22px; max-width: 400px; }
.book-group h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; color: var(--gold-pale); margin: 0 0 10px; }
.cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 10px; }
.cell { position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); background: rgba(22,19,31,.8); overflow: hidden; }
.cell.open { box-shadow: inset 0 0 0 1px rgba(242,209,112,.5), 0 0 14px rgba(212,175,55,.15); background: radial-gradient(circle at 50% 40%, #2b2438, #17131f 75%); }
.cell.new::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--gold-light), 0 0 18px rgba(242,209,112,.6); animation: pulse 2.4s ease-in-out infinite; }
.cell canvas, .cell img { width: 100%; height: 100%; display: block; }
.cell.card { aspect-ratio: 2 / 3; border-radius: 6px; }
.cell.card img { object-fit: cover; }
.cell .star { position: absolute; right: 2px; top: 0; width: 16px; height: 16px; color: var(--gold-light); filter: drop-shadow(0 0 4px rgba(242,209,112,.8)); }
.cell .day { position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--candle); box-shadow: 0 0 6px var(--candle); }
@keyframes pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

.detail { text-align: center; max-width: 360px; margin: 0 auto; }
.detail .big { width: 168px; height: 168px; margin: 4px auto 12px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 40%, #2b2438, #15111d 72%); box-shadow: 0 0 0 1px rgba(242,209,112,.4), 0 0 40px rgba(212,175,55,.2); }
.detail .big.card { width: 190px; height: 285px; border-radius: 12px; }
.detail .big canvas, .detail .big img { width: 100%; height: 100%; display: block; object-fit: cover; }
.detail .name { font-size: 32px; }
.detail .essence { font-family: var(--sans); font-size: 16.5px; line-height: 1.5; color: var(--ivory); opacity: .92; margin: 10px 0 14px; text-align: left; }
.detail .q { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.3; color: var(--gold-pale); margin: 0 0 16px; }

/* ---------- toast (demo only) and finger hint ---------- */
.toast { position: absolute; z-index: 60; left: 50%; bottom: 96px; transform: translate(-50%, 10px); max-width: 320px; padding: 12px 16px; border-radius: 14px; background: rgba(33,28,46,.96); box-shadow: 0 0 0 1px rgba(242,209,112,.35), 0 10px 30px rgba(0,0,0,.5); font-size: 14.5px; color: var(--ivory); text-align: center; opacity: 0; transition: opacity .4s, transform .4s var(--ease); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.finger { position: absolute; z-index: 25; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255,240,194,.55), rgba(242,209,112,.15) 55%, transparent 70%); box-shadow: 0 0 0 1.5px rgba(242,209,112,.6); opacity: 0; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* loading veil */
#veil { position: absolute; inset: 0; z-index: 80; display: grid; place-items: center; background: var(--night); transition: opacity .8s var(--ease); }
#veil img { width: 64px; height: 64px; border-radius: 50%; animation: coin-breathe 2.4s ease-in-out infinite; box-shadow: 0 0 30px rgba(212,175,55,.35); }
#veil.gone { opacity: 0; pointer-events: none; }
@keyframes coin-breathe { 0%, 100% { transform: scale(.96); opacity: .8; } 50% { transform: scale(1.03); opacity: 1; } }

@media (max-height: 640px) {
  .title { font-size: 40px; } .chip { min-height: 36px; font-size: 17px; }
  .prompt { font-size: 26px; } .row { grid-template-columns: 64px 1fr; } .row .pic { width: 64px; height: 64px; } .name { font-size: 24px; } .line { font-size: 18.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .screen.enter, .screen.leave { animation-duration: .3s; }
  .hero img, #room::after, .btn::after { animation: none; }
  .prompt .g { animation-duration: .3s; }
}

/* ---------- play screens ---------- */
.play .hint { margin-bottom: 6px; min-height: 22px; }
.tag { position: absolute; transform: translate(-50%, -100%); padding: 4px 14px; border-radius: 16px; background: radial-gradient(closest-side, rgba(16,11,8,.82), rgba(16,11,8,.55) 70%, rgba(16,11,8,0)); font-family: var(--serif); font-weight: 500; font-size: 21px; color: var(--gold-gleam); text-shadow: 0 0 12px rgba(0,0,0,.95), 0 0 22px rgba(0,0,0,.8), 0 0 8px rgba(242,209,112,.6); white-space: nowrap; pointer-events: none; animation: tag-in 1s var(--ease) both; }
@keyframes tag-in { from { opacity: 0; transform: translate(-50%, -80%); filter: blur(4px); } to { opacity: 1; transform: translate(-50%, -100%); filter: none; } }
.play.candle-room .hint { max-width: calc(100% - 96px); margin-left: auto; margin-right: auto; }
.play.candle-room .adline { max-width: calc(100% - 96px); }
.card-name { position: absolute; transform: translate(-50%, -100%); text-align: center; pointer-events: none; animation: tag-in 1s var(--ease) both; }
.card-name { transform: translate(-50%, 0); animation-name: name-in; font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.1; color: var(--gold-pale); text-shadow: 0 2px 12px rgba(0,0,0,.9); }
.daily-text { text-align: center; max-width: 330px; }
/* Jumping Card answer: the three cards in a row, then one paragraph about them together */
.spread-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; max-width: 330px; margin-bottom: 18px; }
.spread-row figure { margin: 0; display: grid; justify-items: center; gap: 6px; opacity: 0; transform: translateY(12px); animation: row-in 1s var(--ease) forwards; }
.spread-row img { width: 100%; aspect-ratio: 400 / 600; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1px rgba(242,209,112,.35), 0 8px 24px rgba(0,0,0,.5); }
.spread-row figcaption { font-family: var(--serif); font-weight: 500; font-size: 16px; line-height: 1.1; color: var(--gold-pale); text-align: center; }
.reading { font-family: var(--serif); font-size: 21px; line-height: 1.38; color: var(--ivory); max-width: 340px; margin: 0 0 18px; text-align: left; opacity: 0; animation: row-in 1.2s var(--ease) 1.5s forwards; }
.reading em { color: var(--gold-pale); }
/* Coffee Cup: shapes, the joined reading, then the touched shape's question; tighter, so the button fits a 640 px screen */
@media (max-aspect-ratio: 5/4) {
  .answer.airy:has(.reading) { padding-bottom: 22px; }
  .answer.airy:has(.reading) h2 { margin-bottom: 8px; }
  .answer.airy:has(.reading) .pick-row { margin: 12px 0 18px; }
  .answer.airy:has(.reading) .pick .pic { width: 62px; height: 62px; }
  .answer.airy .reading { font-size: 19px; margin-bottom: 12px; }
  .answer .reading ~ .pick-line { font-size: 20px; line-height: 1.4; min-height: 2.8em; margin-bottom: 14px; }
}
.daily-text .name { font-size: 32px; }
.daily-text .line { font-size: 21px; }
@keyframes name-in { from { opacity: 0; transform: translate(-50%, 8px); filter: blur(4px); } to { opacity: 1; transform: translate(-50%, 0); filter: none; } }
.pick .forming { width: 8px; height: 8px; border-radius: 50%; background: var(--mist); opacity: .5; }

/* ---------- wide screens: YouTube Playables on a computer, Facebook on desktop (task 307) ----------
   Portrait 9:16 stays the main layout. From 5:4 and wider the stage takes the whole window instead of a narrow
   column in the middle: the table stays in the centre (every scene sizes itself by the height), the splash puts
   the art left and the title right, the answer puts the drawn symbols left and the text right (STYLE.md §4). */
@media (min-aspect-ratio: 5/4) {
  #stage { width: 100vw; }
  @supports not (height: 100dvh) { #stage { width: 100vw; } }

  .splash { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr;
    column-gap: 4vw; padding: 0 6vw 0 0; justify-items: center; }
  .splash .hero { grid-column: 1; grid-row: 1 / -1; width: 100%; height: 100%; margin: 0; min-height: 0; display: flex; align-items: center; justify-content: center; }
  /* the art at its own proportions (never stretched past its pixels), fading on every side into the room */
  .splash .hero img { position: static; width: auto; height: auto; max-width: 100%; max-height: 100%; min-width: 0;
    -webkit-mask-image: radial-gradient(closest-side, #000 68%, transparent 100%); mask-image: radial-gradient(closest-side, #000 68%, transparent 100%); }
  .splash .title { grid-column: 2; grid-row: 2; font-size: 52px; }
  .splash .chips { grid-column: 2; grid-row: 3; }
  .splash .actions { grid-column: 2; grid-row: 4; }

  .answer, .answer.airy { flex-direction: row; justify-content: center; align-items: center; gap: 6vw; padding: 64px 6vw 28px; }
  .a-main, .a-side { display: flex; flex-direction: column; align-items: center; flex: 0 1 440px; min-width: 0; max-height: 100%; }
  .a-side { justify-content: center; }
  .answer.airy .a-main > :first-child, .answer.airy .a-side > :last-child { margin: 0; }
  .answer h2 { margin-bottom: 22px; font-size: 40px; }
  .answer .pick-row { margin: 8px 0 0; max-width: 440px; gap: 22px; }
  .answer .pick .pic { width: 88px; height: 88px; }
  .answer .pick-line { font-size: 24px; }
  .answer .pick-line { margin-bottom: 14px; max-width: 380px; min-height: 0; }
  .answer .spread-row { max-width: 400px; margin-bottom: 0; }
  .answer .reading { max-width: 400px; }
  .answer .adline { max-width: 340px; }
  .answer .actions { margin-top: 18px; }
  .play .prompt { max-width: 560px; }
}
