/* CASINO DOJO — shared styles: oxblood room, jade felt, brass trim.
   Base, header with the game menu, footer, reading pages and the top page.
   Game tables have their own stylesheet (blackjack.css). */

/* Bodoni Moda (SIL OFL 1.1, see /assets/fonts/OFL-BodoniModa.txt), latin subset, self-hosted */

@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("/assets/fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-display: swap;
  font-weight: 400 900;
  src: url("/assets/fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --room: #2a0c12;
  --room-2: #3b1219;
  --room-deep: #1a0609;
  --felt: #0f5148;
  --felt-hi: #1a6b5e;
  --felt-deep: #083a33;
  --ink: rgba(236, 214, 160, 0.62);
  --ink-soft: rgba(236, 214, 160, 0.32);
  --brass: #d4af6a;
  --brass-hi: #f1d99a;
  --brass-lo: #8f6d32;
  --ivory: #f4ebd6;
  --muted: #bca98a;
  --rail: #1b0f0b;
  --card-face: #fbf8f1;
  --card-red: #b3122e;
  --card-black: #17171b;
  --good: #7fd3a8;
  --bad: #ff8a8f;
  --warn: #ffd27a;

  --font-display: "Bodoni Moda", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
  --font-ui: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "YuGothic", Meiryo, "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif;

  --cw: 62px;
  --ch: 87px;
  --ox: calc(var(--cw) * 0.36);
  --oy: calc(var(--ch) * 0.2);
  --spot: 56px;
  --radius: 10px;
}

:lang(zh-Hans) {
  --font-display: "Bodoni Moda", "Songti SC", "Noto Serif SC", "Noto Serif CJK SC", "SimSun", serif;
  --font-ui: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Hiragino Sans GB", system-ui, sans-serif;
}

:lang(ko) {
  --font-display: "Bodoni Moda", "AppleMyungjo", "Nanum Myeongjo", "Noto Serif KR", "Noto Serif CJK KR", "Batang", serif;
  --font-ui: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ivory);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.65;
  background-color: var(--room);
  background-image:
    radial-gradient(1100px 520px at 50% -8%, rgba(150, 40, 58, 0.5), transparent 70%),
    radial-gradient(900px 700px at 50% 120%, rgba(10, 2, 4, 0.75), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23D4AF6A' stroke-opacity='.075' stroke-width='1.2'%3E%3Cpath d='M0 14h14V0M42 0v14h14M0 42h14v14M42 56V42h14M14 14h28v28H14z'/%3E%3Cpath d='M21 21h14v14H21z'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed, fixed, scroll;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brass-hi);
}

button,
select,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

:focus-visible {
  outline: 2px solid var(--brass-hi);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--brass);
  color: var(--room-deep);
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 106, 0.4);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.1s, filter 0.15s, opacity 0.15s;
}

.btn:hover:not(:disabled) {
  filter: brightness(1.12);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.35;
}

.btn-ghost {
  font-weight: 500;
}

.btn-deal {
  min-width: 128px;
  padding: 0 22px;
  border-color: var(--brass-hi);
  background: linear-gradient(180deg, var(--brass-hi), var(--brass) 55%, var(--brass-lo));
  color: var(--room-deep);
  font-size: 15px;
  box-shadow: 0 3px 0 #5d4420, 0 8px 18px -6px rgba(212, 175, 106, 0.6);
}

/* ---------- menu pages ---------- */

.page-hero {
  padding: 56px 0 28px;
  max-width: 760px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.2;
  color: var(--brass-hi);
}

.page-hero p {
  margin: 0;
  color: var(--ivory);
  font-size: 16px;
  max-width: 60ch;
}

.soon {
  max-width: 760px;
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px dashed rgba(212, 175, 106, 0.45);
  background: rgba(15, 81, 72, 0.22);
}

.soon p {
  margin: 0 0 14px;
  color: var(--muted);
}

.soon .btn {
  text-decoration: none;
}

/* ---------- reading pages ---------- */

.doc {
  display: none;
}

html[lang="ja"] .doc[data-lang="ja"],
html[lang="en"] .doc[data-lang="en"],
html[lang="zh-Hans"] .doc[data-lang="zh"],
html[lang="ko"] .doc[data-lang="ko"] {
  display: block;
}

.doc-hero {
  padding: 44px 0 26px;
  max-width: 780px;
}

.doc-hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.2;
  color: var(--brass-hi);
}

.doc-hero p {
  margin: 0;
  max-width: 62ch;
  font-size: 16px;
}

.doc-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 106, 0.3);
  background: rgba(14, 5, 7, 0.75);
  font-size: 13px;
}

.toc-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--brass-hi);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li a {
  display: block;
  padding: 5px 0 5px 12px;
  border-left: 2px solid rgba(212, 175, 106, 0.18);
  color: var(--muted);
  text-decoration: none;
  line-height: 1.45;
}

.toc li a:hover,
.toc li a[aria-current="true"] {
  color: var(--brass-hi);
  border-left-color: var(--brass);
}

.toc-mobile {
  display: none;
}

.doc {
  min-width: 0;
  max-width: 820px;
  font-size: 15.5px;
  line-height: 1.85;
}

.doc section {
  padding: 6px 0 22px;
}

.doc h2 {
  margin: 26px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 106, 0.35);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.35;
  color: var(--brass-hi);
  scroll-margin-top: 16px;
}

.doc h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ivory);
}

.doc p {
  margin: 0 0 14px;
}

.doc ul,
.doc ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
}

.doc li {
  margin-bottom: 6px;
}

.doc li::marker {
  color: var(--brass);
}

.doc strong {
  color: var(--brass-hi);
  font-weight: 700;
}

.doc a {
  color: var(--brass-hi);
  text-underline-offset: 3px;
}

.doc .note {
  margin: 18px 0;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(15, 81, 72, 0.32);
  border: 1px solid rgba(212, 175, 106, 0.28);
}

.doc .note > :last-child {
  margin-bottom: 0;
}

.doc .note-title {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  color: var(--brass-hi);
}

.doc .note.warn {
  background: rgba(125, 28, 43, 0.3);
  border-color: rgba(255, 138, 143, 0.35);
}

.table-scroll {
  margin: 14px 0 18px;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 106, 0.28);
}

.doc table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
  background: rgba(10, 4, 5, 0.55);
}

.doc table.data th,
.doc table.data td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(212, 175, 106, 0.16);
  text-align: left;
  vertical-align: top;
}

@media (min-width: 761px) {
  .doc table.data tbody td:first-child:not(.num) {
    white-space: nowrap;
  }
}

.doc table.data thead th {
  background: rgba(212, 175, 106, 0.12);
  color: var(--brass-hi);
  font-weight: 700;
  white-space: nowrap;
}

.doc table.data td.num,
.doc table.data th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.doc table.data td.c,
.doc table.data th.c {
  text-align: center;
}

.doc table.data.tight {
  font-size: 13px;
}

.doc table.data.tight th,
.doc table.data.tight td {
  padding: 7px 7px;
  white-space: nowrap;
}

.doc table.data .plus {
  color: var(--good);
}

.doc table.data .minus {
  color: var(--bad);
}

.doc dl.glossary {
  display: grid;
  grid-template-columns: minmax(150px, max-content) 1fr;
  gap: 8px 20px;
  margin: 0 0 16px;
}

.doc dl.glossary dt {
  font-weight: 700;
  color: var(--brass-hi);
}

.doc dl.glossary dd {
  margin: 0;
}

/* inline playing cards */

.pc {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  min-width: 1.9em;
  margin: 0 2px;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--card-face);
  color: var(--card-black);
  font-family: "Bodoni Moda", serif;
  font-weight: 700;
  font-size: 0.95em;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  vertical-align: 0.05em;
}

.pc i {
  font-style: normal;
  font-family: system-ui, sans-serif;
  font-size: 0.85em;
}

.pc.r {
  color: var(--card-red);
}

.pc em {
  display: none;
}

.hand-ex {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 12px 0 18px;
  padding: 0;
  list-style: none;
}

.hand-ex li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.hand-ex .eq {
  color: var(--muted);
  font-size: 14px;
}

.flow {
  counter-reset: flow;
  list-style: none;
  padding-left: 0 !important;
}

.flow > li {
  position: relative;
  padding-left: 44px;
  margin-bottom: 12px;
}

.flow > li::before {
  counter-increment: flow;
  content: counter(flow);
  position: absolute;
  left: 0;
  top: 2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, var(--felt) 0 54%, transparent 55%), repeating-conic-gradient(var(--felt) 0 30deg, var(--ivory) 30deg 45deg);
  color: var(--ivory);
  font-family: "Bodoni Moda", serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}

.doc-next {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 175, 106, 0.3);
}

.doc-next .btn {
  text-decoration: none;
}

.doc .sources {
  font-size: 13px;
  color: var(--muted);
}

.doc .sources li {
  margin-bottom: 4px;
}

@media (max-width: 1080px) {
  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .toc {
    display: none;
  }

  .toc-mobile {
    display: block;
    margin: 0 0 18px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 106, 0.3);
    background: rgba(14, 5, 7, 0.75);
    font-size: 14px;
  }

  .toc-mobile summary {
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 700;
    color: var(--brass-hi);
  }

  .toc-mobile ol {
    margin: 0;
    padding: 0 16px 12px 32px;
  }

  .toc-mobile a {
    display: block;
    padding: 4px 0;
    color: var(--ivory);
    text-decoration: none;
  }
}

@media (max-width: 760px) {
  .page-hero {
    padding: 32px 4px 20px;
  }

  .doc-hero {
    padding: 28px 4px 16px;
  }

  .doc {
    font-size: 15px;
    line-height: 1.8;
  }

  .doc h2 {
    font-size: 21px;
  }

  .doc dl.glossary {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .doc dl.glossary dd {
    margin-bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- links styled as buttons ---------- */

a.btn {
  color: var(--ivory);
  text-decoration: none;
}

a.btn-deal {
  color: var(--room-deep);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- header ---------- */

.site-header {
  position: relative;
  z-index: 20;
}

.hdr-bar {
  background: linear-gradient(180deg, rgba(18, 4, 7, 0.95), rgba(30, 8, 12, 0.86));
}

.hdr-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand,
.ftr-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--ivory);
  text-decoration: none;
}

.brand-mark svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
}

.brand-name {
  font-family: "Bodoni Moda", serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.08em;
  color: var(--brass-hi);
  white-space: nowrap;
}

.brand-name em {
  font-style: italic;
  font-weight: 600;
  color: var(--ivory);
  letter-spacing: 0.04em;
}

.brand-tag {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hdr-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.snd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px 0 9px;
  border: 1px solid rgba(212, 175, 106, 0.35);
  border-radius: 17px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--muted);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.snd svg {
  width: 18px;
  height: 18px;
}

.snd:hover {
  border-color: var(--brass);
  color: var(--ivory);
}

.snd[aria-pressed="false"] .wave {
  opacity: 0.2;
}

.snd[aria-pressed="true"] {
  color: var(--room-deep);
  background: linear-gradient(180deg, var(--brass-hi), var(--brass));
  border-color: var(--brass-hi);
}

.snd-text {
  display: flex;
  gap: 4px;
  font-size: 12px;
  line-height: 1;
}

.snd-state {
  font-weight: 700;
}

.lang {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang > svg {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 16px;
  color: var(--brass);
  pointer-events: none;
}

.lang select {
  height: 34px;
  padding: 0 28px 0 32px;
  border: 1px solid rgba(212, 175, 106, 0.35);
  border-radius: 17px;
  background: rgba(0, 0, 0, 0.25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23D4AF6A'/%3E%3C/svg%3E") no-repeat right 11px center;
  appearance: none;
  -webkit-appearance: none;
  font-size: 13px;
  cursor: pointer;
}

.lang select option {
  background: var(--room-deep);
  color: var(--ivory);
}

/* game menu: a brass-ruled band like the edge of a table layout */

.game-nav {
  position: relative;
  background: linear-gradient(180deg, #12050a, #1d0910);
  border-top: 1px solid rgba(212, 175, 106, 0.5);
  border-bottom: 1px solid rgba(212, 175, 106, 0.55);
  box-shadow: 0 3px 0 -2px rgba(212, 175, 106, 0.28), inset 0 1px 0 rgba(212, 175, 106, 0.12);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-list {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-list.more-right {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
}

.nav-list.more-left {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px);
  mask-image: linear-gradient(90deg, transparent, #000 44px);
}

.nav-list.more-left.more-right {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent);
}

.nav-list li {
  flex-shrink: 0;
}

.game-nav .nav-inner {
  max-width: 1320px;
}

.game-nav .nav-list {
  justify-content: space-between;
}

.game-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 46px;
  padding: 0 10px;
  white-space: nowrap;
  color: var(--ivory);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.15s, background 0.15s;
}

.game-nav a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--brass);
  transition: transform 0.2s;
}

.game-nav a:hover {
  color: var(--brass-hi);
  background: linear-gradient(180deg, transparent, rgba(212, 175, 106, 0.1));
}

.game-nav a:hover svg {
  transform: translateY(-1px) rotate(-8deg);
}

.game-nav a[aria-current] {
  color: var(--brass-hi);
  background: linear-gradient(180deg, rgba(212, 175, 106, 0.04), rgba(212, 175, 106, 0.16));
}

.game-nav a[aria-current] svg {
  color: var(--brass-hi);
}

.game-nav a[aria-current]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, var(--brass-lo), var(--brass-hi), var(--brass-lo));
}

.nav-home a {
  padding: 0 12px;
}

.nav-home a svg {
  width: 19px;
  height: 19px;
}

/* sub-menu of the open game, printed on felt */

.sub-nav {
  background-color: var(--felt-deep);
  background-image:
    radial-gradient(120% 220% at 50% -60%, rgba(26, 107, 94, 0.9), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M0 6L6 0' stroke='%23000' stroke-opacity='.14'/%3E%3C/svg%3E");
  border-bottom: 1px solid rgba(212, 175, 106, 0.45);
  box-shadow: inset 0 -10px 18px -12px rgba(0, 0, 0, 0.6);
}

.sub-nav .nav-inner {
  padding: 7px 16px;
  gap: 14px;
}

.sub-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--brass-hi);
  white-space: nowrap;
}

.sub-title svg {
  width: 16px;
  height: 16px;
}

.sub-title::after {
  content: "";
  width: 1px;
  height: 20px;
  margin-left: 7px;
  background: rgba(212, 175, 106, 0.4);
}

.sub-nav .nav-list {
  gap: 6px;
}

.sub-nav a {
  display: block;
  padding: 5px 15px;
  border: 1px solid rgba(241, 217, 154, 0.28);
  border-radius: 999px;
  white-space: nowrap;
  color: var(--ivory);
  text-decoration: none;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.18);
  transition: background 0.15s, border-color 0.15s;
}

.sub-nav a:hover {
  border-color: var(--brass);
  background: rgba(0, 0, 0, 0.32);
}

.sub-nav a[aria-current="page"] {
  color: var(--room-deep);
  font-weight: 700;
  border-color: var(--brass-hi);
  background: linear-gradient(180deg, var(--brass-hi), var(--brass));
  box-shadow: 0 2px 0 #5d4420;
}

/* ---------- section headings shared by the top page and future game pages ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-family: "Bodoni Moda", serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--brass);
}

.kicker::before,
.kicker::after {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass));
}

.kicker::after {
  background: linear-gradient(90deg, var(--brass), transparent);
}

.sec-head {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

/* Bodoni Moda's display optical size turns hairlines very thin at headline sizes;
   the text cut reads better on felt and dark backgrounds. */
.hero h1,
.sec-head h2,
.showcase h2,
.gx-name,
.soon-hero h1,
.concept h3,
.gc-name {
  font-optical-sizing: none;
}

.sec-head h2,
.sec-head p,
.concept h3,
.showcase h2,
.ftr-note p,
.soon-hero h1 {
  text-wrap: balance;
}

/* Break Japanese headings between phrases rather than inside words (Chromium). */
html[lang="ja"] .sec-head h2 {
  word-break: auto-phrase;
}

.sec-head h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.3;
  color: var(--ivory);
}

.sec-head p {
  margin: 0;
  color: var(--muted);
}

.deco-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 8px auto 0;
  color: var(--brass);
}

.deco-rule::before,
.deco-rule::after {
  content: "";
  flex: 0 1 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 106, 0.7));
}

.deco-rule::after {
  background: linear-gradient(90deg, rgba(212, 175, 106, 0.7), transparent);
}

.deco-rule svg {
  width: 14px;
  height: 14px;
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(212, 175, 106, 0.5);
  box-shadow: 0 -3px 0 -2px rgba(212, 175, 106, 0.28);
  background: rgba(10, 3, 5, 0.82);
}

.ftr-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 22px;
}

.ftr-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 18px 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(212, 175, 106, 0.18);
}

.ftr-brand .brand-mark svg {
  width: 36px;
  height: 36px;
}

.ftr-brand .brand-name {
  font-size: 20px;
}

.ftr-games {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: center;
  gap: 4px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.ftr-games a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 0;
  color: var(--ivory);
  text-decoration: none;
}

.ftr-games a:hover {
  color: var(--brass-hi);
}

.ftr-games svg {
  width: 13px;
  height: 13px;
  color: var(--brass);
}

.ftr-sns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ftr-label {
  font-size: 12px;
  color: var(--muted);
}

.sns {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sns a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 106, 0.45);
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.15s, color 0.15s;
}

.sns a:hover {
  background: var(--brass);
  color: var(--room-deep);
}

.sns svg {
  width: 16px;
  height: 16px;
}

.ftr-note {
  max-width: 820px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}

.ftr-note p {
  margin: 0 0 4px;
}

.ftr-note a {
  color: var(--brass-hi);
  text-underline-offset: 3px;
}

.credits {
  border-top: 1px solid rgba(212, 175, 106, 0.22);
  background: rgba(0, 0, 0, 0.45);
}

.credits-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 26px;
  font-size: 11.5px;
  color: rgba(188, 169, 138, 0.85);
}

.copy {
  margin: 0;
  font-family: "Bodoni Moda", serif;
  letter-spacing: 0.06em;
}

.credit-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 22px;
  margin: 0;
}

.credit-list div {
  display: flex;
  gap: 8px;
}

.credit-list dt {
  color: rgba(188, 169, 138, 0.7);
}

.credit-list dd {
  margin: 0;
  color: var(--ivory);
}

.noscript {
  margin: 0;
  padding: 16px;
  text-align: center;
  background: #7d1c2b;
}

/* ---------- coming soon pages ---------- */

.soon-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 40px;
  padding: 52px 0 30px;
}

.soon-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.2;
  color: var(--brass-hi);
}

.soon-hero .lead {
  margin: 0;
  max-width: 60ch;
  font-size: 16px;
}

.soon-art {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(70% 70% at 50% 35%, var(--felt-hi), var(--felt) 55%, var(--felt-deep));
  box-shadow: 0 0 0 12px #2a170f, 0 0 0 14px rgba(212, 175, 106, 0.6), 0 26px 60px rgba(0, 0, 0, 0.6);
}

.soon-art svg {
  width: 62%;
  height: 62%;
  color: var(--brass-hi);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
}

.soon-box {
  max-width: 760px;
  padding: 24px 26px;
  border-radius: 14px;
  border: 1px dashed rgba(212, 175, 106, 0.5);
  background: rgba(15, 81, 72, 0.22);
}

.soon-box h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ivory);
}

.soon-box p {
  margin: 0 0 18px;
  color: var(--muted);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- top page ---------- */

.home main {
  max-width: none;
  padding: 0 0 20px;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 78% 30%, rgba(212, 175, 106, 0.16), transparent 70%),
    radial-gradient(50% 60% at 10% 10%, rgba(150, 40, 58, 0.35), transparent 70%);
  pointer-events: none;
}

.hero-table {
  position: relative;
  border-radius: 46px 46px 50% 50% / 46px 46px 20% 20%;
  padding: 16px;
  background: linear-gradient(180deg, #3a1e12, #24120b 60%, #1a0d08);
  box-shadow: 0 0 0 1px rgba(212, 175, 106, 0.55), 0 30px 70px -20px rgba(0, 0, 0, 0.9), inset 0 2px 0 rgba(255, 220, 160, 0.12);
}

.hero-felt {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 10px;
  min-height: 470px;
  padding: 44px 40px 70px 52px;
  border-radius: 32px 32px 50% 50% / 32px 32px 19% 19%;
  background-color: var(--felt);
  background-image:
    radial-gradient(80% 90% at 70% 20%, var(--felt-hi), transparent 70%),
    radial-gradient(120% 90% at 50% 120%, var(--felt-deep), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Cpath d='M0 4L4 0' stroke='%23000' stroke-opacity='.08'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 2px rgba(212, 175, 106, 0.35), inset 0 0 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.hero-felt::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 26px;
  height: 120px;
  border: 1px solid rgba(236, 214, 160, 0.3);
  border-top: 0;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  margin: 0 0 18px;
  font-family: "Bodoni Moda", serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.24em;
  color: var(--brass-hi);
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.22;
  color: var(--ivory);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero h1 span {
  display: block;
}

.hero h1 .gold {
  background: linear-gradient(180deg, #fff3cc, var(--brass-hi) 40%, var(--brass) 70%, #b48a45);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 24px;
  max-width: 34em;
  font-size: 15.5px;
  line-height: 1.85;
  color: rgba(244, 235, 214, 0.92);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-cta .btn {
  min-height: 50px;
  padding: 0 24px;
  font-size: 15px;
}

.hero-cta .btn-ghost {
  border-color: rgba(241, 217, 154, 0.55);
  background: rgba(0, 0, 0, 0.22);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.pills li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px 5px 6px;
  border-radius: 999px;
  border: 1px solid rgba(241, 217, 154, 0.35);
  background: rgba(0, 0, 0, 0.26);
  font-size: 12.5px;
  color: var(--ivory);
}

.pills li::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.4 8.3l2.3 2.3 4.9-5' fill='none' stroke='%232A0C12' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat,
    linear-gradient(180deg, var(--brass-hi), var(--brass));
}

.hero-art {
  position: relative;
  z-index: 0;
  margin: -20px -30px -50px 0;
}

.hero-art svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.wheel-spin {
  transform-origin: 300px 190px;
  animation: spin 48s linear infinite;
}

.ball-orbit {
  transform-origin: 300px 190px;
  animation: spin 9s linear infinite reverse;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.chip-float {
  animation: float 6s ease-in-out infinite;
}

.chip-float.d2 {
  animation-delay: -2s;
}

.chip-float.d3 {
  animation-delay: -4s;
}

@keyframes float {
  50% {
    transform: translateY(-7px);
  }
}

/* promo video at the top of the page (muted by default) */

.pv {
  position: relative;
  height: clamp(420px, calc(100svh - 108px), 780px);
  overflow: hidden;
  /* The catch copy is sized against the video area (cqw / cqh). */
  container-type: size;
  background:
    radial-gradient(70% 80% at 60% 40%, rgba(15, 81, 72, 0.55), transparent 70%),
    var(--room-deep);
  border-bottom: 1px solid rgba(212, 175, 106, 0.55);
  box-shadow: 0 3px 0 -2px rgba(212, 175, 106, 0.28);
}

.pv-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 4, 7, 0.5), transparent 20%, transparent 52%, rgba(26, 6, 10, 0.94)),
    radial-gradient(130% 100% at 50% 45%, transparent 55%, rgba(10, 2, 4, 0.55));
  pointer-events: none;
}

.pv-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(34px, 7vh, 64px);
  pointer-events: none;
}

.pv-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  animation: pv-in 1.4s 0.5s both;
}

@keyframes pv-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.pv-logo {
  display: flex;
  align-items: center;
  gap: 0.28em;
  margin: 0;
  font-family: "Bodoni Moda", serif;
  font-weight: 700;
  font-size: clamp(34px, 6.2vw, 78px);
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--brass-hi);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.75);
  white-space: nowrap;
}

.pv-logo em {
  font-style: italic;
  font-weight: 600;
  color: var(--ivory);
  letter-spacing: 0.04em;
}

.pv-mark svg {
  width: 0.92em;
  height: 0.92em;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

.pv-tag {
  margin: 12px 0 0;
  font-size: clamp(14px, 1.6vw, 19px);
  letter-spacing: 0.2em;
  color: var(--ivory);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.pv-ctrl {
  position: absolute;
  right: max(20px, calc((100% - 1200px) / 2 + 20px));
  bottom: clamp(34px, 7vh, 64px);
  display: flex;
  gap: 8px;
}

.pv-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(241, 217, 154, 0.6);
  background: rgba(10, 3, 5, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ivory);
  transition: background 0.15s, color 0.15s;
}

.pv-btn:hover {
  background: var(--brass);
  color: var(--room-deep);
}

.pv-btn svg {
  width: 20px;
  height: 20px;
}

.pv-btn .i-play,
.pv-btn .i-sound,
.pv-btn[data-state="paused"] .i-pause,
.pv-btn[data-state="sound"] .i-muted {
  display: none;
}

.pv-btn[data-state="paused"] .i-play,
.pv-btn[data-state="sound"] .i-sound {
  display: block;
}

.pv-btn[data-state="sound"] {
  color: var(--room-deep);
  background: linear-gradient(180deg, var(--brass-hi), var(--brass));
}

/* Catch copy over the video: three phrases whose characters come in out of a
   blur one by one (timing set per character by home.js, about six seconds in
   all). The first two sit on a diagonal; "練習専用" arrives last, larger,
   between two gold rules. A glint of light then keeps running along the words. */
.pv-catch {
  position: absolute;
  left: 0;
  right: 0;
  top: 39%;
  z-index: 1;
  margin: 0;
  padding: 0 20px;
  transform: translateY(-50%);
  display: grid;
  justify-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  /* About 60% of the video's width, but never so tall that it reaches the logo. */
  font-size: clamp(28px, 5.4vw, 120px);
  font-size: clamp(28px, min(5.4cqw, 11.5cqh), 124px);
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-align: center;
  pointer-events: none;
}

.pc-line {
  display: block;
  white-space: nowrap;
}

.pc-top {
  display: grid;
  font-size: 0.8em;
}

.pc-a {
  justify-self: start;
}

.pc-b {
  justify-self: end;
  padding-left: 2.6em;
}

.pc-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  margin-top: 0.2em;
  font-size: 1.75em;
}

.pc-word {
  letter-spacing: 0.18em;
  margin-right: -0.18em;
}

.pc-rule {
  display: block;
  flex: none;
  width: clamp(16px, 5.5vw, 150px);
  width: clamp(16px, 5.5cqw, 150px);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--brass-hi));
  box-shadow: 0 0 10px rgba(241, 217, 154, 0.55);
  transform-origin: right center;
  opacity: 0;
}

.pc-rule.r {
  background: linear-gradient(270deg, transparent, var(--brass-hi));
  transform-origin: left center;
}

.pv-catch.play .pc-rule {
  animation: catch-rule 0.9s cubic-bezier(0.2, 0.75, 0.2, 1) var(--rd) both;
}

@keyframes catch-rule {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.pv-catch .ch {
  display: inline-block;
  color: var(--brass-hi);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 24px rgba(0, 0, 0, 0.7), 0 0 2px rgba(0, 0, 0, 0.9);
  opacity: 0;
}

.pc-main .ch {
  color: var(--ivory);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 28px rgba(0, 0, 0, 0.75), 0 0 18px rgba(241, 217, 154, 0.35);
}

.pv-catch.play .ch {
  animation:
    catch-in var(--dur, 0.9s) cubic-bezier(0.2, 0.75, 0.2, 1) var(--d) both,
    catch-glint 5.5s ease-in-out var(--g) infinite;
}

/* Latin text runs longer, so English gets a smaller last line and tighter spacing. */
html[lang="en"] .pc-main {
  font-size: 1.3em;
}

html[lang="en"] .pc-word {
  letter-spacing: 0.06em;
  margin-right: -0.06em;
}

@keyframes catch-in {
  from {
    opacity: 0;
    filter: blur(14px);
    transform: translateY(0.45em) scale(1.35);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

@keyframes catch-glint {
  0%, 78%, 100% {
    opacity: 1;
  }
  86% {
    opacity: 1;
    color: #fffaf0;
    text-shadow: 0 0 6px #fff6dc, 0 0 22px var(--brass-hi), 0 0 44px rgba(241, 217, 154, 0.75), 0 2px 4px rgba(0, 0, 0, 0.6);
    transform: translateY(-0.04em);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pv-catch .ch,
  .pv-catch.play .ch,
  .pv-catch .pc-rule,
  .pv-catch.play .pc-rule {
    opacity: 1;
    animation: none;
  }
}

.pv.no-video .pv-catch {
  position: static;
  transform: none;
  margin-bottom: 18px;
}

/* If the video cannot be loaded, fall back to a compact brand banner. */
.pv.no-video {
  height: auto;
  container-type: inline-size;
  padding: 64px 0 54px;
}

.pv.no-video .pv-copy {
  position: static;
}

.pv.no-video .pv-ctrl,
.pv.no-video .pv-scroll,
.pv.no-video .pv-video {
  display: none;
}

.pv-scroll {
  position: absolute;
  left: 50%;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
  font-family: "Bodoni Moda", serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(241, 217, 154, 0.8);
  text-decoration: none;
}

.pv-scroll::after {
  content: "";
  width: 1px;
  height: 26px;
  background: linear-gradient(180deg, var(--brass-hi), transparent);
  animation: pv-drip 1.8s ease-in-out infinite;
  transform-origin: top;
}

@keyframes pv-drip {
  0% {
    transform: scaleY(0);
    opacity: 1;
  }
  60% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

/* sections */

.sec {
  padding: 74px 0 0;
}

.sec-anchor {
  scroll-margin-top: 10px;
}

/* concept: three chips */

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.concept {
  position: relative;
  padding: 72px 26px 26px;
  margin-top: 46px;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 106, 0.32);
  background:
    linear-gradient(180deg, rgba(212, 175, 106, 0.08), transparent 40%),
    rgba(14, 5, 7, 0.72);
  text-align: center;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
}

.concept-chip {
  position: absolute;
  left: 50%;
  top: -46px;
  width: 104px;
  height: 104px;
  margin-left: -52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ivory);
  background:
    radial-gradient(circle, var(--chip-c) 0 52%, transparent 53%),
    repeating-conic-gradient(var(--chip-c) 0 18deg, var(--ivory) 18deg 30deg);
  box-shadow: 0 0 0 3px var(--chip-c), 0 0 0 4px rgba(212, 175, 106, 0.8), 0 14px 26px rgba(0, 0, 0, 0.55);
}

.concept-chip::before {
  content: "";
  position: absolute;
  inset: 21px;
  border-radius: 50%;
  border: 1.5px dashed rgba(241, 217, 154, 0.75);
}

.concept-chip svg {
  position: relative;
  width: 36px;
  height: 36px;
}

.concept:nth-child(1) { --chip-c: #8e1d2f; }
.concept:nth-child(2) { --chip-c: #0f5148; }
.concept:nth-child(3) { --chip-c: #1d1a24; }

.concept-label {
  display: block;
  margin-bottom: 6px;
  font-family: "Bodoni Moda", serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--brass);
}

.concept h3 {
  white-space: pre-line;
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.4;
  color: var(--brass-hi);
}

.concept p {
  margin: 0;
  font-size: 14px;
  color: rgba(244, 235, 214, 0.86);
}

/* games */

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 106, 0.3);
  background: rgba(14, 5, 7, 0.8);
  color: var(--ivory);
  text-decoration: none;
  box-shadow: 0 16px 34px -22px rgba(0, 0, 0, 0.95);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--brass);
  box-shadow: 0 24px 40px -22px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(212, 175, 106, 0.35);
}

.game-card.is-open {
  border-color: rgba(241, 217, 154, 0.7);
  box-shadow: 0 16px 34px -22px rgba(0, 0, 0, 0.95), 0 0 24px -6px rgba(212, 175, 106, 0.45);
}

.gc-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background-color: var(--felt);
  background-image:
    radial-gradient(80% 90% at 50% 20%, var(--felt-hi), transparent 70%),
    radial-gradient(120% 80% at 50% 120%, var(--felt-deep), transparent 70%);
  border-bottom: 1px solid rgba(212, 175, 106, 0.4);
}

.gc-art.tone-red {
  background-color: #5c1421;
  background-image:
    radial-gradient(80% 90% at 50% 20%, #8e2638, transparent 70%),
    radial-gradient(120% 80% at 50% 120%, #2a0910, transparent 70%);
}

.gc-art.tone-navy {
  background-color: #142338;
  background-image:
    radial-gradient(80% 90% at 50% 20%, #24406a, transparent 70%),
    radial-gradient(120% 80% at 50% 120%, #0a1220, transparent 70%);
}

.gc-art::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(236, 214, 160, 0.22);
  border-radius: 10px;
  pointer-events: none;
}

.gc-art svg {
  width: 74%;
  height: 80%;
  overflow: visible;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45));
  transition: transform 0.35s;
}

.game-card:hover .gc-art svg {
  transform: scale(1.05) rotate(-2deg);
}

.gc-status {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: "Bodoni Moda", serif;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--brass-hi);
  border: 1px solid rgba(241, 217, 154, 0.55);
  background: rgba(10, 3, 5, 0.62);
}

.is-open .gc-status {
  color: #08261f;
  border-color: #a8f0c8;
  background: linear-gradient(180deg, #a8f0c8, var(--good));
  box-shadow: 0 0 12px rgba(127, 211, 168, 0.6);
}

.gc-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
}

.gc-kind {
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 1px 9px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--muted);
  background: rgba(212, 175, 106, 0.1);
  border: 1px solid rgba(212, 175, 106, 0.2);
}

.gc-name {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  color: var(--brass-hi);
}

.gc-desc {
  flex: 1;
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(244, 235, 214, 0.82);
}

.gc-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brass-hi);
}

.gc-go::after {
  content: "";
  width: 16px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h14M10 1l4 4-4 4' fill='none' stroke='%23F1D99A' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s;
}

.game-card:hover .gc-go::after {
  transform: translateX(4px);
}

.soon-card .gc-go {
  color: var(--muted);
  font-weight: 500;
}

/* game panels (showcase) */

.showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 30px 40px;
  align-items: center;
  padding: 40px 42px;
  border-radius: 22px;
  border: 1px solid rgba(212, 175, 106, 0.5);
  background-color: var(--felt-deep);
  background-image:
    radial-gradient(70% 110% at 0% 0%, rgba(26, 107, 94, 0.95), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Cpath d='M0 4L4 0' stroke='%23000' stroke-opacity='.1'/%3E%3C/svg%3E");
  box-shadow: 0 0 0 6px rgba(26, 13, 8, 0.9), 0 0 0 7px rgba(212, 175, 106, 0.4), 0 26px 50px -24px rgba(0, 0, 0, 0.9);
}

.showcase h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.3;
  color: var(--ivory);
}

.showcase p {
  margin: 0 0 22px;
  color: rgba(244, 235, 214, 0.9);
}

.showcase-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.showcase-links a {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-content: start;
  gap: 2px 12px;
  height: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(241, 217, 154, 0.3);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ivory);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.showcase-links a:hover {
  border-color: var(--brass-hi);
  background: rgba(0, 0, 0, 0.42);
  transform: translateY(-2px);
}

.showcase-links svg {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 50%;
  color: var(--room-deep);
  background: linear-gradient(180deg, var(--brass-hi), var(--brass));
}

.showcase-links strong {
  font-size: 15px;
  color: var(--brass-hi);
}

.showcase-links span {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(244, 235, 214, 0.78);
}

/* game guide: one panel per game */

.gx-list {
  display: grid;
  gap: 40px;
}

.showcase .gx-name {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.25;
  color: var(--ivory);
  text-wrap: balance;
}

.gx-name::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--brass-hi), transparent);
}

.gx {
  scroll-margin-top: 20px;
}

.gx.tone-navy {
  background-color: #0e1a2c;
  background-image:
    radial-gradient(70% 110% at 0% 0%, rgba(36, 64, 106, 0.95), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Cpath d='M0 4L4 0' stroke='%23000' stroke-opacity='.1'/%3E%3C/svg%3E");
}

.gx.tone-red {
  background-color: #2a0910;
  background-image:
    radial-gradient(70% 110% at 0% 0%, rgba(142, 38, 56, 0.9), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Cpath d='M0 4L4 0' stroke='%23000' stroke-opacity='.1'/%3E%3C/svg%3E");
}

.gx.gx-rev {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.gx.gx-rev .gx-intro {
  order: 2;
}

.gx.gx-rev {
  background-image:
    radial-gradient(70% 110% at 100% 0%, rgba(26, 107, 94, 0.95), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Cpath d='M0 4L4 0' stroke='%23000' stroke-opacity='.1'/%3E%3C/svg%3E");
}

.gx.gx-rev.tone-navy {
  background-image:
    radial-gradient(70% 110% at 100% 0%, rgba(36, 64, 106, 0.95), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Cpath d='M0 4L4 0' stroke='%23000' stroke-opacity='.1'/%3E%3C/svg%3E");
}

.gx.gx-rev.tone-red {
  background-image:
    radial-gradient(70% 110% at 100% 0%, rgba(142, 38, 56, 0.9), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Cpath d='M0 4L4 0' stroke='%23000' stroke-opacity='.1'/%3E%3C/svg%3E");
}

/* Features that are not links: same tile, but quieter and without hover. */
.showcase-links .gx-feat {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-content: start;
  gap: 2px 12px;
  height: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(241, 217, 154, 0.22);
  background: rgba(0, 0, 0, 0.16);
  color: var(--ivory);
}

.showcase-links .gx-feat svg {
  color: var(--brass-hi);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(241, 217, 154, 0.55);
}

/* steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 4px 16px;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 106, 0.25);
  background: rgba(14, 5, 7, 0.6);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-family: "Bodoni Moda", serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--room-deep);
  background: radial-gradient(circle, var(--brass-hi) 0 50%, var(--brass) 51% 62%, var(--brass-hi) 63%);
  box-shadow: 0 0 0 2px var(--brass-lo), 0 6px 14px rgba(0, 0, 0, 0.5);
}

.step h3 {
  margin: 4px 0 0;
  font-size: 16px;
  color: var(--brass-hi);
}

.step p {
  margin: 0;
  font-size: 13.5px;
  color: rgba(244, 235, 214, 0.82);
}

.sound-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 26px auto 0;
  max-width: 760px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.sound-note svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--brass);
}

/* ---------- responsive (shell and top page) ---------- */

@media (max-width: 1180px) {
  .snd-text {
    display: none;
  }

  .snd {
    position: relative;
    width: 34px;
    padding: 0;
    justify-content: center;
    color: var(--ivory);
  }

  .snd[aria-pressed="false"] svg {
    opacity: 0.55;
  }

  .snd[aria-pressed="false"]::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 2px;
    border-radius: 1px;
    background: var(--brass);
    box-shadow: 0 0 0 1px var(--room-deep);
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .game-nav .nav-list {
    justify-content: flex-start;
  }

  .game-nav a {
    padding: 0 10px;
    font-size: 13px;
  }
}

@media (max-width: 1080px) {
  .hero-felt {
    grid-template-columns: minmax(0, 1fr);
    padding: 40px 36px 64px;
  }

  .hero-art {
    order: -1;
    max-width: 480px;
    width: 100%;
    margin: -14px auto 10px;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase {
    grid-template-columns: minmax(0, 1fr);
  }

  .gx.gx-rev {
    grid-template-columns: minmax(0, 1fr);
  }

  .gx.gx-rev .gx-intro {
    order: 0;
  }

  .ftr-top {
    grid-template-columns: 1fr auto;
  }

  .ftr-games {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: start;
  }

  .soon-hero {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 14px;
  }

  main {
    padding: 0 10px 32px;
  }

  .wrap {
    padding: 0 12px;
  }

  .hdr-inner {
    padding: 8px 10px;
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark svg {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 18px;
    letter-spacing: 0.05em;
  }

  .brand .brand-tag {
    display: none;
  }

  .hdr-tools {
    gap: 4px;
  }

  .lang > svg {
    display: none;
  }

  .lang select {
    width: 84px;
    padding: 0 22px 0 10px;
    background-position: right 9px center;
    font-size: 12px;
  }

  .nav-inner {
    padding: 0 4px;
  }

  .game-nav a {
    height: 44px;
    gap: 6px;
    padding: 0 9px;
    font-size: 12.5px;
  }

  .game-nav a svg {
    width: 14px;
    height: 14px;
  }

  .sub-nav .nav-inner {
    padding: 6px 8px;
    gap: 10px;
  }

  .sub-title {
    font-size: 13px;
  }

  .sub-title > span {
    display: none;
  }

  .sub-title::after {
    margin-left: 3px;
  }

  .sub-nav a {
    padding: 4px 12px;
    font-size: 12.5px;
  }

  .pv {
    height: min(64svh, 540px);
    min-height: 360px;
  }

  .pv-copy,
  .pv-ctrl {
    bottom: 40px;
  }

  .pv-catch {
    top: 40%;
    font-size: clamp(24px, 8.4vw, 40px);
    font-size: clamp(24px, 8.4cqw, 40px);
    letter-spacing: 0.04em;
  }

  .pc-word {
    letter-spacing: 0.12em;
    margin-right: -0.12em;
  }

  html[lang="en"] .pc-main {
    font-size: 1.02em;
  }

  .pv-inner {
    padding: 0 14px;
  }

  .pv-tag {
    margin-top: 8px;
    letter-spacing: 0.12em;
  }

  .pv-ctrl {
    right: 12px;
    bottom: auto;
    top: 12px;
  }

  .pv-btn {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding-top: 16px;
  }

  .hero-table {
    padding: 9px;
    border-radius: 28px 28px 40% 40% / 28px 28px 9% 9%;
  }

  .hero-felt {
    min-height: 0;
    padding: 24px 18px 52px;
    border-radius: 21px 21px 40% 40% / 21px 21px 8% 8%;
  }

  .hero-felt::after {
    bottom: 16px;
    height: 60px;
  }

  .hero-art {
    max-width: 360px;
    margin: -6px auto 6px;
  }

  .hero .eyebrow {
    margin-bottom: 12px;
    font-size: 10.5px;
    letter-spacing: 0.16em;
  }

  .hero-lead {
    font-size: 14px;
    line-height: 1.8;
  }

  .hero-cta .btn {
    flex: 1 1 auto;
    min-height: 48px;
  }

  .sec {
    padding-top: 56px;
  }

  .sec-head {
    margin-bottom: 22px;
  }

  .concept-grid,
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .concept {
    margin-top: 40px;
    padding: 64px 20px 22px;
  }

  .concept-chip {
    top: -40px;
    width: 92px;
    height: 92px;
    margin-left: -46px;
  }

  .concept-chip::before {
    inset: 18px;
  }

  .game-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .game-card {
    flex-direction: row;
  }

  .gc-art {
    flex: 0 0 38%;
    aspect-ratio: auto;
    border-bottom: 0;
    border-right: 1px solid rgba(212, 175, 106, 0.4);
  }

  .gc-art::before {
    inset: 6px;
  }

  .gc-art svg {
    width: 96%;
    height: 72%;
  }

  .gc-status {
    top: auto;
    bottom: 10px;
    left: 19%;
    right: auto;
    transform: translateX(-50%);
    font-size: 8.5px;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .gc-body {
    padding: 12px 14px 14px;
  }

  .gc-name {
    font-size: 15px;
  }

  .gc-desc {
    font-size: 12.5px;
    margin-bottom: 10px;
  }

  .showcase {
    padding: 26px 18px;
  }

  .showcase-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .ftr-inner {
    padding: 24px 14px 18px;
  }

  .ftr-top {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .ftr-games {
    grid-row: auto;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    gap: 2px 22px;
    text-align: left;
  }

  .credits-inner {
    flex-direction: column;
    gap: 4px;
  }

  .soon-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 30px 4px 22px;
  }

  .soon-art {
    order: -1;
    width: 160px;
    margin: 0 auto;
  }

  .soon-box {
    padding: 20px 18px;
  }
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 16px;
  }

  .lang select {
    width: 74px;
  }
}

/* An odd number of tiles: the last one takes the whole row. */
.showcase-links li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* ---------- shared score card (kit/report.js) ---------- */

.dj-pop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 16px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(10, 30, 26, 0.75), rgba(5, 1, 2, 0.9));
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.dj-pop[hidden] {
  display: none;
}

body.dj-pop-open {
  overflow: hidden;
}

.dj-pop-panel {
  width: min(94vw, 680px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 2px solid var(--brass);
  background-color: var(--felt);
  background-image: radial-gradient(90% 80% at 50% 20%, var(--felt-hi), var(--felt) 60%, var(--felt-deep));
  box-shadow: 0 0 0 6px #24120b, 0 0 0 7px rgba(212, 175, 106, 0.55), 0 30px 60px rgba(0, 0, 0, 0.7);
  text-align: center;
  animation: dj-pop-in 0.35s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

@keyframes dj-pop-in {
  from {
    transform: translateY(14px) scale(0.97);
    opacity: 0;
  }
}

.dj-pop-kicker {
  margin: 0 0 2px;
}

.dj-pop-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ivory);
}

.dj-pop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  text-align: left;
}

.dj-pop-grid.one {
  grid-template-columns: minmax(0, 1fr);
  max-width: 420px;
  margin: 0 auto;
}

.dj-pop-box {
  padding: 10px 14px 12px;
  border: 1px solid rgba(212, 175, 106, 0.3);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  min-width: 0;
}

.dj-pop-box h3 {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--brass-hi);
}

.dj-pop-list {
  margin: 0;
}

.dj-pop-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(212, 175, 106, 0.14);
}

.dj-pop-list > div:last-child {
  border-bottom: 0;
}

.dj-pop-list dt {
  font-size: 12.5px;
  color: var(--muted);
}

.dj-pop-list dd {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  color: var(--ivory);
  text-align: right;
  font-variant-numeric: tabular-nums lining-nums;
}

.dj-pop-list .dj-main dd {
  font-family: "Bodoni Moda", serif;
  font-size: 20px;
  color: var(--brass-hi);
}

.dj-pop-list dd[data-tone="good"] { color: var(--good); }
.dj-pop-list dd[data-tone="bad"] { color: var(--bad); }

.dj-pop-items {
  display: grid;
  gap: 4px;
  max-height: 300px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  font-size: 12.5px;
}

.dj-pop-items li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 10px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--ivory);
}

.dj-pop-items li.none {
  display: block;
  color: var(--muted);
}

.dj-pop-items .dj-y {
  color: var(--bad);
  text-decoration: line-through;
}

.dj-pop-items .dj-a {
  color: var(--good);
  font-weight: 700;
}

.dj-pop-items .dj-s {
  flex: 1 1 100%;
  color: var(--ivory);
}

.dj-pop-note {
  margin: 14px auto 12px;
  max-width: 52ch;
  font-size: 12.5px;
  color: rgba(244, 235, 214, 0.85);
}

.dj-pop-close {
  min-width: 240px;
}

@media (max-width: 640px) {
  .dj-pop-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dj-pop-title {
    font-size: 19px;
  }
}

/* ---------- shared small switch ---------- */

.dj-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.dj-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.dj-switch .dj-sw {
  position: relative;
  width: 32px;
  height: 19px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.15s;
  flex-shrink: 0;
}

.dj-switch .dj-sw::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ivory);
  transition: transform 0.15s;
}

.dj-switch input:checked + .dj-sw {
  background: var(--brass);
}

.dj-switch input:checked + .dj-sw::after {
  transform: translateX(13px);
  background: var(--room-deep);
}

.dj-switch input:focus-visible + .dj-sw {
  outline: 2px solid var(--brass-hi);
  outline-offset: 2px;
}
