:root {
  color-scheme: dark;
  --brand: #b60100;
  --grand-brand: #3d0101;
  --mint: #6ee7b7;
  --bg: #000;
  --panel: #111;
  --line: rgba(255, 255, 255, 0.16);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.62);
  --gold: #fff;
  --green: #6ee7b7;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 48% 30%, #26372c 0, transparent 65%), var(--bg);
  color: var(--text);
  min-height: 100vh;
}
button,
select,
input {
  font: inherit;
}
button,
a,
select,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
  border-radius: 4px;
  padding: 9px 12px;
}
button:hover {
  background: #ffffff0c;
  color: var(--gold);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
.masthead {
  height: 96px;
  max-width: 1500px;
  margin: auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: Georgia, serif;
  letter-spacing: 4px;
  font-size: 24px;
}
.brand small {
  display: block;
  font: 9px system-ui;
  letter-spacing: 3px;
  color: var(--muted);
  margin-top: 6px;
}
.crest {
  color: var(--gold);
  font-size: 45px;
  letter-spacing: 0;
}
.masthead nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
}
.outline {
  border: 1px solid #65715b;
  color: var(--text);
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 36px 48px 15px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 15px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-family: Georgia, serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.16;
  margin-bottom: 0;
  letter-spacing: -0.5px;
}
.intro-copy {
  color: var(--muted);
  line-height: 1.85;
  font-size: 13px;
  margin: 0;
}
.game-layout {
  display: grid;
  grid-template-columns: 230px minmax(320px, 660px) 270px;
  gap: 24px;
  align-items: start;
  justify-content: center;
}
.panel {
  border: 1px solid var(--line);
  background: linear-gradient(130deg, #26312880, #1a231edd);
  padding: 22px;
  border-radius: 5px;
  margin-bottom: 18px;
}
h2 {
  font:
    24px Georgia,
    serif;
  font-weight: 400;
  margin-bottom: 12px;
}
.turn-panel h2 {
  font-size: 27px;
}
.turn-panel p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  min-height: 42px;
}
.turn-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 10px;
}
.army-panel h2 {
  font-size: 22px;
}
.army-description {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
}
.power-summary {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
}
.power-summary h3 {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}
.power-summary p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}
.tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  font-family: system-ui;
}
.tag.spent {
  color: #7f8980;
}
.tabletop-note {
  display: flex;
  gap: 13px;
  padding: 10px 4px;
  color: var(--muted);
}
.tabletop-note > span {
  font-size: 36px;
  color: var(--gold);
}
.tabletop-note h3 {
  font-size: 12px;
  color: var(--text);
  margin-bottom: 7px;
}
.tabletop-note p {
  font-size: 11px;
  line-height: 1.8;
}
.tabletop-note button {
  font-size: 10px;
  padding: 0;
  color: var(--gold);
}
.board-section {
  min-width: 0;
}
.player-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 50px;
  padding: 0 6px 10px;
  gap: 10px;
}
.player-strip:last-of-type {
  padding-top: 14px;
  padding-bottom: 0;
}
.player-name {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.player-name strong {
  font-weight: 600;
}
.player-name small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.side-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f0e4ca;
  border: 1px solid #d4c5a1;
}
.side-dot.black {
  background: #302f2b;
}
.reserve {
  font-family: 'Segoe UI Symbol', 'DejaVu Sans', serif;
  font-size: 20px;
  color: var(--muted);
  letter-spacing: -3px;
}
.active-player strong {
  color: var(--gold);
}
.board-frame {
  padding: 9px;
  background: #101713;
  border: 1px solid #53604a;
  box-shadow: 0 18px 60px #0005;
  border-radius: 3px;
}
.board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  aspect-ratio: 1;
  overflow: hidden;
}
.square {
  position: relative;
  aspect-ratio: 1;
  border-radius: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  color: #131a14;
  background: #b5b69b;
}
.square.dark {
  background: #536e58;
}
.square:hover {
  background: #d2c18e;
  color: inherit;
}
.square.dark:hover {
  background: #738264;
}
.piece {
  font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', serif;
  font-size: clamp(24px, 4.1vw, 55px);
  line-height: 1;
  z-index: 1;
  pointer-events: none;
}
.piece.white {
  color: #fff0d3;
  text-shadow:
    0 2px 2px #0008,
    -1px 0 #393b2e,
    0 1px #393b2e,
    1px 0 #393b2e,
    0 -1px #393b2e;
}
.piece.black {
  color: #1c2722;
  text-shadow:
    0 1px 1px #d7dfb0,
    1px 0 #b4c49e,
    -1px 0 #b4c49e;
}
.square.selected {
  box-shadow: inset 0 0 0 3px var(--gold);
  background: #c8b675;
}
.square.last {
  background: #b2ad72;
}
.square.dark.last {
  background: #879052;
}
.square.check {
  background: #a95447;
}
.square.move:after {
  content: '';
  position: absolute;
  width: 23%;
  height: 23%;
  background: #1b35296b;
  border-radius: 50%;
}
.square.capture:after {
  width: 88%;
  height: 88%;
  background: transparent;
  border: 5px solid #263f2b80;
}
.square.power:after {
  background: #deb86f99;
  box-shadow: 0 0 0 2px #5b491a70;
}
.square.capture.power:after {
  background: transparent;
  border-color: #f0c07899;
}
.coordinate {
  position: absolute;
  font-size: 9px;
  font-weight: 700;
  opacity: 0.7;
  left: 4px;
  top: 3px;
}
.coordinate.file {
  left: auto;
  top: auto;
  right: 4px;
  bottom: 2px;
}
.status-token {
  position: absolute;
  right: 3px;
  top: 2px;
  color: #fff;
  background: #533e67;
  border-radius: 3px;
  padding: 1px 3px;
  font-size: 9px;
  z-index: 2;
}
.status-token.ward {
  background: #2c6a64;
}
.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  margin-top: 12px;
  gap: 5px;
}
.board-toolbar button {
  font-size: 11px;
  padding: 6px 0;
}
.board-toolbar label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.board-toolbar input {
  accent-color: var(--gold);
}
.board-toolbar #save-status {
  font-size: 9px;
}
.selection-panel {
  min-height: 233px;
}
.selection-panel .piece {
  font-size: 38px;
  display: inline-block;
  margin-bottom: 8px;
}
.selection-panel h2 {
  font-size: 22px;
}
.selection-panel p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
}
.selection-panel .eyebrow {
  font-size: 10px;
  color: var(--gold);
}
.mode-buttons {
  display: flex;
  gap: 5px;
  margin: 15px 0 10px;
}
.mode-buttons button {
  font-size: 11px;
  border: 1px solid var(--line);
  flex: 1;
  padding: 8px 5px;
}
.mode-buttons button.active {
  border-color: var(--gold);
  color: var(--gold);
  background: #d9bb7810;
}
.roll-note {
  font-size: 10px !important;
  color: var(--gold) !important;
}
.chronicle {
  padding-bottom: 10px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-heading h2 {
  font-size: 18px;
  margin: 0;
}
.section-heading span {
  font-size: 10px;
  color: var(--muted);
}
#log {
  list-style: none;
  padding: 0;
  max-height: 230px;
  overflow: auto;
  margin-bottom: 0;
  scrollbar-width: thin;
}
#log li {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
#log li:first-child {
  margin-top: 15px;
}
#log li strong {
  color: var(--text);
  font-weight: 500;
}
#log .empty {
  border: 0;
  padding: 10px 0 18px;
}
.file-tools {
  display: flex;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}
.footnote {
  text-align: center;
  font-size: 9px;
  letter-spacing: 2px;
  color: #7b887d;
  margin: 30px 0 10px;
}
dialog {
  background: #1b2720;
  color: var(--text);
  border: 1px solid #65715b;
  border-radius: 8px;
  max-width: 600px;
  width: calc(100% - 32px);
  padding: 32px;
  max-height: 90vh;
  box-shadow: 0 25px 100px #0009;
}
dialog::backdrop {
  background: #080e0bc9;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 32px;
}
dialog p {
  line-height: 1.85;
  font-size: 13px;
  color: var(--muted);
}
.race-selectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 25px 0;
}
.race-selectors label {
  font-size: 12px;
  color: var(--gold);
}
select {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  background: #111b15;
  color: var(--text);
  border: 1px solid #4e5d4d;
  border-radius: 3px;
}
.race-preview {
  padding: 16px;
  border: 1px solid var(--line);
  margin-top: 10px;
}
.race-preview h3 {
  font:
    20px Georgia,
    serif;
  margin-bottom: 5px;
}
.race-preview p {
  margin: 0;
  font-size: 12px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 25px;
}
.primary {
  background: var(--gold);
  color: #1a231b;
  padding: 12px 20px;
  font-weight: 600;
}
.primary:hover {
  background: #eed097;
  color: #111;
}
.muted {
  font-size: 11px !important;
}
.manual-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
#rules {
  max-width: 790px;
}
#manual h3 {
  font:
    22px Georgia,
    serif;
  color: var(--gold);
  margin-top: 28px;
}
#manual h4 {
  margin-bottom: 6px;
}
#manual li {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  margin: 8px 0;
}
#manual table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
#manual td,
#manual th {
  padding: 10px 8px;
  border: 1px solid var(--line);
  text-align: left;
  line-height: 1.7;
}
#manual th {
  color: var(--gold);
}
.dice-tray {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 25px 0;
}
.die {
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ece2c6;
  color: #202a22;
  border-radius: 8px;
  font-size: 40px;
  box-shadow: 0 4px 0 #9f9479;
}
.dice-inputs {
  display: flex;
  gap: 15px;
  margin: 18px 0;
}
.dice-inputs label {
  flex: 1;
  color: var(--gold);
  font-size: 12px;
}
.dice-inputs select {
  font-size: 20px;
}
.choice-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.choice-list button {
  border: 1px solid var(--line);
  padding: 15px;
}
.choice-list .piece {
  font-size: 32px;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #e0c68e;
  color: #152019;
  padding: 12px 20px;
  border-radius: 4px;
  box-shadow: 0 5px 20px #0005;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10;
  max-width: 90%;
  font-size: 13px;
}
#toast.visible {
  opacity: 1;
}
.check-alert {
  color: #f2a18c !important;
}
.battle-result {
  color: var(--gold) !important;
}
@media (min-width: 1500px) {
  .piece {
    font-size: 55px;
  }
}
@media (max-width: 1150px) {
  .masthead {
    padding: 0 25px;
  }
  main {
    padding: 28px 25px;
  }
  .game-layout {
    grid-template-columns: 190px minmax(300px, 1fr) 215px;
    gap: 15px;
  }
  .panel {
    padding: 17px;
  }
  .intro-copy {
    font-size: 12px;
  }
  .piece {
    font-size: 4.2vw;
  }
}
@media (max-width: 950px) {
  .game-layout {
    grid-template-columns: minmax(320px, 1fr) 250px;
  }
  .left-rail {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 18px;
  }
  .left-rail .panel {
    margin-bottom: 0;
  }
  .army-panel .army-description,
  .tabletop-note {
    display: none;
  }
  .army-panel .power-summary {
    display: inline-block;
    width: 48%;
    padding: 0 12px 0 0;
    margin: 0;
    border: 0;
    vertical-align: top;
  }
  .army-panel .power-summary p {
    font-size: 10px;
  }
  .piece {
    font-size: 6vw;
  }
  .intro-copy {
    display: none;
  }
  .board-section {
    grid-column: 1;
  }
  .right-rail {
    grid-column: 2;
  }
  .intro {
    margin-bottom: 25px;
  }
}
@media (max-width: 650px) {
  .masthead {
    height: 78px;
    padding: 0 16px;
  }
  .brand {
    font-size: 18px;
    letter-spacing: 2px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 2px;
  }
  .crest {
    font-size: 34px;
  }
  .masthead nav {
    gap: 0;
  }
  .masthead nav button {
    font-size: 11px;
    padding: 8px;
  }
  .masthead #sound {
    display: none;
  }
  main {
    padding: 22px 14px;
  }
  .intro h1 {
    font-size: 28px;
  }
  .intro {
    margin-bottom: 20px;
  }
  .game-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .left-rail {
    display: block;
    width: 100%;
  }
  .turn-panel {
    padding: 14px 17px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
  }
  .turn-panel .eyebrow {
    grid-column: 1/-1;
    margin-bottom: 8px;
  }
  .turn-panel h2 {
    font-size: 22px;
    margin-bottom: 5px;
  }
  .turn-panel p:not(.eyebrow) {
    font-size: 11px;
    min-height: 0;
    margin: 0;
  }
  .turn-meta {
    grid-column: 1/-1;
    padding-top: 8px;
    margin-top: 7px;
  }
  .army-panel {
    display: none;
  }
  .board-section {
    width: 100%;
  }
  .piece {
    font-size: 9vw;
  }
  .board-frame {
    padding: 5px;
  }
  .player-strip {
    min-height: 43px;
  }
  .board-toolbar {
    font-size: 10px;
  }
  .right-rail {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .right-rail .panel {
    margin: 0;
    padding: 15px;
  }
  .selection-panel {
    min-height: 180px;
  }
  .selection-panel h2 {
    font-size: 19px;
  }
  .selection-panel .piece {
    font-size: 28px;
  }
  #log {
    max-height: 220px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .file-tools {
    grid-column: 1/-1;
  }
  .footnote {
    font-size: 7px;
    letter-spacing: 1.5px;
  }
  dialog {
    padding: 23px;
  }
  .coordinate {
    font-size: 8px;
  }
  .status-token {
    font-size: 8px;
  }
  .race-selectors {
    gap: 12px;
  }
}
.dice-stage {
  margin: 18px -12px 14px;
  border: 1px solid #6f6545;
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 35%, #344c3e, #111a15 80%);
  box-shadow: inset 0 0 35px #0006;
}
.dice-viewport {
  width: 100%;
  height: 300px;
}
.dice-viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.dice-readouts {
  display: flex;
  justify-content: center;
  gap: 36px;
  padding: 0 15px 16px;
  text-align: center;
}
.dice-readouts span {
  display: block;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}
.dice-readouts strong {
  display: block;
  min-width: 85px;
  color: var(--gold);
  font-size: 26px;
  margin-top: 4px;
  font-family: Georgia, serif;
}
.dice-stage[data-state='rolling'] .dice-readouts strong {
  font: 12px system-ui;
  line-height: 30px;
}
.roll-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}
.roll-footer button {
  border: 1px solid var(--line);
  font-size: 11px;
}
.dice-total {
  text-align: center;
  font-size: 20px !important;
  color: var(--gold) !important;
  margin: 8px 0;
}
@media (max-width: 650px) {
  .dice-viewport {
    height: 235px;
  }
  .masthead {
    height: auto;
    min-height: 78px;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .masthead #sound {
    display: inline-flex;
  }
  .masthead nav {
    margin-left: auto;
  }
}
/* Giftcodes brand, expressed as an original fantasy battlefield interface. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  background: #000;
  color: #fff;
}
button,
a,
select,
input {
  transition:
    background-color 0.16s,
    border-color 0.16s,
    color 0.16s,
    box-shadow 0.16s;
}
button {
  border-radius: 3px;
}
button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  padding: 12px 18px;
  background: #fff;
  color: #000;
  z-index: 99;
}
.skip-link:focus {
  top: 16px;
}
.realm-bar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px max(32px, calc((100vw - 1376px) / 2));
  font-size: 8px;
  letter-spacing: 2.3px;
  color: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.masthead {
  max-width: none;
  height: 90px;
  padding: 0 max(32px, calc((100vw - 1376px) / 2));
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #1b1513, #0c0b0b);
  position: relative;
  z-index: 2;
}
.masthead:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 190px;
  height: 2px;
  background: var(--brand);
}
.brand {
  font-size: 25px;
  letter-spacing: 4px;
  gap: 15px;
  white-space: nowrap;
}
.brand small {
  font-size: 8px;
  letter-spacing: 3.5px;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.5);
}
.crest {
  display: flex;
  width: 41px;
  height: 48px;
  color: var(--brand);
}
.crest svg {
  display: block;
  width: 100%;
  height: 100%;
}
.masthead nav {
  align-items: center;
  gap: 21px;
  font-size: 11px;
  letter-spacing: 0.3px;
}
.masthead .nav-link {
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.68);
}
.masthead .nav-link:hover {
  color: #fff;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: linear-gradient(180deg, #b60100, #780100);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.16),
    0 5px 22px #0006;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.4px;
  border-radius: 2px;
  padding: 13px 24px;
}
.primary:hover {
  background: linear-gradient(180deg, #c91918, #940100);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.25),
    0 7px 25px #b6010025;
}
.nav-primary {
  min-width: 122px;
  padding: 12px 19px;
}
.outline {
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
}
main {
  max-width: none;
  padding: 0;
}
.intro.hero {
  display: block;
  position: relative;
  isolation: isolate;
  min-height: 465px;
  margin: 0;
  padding: 61px 40px 48px;
  background: #000 url('./art/crown-battlefield.svg') center center/cover
    no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}
.hero:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #000 0%, #000e 29%, #0007 52%, #0000 74%),
    linear-gradient(0deg, #000 0%, transparent 30%);
}
.hero-content {
  max-width: 1360px;
  margin: auto;
}
.eyebrow {
  color: rgba(255, 255, 255, 0.64);
  font-size: 9px;
  letter-spacing: 2.7px;
  font-weight: 650;
}
.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}
.eyebrow-rule {
  width: 30px;
  height: 2px;
  background: var(--brand);
}
.hero h1 {
  max-width: 720px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(42px, 4.6vw, 68px);
  line-height: 1.08;
  letter-spacing: -2.3px;
  font-weight: 400;
}
.hero h1 em {
  font-style: normal;
  position: relative;
}
.hero h1 em:after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), transparent);
}
.hero .intro-copy {
  display: block;
  margin: 25px 0 26px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.9;
  max-width: 510px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}
.hero-primary {
  min-width: 205px;
  padding: 15px 20px;
}
.hero-primary span {
  color: #fff;
  opacity: 0.7;
}
.hero-secondary {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  padding: 12px 0;
}
.hero-secondary span {
  padding-left: 7px;
  color: var(--mint);
}
.hero-secondary:hover {
  color: #fff;
}
.hero-details {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 29px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  letter-spacing: 0.3px;
}
.hero-details span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border-right: 1px solid var(--line);
}
.hero-details span:first-child {
  padding-left: 0;
}
.hero-details span:last-child {
  border: 0;
}
.hero-details i,
.field-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px #6ee7b733;
}
.warband-roster {
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px 40px 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.roster-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}
.roster-intro .eyebrow {
  margin: 0;
}
.roster-intro h2 {
  font:
    18px Georgia,
    serif;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}
.warband-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.warband-card {
  display: flex;
  align-items: center;
  text-align: left;
  position: relative;
  gap: 15px;
  padding: 18px 17px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, #171313, #0c0c0c);
  border-radius: 2px;
  min-height: 94px;
}
.warband-card:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--brand);
  opacity: 0.7;
}
.warband-card:hover {
  border-color: rgba(110, 231, 183, 0.5);
  background: linear-gradient(135deg, #211010, #111);
}
.warband-card:hover .warband-mark {
  color: var(--mint);
}
.warband-mark {
  flex: 0 0 42px;
  width: 42px;
  height: 48px;
  color: rgba(255, 255, 255, 0.68);
}
.warband-card strong {
  display: block;
  font:
    20px Georgia,
    serif;
  font-weight: 400;
  margin-bottom: 7px;
  color: #fff;
}
.warband-card small {
  display: block;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.46);
  font-size: 9px;
  letter-spacing: 0.1px;
}
.card-arrow {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.3);
  font-size: 15px;
}
.warband-card:hover .card-arrow {
  color: var(--mint);
}
.battlefield-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 36px 40px 25px;
}
.battlefield-heading .eyebrow {
  margin-bottom: 9px;
  font-size: 8px;
}
.battlefield-heading h2 {
  margin: 0;
  font:
    29px Georgia,
    serif;
  font-weight: 400;
}
.field-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 8px;
  letter-spacing: 1.5px;
}
.game-layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  grid-template-columns: 220px minmax(320px, 660px) 260px;
  gap: 24px;
}
.panel {
  background: linear-gradient(145deg, #181515, #0c0c0c);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  padding: 20px;
  box-shadow: 0 8px 22px #0004;
}
.panel .eyebrow {
  font-size: 8px;
  letter-spacing: 2px;
}
.turn-panel {
  border-top: 2px solid var(--brand);
}
.turn-panel h2 {
  font-size: 26px;
}
.turn-panel p:not(.eyebrow),
.army-description {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
}
.turn-meta {
  border-top-color: rgba(255, 255, 255, 0.1);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.42);
}
#army-panel h2,
.race-preview h3 {
  color: #fff !important;
}
.army-panel h2 {
  font-size: 22px;
}
.power-summary {
  border-top-color: rgba(255, 255, 255, 0.1);
}
.power-summary h3 {
  font-size: 11px;
  color: #fff;
}
.power-summary p {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}
.tag {
  color: var(--mint);
  font-size: 8px;
}
.tag.spent {
  color: rgba(255, 255, 255, 0.3);
}
.tabletop-note {
  color: rgba(255, 255, 255, 0.5);
  padding: 12px 3px;
}
.tabletop-note > span {
  color: rgba(255, 255, 255, 0.65);
}
.tabletop-note h3 {
  color: #fff;
}
.tabletop-note button {
  color: var(--mint);
  font-size: 10px;
}
.player-strip {
  padding-left: 3px;
  padding-right: 3px;
  min-height: 46px;
}
.player-name {
  font-size: 11px;
}
.player-name small {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.43);
}
.active-player strong {
  color: #fff;
}
.active-player .side-dot {
  box-shadow: 0 0 0 3px #6ee7b725;
  outline: 1px solid var(--mint);
}
.side-dot {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.side-dot.black {
  background: #111;
  border-color: rgba(255, 255, 255, 0.5);
}
.board-frame {
  background: linear-gradient(135deg, #2d2727, #090909 40%, #211c1c);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    0 24px 60px #0009,
    inset 0 0 0 3px #000,
    inset 0 0 0 4px #ffffff0a;
  border-radius: 2px;
  position: relative;
}
.board-frame:before,
.board-frame:after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
}
.board-frame:before {
  top: -2px;
  left: -2px;
  border-top: 2px solid var(--brand);
  border-left: 2px solid var(--brand);
}
.board-frame:after {
  bottom: -2px;
  right: -2px;
  border-bottom: 2px solid var(--brand);
  border-right: 2px solid var(--brand);
}
.square {
  background: #c8c7c7;
  color: #111;
}
.square.dark {
  background: #363131;
}
.square:hover {
  background: #e2e2e2;
  color: #111;
}
.square.dark:hover {
  background: #585050;
}
.piece.white {
  color: #fff;
  text-shadow:
    0 2px 3px #0008,
    -1px 0 #222,
    0 1px #222,
    1px 0 #222,
    0 -1px #222;
}
.piece.black {
  color: #0a0808;
  text-shadow:
    0 1px 1px #fff9,
    1px 0 #fff9,
    -1px 0 #fff9;
}
.square.last {
  background: #9db8ad;
}
.square.dark.last {
  background: #435b51;
}
.square.selected {
  background: #a18484;
  box-shadow: inset 0 0 0 3px var(--brand);
}
.square.check {
  background: #b60100;
}
.square.move:after {
  background: #224b3b80;
}
.square.capture:after {
  background: transparent;
  border-color: #6ee7b7aa;
}
.square.power:after {
  background: #b60100a0;
  box-shadow: 0 0 0 2px #fff6;
}
.square.capture.power:after {
  background: transparent;
  border-color: #b60100aa;
}
.coordinate {
  color: #000;
}
.dark .coordinate {
  color: #fff;
}
.status-token {
  background: #b60100;
  color: #fff;
  border: 1px solid #ffffff50;
}
.status-token.ward {
  background: #13271e;
  color: var(--mint);
  border-color: #6ee7b770;
}
.board-toolbar {
  color: rgba(255, 255, 255, 0.5);
}
.board-toolbar input {
  accent-color: var(--brand);
}
.selection-panel h2 {
  font-size: 23px;
}
.selection-panel p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}
.selection-panel .eyebrow {
  color: rgba(255, 255, 255, 0.6);
}
.mode-buttons {
  flex-wrap: wrap;
}
.mode-buttons button {
  background: #000;
  border-color: rgba(255, 255, 255, 0.15);
  font-size: 10px;
  padding: 10px 7px;
}
.mode-buttons button.active {
  border-color: var(--brand);
  color: #fff;
  background: #3d010150;
  box-shadow: inset 0 -2px var(--brand);
}
.roll-note {
  color: var(--mint) !important;
}
.section-heading h2 {
  font-size: 18px;
}
#log li {
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
}
#log li strong {
  color: rgba(255, 255, 255, 0.85);
}
.file-tools {
  font-size: 10px;
  gap: 8px;
}
.file-tools button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0d0d0d;
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1360px;
  margin: 43px auto 0;
  padding: 27px 0 33px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
}
.site-footer p {
  margin: 0;
}
.footer-brand {
  font:
    18px Georgia,
    serif;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.65);
}
.site-footer a:last-child {
  color: rgba(255, 255, 255, 0.7);
}
.site-footer a:last-child span {
  color: var(--mint);
  padding-left: 8px;
}
dialog {
  background: linear-gradient(145deg, #1b1513, #090909 70%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  padding: 32px;
  box-shadow: 0 30px 130px #000c;
}
dialog::backdrop {
  background: #000c;
  backdrop-filter: blur(7px);
}
dialog h2 {
  font:
    34px Georgia,
    serif;
  letter-spacing: -0.6px;
}
dialog p {
  color: rgba(255, 255, 255, 0.6);
}
dialog .eyebrow {
  margin-bottom: 12px;
}
#setup {
  max-width: 730px;
  border-top: 3px solid var(--brand);
}
.race-selectors label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
}
select {
  background: #000;
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  border-radius: 2px;
  padding: 13px 12px;
}
select:focus {
  border-color: var(--mint);
}
#race-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.race-preview {
  border: 0;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 2px;
  margin: 0;
  padding: 17px;
}
.race-preview h3 {
  font-size: 20px;
}
.race-preview p {
  font-size: 11px;
}
.dialog-actions {
  gap: 12px;
}
.dialog-actions > button:not(.primary) {
  border: 1px solid rgba(255, 255, 255, 0.16);
}
#manual h3 {
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 21px;
}
#manual h4 {
  color: var(--mint);
}
#manual th {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
#manual td,
#manual th {
  border-color: rgba(255, 255, 255, 0.16);
}
#manual li {
  color: rgba(255, 255, 255, 0.65);
}
.die {
  background: #fff;
  color: #111;
  box-shadow: 0 4px 0 #999;
}
.dice-stage {
  border-color: rgba(255, 255, 255, 0.2);
  background: radial-gradient(ellipse at 50% 35%, #202020, #090909 80%);
  border-radius: 3px;
}
.dice-readouts strong,
.dice-total {
  color: #fff !important;
}
.roll-footer button {
  border-color: rgba(255, 255, 255, 0.2);
}
#toast {
  background: #fff;
  color: #000;
  border-left: 4px solid var(--brand);
  border-radius: 2px;
}
.check-alert {
  color: #fff !important;
}
.battle-result {
  color: var(--mint) !important;
}
@media (min-width: 1500px) {
  .hero {
    background-size: 1600px 620px;
  }
}
@media (max-width: 1200px) {
  .masthead {
    padding: 0 28px;
  }
  .realm-bar {
    padding-left: 28px;
    padding-right: 28px;
  }
  .intro.hero {
    padding: 45px 28px 38px;
    min-height: 425px;
  }
  .warband-roster {
    padding: 26px 28px;
  }
  .battlefield-heading {
    padding: 30px 28px 22px;
  }
  .game-layout {
    padding: 0 28px;
    grid-template-columns: 190px minmax(300px, 1fr) 220px;
    gap: 17px;
  }
  .warband-card {
    gap: 11px;
    padding: 15px 12px;
  }
  .warband-mark {
    flex-basis: 35px;
    width: 35px;
    height: 42px;
  }
  .warband-card strong {
    font-size: 19px;
  }
  .card-arrow {
    display: none;
  }
  .site-footer {
    margin-left: 28px;
    margin-right: 28px;
  }
}
@media (max-width: 950px) {
  .masthead nav {
    gap: 10px;
    font-size: 10px;
  }
  .brand {
    font-size: 21px;
    letter-spacing: 3px;
  }
  .brand small {
    letter-spacing: 2px;
  }
  .hero h1 {
    font-size: 52px;
  }
  .hero:before {
    background:
      linear-gradient(90deg, #000 0%, #000e 32%, #0005 78%),
      linear-gradient(0deg, #000, transparent 40%);
  }
  .hero .intro-copy {
    max-width: 430px;
    font-size: 11px;
  }
  .hero-details {
    font-size: 8px;
  }
  .game-layout {
    grid-template-columns: minmax(320px, 1fr) 245px;
  }
  .left-rail {
    grid-column: 1/-1;
  }
  .army-panel .power-summary {
    padding-right: 20px;
  }
  .turn-panel h2 {
    font-size: 24px;
  }
  .field-badge {
    display: none;
  }
  .warband-card {
    gap: 10px;
  }
  .warband-card small {
    white-space: normal;
    line-height: 1.6;
  }
  .warband-card strong {
    font-size: 18px;
  }
  .warband-mark {
    flex-basis: 29px;
    width: 29px;
    height: 36px;
  }
}
@media (max-width: 650px) {
  html {
    scroll-padding-top: 12px;
  }
  .realm-bar {
    justify-content: center;
    padding: 9px 15px;
    font-size: 7px;
    letter-spacing: 1.7px;
  }
  .realm-bar span:last-child {
    display: none;
  }
  .masthead {
    padding: 14px 17px;
    gap: 16px;
    min-height: 80px;
    height: auto;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 20px;
    letter-spacing: 3px;
    gap: 10px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 2px;
  }
  .crest {
    width: 29px;
    height: 36px;
  }
  .masthead nav {
    width: 100%;
    justify-content: space-between;
    margin: 0;
    gap: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 11px;
  }
  .masthead nav button {
    padding: 8px 10px;
    font-size: 10px;
  }
  .masthead .nav-link {
    font-size: 10px;
    padding: 8px 0;
  }
  .masthead .nav-primary {
    min-width: 0;
  }
  .masthead #sound {
    display: inline-flex;
  }
  .intro.hero {
    padding: 33px 20px 30px;
    min-height: 405px;
    background-position: 60% 50%;
    background-size: auto 480px;
  }
  .hero:before {
    background:
      linear-gradient(90deg, #000f, #000b 58%, #0007),
      linear-gradient(0deg, #000, transparent 60%);
  }
  .hero .eyebrow {
    font-size: 7px;
    letter-spacing: 2px;
    margin-bottom: 19px;
    gap: 9px;
  }
  .eyebrow-rule {
    width: 18px;
  }
  .hero h1 {
    font-size: 43px;
    letter-spacing: -1.7px;
    line-height: 1.1;
  }
  .hero .intro-copy {
    margin: 22px 0 22px;
    font-size: 11px;
    max-width: 310px;
  }
  .desktop-break {
    display: none;
  }
  .hero-actions {
    gap: 17px;
    flex-wrap: wrap;
  }
  .hero-primary {
    min-width: 0;
    font-size: 11px;
    gap: 12px;
    padding: 13px 15px;
  }
  .hero-secondary {
    font-size: 10px;
  }
  .hero-details {
    gap: 0;
    font-size: 8px;
    margin-top: 25px;
  }
  .hero-details span {
    padding: 0 10px;
  }
  .warband-roster {
    padding: 24px 16px;
  }
  .roster-intro {
    display: block;
    margin-bottom: 15px;
  }
  .roster-intro .eyebrow {
    font-size: 7px;
    margin-bottom: 8px;
  }
  .roster-intro h2 {
    font-size: 20px;
  }
  .warband-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .warband-card {
    min-height: 82px;
    padding: 13px 12px;
    gap: 10px;
  }
  .warband-mark {
    flex-basis: 31px;
    width: 31px;
    height: 38px;
  }
  .warband-card strong {
    font-size: 18px;
    margin-bottom: 5px;
  }
  .warband-card small {
    font-size: 8px;
  }
  .battlefield-heading {
    padding: 27px 16px 18px;
  }
  .battlefield-heading .eyebrow {
    font-size: 7px;
    letter-spacing: 1.5px;
  }
  .battlefield-heading h2 {
    font-size: 25px;
  }
  .game-layout {
    padding: 0 14px;
    gap: 15px;
  }
  .panel {
    padding: 15px;
  }
  .turn-panel {
    padding: 14px 16px;
  }
  .turn-panel .eyebrow {
    font-size: 7px;
  }
  .turn-panel h2 {
    font-size: 22px;
  }
  .turn-meta {
    font-size: 8px;
  }
  .board-frame {
    padding: 7px;
  }
  .player-strip {
    min-height: 43px;
  }
  .player-name {
    font-size: 10px;
  }
  .player-name small {
    font-size: 8px;
  }
  .selection-panel h2 {
    font-size: 19px;
  }
  .selection-panel p {
    font-size: 10px;
    line-height: 1.8;
  }
  .selection-panel .eyebrow {
    font-size: 7px;
  }
  .mode-buttons {
    gap: 5px;
  }
  .mode-buttons button {
    flex-basis: 100%;
    padding: 8px;
    font-size: 9px;
  }
  .right-rail .panel {
    padding: 14px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .section-heading span {
    font-size: 8px;
  }
  .site-footer {
    display: block;
    text-align: center;
    margin: 28px 16px 0;
    padding: 24px 0;
  }
  .site-footer p {
    margin: 12px 0 14px;
    font-size: 9px;
  }
  .footer-brand {
    font-size: 17px;
  }
  dialog {
    padding: 23px;
  }
  .race-selectors {
    gap: 12px;
  }
  #race-preview {
    gap: 10px;
  }
  .race-preview {
    padding: 12px;
  }
  .race-preview h3 {
    font-size: 17px;
  }
  .race-preview p {
    font-size: 10px;
    line-height: 1.7;
  }
  dialog h2 {
    font-size: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  button,
  a,
  select,
  input {
    transition: none;
  }
}
.unit-vitals {
  position: absolute;
  bottom: 3px;
  left: 3px;
  z-index: 3;
  background: #000d;
  color: #fff;
  border: 1px solid #ffffff40;
  border-radius: 3px;
  padding: 1px 3px;
  font-size: 9px;
  line-height: 1.3;
}
.combat-chronicle {
  margin: 12px 0;
  color: var(--text);
  font-size: 12px;
}
.combat-chronicle summary {
  cursor: pointer;
  color: var(--muted);
}
.combat-chronicle ol {
  max-height: 140px;
  overflow: auto;
  line-height: 1.7;
  padding-left: 22px;
}
@media (max-width: 650px) {
  .right-rail #match-pool {
    grid-column: 1/-1;
  }
}
@media print {
  body {
    background: white;
    color: black;
  }
  .masthead,
  .realm-bar,
  .skip-link,
  main,
  #setup,
  #decision,
  #toast,
  #rules-close,
  #print-rules {
    display: none !important;
  }
  #rules {
    display: block !important;
    position: static;
    max-width: none;
    width: 100%;
    max-height: none;
    overflow: visible;
    border: 0;
    padding: 0;
    background: white;
    color: black;
    box-shadow: none;
  }
  #rules::backdrop {
    display: none;
  }
  #manual p,
  #manual li {
    color: #222;
  }
  #manual h3,
  #manual th,
  .eyebrow {
    color: #222;
  }
  #manual tr {
    break-inside: avoid;
  }
  #manual td,
  #manual th {
    border-color: #999;
  }
  dialog h2 {
    font-size: 26px;
  }
}

.practice-guide {
  margin-bottom: 16px;
}
.practice-guide h3 {
  margin: 0 0 8px;
}
.practice-guide p {
  line-height: 1.55;
}
.practice-guide .muted {
  font-size: 0.78rem;
  margin-bottom: 0;
}
#practice-format {
  width: 100%;
  margin-top: 8px;
}
.power-summary button {
  width: 100%;
  margin-top: 8px;
}
.power-summary.power-ready {
  border-left: 3px solid var(--mint);
  padding-left: 12px;
}
.power-summary.power-ready .tag {
  color: var(--mint);
}
.mode-buttons button.power-ready,
.power-summary.power-ready button {
  border-color: var(--mint);
  color: var(--mint);
  box-shadow: inset 0 0 0 1px #6ee7b733;
}
