/* Wige web app — mirrors the iOS app: Mali, warm grey ground, Wige red,
   mauve turn card, inset grouped lists, light and dark appearance. */
:root {
  --bg: #ebe8e8;            /* DynamicBackgroundModifier light */
  --surface: #ffffff;
  --surface-2: #f5f2f2;     /* customBackground */
  --ink: #3a2a2a;
  --ink-2: #6b5858;
  --muted: #8c7a7a;
  --accent: #d92626;        /* customAccent */
  --accent-press: #b81f1f;
  --card: #7a6161;          /* turn card */
  --secondary: #998080;     /* customSecondary, disabled buttons */
  --sep: rgba(58, 42, 42, .1);
  --success: #34c759;
  --radius: 12px;           /* ElegantButtonStyle */
  --radius-lg: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --font: "Mali", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --tabbar-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f0f; --surface: #1c1a1a; --surface-2: #242121; --ink: #f2ecec; --ink-2: #c9bfbf; --muted: #a39696;
    --card: #7a6161; --secondary: #5c4c4c; --sep: rgba(255,255,255,.1); color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; min-height: 100dvh; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main:focus { outline: none; }

/* ---------- Shell: bottom tab bar on phones, sidebar on wide screens ---------- */
.shell { min-height: 100dvh; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); display: flex; justify-content: space-around; align-items: stretch;
  background: color-mix(in srgb, var(--surface-2) 88%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-top: 1px solid var(--sep);
}
.tabbar__brand, .tabbar__app { display: none; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--secondary); transition: color .2s var(--ease); }
.tab svg { width: 26px; height: 26px; }
.tab.is-active { color: var(--accent); }
.screen { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 24px); max-width: 760px; margin: 0 auto; }

@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 260px 1fr; }
  .tabbar { position: sticky; top: 0; height: 100dvh; flex-direction: column; justify-content: flex-start; gap: 4px; padding: 24px 16px; border-top: 0; border-right: 1px solid var(--sep); }
  .tabbar__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 24px; padding: 4px 10px 24px; }
  .tabbar__brand img { border-radius: 9px; }
  .tab { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; font-size: 17px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); }
  .tab:hover { background: var(--sep); }
  .tab.is-active { background: var(--surface); color: var(--accent); }
  .tabbar__app { display: flex; margin-top: auto; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--ink); color: var(--surface-2); font-size: 15px; }
  .screen { padding: 0 40px 48px; max-width: 900px; margin: 0; width: 100%; }
}

/* ---------- Navigation bar ---------- */
.navbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 8px 16px 6px; padding-top: max(8px, env(safe-area-inset-top)); }
.navbar__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 44px; gap: 8px; }
.navbar__title { margin: 0; font-size: 17px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; }
.navbar__large { margin: 4px 0 6px; font-size: 32px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.navbar__back { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-size: 17px; justify-self: start; min-height: 44px; }
.navbar__trailing { justify-self: end; display: flex; gap: 8px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: transparent; border: 0; cursor: pointer; transition: background-color .2s; }
.icon-btn:hover { background: var(--sep); }
.icon-btn--small { width: 36px; height: 36px; color: var(--muted); }
.icon-btn--small svg { width: 18px; height: 18px; }
.icon-btn--small:hover { color: var(--accent); }
@media (min-width: 900px) { .navbar { padding: 24px 0 8px; } }

.content { padding: 8px 16px 24px; }
@media (min-width: 900px) { .content { padding: 8px 0 24px; } }
.content--with-bar { padding-bottom: 120px; }

/* ---------- Inset grouped lists ---------- */
.group { margin-top: 22px; }
.group__head { margin: 0 0 8px 16px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; display: flex; gap: 8px; align-items: baseline; }
.group__hint { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--accent); }
.group__box { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; }
.group__foot { margin: 8px 16px 0; font-size: 13px; color: var(--muted); }
.row { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; background: none; border: 0; text-align: left; cursor: default; position: relative; }
.row + .row, .row + .faq-row, .faq-row + .faq-row, .row--add + .row { box-shadow: inset 0 1px 0 var(--sep); }
a.row, button.row, label.row { cursor: pointer; transition: background-color .15s; }
a.row:hover, button.row:hover, label.row:hover { background: var(--surface-2); }
a.row:active, button.row:active { background: var(--sep); }
.row > svg:first-child { color: var(--accent); }
.row > svg:last-child { color: var(--muted); width: 18px; height: 18px; }
.row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row__main small { color: var(--muted); font-size: 14px; }
.row__meta { color: var(--muted); display: inline-flex; gap: 6px; align-items: center; font-size: 15px; }
.row__meta svg { width: 16px; height: 16px; color: var(--accent); }
.row__emoji { font-size: 26px; width: 36px; text-align: center; }
.row__accessory { color: var(--accent); }
.row--person > svg:first-child { color: var(--secondary); width: 28px; height: 28px; }
.row--danger { color: var(--accent); }
.row--add input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 8px 0; outline: none; }
.row--add input::placeholder { color: var(--muted); }
.pill { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.pill--accent { background: var(--accent); color: #fff; }

.banner { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--accent); color: #fff; font-weight: 600; }
.banner svg:last-child { margin-left: auto; }
.footnote { text-align: center; color: var(--muted); font-size: 13px; margin: 28px 16px 0; }

/* ---------- Forms ---------- */
.field { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 16px; }
.field + .field { box-shadow: inset 0 1px 0 var(--sep); }
.field > input[type="text"] { width: 100%; border: 0; background: transparent; padding: 10px 0; outline: none; font-size: 17px; }
.field input::placeholder { color: var(--muted); }
.field--row { justify-content: space-between; }
.field--row > span { flex: 1; }
.field--row input, .field--row select { border: 0; background: var(--surface-2); border-radius: 10px; padding: 8px 12px; max-width: 60%; color: var(--ink); }
.field--row select { appearance: none; -webkit-appearance: none; padding-right: 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d92626'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 6px center; background-size: 18px; text-align: right; }
.field--stack { flex-direction: column; align-items: stretch; gap: 6px; padding: 12px 16px 16px; }
.field__line { display: flex; justify-content: space-between; }
.field__line output { color: var(--accent); font-weight: 700; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: var(--surface-2); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--surface-2); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }

/* ---------- Buttons (ElegantButtonStyle) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 18px; border-radius: var(--radius); border: 0; cursor: pointer; font-weight: 600; font-size: 17px; transition: transform .25s var(--spring), background-color .2s var(--ease), opacity .2s; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover:not(:disabled) { background: var(--accent-press); }
.btn--primary:disabled { background: var(--secondary); cursor: not-allowed; }
.btn--secondary { background: var(--surface); color: var(--accent); }
.btn--plain { background: transparent; color: var(--accent); }
.btn--danger { background: var(--accent); color: #fff; }
.btn--danger-text { display: flex; margin: 24px auto 0; color: var(--accent); }
.btn--small { min-height: 36px; padding: 6px 12px; font-size: 15px; }
.btn--wide { width: 100%; }
.bottom-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 15; padding: 12px 16px; background: linear-gradient(to top, var(--bg) 70%, transparent); }
.bottom-bar .hint { text-align: center; font-size: 13px; color: var(--muted); margin: 8px 0 0; }
@media (min-width: 900px) { .bottom-bar { position: sticky; bottom: 0; padding: 16px 0 24px; } }

/* ---------- Empty state ---------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 48px 24px; }
.empty__icon { width: 96px; height: 96px; border-radius: 50%; background: var(--surface); color: var(--accent); display: grid; place-items: center; }
.empty__icon svg { width: 48px; height: 48px; }
.empty p { color: var(--ink-2); max-width: 30ch; margin: 0; }
.empty .btn { width: min(320px, 100%); }
.empty--inline { padding: 32px 16px; grid-column: 1 / -1; }

/* ---------- Mode cards (GameModeCard) ---------- */
.mode-list { display: grid; gap: 12px; }
.mode-card { display: grid; gap: 10px; text-align: left; padding: 18px; border-radius: var(--radius-lg); background: var(--surface); border: 2px solid transparent; cursor: pointer; transition: border-color .2s, transform .25s var(--spring); }
.mode-card:hover { transform: translateY(-2px); }
.mode-card.is-selected { border-color: var(--accent); }
.mode-card__head { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.mode-card__head svg { color: var(--accent); }
.mode-card__head .pill { margin-left: auto; }
.mode-card__text { color: var(--ink-2); font-size: 15px; }

/* ---------- Game (GameTurnView) ---------- */
.game { min-height: 100dvh; display: flex; flex-direction: column; }
.navbar--game { padding-left: 16px; padding-right: 16px; }
.game__body { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 4px 16px 140px; }
.game__note { text-align: center; color: var(--ink-2); font-size: 15px; margin: 4px auto 24px; max-width: 46ch; }
.game__layout { display: grid; gap: 32px; }
@media (min-width: 900px) { .game__layout { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.game__turn { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.game__count { margin: 0; color: var(--ink-2); }
.game__name { margin: 0 0 24px; font-size: clamp(26px, 6vw, 34px); line-height: 1.15; color: var(--accent); }
.game__hint { color: var(--muted); font-size: 15px; margin: 16px 0 0; }

.gift-orb { position: relative; width: min(260px, 70vw); aspect-ratio: 1; border: 0; padding: 0; cursor: pointer; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center;
  transition: border-radius .6s var(--spring), width .6s var(--spring), background-color .5s var(--ease), transform .25s var(--spring); }
.gift-orb:active { transform: scale(.97); }
.gift-orb__rings i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); animation: ring 2.4s var(--ease) infinite; opacity: 0; }
.gift-orb__rings i:nth-child(2) { animation-delay: .4s; } .gift-orb__rings i:nth-child(3) { animation-delay: .8s; }
.gift-orb__rings i:nth-child(4) { animation-delay: 1.2s; } .gift-orb__rings i:nth-child(5) { animation-delay: 1.6s; } .gift-orb__rings i:nth-child(6) { animation-delay: 2s; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
.gift-orb__icon svg { width: 46%; height: auto; aspect-ratio: 1; transition: opacity .3s, transform .5s var(--spring); }
.gift-orb__icon { display: grid; place-items: center; grid-area: 1 / 1; width: 100%; height: 100%; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
.gift-orb__text { grid-area: 1 / 1; padding: 28px; font-size: 21px; font-weight: 600; line-height: 1.3; opacity: 0; transform: scale(.9); transition: opacity .4s .15s, transform .5s .15s var(--spring); }
.gift-orb.is-revealed { width: min(440px, 100%); aspect-ratio: auto; min-height: 220px; border-radius: 28px; background: var(--card); cursor: default; }
.gift-orb.is-revealed .gift-orb__rings, .gift-orb.is-revealed .gift-orb__icon { display: none; }
.gift-orb.is-revealed .gift-orb__text { opacity: 1; transform: none; }

.game__history { background: var(--surface); border-radius: var(--radius-lg); padding: 20px; }
.game__history h2 { margin: 0 0 12px; font-size: 19px; }
.game__history ol { list-style: none; padding: 0; margin: 0; display: grid; }
.game__history li { display: grid; gap: 2px; padding: 12px 0; }
.game__history li + li { box-shadow: inset 0 1px 0 var(--sep); }
.game__history span { color: var(--ink-2); font-size: 15px; }
.bottom-bar--game { bottom: 0; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.bottom-bar--game .btn { max-width: 520px; margin: 0 auto; display: flex; }
@media (min-width: 900px) { .bottom-bar--game { position: fixed; } }

/* ---------- Summary ---------- */
.summary { display: flex; flex-direction: column; align-items: center; text-align: center; }
.summary__icon { width: 88px; height: 88px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; margin-top: 12px; }
.summary__icon svg { width: 44px; height: 44px; }
.summary__title { margin: 16px 0 4px; font-size: 32px; }
.summary__text { margin: 0 0 24px; color: var(--ink-2); }
.summary__grid { list-style: none; padding: 0; margin: 0; width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; text-align: left; }
.summary__card { background: var(--surface); border-radius: var(--radius-lg); padding: 16px; display: grid; gap: 8px; }
.summary__card span { color: var(--ink-2); font-size: 15px; }

.app-promo { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 16px; border-radius: var(--radius-lg); background: var(--ink); color: var(--surface-2); text-align: left; width: 100%; }
.app-promo > svg:first-child { width: 30px; height: 30px; }
.app-promo span { display: grid; flex: 1; }
.app-promo small { opacity: .8; font-size: 14px; }

/* ---------- Gift ideas ---------- */
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 12px; padding: 0 12px; margin-top: 8px; }
.search svg { color: var(--muted); width: 20px; }
.search input { flex: 1; border: 0; background: transparent; padding: 12px 0; outline: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; border-radius: 999px; padding: 8px 14px; background: var(--surface); cursor: pointer; font-size: 15px; transition: background-color .2s, color .2s; }
.chip.is-on { background: var(--accent); color: #fff; }
.price-filter { display: grid; gap: 2px; margin: 12px 4px 4px; font-size: 15px; color: var(--ink-2); }
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 12px; }
.idea { background: var(--surface); border-radius: var(--radius-lg); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.idea__cat { align-self: flex-start; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.idea h3 { margin: 6px 0 0; font-size: 18px; }
.idea__price { margin: 0; color: var(--accent); font-weight: 600; font-size: 15px; }
.idea__text { margin: 0; color: var(--ink-2); font-size: 15px; flex: 1; }
.idea__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--accent); font-size: 15px; }
.idea__link svg { width: 16px; height: 16px; }

/* ---------- Settings ---------- */
.switch { width: 52px; height: 32px; border-radius: 999px; border: 0; background: var(--secondary); position: relative; cursor: pointer; flex: none; transition: background-color .25s var(--ease); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .3s var(--spring); }
.switch[aria-checked="true"] { background: var(--success); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.faq-row summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 16px; cursor: pointer; list-style: none; }
.faq-row summary::-webkit-details-marker { display: none; }
.faq-row summary svg { color: var(--muted); width: 18px; transition: transform .25s var(--ease); }
.faq-row[open] summary svg { transform: rotate(90deg); }
.faq-row p { margin: 0; padding: 0 16px 16px; color: var(--ink-2); font-size: 15px; }

/* ---------- Onboarding ---------- */
.onboarding { min-height: 100dvh; max-width: 520px; margin: 0 auto; padding: 32px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.ob__art { width: 100%; height: 300px; flex: none; display: grid; place-items: center; overflow: hidden; }
.ob__img { height: 300px; width: auto; max-width: 100%; object-fit: cover; border-radius: 28px; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.ob__title { margin: 8px 0 0; font-size: 26px; line-height: 1.2; color: var(--accent); }
.ob__text { margin: 0; color: var(--ink-2); max-width: 32ch; font-weight: 500; }
.ob__dots { display: flex; gap: 8px; margin: 12px 0; }
.ob__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); opacity: .4; transition: opacity .3s, width .3s var(--spring); }
.ob__dots i.is-on { opacity: 1; width: 22px; border-radius: 4px; background: var(--accent); }
.onboarding .btn--wide { max-width: 360px; margin-top: auto; }
.ob-circle { position: relative; width: 280px; height: 280px; }
.ob-circle__p { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 700; transition: background-color .3s, color .3s, transform .4s var(--spring); }
.ob-circle__p.is-on { background: var(--accent); color: #fff; transform: scale(1.2); }
.ob-circle__center { position: absolute; inset: 70px; border-radius: 50%; background: var(--card); color: #fff; display: grid; place-content: center; padding: 14px; gap: 4px; font-size: 13px; }
.ob-circle__center b { font-size: 15px; }
.ob-pairs { width: 100%; display: grid; gap: 20px; justify-items: center; }
.ob-pairs__row { display: flex; align-items: center; gap: 10px; font-size: 30px; }
.ob-pairs__row svg { width: 56px; height: 56px; color: var(--card); }
.ob-pairs__row i { width: 60px; height: 4px; border-radius: 2px; background: var(--accent); }
.ob-pairs.is-swap b { animation: hop .9s var(--spring); }
.ob-pairs.is-swap b:last-of-type { animation-delay: .1s; }
@keyframes hop { 40% { transform: translateY(-18px) rotate(-10deg); } }
.ob-pairs p { margin: 0; font-weight: 600; color: var(--ink-2); }

/* ---------- Sheets, toasts, confetti ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(20, 10, 10, .4); display: grid; align-items: end; justify-items: center; opacity: 0; transition: opacity .25s var(--ease); }
.sheet-backdrop.is-in { opacity: 1; }
.sheet { width: min(480px, 100%); background: var(--surface); border-radius: 24px 24px 0 0; padding: 28px 24px max(24px, env(safe-area-inset-bottom)); transform: translateY(40px); transition: transform .35s var(--spring); text-align: center; }
.sheet-backdrop.is-in .sheet { transform: none; }
@media (min-width: 600px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 24px; } }
.sheet__icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.sheet__title { margin: 0 0 8px; font-size: 22px; }
.sheet__text { margin: 0 0 20px; color: var(--ink-2); }
.sheet__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet__actions--stack { grid-template-columns: 1fr; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 90px); z-index: 60; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--surface-2); padding: 12px 18px; border-radius: 999px; font-size: 15px; transition: opacity .25s, transform .35s var(--spring); }
.toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.confetti span { position: absolute; font-size: 22px; animation: burst 1.4s cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes burst { from { transform: translate(-50%, -50%) scale(.4); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 260px)) rotate(var(--rot)) scale(1); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
/* Crawlable description below the game (also useful to first-time visitors). */
.play-about{max-width:720px;margin:0 auto;padding:32px 20px 120px;color:var(--ink);line-height:1.55}
.play-about[hidden]{display:none}
.play-about h1{font-size:1.4rem;line-height:1.25;margin:0 0 .6rem}
.play-about h2{font-size:1.05rem;margin:1.4rem 0 .3rem}
.play-about p{margin:0 0 .6rem;opacity:.85}
.play-about a{color:inherit;font-weight:600}
