:root {
  color-scheme: dark;
  --ink: #171c19;
  --shell: #151a17;
  --paper: #f6f4eb;
  --paper-deep: #e9e8dc;
  --lime: #d0f674;
  --lime-hover: #defc9b;
  --muted: #abb4a6;
  --panel-muted: #61665a;
  --line: #394239;
  --panel-line: #d7d9ca;
  --danger: #923a2e;
  --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono-font: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--shell);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

button,
input,
select {
  font: inherit;
}

button,
summary,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

button:disabled {
  cursor: default;
  opacity: 0.4;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 5px;
}

.game-panel :focus-visible,
.dialog-panel :focus-visible {
  outline-color: #58752c;
  outline-offset: 3px;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

.page-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 4.5vw, 64px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 100px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 40px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-8deg);
}

.brand-dot {
  color: var(--lime);
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 0 8px 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 5px;
}

.header-link:hover {
  color: var(--lime);
  text-decoration: underline;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  align-items: start;
  gap: clamp(36px, 5.5vw, 84px);
  padding: clamp(50px, 7vw, 88px) 0 64px;
}

.intro {
  position: relative;
  padding-top: 28px;
}

.eyebrow,
.step-label,
.round-label,
.role-badge,
.result-label,
.tag {
  font-family: var(--mono-font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.085em;
  line-height: 1.45;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  color: var(--lime);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px #d0f67412;
}

.display-title {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(58px, 6.2vw, 86px);
  font-weight: 800;
  letter-spacing: -0.072em;
  line-height: 0.99;
  text-wrap: balance;
}

.display-title span,
.display-title em {
  color: var(--lime);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.06em;
}

.lede {
  max-width: 33ch;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list > * {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 50px;
  color: #c7cebf;
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: 0.015em;
}

.feature-list > *::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
}

.intro-art {
  position: relative;
  width: 280px;
  height: 230px;
  margin: 44px 0 0 22px;
  user-select: none;
}

.art-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 138px;
  height: 178px;
  border: 1px solid #aabb9280;
  border-radius: 18px;
  background: #283125;
  color: var(--lime);
}

.art-card span {
  font-family: Georgia, serif;
  font-size: 94px;
  font-weight: 700;
  line-height: 1;
}

.art-card small {
  margin-top: 15px;
  font-family: var(--mono-font);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.art-card-back {
  top: 7px;
  left: 24px;
  transform: rotate(-17deg);
}

.art-card-front {
  top: 28px;
  left: 96px;
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
  box-shadow: 8px 12px 0 #00000020;
  transform: rotate(11deg);
}

.art-orbit {
  position: absolute;
  z-index: -1;
  top: 4px;
  left: -20px;
  width: 290px;
  height: 208px;
  border: 1px solid #839a583d;
  border-radius: 50%;
  transform: rotate(-20deg);
}

.art-spark {
  position: absolute;
  top: -9px;
  left: 220px;
  color: var(--lime);
  font-size: 38px;
  line-height: 1;
  transform: rotate(10deg);
}

.game-panel {
  position: relative;
  min-width: 0;
  min-height: 598px;
  padding: 28px;
  border: 1px solid #ffffff14;
  border-radius: 26px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 60px #00000020;
  color-scheme: light;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--panel-line);
}

.step-label {
  color: var(--panel-muted);
}

.round-label {
  padding: 4px 9px;
  border: 1px solid var(--panel-line);
  border-radius: 50px;
  color: var(--panel-muted);
  white-space: nowrap;
}

.screen-title {
  margin: 0 0 8px;
  font-size: clamp(27px, 2.8vw, 34px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.14;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.screen-copy {
  margin: 0 0 24px;
  color: var(--panel-muted);
  font-size: 14px;
  line-height: 1.65;
}

.field-label {
  display: block;
  margin: 24px 0 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend.field-label {
  width: 100%;
  padding: 0;
}

.count-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 6px;
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  background: #ffffff5c;
}

.count-control > .field-label {
  margin: 0;
  padding-left: 10px;
}

.count-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.count-control button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--panel-line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.count-control button:hover:not(:disabled),
.icon-button:hover:not(:disabled) {
  background: var(--paper-deep);
}

.count-value {
  min-width: 18px;
  font-size: 15px;
  font-weight: 650;
  text-align: center;
}

.imposter-control select {
  appearance: none;
  width: 100%;
  height: 46px;
  min-height: 46px;
  padding: 10px 36px 10px 12px;
  border: 1px solid var(--panel-line);
  border-radius: 9px;
  background: var(--paper);
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.player-field {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.player-field label,
.player-field > span {
  color: var(--panel-muted);
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.player-number {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 12px;
  pointer-events: none;
}

.player-field input,
input.player-field {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px 10px 35px;
  border: 1px solid var(--panel-line);
  border-radius: 9px;
  background: #ffffff80;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

.player-field input::placeholder {
  color: #74786b;
  opacity: 1;
}

.player-field input:hover {
  border-color: #a6ae98;
}

.category-options,
.vote-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.category-fieldset {
  margin-top: 22px;
}

.category-fieldset > .field-label {
  margin: 0 0 10px;
}

.category-option,
.vote-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 46px;
  padding: 10px 8px;
  border: 1px solid var(--panel-line);
  border-radius: 9px;
  background: transparent;
  color: var(--panel-muted);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
  transition: background 120ms ease, border-color 120ms ease;
}

.category-option:hover:not(:disabled),
.vote-option:hover:not(:disabled) {
  border-color: #8c9d74;
  background: #e8eedc;
}

.category-option.selected,
.vote-option.selected,
.category-option[aria-pressed="true"],
.vote-option[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--lime);
  font-weight: 650;
}

.category-description {
  margin: 10px 0 0;
  color: var(--panel-muted);
  font-size: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 52px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background 120ms ease, transform 120ms ease;
}

.button.primary {
  border-color: #bfd96e;
  background: var(--lime);
  color: var(--ink);
}

.button.primary:hover:not(:disabled) {
  background: var(--lime-hover);
}

.button.secondary {
  border-color: var(--panel-line);
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover:not(:disabled) {
  background: var(--paper-deep);
}

.button.ghost {
  min-height: 44px;
  padding: 10px 14px;
  background: transparent;
  color: var(--panel-muted);
  font-size: 13px;
  font-weight: 600;
}

.button.ghost:hover:not(:disabled) {
  background: var(--paper-deep);
  color: var(--ink);
}

.button:active:not(:disabled) {
  transform: translateY(1px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button-row > .button {
  flex: 1 1 140px;
}

.setup-footer {
  margin-top: 26px;
}

#setup-form > .button {
  width: 100%;
  margin-top: 24px;
}

.privacy-note.setup-footer {
  margin-top: 12px;
}

.setup-footer > .button,
.game-panel > .button,
.vote-controls > .button {
  width: 100%;
}

.privacy-note {
  margin: 12px 0 0;
  color: var(--panel-muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.error-message,
.status-notice,
.tie-note {
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid #d8a18c;
  border-radius: 10px;
  background: #f9e5da;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.55;
}

.status-notice,
.tie-note {
  border-color: #c2d5a0;
  background: #e9efd9;
  color: #405331;
}

.handoff-card,
.secret-card,
.result-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 270px;
  margin: 26px 0 24px;
  padding: 28px 20px;
  border: 1px solid var(--panel-line);
  border-radius: 18px;
  background: #eeefe4;
  text-align: center;
  overflow-wrap: anywhere;
}

.handoff-card {
  background-image: radial-gradient(#d1d8c5 1px, transparent 1px);
  background-size: 14px 14px;
}

.handoff-card > * {
  max-width: 100%;
}

.card-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 74px;
  height: 84px;
  margin-bottom: 24px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 7px 7px 0 #c9cdbb;
  font-family: Georgia, serif;
  font-size: 55px;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-8deg);
}

.player-name {
  max-width: 100%;
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.handoff-card p:not(.player-name) {
  margin: 8px 0 0;
  color: var(--panel-muted);
  font-size: 13px;
}

.handoff-card .player-name {
  margin: 7px 0 16px;
}

.progress-track {
  height: 4px;
  margin: 22px 0 12px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--panel-line);
}

.progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #687e45;
  transition: width 200ms ease;
}

.secret-card {
  min-height: 270px;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.secret-card .card-symbol {
  width: 54px;
  height: 61px;
  margin-bottom: 20px;
  border-color: var(--lime);
  box-shadow: 5px 5px 0 #404b35;
  font-size: 39px;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  margin-bottom: 18px;
  padding: 4px 10px;
  border: 1px solid #546047;
  border-radius: 50px;
  color: #c6d5b3;
  font-size: 10px;
}

.secret-word {
  max-width: 100%;
  margin: 0;
  color: var(--lime);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.secret-card p:not(.secret-word) {
  margin: 16px 0 0;
  color: #bcc5b4;
  font-size: 13px;
}

.rule-list {
  display: grid;
  gap: 16px;
  margin: 24px 0;
  padding-left: 24px;
  color: var(--panel-muted);
  font-size: 14px;
  line-height: 1.6;
}

.rule-list li {
  padding-left: 6px;
}

.rule-list li::marker {
  color: #54712e;
  font-family: var(--mono-font);
  font-size: 12px;
  font-weight: 700;
}

.rule-list strong {
  color: var(--ink);
}

.starter-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 24px 0;
  padding: 22px;
  border: 1px solid #c3d7a6;
  border-radius: 14px;
  background: #e6edda;
}

.starter-card > :first-child {
  margin: 0;
  color: #577038;
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.starter-card .player-name {
  font-size: 28px;
}

.starter-card p:not(.player-name) {
  margin: 0;
  color: var(--panel-muted);
  font-size: 12px;
}

.starter-card .role-badge {
  align-self: flex-start;
  margin: 0 0 4px;
  border: 0;
  padding: 0;
}

.round-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 14px;
}

.round-tools .privacy-note {
  margin: 0;
}

.vote-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0;
}

.vote-option {
  justify-content: flex-start;
  gap: 10px;
  min-height: 57px;
  padding: 14px 12px;
  color: var(--ink);
  font-size: 15px;
  text-align: left;
}

.vote-option > span:nth-child(2) {
  min-width: 0;
}

.vote-number {
  flex-shrink: 0;
  color: var(--panel-muted);
  font-family: var(--mono-font);
  font-size: 10px;
}

.vote-option.selected .vote-number {
  color: #b3c795;
}

.vote-check {
  flex-shrink: 0;
  width: 12px;
  margin-left: auto;
  font-size: 12px;
}

.vote-controls {
  margin-top: 24px;
}

.vote-hint {
  margin: 12px 0 0;
  color: var(--panel-muted);
  font-size: 12px;
  text-align: center;
}

.result-card {
  min-height: 245px;
  gap: 12px;
  background: #e6edda;
  border-color: #c3d7a6;
}

.result-label {
  color: #52683a;
}

.result-word {
  max-width: 100%;
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.result-card p:not(.player-name):not(.result-word) {
  margin: 0;
  color: var(--panel-muted);
  font-size: 13px;
}

.result-card .card-symbol {
  width: 56px;
  height: 64px;
  margin-bottom: 12px;
  border-color: #536640;
  box-shadow: 5px 5px 0 #c4d1b0;
  font-size: 39px;
}

.result-divider {
  width: 60px;
  height: 1px;
  margin: 8px 0;
  background: #bacaaa;
}

.tag {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid var(--panel-line);
  border-radius: 50px;
  color: var(--panel-muted);
  font-size: 10px;
}

.how-to {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.how-to summary {
  min-height: 48px;
  padding: 15px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.how-to .rule-list {
  color: var(--muted);
  font-size: 13px;
}

.how-to .rule-list strong {
  color: var(--paper);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
  color: #8e9a88;
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  text-underline-offset: 4px;
}

.site-footer a:hover {
  color: var(--lime);
  text-decoration: underline;
}

.dialog-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 24px;
  background: #0a110bd9;
  backdrop-filter: blur(8px);
}

dialog.dialog-panel {
  margin: auto;
}

dialog.dialog-panel::backdrop {
  background: #0a110bd9;
  backdrop-filter: blur(8px);
}

.dialog-panel {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 30px;
  border: 0;
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
  box-shadow: 0 24px 100px #00000040;
}

.dialog-panel .screen-title {
  margin-top: 0;
}

.dialog-panel .eyebrow {
  color: #526c30;
}

.dialog-panel .icon-button {
  float: right;
  width: 44px;
  height: 44px;
  margin: -12px -12px 8px 12px;
}

.empty-state {
  margin: 24px 0;
  color: var(--panel-muted);
  font-size: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1000px) {
  .game-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: 32px;
  }

  .display-title {
    font-size: clamp(52px, 6.5vw, 70px);
  }

  .lede {
    font-size: 16px;
  }

  .feature-list {
    gap: 8px;
  }

  .feature-list > * {
    padding: 7px 9px;
    font-size: 10px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(560px, 100%);
    padding: 0 20px;
  }

  .site-header {
    min-height: 80px;
  }

  .brand {
    gap: 10px;
    font-size: 19px;
  }

  .brand-mark {
    flex-basis: 30px;
    width: 30px;
    height: 34px;
    border-radius: 8px;
    font-size: 25px;
  }

  .header-link {
    font-size: 12px;
  }

  .game-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 0 32px;
  }

  .intro {
    width: 100%;
    padding: 0;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .display-title {
    max-width: 12ch;
    font-size: clamp(38px, 9vw, 48px);
    line-height: 1.01;
  }

  .lede {
    max-width: 44ch;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.55;
  }

  .feature-list {
    display: none;
  }

  .feature-list > * {
    padding: 6px 9px;
    font-size: 10px;
  }

  .intro .how-to {
    display: none;
  }

  .intro-art {
    display: none;
  }

  .game-panel {
    width: 100%;
    min-height: 0;
    padding: 24px;
    border-radius: 22px;
  }

  .panel-top {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .screen-title {
    font-size: 29px;
  }

  .site-footer {
    padding: 14px 0 20px;
    font-size: 9px;
  }

  body[data-screen]:not([data-screen="setup"]) .intro,
  body[data-stage]:not([data-stage="setup"]) .intro,
  .game-layout:has(.game-panel[data-screen]:not([data-screen="setup"])) .intro {
    display: none;
  }

  body[data-screen]:not([data-screen="setup"]) .game-layout,
  body[data-stage]:not([data-stage="setup"]) .game-layout {
    padding-top: 24px;
  }
}

@media (max-width: 380px) {
  .page-shell {
    padding-right: 16px;
    padding-left: 16px;
  }

  .game-panel {
    padding: 20px;
    border-radius: 18px;
  }

  .feature-list > * {
    padding: 6px 8px;
    font-size: 10px;
  }

  .button {
    padding-right: 14px;
    padding-left: 14px;
  }

  .handoff-card,
  .secret-card,
  .result-card {
    min-height: 246px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .dialog-backdrop {
    padding: 16px;
  }

  .dialog-panel {
    max-height: calc(100dvh - 32px);
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
