:root {
  --paper: #f2e8d2;
  --paper-deep: #e3d1ac;
  --ink: #151310;
  --red: #a92e27;
  --red-dark: #722019;
  --mustard: #d39a31;
  --teal: #2d7771;
  --muted: #6c6255;
  --line: 3px solid var(--ink);
  --rough-shadow: 5px 6px 0 var(--ink);
  --display: Impact, "Arial Narrow", "Franklin Gothic Condensed", sans-serif;
  --body: "Trebuchet MS", "Avenir Next", Avenir, sans-serif;
}

* { box-sizing: border-box; }

html {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 20% 30%, rgb(92 66 35 / 6%) 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 70%, rgb(92 66 35 / 5%) 0 1px, transparent 1.5px),
    linear-gradient(96deg, transparent 0 49%, rgb(91 62 30 / 2%) 50%, transparent 51%);
  background-size: 17px 19px, 23px 29px, 7px 100%;
}

button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 4px solid var(--mustard);
  outline-offset: 3px;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .banner, .turn-banner, .ink-button, .mini-brand {
  font-family: var(--display);
  letter-spacing: .035em;
  text-transform: uppercase;
}

.paper-screen { min-height: 100dvh; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.flash-icon {
  display: block;
  width: 100%;
  height: 100%;
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.ui-icon {
  width: 1.35em;
  height: 1.35em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.2em;
}

.ui-icon path:first-child:not(:only-child),
.tokens .ui-icon { fill: none; }

.ink-button {
  min-height: 52px;
  padding: 12px 22px;
  border: var(--line);
  border-radius: 2px 8px 3px 6px;
  background: var(--paper);
  font-size: 1.08rem;
  box-shadow: 3px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.ink-button:hover:not(:disabled) { background: #fff9e9; transform: translate(-1px, -1px); box-shadow: 5px 6px 0 var(--ink); }
.ink-button:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.ink-button.primary { background: var(--red); color: #fff8e8; }
.ink-button.primary:hover:not(:disabled) { background: var(--red-dark); }
.ink-button:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }
.ink-button.wide { width: 100%; }

.text-button {
  border: 0;
  background: transparent;
  color: var(--red-dark);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 10px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 9px;
  border: 2px solid var(--ink);
  border-radius: 3px 7px 2px 5px;
  background: transparent;
  cursor: pointer;
}

/* Menu */
.menu-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  align-items: stretch;
  overflow: hidden;
}

.menu-art {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(32px, 6vw, 90px);
  border-right: 5px solid var(--ink);
  position: relative;
}

.menu-art::before, .menu-art::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px solid var(--ink);
  pointer-events: none;
  transform: rotate(-.15deg);
}
.menu-art::after { inset: 25px 22px 21px 26px; border-width: 1px; transform: rotate(.12deg); }

.brand-lockup { position: relative; text-align: center; z-index: 1; }
.brand-lockup .brand-mark {
  width: clamp(190px, 23vw, 330px);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto -42px;
}
.brand-lockup h1 {
  position: relative;
  margin: 0;
  font-size: clamp(4.5rem, 10vw, 9rem);
  line-height: .72;
  letter-spacing: -.045em;
  transform: rotate(-2deg);
  text-shadow: 3px 2px 0 var(--paper), 5px 4px 0 var(--red);
}
.brand-lockup h1 span { color: var(--red); text-shadow: 3px 2px 0 var(--paper), 5px 4px 0 var(--ink); }
.tagline { margin-top: 35px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.menu-flash { display: flex; gap: 26px; margin-top: 30px; }
.menu-flash .flash-icon { width: 62px; height: 62px; }
.menu-flash .flash-icon:nth-child(2) { transform: rotate(7deg); }
.menu-flash .flash-icon:nth-child(3) { transform: rotate(-6deg); }

.menu-actions {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vw, 88px);
  gap: 14px;
  background: var(--red);
  color: #fff9e8;
  position: relative;
}
.menu-actions::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px solid currentColor;
  opacity: .8;
  pointer-events: none;
}
.menu-actions > * { position: relative; z-index: 1; }
.menu-actions .ink-button { width: 100%; background: var(--paper); color: var(--ink); }
.menu-actions .ink-button.primary { background: var(--ink); color: var(--paper); }
.menu-actions .text-button { color: #fff9e8; }
.banner {
  margin-bottom: 18px;
  font-size: clamp(1.5rem, 2.3vw, 2.4rem);
  line-height: 1;
  text-align: center;
}
.menu-foot { text-align: center; margin: 12px 0 0; font-size: .8rem; font-weight: 800; opacity: .85; }

/* Setup and overlays */
.setup-shell, .overlay-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px clamp(18px, 4vw, 60px) 60px;
}
.screen-header {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: var(--line);
}
.screen-header h1 { margin: 0 0 4px; font-size: clamp(2.4rem, 7vw, 4.5rem); line-height: .9; }
.screen-header p { margin: 0; color: var(--muted); font-weight: 700; }
.setup-form { max-width: 700px; margin: 0 auto; }
.count-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: var(--line);
  padding: 16px 20px;
  font-weight: 900;
  font-size: 1.25rem;
}
select, input {
  min-height: 46px;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  background: #fff9e9;
  border-radius: 2px;
}
.mode-note {
  margin: 0 0 28px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-weight: 800;
}
.player-fields { margin-bottom: 26px; }
.player-row {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 12px;
  padding: 14px 16px 16px;
  margin-bottom: 12px;
  border: 2px solid var(--ink);
  border-radius: 2px 7px 3px 5px;
}
.player-row:nth-child(even) { transform: rotate(.15deg); }
.player-row legend { padding: 0 8px; font-weight: 900; text-transform: uppercase; }
.player-row input, .player-row select { width: 100%; }

/* Game */
.game-shell { min-height: 100dvh; padding: 14px; }
.game-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  max-width: 1500px;
  margin: 0 auto 14px;
  padding: 7px 12px 11px;
  border-bottom: var(--line);
}
.mini-brand {
  color: var(--ink);
  font-size: 1.45rem;
  line-height: .8;
  text-decoration: none;
}
.mini-brand span { color: var(--red); }
.round-stats { display: flex; justify-content: center; gap: clamp(12px, 4vw, 54px); font-weight: 900; text-transform: uppercase; }
.round-stats span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.header-actions { display: flex; gap: 8px; }

.table {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  max-width: 1500px;
  min-height: calc(100dvh - 95px);
  margin: 0 auto;
  border: 2px solid var(--ink);
  padding: 16px;
  position: relative;
}
.players-grid {
  grid-column: 1 / 2;
  display: grid;
  grid-template-columns: repeat(min(var(--players), 4), minmax(175px, 1fr));
  gap: 12px;
  align-self: start;
}
.player-panel {
  border: 2px solid var(--ink);
  border-radius: 3px 8px 2px 6px;
  padding: 10px;
  background: rgb(242 232 210 / 80%);
  min-width: 0;
}
.player-panel:nth-child(3n+2) { transform: rotate(.2deg); }
.player-panel.current { border-color: var(--red); box-shadow: 0 0 0 2px var(--paper), 0 0 0 5px var(--red); }
.player-panel.knocked-out { opacity: .4; filter: grayscale(1); }
.player-panel header, .status-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.player-panel header { padding-bottom: 7px; border-bottom: 2px dashed var(--ink); }
.player-panel h3 { margin: 0; font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-panel header span { font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.status-row { padding: 8px 0; min-height: 38px; }
.tokens { display: flex; gap: 2px; }
.tokens span { color: var(--ink); }
.tokens span.filled { color: var(--red); }
.tokens .ui-icon { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; }
.player-status { font-size: .72rem; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.discard-pile { min-height: 48px; display: flex; align-items: center; }
.mini-card {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 52px;
  margin-right: -9px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  position: relative;
  transform: rotate(-2deg);
}
.mini-card:nth-child(even) { transform: rotate(2deg); }
.mini-card b { position: absolute; top: 2px; left: 4px; font-family: var(--display); color: var(--red); }
.mini-card .flash-icon { width: 30px; height: 30px; margin-top: 8px; stroke-width: 6; }
.empty-discard { font-size: .68rem; color: var(--muted); text-transform: uppercase; }

.table-center {
  grid-column: 1;
  grid-row: 2;
  place-self: center;
  display: flex;
  align-items: center;
  gap: 22px;
}
.deck-stack {
  width: 106px;
  height: 148px;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--ink);
  border: 5px double var(--paper);
  box-shadow: 7px 7px 0 var(--red), 11px 11px 0 var(--ink);
  transform: rotate(-2deg);
}
.deck-stack .flash-icon { stroke: var(--paper); fill: var(--red); }
.burned-card { text-align: center; color: var(--red); font-family: var(--display); text-transform: uppercase; }
.burned-card .flash-icon { width: 70px; height: 70px; fill: var(--red); }
.removed-cards { max-width: 170px; font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.removed-cards summary { cursor: pointer; margin-bottom: 8px; }
.removed-cards > div { display: flex; }

.turn-zone {
  grid-column: 1;
  grid-row: 3;
  display: grid;
  grid-template-columns: 1fr auto;
  justify-items: center;
  align-items: center;
  gap: 12px 24px;
  min-width: 0;
}
.turn-banner {
  grid-column: 1 / -1;
  min-width: min(500px, 90%);
  padding: 8px 45px;
  color: var(--paper);
  background: var(--ink);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1;
  text-align: center;
  clip-path: polygon(0 12%, 8% 18%, 5% 0, 94% 9%, 100% 0, 97% 48%, 100% 100%, 92% 89%, 7% 95%, 0 100%, 3% 50%);
}
.ai-turn { grid-template-columns: 1fr; }
.human-hand { display: flex; justify-content: center; gap: clamp(10px, 2vw, 22px); }
.game-card {
  width: clamp(150px, 17vw, 215px);
  aspect-ratio: 2 / 3;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  padding: 10px;
  border: 3px solid var(--ink);
  border-radius: 8px 3px 10px 4px;
  background: #f8efd9;
  color: var(--ink);
  text-align: center;
  position: relative;
  box-shadow: 3px 4px 0 rgb(21 19 16 / 25%);
}
button.game-card { cursor: pointer; }
.game-card:nth-child(even) { transform: rotate(1deg); }
.game-card.selectable:hover:not(:disabled) { transform: translateY(-8px) rotate(-1deg); }
.game-card.selected { transform: translateY(-12px) rotate(-1deg); box-shadow: 0 0 0 3px var(--paper), 0 0 0 7px var(--red), 7px 9px 0 var(--ink); }
.game-card:disabled { filter: grayscale(.8); opacity: .6; cursor: not-allowed; }
.card-value {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--red);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1.35rem;
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 1;
}
.card-art { min-height: 0; padding: 16px 18px 2px; }
.card-art .flash-icon { fill: var(--red); stroke-width: 4; }
.game-card strong { font-family: var(--display); font-size: clamp(.9rem, 1.5vw, 1.25rem); text-transform: uppercase; }
.card-effect { padding-top: 7px; margin-top: 7px; border-top: 1.5px solid var(--ink); font-size: clamp(.58rem, .85vw, .75rem); line-height: 1.2; }
.play-button { background: var(--red); color: var(--paper); min-width: 185px; }
.waiting-mark { width: 100px; height: 100px; animation: pulse-ink 1.3s ease-in-out infinite; }

.action-log {
  grid-column: 2;
  grid-row: 1 / 4;
  border: 3px solid var(--ink);
  padding: 14px;
  background: rgb(255 249 233 / 55%);
  align-self: stretch;
  overflow: hidden;
}
.action-log h2 {
  padding: 8px;
  margin: -4px -4px 8px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.action-log ol { list-style: none; padding: 0; margin: 0; }
.action-log li { padding: 9px 4px; border-bottom: 1px dashed var(--ink); font-size: .8rem; line-height: 1.25; }
.action-log li:first-child { color: var(--red-dark); font-weight: 900; }

/* Modals */
.modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgb(21 19 16 / 78%);
  backdrop-filter: blur(2px);
}
.action-modal, .pass-screen {
  width: min(620px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: clamp(22px, 5vw, 45px);
  border: 4px solid var(--ink);
  outline: 2px solid var(--paper);
  outline-offset: -9px;
  background: var(--paper);
  box-shadow: 11px 13px 0 var(--red);
  text-align: center;
}
.action-modal h2, .pass-screen h2 { font-size: clamp(2rem, 6vw, 3.5rem); line-height: .95; }
.target-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.target-button, .target-check {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80px;
  padding: 12px;
  border: 2px solid var(--ink);
  background: #fff9e9;
  cursor: pointer;
  font-weight: 900;
}
.target-button small { color: var(--muted); margin-top: 4px; }
.target-check { flex-direction: row; align-items: center; gap: 10px; }
.target-check input { width: 24px; height: 24px; min-height: auto; accent-color: var(--red); }
.target-list + .ink-button { margin-top: 20px; }
.guess-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.guess-button {
  aspect-ratio: 1;
  border: 3px solid var(--ink);
  background: var(--paper);
  color: var(--red);
  font: 2rem var(--display);
  cursor: pointer;
}
.guess-button:hover { background: var(--red); color: var(--paper); }
.inspected-hands { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; }
.inspected-hands .game-card { width: 180px; }
.choice-row { display: flex; justify-content: center; gap: 12px; }
.pass-screen .flash-icon { width: 130px; height: 130px; margin: 0 auto; fill: var(--red); }
.pass-screen > p { margin: 10px 0 4px; font-weight: 900; text-transform: uppercase; }

/* Results */
.result-shell { display: grid; place-items: center; padding: 24px; }
.result-poster { width: min(1100px, 100%); text-align: center; }
.result-poster > .flash-icon { width: 130px; height: 130px; margin: 0 auto; fill: var(--red); }
.result-poster > h1 { font-size: clamp(3rem, 8vw, 6.5rem); line-height: .85; margin-bottom: 16px; }
.result-poster > p { font-weight: 800; }
.small-banner {
  display: inline-block;
  padding: 6px 18px;
  background: var(--ink);
  color: var(--paper);
  font: 1.15rem var(--display);
  text-transform: uppercase;
  transform: rotate(-1deg);
}
.revealed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin: 30px 0;
}
.revealed-grid article { padding: 14px; border: 2px solid var(--ink); }
.revealed-grid article.knocked-out { opacity: .5; }
.revealed-grid h2 { margin-bottom: 8px; }
.revealed-grid .game-card { width: 125px; margin: 0 auto 8px; }
.revealed-grid .card-effect { display: none; }
.final-scores { max-width: 520px; margin: 28px auto; padding: 0; list-style: none; border-top: var(--line); }
.final-scores li { display: flex; justify-content: space-between; padding: 12px; border-bottom: 2px solid var(--ink); font-size: 1.2rem; }
.game-over .result-poster > .flash-icon { width: 180px; height: 180px; }

/* Rules/settings */
.rules-copy { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rules-copy article { padding: 18px; border-left: 5px solid var(--red); background: rgb(255 249 233 / 55%); }
.rules-copy h2 { margin-bottom: 6px; }
.rules-copy p { margin: 0; line-height: 1.5; }
.reference-section { margin-top: 45px; }
.reference-heading { display: flex; justify-content: space-between; align-items: center; border-bottom: var(--line); margin-bottom: 15px; }
.reference-heading h2 { margin: 0; font-size: 2.5rem; }
.reference-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.reference-card {
  display: grid;
  grid-template-columns: 36px 70px 1fr;
  align-items: center;
  min-height: 100px;
  padding: 8px;
  border: 2px solid var(--ink);
  position: relative;
}
.reference-card .flash-icon { width: 65px; height: 65px; fill: var(--red); }
.ref-value { font: 2rem var(--display); color: var(--red); text-align: center; }
.reference-card h3 { margin: 0 0 4px; }
.reference-card h3 small { color: var(--red); }
.reference-card p { margin: 0; font-size: .78rem; line-height: 1.25; }
.rules-note { margin-top: 30px; text-align: center; color: var(--muted); font-size: .75rem; }
.settings-page { max-width: 720px; }
.settings-list { border-top: var(--line); }
.settings-list > label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 4px;
  border-bottom: 2px solid var(--ink);
}
.settings-list label span { display: flex; flex-direction: column; }
.settings-list small { color: var(--muted); margin-top: 3px; }
.settings-list input[type="checkbox"] { width: 30px; height: 30px; min-height: auto; accent-color: var(--red); }
.settings-list .ink-button { width: 100%; margin-top: 20px; }
.ios-instructions { margin-top: 20px; padding: 20px; border: 2px dashed var(--ink); }

@keyframes pulse-ink {
  0%, 100% { transform: scale(.94) rotate(-2deg); opacity: .65; }
  50% { transform: scale(1.04) rotate(2deg); opacity: 1; }
}

@media (max-width: 980px) {
  .table { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; }
  .players-grid { grid-column: 1; grid-template-columns: repeat(2, 1fr); }
  .table-center { grid-column: 1; grid-row: 2; }
  .turn-zone { grid-column: 1; grid-row: 3; }
  .action-log { grid-column: 1; grid-row: 4; max-height: 230px; }
  .action-log ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 12px; }
  .game-card { width: clamp(145px, 28vw, 205px); }
}

@media (max-width: 720px) {
  .menu-shell { grid-template-columns: 1fr; }
  .menu-art { min-height: 48dvh; padding: 45px 24px 20px; border-right: 0; border-bottom: 5px solid var(--ink); }
  .menu-actions { min-height: 52dvh; padding: 35px 40px; }
  .brand-lockup .brand-mark { width: 150px; margin-bottom: -25px; }
  .brand-lockup h1 { font-size: clamp(4rem, 20vw, 6rem); }
  .tagline { margin-top: 26px; font-size: .75rem; }
  .menu-flash { display: none; }

  .game-shell { padding: 8px; }
  .game-header { grid-template-columns: 1fr auto; gap: 8px; padding: 5px 2px 9px; }
  .round-stats { grid-column: 1 / -1; grid-row: 2; order: 3; justify-content: space-between; gap: 4px; font-size: .7rem; }
  .header-actions .icon-button { width: 40px; height: 40px; padding: 7px; }
  .table { min-height: calc(100dvh - 110px); padding: 9px; gap: 11px; }
  .players-grid { display: flex; overflow-x: auto; padding: 4px 3px 8px; scroll-snap-type: x mandatory; }
  .player-panel { min-width: 205px; scroll-snap-align: start; }
  .table-center { transform: scale(.78); margin: -18px auto; }
  .turn-zone { grid-template-columns: 1fr; }
  .turn-banner { min-width: 95%; font-size: 1.4rem; }
  .human-hand { width: 100%; gap: 8px; }
  .game-card { width: min(43vw, 185px); }
  .card-art { padding: 14px 10px 0; }
  .card-effect { font-size: .58rem; }
  .play-button { width: min(300px, 90%); }
  .action-log ol { display: block; }
  .action-log li:nth-child(n+6) { display: none; }

  .rules-copy, .reference-grid { grid-template-columns: 1fr; }
  .reference-heading { align-items: flex-end; }
  .reference-heading h2 { font-size: 2rem; }
  .player-row { grid-template-columns: 1fr 115px; padding-inline: 10px; }
  .screen-header { gap: 12px; }
  .screen-header h1 { font-size: 2.6rem; }
  .target-list { grid-template-columns: 1fr; }
  .guess-grid { grid-template-columns: repeat(5, 1fr); }
  .guess-button { font-size: 1.5rem; }
  .action-modal { padding: 28px 20px; }
  .choice-row { flex-direction: column; }
}

@media (min-width: 721px) and (max-height: 760px) {
  .menu-art, .menu-actions { padding-block: 30px; }
  .brand-lockup .brand-mark { width: 170px; margin-bottom: -27px; }
  .brand-lockup h1 { font-size: 6rem; }
  .tagline { margin-top: 24px; font-size: .78rem; }
  .menu-flash { margin-top: 18px; }
  .menu-flash .flash-icon { width: 46px; height: 46px; }
}

@media (max-width: 390px) {
  .game-card { width: 42vw; padding: 7px; }
  .card-value { width: 31px; height: 31px; font-size: 1.05rem; }
  .card-art { padding-top: 20px; }
  .reference-card { grid-template-columns: 30px 52px 1fr; }
  .reference-card .flash-icon { width: 48px; height: 48px; }
}

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

html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after {
  animation-duration: .001ms !important;
  transition-duration: .001ms !important;
}

@media (forced-colors: active) {
  .ink-button, .player-panel, .game-card, .action-modal { forced-color-adjust: auto; }
}
