:root {
  --navy: #071422;
  --panel: #0d2131;
  --ink: #eee8d9;
  --muted: #9bb2bf;
  --gold: #e6c37a;
  --brass: #c8923a;
  --cyan: #6ee0e8;
  --bg: var(--navy);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: Barlow, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 9px 12px;
  border-radius: 6px;
  background: #e6c37a;
  color: #071422;
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(720px, 94vw);
  margin: 18px auto 0;
  padding: 13px 15px;
  border: 1px solid rgba(200, 146, 58, 0.68);
  border-radius: 10px;
  background: rgba(8, 18, 27, 0.9);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.03);
}

.brand,
.top-nav {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.brand {
  flex: 0 0 auto;
  color: #e6c37a;
  font-size: 19px;
  letter-spacing: 0.14em;
  text-decoration: none;
  white-space: nowrap;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 15px;
  font-size: 14px;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.site-nav a:focus-visible,
.brand:focus-visible {
  color: #6ee0e8;
}

.top-nav a:hover {
  border-color: rgba(110, 224, 232, 0.38);
  background: rgba(110, 224, 232, 0.08);
}

.top-nav a[aria-current="page"] {
  border-color: #e6c37a;
  background: #c8923a;
  color: #071422;
}

.top-nav a:focus-visible,
.site-nav a:focus-visible,
.brand:focus-visible {
  outline: 2px solid #6ee0e8;
  outline-offset: 4px;
}

.kicker,
h1,
.note {
  text-shadow: 0 2px 10px rgba(3, 10, 16, 0.72);
}

.wrap {
  width: min(720px, 94vw);
  margin: 0 auto;
  padding: 36px 0 28px;
  text-align: center;
}

.kicker {
  margin: 0 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #6ee0e8;
  font-size: 13px;
}

.mark {
  display: block;
  width: min(420px, 92%);
  height: auto;
  object-fit: contain;
  margin: 0 auto 8px;
}

h1 {
  margin: 0 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e6c37a;
  font-size: 32px;
}

.note {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.4;
}

.welcome {
  margin: 0 0 28px;
  overflow: hidden;
  border: 0;
  background: transparent;
}

.welcome[hidden],
.board-ad[hidden] {
  display: none;
}

.welcome-kicker {
  margin: 0;
  padding: 8px 10px 16px;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e6c37a;
  font-size: 13px;
  font-weight: 800;
}

.welcome-frame {
  position: relative;
  overflow: hidden;
  padding: 6px 0 12px;
}

.welcome-track {
  display: flex;
  width: max-content;
  gap: 2.8em;
  will-change: transform;
}

.welcome-group {
  display: flex;
  flex: none;
  gap: 2.8em;
}

.welcome.is-scroll .welcome-track {
  animation: welcome-scroll var(--marquee-duration, 36s) linear infinite;
}

.welcome-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  user-select: none;
}

.welcome-medal {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(3, 10, 16, 0.68));
}

.welcome-empty {
  width: min(680px, 94vw);
  padding: 0 16px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

@keyframes welcome-scroll {
  to {
    transform: translateX(calc(-1 * var(--loop-distance, 50%)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome.is-scroll .welcome-track {
    animation: none;
    width: auto;
    will-change: auto;
  }

  .welcome.is-scroll .welcome-group {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
    padding: 0 12px;
  }

  .welcome.is-scroll .welcome-group[aria-hidden="true"] {
    display: none;
  }
}

.board-ad {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 24px;
  padding-top: 20px;
  color: var(--muted);
  text-align: center;
}

.board-ad-after {
  margin: 28px 0 8px;
}

.board-ad::before {
  content: "Advertisement";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.board-ad-slot {
  display: grid;
  width: min(728px, 100%);
  aspect-ratio: 728 / 90;
  height: auto;
  min-height: 0;
  place-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(106, 82, 40, 0.72);
  border-radius: 8px;
  background: #071422;
}

.board-ad-creative {
  display: block;
  width: 100%;
  height: 100%;
  background: #071422;
}

.board-ad-creative img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.board-ad-creative:focus-visible {
  outline: 2px solid #6ee0e8;
  outline-offset: -2px;
}

.board-ad.is-fake .board-ad-slot {
  background: #04101a;
}

.board-ad.is-adsense .board-ad-slot {
  border-style: dashed;
  background: rgba(12, 16, 20, 0.38);
}

.board-ad-promo {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 8px 18px 8px 43%;
  overflow: hidden;
  background: url("assets/snapsub-promo-wide.webp?v=1") center / 100% 100% no-repeat;
  color: var(--ink);
  text-decoration: none;
}

.board-ad-copy {
  min-width: 0;
  line-height: 0.95;
  text-align: center;
  text-shadow: 0 2px 4px #000;
}

.board-ad-copy small,
.board-ad-copy strong,
.board-ad-copy em {
  display: block;
  white-space: nowrap;
}

.board-ad-copy small {
  margin-bottom: 3px;
  color: var(--cyan);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.board-ad-copy strong {
  font-family: "Barlow Condensed", sans-serif;
  color: #f2ead8;
  font-size: 30px;
  letter-spacing: 0.05em;
}

.board-ad-copy em {
  margin-top: 4px;
  color: #c9dce2;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.board-ad-cta {
  padding: 10px 13px;
  border: 1px solid #f0c35e;
  border-radius: 6px;
  background: linear-gradient(#d3942f, #704211);
  color: #fff8df;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.55);
}

.board-ad-promo:hover .board-ad-cta,
.board-ad-promo:focus-visible .board-ad-cta {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

#board-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #14110e;
  font-family: "Barlow Condensed", sans-serif;
  overflow: visible;
}

#board-table th,
#board-table td {
  border: 1px solid #6a5228;
  padding: 8px 4px;
  text-align: center;
  vertical-align: top;
}

#board-table td {
  position: relative;
  padding: 22px 6px 10px;
}

#board-table th {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e6c37a;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

#board-table td {
  font-size: 13px;
  display: table-cell;
}

#board-table .rank,
#board-table .icon,
#board-table .name,
#board-table .score {
  display: block;
  margin: 0 auto;
}

#board-table td.is-gold {
  overflow: visible;
  background: rgba(200, 146, 58, 0.07);
}

#board-table .rank {
  position: absolute;
  top: 3px;
  left: 5px;
  margin: 0;
  color: #6ee0e8;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

#board-table .icon,
.welcome-item .icon {
  --icon: 28px;
  width: var(--icon);
  height: var(--icon);
  border-radius: 50%;
  background-image: url("assets/name-icons.png?v=2");
  background-repeat: no-repeat;
  background-size: calc(var(--icon) * 8) calc(var(--icon) * 4);
  box-shadow: inset 0 0 0 1px rgba(232, 226, 212, 0.12);
}

#board-table .icon {
  margin: 0 auto 4px;
}

.welcome-item .icon {
  flex: 0 0 auto;
  margin: 0;
}

#board-table .name {
  color: var(--ink);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  word-break: break-word;
}

#board-table .score {
  color: #e6c37a;
  margin-top: 4px;
  font-size: 20px;
  line-height: 1;
}

.board-medals {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  max-width: 100%;
  margin: 3px auto 0;
  overflow: hidden;
}

.board-medal {
  display: block;
  flex: 0 1 28px;
  width: clamp(18px, 2vw, 28px);
  height: clamp(18px, 2vw, 28px);
  min-width: 0;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(3, 10, 16, 0.68));
}

#search {
  text-align: left;
  margin: 0 0 18px;
}

#search label {
  display: block;
  margin: 0 0 6px;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
}

.row {
  display: flex;
  gap: 8px;
}

#search .row {
  gap: 12px;
}

#search button {
  min-width: 84px;
}

#q {
  flex: 1;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #6a5228;
  border-radius: 8px;
  background: #0c1014;
  color: var(--ink);
  font-size: 16px;
}

button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #6a5228;
  border-radius: 8px;
  background: #2a2218;
  color: #e6c37a;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#board-table {
  margin-top: 8px;
}

.page {
  text-align: left;
}

.page h2 {
  margin: 28px 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e6c37a;
  font-size: 22px;
  text-shadow: 0 2px 10px rgba(3, 10, 16, 0.72);
}

.page h2:first-of-type {
  margin-top: 8px;
}

.page p,
.page li {
  color: var(--ink);
  line-height: 1.55;
}

.page p {
  margin: 0 0 12px;
}

.page ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
}

.page a {
  color: #6ee0e8;
}

.field-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 14px 0 24px;
}

.sub-guide {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(220px, 1fr);
  align-items: center;
  overflow: hidden;
  margin: 14px 0 24px;
  border: 1px solid #6a5228;
  border-radius: 12px;
  background: rgba(12, 16, 20, 0.9);
}

.sub-visual {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(ellipse at center, rgba(56, 142, 157, 0.34), transparent 66%),
    linear-gradient(180deg, rgba(8, 36, 52, 0.9), rgba(5, 22, 34, 0.96));
}

.sub-visual img {
  display: block;
  width: min(100%, 390px);
  height: auto;
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.55));
}

.sub-guide > div:last-child {
  padding: 20px;
}

.sub-guide h3 {
  margin: 0 0 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 26px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e6c37a;
}

.guide-card {
  overflow: hidden;
  border: 1px solid #6a5228;
  border-radius: 12px;
  background: rgba(12, 16, 20, 0.9);
  box-shadow: 0 8px 24px rgba(3, 10, 16, 0.3);
}

.guide-visual {
  position: relative;
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  background:
    radial-gradient(circle at center, rgba(40, 103, 118, 0.3), transparent 62%),
    linear-gradient(180deg, rgba(8, 36, 52, 0.9), rgba(5, 22, 34, 0.96));
  border-bottom: 1px solid rgba(106, 82, 40, 0.65);
}

.guide-visual img {
  display: block;
  width: auto;
  max-width: 110px;
  height: 116px;
  object-fit: contain;
  filter: drop-shadow(0 7px 8px rgba(0, 0, 0, 0.52));
}

.guide-visual.guide-pair img:first-of-type {
  width: 96px;
  height: 96px;
}

.guide-visual.guide-pair img:last-of-type {
  width: 34px;
  height: 118px;
}

.guide-visual img.guide-wide {
  width: min(180px, 90%);
  max-width: 180px;
  height: 94px;
}

.guide-visual.guide-cave {
  display: block;
  min-height: 174px;
  padding: 0;
}

.guide-visual.guide-cave img.cave-surface {
  position: absolute;
  left: 0;
  width: 100%;
  max-width: none;
  height: 86px;
  object-fit: fill;
  filter: drop-shadow(0 5px 6px rgba(0, 0, 0, 0.48));
}

.guide-visual.guide-cave img.is-roof {
  top: 0;
}

.guide-visual.guide-cave img.is-floor {
  bottom: 0;
  transform: scaleY(-1);
}

.warning-light {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(232, 226, 212, 0.75);
  border-radius: 50%;
}

.warning-light.is-red {
  background: #ff3b2a;
  box-shadow: 0 0 14px 4px rgba(255, 59, 42, 0.72);
}

.warning-light.is-green {
  background: #5dff7a;
  box-shadow: 0 0 14px 4px rgba(93, 255, 122, 0.62);
}

.guide-card > div:last-child {
  padding: 14px 16px 16px;
}

.guide-card h3 {
  margin: 0 0 7px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e6c37a;
}

.guide-card p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.guide-card .guide-tip {
  margin-top: 8px;
  color: var(--muted);
}

.guide-card .guide-tip strong {
  color: #6ee0e8;
}

.hud-score-demo {
  justify-content: space-between;
  align-items: flex-start;
}

.hud-score-demo span {
  display: flex;
  min-width: 54px;
  flex-direction: column;
  text-align: center;
}

.hud-score-demo small,
.engine-readout small {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hud-score-demo strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
}

.hud-score-demo span:nth-child(2) strong {
  color: #e6c37a;
}

.hud-control-demo img {
  width: 88px;
  height: 118px;
}

.hud-control-demo.is-field {
  background:
    radial-gradient(circle at center, rgba(78, 232, 106, 0.25), transparent 62%),
    linear-gradient(180deg, rgba(8, 36, 52, 0.9), rgba(5, 22, 34, 0.96));
}

.hud-count {
  position: absolute;
  bottom: 19px;
  left: 50%;
  min-width: 32px;
  transform: translateX(-50%);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  color: #e6c37a;
  text-align: center;
  text-shadow: 0 1px 2px #000;
}

.hud-hull-demo {
  gap: 6px;
}

.demo-pip {
  width: 25px;
  height: 13px;
  border: 1px solid #c4a056;
  border-radius: 4px;
  background: linear-gradient(#7ae88a, #2f8a3a);
  box-shadow: 0 0 8px rgba(90, 220, 110, 0.45);
}

.speed-face {
  position: relative;
  display: block;
  width: 116px;
  height: 116px;
}

.hud-engine-demo .speed-face img {
  width: 116px;
  height: 116px;
}

.speed-needle {
  position: absolute;
  left: 57px;
  bottom: 57px;
  width: 2px;
  height: 35px;
  border-radius: 2px;
  background: #f2eee0;
  box-shadow: 0 0 4px rgba(242, 238, 224, 0.75);
  transform: rotate(52deg);
  transform-origin: 50% 100%;
}

.engine-readout {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
}

.engine-readout span {
  display: flex;
  gap: 4px;
}

.engine-readout i {
  display: block;
  width: 13px;
  height: 9px;
  border: 1px solid #8a5d1e;
  background: #6ee0e8;
  box-shadow: 0 0 7px rgba(110, 224, 232, 0.38);
}

.engine-readout i.is-off {
  background: #161410;
  box-shadow: none;
}

.engine-readout strong {
  font-family: "Barlow Condensed", sans-serif;
  color: #e8e2d4;
}

.hud-dock-demo span {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid #6a5228;
  border-radius: 50%;
  background: rgba(20, 17, 14, 0.9);
  color: #e6c37a;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.depth-scale {
  gap: 12px;
  padding: 18px 14px;
}

.depth-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
}

.depth-card .depth-scale {
  min-height: 210px;
  border-right: 0;
  border-bottom: 1px solid rgba(106, 82, 40, 0.65);
}

.depth-scale figure {
  flex: 1;
  min-width: 0;
  margin: 0;
  text-align: center;
}

.guide-visual.depth-scale figure img {
  width: clamp(58px, 11vw, 96px);
  max-width: 100%;
  height: clamp(110px, 17vw, 156px);
  margin: 0 auto 8px;
}

.depth-scale figcaption {
  display: flex;
  flex-direction: column;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--muted);
}

.depth-scale figcaption strong {
  margin-top: 3px;
  color: #e8e2d4;
}

.depth-power-1 {
  filter: hue-rotate(110deg) saturate(1.15) drop-shadow(0 7px 8px rgba(0, 0, 0, 0.52)) !important;
}

.depth-power-2 {
  filter: hue-rotate(38deg) saturate(1.15) drop-shadow(0 7px 8px rgba(0, 0, 0, 0.52)) !important;
}

.depth-power-3 {
  filter: hue-rotate(12deg) saturate(1.15) drop-shadow(0 7px 8px rgba(0, 0, 0, 0.52)) !important;
}

.depth-power-4 {
  filter: hue-rotate(-18deg) saturate(1.15) drop-shadow(0 7px 8px rgba(0, 0, 0, 0.52)) !important;
}

@media (max-width: 560px) {
  .wrap {
    width: min(96vw, 720px);
    padding-top: 24px;
  }

  .welcome-item {
    gap: 5px;
    font-size: 18px;
  }

  .welcome-medal {
    width: 24px;
    height: 24px;
  }

  .board-ad-promo {
    gap: 6px;
    padding: 7px 7px 7px 42%;
  }

  .board-ad-copy small,
  .board-ad-copy em {
    display: none;
  }

  .board-ad-copy strong {
    font-size: clamp(20px, 7vw, 28px);
  }

  .board-ad-cta {
    padding: 8px 7px;
    font-size: 11px;
  }

  #board-table td {
    padding: 20px 2px 8px;
  }

  #board-table .name {
    font-size: clamp(13px, 3.8vw, 18px);
  }

  #board-table .score {
    font-size: 17px;
  }

  .sub-guide {
    grid-template-columns: 1fr;
  }

  .sub-visual {
    min-height: 190px;
  }

  .depth-card {
    grid-column: 1 / -1;
    display: block;
  }

  .depth-card .depth-scale {
    border-right: 0;
    border-bottom: 1px solid rgba(106, 82, 40, 0.65);
  }
}

.game-card {
  display: block;
  margin: 18px 0 24px;
  padding: 16px 18px;
  border: 1px solid #6a5228;
  border-radius: 10px;
  background: rgba(20, 17, 14, 0.82);
  color: inherit;
  text-decoration: none;
}

.game-card strong {
  display: block;
  margin: 0 0 6px;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e6c37a;
  font-size: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 16px;
}

.page .hero-actions {
  justify-content: flex-start;
  margin-bottom: 18px;
}

.play-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: min(100%, 230px);
  margin: 0;
  padding: 10px 18px;
  border: 1px solid #6a5228;
  border-radius: 8px;
  background: #2a2218;
  color: #e6c37a;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

@media (max-width: 620px) {
  .site-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
}

/* OBrien Games shared public design */
.wrap {
  width: min(960px, 92vw);
  padding: 48px 0 42px;
}

.wrap.page {
  width: min(820px, 92vw);
}

.kicker,
h1,
.note {
  text-shadow: none;
}

.kicker {
  color: var(--cyan);
}

h1,
.page h2,
.guide-card h3,
.sub-guide h3,
.game-card strong {
  color: var(--gold);
}

.note {
  color: var(--muted);
}

.board-ad-slot,
#search,
#board-table,
.guide-card,
.sub-guide,
.game-card {
  border-color: rgba(106, 82, 40, 0.72);
  background: rgba(13, 33, 49, 0.78);
  box-shadow: none;
}

#search {
  padding: 20px;
  border: 1px solid rgba(106, 82, 40, 0.72);
  border-radius: 10px;
}

#q,
#search button {
  border-color: #6a5228;
}

#q {
  background: rgba(7, 20, 34, 0.82);
  color: var(--ink);
}

#search button,
.play-link {
  border-color: #6a5228;
  background: rgba(20, 17, 14, 0.75);
  color: var(--gold);
}

.hero-actions .play-link:first-child {
  background: var(--brass);
  color: var(--navy);
}

#board-table th {
  background: rgba(7, 20, 34, 0.72);
  color: var(--gold);
}

#board-table td {
  border-color: rgba(106, 82, 40, 0.45);
}

.page p,
.page li {
  color: var(--ink);
}

.page .note,
.guide-card p,
.sub-guide p {
  color: var(--muted);
}

.field-guide {
  gap: 16px;
}

.guide-card,
.sub-guide {
  border-radius: 10px;
}

@media (max-width: 760px) {
  .wrap,
  .wrap.page {
    width: min(92vw, 820px);
    padding-top: 36px;
  }
}

#board-table {
  margin-top: 10px;
  background: rgba(7, 20, 34, 0.94);
  border: 1px solid rgba(200, 146, 58, 0.32);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
}

#board-table th,
#board-table td {
  border: 0;
}

#board-table th {
  padding: 13px 8px;
  border-bottom: 1px solid rgba(200, 146, 58, 0.38);
  background: #071422;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.18em;
}

#board-table td {
  padding: 16px 8px 12px;
  border-right: 1px solid rgba(155, 178, 191, 0.1);
  border-bottom: 1px solid rgba(155, 178, 191, 0.1);
  background: transparent;
  vertical-align: top;
}

#board-table tr td:last-child {
  border-right: 0;
}

#board-table tbody tr:last-child td {
  border-bottom: 0;
}

#board-table td.is-gold {
  background: rgba(230, 195, 122, 0.05);
  box-shadow: inset 0 2px 0 #c8923a;
}

#board-table .rank {
  position: static;
  display: block;
  margin: 0 auto 8px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

#board-table .icon {
  margin: 0 auto 7px;
  box-shadow: inset 0 0 0 1px rgba(238, 232, 217, 0.22);
}

#board-table .name {
  color: #f4efe4;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

#board-table .score {
  margin-top: 6px;
  color: var(--gold);
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.board-medals {
  margin-top: 5px;
}

@media (max-width: 560px) {
  #board-table td {
    padding: 12px 4px 10px;
  }

  #board-table .name {
    font-size: clamp(12px, 3.4vw, 16px);
  }

  #board-table .score {
    font-size: 15px;
  }
}
