:root {
  --paper: #f4efe3;
  --sheet: #faf7ed;
  --ink: #2e392e;
  --muted: #6e705c;
  --line: #cfc5ac;
  --pine: #324c39;
  --green: #3a563f;
  --gold: #b98b2e;
  --blue: #1f5fad;
  --orange: #d9541e;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='116' height='116' viewBox='0 0 116 116'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%2371572f' opacity='.045' filter='url(%23n)' d='M0 0h116v116H0z'/%3E%3C/svg%3E");
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: transparent;
  min-height: 44px;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #ac7c24;
  outline-offset: 3px;
}
button:not(:disabled) {
  touch-action: manipulation;
}
.icon {
  display: inline-block;
  vertical-align: middle;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#mast {
  border-bottom: 1px solid #a89f88;
  background: #f7f3e9e8;
}
.mast-inner {
  max-width: 1240px;
  margin: auto;
  min-height: 89px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 34px;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  padding: 0;
}
.brand img {
  width: 59px;
  height: 59px;
}
.brand strong {
  font-family: var(--serif);
  display: block;
  font-size: 41px;
  letter-spacing: -2.4px;
  font-weight: 600;
  line-height: 0.97;
}
.brand small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.035em;
  color: #565d4d;
}
nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-link,
.plain,
.menu-btn,
.secondary,
.primary,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
}
.icon-btn {
  min-width: 44px;
  padding: 0;
  border-radius: 50%;
}
.menu-btn,
.secondary {
  border: 1px solid #a79f87;
  background: #faf6eb;
  border-radius: 6px;
  padding: 0 17px;
}
.menu-btn {
  margin-left: 7px;
}
.nav-link {
  padding: 0 12px;
}
.primary {
  color: #fffaf0;
  background: var(--pine);
  border: 1px solid #2d4533;
  border-radius: 6px;
  padding: 0 19px;
  box-shadow: 0 2px 0 #20332420;
}
.primary:disabled {
  background: #727d6b;
  color: #faf6ed;
}
.plain {
  padding: 0 5px;
  color: #57624f;
}
.plain:disabled {
  opacity: 0.4;
}
.secondary:disabled {
  opacity: 0.45;
}
nav button:hover,
.plain:not(:disabled):hover,
.secondary:not(:disabled):hover,
.option:hover {
  background: #e9e5d7;
}
.primary:not(:disabled):hover {
  background: #253e2d;
}
.brand:hover {
  opacity: 0.88;
}
#main {
  margin: auto;
  max-width: 1230px;
  padding: 36px 36px 34px;
}
.play-layout {
  --board-size: min(560px, calc((100svh - 234px) * 0.77778));
  display: grid;
  grid-template-columns: minmax(380px, var(--board-size)) minmax(310px, 380px);
  align-items: start;
  justify-content: center;
  gap: clamp(32px, 5.1vw, 82px);
}
.arena {
  min-width: 0;
}
.players {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 8px 13px 26px;
}
.player {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.side-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--blue);
  border: 1px solid #133f70;
  flex: none;
}
.side-dot.side1 {
  border-radius: 3px;
  background: var(--orange);
  border-color: #943c1c;
}
.player-rule {
  border-top: 1px solid #afa68d;
  flex: 1;
}
.board-frame {
  padding: 12px 12px 6px 3px;
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr);
  grid-template-rows: auto 19px;
  background: #e7dcc0;
  border: 1px solid #897956;
  outline: 1px solid #c3b48e;
  outline-offset: -4px;
  border-radius: 6px;
  box-shadow:
    1px 4px 0 #bdae8d60,
    0 13px 27px -22px #443921;
}
.board-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(9, minmax(0, 1fr));
  aspect-ratio: 7/9;
  background: #9c8c68;
  border: 1px solid #8a7a55;
  isolation: isolate;
}
.rank-coords,
.file-coords {
  display: grid;
  align-items: center;
  justify-items: center;
  color: #706548;
  font: 600 10px/1 var(--sans);
}
.rank-coords {
  grid-template-rows: repeat(9, 1fr);
}
.file-coords {
  grid-column: 2;
  grid-template-columns: repeat(7, 1fr);
  align-self: stretch;
}
.cell {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  min-height: 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset -0.7px -0.7px #998b69;
  background-color: #e3d6ae;
  touch-action: none !important;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.cell:nth-child(2n) {
  background-color: #e7dbb8;
}
.cell.grass .ground {
  opacity: 0.43;
}
.cell.water {
  background-color: #91b9ca;
}
.cell.water .ground {
  opacity: 0.68;
}
.cell.water:before {
  content: "";
  position: absolute;
  inset: 0;
  border: 0 solid #5e8f9e;
  pointer-events: none;
}
.cell.water.north:before {
  border-top-width: 3px;
}
.cell.water.south:before {
  border-bottom-width: 3px;
}
.cell.water.east:before {
  border-right-width: 3px;
}
.cell.water.west:before {
  border-left-width: 3px;
}
.cell.traps {
  background-color: #decca1;
}
.cell.den {
  background-color: #cfb88f;
}
.ground {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cell:focus-visible {
  z-index: 4;
  outline-offset: -4px;
}
.cell.last {
  background-image: linear-gradient(#fff8aa44, #fff8aa44);
}
.cell.lesson-glow:after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1.5px dashed #9a761d;
  border-radius: 4px;
  pointer-events: none;
}
.cell.lesson-glow:has(.side0) .rank {
  box-shadow: 0 0 0 2px #f5c741;
}
.cell.selected {
  outline: 3px solid #f2c230;
  outline-offset: -4px;
  z-index: 2;
}
.cell.selected:after {
  display: none;
}
.occupant {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.piece {
  display: grid;
  place-items: center;
  position: relative;
  width: 82%;
  aspect-ratio: 1;
  background: var(--blue);
  border: 2px solid #244560;
  border-radius: 50%;
  color: #263c32;
  isolation: isolate;
}
.piece:before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid #fff9dc86;
  border-radius: inherit;
}
.piece.side1 {
  background: var(--orange);
  border-color: #804027;
  border-radius: 24%;
}
.turn-piece .piece {
  box-shadow: 0 2px 0 #00000040;
}
.piece .animal {
  width: 87%;
  height: 87%;
  margin-top: -4%;
  margin-left: -3%;
  filter: drop-shadow(0 1px 0 #19211555);
}
.animal {
  display: block;
}
.piece .rank {
  position: absolute;
  right: -5%;
  bottom: -4%;
  width: 40%;
  height: 40%;
  line-height: 1;
  display: grid;
  place-items: center;
  color: white;
  font: 750 clamp(13px, 1.45vw, 24px) / 1 var(--sans);
  background: #174c8d;
  border: 1.5px solid #f7f2e0;
  border-radius: 50%;
  text-shadow: 0 1px 1px #1a1a1a;
}
.side1 .rank {
  background: #9c3b15;
}
.piece.facing {
  rotate: 180deg;
}
.piece.weakened {
  outline: 2px solid #a53024;
}
.piece.weakened .rank {
  background: #862a1c;
}
.cell.move-target:after {
  content: "";
  position: absolute;
  width: 22%;
  aspect-ratio: 1;
  border: 1.5px solid #486646;
  border-radius: 100%;
  background: #487340ba;
  inset: auto;
}
.cell.capture-target:after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 4px dashed #ae392c;
  border-radius: 30%;
  z-index: 2;
}
.cell.leap-target:after {
  content: "↗";
  background: var(--pine);
  color: #fff;
  display: grid;
  place-items: center;
  width: 37%;
  font-size: clamp(14px, 2vw, 24px);
}
.dragging {
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 50;
  opacity: 0.9;
}
.drag-origin .occupant {
  opacity: 0.28;
}
.captured-ghost {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.hint-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 7;
}
.terrain-key {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  color: #6c6b57;
  font-size: 12px;
}
.terrain-key span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.terrain-key svg {
  width: 16px;
}
#rail {
  min-width: 0;
  display: grid;
  gap: 18px;
}
.lesson-card,
.game-card,
.lobby {
  background: var(--sheet);
  border: 1px solid #aaa48c;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 3px 0 #bcaf8d28;
}
.engraving {
  width: 100%;
  aspect-ratio: 3/1;
  background: #e4d9b8 url("../assets/jungle.svg") center/cover no-repeat;
  border-bottom: 1px solid #a79d7e;
}
.lesson-body,
.game-body {
  padding: 22px 25px 20px;
}
.lesson-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--pine);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
.lesson-meta > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.meter {
  display: flex;
  gap: 3px;
}
.meter i {
  width: 12px;
  height: 4px;
  border-radius: 4px;
  background: #d8d3bd;
}
.meter i.filled {
  background: var(--pine);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
}
h1 {
  font-size: clamp(33px, 3vw, 46px);
  line-height: 1.1;
  letter-spacing: -1.6px;
}
.lesson-body h1 {
  margin: 15px 0 10px;
}
.lesson-body p,
.dialog-body p,
.lobby p {
  font-size: 15.5px;
  line-height: 1.53;
  color: #454c40;
}
.lesson-actions,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.lesson-actions {
  border-top: 1px solid var(--line);
  margin-top: 19px;
  padding-top: 14px;
}
.forward {
  flex-direction: row-reverse;
  min-width: 94px;
}
.rank-panel {
  border: 1px solid #bcb59d;
  background: #f5f1e5;
  border-radius: 8px;
  padding: 18px 20px 14px;
}
.rank-panel h2 {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 24px;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.rank-panel h2 svg {
  color: #65725c;
  width: 19px;
}
.rank-list {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(4, 1fr);
  grid-template-columns: 1fr 1fr;
  gap: 2px 24px;
}
.rank-list > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px dotted #cbc3aa;
  padding: 5px 0;
  font-size: 13px;
}
.rank-list > div:nth-child(4n) {
  border-bottom: 0;
}
.rank-list .animal {
  width: 25px;
  height: 25px;
  color: #465340;
}
.rank-list b {
  margin-left: auto;
  font-family: var(--serif);
  font-size: 16px;
  color: #62684f;
}
.skip-wrap {
  display: flex;
  justify-content: center;
  margin-top: -7px;
}
.skip-wrap .plain {
  font-size: 12px;
  flex-direction: row-reverse;
}
.menu-layout {
  max-width: 920px;
  margin: clamp(4px, 5vh, 54px) auto;
  border: 1px solid #a8a184;
  background: var(--sheet);
  border-radius: 10px;
  overflow: hidden;
}
.menu-art .engraving {
  aspect-ratio: 4/1;
}
.menu-content {
  padding: 22px 32px;
  text-align: center;
}
.menu-content h1 {
  font-size: 56px;
}
.subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-top: 5px;
}
.choices {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 14px;
}
.mode-choice {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--pine);
  color: var(--sheet);
  border-radius: 6px;
  padding: 10px 14px;
  font-weight: 600;
}
.mode-choice:hover {
  background: #233d2c;
}
.menu-foot {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.lobby {
  max-width: 490px;
  margin: 30px auto;
}
.lobby #lobby-body {
  padding: 24px;
}
.lobby h1 {
  margin-bottom: 16px;
}
.lobby p,
.lobby label {
  display: block;
  margin-bottom: 12px;
}
.lobby input {
  display: block;
  width: 100%;
  margin: 8px 0 16px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.lobby .plain {
  margin-left: 8px;
}
.game-body h1 {
  font-size: 31px;
  margin-bottom: 15px;
}
.turn {
  display: flex;
  gap: 9px;
  align-items: center;
  font-weight: 650;
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 5px;
}
.turn-0 {
  background: #dce4e7;
  color: #194571;
}
.turn-1 {
  background: #f1dfcf;
  color: #813c20;
}
.quiet {
  font-size: 12px;
  margin: 8px 0 18px;
  color: var(--muted);
}
.game-body h3,
summary {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.4px;
}
.taken {
  display: flex;
  min-height: 32px;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  margin: 5px 0 12px;
  color: var(--muted);
}
.mini {
  border-radius: 50%;
  background: #b9d1e9;
  padding: 2px;
}
.mini.side1 {
  border-radius: 5px;
  background: #e8ba9d;
}
.mini svg {
  width: 23px;
  height: 23px;
}
.game-card details {
  border-top: 1px solid var(--line);
  padding: 2px 0;
}
.game-card summary {
  cursor: pointer;
  min-height: 44px;
  padding: 8px 0;
}
.history {
  max-height: 105px;
  overflow: auto;
  list-style: none;
  margin: 0;
  padding: 0;
}
.history li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dotted var(--line);
}
.history small {
  min-width: 22px;
  color: var(--muted);
}
.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 12px;
}
#net-status p {
  font-size: 14px;
  margin: 10px 0;
}
dialog {
  position: fixed;
  max-height: 86svh;
  width: min(440px, calc(100vw - 30px));
  border: 1px solid #9f987c;
  border-radius: 10px;
  padding: 0;
  background: var(--sheet);
  color: var(--ink);
  box-shadow: 0 18px 80px #20281d38;
}
dialog::backdrop {
  background: #29302364;
}
dialog.wide {
  width: min(640px, calc(100vw - 30px));
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 21px 12px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  font-size: 29px;
  letter-spacing: -1px;
}
.dialog-body {
  padding: 16px 23px;
}
.dialog-body:empty {
  display: none;
}
.dialog-body p + p,
.dialog-body section + section {
  margin-top: 15px;
}
.dialog-body h3 {
  font-size: 21px;
  margin-bottom: 4px;
}
.dialog-actions {
  padding: 15px 21px;
  border-top: 1px solid var(--line);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 8px 0 18px;
}
legend {
  padding: 0;
  margin-bottom: 8px;
  font-weight: 650;
}
.segmented {
  display: flex;
  gap: 5px;
}
.option {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 14px;
}
.option[aria-pressed="true"] {
  background: var(--pine);
  color: var(--sheet);
  border-color: var(--pine);
}
.setting-line {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3px 0;
  padding: 8px 0;
}
.setting-line > span + span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.switch {
  width: 32px;
  height: 18px;
  border-radius: 14px;
  background: #bdb89e;
  position: relative;
}
.switch:before {
  content: "";
  position: absolute;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  background: white;
  width: 12px;
  height: 12px;
}
.setting-line[aria-checked="true"] .switch {
  background: var(--pine);
}
.setting-line[aria-checked="true"] .switch:before {
  left: 17px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  margin: 8px 0;
}
td,
th {
  border: 1px solid var(--line);
  text-align: center;
  padding: 4px;
}
th {
  background: #e9e4d2;
}
#toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(490px, 92vw);
  width: max-content;
  background: #344c3a;
  color: #fff9ec;
  border-radius: 6px;
  padding: 11px 16px;
  z-index: 20;
  font-size: 14px;
  box-shadow: 0 3px 16px #252d2133;
  visibility: hidden;
  pointer-events: none;
}
#toast.visible {
  visibility: visible;
}
@media (min-width: 761px) and (max-height: 780px) {
  #main {
    padding-top: 21px;
  }
  .mast-inner {
    min-height: 74px;
  }
  .brand img {
    width: 50px;
    height: 50px;
  }
  .play-layout {
    --board-size: min(510px, calc((100svh - 170px) * 0.77778));
  }
  .lesson-body,
  .game-body {
    padding: 16px 21px;
  }
  .rank-panel {
    padding: 12px 18px;
  }
  .rank-list > div {
    padding: 2px 0;
  }
  #rail {
    gap: 12px;
  }
}
@media (max-width: 850px) and (min-width: 761px) {
  #main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .play-layout {
    gap: 20px;
    grid-template-columns: minmax(356px, 1.1fr) minmax(315px, 1fr);
  }
}
@media (max-width: 760px) {
  .mast-inner {
    padding: 8px 12px;
    min-height: 64px;
  }
  .brand {
    gap: 8px;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
  .brand strong {
    font-size: 29px;
    letter-spacing: -1.4px;
  }
  .brand small {
    font-size: 8px;
    margin-top: 3px;
    letter-spacing: 0;
  }
  nav {
    gap: 0;
  }
  nav .nav-link {
    font-size: 0;
    width: 44px;
    padding: 0;
    gap: 0;
  }
  nav .menu-btn {
    padding: 0;
    width: 44px;
    margin: 0;
    border: 0;
    background: none;
    gap: 0;
  }
  nav .menu-btn span {
    display: none;
  }
  nav .icon-btn[data-action="sound"] {
    display: none;
  }
  #main {
    padding: 12px 10px 22px;
  }
  .play-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 480px;
    margin: auto;
  }
  .arena,
  #rail {
    width: 100%;
  }
  .players {
    padding: 1px 6px 6px 20px;
    gap: 9px;
  }
  .player {
    font-size: 12px;
  }
  .side-dot {
    width: 9px;
    height: 9px;
  }
  .board-frame {
    grid-template-columns: 15px minmax(0, 1fr);
    grid-template-rows: auto 16px;
    padding: 7px 7px 3px 0;
  }
  .terrain-key {
    margin-top: 8px;
    gap: 20px;
    font-size: 11px;
  }
  .cell .rank {
    font-size: 15px;
  }
  #rail {
    gap: 12px;
  }
  .lesson-body,
  .game-body {
    padding: 15px 16px;
  }
  .lesson-body h1 {
    font-size: 31px;
    margin: 8px 0;
  }
  .lesson-actions {
    padding-top: 6px;
    margin-top: 8px;
  }
  .rank-panel {
    padding: 14px 18px;
  }
  .skip-wrap {
    margin: 0;
  }
  .play-layout:has(.lesson-card) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .play-layout:has(.lesson-card) #rail {
    display: contents;
  }
  .lesson-card {
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr minmax(90px, 27%);
    position: relative;
  }
  .lesson-card .engraving {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: auto;
    align-self: stretch;
    background-position: 68% center;
    border: 0;
    border-left: 1px solid var(--line);
  }
  .lesson-card .lesson-body {
    grid-column: 1;
    grid-row: 1;
    padding: 12px 13px 8px;
  }
  .lesson-body .lesson-meta {
    font-size: 10px;
  }
  .lesson-body .meter {
    gap: 2px;
  }
  .meter i {
    width: 6px;
    height: 3px;
  }
  .lesson-meta svg {
    width: 12px;
    height: 12px;
  }
  .lesson-body h1 {
    font-size: 25px;
    margin: 5px 0;
  }
  .lesson-body p {
    font-size: 13px;
    line-height: 1.4;
  }
  .lesson-actions {
    border: 0;
    padding: 0;
    margin-top: 4px;
  }
  .lesson-actions .plain,
  .lesson-actions .primary {
    font-size: 12px;
  }
  .lesson-actions .primary {
    min-width: 71px;
    padding: 0 10px;
  }
  .lesson-actions .icon {
    width: 15px;
  }
  .play-layout:has(.lesson-card) .arena {
    grid-row: 2;
  }
  .skip-wrap {
    grid-row: 3;
    justify-content: flex-end;
    margin-top: -10px;
  }
  .rank-panel {
    grid-row: 4;
  }
  .menu-layout {
    margin: 8px auto;
  }
  .menu-art .engraving {
    aspect-ratio: 2/1;
  }
  .menu-content {
    padding: 23px 16px;
  }
  .choices {
    flex-direction: column;
    margin: 17px 0 10px;
  }
  .menu-content h1 {
    font-size: 45px;
  }
  .mode-choice {
    min-height: 47px;
  }
  .game-card .engraving {
    display: none;
  }
  .game-body {
    padding: 14px;
  }
  .game-body h1 {
    font-size: 27px;
  }
  .dialog-body {
    padding: 14px 16px;
  }
  .lobby {
    margin: 6px auto;
  }
  .brand:focus-visible,
  .cell:focus-visible {
    outline-offset: -2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
.legend-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  padding: 0 4px;
}
.legend-link:hover {
  text-decoration: underline;
}
.terrain-key {
  margin-top: 4px;
}
#board-turn {
  margin: 0 0 9px;
}
#board-turn .turn {
  padding: 6px 12px;
}
#board-turn .quiet {
  margin: 4px 0 0 2px;
}
.cell.leap-target:after {
  content: attr(data-arrow);
}
