:root {
  color-scheme:dark;
  --ink:#081619;
  --panel:#0d2024;
  --panel-deep:#0a1a1e;
  --line:rgba(157,201,195,.15);
  --muted:#829b9c;
  --text:#e3eae5;
  --mint:#a1e7c7;
  --mint-bright:#c0f3d8;
  --gold:#d4bb82;
  --coral:#e99c8a;
  --player:#b3edc8;
  --radius:16px;
  font-family:"Segoe UI",system-ui,-apple-system,sans-serif;
  font-synthesis:none;
  font-weight:400;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:var(--ink);
  color:var(--text);
  font-size:14px;
  line-height:1.5;
}

.ambient {
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:1000px;
  z-index:-1;
  background:radial-gradient(ellipse at 25% 33%,#173a3655,transparent 60%),radial-gradient(ellipse at 90% 0,#39413727,transparent 50%);
  pointer-events:none;
}

button,input,select {
  font:inherit;
}

button,a,input,select,summary {
  -webkit-tap-highlight-color:transparent;
}

button {
  cursor:pointer;
}

button:disabled {
  cursor:not-allowed;
  opacity:.37;
}

button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible {
  outline:2px solid var(--mint);
  outline-offset:4px;
}

a {
  color:inherit;
  text-decoration:none;
}

[hidden] {
  display:none!important;
}

.site-header {
  max-width:1536px;
  margin:auto;
  padding:25px 46px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  border-bottom:1px solid var(--line);
}

.brand {
  display:flex;
  align-items:center;
  gap:13px;
}

.brand-mark {
  font-size:37px;
  color:var(--mint);
  line-height:1;
}

.brand .eyebrow {
  font-size:8px;
  letter-spacing:3.5px;
  display:block;
  color:var(--mint);
}

.brand strong {
  display:block;
  font-family:Georgia,serif;
  font-weight:400;
  font-size:26px;
  line-height:1.05;
  letter-spacing:-.8px;
}

.eyebrow {
  font-size:10px;
  letter-spacing:2px;
  font-weight:600;
  color:var(--muted);
  margin:0;
}

.header-context {
  color:#9aafad;
  font-size:12px;
  display:flex;
  align-items:center;
  gap:9px;
}

.live-dot {
  display:inline-block;
  flex-shrink:0;
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--mint);
  box-shadow:0 0 12px #86ddb578;
}

.version {
  font-size:9px;
  padding:4px 8px;
  border:1px solid var(--line);
  border-radius:4px;
  color:var(--muted);
  margin-left:5px;
  letter-spacing:.8px;
}

.button {
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px 15px;
  background:transparent;
  color:var(--text);
  font-weight:500;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  transition:background .15s,border-color .15s,transform .15s;
}

.button:not(:disabled):hover {
  background:#9ddbc315;
  border-color:#a3d3c84d;
}

.button:not(:disabled):active {
  transform:translateY(1px);
}

.quiet {
  font-size:12px;
}

.primary {
  background:var(--mint);
  border-color:var(--mint);
  color:#0b2a23;
  font-weight:650;
}

.primary:not(:disabled):hover {
  background:var(--mint-bright);
  border-color:var(--mint-bright);
}

main {
  max-width:1536px;
  margin:auto;
  padding:34px 46px 22px;
}

.intro {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:28px;
}

.intro .eyebrow {
  color:#8cac9e;
  letter-spacing:2.4px;
  font-size:9px;
}

h1 {
  font-family:Georgia,"Times New Roman",serif;
  font-size:43px;
  line-height:1.2;
  letter-spacing:-1.5px;
  font-weight:400;
  margin:7px 0 8px;
}

h1 em {
  color:var(--mint);
  font-style:normal;
}

.intro-copy {
  color:var(--muted);
  font-size:12px;
  margin:0;
}

.session-meta {
  display:flex;
  align-items:flex-end;
  flex-direction:column;
  gap:10px;
  font-size:10px;
  color:#779292;
}

.test-badge {
  border:1px solid #c6ad7433;
  background:#b99f660a;
  color:#bfae8d;
  padding:4px 9px;
  border-radius:4px;
}

.game-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:20px;
  align-items:start;
}

.board-panel,.command-panel,.hand-panel,.journal-panel,.rules-panel {
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:linear-gradient(130deg,#10272bba,#0a191dd9);
  overflow:hidden;
}

.panel-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:19px 22px;
}

.panel-label {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.panel-heading h2,.decision-heading h2 {
  font-size:14px;
  font-weight:500;
  margin:0;
}

.section-number {
  color:#698b85;
  font-size:10px;
  letter-spacing:1px;
  font-variant-numeric:tabular-nums;
}

.round-chip {
  font-size:9px;
  letter-spacing:1.4px;
  color:var(--mint);
  border:1px solid #a5e5c435;
  background:#87c7b10a;
  padding:5px 9px;
  border-radius:5px;
}

.board-caption {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 22px;
  color:var(--muted);
  font-size:10px;
}

.board-caption>span:last-child {
  display:flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}

.human-key {
  width:6px;
  height:6px;
  display:inline-block;
  border:1px solid var(--mint);
  border-radius:50%;
  box-shadow:0 0 0 3px #b7f2d419;
}

.board-wrap {
  position:relative;
  margin:2px 0 0;
  background:radial-gradient(ellipse at 51% 21%,#326b5425,transparent 35%);
  aspect-ratio:840/570;
  min-height:330px;
}

.board-wrap:before {
  content:"";
  position:absolute;
  inset:0;
  background-image:radial-gradient(#a3d2c615 .7px,transparent .7px);
  background-size:24px 24px;
  mask-image:linear-gradient(to bottom,transparent,#000 20%,#000 85%,transparent);
  pointer-events:none;
}

#board {
  width:100%;
  height:100%;
  position:relative;
  overflow:visible;
}

.board-route-glow {
  fill:none;
  stroke:#4fa88a;
  stroke-width:16;
  opacity:.045;
}

.board-route {
  fill:none;
  stroke:#4c8574;
  stroke-width:1.3;
  stroke-dasharray:3 5;
  opacity:.52;
}

.floor-line {
  stroke:#709f9333;
  stroke-width:1;
}

.floor-node {
  fill:#102d2c;
  stroke:#5c9281;
  stroke-width:1.2;
}

.floor-node.empty {
  opacity:.65;
}

.node-number {
  font-family:"Segoe UI",sans-serif;
  font-size:7px;
  fill:#74968a;
  text-anchor:middle;
  dominant-baseline:middle;
}

.floor-label {
  font-family:"Segoe UI",sans-serif;
  font-size:11px;
  font-weight:500;
  letter-spacing:1.1px;
  fill:#afc2b7;
}

.floor-caption {
  font-family:"Segoe UI",sans-serif;
  font-size:8px;
  letter-spacing:.5px;
  fill:#587c74;
}

.floor-index {
  font-family:"Segoe UI",sans-serif;
  font-size:8px;
  fill:#537369;
}

.summit-label {
  font-family:Georgia,serif;
  font-size:25px;
  fill:#deebc4;
  letter-spacing:2px;
  text-anchor:middle;
}

.summit-caption {
  font-size:8px;
  fill:#98b3a0;
  letter-spacing:2.5px;
  text-anchor:middle;
}

.token-line {
  stroke-width:1;
  opacity:.65;
}

.token-body {
  stroke-width:1.2;
}

.token-initials {
  font-family:"Segoe UI",sans-serif;
  font-size:9px;
  font-weight:700;
  dominant-baseline:middle;
  text-anchor:middle;
  fill:#071a1a;
}

.token-halo {
  fill:none;
  stroke-width:1;
  opacity:.65;
}

.token-name {
  font-family:"Segoe UI",sans-serif;
  font-size:8px;
  text-anchor:middle;
  fill:#cee6d6;
}

.board-footer {
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 22px 18px;
  margin-top:-5px;
}

.board-footer p {
  font-size:10px;
  color:var(--muted);
  margin:0;
}

.board-footer strong {
  font-weight:400;
  color:#abc0b7;
}

.small-orbit {
  font-size:29px;
  color:#78a88b;
}

.board-coordinate {
  font-size:8px;
  letter-spacing:1.8px;
  color:#57766c;
  margin-left:auto;
}

.roster-section {
  border-top:1px solid var(--line);
  padding:17px 22px 20px;
  background:#07191c55;
}

.roster-section h3 {
  font-size:9px;
  letter-spacing:1.5px;
  display:flex;
  justify-content:space-between;
  margin-bottom:13px;
}

.roster-section h3 span {
  font-size:9px;
  letter-spacing:0;
  font-weight:400;
  color:#62807b;
}

.roster {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px 13px;
}

.roster-player {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.avatar {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  border:1px solid color-mix(in srgb,var(--player) 48%,transparent);
  width:30px;
  height:30px;
  border-radius:50%;
  font-size:9px;
  font-weight:600;
  letter-spacing:.4px;
  color:var(--player);
  background:radial-gradient(circle at 28% 20%,color-mix(in srgb,var(--player) 16%,transparent),#0b2224 70%);
  box-shadow:inset 0 0 8px #e4f4d608;
}

.roster-info {
  min-width:0;
}

.roster-name {
  font-size:11px;
  font-weight:500;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.roster-position {
  font-size:9px;
  color:var(--muted);
  white-space:nowrap;
}

.roster-vigor {
  width:38px;
  height:2px;
  background:#45605b48;
  margin-top:5px;
}

.roster-vigor>span {
  height:100%;
  display:block;
  background:var(--player);
  opacity:.8;
}

.roster-player.is-human .avatar {
  outline:1px solid var(--player);
  outline-offset:3px;
}

.you-label {
  font-size:8px;
  color:var(--mint);
  margin-left:4px;
}

.command-panel {
  background:linear-gradient(155deg,#16302dcc,#0c1c20);
  border-color:#9bcfb525;
}

.player-panel {
  padding:22px 21px 19px;
  border-bottom:1px solid var(--line);
}

.player-heading {
  display:flex;
  align-items:center;
  gap:11px;
}

.avatar.large {
  width:44px;
  height:44px;
  font-size:13px;
  border-color:#b9e4c178;
  box-shadow:0 0 0 5px #bedec308;
}

.player-heading .eyebrow {
  font-size:8px;
  letter-spacing:1.5px;
  color:#8cab98;
}

.player-heading h2 {
  font-size:17px;
  letter-spacing:-.3px;
  line-height:1.3;
  font-weight:500;
  margin:3px 0;
}

.player-heading p {
  font-size:10px;
  color:var(--muted);
  margin:0;
}

.your-turn {
  font-size:7px;
  letter-spacing:1px;
  color:var(--mint);
  margin-left:auto;
  align-self:flex-start;
  white-space:nowrap;
  padding-top:5px;
}

.vigor-label {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:21px;
  font-size:10px;
  color:#9bb6a7;
}

.vigor-label strong {
  font-size:11px;
  font-weight:500;
  color:#c8ddcb;
}

.vigor-track {
  height:4px;
  border-radius:2px;
  background:#c0e3c615;
  margin-top:7px;
  overflow:hidden;
}

.vigor-track>div {
  background:linear-gradient(to right,#5d9b7e,#b9e8b4);
  height:100%;
  width:0;
  transition:width .35s;
}

.player-stats {
  display:grid;
  grid-template-columns:1fr 1fr;
  margin-top:16px;
  gap:12px;
}

.player-stats>div {
  display:grid;
  grid-template-columns:20px 1fr;
  align-items:center;
  column-gap:4px;
}

.stat-icon {
  grid-row:span 2;
  font-size:25px;
  color:var(--mint);
  font-weight:300;
}

.stat-icon.shield {
  color:#99b8ad;
  font-size:24px;
}

.player-stats strong {
  font-size:19px;
  line-height:1.1;
  font-weight:500;
  font-variant-numeric:tabular-nums;
}

.player-stats>div>span:last-child {
  font-size:9px;
  color:var(--muted);
}

.equipment {
  font-size:10px;
  color:#b9cbbb;
  margin:16px 0 0;
  padding-top:12px;
  border-top:1px solid #a1c4b414;
}

.cap-note {
  font-size:9px;
  color:#709184;
  margin:5px 0 0;
}

.decision-panel {
  padding:20px 21px;
}

.decision-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.decision-heading h2 {
  font-size:13px;
}

.decision-heading>span {
  font-size:9px;
  color:var(--muted);
}

.turn-steps {
  display:flex;
  gap:7px;
  margin:13px 0 18px;
}

.turn-steps span {
  font-size:9px;
  color:#9bafa6;
  background:#bedcce08;
  border:1px solid #b6d8c912;
  padding:4px 7px;
  border-radius:4px;
}

.turn-steps span.done {
  color:#64897c;
}

.dice-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:11px;
}

.dice-heading output {
  border:1px solid #9fcdba3d;
  border-radius:5px;
  min-width:31px;
  text-align:center;
  color:var(--mint);
  padding:2px 7px;
  font-size:15px;
  font-variant-numeric:tabular-nums;
}

input[type=range] {
  display:block;
  width:100%;
  height:22px;
  margin:10px 0 0;
  accent-color:var(--mint);
  cursor:pointer;
}

input:disabled {
  cursor:not-allowed;
}

.range-labels {
  display:flex;
  justify-content:space-between;
  font-size:8px;
  color:#628174;
}

.help {
  font-size:9px;
  color:var(--muted);
  line-height:1.6;
  margin:9px 0 13px;
}

.move-button,.attack-button {
  display:flex;
  justify-content:flex-start;
  width:100%;
  text-align:left;
  padding:11px 12px;
  gap:11px;
  border-radius:8px;
  font-size:12px;
}

.move-button {
  background:#a5dfc6;
  color:#0b2e25;
  border-color:#b0e4cc;
}

.move-button:not(:disabled):hover {
  background:#c0efd8;
  border-color:#c0efd8;
}

.button-glyph {
  font-size:22px;
  line-height:1;
  font-weight:300;
}

.button-sub {
  display:block;
  font-size:8px;
  font-weight:400;
  opacity:.65;
  margin-top:2px;
}

.button-arrow {
  margin-left:auto;
  font-size:17px;
  font-weight:300;
}

.target-label {
  display:block;
  font-size:9px;
  color:#9aafa6;
  margin:16px 0 6px;
}

select,input[type=number] {
  width:100%;
  border:1px solid #a3c3b52b;
  border-radius:6px;
  background:#08191db3;
  color:#cfdfd3;
  min-height:36px;
  padding:7px 10px;
  font-size:11px;
}

select {
  padding-right:26px;
}

select:disabled {
  opacity:.5;
}

.target-detail {
  min-height:14px;
  margin:5px 0 9px;
  font-size:8px;
}

.attack-button {
  color:#d3baa1;
  background:#b1916c09;
  border-color:#d0ac8236;
}

.attack-button:not(:disabled):hover {
  background:#c0a17c16;
  border-color:#d0ac8270;
}

.end-turn-row {
  margin-top:18px;
  padding-top:17px;
  border-top:1px solid var(--line);
}

.end-button {
  width:100%;
  justify-content:space-between;
  font-size:11px;
  border-color:#9bbaab36;
}

.end-turn-row p {
  font-size:8px;
  line-height:1.6;
  color:#6d8b7c;
  margin:9px 2px 0;
  text-align:center;
}

.hand-panel {
  margin-top:20px;
}

.hand-panel .panel-heading {
  border-bottom:1px solid #9ebfaf10;
}

.private-label {
  font-size:9px;
  color:#6c8f7f;
  margin-left:4px;
}

.hand-note {
  font-size:9px;
  color:var(--muted);
}

.hand-content {
  display:grid;
  grid-template-columns:minmax(0,1fr) 250px;
  gap:22px;
  padding:20px 22px 22px;
  align-items:stretch;
}

.cards {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  align-content:start;
}

.action-card {
  position:relative;
  padding:0;
  border:1px solid color-mix(in srgb,var(--card-color) 30%,transparent);
  border-radius:11px;
  text-align:left;
  background:#0c2226;
  color:var(--text);
  overflow:hidden;
  transition:transform .18s,border-color .18s,box-shadow .18s;
  min-height:155px;
  display:flex;
  flex-direction:column;
}

.action-card:not(:disabled):hover {
  transform:translateY(-3px);
  border-color:var(--card-color);
  box-shadow:0 8px 24px #0003;
}

.card-art {
  position:relative;
  height:62px;
  background:radial-gradient(ellipse at 60% 110%,color-mix(in srgb,var(--card-color) 18%,transparent),transparent 70%),linear-gradient(130deg,#122c29,#081c21);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  border-bottom:1px solid color-mix(in srgb,var(--card-color) 14%,transparent);
}

.card-art:before,.card-art:after {
  content:"";
  position:absolute;
  width:130px;
  height:130px;
  border:1px solid color-mix(in srgb,var(--card-color) 14%,transparent);
  border-radius:50%;
  transform:rotate(30deg) scaleY(.45);
  top:-35px;
  left:calc(50% - 65px);
}

.card-art:after {
  transform:rotate(-30deg) scaleY(.55);
}

.card-symbol {
  font-family:Georgia,serif;
  font-size:40px;
  line-height:1;
  color:var(--card-color);
  text-shadow:0 0 25px color-mix(in srgb,var(--card-color) 35%,transparent);
  z-index:1;
}

.card-number {
  position:absolute;
  top:10px;
  left:11px;
  border:1px solid color-mix(in srgb,var(--card-color) 40%,transparent);
  background:#0d2424;
  width:24px;
  height:24px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  color:var(--card-color);
}

.card-category {
  position:absolute;
  right:11px;
  top:12px;
  color:var(--card-color);
  opacity:.65;
  font-size:7px;
  letter-spacing:1.4px;
}

.card-body {
  padding:12px 13px 11px;
  flex:1;
}

.card-title {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:500;
  margin-bottom:4px;
}

.card-play {
  font-size:9px;
  color:var(--card-color);
  font-weight:400;
}

.card-description {
  display:block;
  font-size:10px;
  line-height:1.5;
  color:#9aafa8;
}

.reaction-slot {
  border-left:1px solid var(--line);
  padding-left:22px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.reaction-slot .eyebrow {
  font-size:8px;
  letter-spacing:1.6px;
  color:#af9bba;
  margin-bottom:10px;
}

.reaction-content {
  display:flex;
  align-items:flex-start;
  gap:12px;
}

.reaction-symbol {
  color:#b4a3ca;
  font-size:27px;
  line-height:1.3;
}

.reaction-content strong {
  font-size:12px;
  font-weight:500;
  color:#c8bed4;
}

.reaction-content p {
  font-size:10px;
  color:var(--muted);
  line-height:1.6;
  margin:5px 0;
}

.reaction-auto {
  display:inline-flex;
  font-size:8px;
  padding:3px 6px;
  border:1px solid #b5a0c22d;
  color:#a695b2;
  border-radius:4px;
  align-self:flex-start;
  margin:10px 0 0;
}

.bottom-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:20px;
  margin-top:20px;
  align-items:start;
}

details summary {
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:17px 22px;
  font-size:12px;
}

details summary::-webkit-details-marker {
  display:none;
}

.summary-end {
  color:#779286;
  font-size:9px;
}

#journal {
  list-style:none;
  margin:0;
  padding:0 22px 15px;
  max-height:220px;
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:#496b5d transparent;
}

#journal li {
  padding:8px 0;
  border-top:1px solid #98c0a811;
  font-size:10px;
  line-height:1.6;
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:#a2b9ad;
}

.log-round {
  font-size:8px;
  flex:0 0 31px;
  color:#547d69;
  padding-top:2px;
  font-variant-numeric:tabular-nums;
}

.log-content {
  flex:1;
}

.log-dice {
  display:inline-flex;
  gap:3px;
  margin-left:7px;
  vertical-align:middle;
}

.die {
  border:1px solid #b2d9c340;
  border-radius:3px;
  color:#c4e2ce;
  background:#c6e6ce08;
  font-size:9px;
  width:17px;
  height:17px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.log-events .log-content {
  color:#c7bb95;
}

.log-attack .log-content {
  color:#bda89b;
}

.log-movement .log-content {
  color:#a7d0ba;
}

.rules-copy {
  padding:0 22px 12px;
  font-size:10px;
  line-height:1.7;
  color:var(--muted);
}

.rules-copy p {
  margin:0 0 13px;
}

.rules-copy strong {
  color:#bccdc0;
  font-weight:500;
}

.page-footer {
  display:flex;
  justify-content:space-between;
  gap:15px;
  margin-top:27px;
  padding:0 1px;
  color:#4b7061;
  font-size:8px;
  letter-spacing:1.2px;
}

.footer-separator {
  margin:0 8px;
  color:#3a554a;
}

.empty-state {
  font-size:11px;
  color:var(--muted);
  padding:16px 0;
  margin:0;
}

.notice {
  font-size:11px;
  border:1px solid #b9986140;
  background:#b998610c;
  color:#d2bd98;
  padding:12px 15px;
  border-radius:9px;
}

.error {
  color:#efb0a3;
  border-color:#e39a7f50;
  background:#a43e2b18;
  margin-bottom:16px;
}

.meditation {
  font-size:9px;
  padding:9px;
  margin-top:12px;
}

.outcome {
  display:flex;
  align-items:center;
  gap:20px;
  background:linear-gradient(110deg,#203f30,#102c2c);
  border:1px solid #b9df9960;
  border-radius:12px;
  padding:22px;
  margin-bottom:22px;
}

.outcome-icon {
  font-size:37px;
  color:#d9eab0;
}

.outcome .eyebrow {
  font-size:9px;
  color:#b7c78f;
}

.outcome h2 {
  font-family:Georgia,serif;
  font-size:23px;
  font-weight:400;
  margin:4px 0;
  color:#e5eed2;
}

.outcome p:last-child {
  font-size:11px;
  color:#a9c2ad;
  margin:4px 0 0;
}

.outcome .button {
  margin-left:auto;
  flex-shrink:0;
}

dialog {
  border:1px solid #8fc3ac44;
  border-radius:18px;
  color:var(--text);
  background:linear-gradient(135deg,#16342e,#0b1e22);
  max-width:480px;
  width:calc(100% - 32px);
  padding:30px;
  box-shadow:0 25px 120px #0008;
}

dialog::backdrop {
  background:#020c10cc;
  backdrop-filter:blur(8px);
}

.dialog-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.icon-button {
  padding:0;
  border:0;
  background:transparent;
  color:var(--muted);
  font-size:26px;
  line-height:1;
}

.dialog-heading .eyebrow {
  font-size:9px;
  color:#93b59e;
}

dialog h2 {
  font-family:Georgia,serif;
  font-size:31px;
  font-weight:400;
  letter-spacing:-.7px;
  margin:8px 0 12px;
}

.dialog-copy {
  font-size:12px;
  color:#9eb5aa;
  line-height:1.65;
  margin:0 0 21px;
}

dialog label:not(.checkbox-label) {
  display:block;
  font-size:11px;
  margin:14px 0 6px;
  color:#bfd1c4;
}

dialog select,dialog input[type=number] {
  font-size:12px;
  min-height:40px;
}

.checkbox-label {
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:20px;
  font-size:11px;
  color:#c6d6c8;
}

.checkbox-label input {
  accent-color:var(--mint);
  margin-top:3px;
}

.dialog-actions {
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:22px;
}

.dialog-actions button {
  font-size:11px;
}

.restart-note {
  font-size:10px;
  color:#c6ae83;
  border-top:1px solid var(--line);
  padding-top:16px;
  margin-top:18px;
}

.busy-indicator {
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 18px;
  border:1px solid #b2debf44;
  border-radius:8px;
  background:#122c28f5;
  box-shadow:0 6px 30px #0006;
  z-index:5;
  font-size:11px;
  color:#c4decb;
  white-space:nowrap;
}

@media(min-width:1450px) {
  .game-layout,.bottom-layout {
    grid-template-columns:minmax(0,1fr) 350px;
  }
  .command-panel .player-panel {
    padding:25px;
  }
  .decision-panel {
    padding:24px 25px;
  }
  .board-wrap {
    aspect-ratio:840/550;
  }
}

@media(max-width:1100px) {
  .site-header {
    padding:22px 26px;
  }
  main {
    padding:28px 26px;
  }
  .game-layout,.bottom-layout {
    grid-template-columns:minmax(0,1fr) 290px;
    gap:16px;
  }
  .intro h1 {
    font-size:38px;
  }
  .board-caption,.panel-heading {
    padding-left:17px;
    padding-right:17px;
  }
  .roster-section {
    padding:15px 17px;
  }
  .roster {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:13px;
  }
  .board-wrap {
    min-height:350px;
    aspect-ratio:840/680;
  }
  .board-footer {
    padding-left:17px;
    padding-right:17px;
  }
  .board-coordinate {
    display:none;
  }
  .player-panel {
    padding:19px 17px;
  }
  .decision-panel {
    padding:18px 17px;
  }
  .hand-content {
    grid-template-columns:minmax(0,1fr) 210px;
    gap:17px;
    padding:17px;
  }
  .reaction-slot {
    padding-left:17px;
  }
  .header-context .version {
    display:none;
  }
}

@media(max-width:800px) {
  .site-header {
    padding:18px 20px;
    gap:12px;
  }
  .header-context {
    display:none;
  }
  main {
    padding:25px 20px 20px;
  }
  .intro {
    align-items:flex-start;
    margin-bottom:22px;
  }
  .intro h1 {
    font-size:34px;
  }
  .intro-copy {
    max-width:350px;
    font-size:11px;
  }
  .session-meta {
    font-size:9px;
    max-width:145px;
    gap:8px;
    text-align:right;
  }
  .test-badge {
    font-size:8px;
  }
  .game-layout {
    grid-template-columns:minmax(0,1fr) 260px;
    gap:13px;
  }
  .board-wrap {
    aspect-ratio:840/900;
    min-height:330px;
  }
  .floor-label {
    font-size:14px;
  }
  .floor-caption {
    font-size:10px;
  }
  .floor-index {
    font-size:10px;
  }
  .token-initials {
    font-size:11px;
  }
  .node-number {
    font-size:8px;
  }
  .token-name {
    font-size:9px;
  }
  .board-caption {
    flex-direction:column;
    align-items:flex-start;
    gap:5px;
  }
  .panel-heading {
    padding:16px 15px;
    gap:10px;
  }
  .panel-heading h2 {
    font-size:12px;
  }
  .panel-label {
    gap:7px;
  }
  .round-chip {
    font-size:8px;
    padding:4px 6px;
    letter-spacing:.6px;
  }
  .player-heading {
    gap:9px;
  }
  .avatar.large {
    width:36px;
    height:36px;
    font-size:11px;
  }
  .player-heading h2 {
    font-size:15px;
  }
  .player-heading .eyebrow {
    font-size:7px;
  }
  .your-turn {
    font-size:6px;
  }
  .board-footer {
    margin-top:0;
  }
  .roster-name {
    font-size:9px;
  }
  .roster-position {
    font-size:8px;
  }
  .roster .avatar {
    width:25px;
    height:25px;
    font-size:8px;
  }
  .roster-player {
    gap:6px;
  }
  .roster-section {
    padding:14px 15px;
  }
  .roster {
    gap:13px 8px;
  }
  .private-label {
    display:none;
  }
  .hand-content {
    grid-template-columns:1fr;
  }
  .reaction-slot {
    border-left:0;
    border-top:1px solid var(--line);
    padding:15px 0 0;
    display:grid;
    grid-template-columns:110px minmax(0,1fr);
    gap:5px 14px;
    align-items:start;
  }
  .reaction-slot .eyebrow {
    margin-top:6px;
    grid-row:1;
  }
  .reaction-content {
    grid-column:2;
    grid-row:1 / span 2;
  }
  .reaction-auto {
    grid-column:1;
    grid-row:2;
    margin:0;
  }
  .bottom-layout {
    grid-template-columns:1fr;
    gap:13px;
  }
  .page-footer {
    font-size:7px;
    letter-spacing:.8px;
  }
}

@media(max-width:650px) {
  .site-header {
    padding:18px 17px;
  }
  .brand strong {
    font-size:24px;
  }
  .brand-mark {
    font-size:31px;
  }
  .brand .eyebrow {
    font-size:7px;
    letter-spacing:3px;
  }
  .site-header .quiet {
    font-size:10px;
    padding:8px 10px;
  }
  .intro {
    display:block;
  }
  .intro h1 {
    font-size:37px;
    margin-top:9px;
  }
  .intro .eyebrow {
    font-size:8px;
  }
  .intro-copy {
    max-width:100%;
    font-size:11px;
  }
  .session-meta {
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
    max-width:100%;
    margin-top:18px;
  }
  .test-badge {
    font-size:9px;
  }
  .game-layout {
    display:flex;
    flex-direction:column;
    gap:16px;
  }
  .board-panel,.command-panel {
    width:100%;
  }
  .board-wrap {
    min-height:310px;
    aspect-ratio:840/650;
  }
  .board-caption {
    flex-direction:row;
    align-items:center;
    font-size:9px;
  }
  .floor-label {
    font-size:13px;
  }
  .floor-caption {
    font-size:9px;
  }
  .board-footer {
    padding-bottom:15px;
  }
  .roster {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px 8px;
  }
  .roster-name {
    font-size:10px;
  }
  .roster-position {
    font-size:8px;
  }
  .roster-section h3 {
    font-size:8px;
  }
  .roster-section h3 span {
    font-size:8px;
  }
  .player-panel {
    padding:20px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0 20px;
  }
  .player-heading {
    grid-column:1 / -1;
  }
  .player-heading .eyebrow {
    font-size:8px;
  }
  .player-heading h2 {
    font-size:18px;
  }
  .player-heading p {
    font-size:11px;
  }
  .your-turn {
    font-size:8px;
  }
  .avatar.large {
    width:44px;
    height:44px;
    font-size:13px;
  }
  .vigor-label {
    grid-column:1;
    margin-top:18px;
  }
  .vigor-track {
    grid-column:1;
    margin-top:7px;
  }
  .player-stats {
    grid-column:2;
    grid-row:2 / span 2;
    align-self:center;
    margin-top:15px;
  }
  .equipment,.cap-note {
    grid-column:1 / -1;
  }
  .decision-panel {
    padding:20px;
  }
  .decision-heading h2 {
    font-size:14px;
  }
  .decision-heading>span {
    font-size:10px;
  }
  .turn-steps span {
    font-size:10px;
  }
  .dice-heading {
    font-size:12px;
  }
  .help {
    font-size:10px;
  }
  .range-labels {
    font-size:9px;
  }
  .move-button,.attack-button {
    font-size:13px;
    padding:12px 15px;
  }
  .button-sub {
    font-size:9px;
  }
  .target-label {
    font-size:10px;
  }
  select {
    font-size:12px;
    min-height:40px;
  }
  .target-detail {
    font-size:9px;
  }
  .end-button {
    font-size:12px;
    min-height:42px;
  }
  .end-turn-row p {
    font-size:9px;
  }
  .hand-panel {
    margin-top:16px;
  }
  .hand-note {
    font-size:8px;
  }
  .hand-content {
    padding:15px;
  }
  .cards {
    gap:10px;
  }
  .card-body {
    padding:10px;
  }
  .card-title {
    font-size:12px;
  }
  .card-description {
    font-size:9px;
  }
  .card-play {
    font-size:8px;
  }
  .card-art {
    height:65px;
  }
  .card-category {
    font-size:6px;
  }
  .action-card {
    min-height:158px;
  }
  .reaction-slot {
    grid-template-columns:100px 1fr;
    gap:4px 10px;
  }
  .page-footer {
    flex-direction:column;
    gap:7px;
    align-items:center;
    margin-top:24px;
  }
  .outcome {
    flex-wrap:wrap;
    gap:12px;
    padding:18px;
  }
  .outcome-icon {
    font-size:27px;
  }
  .outcome>div {
    flex:1;
  }
  .outcome h2 {
    font-size:21px;
  }
  .outcome .button {
    width:100%;
    margin-left:0;
  }
  .outcome p:last-child {
    font-size:10px;
  }
  .board-coordinate {
    display:block;
    font-size:6px;
    letter-spacing:1px;
  }
}

@media(max-width:390px) {
  main {
    padding:23px 13px 17px;
  }
  .site-header {
    padding:16px 13px;
  }
  .brand {
    gap:8px;
  }
  .brand strong {
    font-size:22px;
  }
  .site-header .quiet {
    font-size:9px;
  }
  .intro h1 {
    font-size:34px;
  }
  .roster {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .board-coordinate {
    display:none;
  }
  .panel-label {
    gap:5px;
  }
  .hand-note {
    font-size:7px;
  }
  .reaction-slot {
    grid-template-columns:1fr;
  }
  .reaction-content {
    grid-column:1;
    grid-row:2;
  }
  .reaction-auto {
    grid-column:1;
    grid-row:3;
    margin-top:7px;
  }
  .reaction-slot .eyebrow {
    margin:0 0 7px;
  }
  .card-title {
    display:block;
  }
  .card-play {
    display:block;
    margin-top:2px;
  }
  .dialog-actions {
    flex-direction:column-reverse;
  }
  .dialog-actions .button {
    width:100%;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    transition:none!important;
    scroll-behavior:auto!important;
  }
}

.roster-player {
  display:block;
}

.roster-player>.roster-summary {
  display:flex;
  justify-content:flex-start;
  align-items:center;
  gap:8px;
  padding:0;
  list-style:none;
}

.roster-player>.roster-summary::-webkit-details-marker {
  display:none;
}

.roster-more {
  margin-top:10px;
  padding-top:8px;
  border-top:1px solid var(--line);
  font-size:9px;
  line-height:1.5;
  color:var(--muted);
}

.roster-more p {
  margin:0 0 5px;
}

.session-meta #mode-label {
  font-size:9px;
  color:#6e9380;
}

@media(max-width:650px) {
  .session-meta {
    flex-wrap:wrap;
    gap:7px;
  }
  .session-meta #mode-label {
    flex:1 0 100%;
    text-align:left;
  }
  .roster-player>.roster-summary {
    gap:6px;
  }
}
