@charset "UTF-8";

/* src/dice.css */
.dice-tray {
  --die-size: clamp(42px, 12vw, 54px);
  position: relative;
  isolation: isolate;
  margin: 12px 0 0;
  padding: 15px 12px 9px;
  border: 1px solid #9062ae75;
  border-radius: 25px;
  background:
    radial-gradient(
      ellipse at 22% 0%,
      #9843c224,
      transparent 65%),
    radial-gradient(
      ellipse at 100% 100%,
      #29ccdb0d,
      transparent 58%),
    repeating-linear-gradient(
      38deg,
      #ffffff02 0 1px,
      transparent 1px 4px),
    #1b112b;
  box-shadow:
    inset 0 2px 1px #dba0ff16,
    inset 0 0 0 5px #0d081b65,
    inset 0 8px 20px #04000960,
    0 4px 0 #05020c;
}
.dice-tray::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 6px;
  border: 1px solid #8c61aa28;
  border-radius: 19px;
  pointer-events: none;
}
.dice-tray-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  align-items: center;
  gap: 5px 8px;
  max-width: 380px;
  margin: 0 auto;
}
.dice-tray[data-count="1"] .dice-tray-grid {
  grid-template-columns: minmax(0, 112px);
}
.dice-tray[data-count="2"] .dice-tray-grid,
.dice-tray[data-count="4"] .dice-tray-grid {
  grid-template-columns: repeat(2, minmax(0, 112px));
}
.dice-piece {
  position: relative;
  display: grid;
  grid-template-rows: calc(var(--die-size) + 18px) 17px;
  justify-items: center;
  align-items: center;
  width: 100%;
  min-width: 44px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  color: #e4d5ef;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.dice-piece:disabled {
  cursor: default;
  opacity: 1;
}
.dice-piece:focus-visible {
  outline: 2px solid var(--cyan, #39e2ee);
  outline-offset: 2px;
  background: #39e2ee0a;
}
.dice-scene {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  perspective: 600px;
}
.dice-lift,
.dice-angle,
.dice-cube {
  display: block;
  width: var(--die-size);
  height: var(--die-size);
  transform-style: preserve-3d;
}
.dice-lift {
  position: relative;
  z-index: 1;
  transition: translate .18s ease;
}
.dice-angle {
  transform: rotateX(-18deg) rotateY(-23deg) rotateZ(var(--rest-angle));
}
.dice-cube {
  position: relative;
  transform: rotateX(var(--face-x)) rotateY(var(--face-y));
}
.dice-side {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  gap: 10%;
  padding: 18%;
  backface-visibility: hidden;
  border: 1px solid #e6c9ff;
  border-radius: 11%;
  background:
    linear-gradient(
      145deg,
      #ccb0e0,
      #b58acd 70%,
      #936ab0);
  box-shadow:
    inset 0 2px 1px #ffffffb0,
    inset 2px 0 2px #f1daff80,
    inset -2px -3px 2px #67318855,
    inset 0 0 0 3px #eac7ff25;
}
.dice-side.is-result {
  border-color: #f4e6ff;
  background:
    linear-gradient(
      140deg,
      #fbf2ff 0%,
      #ecd4ff 55%,
      #cea4e8 100%);
  box-shadow:
    inset 0 2px 1px #fff,
    inset 2px 0 2px #ffffffb0,
    inset -2px -3px 2px #9462b15c,
    inset 0 0 0 3px #ffffff35;
}
.dice-pip {
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 55% 66%,
      #392249 15%,
      #23122e 65%);
  box-shadow: inset 0 1px 2px #000b, 0 1px 0 #ffffff90;
}
.dice-contact-shadow {
  position: absolute;
  left: calc(50% - var(--die-size) * .55);
  bottom: 0;
  width: calc(var(--die-size) * 1.15);
  height: 13px;
  border-radius: 50%;
  background: #030007a8;
  filter: blur(4px);
  transform: rotate(var(--rest-angle));
}
.dice-readout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 17px;
  padding: 0 6px;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
  line-height: 17px;
}
.dice-result-number {
  color: #ddcde9;
  font-size: .73rem;
  font-weight: 800;
}
.dice-held-label {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.dice-piece.is-held .dice-side {
  border-color: #d4ed87;
  background:
    linear-gradient(
      145deg,
      #cadc8c,
      #9db857 80%);
  box-shadow:
    inset 0 2px 1px #ffffffc0,
    inset 2px 0 2px #edffb080,
    inset -2px -3px 2px #557d2a65;
}
.dice-piece.is-held .dice-side.is-result {
  border-color: #f0ffb2;
  background:
    linear-gradient(
      140deg,
      #f5ffcd,
      #e3ff80 55%,
      #bbec44);
}
.dice-piece.is-held .dice-pip {
  background:
    radial-gradient(
      circle at 55% 66%,
      #35471a 15%,
      #1c2e0e 65%);
}
.dice-piece.is-held .dice-contact-shadow {
  background: #9bcb2550;
}
.dice-piece.is-held .dice-readout {
  color: #d4ff3f;
  background: #d4ff3f12;
}
.dice-piece.is-held .dice-result-number {
  color: inherit;
}
.dice-piece.is-unrolled .dice-side {
  border-color: #9c6abc99;
  background:
    linear-gradient(
      145deg,
      #624276,
      #442755);
  box-shadow: inset 0 1px 1px #d6acfa40, inset -2px -3px 2px #1a0b2855;
}
.dice-tray[data-rolled=false] .dice-piece {
  grid-template-rows: calc(var(--die-size) + 18px);
}
.dice-tray[data-rolled=false] .dice-readout {
  display: none;
}
.dice-ready-label {
  margin: 6px 0 0;
  color: #cbb5dc;
  text-align: center;
  font-size: .75rem;
  font-weight: 600;
}
@media (hover: hover) {
  .dice-piece:hover:not(:disabled):not(.is-rolling) .dice-lift {
    translate: 0 -3px;
  }
}
.dice-piece.is-rolling .dice-cube {
  animation: dice-tumble 680ms cubic-bezier(.2, .62, .35, 1) var(--roll-delay) both;
}
.dice-piece.is-rolling .dice-lift {
  animation: dice-hop 680ms ease-out var(--roll-delay) both;
}
.dice-piece.is-rolling .dice-contact-shadow {
  animation: dice-shadow 680ms ease-out var(--roll-delay) both;
}
@keyframes dice-tumble {
  0% {
    transform: rotateX(calc(var(--face-x) - 540deg)) rotateY(calc(var(--face-y) - 540deg)) rotateZ(-90deg);
  }
  58% {
    transform: rotateX(calc(var(--face-x) - 70deg)) rotateY(calc(var(--face-y) - 95deg)) rotateZ(15deg);
  }
  80% {
    transform: rotateX(calc(var(--face-x) + 8deg)) rotateY(calc(var(--face-y) + 9deg)) rotateZ(-3deg);
  }
  100% {
    transform: rotateX(var(--face-x)) rotateY(var(--face-y)) rotateZ(0deg);
  }
}
@keyframes dice-hop {
  0% {
    transform: translate3d(0, 0, 0);
  }
  26% {
    transform: translate3d(var(--roll-drift), -16px, 12px);
  }
  65% {
    transform: translate3d(0, 2px, 0);
  }
  82% {
    transform: translate3d(0, -3px, 2px);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}
@keyframes dice-shadow {
  0%, 65%, 100% {
    scale: 1;
    opacity: 1;
  }
  26% {
    scale: .76;
    opacity: .4;
  }
  82% {
    scale: .93;
    opacity: .85;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dice-piece.is-rolling .dice-cube,
  .dice-piece.is-rolling .dice-lift,
  .dice-piece.is-rolling .dice-contact-shadow {
    animation: none;
  }
  .dice-lift {
    transition: none;
  }
  .dice-piece:hover:not(:disabled):not(.is-rolling) .dice-lift {
    translate: none;
  }
}

/* src/app.css */
@font-face {
  font-family: "Baloo 2";
  src: url(/fonts/baloo-2.ttf) format("truetype");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --paper:#0d081b;
  --white:#fff8e7;
  --ink:#fff8e7;
  --muted:#b9aaca;
  --line:#49315f;
  --soft:#211533;
  --forest:#d4ff3f;
  --coral:#ba74ff;
  --danger:#ff94b1;
  --purple:#ac4dff;
  --cyan:#39e2ee;
  --shadow:0 12px 40px #03000870;
  --panel:linear-gradient(
      
      140deg,#302043,#1b122d);
  font-family:
    "Segoe UI",
    Arial,
    sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 280px;
  background:
    radial-gradient(
      ellipse at 50% 0,
      #29113e80,
      transparent 620px),
    var(--paper);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled {
  cursor: not-allowed;
  opacity: .45;
}
a {
  color: var(--forest);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}
main:focus {
  outline: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family:
    "Baloo 2",
    "Segoe UI",
    sans-serif;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.15;
}
h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
}
h2 {
  font-size: 1.3rem;
}
h3 {
  font-size: 1rem;
}
p {
  line-height: 1.55;
}
small {
  font-size: .78rem;
}
svg {
  display: block;
}
button svg {
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .17em;
  font-size: .62rem;
  font-weight: 750;
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  padding: 1rem;
  background: var(--paper);
  z-index: 100;
}
.skip-link:focus {
  top: 1rem;
}
.no-script {
  max-width: 32rem;
  margin: 5rem auto;
  padding: 1.5rem;
}
.shell {
  max-width: 600px;
  margin: 0 auto;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 20px calc(72px + env(safe-area-inset-bottom));
}
.app-header {
  height: 56px;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.brand {
  font-family:
    "Baloo 2",
    "Segoe UI",
    sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 8px 0;
  background: none;
  color: var(--ink);
  font-weight: 900;
  font-size: 1.18rem;
  letter-spacing: -.055em;
}
.brand-wordmark .wordmark-bottom {
  color: var(--forest);
}
.brand-mark {
  color: var(--purple);
  filter: drop-shadow(0 0 5px #aa4aff70);
  transform: rotate(-12deg);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.icon-button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 #ffffff09;
}
.icon-button:hover:not(:disabled) {
  border-color: var(--coral);
  background: #39214f;
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 12px;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 650;
}
.text-button:hover:not(:disabled) {
  background: #342146;
}
.text-button.danger {
  color: var(--danger);
}
.back-button {
  margin: 0 0 8px -9px;
  color: var(--muted);
}
.screen {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 10px 2px 12px;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  overscroll-behavior-y: contain;
}
.stack {
  display: grid;
  gap: 18px;
}
.screen-intro {
  margin-bottom: 16px;
}
.screen-intro p {
  margin-top: 6px;
  color: var(--muted);
  font-size: .85rem;
}
.rule {
  height: 1px;
  background: var(--line);
  margin: 25px 0;
}
.button {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 19px;
  border: 1px solid #e7ff99;
  background:
    linear-gradient(
      160deg,
      #e3ff79,
      #c6fc2e);
  color: #171423;
  font-weight: 850;
  font-size: 1rem;
  text-decoration: none;
  line-height: 1.25;
  box-shadow:
    inset 0 2px 1px #ffffff70,
    0 4px 0 #83ae1838,
    0 0 22px #c6ff2a1c;
  transition:
    filter .15s,
    transform .15s,
    border-color .15s;
}
.button:hover:not(:disabled) {
  filter: brightness(1.08);
}
.button:active:not(:disabled),
.icon-button:active:not(:disabled),
.text-button:active:not(:disabled) {
  transform: scale(.97);
}
.button.secondary,
.button.subtle {
  background:
    linear-gradient(
      150deg,
      #342447,
      #21152f);
  color: var(--ink);
  border-color: #745093;
  box-shadow: inset 0 1px 0 #ffffff12, 0 3px 0 #06020c60;
}
.button.coral {
  background:
    linear-gradient(
      135deg,
      #ba74ff,
      #8c37e8);
  border-color: #d6a1ff;
  color: var(--white);
  box-shadow: 0 0 20px #a34aff25;
}
.button.danger {
  background: #54253e;
  color: var(--white);
  border-color: #c56c90;
  box-shadow: none;
}
.button.small {
  min-height: 44px;
  font-size: .85rem;
  padding: 10px 14px;
  border-radius: 13px;
}
.button.full {
  width: 100%;
}
.button-label {
  flex: 1;
  text-align: left;
}
.button-detail {
  display: block;
  font-weight: 500;
  font-size: .71rem;
  opacity: .78;
  margin-top: 4px;
}
.button-row {
  display: flex;
  gap: 10px;
}
.button-row > * {
  flex: 1;
}
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #251c38;
  border: 1px solid #62477d;
  padding: 13px 15px;
  border-radius: 14px;
  font-size: .8rem;
  color: var(--ink);
  line-height: 1.5;
}
.notice.error {
  background: #3e1c33;
  border-color: #83415c;
  color: #ffb3c9;
}
.notice.warning {
  background: #382936;
  border-color: #775448;
  color: #ffe0ab;
}
.notice svg {
  flex: none;
  margin-top: 2px;
}
.empty {
  padding: 30px 20px;
  text-align: center;
  border: 1px dashed #695180;
  border-radius: 20px;
}
.empty p {
  font-size: .86rem;
  color: var(--muted);
  margin-top: 8px;
}
.empty-icon {
  margin: 0 auto 14px;
  color: var(--coral);
}
.home-screen {
  padding-top: 0;
}
.view-home .app-header {
  height: 48px;
  position: relative;
  z-index: 2;
}
.view-home .app-header .brand {
  visibility: hidden;
}
.home-hero {
  position: relative;
  margin: 0;
  isolation: isolate;
  min-height: clamp(230px, 36dvh, 310px);
  padding: 8px 8px 0;
  text-align: center;
  overflow: hidden;
}
.hero-art {
  position: absolute;
  z-index: -1;
  top: 105px;
  left: 0;
  width: 100%;
  height: clamp(170px, 24dvh, 215px);
  object-fit: cover;
  object-position: center 62%;
  -webkit-mask-image:
    linear-gradient(
      transparent,
      #000 18%,
      #000 85%,
      transparent);
  mask-image:
    linear-gradient(
      transparent,
      #000 18%,
      #000 85%,
      transparent);
  opacity: .95;
}
.home-hero:after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(
      #0d081b 0%,
      #0d081b70 25%,
      transparent 53%,
      #0d081b00 85%,
      var(--paper));
}
.home-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family:
    "Baloo 2",
    "Arial Rounded MT Bold",
    "Trebuchet MS",
    sans-serif;
  font-size: clamp(3.2rem, 12vw, 3.8rem);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.055em;
  text-shadow: 0 4px 0 #10051b, 0 0 18px #0d081b;
  transform: rotate(-3deg);
  margin: 4px auto 15px;
  width: max-content;
  max-width: 100%;
  position: relative;
}
.home-wordmark span:first-child {
  transform: rotate(-2deg);
}
.home-wordmark span:last-child {
  color: var(--forest);
  font-size: 1.2em;
  transform: rotate(4deg);
}
.home-wordmark > svg {
  position: absolute;
  width: 39px;
  height: 39px;
  right: -35px;
  top: 5px;
  color: #e6baff;
  transform: rotate(18deg);
  filter: drop-shadow(0 0 6px #ac4dff);
}
.hero-copy {
  position: relative;
}
.hero-copy h1,
.hero-copy h2 {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -.045em;
}
.hero-copy p {
  font-size: .85rem;
  color: #e5d9ee;
  text-shadow: 0 2px 8px #0d081b;
  margin-top: 4px;
}
.home-actions {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: -4px;
}
.home-actions .button {
  min-height: 65px;
  gap: 16px;
  padding-left: 20px;
  font-size: 1.03rem;
}
.home-actions .button > svg:first-child {
  width: 25px;
  height: 25px;
}
.home-note {
  text-align: center;
  font-size: .71rem;
  color: var(--muted);
  margin: 14px 0 18px;
}
.home-tagline {
  text-align: center;
  letter-spacing: .27em;
  font-size: .59rem;
  font-weight: 700;
  color: var(--muted);
  margin: 22px 0;
}
.table-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.resume-card {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  border: 1px solid #614b77;
  background: var(--panel);
  padding: 17px;
  width: 100%;
  border-radius: 18px;
  color: var(--ink);
  margin-bottom: 12px;
}
.resume-card strong {
  display: block;
  font-size: .98rem;
}
.resume-card small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.resume-card .resume-copy {
  flex: 1;
  min-width: 0;
}
.resume-card .resume-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.resume-dot {
  width: 10px;
  height: 10px;
  background: var(--forest);
  border-radius: 50%;
  box-shadow: 0 0 0 5px #d4ff3f10, 0 0 15px #d4ff3f80;
  flex: none;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  z-index: 10;
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  background: #100a20f5;
  border: 1px solid #45305c;
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -8px 25px #0a051e66;
  display: flex;
  justify-content: space-around;
  gap: 8px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.nav-item {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px 10px;
  min-height: 51px;
  font-size: .65rem;
  font-weight: 600;
  border-radius: 13px;
}
.nav-item.active {
  color: var(--forest);
  background: #d4ff3f0b;
}
.nav-item.active svg {
  filter: drop-shadow(0 0 7px #c5ff4780);
}
.form-grid {
  display: grid;
  gap: 12px;
}
.field {
  display: grid;
  gap: 8px;
  font-size: .8rem;
  font-weight: 650;
}
.field input,
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #634a7b;
  background: #171023;
  color: var(--ink);
  border-radius: 14px;
  padding: 9px 11px;
  font-size: 1rem;
  font-weight: 400;
  box-shadow: inset 0 2px 5px #05000d40;
}
.field input::placeholder {
  color: #9c8bac;
}
.field small {
  color: var(--muted);
  font-weight: 400;
  font-size: .74rem;
  line-height: 1.45;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.game-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.game-option {
  padding: 8px 4px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  min-height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 650;
  font-size: .73rem;
  color: var(--muted);
}
.game-option.selected {
  background:
    linear-gradient(
      145deg,
      #7438a4,
      #422364);
  color: var(--white);
  border-color: #bc77ff;
  box-shadow: 0 0 14px #a04aff20, inset 0 0 10px #aa55ff18;
}
.game-option.selected svg {
  color: var(--forest);
}
.field-label {
  font-weight: 650;
  font-size: .8rem;
  display: block;
  margin-bottom: 10px;
}
.preset-options {
  display: flex;
  gap: 7px;
}
.preset {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #1c122b;
  border-radius: 12px;
  font-size: .8rem;
  color: var(--muted);
}
.preset.selected {
  background: #d4ff3f12;
  border-color: #aaca37;
  color: var(--forest);
  font-weight: 700;
}
.setup-names {
  display: grid;
  gap: 10px;
}
.setup-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.setup-name .field {
  flex: 1;
  min-width: 0;
}
.setup-name .token {
  width: 33px;
  height: 40px;
  margin-top: 21px;
}
.setup-name .icon-button {
  align-self: end;
  margin-bottom: 4px;
}
.form-submit {
  margin-top: 8px;
}
.disclosure {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.disclosure > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 0;
  color: var(--muted);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 650;
  list-style: none;
}
.disclosure > summary::-webkit-details-marker {
  display: none;
}
.disclosure > summary::after {
  content: "+";
  margin-left: auto;
  color: var(--forest);
  font-size: 1.1rem;
}
.disclosure[open] > summary::after {
  content: "\2212";
}
.disclosure > summary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: -2px;
  border-radius: 4px;
}
.disclosure > .field {
  margin: 10px 0;
}
.setup-options {
  margin: 0;
}
.setup-names {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.setup-name:only-child {
  grid-column: 1 / -1;
}
.setup-name .token {
  display: none;
}
.tools-list {
  display: grid;
}
.tool-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--ink);
  padding: 16px 2px;
  text-align: left;
}
.tool-row:hover {
  background: #ac4dff0c;
}
.tool-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 52px;
  color: var(--coral);
  flex: none;
}
.tool-row:first-child .tool-icon {
  color: var(--forest);
}
.tool-copy {
  flex: 1;
  min-width: 0;
}
.tool-copy strong {
  display: block;
  font-family: "Baloo 2", sans-serif;
  font-size: 1.3rem;
  line-height: 1.2;
}
.tool-copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}
.tool-row > svg {
  color: var(--muted);
}
.stopwatch-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px 0 24px;
  min-height: clamp(165px, 29dvh, 250px);
  border-block: 1px solid var(--line);
  color: var(--muted);
}
.stopwatch-face strong {
  font-size: clamp(2.8rem, 12vw, 4.4rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.06em;
  color: var(--ink);
}
.stopwatch-face.running strong,
.stopwatch-face.running > svg {
  color: var(--forest);
}
.stopwatch-face > span {
  font-size: .8rem;
}
.reset-stopwatch {
  margin: 8px auto;
}
.lap-list {
  padding: 0;
  list-style: none;
}
.lap-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  font-size: .85rem;
}
.coin-stage {
  display: grid;
  place-items: center;
  min-height: clamp(190px, 32dvh, 270px);
  perspective: 600px;
}
.coin {
  width: 145px;
  height: 145px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 6px double #efffa3;
  background:
    radial-gradient(
      circle at 30% 20%,
      #f0ffb0,
      #bfd44b 65%,
      #869a2a);
  color: #263210;
  font: 800 1.8rem "Baloo 2", sans-serif;
  box-shadow:
    2px 7px 0 #647620,
    0 18px 30px #0008,
    inset 0 0 0 7px #a4b546;
  transform: rotateX(15deg) rotateZ(-9deg);
}
.table-history .history-entry {
  padding-block: 14px;
}
.table-screen > .button + .button {
  margin-top: 12px;
}
.join-code {
  font-size: 1.45rem !important;
  letter-spacing: .19em;
  text-transform: uppercase;
  font-weight: 750 !important;
}
.section-caption {
  font-size: .78rem;
  color: var(--muted);
  margin: 8px 0 18px;
  line-height: 1.5;
}
.token {
  --token:#af5cff;
  display: inline-flex;
  width: 44px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--token);
  flex: none;
  position: relative;
  filter: drop-shadow(0 3px 5px #0007);
}
.token .pawn,
.token > svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.token.large {
  width: 70px;
  height: 80px;
}
.token.small {
  width: 28px;
  height: 32px;
}
.token-initials {
  position: absolute;
  font-size: .55rem;
  color: var(--white);
}
.table-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.table-heading h1 {
  font-size: 1.7rem;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.table-heading .eyebrow {
  margin-bottom: 6px;
}
.table-heading .text-button {
  border: 1px solid #8150a1;
  background:
    linear-gradient(
      135deg,
      #8241bb,
      #54267e);
  border-radius: 13px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .66rem;
  white-space: nowrap;
}
.status:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status.live {
  color: var(--forest);
}
.status.offline,
.status.reconnecting,
.status.unavailable {
  color: var(--danger);
}
.table-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: .73rem;
  margin-top: 7px;
}
.table-code {
  font-family:
    ui-monospace,
    "Cascadia Code",
    Consolas,
    monospace;
  letter-spacing: .09em;
  font-weight: 750;
  color: var(--white);
}
.lobby-share {
  background: var(--panel);
  border: 1px solid #63427d;
  border-radius: 20px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 23px;
  box-shadow: inset 0 1px 0 #ffffff09;
}
.lobby-share .table-code {
  display: block;
  font-size: 1.45rem;
  letter-spacing: .12em;
  margin-top: 4px;
}
.lobby-share small {
  color: var(--muted);
  font-size: .61rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.lobby-share .button {
  background:
    linear-gradient(
      140deg,
      #bd6aff,
      #8635ed);
  border-color: #cc93ff;
  color: var(--white);
  box-shadow: inset 0 1px 0 #ffffff40, 0 0 16px #a746ff25;
}
.table-lobby .table-heading .eyebrow {
  display: none;
}
.table-lobby .table-heading h1 {
  font-size: 1.6rem;
}
.table-lobby .table-heading {
  margin-bottom: 13px;
}
.table-lobby .lobby-share {
  margin-bottom: 17px;
}
.lobby-roster-heading h2 {
  font-size: 1.06rem;
}
.table-lobby .seat {
  min-height: 100px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.table-lobby .seat .token {
  width: 52px;
  height: 58px;
}
.table-lobby .lobby-start {
  margin-top: 14px;
}
.add-seat-tile {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 58px;
  border: 1px dashed #75538d;
  border-radius: 18px;
  background: #1c112960;
  color: var(--muted);
  font-weight: 650;
  margin-top: 10px;
}
.add-seat-tile:hover {
  background: #332043;
  color: var(--white);
}
.seating {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.seat {
  --token:#af5cff;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 148px;
  padding: 15px 12px 13px;
  border: 1px solid color-mix(in srgb, var(--token) 46%, #372849);
  border-radius: 18px;
  background:
    radial-gradient(
      ellipse at 50% 0,
      color-mix(in srgb, var(--token) 15%, transparent),
      transparent 80%),
    linear-gradient(
      145deg,
      #271a39,
      #1b142b);
  box-shadow: inset 0 1px 0 #ffffff09;
}
.seat.first-seat {
  border-color: var(--token);
  box-shadow: inset 0 0 16px #ad52ff18, 0 0 12px #a74aff20;
}
.seat .token {
  width: 60px;
  height: 67px;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--token) 38%, transparent));
}
.seat-name {
  min-width: 0;
  text-align: center;
  width: 100%;
}
.seat-name strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.seat-name small {
  display: block;
  font-size: .64rem;
  color: #c6b8d6;
  margin-top: 4px;
  line-height: 1.4;
}
.seat-number {
  position: absolute;
  left: 12px;
  top: 12px;
  color: var(--token);
  font-weight: 800;
  font-size: .72rem;
}
.seat-menu {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #c7b0df;
}
.seat-actions {
  display: grid;
  gap: 9px;
}
.seat-actions .icon-button {
  width: 100%;
}
.seat-actions .text-button {
  justify-content: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 12px 15px;
}
.add-seat {
  display: flex;
  align-items: end;
  gap: 9px;
  margin: 12px 0 20px;
  padding: 15px;
  border: 1px dashed #75538d;
  border-radius: 18px;
  background: #1c112930;
}
.add-seat .field {
  flex: 1;
  min-width: 0;
  font-size: .72rem;
}
.add-seat .field input {
  min-height: 46px;
  font-size: .9rem;
}
.add-seat .button {
  min-height: 46px;
}
.lobby-start {
  margin-top: 22px;
}
.settings-summary {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  font-size: .81rem;
  gap: 10px;
}
.settings-summary small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.seat-picker {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.seat-picker .text-button {
  border: 1px solid var(--line);
}
.seat-picker .selected {
  border-color: var(--forest);
  background: var(--soft);
}
.table-screen {
  padding-top: 15px;
}
.table-screen .connection-notice {
  margin-bottom: 14px;
}
.table-tabs {
  display: flex;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #160e25;
  padding: 5px;
  margin-bottom: 10px;
}
.table-tab {
  border: 0;
  box-shadow: none;
  border-radius: 10px;
  background: transparent;
  padding: 10px 12px;
  min-height: 44px;
  flex: 1;
  color: var(--muted);
  font-size: .79rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 650;
}
.table-tab.selected {
  background: #352149;
  color: var(--white);
}
.table-tab.selected svg {
  color: var(--forest);
}
.view-table.mode-turn.tab-timer .table-tabs {
  display: none;
}
.tab-dice .table-heading,
.tab-scores .table-heading {
  margin-bottom: 8px;
}
.tab-dice .table-heading h1,
.tab-scores .table-heading h1 {
  font-size: 1.3rem;
}
.tab-dice .table-heading .eyebrow,
.tab-dice .table-meta,
.tab-scores .table-heading .eyebrow,
.tab-scores .table-meta {
  display: none;
}
.timer-face {
  text-align: center;
  padding: 4px 0 0;
  position: relative;
  isolation: isolate;
}
.timer-face:before {
  content: "";
  position: absolute;
  inset: -30px 0 20px;
  background: linear-gradient(#0d081b40, #0d081b90), url(/art/game-night-hero.png) center 75%/cover;
  opacity: .2;
  -webkit-mask-image:
    linear-gradient(
      transparent,
      #000 15%,
      #000 70%,
      transparent);
  mask-image:
    linear-gradient(
      transparent,
      #000 15%,
      #000 70%,
      transparent);
  z-index: -1;
}
.turn-dial {
  --dial:#b958ff;
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: min(265px, 32dvh);
  margin: 0 auto 8px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle,
      #171027 45%,
      #26103855 70%,
      transparent 71%);
  isolation: isolate;
}
.dial-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: -1;
  filter: drop-shadow(0 0 5px #a92dff70);
}
.dial-track {
  fill: none;
  stroke: #4c2368;
  stroke-width: 1.6;
}
.dial-progress {
  fill: none;
  stroke: #cb79ff;
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 2px #cc40ff) drop-shadow(0 0 5px #a526ef);
  transition: stroke-dashoffset .25s linear;
  transform: rotate(-90deg);
  transform-origin: center;
}
.dial-ticks {
  stroke: #c9a0e9;
  stroke-width: .45;
  opacity: .7;
}
.turn-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  max-width: 78%;
}
.turn-heading h2 {
  font-size: 1.45rem;
  line-height: 1.15;
  font-weight: 850;
  max-width: 260px;
  overflow-wrap: anywhere;
}
.turn-heading .token {
  width: 70px;
  height: 80px;
  margin-top: -28px;
  margin-bottom: 1px;
  filter: drop-shadow(0 0 12px #bc51ffb0);
}
.turn-caption {
  color: #c9b5dc;
  font-size: .69rem;
  margin-top: 5px;
  max-width: 75%;
  line-height: 1.4;
}
.timer-digits {
  font-family:
    "Arial Rounded MT Bold",
    "Segoe UI",
    Arial,
    sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: clamp(3.6rem, 18vw, 5.1rem);
  font-weight: 850;
  letter-spacing: -.065em;
  line-height: 1.15;
  margin: 3px 0;
  color: var(--white);
  text-shadow: 0 0 22px #cc93ff15;
  white-space: nowrap;
}
.timer-digits.expired {
  color: var(--danger);
}
.turn-dial.expired {
  --dial:var(--danger);
}
.turn-dial.expired .dial-progress {
  stroke: var(--danger);
}
.turn-dial.paused .dial-progress {
  opacity: .55;
  filter: none;
}
.next-player {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .79rem;
  color: #dbcee7;
  background: var(--panel);
  border: 1px solid #563870;
  border-radius: 17px;
  width: max-content;
  max-width: 100%;
  padding: 5px 17px;
  margin: 0 auto 12px;
  min-height: 44px;
}
.next-player > span {
  min-width: 0;
  display: flex;
  gap: 5px;
  align-items: center;
  white-space: nowrap;
}
.next-player strong {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-weight: 750;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.turn-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 10px 0 14px;
}
.turn-controls .turn-control {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  min-height: 60px;
  padding: 11px 4px;
  font-size: .75rem;
  background: var(--panel);
  border: 1px solid #62437d;
  border-radius: 17px;
  box-shadow: inset 0 1px 0 #ffffff0a;
  color: var(--ink);
}
.turn-controls svg {
  width: 24px;
  height: 24px;
}
.pass-button {
  min-height: 65px;
  font-size: 1.16rem;
  width: 100%;
  margin-top: 12px;
}
.pass-button .button-detail {
  text-align: center;
  font-size: .69rem;
}
.waiting-control {
  margin-top: 12px;
  text-align: center;
  border: 1px solid #8252a3;
  background: var(--panel);
  border-radius: 19px;
  min-height: 65px;
  padding: 13px;
}
.waiting-control strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: .9rem;
}
.waiting-control small {
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.host-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 7px;
}
.host-controls .text-button {
  font-size: .75rem;
  flex: 1;
  padding: 8px 4px;
}
.end-game-control {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}
.end-game-control .text-button {
  color: var(--muted);
  font-size: .71rem;
}
.round-marker {
  text-align: center;
  font-size: .64rem;
  color: var(--muted);
  letter-spacing: .09em;
  text-transform: uppercase;
  margin: 10px 0 2px;
}
.people-strip {
  display: flex;
  gap: 13px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: thin;
}
.person-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-size: .76rem;
  color: var(--muted);
}
.person-chip.current {
  color: var(--forest);
  font-weight: 700;
}
.person-chip span:last-child {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-clock {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
  margin-bottom: 12px;
}
.mini-clock .mini-name {
  flex: 1;
  min-width: 0;
  font-size: .8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-clock strong {
  font-size: 1.55rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.05em;
  color: var(--forest);
}
.mini-clock .mini-paused {
  display: block;
  font-size: .67rem;
  color: var(--muted);
  margin-top: 3px;
}
.chess-board {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.chess-seat {
  border: 1px solid #53386f;
  border-radius: 23px;
  padding: 19px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 135px;
}
.chess-seat.active {
  background:
    radial-gradient(
      ellipse at 50% 0,
      #763dac,
      #291445);
  color: var(--white);
  border-color: #c179ff;
  box-shadow: inset 0 0 18px #aa4fff22, 0 0 20px #8c2eff20;
}
.chess-seat:disabled {
  opacity: 1;
  cursor: default;
}
.chess-seat .clock-value {
  font-size: 3.25rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.06em;
  font-weight: 750;
}
.chess-seat .chess-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  max-width: 190px;
  overflow-wrap: anywhere;
}
.chess-seat .chess-label {
  font-size: .67rem;
  opacity: .7;
  margin-top: 9px;
}
.chess-board.opposing .chess-seat:first-child {
  transform: rotate(180deg);
}
.chess-help {
  text-align: center;
  color: var(--muted);
  font-size: .73rem;
  margin: 13px 0 0;
}
.score-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 22px;
  display: grid;
  gap: 10px;
}
.score-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.score-row .score-name {
  flex: 1;
  min-width: 0;
  font-size: .89rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.score-value {
  font-size: 1.85rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  min-width: 32px;
  text-align: right;
  color: var(--forest);
}
.score-row .text-button {
  margin-left: 3px;
  min-width: 60px;
  padding: 8px;
  background: #5e327c60;
}
.log-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.log-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  color: var(--muted);
  font-size: .77rem;
  border-bottom: 1px solid var(--line);
}
.log-item strong {
  font-weight: 650;
  color: var(--ink);
}
.log-item time {
  white-space: nowrap;
  font-size: .69rem;
}
.dice-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0;
}
.dice-toolbar .field-label {
  margin: 0;
}
.dice-count-options {
  display: flex;
  gap: 5px;
  flex: 1;
}
.dice-count-options .preset {
  min-width: 0;
  min-height: 44px;
}
.dice-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  margin: 8px 0;
  color: var(--muted);
  font-size: .8rem;
}
.dice-total strong {
  font-family: "Baloo 2", sans-serif;
  font-size: 2rem;
  line-height: 1;
  color: var(--forest);
}
.dice-footnote {
  text-align: center;
  font-size: .73rem;
  color: var(--muted);
  margin-top: 12px;
}
.result-head {
  text-align: center;
  padding: 10px 0 14px;
}
.result-head .result-mark {
  width: 56px;
  height: 56px;
  border-radius: 26px;
  transform: rotate(-5deg);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      ellipse at top,
      #654290,
      #29193c);
  border: 1px solid #9965bd;
  color: var(--forest);
  box-shadow: 0 0 35px #a045ef25;
  margin: 0 auto 10px;
}
.result-head h1 {
  font-size: 2.6rem;
}
.result-head p {
  color: var(--muted);
  font-size: .9rem;
  margin-top: 12px;
}
.result-head strong {
  color: var(--forest);
}
.result-details {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 20px;
  font-size: .72rem;
  color: var(--muted);
}
.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.history-entry {
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--panel);
  padding: 19px;
}
.history-entry .table-line {
  margin-bottom: 9px;
}
.history-entry h2 {
  font-size: 1.05rem;
}
.history-entry p {
  font-size: .8rem;
  color: var(--muted);
}
.history-result {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.history-result span {
  padding: 7px 10px;
  border-radius: 9px;
  background: #8151a526;
  font-size: .72rem;
}
.settings-list {
  margin-bottom: 25px;
}
.setting {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.setting .setting-copy {
  flex: 1;
}
.setting strong {
  display: block;
  font-size: .88rem;
}
.setting p {
  font-size: .76rem;
  color: var(--muted);
  margin-top: 5px;
}
.switch {
  appearance: none;
  width: 49px;
  height: 30px;
  flex: none;
  border: 1px solid #6d527f;
  border-radius: 30px;
  background: #382745;
  position: relative;
  cursor: pointer;
  transition: background .15s;
}
.switch:before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  background: #c8b3d9;
  border-radius: 50%;
  left: 3px;
  top: 3px;
  box-shadow: 0 1px 2px #0005;
  transition: transform .15s;
}
.switch:checked {
  background: var(--forest);
  border-color: var(--forest);
  box-shadow: 0 0 14px #c7ff2d20;
}
.switch:checked:before {
  transform: translateX(19px);
  background: #252033;
}
.wake-status {
  margin-top: 18px;
  font-size: .75rem;
  color: var(--muted);
}
.toast {
  position: fixed;
  bottom: calc(86px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: #362146;
  color: var(--white);
  border: 1px solid #aa70c9;
  border-radius: 14px;
  padding: 13px 18px;
  font-size: .83rem;
  box-shadow: var(--shadow);
  z-index: 50;
  width: max-content;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast[data-error=true] {
  background: #56243e;
}
.copy-control {
  position: relative;
}
.copy-feedback {
  position: absolute;
  bottom: calc(100% - 3px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 100%;
  padding: 6px 11px;
  border: 1px solid #c6ec56;
  border-radius: 10px;
  background: #d4ff3f;
  color: #171423;
  font-size: .75rem;
  line-height: 1.4;
  text-align: center;
  box-shadow: var(--shadow);
  pointer-events: none;
}
.copy-feedback[data-error=true] {
  background: #55243c;
  color: var(--white);
  border-color: #ae6381;
}
.copy-confirmed {
  animation: copy-click .18s ease-out;
}
@keyframes copy-click {
  0% {
    transform: scale(.96);
  }
  100% {
    transform: scale(1);
  }
}
dialog {
  border: 1px solid #79528f;
  border-radius: 26px;
  padding: 25px;
  width: calc(100% - 32px);
  max-width: 430px;
  background:
    linear-gradient(
      145deg,
      #291938,
      #140e22);
  color: var(--ink);
  box-shadow: 0 20px 100px #0009, 0 0 35px #9c40e514;
  max-height: calc(100dvh - 36px);
  overflow: auto;
}
dialog::backdrop {
  background: #08030ec9;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
dialog .dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 21px;
}
.dialog-feedback {
  margin-top: 16px;
}
dialog h2 {
  font-size: 1.35rem;
}
dialog .dialog-copy {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 23px;
}
.qr-code {
  max-width: 220px;
  margin: 0 auto 20px;
  background: #fff;
  padding: 10px;
  border-radius: 16px;
}
.qr-code svg {
  width: 100%;
  height: auto;
}
.share-code {
  text-align: center;
  font-size: 1.9rem;
  letter-spacing: .15em;
  font-family:
    ui-monospace,
    Consolas,
    monospace;
  margin-bottom: 8px;
  color: var(--white);
}
.share-help {
  text-align: center;
  color: var(--muted);
  font-size: .78rem;
  margin-bottom: 23px;
}
.score-shortcuts {
  display: flex;
  gap: 7px;
  margin: 12px 0 23px;
}
.score-shortcuts button {
  flex: 1;
}
.dialog-actions {
  display: flex;
  gap: 9px;
  margin-top: 23px;
}
.dialog-actions > * {
  flex: 1;
}
.code-link {
  overflow-wrap: anywhere;
  font-size: .73rem;
  color: var(--muted);
  margin-top: 15px;
  text-align: center;
}
@media (min-width: 700px) {
  body {
    background:
      radial-gradient(
        ellipse at 0 45%,
        #72258b20,
        transparent 60%),
      #090614;
  }
  .shell {
    border-inline: 1px solid #3d285744;
    background: linear-gradient(#100a20, #0d081b);
    box-shadow: 0 0 100px #0004;
  }
}
@media (max-width: 380px) {
  .shell {
    padding-inline: 12px;
  }
  .status {
    font-size: .6rem;
  }
  .game-options {
    gap: 5px;
  }
  .game-option {
    font-size: .67rem;
  }
  .table-heading h1 {
    font-size: 1.4rem;
  }
  .chess-seat {
    padding: 12px;
  }
  .chess-seat .clock-value {
    font-size: 2.7rem;
  }
  .score-row {
    gap: 7px;
    padding: 10px 7px;
  }
  .score-row .token {
    width: 32px;
  }
  .score-row .text-button {
    min-width: 48px;
    font-size: .72rem;
  }
}
@media (max-height: 740px) {
  .app-header,
  .view-home .app-header {
    height: 46px;
  }
  .screen {
    padding-top: 6px;
  }
  .home-hero {
    min-height: 215px;
  }
  .home-wordmark {
    font-size: 3rem;
    margin-bottom: 9px;
  }
  .hero-art {
    top: 86px;
    height: 155px;
  }
  .hero-copy h2 {
    font-size: 1.25rem;
  }
  .hero-copy p {
    font-size: .73rem;
  }
  .home-actions {
    gap: 8px;
  }
  .home-actions .button {
    min-height: 53px;
    padding-block: 8px;
  }
  .home-note {
    margin-block: 9px;
  }
  .tool-row {
    padding-block: 6px;
    gap: 10px;
  }
  .tool-copy strong {
    font-size: 1.15rem;
  }
  .tool-copy small {
    font-size: .72rem;
  }
  .screen-intro {
    margin-bottom: 12px;
  }
  .screen-intro h1 {
    font-size: 1.6rem;
  }
  .screen-intro p {
    font-size: .78rem;
  }
  .table-heading {
    margin-bottom: 8px;
  }
  .table-running .table-heading .eyebrow,
  .table-paused .table-heading .eyebrow {
    display: none;
  }
  .turn-dial {
    max-width: min(235px, 32dvh);
    margin-bottom: 2px;
  }
  .turn-heading .token {
    width: 43px;
    height: 49px;
    margin-top: -8px;
  }
  .turn-heading h2 {
    font-size: 1.1rem;
  }
  .timer-digits {
    font-size: 3rem;
  }
  .turn-caption {
    font-size: .61rem;
  }
  .next-player {
    margin-bottom: 3px;
    min-height: 34px;
    padding-block: 0;
  }
  .turn-controls {
    margin: 6px 0;
    gap: 7px;
  }
  .turn-controls .turn-control {
    min-height: 52px;
    padding: 6px 4px;
    gap: 4px;
  }
  .pass-button,
  .waiting-control {
    min-height: 50px;
    margin-top: 6px;
  }
  .chess-seat {
    min-height: 100px;
  }
  .chess-seat .clock-value {
    font-size: 2.7rem;
  }
  .setting {
    padding-block: 10px;
  }
  .setting p {
    font-size: .72rem;
  }
  .section-caption {
    margin: 6px 0 10px;
  }
  .dice-footnote {
    margin-top: 6px;
    font-size: .67rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
