@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #fcfaf7;
  --paper-deep: #f4f1ea;
  --canvas: #efebe2;
  --white: #fff;
  --ink: #0b0b0e;
  --ink-soft: #3a3a44;
  --muted: #64646e;
  --line: rgb(23 23 28 / 14%);
  --line-strong: rgb(23 23 28 / 28%);
  --orange: #fa9427;
  --orange-soft: #ffb86b;
  --blue: #2e6e8e;
  --blue-deep: #1f5872;
  --red: #c4342a;
  --green: #39775b;
  --shadow: 0 26px 54px -14px rgb(23 23 28 / 26%);
  --shadow-soft: 0 16px 34px -14px rgb(23 23 28 / 22%);
  --radius: 12px;
  --village-blur: 5px;
}

.player-notice-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.player-notice-dialog::backdrop {
  background: rgb(11 11 14 / 58%);
  backdrop-filter: blur(3px);
}

.player-notice-panel { padding: 28px; }
.player-notice-panel h2 { margin: 4px 0 12px; font-family: Fraunces, Georgia, serif; }
.player-notice-kicker { margin: 0; color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.player-notice-body { white-space: pre-line; }
.player-notice-error { color: var(--red); font-size: 13px; }
.player-notice-critical { border-color: rgb(196 52 42 / 55%); }
.maintenance-alert { margin-bottom: 22px; }

.open-match-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid rgb(46 110 142 / 30%);
  border-radius: 8px;
  background: rgb(255 255 255 / 88%);
  color: var(--ink-soft);
  font-size: 14px;
}

.open-match-warning .button {
  flex: 0 0 auto;
  white-space: nowrap;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 10% 10%, rgb(250 148 39 / 8%), transparent 28rem),
    var(--canvas);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

button,
select,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--blue);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid rgb(46 110 142 / 24%);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}

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

.site-frame {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: var(--paper-deep);
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 84%);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.brand-title,
.brand-suffix {
  font-family: Fraunces, Georgia, serif;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-suffix {
  color: var(--blue);
  font-weight: 450;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.desktop-nav a {
  padding: 8px 11px;
  border-radius: 7px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  background: rgb(46 110 142 / 10%);
  color: var(--blue-deep);
}

.access-logout-form {
  margin: 0;
}

.access-logout-button {
  padding: 7px 10px;
  border: 1px solid rgb(196 52 42 / 28%);
  border-radius: 7px;
  background: rgb(196 52 42 / 6%);
  color: var(--red);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.access-logout-button:hover {
  background: rgb(196 52 42 / 12%);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(5.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 24px;
  width: min(280px, calc(100vw - 48px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgb(255 255 255 / 97%);
  box-shadow: var(--shadow-soft);
}

.mobile-menu nav {
  display: grid;
}

.mobile-menu a {
  padding: 12px;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu a:hover {
  background: var(--paper-deep);
}

.mobile-menu p {
  margin: 8px 12px 4px;
  color: var(--muted);
  font-size: 12px;
}

.mobile-menu .access-logout-form {
  padding: 8px 12px 3px;
  border-top: 1px solid var(--line);
}

.mobile-menu .access-logout-button {
  width: 100%;
}

.access-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 34px 20px;
  background:
    linear-gradient(110deg, rgb(252 250 247 / 96%) 10%, rgb(244 241 234 / 74%) 60%, rgb(46 110 142 / 14%)),
    url("../img/konoha-village.png") center / cover fixed;
}

.access-shell {
  width: min(520px, 100%);
}

.access-card {
  padding: 34px;
  border: 1px solid rgb(46 110 142 / 22%);
  border-radius: 14px;
  background: rgb(252 250 247 / 94%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.access-brand {
  width: fit-content;
  margin-bottom: 42px;
}

.access-copy h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(38px, 8vw, 54px);
  line-height: 0.98;
}

.access-copy > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}

.access-form {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.access-form label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
}

.access-form .button {
  margin-top: 8px;
}

.access-message {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  padding: 13px 15px;
  border: 1px solid rgb(196 52 42 / 27%);
  border-radius: 8px;
  background: rgb(196 52 42 / 7%);
  color: #7c2520;
  font-size: 13px;
}

.access-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.access-languages a {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
}

.access-languages a[aria-current="page"] {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.access-legal {
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 10px;
  text-align: center;
  text-shadow: 0 1px 2px rgb(255 255 255 / 70%);
}

.site-footer {
  position: relative;
  z-index: 5;
  padding: 22px 64px 25px;
  border-top: 1px solid rgb(46 110 142 / 22%);
  background: rgb(46 110 142 / 6%);
  text-align: center;
}

.site-footer p {
  max-width: 1000px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
}

.site-footer .footer-meta {
  margin-top: 7px;
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-section {
  position: relative;
  min-height: 790px;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-backdrop img {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  object-position: 50% 30%;
  filter: blur(var(--village-blur)) saturate(0.82);
  transform: scale(1.015);
}

.hero-wash,
.hero-glow {
  position: absolute;
  inset: 0;
}

.hero-wash {
  background: linear-gradient(180deg, rgb(252 250 247 / 50%) 0%, rgb(250 247 241 / 62%) 42%, rgb(244 241 234 / 82%) 100%);
}

.hero-glow {
  width: 76%;
  height: 620px;
  background: radial-gradient(66% 74% at 20% 30%, rgb(255 255 255 / 88%) 0%, rgb(255 255 255 / 38%) 52%, transparent 80%);
}

.home-content {
  position: relative;
  z-index: 2;
  padding: 60px clamp(36px, 5.55vw, 80px) 68px;
}

.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 690px) minmax(300px, 440px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(34px, 5vw, 76px);
}

.hero-copy {
  max-width: 690px;
}

.optcgai-promo {
  position: relative;
  display: block;
  height: 124px;
  overflow: hidden;
  border-radius: 14px;
  background: #090909;
  box-shadow: 0 15px 38px rgb(20 13 7 / 24%), inset 0 1px 0 rgb(255 255 255 / 8%);
  color: #f4ead3;
  isolation: isolate;
  text-decoration: none;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.optcgai-promo:hover {
  box-shadow: 0 18px 44px rgb(20 13 7 / 32%), inset 0 1px 0 rgb(255 255 255 / 10%);
  text-decoration: none;
  transform: translateY(-2px);
}

.optcgai-promo:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.optcgai-promo::before,
.optcgai-promo::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.optcgai-promo::before {
  z-index: 1;
  background: linear-gradient(90deg, rgb(9 9 9 / 30%), rgb(9 9 9 / 8%) 58%, rgb(9 9 9 / 28%));
}

.optcgai-promo::after {
  z-index: 3;
  border: 1px solid rgb(196 154 58 / 38%);
  border-radius: inherit;
}

.optcgai-promo-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.optcgai-promo-content {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}

.optcgai-promo-mark {
  display: block;
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  border-radius: 17px;
  box-shadow: 0 7px 18px rgb(0 0 0 / 42%);
}

.optcgai-promo-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.optcgai-promo-copy strong {
  color: #f4ead3;
  font-family: Fraunces, Georgia, serif;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1;
}

.optcgai-promo-copy span {
  color: #d5ad4e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.optcgai-promo-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  margin-left: auto;
  border: 1px solid rgb(224 194 102 / 44%);
  border-radius: 50%;
  background: rgb(0 0 0 / 26%);
  color: #e0c266;
  font-size: 18px;
  line-height: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  color: var(--red);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 26px;
  height: 2px;
  background: var(--blue);
}

.hero-copy h1,
.centered-state h1 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(42px, 4.2vw, 60px);
  font-variation-settings: "opsz" 40;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
}

.status-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 10px;
  border: 1px solid rgb(57 119 91 / 22%);
  border-radius: 999px;
  background: rgb(255 255 255 / 55%);
  color: #285943;
  font-size: 12px;
  font-weight: 650;
}

.status-dot,
.waiting-line span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgb(57 119 91 / 14%);
}

.alert,
.success-banner,
.prototype-warning,
.evidence-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  padding: 13px 16px;
  border: 1px solid rgb(196 52 42 / 26%);
  border-radius: 8px;
  background: rgb(255 255 255 / 82%);
  color: var(--ink-soft);
  font-size: 14px;
}

.alert strong {
  color: var(--red);
}

.play-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 46px;
}

.play-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 94%);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgb(255 255 255 / 60%);
  backdrop-filter: blur(5px);
}

.card-accent {
  display: block;
  height: 3px;
  background: var(--orange);
}

.play-card-human .card-accent {
  background: var(--blue);
}

.play-card-body {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  gap: 20px;
  padding: 27px 29px 30px;
}

.card-heading h2,
.section-heading h2,
.settings-panel h2,
.timeline h2,
.rule-card h2,
.turn-flow h2,
.board-toolbar h1,
.phase-panel h2,
.log-panel h2 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.heading-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.heading-line > span {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.card-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-family: Fraunces, Georgia, serif;
  font-size: 15px;
  font-style: italic;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-label {
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-label-row a {
  color: var(--orange);
  font-size: 13px;
  font-weight: 550;
  text-underline-offset: 3px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 45px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--blue);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgb(46 110 142 / 12%);
}

.split-fields {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 15px;
}

.seed-details {
  color: var(--blue);
  font-size: 14px;
}

.seed-details summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seed-details[open] summary {
  margin-bottom: 9px;
}

.seed-details p,
.field-help {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
}

.button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.button:active {
  transform: translateY(0);
}

.button-full {
  width: 100%;
}

.button-orange {
  margin-top: auto;
  background: var(--orange);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%);
  color: var(--ink);
}

.button-orange:hover {
  background: linear-gradient(180deg, var(--orange-soft), var(--orange));
  box-shadow: 0 7px 20px -8px var(--orange);
}

.button-blue {
  background: var(--blue);
  color: var(--paper);
}

.button-blue:hover {
  background: #37819f;
  box-shadow: 0 7px 20px -8px var(--blue);
}

.button-outline {
  border-color: var(--blue);
  background: transparent;
  color: var(--blue-deep);
}

.button-outline:hover {
  background: rgb(46 110 142 / 9%);
}

.button-ghost {
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--ink-soft);
}

.human-host-form {
  display: grid;
  gap: 18px;
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}

.or-divider span {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.or-divider b {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.join-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 11px;
}

.join-row input {
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.feature-card {
  position: relative;
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: center;
  padding: 20px 44px 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 89%);
  color: var(--ink);
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.feature-card:hover {
  border-color: rgb(46 110 142 / 35%);
  background: linear-gradient(180deg, rgb(46 110 142 / 14%), rgb(255 255 255 / 78%));
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
  text-decoration: none;
}

.feature-card strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 21px;
}

.feature-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.feature-card i {
  position: absolute;
  top: 23px;
  right: 22px;
  color: var(--blue);
  font-size: 21px;
  font-style: normal;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 28px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
}

.page-heading > div {
  max-width: 720px;
}

.page-heading h1 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(32px, 3vw, 42px);
  font-variation-settings: "opsz" 40;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.page-heading > div > p:last-child {
  max-width: 650px;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.page-heading-actions {
  align-items: center;
}

.content-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px clamp(28px, 5vw, 68px) 70px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 31px;
}

.section-heading > p {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.section-kicker {
  margin: 0 0 5px;
  color: var(--red);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.deck-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 21px;
}

.deck-card {
  position: relative;
  overflow: hidden;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 30px -22px rgb(23 23 28 / 45%);
}

.deck-card.is-selected {
  border-color: var(--deck-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--deck-accent) 15%, transparent);
}

.deck-color-bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--deck-accent);
}

.deck-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.deck-card-head p {
  margin: 0 0 5px;
  color: var(--deck-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.deck-card h3 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 24px;
  line-height: 1.13;
}

.deck-seal {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--deck-accent);
  border-radius: 50%;
  color: var(--deck-accent);
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
}

.deck-card-art {
  width: 68px;
  aspect-ratio: 600 / 838;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--deck-accent) 45%, var(--line));
  border-radius: 5px;
  background: var(--paper-deep);
  box-shadow: 0 8px 18px -10px rgb(23 23 28 / 70%);
  object-fit: contain;
}

.deck-leader {
  margin: 18px 0 0;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.deck-description {
  min-height: 67px;
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.deck-counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 18px;
  border-block: 1px solid var(--line);
}

.deck-counts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 11px;
}

.deck-counts div + div {
  border-left: 1px solid var(--line);
}

.deck-counts dt {
  color: var(--muted);
  font-size: 11px;
}

.deck-counts dd {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 19px;
  font-weight: 650;
}

.deck-metrics {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.deck-metrics div {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 9px;
}

.deck-metrics span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.deck-metrics i {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--paper-deep);
}

.deck-metrics b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--deck-accent);
}

.button-deck {
  border-color: var(--deck-accent);
  background: transparent;
  color: var(--ink);
}

.deck-card.is-selected .button-deck,
.button-deck:hover {
  background: var(--deck-accent);
  color: var(--white);
}

.custom-decks-section {
  margin-top: 55px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.custom-deck-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.custom-deck-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.custom-deck-item {
  position: relative;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
}

.custom-deck-item h3 {
  margin: 0 35px 5px 0;
  font-family: Fraunces, Georgia, serif;
}

.custom-deck-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.custom-deck-item button {
  position: absolute;
  top: 13px;
  right: 13px;
}

.deck-dialog {
  width: min(560px, calc(100% - 30px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.deck-dialog::backdrop {
  background: rgb(11 11 14 / 48%);
  backdrop-filter: blur(3px);
}

.dialog-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: var(--paper);
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.dialog-heading h2 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
}

.dialog-panel > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 22px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.settings-shell {
  display: grid;
  max-width: 980px;
  gap: 19px;
}

.settings-controls {
  display: grid;
  gap: 19px;
}

.success-banner {
  margin: 0;
  border-color: rgb(57 119 91 / 25%);
  background: rgb(57 119 91 / 8%);
  color: #285943;
  font-weight: 650;
}

.settings-panel {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.settings-panel-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.settings-number,
.rule-number {
  color: var(--orange);
  font-family: Fraunces, Georgia, serif;
  font-size: 14px;
  font-weight: 750;
}

.settings-panel h2 {
  font-size: 24px;
}

.settings-panel-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.language-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
  padding-left: 35px;
}

.setting-list {
  display: grid;
  gap: 0;
  padding-left: 35px;
}

.setting-row {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.setting-row:first-child {
  border-top: 0;
}

.setting-row span {
  display: grid;
  gap: 3px;
}

.setting-row strong {
  font-size: 14px;
}

.setting-row small {
  color: var(--muted);
  font-size: 12px;
}

input[role="switch"] {
  position: relative;
  width: 44px;
  min-width: 44px;
  height: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #d8d4cd;
  appearance: none;
  cursor: pointer;
}

input[role="switch"]::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px rgb(23 23 28 / 24%);
  content: "";
  transition: transform 150ms ease;
}

input[role="switch"]:checked {
  background: var(--blue);
}

input[role="switch"]:checked::after {
  transform: translateX(20px);
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.changelog-shell {
  max-width: 900px;
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline > li {
  display: grid;
  grid-template-columns: 34px 1fr;
}

.timeline-marker {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-marker::after {
  position: absolute;
  top: 16px;
  bottom: 0;
  width: 1px;
  background: rgb(46 110 142 / 30%);
  content: "";
}

.timeline > li:last-child .timeline-marker::after {
  display: none;
}

.timeline-marker span {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  margin-top: 7px;
  border: 3px solid var(--paper-deep);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}

.timeline article {
  margin-bottom: 22px;
  padding: 23px 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.release-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.release-meta strong {
  color: var(--red);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release-meta time {
  color: var(--muted);
  font-size: 11px;
}

.timeline h2 {
  font-size: 24px;
}

.timeline article > p {
  margin: 10px 0 15px;
  color: var(--muted);
  font-size: 14px;
}

.release-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.release-tags span,
.evidence-badge,
.live-pill {
  padding: 4px 8px;
  border: 1px solid rgb(46 110 142 / 24%);
  border-radius: 99px;
  background: rgb(46 110 142 / 7%);
  color: var(--blue-deep);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.evidence-badge {
  align-self: flex-end;
  margin-bottom: 7px;
  border-color: rgb(196 52 42 / 30%);
  background: rgb(196 52 42 / 7%);
  color: var(--red);
  font-size: 10px;
}

.evidence-notice {
  display: block;
  border-color: rgb(250 148 39 / 28%);
  background: rgb(250 148 39 / 8%);
}

.evidence-notice strong {
  color: #7a430d;
}

.evidence-notice p {
  margin: 3px 0 0;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.rule-card {
  position: relative;
  padding: 24px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.rule-number {
  position: absolute;
  top: 23px;
  right: 24px;
}

.rule-card h2 {
  padding-right: 35px;
  font-size: 23px;
}

.rule-card ul {
  display: grid;
  gap: 9px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.rule-card li {
  position: relative;
  padding-left: 17px;
  color: var(--muted);
  font-size: 14px;
}

.rule-card li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.turn-flow {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.turn-flow h2 {
  font-size: 22px;
}

.turn-flow ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.turn-flow li {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 0;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 700;
}

.turn-flow li::before {
  content: none;
}

.turn-flow li:not(:last-child)::after {
  color: var(--orange);
  content: "→";
}

.centered-state {
  display: flex;
  min-height: 620px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background:
    linear-gradient(rgb(252 250 247 / 84%), rgb(244 241 234 / 92%)),
    url("../img/konoha-village.png") center / cover;
  text-align: center;
}

.centered-state > p:not(.eyebrow, .waiting-line) {
  max-width: 590px;
  margin: 12px auto 25px;
  color: var(--muted);
}

.state-seal {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  margin-bottom: 22px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: rgb(255 255 255 / 62%);
}

.state-seal span {
  width: 35px;
  height: 35px;
  border: 3px solid var(--orange);
  border-left-color: transparent;
  border-radius: 50%;
}

.lobby-code-block {
  display: flex;
  min-width: min(480px, 100%);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 88%);
  box-shadow: var(--shadow-soft);
}

.lobby-code-block > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lobby-code-block strong {
  font-size: 25px;
  letter-spacing: 0.16em;
}

.waiting-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
}

.waiting-line span {
  animation: pulse 1.6s ease infinite;
}

@keyframes pulse {
  50% { opacity: 0.35; }
}

.error-code {
  color: var(--orange);
  font-family: Fraunces, Georgia, serif;
  font-size: 100px;
  font-weight: 750;
  line-height: 0.9;
  opacity: 0.45;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  max-width: min(380px, calc(100% - 40px));
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow-soft);
  color: var(--white);
  font-size: 13px;
}

.board-shell {
  padding: 28px;
  background: var(--paper-deep);
}

.board-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.board-toolbar h1 {
  font-size: 32px;
}

.match-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.match-meta span,
.match-meta a {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--muted);
  font-size: 10px;
  text-decoration: none;
}

.match-meta b {
  color: var(--ink);
}

.prototype-warning {
  margin-bottom: 15px;
  border-color: rgb(250 148 39 / 30%);
  background: rgb(250 148 39 / 8%);
}

.prototype-warning strong {
  color: #7a430d;
}

.playmat {
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgb(196 52 42 / 24%);
  border-radius: var(--radius);
  background:
    linear-gradient(rgb(252 250 247 / 88%), rgb(244 241 234 / 91%)),
    url("../img/konoha-village.png") center / cover;
  box-shadow: inset 0 0 90px rgb(196 52 42 / 6%);
}

.player-half {
  padding: 8px;
}

.opponent-half {
  transform: rotate(180deg);
}

.mat-board-grid {
  display: grid;
  min-height: 354px;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 19vw, 278px);
  gap: 10px;
}

.mat-main-zones {
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(145px, 1.25fr) minmax(92px, 0.75fr) minmax(105px, 0.9fr);
  gap: 8px;
}

.mat-area,
.mat-utility-zone {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 2px solid rgb(225 108 35 / 63%);
  border-radius: 8px;
  background: rgb(255 255 255 / 37%);
  box-shadow: inset 0 0 22px rgb(250 148 39 / 4%);
}

.mat-area h2 {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 0;
  width: 100%;
  color: var(--orange);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(15px, 1.7vw, 25px);
  font-weight: 850;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  opacity: 0.2;
}

.character-slots,
.support-slots {
  position: relative;
  z-index: 1;
  display: grid;
  height: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  padding: 22px 12px 10px;
}

.support-slots {
  gap: 0;
  padding: 8px;
}

.zone-slot {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgb(225 108 35 / 19%);
  border-radius: 5px;
  background: rgb(255 255 255 / 22%);
  color: var(--muted);
  font-style: normal;
  text-align: center;
}

.support-slots .zone-slot {
  border-radius: 0;
}

.support-slots .zone-slot:first-child {
  border-radius: 5px 0 0 5px;
}

.support-slots .zone-slot:last-child {
  border-radius: 0 5px 5px 0;
}

.zone-slot.occupied {
  border-color: rgb(46 110 142 / 54%);
  background: linear-gradient(145deg, rgb(46 110 142 / 11%), rgb(255 255 255 / 52%));
}

.zone-slot.face-down {
  background:
    repeating-linear-gradient(45deg, rgb(46 110 142 / 11%) 0 4px, transparent 4px 8px),
    rgb(255 255 255 / 47%);
}

.zone-slot img {
  width: 100%;
  height: 100%;
  padding: 3px;
  border-radius: 6px;
  filter: drop-shadow(0 5px 5px rgb(23 23 28 / 22%));
  object-fit: contain;
}

.zone-slot b {
  overflow: hidden;
  max-width: 100%;
  font-family: Fraunces, Georgia, serif;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zone-slot small {
  font-size: 8px;
}

.mat-chakra-area {
  display: grid;
  place-items: center;
}

.chakra-cards {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.chakra-card {
  display: grid;
  width: 38px;
  height: 53px;
  place-items: center;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 5px 10px -7px rgb(23 23 28 / 70%);
  color: var(--orange);
  font-style: normal;
  transition: transform 150ms ease;
}

.chakra-card.spent {
  background: var(--blue-deep);
  color: rgb(255 255 255 / 72%);
}

.chakra-card b {
  font-size: 12px;
}

.mat-utility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mat-utility-zone {
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--blue-deep);
  text-align: center;
}

.mat-pile-zone span,
.mat-summon-zone > span {
  position: relative;
  z-index: 2;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mat-pile-zone b {
  position: relative;
  z-index: 2;
  font-family: Fraunces, Georgia, serif;
  font-size: 24px;
}

.trash-zone {
  color: var(--red);
}

.exclusion-zone {
  border-style: dashed;
  color: var(--red);
}

.mat-phase-zone {
  padding: 7px 9px;
  border-color: rgb(46 110 142 / 35%);
}

.mat-phase-zone ol {
  display: grid;
  width: 100%;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mat-phase-zone li {
  position: relative;
  padding: 3px 5px;
  border-radius: 999px;
  background: rgb(46 110 142 / 10%);
  color: var(--muted);
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mat-phase-zone li.active {
  background: var(--orange);
  color: var(--ink);
}

.leader-zone {
  padding: 5px;
  border-color: rgb(225 108 35 / 72%);
  background: linear-gradient(145deg, rgb(250 148 39 / 12%), rgb(255 255 255 / 58%));
  transition: transform 150ms ease;
}

.leader-card-art,
.utility-card-art {
  position: absolute;
  inset: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  border-radius: 4px;
  filter: drop-shadow(0 4px 5px rgb(23 23 28 / 19%));
  object-fit: contain;
  transition: transform 150ms ease;
}

.leader-card-copy {
  position: relative;
  z-index: 2;
  display: flex;
  width: calc(100% + 2px);
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  padding: 3px;
  border-radius: 4px;
  background: rgb(252 250 247 / 88%);
  box-shadow: 0 2px 8px rgb(23 23 28 / 14%);
}

.leader-zone.is-rested .leader-card-art,
.mat-summon-zone.is-rested .utility-card-art {
  transform: rotate(90deg) scale(0.72);
}

.leader-zone small {
  color: var(--red);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.leader-zone strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 11px;
}

.leader-zone span {
  color: var(--blue-deep);
  font-size: 7px;
  font-weight: 700;
}

.mat-summon-zone {
  padding: 5px;
}

.mat-summon-zone > span {
  width: calc(100% - 8px);
  margin-top: auto;
  padding: 3px;
  border-radius: 4px;
  background: rgb(252 250 247 / 86%);
}

.player-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 8px 4px 0;
  padding: 6px 10px;
  border: 1px solid rgb(225 108 35 / 18%);
  border-radius: 7px;
  background: rgb(252 250 247 / 62%);
}

.player-summary > div {
  display: grid;
}

.player-summary > div span {
  color: var(--red);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.player-summary > div strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 17px;
}

.player-summary dl {
  display: flex;
  margin: 0;
}

.player-summary dl div {
  min-width: 66px;
  padding: 4px 10px;
  border-left: 1px solid var(--line);
  text-align: center;
}

.player-summary dt {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.player-summary dd {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 17px;
  font-weight: 700;
}

.board-centerline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 24px;
  color: var(--red);
}

.board-centerline span {
  height: 1px;
  flex: 1;
  background: rgb(196 52 42 / 34%);
}

.board-centerline b {
  font-size: 7px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.board-controls {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 15px;
  margin-top: 15px;
}

.phase-panel,
.log-panel {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.section-heading-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.phase-panel h2,
.log-panel h2 {
  font-size: 20px;
}

.section-heading-inline > span:not(.live-pill) {
  color: var(--muted);
  font-size: 11px;
}

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

.phase-list li {
  padding: 8px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.phase-list li.active {
  border-color: var(--orange);
  background: rgb(250 148 39 / 12%);
  color: #7a430d;
}

.control-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.control-buttons .button {
  min-height: 39px;
  min-width: min(100%, 180px);
  flex: 1;
  margin: 0;
  padding: 8px 11px;
  font-size: 12px;
}

.control-buttons .button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.engine-error {
  margin: 10px 0 0;
  color: var(--red);
  font-size: 12px;
}

.match-result {
  border-color: rgb(46 110 142 / 45%);
}

.log-panel ol {
  display: flex;
  max-height: 92px;
  flex-direction: column-reverse;
  gap: 5px;
  margin: 13px 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.log-panel li {
  padding-left: 12px;
  border-left: 2px solid rgb(46 110 142 / 30%);
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-intro {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 28px;
  }

  .optcgai-promo {
    height: 104px;
  }

  .optcgai-promo-content {
    gap: 11px;
    padding: 13px 14px;
  }

  .optcgai-promo-mark {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .optcgai-promo-copy strong {
    font-size: 17px;
  }

  .play-grid,
  .deck-grid {
    gap: 18px;
  }

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

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

  .deck-card:last-child {
    grid-column: span 2;
  }

  .mat-board-grid {
    min-height: 330px;
    grid-template-columns: minmax(0, 1fr) 210px;
  }

  .board-shell {
    padding: 18px;
  }
}

@media (max-width: 760px) {
  .open-match-warning {
    align-items: stretch;
    flex-direction: column;
  }

  .open-match-warning .button {
    text-align: center;
  }

  .site-header {
    min-height: 66px;
    padding: 12px 18px;
  }

  .access-page {
    align-items: start;
    padding: 18px 12px;
    background-attachment: scroll;
  }

  .access-card {
    padding: 27px 23px;
  }

  .access-brand {
    margin-bottom: 34px;
  }

  .brand-suffix {
    display: none;
  }

  .brand-title {
    font-size: 18px;
  }

  .home-content {
    padding: 39px 18px 45px;
  }

  .hero-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .optcgai-promo {
    height: 62px;
    border-radius: 10px;
  }

  .optcgai-promo-content {
    gap: 9px;
    padding: 8px 11px;
  }

  .optcgai-promo-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .optcgai-promo-copy {
    gap: 1px;
  }

  .optcgai-promo-copy strong {
    font-size: 14px;
  }

  .optcgai-promo-copy span {
    font-size: 10px;
    line-height: 1.15;
  }

  .optcgai-promo-arrow {
    width: 29px;
    height: 29px;
    font-size: 15px;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-backdrop img {
    object-position: 58% 20%;
  }

  .hero-glow {
    width: 100%;
    height: 480px;
    background: linear-gradient(180deg, rgb(255 255 255 / 75%), transparent);
  }

  .hero-copy h1,
  .centered-state h1 {
    font-size: 39px;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 15px;
  }

  .play-grid,
  .feature-grid,
  .deck-grid,
  .custom-deck-list,
  .rules-grid,
  .board-controls {
    grid-template-columns: 1fr;
  }

  .play-grid {
    margin-top: 32px;
  }

  .play-card-body {
    min-height: 0;
    padding: 23px 20px 25px;
  }

  .split-fields {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    gap: 10px;
    margin-top: 22px;
  }

  .feature-card {
    min-height: 96px;
  }

  .site-footer {
    padding: 20px 18px;
  }

  .page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
  }

  .page-heading h1 {
    font-size: 32px;
  }

  .page-heading-actions .button {
    width: 100%;
    margin: 0;
  }

  .page-heading .evidence-badge {
    align-self: flex-start;
  }

  .content-shell {
    padding: 32px 18px 48px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .section-heading > p {
    text-align: left;
  }

  .deck-card:last-child {
    grid-column: auto;
  }

  .deck-description {
    min-height: auto;
  }

  .settings-panel {
    padding: 22px 19px;
  }

  .language-form {
    grid-template-columns: 1fr;
  }

  .language-form,
  .setting-list {
    padding-left: 0;
  }

  .settings-actions {
    flex-direction: column;
  }

  .lobby-code-block {
    flex-direction: column;
  }

  .board-shell {
    padding: 12px;
  }

  .board-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .match-meta {
    justify-content: flex-start;
  }

  .prototype-warning {
    flex-direction: column;
  }

  .playmat {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .player-half,
  .board-centerline {
    min-width: 780px;
  }
}

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