* {
  box-sizing: border-box;
}
:root {
  --paper: #f5f0e5;
  --panel: #faf7ee;
  --ink: #302b23;
  --muted: #685f50;
  --line: #ccc0a9;
  --red: #9e382e;
  --blue: #355273;
  --gold: #ba973e;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, sans-serif;
  --mono: Consolas, 'Courier New', monospace;
}
html {
  min-height: 100%;
  background: var(--paper);
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 15px/1.45 var(--sans);
  background: url('../art/paper.svg'), var(--paper);
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #e7ac12;
  outline-offset: 3px;
}
button {
  touch-action: manipulation;
}
button svg {
  flex-shrink: 0;
}
.defs {
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}
.header {
  border-top: 4px solid var(--red);
  border-bottom: 1px solid #c9bda6;
  background: rgba(251, 248, 238, 0.79);
}
.header-inner {
  max-width: 1252px;
  padding: 0 48px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}
.brand {
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0;
  text-align: left;
}
.brand > svg {
  width: 46px;
  height: 46px;
}
.brand strong {
  display: block;
  font: 600 26px/1.03 var(--serif);
  letter-spacing: -1.1px;
}
.brand small {
  display: block;
  margin-top: 6px;
  font: 600 9px/1.3 var(--sans);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  height: 100%;
}
.nav button {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 4px;
  min-height: 44px;
  color: #5e574a;
}
.nav button.active {
  color: var(--red);
}
.nav button:hover,
.brand:hover strong {
  color: var(--red);
}
.nav .sound {
  margin-left: 4px;
  padding-left: 23px;
  border-left: 1px solid var(--line);
}
main {
  max-width: 1180px;
  padding: 26px 40px 30px;
  margin: auto;
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 0 0 23px;
}
.title-group {
  display: flex;
  align-items: center;
  gap: 17px;
}
.title-rule {
  height: 37px;
  width: 5px;
  border-radius: 1px;
  background: var(--red);
  box-shadow:
    3px 0 0 var(--paper),
    4px 0 0 #b9966c;
}
.page-title h1 {
  font: 500 clamp(32px, 3.1vw, 46px) / 1.07 var(--serif);
  letter-spacing: -1.6px;
  margin: 0;
}
.link-btn {
  border: none;
  background: none;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 1px;
  min-height: 44px;
  font-weight: 600;
  font-size: 13px;
}
.link-btn:hover {
  color: var(--red);
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.sidebar {
  display: grid;
  gap: 17px;
  align-self: start;
}
.card,
.board-shell {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel) url('../art/paper.svg');
  box-shadow: 0 3px 8px #6049270b;
}
.board-shell {
  padding: 0 22px 0;
  background-color: #faf5e8;
}
.side-strip {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 2px;
}
.side-strip strong {
  color: #35465b;
  font: 600 17px var(--serif);
}
.side-strip:last-child strong {
  color: #8e332d;
}
.strip-line {
  height: 1px;
  background: var(--line);
  flex: 1;
  margin: 0 4px;
  opacity: 0.72;
}
.count {
  height: 22px;
  min-width: 26px;
  padding: 1px 6px;
  text-align: center;
  font: 12px/18px var(--mono);
  background: #eee6d5;
  border: 1px solid #d7c9b3;
  border-radius: 4px;
  color: #574c3f;
}
.side-token {
  display: inline-block;
  width: 15px;
  height: 18px;
  flex: 0 0 auto;
  clip-path: polygon(50% 0, 91% 22%, 100% 100%, 0 100%, 9% 22%);
  background: #a63b33;
}
.side-token.blue {
  transform: rotate(180deg);
  background: repeating-linear-gradient(45deg, #344d6d 0 3px, #667995 3px 4px);
}
.board-surround {
  padding: 0 15px 0 21px;
}
.file-labels {
  padding: 0 4px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  text-align: center;
  color: #71614d;
  font: 11px/20px var(--mono);
}
.file-labels.bottom {
  line-height: 17px;
}
.field-frame {
  position: relative;
  border: 2px solid #57452e;
  box-shadow:
    0 0 0 2px #c2a579,
    0 0 0 3px #806747,
    0 3px 4px 2px #7e623b30;
  background: #b99a70;
}
.field {
  background: #e8d8b7 url('../art/paper.svg');
  position: relative;
}
.board-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  position: relative;
}
.board-row:before,
.board-row:after {
  content: attr(data-rank);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font: 11px var(--mono);
  color: #78664e;
  pointer-events: none;
}
.board-row:before {
  right: calc(100% + 9px);
}
.board-row:after {
  left: calc(100% + 8px);
}
.cell {
  min-width: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-right: 1px solid #907958;
  border-bottom: 1px solid #907958;
  position: relative;
  height: clamp(46px, 6.05vh, 63px);
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
}
.board-row:nth-child(odd) .cell:nth-child(even),
.board-row:nth-child(even) .cell:nth-child(odd) {
  background-color: #d8bd8833;
}
.cell:last-child {
  border-right: 0;
}
.board-row:last-child .cell {
  border-bottom: 0;
}
.cell:focus-visible {
  outline-offset: -3px;
  z-index: 2;
}
.cell.hq {
  grid-column: span 2;
  background: #d6bc85 !important;
  box-shadow:
    inset 0 0 0 2px #927147,
    inset 0 0 0 4px #e6d1a4;
}
.hq-stamp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #766039;
}
.hq-stamp svg {
  width: 32px;
  height: 30px;
}
.hq-stamp b {
  font: 700 13px var(--serif);
  letter-spacing: 1.8px;
}
.hq.occupied .hq-stamp {
  position: absolute;
  left: 7px;
  flex-direction: column;
  gap: 0;
  opacity: 0.72;
}
.hq.occupied .hq-stamp svg {
  width: 24px;
  height: 20px;
}
.hq.occupied .hq-stamp b {
  font-size: 9px;
}
.cell .koma {
  position: relative;
  z-index: 1;
  height: 92%;
  max-width: 91%;
  overflow: visible;
  filter: drop-shadow(0 1.5px 1px #53341a42);
  transition: transform 0.14s;
}
.cell.occupied:hover .koma {
  transform: translateY(-1px);
}
.cell.glow .koma {
  filter: drop-shadow(0 0 2px #fff3c2) drop-shadow(0 0 2px #c59629);
}
.cell.glow:not(.occupied),
.cell.selected {
  background-color: #f1cd72 !important;
  box-shadow: inset 0 0 0 2px #c18c24;
}
.cell.last {
  background-color: #e8bd7066 !important;
}
.cell.attack:after,
.cell.target:after {
  content: '';
  position: absolute;
  background: #457347;
  border-radius: 50%;
  width: 13px;
  height: 13px;
  z-index: 2;
}
.cell.attack:after {
  background: transparent;
  border: 3px solid #c46028;
  width: 42px;
  height: 42px;
}
.cell.guided:after {
  content: '↓';
  position: absolute;
  z-index: 3;
  left: 13%;
  top: 5%;
  font: 700 26px var(--serif);
  color: #8e2d1f;
}
.note {
  position: absolute;
  right: 1px;
  bottom: 1px;
  z-index: 4;
  font: 700 9px var(--sans);
  padding: 2px 3px;
  background: white;
  border: 1px solid var(--ink);
  border-radius: 3px;
}
.river {
  height: 25px;
  background: #8ab3bb;
  position: relative;
  border-bottom: 1px solid #826c4c;
  box-shadow: inset 0 1px 0 #5a8188;
}
.river > svg {
  height: 100%;
  width: 100%;
  display: block;
}
.bridge {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 8.6%;
  background: repeating-linear-gradient(to bottom, #a4875f 0 2px, #d9be91 2px 5px);
  border: 2px solid #705539;
  box-shadow:
    inset 3px 0 0 #d4b486,
    inset -3px 0 0 #d4b486,
    0 1px 2px #654c3a60;
}
.bridge:before,
.bridge:after {
  content: '';
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: #795c3c;
}
.bridge:before {
  left: 3px;
}
.bridge:after {
  right: 3px;
}
.b1 {
  left: 20.7%;
}
.b2 {
  left: 70.7%;
}
.lesson {
  overflow: hidden;
}
.landscape {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 2.55;
  object-position: center;
  border-bottom: 1px solid #b8a78b;
}
.card-body {
  padding: 23px 25px 22px;
}
.step-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.eyebrow {
  font: 700 10px/1.4 var(--sans);
  letter-spacing: 1.9px;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  gap: 8px;
  align-items: center;
}
.eyebrow:before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--red);
}
.steps {
  display: flex;
  gap: 4px;
}
.steps i {
  display: block;
  width: 16px;
  height: 4px;
  background: #dcd2bf;
  border-radius: 2px;
}
.steps i.done {
  background: var(--red);
}
h2,
h3,
p {
  margin: 0;
}
.card h2,
.modal h2,
.menu-panel h2 {
  font: 500 clamp(26px, 2.35vw, 35px) / 1.1 var(--serif);
  letter-spacing: -1.2px;
}
.card-body p,
.modal p {
  color: #5d5347;
  font-size: 15px;
  line-height: 1.55;
  margin-top: 10px;
}
.card-body .btnrow {
  margin-top: 21px;
}
.btnrow {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid #c7bba6;
  border-radius: 5px;
  background: #f8f4e9;
  color: var(--ink);
  font: 600 14px var(--sans);
  padding: 10px 17px;
}
.btn:hover {
  border-color: #a5906f;
  background: #eee6d5;
}
.btn:disabled {
  color: #948b7c;
  border-color: #d9d0bf;
  background: #f5f0e5;
  opacity: 0.8;
}
.btn.primary {
  background: var(--red);
  border-color: #903127;
  color: #fff6e5;
  box-shadow: inset 0 1px 0 #d18e6c44;
}
.btn.primary:hover {
  background: #852d26;
}
.btn.primary:disabled {
  background: #b8aa94;
  border-color: #b8aa94;
}
.lesson .btnrow .primary {
  flex: 1;
}
.lesson .btnrow .secondary {
  min-width: 94px;
}
.inventory {
  padding: 18px 22px 16px;
}
.section-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.section-head > svg {
  color: var(--red);
}
.section-head h3,
.side-card h3 {
  font: 600 21px/1.2 var(--serif);
  letter-spacing: -0.6px;
}
.section-head .strip-line {
  margin-left: 6px;
}
.units {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 15px;
}
.unit {
  min-height: 40px;
  background: transparent;
  border: 0;
  border-top: 1px solid #d8ceba;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  text-align: left;
  font: 500 13px var(--sans);
}
.unit:nth-child(-n + 2) {
  border-top: none;
}
.unit:hover {
  color: var(--red);
}
.unit .koma {
  width: 30px;
  height: 32px;
  flex-shrink: 0;
}
.unit small {
  margin-left: auto;
  color: #7c6b58;
  font: 11px var(--mono);
}
.side-card {
  padding: 20px 23px;
}
.info-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid #d9ceba;
  font-size: 14px;
}
.info-line:last-child {
  border: 0;
}
.compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}
.single {
  max-width: 740px;
  margin: auto;
}
.menu-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.menu-panel .landscape {
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  object-fit: cover;
  object-position: 60% center;
  min-height: 340px;
}
.menu-actions {
  padding: 30px;
}
.menu-actions h2 {
  margin-bottom: 20px;
}
.action-list {
  display: grid;
  gap: 9px;
}
.action-list .btn {
  justify-content: flex-start;
}
.action-list .btn svg:last-child:not(:first-child) {
  margin-left: auto;
}
.wide {
  width: 100%;
}
.choice {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  padding: 13px 12px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 5px;
  margin: 9px 0;
  width: 100%;
  text-align: left;
  align-items: center;
}
.choice.chosen {
  border-color: var(--red);
  background: #f0e2ce;
}
.choice b {
  display: block;
  font: 600 20px var(--serif);
}
.choice small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.4;
}
.toggle {
  min-width: 65px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.setting-row:last-child {
  border: none;
}
.setting-row b {
  font: 600 18px var(--serif);
}
.setting-row p {
  font-size: 13px;
  margin-top: 4px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #332e2477;
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 20;
}
.modal {
  position: relative;
  background: var(--panel) url('../art/paper.svg');
  border: 1px solid #ab9678;
  border-radius: 10px;
  padding: 28px;
  width: min(100%, 470px);
  max-height: 88dvh;
  overflow: auto;
  box-shadow: 0 15px 70px #2922153b;
}
.modal h2 {
  padding-right: 28px;
  margin-bottom: 17px;
}
.x {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
}
.modal .btnrow {
  margin-top: 22px;
}
.dialog-log {
  margin: 0;
  padding: 0;
  list-style: none;
}
.dialog-log li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips button {
  padding: 7px;
  min-height: 36px;
}
.handoff {
  text-align: center;
  max-width: 550px;
  margin: 65px auto;
  padding: 48px 30px;
}
.handoff > .side-token {
  height: 50px;
  width: 43px;
  margin-bottom: 20px;
}
.handoff p {
  margin: 12px 0 24px;
}
.subtle {
  color: var(--muted);
}
.chip {
  font: 600 11px var(--mono);
  background: #ebe2d0;
  border-radius: 3px;
  padding: 3px 7px;
}
.feedback {
  font-size: 13px;
  color: var(--red);
  line-height: 1.5;
  margin: 10px 0;
}
.lobby input {
  padding: 10px;
  border: 1px solid var(--line);
  background: #fffaf0;
  width: 100%;
  border-radius: 4px;
  margin: 9px 0;
}
.lobby p {
  overflow-wrap: anywhere;
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  border-radius: 5px;
  background: #332c23;
  color: #fff7e7;
  padding: 10px 17px;
  font-size: 14px;
  box-shadow: 0 4px 20px #392e2240;
  z-index: 30;
  transition:
    opacity 0.15s,
    transform 0.15s;
  max-width: min(94vw, 560px);
  text-align: center;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.replay-controls {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.replay-controls .btn {
  padding: 9px;
}
.small-body {
  padding: 18px 22px;
}
.battle-animate {
  animation: arrive 0.22s ease-out;
}
@keyframes arrive {
  from {
    opacity: 0.3;
    transform: scale(0.83);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 1600px) {
  main {
    padding-top: 32px;
  }
  .cell {
    height: 65px;
  }
}
@media (max-width: 900px) {
  .header-inner {
    padding: 0 25px;
  }
  .layout {
    gap: 18px;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
  main {
    padding: 22px;
  }
  .board-shell {
    padding: 0 10px;
  }
  .card-body {
    padding: 19px;
  }
  .inventory {
    padding: 15px;
  }
  .nav {
    gap: 12px;
  }
  .cell {
    height: clamp(44px, 6.3vh, 59px);
  }
  .unit {
    font-size: 12px;
  }
  .steps i {
    width: 12px;
  }
  .board-surround {
    padding: 0 16px;
  }
  .page-title {
    margin-bottom: 18px;
  }
}
@media (max-width: 690px) {
  .header-inner {
    height: 65px;
    padding: 0 15px;
    gap: 8px;
  }
  .brand {
    gap: 8px;
  }
  .brand > svg {
    width: 36px;
    height: 36px;
  }
  .brand strong {
    font-size: 21px;
  }
  .brand small {
    font-size: 7.5px;
    letter-spacing: 1.1px;
    margin-top: 3px;
  }
  .nav {
    gap: 0;
  }
  .nav button {
    padding: 0;
    width: 36px;
  }
  .nav button span {
    display: none;
  }
  .nav .sound {
    margin: 0;
    padding-left: 3px;
    border: 0;
  }
  .nav svg {
    width: 18px;
  }
  .header {
    border-top-width: 3px;
  }
  main {
    padding: 18px 13px 28px;
  }
  .page-title h1 {
    font-size: 33px;
  }
  .title-rule {
    height: 28px;
    width: 4px;
  }
  .title-group {
    gap: 10px;
  }
  .page-title {
    margin-bottom: 14px;
  }
  .layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .board-shell,
  .sidebar {
    width: 100%;
  }
  .board-shell {
    padding: 0 12px;
  }
  .board-surround {
    padding: 0 14px;
  }
  .side-strip {
    height: 32px;
  }
  .side-strip strong {
    font-size: 15px;
  }
  .cell {
    height: clamp(44px, 10.7vw, 56px);
  }
  .river {
    height: 20px;
  }
  .file-labels,
  .file-labels.bottom {
    font-size: 10px;
    line-height: 16px;
  }
  .cell .koma {
    height: 95%;
  }
  .sidebar {
    gap: 12px;
  }
  .landscape {
    max-height: 150px;
  }
  .card-body {
    padding: 18px 20px;
  }
  .lesson .landscape {
    aspect-ratio: 3.6;
  }
  .step-top {
    margin-bottom: 9px;
  }
  .card h2 {
    font-size: 29px;
  }
  .inventory {
    padding: 17px 20px;
  }
  .unit {
    min-height: 44px;
    font-size: 14px;
  }
  .menu-panel {
    grid-template-columns: 1fr;
  }
  .menu-panel .landscape {
    min-height: 0;
    height: 145px;
    object-position: center;
  }
  .menu-actions {
    padding: 23px;
  }
  .single {
    width: 100%;
  }
  .handoff {
    margin: 25px auto;
  }
  .count {
    font-size: 11px;
    height: 19px;
    line-height: 16px;
  }
  .nav button[data-act='how'] {
    display: none;
  }
  .hq.occupied .hq-stamp {
    left: 3px;
  }
  .hq.occupied .hq-stamp svg {
    width: 16px;
  }
  .side-token {
    width: 12px;
    height: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.landscape {
  height: auto;
}
.cell.glow.occupied .koma {
  filter: drop-shadow(0 0 1.6px #ffd45b) drop-shadow(0 0 2px #dbad37);
}
.lesson .landscape {
  aspect-ratio: 2.28;
}
@media (max-width: 690px) {
  .layout:has([data-stage='tutorial']) {
    display: flex;
  }
  .layout:has([data-stage='tutorial']) .sidebar {
    display: contents;
  }
  .layout:has([data-stage='tutorial']) .lesson {
    order: -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 75px;
    width: 100%;
  }
  .layout:has([data-stage='tutorial']) .lesson .landscape {
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    height: 100%;
    max-height: none;
    width: 75px;
    min-height: 0;
    aspect-ratio: auto;
    object-position: 75% center;
    border: 0;
    border-left: 1px solid var(--line);
  }
  .layout:has([data-stage='tutorial']) .lesson .card-body {
    grid-column: 1;
    grid-row: 1;
    padding: 13px 14px;
  }
  .layout:has([data-stage='tutorial']) .lesson h2 {
    font-size: 23px;
  }
  .layout:has([data-stage='tutorial']) .lesson .step-top {
    margin-bottom: 6px;
  }
  .layout:has([data-stage='tutorial']) .lesson p {
    font-size: 13px;
    line-height: 1.4;
    margin-top: 5px;
  }
  .layout:has([data-stage='tutorial']) .lesson .btnrow {
    margin-top: 10px;
  }
  .layout:has([data-stage='tutorial']) .lesson .btn {
    padding: 6px 9px;
  }
  .layout:has([data-stage='tutorial']) .inventory {
    width: 100%;
  }
}
.guide-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}
.field:has(.guide-overlay) .guided:after {
  display: none;
}
.cell .koma text[text-anchor] {
  font-size: 15.6px;
}
.cell .koma text[text-anchor]:last-child {
  font-size: 15px;
}
@media (max-width: 690px) {
  .nav button {
    width: 44px;
    min-height: 44px;
  }
  .cell .koma text[text-anchor] {
    font-size: 17.5px;
  }
  .cell .koma text[text-anchor]:last-child {
    font-size: 16.4px;
  }
  .chips button {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hq.glow:not(.occupied) {
    animation: hq-pulse 1.8s ease-in-out infinite;
  }
  @keyframes hq-pulse {
    50% {
      box-shadow:
        inset 0 0 0 3px #ba8724,
        inset 0 0 17px #f5d66a;
    }
  }
}
.moving-piece {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
}
.learning-pair {
  margin-top: 10px;
  padding: 9px 0;
  display: flex;
  gap: 5px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.learning-pair > .koma {
  width: 34px;
  height: 36px;
}
.learning-pair span {
  margin-left: 6px;
  color: var(--muted);
  font-size: 13px;
}
:root {
  --paper: #f4ebdd;
  --ink: #2b2118;
  --blue: #2b4c8c;
}
.field {
  background-color: #e8d9bc;
}
.river {
  background-color: #7fb3c8;
}
.cell.hq {
  background-color: #d9c08a !important;
}
.cell .koma text[text-anchor],
.cell .koma text[text-anchor]:last-child {
  font-size: 17.4px;
}
@media (max-width: 690px) {
  .cell .koma text[text-anchor],
  .cell .koma text[text-anchor]:last-child {
    font-size: 20px;
  }
}
