:root {
  color-scheme: dark;
  scrollbar-gutter: stable;
  --background: #10151d;
  --surface: #182532;
  --edge: #384f64;
  --text: #f1f6fc;
  --muted: #b5c5d6;
  --accent: #81d4ff;
  --control-target: 44px;
  --control-radius: .65rem;
  --control-border: #637f98;
  --control-muted: #9aacbe;
  --control-disabled: #293848;
  --destructive: #ffb0ac;
  font: 100%/1.5 system-ui, sans-serif;
  background: var(--background);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 50% 28%, #1a2b3c, transparent 68%); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[data-screen-title]:focus, .modal h2:focus { outline: none; }
.masthead { max-width: 66rem; margin: auto; padding: calc(1.15rem + env(safe-area-inset-top, 0px)) max(clamp(1rem, 5vw, 3rem), env(safe-area-inset-right, 0px)) 1.15rem max(clamp(1rem, 5vw, 3rem), env(safe-area-inset-left, 0px)); display: flex; justify-content: space-between; align-items: center; gap: .75rem; border-bottom: 1px solid var(--edge); }
.brand { display: inline-flex; align-items: center; min-height: var(--control-target); color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.4rem; letter-spacing: -.05em; touch-action: manipulation; }
.brand span { color: var(--accent); }
.brand-mark { margin-right: .3rem; }
main { max-width: 59rem; margin: auto; padding: clamp(1.5rem, 6vw, 4rem) max(clamp(1rem, 5vw, 2rem), env(safe-area-inset-right, 0px)) clamp(1.5rem, 6vw, 4rem) max(clamp(1rem, 5vw, 2rem), env(safe-area-inset-left, 0px)); }
.game-tabs-visible main { padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
.game-nav {
  position: fixed;
  inset: auto 0 0;
  z-index: 4;
  padding: .5rem max(.55rem, env(safe-area-inset-right, 0px)) calc(.5rem + env(safe-area-inset-bottom, 0px)) max(.55rem, env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--edge);
  background: var(--background);
  box-shadow: 0 -6px 18px #07111d99;
}
.game-nav-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; max-width: 36rem; margin: auto; }
.game-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  min-width: var(--control-target);
  min-height: 54px;
  padding: .25rem;
  border: 0;
  border-radius: var(--control-radius);
  background: transparent;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.2;
  touch-action: manipulation;
}
.game-nav svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.game-nav button[aria-current="page"] { background: #223447; color: var(--accent); }
@media (hover: hover) {
  .game-nav button:hover { background: #25384a; }
}
.game-nav button:active { background: #324d63; }
h1, h2, p { margin: 0; }
h1, h2 { line-height: 1.05; font-weight: 750; }
h1 { font-size: clamp(2.6rem, 9vw, 5.25rem); letter-spacing: -.065em; }
h2 { font-size: clamp(1.55rem, 5vw, 2.45rem); letter-spacing: -.035em; overflow-wrap: anywhere; }
p { color: var(--muted); }
.hero { text-align: center; margin: 0 auto 2.4rem; }
.hero p { margin: .85rem auto 0; }
.eyebrow { color: var(--accent); font-weight: 750; font-size: .875rem; line-height: inherit; letter-spacing: .15em; text-transform: uppercase; margin: .85rem auto 0; }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.panel { border: 1px solid var(--edge); border-radius: 1.25rem; background: var(--surface); padding: clamp(1.15rem, 4vw, 2rem); }
.panel p { margin-top: .55rem; }
.stack { display: grid; gap: .9rem; }
.form { width: min(100%, 32rem); margin: auto; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.15rem; }
.primary, .secondary, .quiet, .destructive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--control-target);
  min-height: var(--control-target);
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  padding: .55rem .95rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  text-decoration: none;
  touch-action: manipulation;
}
.primary { color: #081824; background: var(--accent); }
.secondary { color: var(--text); background: #223447; border-color: var(--control-border); }
.quiet { color: var(--accent); background: transparent; }
.destructive { color: var(--destructive); background: transparent; border-color: var(--control-border); }
@media (hover: hover) {
  .primary:hover:not(:disabled) { background: #aee5ff; }
  .secondary:hover:not(:disabled) { background: #2d465d; }
  .quiet:hover:not(:disabled), .destructive:hover:not(:disabled) { background: #25384a; }
}
.primary:active:not(:disabled) { background: #59aedb; }
.secondary:active:not(:disabled), .quiet:active:not(:disabled), .destructive:active:not(:disabled) { background: #324d63; }
.primary:disabled, .secondary:disabled, .quiet:disabled, .destructive:disabled,
button[aria-disabled="true"] { color: var(--control-muted); background: var(--control-disabled); border-color: transparent; }
button[aria-disabled="true"] { cursor: progress; }
label { display: grid; gap: .35rem; min-width: 0; color: var(--muted); }
input, textarea { width: 100%; min-width: 0; min-height: var(--control-target); border: 1px solid var(--control-border); background: #101a25; color: var(--text); border-radius: var(--control-radius); padding: .55rem .75rem; }
.table { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 16rem); gap: 1rem; align-items: start; }
.table-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; margin-bottom: 1rem; align-items: baseline; }
.table-top p { font-size: .875rem; overflow-wrap: anywhere; }
.pot { color: var(--accent); font-weight: 750; }
.dice-stage { position: relative; margin-block: 1.5rem; }
.dice { display: grid; align-content: center; min-block-size: 11.5rem; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.35rem, 1.4vw, .65rem);
  padding: 1.5rem .65rem .9rem;
  border: 1px solid var(--edge); border-radius: .9rem;
  background: radial-gradient(ellipse at 50% 70%, #223b51, transparent 72%), #111c28; }
.die { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); align-items: center; justify-items: center; padding: 15%; aspect-ratio: 1; min-width: var(--control-target); min-height: var(--control-target); background: #e9f4fc; border: 2px solid transparent; border-radius: 18%; box-shadow: 0 .23rem #849eae; color: #102234; touch-action: manipulation; }
.die.empty { background: #213243; border-color: var(--edge); box-shadow: none; }
.die.needed { background: #d9eee2; border-color: #b9dac7; box-shadow: 0 .23rem #8dac9f; }
.die:active:not(:disabled) { background: #bcd9eb; }
.die.locked { background: #a6daf6; box-shadow: 0 .23rem #638aa6; }
.die[aria-pressed="true"] {
  background: #17415e;
  border-color: var(--accent);
  box-shadow: 0 .23rem #0c2c43, 0 0 0 2px var(--accent);
  color: #eefaff;
}
.die[aria-pressed="true"]:active:not(:disabled) { background: #24587a; }
.die[aria-pressed="true"]::before, .die[aria-pressed="true"]::after {
  position: absolute;
  content: "";
  pointer-events: none;
}
.die[aria-pressed="true"]::before {
  inset-block-start: -6px;
  inset-inline-end: -6px;
  width: 20px;
  height: 20px;
  border: 1px solid var(--background);
  border-radius: 50%;
  background: var(--accent);
}
.die[aria-pressed="true"]::after {
  inset-block-start: -1px;
  inset-inline-end: 1px;
  width: 6px;
  height: 10px;
  border: solid #102234;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.die:focus-visible { outline-color: var(--text); }
.pip { width: 62%; aspect-ratio: 1; border-radius: 50%; }
.pip.filled { background: currentColor; }
.qualification {
  --qualify-warning: #ffd48a;
  --qualify-success: #a0edc3;
  color: var(--qualify-warning);
}
.qualification[data-status="neutral"] { color: var(--accent); }
.qualification[data-status="success"] { color: var(--qualify-success); }
.qualification-message { font-weight: 700; margin-bottom: .45rem; }
.qualification-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  border-radius: .65rem;
  overflow: hidden;
}
.qualification-segment {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  padding: .45rem .25rem;
  background: #362d24;
  color: var(--qualify-warning);
  text-align: center;
}
.qualification[data-status="neutral"] .qualification-segment { background: #1a3044; color: var(--accent); }
.qualification-segment[data-state="selected"],
.qualification-segment[data-state="locked"] { background: #1c3e36; color: var(--qualify-success); }
.qualification-mark { font-size: .95em; font-weight: 700; }
.roster { padding: 0; list-style: none; margin: .85rem 0 0; display: grid; gap: .5rem; }
.roster li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem .7rem; padding: .65rem .75rem; background: #111c29; border: 1px solid transparent; border-radius: .6rem; }
.roster li.current { border-color: var(--accent); }
.roster small { color: var(--muted); grid-column: 1 / -1; }
.player { overflow-wrap: anywhere; }
.ledger-view { max-width: 40rem; margin: auto; }
.ledger-actions { margin: 0 0 1rem; }
.ledger-view > section + section { margin-top: 1rem; }
.ledger-list { display: grid; gap: .6rem; margin: .85rem 0 0; padding: 0; list-style: none; }
.ledger-row, .ledger-event-header, .ledger-pot { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem .75rem; }
.ledger-row { align-items: center; padding: .65rem .75rem; border-radius: .6rem; background: #111c29; }
.ledger-row > span:first-child, .ledger-event p, .ledger-changes li { overflow-wrap: anywhere; }
.ledger-row strong, .ledger-pot strong, .ledger-changes strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger-positive { color: #a0edc3; }
.ledger-negative { color: var(--destructive); }
.ledger-event { padding: .8rem .9rem; border: 1px solid var(--edge); border-radius: .75rem; background: #111c29; }
.ledger-event-header { flex-wrap: wrap; }
.ledger-event-header time, .ledger-pot { color: var(--muted); font-size: .875rem; }
.ledger-event p { margin-top: .3rem; }
.ledger-changes { display: grid; gap: .25rem; margin: .55rem 0 0; padding: 0; color: var(--muted); list-style: none; }
.ledger-pot { margin-top: .65rem; padding-top: .55rem; border-top: 1px solid var(--edge); }
.error { color: #ffc4ad; }
.room-code { color: var(--accent); font-family: ui-monospace, monospace; }
dialog { width: min(30rem, calc(100% - 2rem)); border: 1px solid var(--edge); border-radius: 1rem; background: var(--surface); color: var(--text); padding: 1.5rem; }
dialog::backdrop { background: #080e16d9; }
dialog li + li { margin-top: .5rem; }
[hidden] { display: none !important; }
@media (max-width: 800px) {
  .table { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .mode-grid { grid-template-columns: minmax(0, 1fr); }
  .dice { grid-template-columns: repeat(3, minmax(0, 4.7rem)); justify-content: center; gap: .65rem; }
}
.money-fields, .player-fields { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.money-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: .75rem; }
.money-fields legend, .player-fields legend { margin-bottom: .4rem; padding: 0; font-weight: 650; }
.player-fields > button { justify-self: start; }
.lobby { grid-template-columns: minmax(0, 1fr) minmax(14rem, 19rem); }
@media (max-width: 800px) {
  .lobby { grid-template-columns: minmax(0, 1fr); }
}
.invitation { text-align: center; justify-items: stretch; }
.invitation .room-code { font-size: 1.4rem; letter-spacing: .08em; }
.invite-qr { border-radius: .55rem; justify-self: center; }
.share-status:empty, .app-error:empty { display: none; }
.field-error { font-size: .875rem; }
.app-error { margin-top: 1rem; }
.stack > .app-error { margin-top: 0; }
.app-error:not(:empty) { padding: .65rem .8rem; border: 1px solid #9c6059; border-radius: var(--control-radius); background: #34262e; }
textarea { width: 100%; min-height: 8rem; margin-bottom: .75rem; }
.player-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; align-items: end; }
.player-remove { padding: 0; font-size: 1.4rem; line-height: 1; }
.turn-header { block-size: 7rem; }
.turn-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.turn-heading h2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.turn-clock {
  flex: 0 0 3.75rem;
  padding: .125rem .3rem;
  border-radius: .5rem;
  background: #fff2cb;
  color: #26354a;
  font-size: .875rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  text-align: center;
  transform-origin: right center;
}
.turn-clock-urgent { background: #9e102b; color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .turn-clock-pulsing { animation: turn-clock-pulse 1s ease-in-out infinite alternate; }
}
@keyframes turn-clock-pulse { to { transform: scale(1.08); } }
.score-banner {
  display: grid;
  align-content: center;
  gap: .2rem;
  block-size: 100%;
  padding: .55rem .75rem;
  border: 1px solid var(--accent);
  border-radius: 1rem;
  background: var(--accent);
  color: #081824;
}
.score-banner-main { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.score-banner h2 { min-width: 0; font-size: clamp(1.05rem, 4.5vw, 1.45rem); }
.score-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.score-banner strong {
  font-size: clamp(2.1rem, 9.5vw, 3.25rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.score-banner > span { font-size: .875rem; line-height: 1.25; }
.score-banner small { font-size: .45em; }
.die.rolling {
  position: relative;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  perspective: 420px;
}
.dice-cube, .dice-face { position: absolute; inset: 0; }
.dice-cube { transform-style: preserve-3d; }
.dice-face {
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  place-items: center;
  padding: 15%;
  border-radius: 18%;
  background: linear-gradient(145deg, #e9f4fc, #c3d9e7);
  border: 1px solid #849eae;
  backface-visibility: hidden;
  transform: var(--face-angle) translateZ(var(--half-face, 20px));
}
.dice-shadow {
  position: absolute;
  inset: 85% 3% -11%;
  border-radius: 50%;
  background: #07111d;
  filter: blur(5px);
}
.final-roll-options { margin-top: .9rem; }
.reversal-switch { width: 100%; justify-content: space-between; gap: .7rem; }
.switch-track {
  display: inline-flex; align-items: center; width: 2.25rem; height: 1.3rem;
  flex: 0 0 auto; padding: .15rem; border: 1px solid var(--control-border); border-radius: 1rem; background: var(--background);
}
.switch-track::before {
  content: ""; width: .85rem; height: .85rem; border-radius: 50%; background: var(--muted);
}
.reversal-switch[aria-checked="true"] .switch-track { justify-content: flex-end; background: var(--accent); border-color: var(--accent); }
.reversal-switch[aria-checked="true"] .switch-track::before { background: var(--background); }
.modal { max-height: calc(100% - 2rem); overflow: auto; }
.modal-content { margin-top: .85rem; }
.modal-actions { justify-content: flex-end; }
.modal .share-field { margin: 0; min-height: 8rem; resize: vertical; }
.modal .share-status:not(:empty) { margin-top: .75rem; }
input[aria-invalid="true"] { border-color: var(--destructive); }

.round-result {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(min-content, 1fr) auto;
  justify-items: center;
  align-items: center;
  gap: .4rem;
  overflow: auto;
  border: 1px solid #ffd47c;
  border-radius: .9rem;
  padding: .7rem;
  background: linear-gradient(150deg, #ffe6a1, #d7a141);
  color: #281b09;
  text-align: center;
}
.round-result h2 {
  font-size: clamp(1.75rem, 7vw, 2.65rem);
}
.round-result h2:has(.result-name) {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: .25em;
  max-width: 100%;
}
.result-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.round-result .primary { background: #30220e; color: #fff1c4; }
@media (hover: hover) {
  .round-result .primary:hover:not(:disabled) { background: #473318; }
}
.round-result .primary:active:not(:disabled) { background: #59401b; }
.round-result .primary:focus-visible { outline-color: #30220e; }
.round-result .actions { justify-content: center; margin-top: .35rem; }
.round-result p { margin-top: .2rem; color: #49330f; }
@media (prefers-reduced-motion: no-preference) {
  .round-result { animation: round-result-in 260ms ease-out both; }
  @keyframes round-result-in {
    from { opacity: 0; transform: translateY(.6rem) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}
.launch-splash {
  --splash-face: clamp(3.2rem, min(14vw, 16vh), 6rem);
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  border: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% -10%, #2b4b62, #0e1a26 47%, transparent 70%),
    radial-gradient(ellipse at 50% 100%, #172435, #070b13 65%);
}
.launch-splash[open] {
  display: grid;
  place-items: safe center;
}
:root:has(.launch-splash[open]) { overflow: hidden; scrollbar-gutter: auto; }
.splash-table {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: min(100%, 59rem);
  min-height: clamp(23rem, 72vh, 35rem);
  padding: clamp(1.8rem, 6vw, 4rem) 1rem;
  overflow: hidden;
  border: 1px solid #5b7285;
  border-radius: clamp(3rem, 9vw, 8rem);
  background:
    linear-gradient(165deg, #9edcff26, transparent 32%, #03071155 63%, #5094be24),
    repeating-linear-gradient(95deg, #ffffff08 0 1px, transparent 1px 4px),
    linear-gradient(145deg, #3a4b5b, #141c28 36%, #121c27 65%, #25384a);
  box-shadow:
    0 .55rem #060a12, 0 .68rem #374a5a, 0 2rem 4rem #02060acc,
    inset 0 2px #e7f7ff30, inset 0 -.4rem .7rem #050914d9;
}
.splash-table::before {
  content: "";
  position: absolute;
  inset: clamp(.55rem, 2vw, 1.45rem);
  z-index: -1;
  border: 1px solid #8ac6e49c;
  border-radius: clamp(2.55rem, 8vw, 6.8rem);
  background:
    repeating-linear-gradient(130deg, #e7f6ff08 0 1px, transparent 1px 3px),
    repeating-linear-gradient(36deg, #030b1429 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 46% 28%, #275d77, #102d42 53%, #081827 100%);
  box-shadow: 0 0 0 3px #070e17, inset 0 0 2rem #020710;
}
.splash-markings {
  position: absolute;
  inset: clamp(1.15rem, 4.3vw, 2.9rem);
  z-index: -1;
  overflow: hidden;
  border: 1px solid #afdcf75c;
  border-radius: clamp(2.1rem, 6.5vw, 5.7rem);
  box-shadow: 0 0 0 4px #98d5f116;
}
.splash-markings::before,
.splash-markings::after {
  content: "";
  position: absolute;
  top: 52%;
  left: 50%;
  width: 94%;
  height: 78%;
  border: 1px solid #a2d9f32b;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.splash-markings::after {
  width: 54%;
  height: 112%;
  transform: translate(-50%, -50%) rotate(48deg);
}
.splash-chips {
  --chip-edge: #76c6ed;
  --chip-body: #24485d;
  position: absolute;
  z-index: -1;
  width: clamp(2rem, 7vw, 5.15rem);
  height: clamp(2rem, 7vw, 5.15rem);
  transform: rotate(-16deg) scaleY(.67);
}
.splash-chips-left {
  top: 15%;
  left: 10%;
}
.splash-chips-right {
  --chip-edge: #d6ba78;
  --chip-body: #634b23;
  right: 10%;
  bottom: 15%;
  transform: rotate(21deg) scaleY(.65);
}
.splash-chips span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 53%, var(--chip-body) 55% 60%, transparent 62%),
    repeating-conic-gradient(var(--chip-edge) 0deg 24deg, var(--chip-body) 25deg 60deg);
  box-shadow: 0 .29rem #060e1a, 0 .36rem var(--chip-edge), 0 .48rem #060e1a;
}
.splash-chips span:nth-child(2) { transform: translate(3%, -12%); }
.splash-chips span:nth-child(3) { transform: translate(-4%, -24%); }
.splash-chips span:nth-child(4) { transform: translate(1%, -34%); }
.splash-chips span::after {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px solid var(--chip-edge);
  border-radius: 50%;
  background: radial-gradient(circle, transparent 26%, var(--chip-edge) 27% 30%, var(--chip-body) 32%);
}

.splash-content {
  display: grid;
  width: min(100%, 30rem);
  justify-items: center;
  gap: clamp(.65rem, 2.1vh, 1.15rem);
  text-align: center;
}
.splash-dice {
  position: relative;
  width: min(100%, calc(var(--splash-face) * 3.45));
  height: calc(var(--splash-face) * 1.85);
}
.splash-die {
  --half-face: calc(var(--splash-face) / 2);
  --roll-direction: 1;
  --rest-pitch: -15deg;
  --rest-yaw: 12deg;
  --rest-bank: -12deg;
  position: absolute;
  top: 34%;
  left: 10%;
  width: var(--splash-face);
  height: var(--splash-face);
  color: #193044;
  perspective: 460px;
  perspective-origin: 50% 23%;
}
.splash-die-four {
  --roll-direction: -1;
  --rest-pitch: 76deg;
  --rest-yaw: -12deg;
  --rest-bank: 13deg;
  top: 50%;
  right: 10%;
  left: auto;
}
.splash-die .dice-cube {
  transform: rotateZ(var(--rest-bank)) rotateY(var(--rest-yaw)) rotateX(var(--rest-pitch));
}
.splash-die .dice-face {
  border: 1px solid #a4cadd;
  border-radius: 5%;
  background: linear-gradient(142deg, #f3fbff, #bddff1);
  box-shadow: inset 0 1px #fff, inset 0 -.16rem .48rem #436c8540;
}
.splash-die-four .dice-face {
  border-color: #8cb8de;
  background: linear-gradient(142deg, #d5f2ff, #76b5dc);
}
.splash-die .pip.filled { box-shadow: inset 0 1px 2px #07111d; }
.splash-die .dice-shadow {
  inset: 87% -13% -22%;
  background: #010610;
  filter: blur(7px);
}
#splash-domain {
  color: #ebf8ff;
  font-size: clamp(2rem, 8vw, 4.6rem);
  font-weight: 850;
  letter-spacing: -.045em;
  text-shadow: 0 .2rem .7rem #010611;
}
#splash-domain span { color: #9bddff; }
#splash-domain:focus { outline: none; }
.splash-actions {
  display: grid;
  place-items: center;
  min-height: 3.1rem;
}
#splash-play {
  min-width: clamp(9.5rem, 30vw, 13rem);
  min-height: 3.1rem;
  border-color: #ccefff;
  font-weight: 750;
  box-shadow: 0 0 1.25rem #94dbff42, 0 .45rem 1.05rem #01040b80;
}
#splash-play:focus-visible { outline-color: #e0f6ff; }

@media (prefers-reduced-motion: no-preference) {
  .splash-die {
    animation: splash-table-roll 2.6s linear both;
  }
  .splash-die .dice-cube {
    animation: splash-die-spin 2.6s linear both;
  }
  .splash-die .dice-shadow {
    animation: splash-die-shadow 2.6s linear both;
  }
  .splash-die-four,
  .splash-die-four .dice-cube,
  .splash-die-four .dice-shadow { animation-delay: 160ms; }
  #splash-play { animation: splash-cta-in 180ms ease-out both; }
}
@keyframes splash-table-roll {
  0% { opacity: 0; transform: translate(calc(-145% * var(--roll-direction)), -150%) scale(.61); }
  9% { opacity: 1; }
  22% { transform: translate(calc(32% * var(--roll-direction)), -95%) scale(.89); animation-timing-function: ease-in; }
  40% { transform: translate(calc(78% * var(--roll-direction)), 7%) scale(1.04); animation-timing-function: ease-out; }
  55% { transform: translate(calc(47% * var(--roll-direction)), -56%) scale(.95); animation-timing-function: ease-in; }
  68% { transform: translate(calc(21% * var(--roll-direction)), 4%); animation-timing-function: ease-out; }
  79% { transform: translate(calc(-12% * var(--roll-direction)), -19%); animation-timing-function: ease-in; }
  91% { transform: translate(calc(-4% * var(--roll-direction)), 1%); animation-timing-function: ease-out; }
  100% { transform: none; }
}
@keyframes splash-die-spin {
  0% { transform: rotateZ(calc(var(--rest-bank) + 210deg * var(--roll-direction))) rotateY(calc(var(--rest-yaw) - 670deg * var(--roll-direction))) rotateX(calc(var(--rest-pitch) - 880deg * var(--roll-direction))); }
  40% { transform: rotateZ(calc(var(--rest-bank) + 82deg * var(--roll-direction))) rotateY(calc(var(--rest-yaw) - 370deg * var(--roll-direction))) rotateX(calc(var(--rest-pitch) - 440deg * var(--roll-direction))); }
  68% { transform: rotateZ(calc(var(--rest-bank) - 18deg * var(--roll-direction))) rotateY(calc(var(--rest-yaw) - 95deg * var(--roll-direction))) rotateX(calc(var(--rest-pitch) - 175deg * var(--roll-direction))); }
  91% { transform: rotateZ(calc(var(--rest-bank) + 3deg * var(--roll-direction))) rotateY(var(--rest-yaw)) rotateX(calc(var(--rest-pitch) + 8deg * var(--roll-direction))); }
  100% { transform: rotateZ(var(--rest-bank)) rotateY(var(--rest-yaw)) rotateX(var(--rest-pitch)); }
}
@keyframes splash-die-shadow {
  0%, 22% { opacity: .2; transform: translateY(45%) scale(1.4); }
  40%, 68%, 91%, 100% { opacity: .9; transform: none; }
  55% { opacity: .4; transform: translateY(25%) scale(1.25); }
  79% { opacity: .65; transform: translateY(12%) scale(1.1); }
}
@keyframes splash-cta-in {
  from { opacity: 0; transform: translateY(.35rem); }
  to { opacity: 1; transform: none; }
}
@media (max-height: 470px) and (orientation: landscape) {
  .splash-table { min-height: min(18rem, 82vh); padding-block: 1rem; }
  .splash-content { gap: .4rem; }
  #splash-domain { font-size: clamp(1.75rem, 8vh, 3rem); }
}
