:root {
  --bg: #0b0d19;
  --bg-raised: #12162a;
  --panel: rgba(23, 27, 49, 0.82);
  --panel-solid: #15192f;
  --ink: #f1e9d8;
  --ink-soft: #a4a5b6;
  --line: rgba(241, 233, 216, 0.13);
  --gold: #edc665;
  --gold-deep: #8f6a1f;
  --ember: #ed5a36;
  --teal: #36b8a6;
  --paper: #fbf6ea;
  --paper-ink: #20212c;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 24px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); }

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at 22% -10%, rgba(61, 75, 143, 0.32), transparent 36rem),
    radial-gradient(circle at 90% 36%, rgba(109, 50, 44, 0.13), transparent 32rem),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.42;
  background-image:
    radial-gradient(1px 1px at 12% 21%, rgba(255,255,255,.56), transparent),
    radial-gradient(1px 1px at 38% 67%, rgba(255,255,255,.34), transparent),
    radial-gradient(1px 1px at 73% 18%, rgba(255,255,255,.42), transparent),
    radial-gradient(1px 1px at 89% 74%, rgba(255,255,255,.32), transparent),
    radial-gradient(1px 1px at 57% 43%, rgba(255,255,255,.24), transparent);
  background-size: 470px 470px, 390px 390px, 520px 520px, 610px 610px, 340px 340px;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:not(:disabled), a { cursor: pointer; }
button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(237, 198, 101, 0.75);
  outline-offset: 3px;
}

.site-shell { width: min(100%, 1280px); min-height: 100dvh; margin: 0 auto; padding: 0 28px; }

.topbar {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 13px; width: max-content; color: inherit; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid rgba(237, 198, 101, .42); border-radius: 50%;
  color: var(--gold); font: 700 12px/1 var(--serif); box-shadow: inset 0 0 0 4px rgba(237, 198, 101, .05);
}
.brand strong { display: block; font: 600 18px/1 var(--serif); letter-spacing: .18em; }
.brand small { display: block; margin-top: 5px; color: var(--ink-soft); font-size: 8px; letter-spacing: .22em; }

.top-actions { display: flex; justify-content: flex-end; gap: 9px; }
.icon-button, .share-top {
  height: 38px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); color: var(--ink);
}
.icon-button { width: 38px; font-size: 17px; }
.share-top { padding: 0 17px; font-size: 12px; font-weight: 650; }
.share-top:disabled { opacity: .35; cursor: default; }

.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; padding: 28px 0 20px; }
.game-card, .daily-card, .rules-card { border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(18px); }
.game-card {
  min-height: calc(100dvh - 150px); display: flex; flex-direction: column; border-radius: 30px; overflow: hidden;
  border-color: rgba(237,198,101,.18);
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.24), transparent),
    radial-gradient(1px 1px at 34% 72%, rgba(255,255,255,.16), transparent),
    radial-gradient(1px 1px at 68% 22%, rgba(237,198,101,.22), transparent),
    radial-gradient(1px 1px at 88% 66%, rgba(255,255,255,.18), transparent),
    linear-gradient(155deg, rgba(29,36,72,.92), rgba(12,15,31,.94));
  box-shadow: inset 0 0 0 6px rgba(237,198,101,.018), 0 34px 80px rgba(0,0,0,.3);
}
.game-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 25px 28px 16px; }
.eyebrow { margin: 0 0 7px; color: var(--gold); font-size: 9px; font-weight: 750; letter-spacing: .22em; }
.game-heading h1 { margin: 0; font: 500 clamp(27px, 3vw, 38px)/1 var(--serif); }
.game-heading h1 span { color: var(--ember); }
.scoreboard { display: flex; gap: 26px; text-align: right; }
.scoreboard div { min-width: 76px; }
.scoreboard strong { display: block; color: var(--gold); font: 400 27px/1 var(--serif); font-variant-numeric: tabular-nums; }
.scoreboard span { display: block; margin-top: 5px; color: var(--ink-soft); font-size: 8px; letter-spacing: .18em; text-transform: uppercase; }

.sequence-panel { padding: 0 28px 10px; }
.sequence-meta { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--ink-soft); font-size: 8px; letter-spacing: .2em; }
.sequence { position: relative; min-height: 45px; display: flex; align-items: center; gap: 5px; overflow-x: auto; padding: 6px 3px; scrollbar-width: none; }
.sequence::-webkit-scrollbar { display: none; }
.sequence.is-concealed { justify-content: center; border: 1px dashed rgba(237,198,101,.2); border-radius: 13px; background: rgba(0,0,0,.12); }
.sequence-cover { color: var(--ink-soft); font: italic 13px/1 var(--serif); }
.token { flex: 0 0 33px; height: 33px; display: grid; place-items: center; border-radius: 9px; color: var(--ink-soft); font: 16px/1 var(--serif); font-variant-numeric: tabular-nums; transition: .22s ease; }
.token.current { background: var(--paper); color: var(--paper-ink); transform: scale(1.12); box-shadow: 0 8px 22px rgba(0,0,0,.34); font-weight: 700; }
.token.done { opacity: .28; text-decoration: line-through; }

.board { flex: 1; min-height: 420px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; padding: 8px 24px 12px; }
.column {
  position: relative; min-width: 0; overflow: hidden; padding: 0; border: 1px solid rgba(237,198,101,.16); border-radius: 22px;
  background: linear-gradient(180deg, rgba(35,44,84,.76), rgba(9,12,27,.88)); color: var(--ink);
  box-shadow: inset 0 0 0 6px rgba(237,198,101,.018), inset 0 0 0 7px rgba(237,198,101,.06), 0 14px 30px rgba(0,0,0,.12);
  transition: transform .12s ease, border-color .2s ease, opacity .25s ease, box-shadow .25s ease;
}
.column::before { position: absolute; z-index: 1; inset: 11px; border: 1px solid rgba(237,198,101,.11); border-radius: 14px; content: ""; pointer-events: none; }
.column::after { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; content: "✦"; color: var(--ember); font: 58px/1 var(--serif); opacity: 0; pointer-events: none; text-shadow: 0 0 14px rgba(237,90,54,.8), 0 0 32px rgba(237,198,101,.45); }
.column:not([aria-disabled="true"]):hover { border-color: rgba(237,198,101,.46); transform: translateY(-2px); box-shadow: inset 0 0 0 6px rgba(237,198,101,.025), inset 0 0 0 7px rgba(237,198,101,.11), 0 18px 38px rgba(0,0,0,.22); }
.column:not([aria-disabled="true"]):active { transform: scale(.98); }
.column[aria-disabled="true"] { opacity: .68; border-color: rgba(237,198,101,.24); }
.column.is-warm { border-color: rgba(212,170,73,.32); }
.column.is-tense { border-color: rgba(237,90,54,.48); box-shadow: inset 0 0 0 6px rgba(237,90,54,.02), inset 0 0 0 7px rgba(237,90,54,.1), 0 0 28px rgba(237,90,54,.08); }
.column-sky { position: absolute; z-index: 1; inset: 45px 12px 74px; width: calc(100% - 24px); height: calc(100% - 119px); overflow: visible; color: var(--ink); opacity: .15; transition: opacity .28s ease, color .28s ease; }
.column-sky path { fill: none; stroke: currentColor; stroke-width: .75; }
.column-sky circle { fill: currentColor; }
.column:hover .column-sky, .column.is-warm .column-sky { opacity: .25; color: var(--gold); }
.column.is-tense .column-sky { opacity: .32; color: var(--ember); }
.liquid { position: absolute; z-index: 0; inset: auto 0 0; height: 0; background: radial-gradient(circle at 28% 18%, rgba(255,255,255,.16), transparent 32%), linear-gradient(to top, color-mix(in srgb, var(--liquid) 88%, #090c19), color-mix(in srgb, var(--liquid) 52%, transparent)); transition: height .34s cubic-bezier(.22,.84,.34,1), background .3s; }
.liquid::before { position: absolute; top: -2px; left: 0; right: 0; height: 4px; content: ""; background: rgba(255,255,255,.4); border-radius: 50%; box-shadow: 0 0 18px color-mix(in srgb, var(--liquid) 54%, transparent); }
.column-total { position: absolute; inset: auto 0 28px; z-index: 2; font: 400 clamp(38px, 5vw, 66px)/1 var(--serif); font-variant-numeric: tabular-nums; text-shadow: 0 5px 18px rgba(0,0,0,.55); }
.column-name { position: absolute; z-index: 2; top: 14px; left: 0; right: 0; color: var(--ink-soft); font-size: 8px; letter-spacing: .18em; }
.lock-state { position: absolute; z-index: 3; inset: 0; display: none; place-items: center; background: radial-gradient(circle, rgba(15,19,39,.2), rgba(8,11,24,.68)); }
.column[aria-disabled="true"] .lock-state { display: grid; }
.lock-state > span { width: 82px; height: 82px; display: grid; place-content: center; gap: 6px; border: 1px solid rgba(237,198,101,.34); border-radius: 50%; background: rgba(10,12,27,.8); color: var(--gold); box-shadow: inset 0 0 0 7px rgba(237,198,101,.035), 0 0 24px rgba(0,0,0,.28); }
.lock-star { font: 26px/1 var(--serif); text-shadow: 0 0 15px rgba(237,198,101,.42); }
.lock-position { color: var(--ink-soft); font: 700 8px/1 var(--sans); letter-spacing: .11em; }
.column.flash-bust { animation: flashBust .56s ease; }
.column.flash-bust::after { animation: constellationBust .8s cubic-bezier(.18,.8,.22,1); }
.column.flash-bust .column-sky { opacity: .68; color: var(--ember); }
.column.flash-vanish { animation: flashVanish .56s ease; }
.column.shake { animation: shake .3s ease; }

.game-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 62px; padding: 12px 28px; border-top: 1px solid var(--line); }
.game-footer p { margin: 0; color: var(--ink-soft); font-size: 11px; }
.footer-actions { display: flex; flex: none; gap: 13px; }
.text-button { padding: 4px 0; border: 0; background: none; color: var(--ink-soft); font-size: 10px; }
.text-button:hover { color: var(--ink); }

.side-rail { display: flex; flex-direction: column; gap: 18px; }
.daily-card, .rules-card { border-radius: var(--radius); }
.daily-card { position: relative; overflow: hidden; min-height: 390px; padding: 29px; }
.daily-card::after { position: absolute; right: -80px; bottom: -90px; width: 250px; height: 250px; border: 1px solid rgba(237,198,101,.12); border-radius: 50%; content: ""; box-shadow: 0 0 0 28px rgba(237,198,101,.025), 0 0 0 60px rgba(237,198,101,.018); }
.daily-orbit { position: relative; width: 112px; height: 112px; display: grid; place-items: center; margin-bottom: 28px; border: 1px solid rgba(237,198,101,.32); border-radius: 50%; box-shadow: inset 0 0 0 7px rgba(237,198,101,.035); }
.daily-orbit::before, .daily-orbit::after { position: absolute; inset: 9px; border: 1px dashed rgba(237,198,101,.22); border-radius: 50%; content: ""; transform: rotate(22deg); }
.daily-orbit::after { inset: 24px; border-style: solid; }
.daily-orbit span { color: var(--gold); font: 400 38px/1 var(--serif); }
.daily-card h2 { margin: 0 0 14px; font: 500 31px/1.1 var(--serif); }
.daily-card > p:not(.eyebrow) { max-width: 255px; margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.daily-card > .daily-policy { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--gold); font-size: 10px; line-height: 1.55; }
.daily-facts { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.35fr; margin-top: 30px; padding-top: 19px; border-top: 1px solid var(--line); }
.daily-facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.daily-facts span { display: block; overflow: hidden; color: var(--ink); font: 500 15px/1 var(--serif); text-overflow: ellipsis; white-space: nowrap; }
.daily-facts small { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 7px; letter-spacing: .2em; }

.rules-card { padding: 24px 25px; }
.section-title { display: flex; justify-content: space-between; align-items: center; }
.section-title h2 { margin: 0; font: 500 20px/1 var(--serif); }
.section-title span { color: var(--ink-soft); font-size: 7px; letter-spacing: .18em; }
.rules-card ol { display: grid; gap: 18px; margin: 23px 0 19px; padding: 0; list-style: none; counter-reset: rules; }
.rules-card li { position: relative; padding-left: 33px; counter-increment: rules; }
.rules-card li::before { position: absolute; left: 0; top: 0; width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); content: counter(rules); font: 11px/1 var(--serif); }
.rules-card strong, .rules-card li span { display: block; }
.rules-card strong { margin-bottom: 3px; font: 600 12px/1.2 var(--serif); }
.rules-card li span { color: var(--ink-soft); font-size: 10px; line-height: 1.45; }
.keyboard-hint { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 9px; }
kbd { padding: 2px 5px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255,255,255,.04); color: var(--ink); font: inherit; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 0 3px 24px; color: rgba(164,165,182,.7); font-size: 8px; letter-spacing: .13em; }

.modal { width: min(calc(100% - 28px), 520px); max-height: calc(100dvh - 28px); padding: 0; overflow: visible; border: 0; background: transparent; color: var(--paper-ink); }
.modal::backdrop { background: rgba(5,6,12,.8); backdrop-filter: blur(12px); }
.modal-panel { position: relative; max-height: calc(100dvh - 28px); overflow-y: auto; padding: 34px; border: 1px solid rgba(65,56,42,.15); border-radius: 28px; background: var(--paper); box-shadow: 0 40px 110px rgba(0,0,0,.62); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(32,33,44,.06); color: #6a6870; font-size: 24px; line-height: 1; }
.modal .eyebrow { color: #c94e32; }
.modal h2 { margin: 0; color: var(--paper-ink); font: 700 clamp(31px, 8vw, 46px)/1.02 var(--serif); }
.modal-lead { margin: 14px 0 0; color: #676672; font-size: 13px; line-height: 1.6; }
.teach-grid { display: grid; gap: 10px; margin: 24px 0; }
.teach-grid > div { display: grid; grid-template-columns: 55px 1fr; align-items: center; gap: 14px; padding: 12px; border: 1px solid #e6ddca; border-radius: 15px; background: rgba(255,255,255,.43); }
.teach-glyph { width: 51px; height: 43px; display: grid; place-items: center; border-radius: 11px; font: 700 16px/1 var(--serif); }
.teach-glyph.bust { background: #fae1d9; color: #c94728; }
.teach-glyph.vanish { background: #f7ebc9; color: #9b7621; }
.teach-glyph.stack { background: #d9eee9; color: #267c70; }
.teach-grid p { margin: 0; color: #6c6970; font-size: 11px; line-height: 1.35; }
.teach-grid strong { display: block; margin-bottom: 3px; color: var(--paper-ink); font: 700 14px/1 var(--serif); }
.modal-note { margin: 0; color: #85818a; font-size: 10px; text-align: center; }
.modal-actions { display: grid; gap: 9px; margin-top: 22px; }
.primary-button, .secondary-button { width: 100%; min-height: 49px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.primary-button { border: 1px solid #d7b14d; background: var(--gold); color: #2d2411; box-shadow: 0 10px 24px rgba(157,117,27,.18); }
.secondary-button { border: 1px solid #dcd4c4; background: transparent; color: #56535b; }
.is-hidden { display: none !important; }

.result-panel { width: 100%; }
.result-panel h2 { max-width: 400px; font-size: clamp(27px, 6vw, 34px); }
.ranking-notice { width: max-content; max-width: 100%; margin: 10px auto 0; padding: 8px 13px; border: 1px solid #d77f31; border-radius: 999px; background: #f8d3a7; color: #7c3c0c; font-size: 8px; font-weight: 850; letter-spacing: .11em; text-align: center; }
.ranking-notice.is-ranked { border-color: #4d9a68; background: #d7efdd; color: #23613a; }
.card-tabs { display: flex; justify-content: center; gap: 7px; margin: 14px 0 11px; }
.card-tab { padding: 8px 14px; border: 1px solid #ded4c2; border-radius: 999px; background: transparent; color: #77727a; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.card-tab.is-active { border-color: #c9a03f; background: #f2d77f; color: #362b14; box-shadow: 0 6px 15px rgba(156,117,29,.16); }
.result-card-stage { display: grid; place-items: center; min-height: 360px; }
.result-card-wrap { position: relative; width: min(100%, 318px); border-radius: 19px; }
.result-card-wrap[hidden] { display: none; }
.result-card-wrap > canvas:first-child { display: block; width: 100%; height: auto; border-radius: 19px; box-shadow: 0 18px 42px rgba(39,32,24,.22); }
#sigilFx { position: absolute; inset: -12%; width: 124%; height: 124%; pointer-events: none; }
.sigil-card-wrap.is-dramatic { animation: sigilGlow 2.4s ease-in-out infinite; }
.sigil-card-wrap.is-revealing > #sigilResultCard { animation: sigilReveal 1.65s cubic-bezier(.18,.78,.24,1); }
.sigil-card-wrap.is-revealing::after { position: absolute; inset: 0; border-radius: 19px; content: ""; pointer-events: none; animation: sigilFlash 1.65s ease-out; }
.result-actions { grid-template-columns: 1.2fr 1fr; }

.share-modal { width: min(calc(100% - 28px), 760px); }
.share-panel h2 { font-size: 39px; }
.share-previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 21px 0 13px; }
.share-previews canvas { display: block; width: 100%; height: auto; border: 1px solid #e3dac8; border-radius: 15px; background: #101429; box-shadow: 0 14px 30px rgba(35,30,25,.16); }
.native-share { margin-bottom: 15px; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.share-grid button { min-width: 0; padding: 11px 5px 9px; border: 1px solid #e2dac9; border-radius: 13px; background: rgba(255,255,255,.52); color: #67636b; font-size: 8px; }
.share-grid button:hover { border-color: #c9bda8; background: #fff; }
.share-grid span { width: 30px; height: 30px; display: grid; place-items: center; margin: 0 auto 6px; border-radius: 9px; background: #272936; color: #fff; font: 700 10px/1 var(--sans); }

.toast { position: fixed; z-index: 200; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translate(-50%, 20px); padding: 11px 17px; border-radius: 999px; background: var(--paper); color: var(--paper-ink); box-shadow: 0 15px 45px rgba(0,0,0,.4); opacity: 0; pointer-events: none; font-size: 11px; font-weight: 700; transition: .22s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.noscript { margin: 40px auto; padding: 20px; max-width: 500px; color: var(--ink); text-align: center; }
#fx { position: fixed; inset: 0; z-index: 100; width: 100%; height: 100%; pointer-events: none; }

@keyframes flashBust { 0% { box-shadow: inset 0 0 0 999px rgba(237,90,54,.62); } 100% { box-shadow: inset 0 0 0 999px transparent; } }
@keyframes flashVanish { 0% { box-shadow: inset 0 0 0 999px rgba(237,198,101,.55); } 100% { box-shadow: inset 0 0 0 999px transparent; } }
@keyframes constellationBust { 0% { opacity: 0; transform: scale(.2) rotate(-90deg); } 38% { opacity: 1; transform: scale(1.12) rotate(8deg); } 100% { opacity: 0; transform: scale(1.55) rotate(24deg); } }
@keyframes shake { 20% { transform: translateX(-4px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
@keyframes sigilReveal { 0% { opacity: 0; transform: perspective(900px) rotateY(-1080deg) scale(.62); } 76% { opacity: 1; transform: perspective(900px) rotateY(28deg) scale(1.025); } 100% { transform: perspective(900px) rotateY(0) scale(1); } }
@keyframes sigilFlash { 0%, 35% { background: rgba(255,255,255,0); } 48% { background: rgba(255,255,255,.45); } 100% { background: rgba(255,255,255,0); } }
@keyframes sigilGlow { 0%, 100% { filter: drop-shadow(0 0 10px var(--tier-glow, rgba(192,140,255,.34))); } 50% { filter: drop-shadow(0 0 25px var(--tier-glow, rgba(192,140,255,.62))); } }

@media (max-width: 900px) {
  .site-shell { padding: 0 18px; }
  .game-layout { grid-template-columns: 1fr; }
  .game-card { min-height: 720px; }
  .side-rail { display: grid; grid-template-columns: 1fr 1fr; }
  .daily-card { min-height: auto; }
}

@media (max-width: 640px) {
  .site-shell { padding: 0 10px; }
  .topbar { min-height: 68px; grid-template-columns: 1fr auto; gap: 8px; }
  .brand { gap: 8px; }
  .brand-mark { width: 33px; height: 33px; font-size: 10px; }
  .brand strong { font-size: 15px; }
  .brand small { display: none; }
  .icon-button { width: 34px; height: 34px; }
  .share-top { padding: 0 13px; }
  .game-layout { gap: 15px; padding-top: 12px; padding-bottom: 20px; }
  .game-card { min-height: calc(100dvh - 92px); border-radius: 22px; }
  .game-heading { padding: 18px 16px 10px; }
  .game-heading h1 { font-size: 27px; }
  .scoreboard { gap: 12px; }
  .scoreboard div { min-width: 55px; }
  .scoreboard strong { font-size: 21px; }
  .sequence-panel { padding-inline: 15px; }
  .token { flex-basis: 29px; width: 29px; height: 30px; }
  .board { min-height: 380px; gap: 7px; padding: 5px 10px 10px; }
  .column { border-radius: 16px; }
  .column-total { bottom: 20px; font-size: clamp(34px, 12vw, 52px); }
  .column-name { top: 10px; font-size: 7px; }
  .game-footer { display: block; min-height: 72px; padding: 10px 16px; text-align: center; }
  .game-footer p { margin-bottom: 7px; }
  .footer-actions { justify-content: center; }
  .side-rail { grid-template-columns: 1fr; }
  .daily-card { min-height: 360px; }
  .site-footer { display: none; }
  .modal-panel { padding: 29px 20px 22px; border-radius: 23px; }
  .modal h2 { font-size: 36px; }
  .teach-grid { margin-block: 18px; }
  .result-actions { grid-template-columns: 1fr; }
  .result-card-stage { min-height: 345px; }
  .result-card-wrap { width: min(100%, 292px); }
  .share-previews { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 1px 12px; }
  .share-previews canvas { flex: 0 0 78%; scroll-snap-align: center; }
  .share-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-height: 700px) and (min-width: 641px) {
  .game-card { min-height: 610px; }
  .board { min-height: 330px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  body::before { opacity: .2; }
}
