/* Local, static score history. Keep exact values and names readable. */
.score-progression {
  min-width: 0;
  max-width: 100%;
  margin: 16px 0;
  padding: 12px;
  border: 2px solid #172142;
  border-radius: 16px;
  background: #fff8e8;
  color: #172142;
  text-align: left;
}
.score-progression svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
.score-progression svg text {
  fill: #172142;
  font:
    16px Archivo,
    sans-serif;
}
.chart-grid {
  fill: none;
  stroke: #c7c1b5;
  stroke-width: 1;
}
.chart-axis {
  fill: none;
  stroke: #172142;
  stroke-width: 1.5;
}
.chart-legend {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  gap: 10px;
}
.chart-legend li {
  display: grid;
  grid-template-columns: 24px 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.chart-legend li > span:last-child {
  overflow-wrap: anywhere;
  min-width: 0;
}
.chart-legend strong {
  display: block;
  overflow-wrap: anywhere;
}
.chart-key {
  border-top: 3px solid;
  margin-top: 8px;
}
.chart-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #172142;
}
.chart-data summary,
.progression-disclosure > summary {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
}
.chart-data table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14px;
}
.chart-data th,
.chart-data td {
  padding: 8px 3px;
  border-bottom: 1px solid #c7c1b5;
  overflow-wrap: anywhere;
  text-align: right;
}
.chart-data caption {
  text-align: left;
  padding: 8px 0;
}
.chart-data summary:focus-visible,
.progression-disclosure > summary:focus-visible {
  outline: 3px solid #172142;
  outline-offset: 2px;
}
@font-face {
  font-family: Archivo;
  src: url("/fonts/Archivo.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  background: #2544eb;
  font-synthesis: style;
  --ink: #15213c;
  --blue: #2544eb;
  --paper: #fff9e9;
  --yellow: #ffea43;
  --mint: #27e3b2;
  --safe-bottom: max(env(safe-area-inset-bottom), 24px);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
summary {
  font: inherit;
  min-height: 44px;
  min-width: 44px;
}
button,
summary {
  cursor: pointer;
}
button {
  border: 1.5px solid var(--ink);
  border-radius: 13px;
  background: #fffdf6;
  color: var(--ink);
  font-weight: 700;
  padding: 9px 12px;
}
button.danger,
button[data-action="delete-last"],
button[data-action="reset"] {
  background: #ffe4ea;
  color: #7a1730;
  border: 2px solid #7a1730;
}
button:active {
  transform: translateY(2px);
}
button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
a {
  color: inherit;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid #df6300;
  outline-offset: 3px;
}
input,
select {
  border: 1.5px solid #69708b;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 8px;
  max-width: 100%;
}
input[type="checkbox"] {
  width: 44px;
  height: 44px;
  accent-color: #2145e8;
  flex: none;
}
input[type="color"] {
  padding: 4px;
  width: 58px;
}
label {
  overflow-wrap: anywhere;
  display: block;
  font-size: 14px;
  font-weight: 700;
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
h1 {
  font-size: 28px;
  letter-spacing: -1px;
  margin: 0 0 18px;
}
h2 {
  font-size: 21px;
}
h3 {
  font-size: 16px;
}
.app {
  max-width: 430px;
  margin: auto;
  min-height: 100dvh;
  padding: max(env(safe-area-inset-top), 26px)
    max(env(safe-area-inset-right), 0px) var(--safe-bottom)
    max(env(safe-area-inset-left), 0px);
  display: flex;
  flex-direction: column;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 12px;
}
.brand {
  font-size: 26px;
  letter-spacing: -1.3px;
  font-weight: 900;
  font-style: italic;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.brand-dot {
  color: var(--yellow);
}
#settings {
  border-color: #ffffff55;
  border-radius: 50%;
  background: transparent;
  color: white;
  width: 44px;
  padding: 0;
  font-size: 25px;
}
#notice {
  margin: 0;
  padding: 0 24px;
  font-size: 13px;
  line-height: 1.4;
}
#notice:not(:empty) {
  margin: 12px 0;
  padding: 12px 24px;
  background: #172142;
  color: #fff;
}
main {
  flex: 1;
  min-width: 0;
}
.tagline {
  display: flex;
  justify-content: space-between;
  padding: 22px 24px 18px;
  gap: 10px;
}
.micro {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.4px;
  font-weight: 800;
}
.arena {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 16px;
  transform: rotate(-3deg);
  border: 2px solid var(--ink);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 5px 7px 0 #15205b;
  min-height: 230px;
}
.arena:after {
  content: "VS";
  position: absolute;
  left: calc(50% - 21px);
  top: calc(50% - 21px);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--ink);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  pointer-events: none;
}
.player {
  background: var(--yellow);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 22px 15px;
  min-width: 0;
  text-align: center;
}
.player:last-child {
  background: var(--mint);
}
.name {
  font-size: 16px;
  font-weight: 800;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.score {
  font-size: 88px;
  font-weight: 900;
  letter-spacing: -5px;
  line-height: 1;
  margin: 15px 0 12px;
  font-variant-numeric: tabular-nums;
}
.score[data-digits="3"] {
  font-size: 66px;
  letter-spacing: -4px;
}
.score[data-digits="4"] {
  font-size: 48px;
  letter-spacing: -3px;
}
.marker {
  font-size: 9px;
  letter-spacing: 0.7px;
  font-weight: 800;
}
.console {
  background: var(--paper);
  color: var(--ink);
  border-radius: 36px 36px 0 0;
  margin-top: 30px;
  padding: 22px 22px 15px;
  border-top: 2px solid #15205b;
}
.console-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}
.pill {
  background: var(--yellow);
  padding: 8px 11px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
}
.dart-group {
  min-width: 0;
}
.entries {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.entries fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.entries legend {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.player {
  border: 0;
  border-radius: 0;
}
.player[aria-pressed="true"] {
  box-shadow: inset 0 -6px var(--ink);
}
.player-tab {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 4px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.player-tab[aria-pressed="true"] {
  background: var(--yellow);
}
.dart-group .player-tab {
  background: var(--slot-accent);
  color: var(--slot-ink);
  border-right: var(--slot-stripe);
}
.dart-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.dart-slots button {
  padding: 4px 2px;
  font-size: 10px;
  min-width: 44px;
  overflow-wrap: anywhere;
  border-radius: 9px;
  min-height: 48px;
}
.dart-slots small {
  display: block;
  font-size: 9px;
}
.dart-slots button[data-entered="false"] {
  background: #fff9ee;
  border: 1px dashed #85899a;
  color: var(--ink);
}
.dart-slots button[data-entered="true"] {
  background: var(--slot-accent);
  color: var(--slot-ink);
  border: 1px solid var(--ink);
  border-right: var(--slot-stripe);
}
.dart-slots button[data-entered="true"] small::after {
  content: " ✓";
  font-weight: 900;
}
.dart-slots button[aria-current="step"] {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.dart-slots button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}
.dart-slots button[aria-pressed="true"] {
  box-shadow: inset 0 0 0 2px var(--ink);
}
.pad-status {
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 800;
  margin: 12px 0 8px;
}
.hit-pad,
.link-pad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.hit-pad button {
  box-shadow: 0 3px 0 var(--ink);
  min-height: 56px;
  padding: 6px 3px;
  font-size: 12px;
}
.hit-pad small,
.link-pad small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
}
.hit-pad [data-hit="closest"] {
  background: var(--yellow);
}
.hit-pad [data-hit="wiggle"],
.hit-pad [data-hit="tripple"] {
  font-size: 10px;
}
.dart-edit {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid #c7c8ce;
  font-size: 12px;
}
.modifier-pad {
  display: flex;
  gap: 6px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.modifier-pad button {
  flex: 1;
  font-size: 12px;
  padding: 6px;
}
.modifier-pad [aria-pressed="true"],
.link-pad [aria-pressed="true"] {
  background: var(--mint);
}
.link-pad {
  margin-top: 8px;
}
.link-pad button {
  font-size: 11px;
  overflow-wrap: anywhere;
  padding: 5px;
}
@media (max-width: 350px) {
  .console {
    padding-left: 12px;
    padding-right: 12px;
  }
  .entries {
    gap: 8px;
  }
}
@media (max-width: 600px) and (max-height: 650px) {
  .arena {
    min-height: 150px;
  }
  .player {
    padding: 12px;
  }
  .score {
    font-size: 64px;
    margin: 8px 0;
  }
  .console {
    margin-top: 20px;
    padding-top: 14px;
  }
  .tagline {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}
.preview {
  font-size: 12px;
  line-height: 1.5;
  background: #e8eaf5;
  padding: 10px;
  border-radius: 12px;
  margin: 12px 0;
  min-height: 44px;
}
.primary {
  background: var(--yellow);
  box-shadow: 0 4px 0 var(--ink);
}
.wide {
  width: 100%;
}
.console-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.console-actions button {
  flex: 1;
  font-size: 12px;
}
.text-button {
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 12px;
  box-shadow: none;
}
.winner {
  background: var(--mint);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  margin-bottom: 16px;
}
.winner h2 {
  margin: 0 0 8px;
}
.panel {
  background: var(--paper);
  color: var(--ink);
  padding: 24px 22px;
  border-radius: 30px;
  margin: 24px 12px 0;
}
.panel > p,
.panel li {
  font-size: 14px;
  line-height: 1.6;
}
.panel ul {
  padding-left: 22px;
}
.panel label {
  margin: 14px 0 6px;
}
.panel input:not([type="checkbox"]):not([type="color"]),
.panel select {
  width: 100%;
}
.panel .setting {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  font-weight: 600;
}
.history-result,
.stats-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.stats-hero {
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  margin: 16px 0;
}
.stats-hero .stat strong {
  font-size: 30px;
  white-space: nowrap;
}
.stats-hero .stat {
  min-width: 0;
}
.setting input[type="checkbox"] {
  appearance: none;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 0 var(--ink);
  display: grid;
  place-content: center;
  margin: 0;
}
.setting input[type="checkbox"]:checked {
  background: var(--yellow);
}
.setting input[type="checkbox"]:checked::after {
  content: "✓";
  color: var(--ink);
  font-size: 26px;
  font-weight: 900;
}
.setting {
  min-height: 44px;
  cursor: pointer;
}
#dialog p {
  white-space: pre-line;
}
.result-player {
  border-left: 6px solid;
  padding: 8px 12px;
  min-width: 0;
}
.result-player h2 {
  font-size: 16px;
  margin: 0;
}
.history-score {
  display: block;
  font-size: 48px;
  font-weight: 900;
}
.result-player span {
  font-size: 11px;
  font-weight: 800;
}
.stats-identity {
  border-left: 6px solid;
  padding-left: 12px;
}
.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--ink);
  border-radius: 16px;
  background: #fffaf0;
}
.color-label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
}
#profile-form .color-label {
  margin-top: 14px;
}
.palette {
  display: grid;
  grid-template-columns: repeat(auto-fit, 44px);
  gap: 4px;
  padding-bottom: 3px;
}
.profile-colors {
  min-width: 0;
}
.color-options {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0;
}
.profile .two-colors,
.two-colors {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  cursor: pointer;
}
.two-colors input {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--blue);
}
.color-preview {
  display: block;
  width: 44px;
  height: 44px;
  flex: none;
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.swatch {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 3px 0 var(--ink);
  font-size: 23px;
  font-weight: 900;
}
.swatch span {
  visibility: hidden;
}
.swatch[aria-pressed="true"] {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.swatch[aria-pressed="true"] span {
  visibility: visible;
}
.swatch:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}
#profile-form > button {
  margin-top: 14px;
}
.profile label {
  margin: 0 0 6px;
}
.section {
  border-top: 1px solid #c7c8ce;
  margin-top: 24px;
  padding-top: 10px;
}
.card {
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  padding: 15px;
  margin: 14px 0;
  background: #fffdf6;
  min-width: 0;
}
.card h2,
.card h3 {
  margin-top: 0;
}
.card p {
  font-size: 13px;
  line-height: 1.5;
}
.card summary {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 800;
}
.round-detail {
  border-top: 1px solid #d2d3df;
  padding-top: 12px;
  margin-top: 12px;
}
.round-detail button {
  width: 100%;
  margin-top: 8px;
}
.round-detail p {
  font-size: 12px;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stat {
  background: #e8eaf5;
  padding: 10px;
  border-radius: 10px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.stat strong {
  display: block;
  font-size: 21px;
  margin-bottom: 4px;
}
.muted {
  font-size: 12px;
  line-height: 1.5;
  color: #525d78;
}
.file {
  display: block;
  width: 100%;
  padding: 10px 0;
  font-size: 12px;
}
nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 12px 12px 0;
  margin-top: auto;
}
nav button {
  background: transparent;
  border-color: #ffffff44;
  color: #fff;
  font-size: 12px;
  padding: 8px 3px;
  box-shadow: none;
}
nav button[aria-current="page"] {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
}
footer {
  text-align: center;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 18px 10px 0;
  color: #ffffffba;
}
dialog {
  border: 2px solid var(--ink);
  border-radius: 24px;
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
  width: calc(100% - 32px);
  max-width: 380px;
  max-height: calc(100dvh - 48px);
  overflow: auto;
}
dialog::backdrop {
  background: #101a4ca8;
}
dialog h2 {
  margin-top: 0;
}
dialog p {
  line-height: 1.6;
  font-size: 14px;
}
.dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.dialog-actions button {
  flex: 1;
}
#update {
  margin: 16px 16px 0;
  padding: 12px;
  background: var(--mint);
  color: var(--ink);
  border-radius: 12px;
  font-size: 13px;
}
#update button {
  margin-top: 8px;
  width: 100%;
}
[hidden] {
  display: none !important;
}
@media (max-width: 350px) {
  header {
    padding: 0 18px;
  }
  .brand {
    font-size: 24px;
  }
  .arena {
    min-height: 170px;
    margin: 0 13px;
  }
  .score {
    font-size: 68px;
    margin: 10px 0;
  }
  .name {
    font-size: 14px;
  }
  .console {
    padding: 18px 14px 12px;
    margin-top: 25px;
  }
  .entries {
    gap: 10px;
  }
  .dart select {
    font-size: 11px;
  }
  .tagline {
    padding: 18px 20px 15px;
  }
  .panel {
    padding: 20px 16px;
  }
  .micro {
    font-size: 9px;
    letter-spacing: 0.9px;
  }
}
@media (min-width: 760px) {
  .app {
    max-width: 960px;
  }
  .play-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 20px;
    padding: 0 16px;
  }
  .board-zone {
    position: sticky;
    top: 20px;
  }
  .arena {
    min-height: 300px;
    margin-top: 6px;
  }
  .score {
    font-size: 100px;
  }
  .console {
    margin-top: 20px;
    border-radius: 32px;
    padding: 22px;
  }
  .panel {
    max-width: 700px;
    margin: 24px auto 0;
  }
  nav {
    max-width: 600px;
    width: 100%;
    align-self: center;
    margin-top: 20px;
  }
  .tagline {
    padding: 22px 24px;
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 760px) and (max-height: 500px) {
  .app {
    padding-top: max(env(safe-area-inset-top), 12px);
  }
  .arena {
    min-height: 190px;
  }
  .score {
    font-size: 70px;
  }
  .console {
    margin-top: 16px;
    padding: 16px;
  }
  .board-zone {
    position: static;
  }
  .tagline {
    padding: 18px;
  }
  .panel {
    margin-top: 15px;
  }
}
/* Approved Arcade Refined: normal-flow console, tactile hits, joined board. */
.app {
  max-width: 430px;
  padding-top: max(env(safe-area-inset-top), 13px);
}
header {
  padding: 0 18px;
}
.brand {
  font-size: 25px;
  font-weight: 950;
}
.play-layout .tagline {
  padding: 12px 18px 14px;
}
.micro {
  font-size: 11px;
  letter-spacing: 1.8px;
}
.play-layout .arena {
  min-height: 126px;
  margin: 0 21px;
  transform: rotate(-2deg);
  border-radius: 23px;
  box-shadow: 5px 6px 0 var(--ink);
}
.arena:after {
  content: none;
}
.play-layout .player {
  padding: 10px 12px;
}
.player[aria-pressed="true"] {
  box-shadow: none;
}
.name {
  font-size: 13px;
}
.play-layout .score {
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -3px;
  margin: 3px 0 6px;
}
.play-layout .score[data-digits="3"] {
  font-size: 56px;
}
.play-layout .score[data-digits="4"] {
  font-size: 44px;
}
.marker {
  font-size: 10px;
  letter-spacing: 1.5px;
}
.play-layout .console {
  margin: 24px 18px 0;
  padding: 16px;
  border: 0;
  border-radius: 25px;
  box-shadow: 0 5px 0 var(--ink);
}
.console-head {
  margin-bottom: 10px;
}
#quick-caller {
  border-radius: 100px;
  background: transparent;
  font-size: 12px;
  padding: 0 12px;
}
.play-layout .entries {
  gap: 5px;
}
.dart-group .player-tab {
  display: none;
}
.dart-slots {
  gap: 5px;
}
.dart-slots button {
  min-height: 44px;
  padding: 4px 0;
  font-size: 11px;
}
.dart-slots small {
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 3px;
}
.dart-slots button[data-entered="false"] {
  background: transparent;
  border-color: var(--ink);
}
.dart-slots button[aria-current="step"] {
  outline-color: var(--ink);
  outline-offset: 2px;
}
.dart-slots button:focus-visible {
  outline-color: var(--blue);
  outline-offset: 5px;
}
.pad-status {
  font-size: 18px;
  letter-spacing: -0.4px;
  margin: 12px 0 3px;
}
.pad-helper {
  font-size: 11px;
  margin: 0 0 10px;
}
.hit-pad {
  gap: 8px;
}
.hit-pad button {
  min-height: 59px;
  background: #fffdf6;
  border-radius: 11px;
  font-size: 12px;
  padding: 7px 2px;
}
.hit-pad [data-hit="wiggle"],
.hit-pad [data-hit="tripple"] {
  font-size: 12px;
}
.hit-pad small {
  font-size: 19px;
  margin-top: 3px;
}
.hit-pad [data-hit="wiggle"] small {
  font-size: 11px;
  line-height: 22px;
}
.dart-edit {
  border: 0;
  margin-top: 12px;
  padding: 0;
}
.dart-edit > span {
  display: none;
}
.modifier-pad {
  gap: 8px;
  margin: 0;
}
.modifier-pad button {
  background: transparent;
  border-radius: 9px;
  font-size: 12px;
  padding: 4px 2px;
  text-decoration: none;
}
.preview {
  background: transparent;
  padding: 0;
  min-height: 0;
  font-size: 11px;
  line-height: 1.4;
  margin: 6px 0 0;
}
.preview br {
  display: none;
}
#missing-inputs {
  margin: 3px 0 8px;
  font-size: 12px;
}
[data-action="confirm"] {
  min-height: 48px;
  font-size: 15px;
  border-radius: 12px;
}
.console > .console-actions {
  margin-top: 6px;
}
.panel {
  margin: 23px 18px 0;
  border: 0;
  border-radius: 25px;
  box-shadow: 0 5px 0 var(--ink);
}
.panel h1 {
  font-size: 32px;
}
.panel .setting {
  border-bottom: 1px solid #c7c8ce;
  padding: 10px 0;
}
.card,
.profile {
  background: #fffdf6;
}
dialog {
  border: 0;
  box-shadow: 0 5px 0 var(--ink);
}
nav {
  padding: 12px 18px 0;
  margin-top: 0;
}
nav button {
  border: 0;
}
nav[aria-label="More screens"] {
  grid-template-columns: repeat(3, 1fr);
  padding-top: 4px;
}
@media (max-width: 359px) {
  .play-layout .console {
    margin-left: 10px;
    margin-right: 10px;
    padding: 12px;
  }
  .play-layout .entries {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hit-pad button,
  .hit-pad [data-hit="wiggle"],
  .hit-pad [data-hit="tripple"] {
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  .micro {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .panel {
    margin-left: 10px;
    margin-right: 10px;
  }
}
@media (min-width: 760px) {
  .app {
    max-width: 950px;
    padding-top: max(env(safe-area-inset-top), 18px);
  }
  .play-layout {
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 40px;
    padding: 63px 18px 0;
    position: relative;
  }
  .board-zone {
    position: static;
    min-width: 0;
  }
  .play-layout .tagline {
    position: absolute;
    top: 20px;
    left: 18px;
    right: 18px;
    padding: 0;
  }
  .play-layout .arena {
    min-height: 280px;
    margin: 0 3px;
  }
  .play-layout .score {
    font-size: 94px;
  }
  .board-zone:after {
    content: "YOUR TABLE. YOUR RIVALRY.";
    display: block;
    text-align: center;
    font-size: 12px;
    letter-spacing: 2px;
    margin-top: 30px;
  }
  .play-layout .console {
    margin: 0;
    padding: 25px;
  }
  .panel {
    max-width: 700px;
    margin: 23px auto 0;
  }
  nav {
    margin-top: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Players: one shared local identity and match-setup destination. */
.player-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}
.players-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.player-profile,
.player-choices .card {
  min-width: 0;
}
.profile-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile-heading h3 {
  overflow-wrap: anywhere;
  min-width: 0;
}
.identity-preview {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 2px solid #172142;
  border-radius: 50%;
}
.seat-preview {
  display: block;
  width: 44px;
  height: 12px;
  border-right: 22px solid;
  margin-top: 8px;
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-actions button {
  flex: 1 0 90px;
  min-height: 44px;
}
.profile-actions [aria-disabled="true"] {
  border-style: dashed;
}
.players-panel #player-editor {
  scroll-margin-top: 80px;
}
