@font-face {
  font-family: Instrument Serif;
  src: url(assets/instrument-serif-latin.woff2);
}
@font-face {
  font-family: DM Sans;
  src: url(assets/dm-sans-latin.woff2);
}
:root {
  color-scheme: dark;
  --bg: #080d0e;
  --panel: #101818;
  --ink: #edf5ef;
  --muted: #9aaea9;
  --mint: #a8f5dc;
  --line: #2c3938;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: ui-monospace, Consolas, monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
}
[hidden] {
  display: none !important;
}
button,
select,
input {
  font: inherit;
  color: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  background: none;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}
button:disabled,
input:disabled,
select:disabled {
  opacity: 0.52;
  cursor: default;
}
header {
  border-bottom: 1px solid var(--line);
  background: #0b1111;
}
.bar,
main,
#battle {
  width: min(1280px, calc(100% - 8vw));
  margin: auto;
}
.bar {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 52px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.9px;
}
.logo {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid #95ccb7;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.logo:before {
  content: "";
  width: 20px;
  height: 11px;
  border-radius: 14px 14px 5px 5px;
  background:
    radial-gradient(circle at 32% 45%, #183229 1.6px, transparent 2px),
    radial-gradient(circle at 65% 27%, #183229 1.3px, transparent 1.9px),
    var(--mint);
  transform: translateY(-2px) rotate(-8deg);
}
.logo:after {
  content: "";
  position: absolute;
  top: 18px;
  left: 13px;
  width: 7px;
  height: 8px;
  border-radius: 0 0 4px 4px;
  background: var(--mint);
}
nav {
  display: flex;
  gap: 28px;
  height: 100%;
  align-items: stretch;
}
nav > * {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
  padding: 0 2px;
  position: relative;
}
nav .active {
  color: var(--mint);
}
nav .active:after {
  position: absolute;
  bottom: 0;
  content: "";
  width: 100%;
  height: 2px;
  background: var(--mint);
}
.sound {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  color: #bed0c7;
  font-size: 13px;
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 30px;
}
.wave {
  font-size: 12px;
  letter-spacing: -3px;
  color: var(--mint);
  padding-right: 3px;
}
.hero {
  position: relative;
  isolation: isolate;
  min-height: 452px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #2b4540;
  border-radius: 16px;
  background: #070e0e;
  margin: 30px 0 35px;
}
.hero-art {
  position: absolute;
  inset: 0 0 0 24%;
  z-index: -1;
  overflow: hidden;
  background: #06100f;
}
.aurora {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 66% 55%, #154c46 0, transparent 58%);
}
.wood {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  filter: saturate(0.94) brightness(0.85);
  object-position: 62% 48%;
}
.hero-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #070e0e, transparent 37%),
    linear-gradient(
      0deg,
      #050c0d 0,
      transparent 27%,
      transparent 85%,
      #08110f85
    );
}
.hero-fighter {
  position: absolute;
  right: 24%;
  bottom: 21%;
  width: clamp(70px, 10vw, 148px);
  height: auto;
  filter: drop-shadow(3px 8px 9px #001d18);
  transform: rotate(5deg);
}
.hero-copy {
  padding: 38px 0 38px clamp(22px, 4.5vw, 72px);
  width: 48%;
}
.eyebrow,
.art-caption,
.card-index,
.tag {
  font: 600 10px/1.4 var(--mono);
  letter-spacing: 1.8px;
  color: var(--mint);
  display: flex;
  gap: 10px;
  align-items: center;
}
.signal {
  height: 7px;
  width: 7px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 10px #7effd27a;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
}
h1 {
  font-size: clamp(76px, 7.25vw, 112px);
  line-height: 0.83;
  letter-spacing: -0.044em;
  margin: 23px 0 18px;
}
h1 em {
  color: var(--mint);
  font-weight: 400;
}
.hero p {
  max-width: 380px;
  line-height: 1.6;
  color: #b5c4bd;
  font-size: 15px;
}
.hero-actions,
.actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 23px;
  flex-wrap: wrap;
}
.primary,
.outline,
.plain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 650;
}
.primary,
.outline {
  padding: 11px 18px;
  border-radius: 7px;
}
.primary {
  background: var(--mint);
  color: #11231c;
  border: 1px solid var(--mint);
}
.primary:hover {
  background: #c7ffe9;
}
.outline {
  background: #172320;
  border: 1px solid #3a514b;
  color: #d8eee4;
}
.plain {
  padding: 7px 0;
  color: #d5e7df;
  font-weight: 500;
}
.plain span {
  color: var(--mint);
  font-size: 17px;
}
.triangle {
  border: 5px solid transparent;
  border-left: 8px solid currentColor;
  border-right: 0;
}
.art-caption {
  position: absolute;
  bottom: 25px;
  right: 28px;
  font-size: 9px;
  color: #c4ded6;
}
.art-caption b {
  color: var(--mint);
}
.art-caption i {
  height: 1px;
  width: 28px;
  background: #80a59a;
}
.star {
  font: 19px/1 var(--serif);
}
.atlas-head,
.battle-title,
.lobby-head,
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
h2 {
  font-size: clamp(37px, 4.25vw, 62px);
  line-height: 1.08;
  letter-spacing: -1.6px;
}
.atlas-head h2 {
  margin-top: 6px;
}
.acts {
  border: 1px solid var(--line);
  background: #101817;
  border-radius: 30px;
  padding: 4px;
  display: flex;
}
.acts button {
  border-radius: 22px;
  padding: 6px 16px;
  font-size: 13px;
  color: #aec0b8;
}
.acts button.selected {
  background: #254039;
  color: #c6ffe7;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 20px 0 45px;
}
.card {
  display: block;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #111918;
  overflow: hidden;
  padding: 0;
  transition:
    transform 0.18s,
    border 0.18s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #648d7d;
}
.card-picture {
  height: clamp(120px, 12vw, 190px);
  background-color: #020605;
  overflow: hidden;
  position: relative;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
}
.card-index {
  position: absolute;
  left: 14px;
  top: 13px;
  background: #08100ee0;
  padding: 4px 7px;
  border: 1px solid #324740;
  border-radius: 4px;
  font-size: 9px;
  letter-spacing: 1.1px;
}
.card-body {
  display: flex;
  padding: 13px 18px 16px;
  align-items: center;
  justify-content: space-between;
}
.card h3 {
  font-size: 29px;
  letter-spacing: -0.6px;
}
.card small {
  color: var(--muted);
  font-size: 12px;
}
.arrow {
  border: 1px solid var(--line);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--mint);
}
dialog {
  width: min(710px, calc(100% - 24px));
  max-height: 90dvh;
  border-radius: 16px;
  border: 1px solid #40574d;
  background: #101918;
  color: var(--ink);
  padding: 0;
  box-shadow: 0 24px 100px #000a;
}
dialog::backdrop {
  background: #010605cd;
  backdrop-filter: blur(5px);
}
#modal {
  padding: clamp(20px, 3.5vw, 38px);
}
.dialog-head {
  margin-bottom: 20px;
}
.dialog-head h2 {
  font-size: 40px;
}
.close {
  border: 1px solid var(--line);
  border-radius: 50%;
  height: 34px;
  width: 34px;
  font-size: 23px;
  line-height: 1;
  color: var(--muted);
}
.muted,
.match-help,
#modal p {
  color: var(--muted);
}
.guide-list {
  display: grid;
  gap: 13px;
  margin: 16px 0;
}
.guide-list b {
  color: var(--mint);
}
.small {
  font-size: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
}
input,
select {
  background: #0a1211;
  border: 1px solid #3b4b45;
  border-radius: 5px;
  padding: 8px 10px;
  min-width: 0;
  color: #e2f3e8;
}
input {
  width: 100%;
}
.row {
  display: flex;
  align-items: end;
  gap: 10px;
}
.row > .field {
  flex: 1;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.segment {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.segment h3 {
  font-size: 25px;
  margin-bottom: 10px;
}
.message {
  color: #ffd0a8 !important;
  margin-top: 9px;
}
.room-code {
  font: 600 22px var(--mono);
  letter-spacing: 3px;
  color: var(--mint);
}
.seats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}
.seat {
  border-radius: 22px;
  border: 1px solid var(--line);
  padding: 3px 10px;
  font-size: 12px;
}
.seat i,
.stat i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  margin-right: 5px;
}
.switch {
  display: flex;
  gap: 7px;
}
.switch button {
  flex: 1;
}
.switch .selected {
  border-color: var(--mint);
  color: var(--mint);
}
.guide-art {
  width: 100%;
  height: 125px;
  object-fit: contain;
  background: #030706;
  border-radius: 7px;
  margin-bottom: 10px;
}
.scene-detail {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  border-radius: 8px;
}
.skill-list {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  font-size: 13px;
}
.skill-list b {
  color: var(--mint);
}
#battle {
  padding: 18px 0;
}
.battle-title {
  margin-bottom: 10px;
}
.battle-title h2 {
  font-size: 40px;
}
.battle-title .eyebrow {
  margin-bottom: 3px;
}
#score {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.stat {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font: 12px var(--mono);
  background: #111a17;
}
.clock {
  margin-left: auto;
}
.out {
  opacity: 0.48;
}
#stage {
  position: relative;
  background: #030606;
  border: 1px solid #314741;
  border-radius: 12px;
  overflow: hidden;
}
#board {
  width: 100%;
  height: min(50vh, 535px);
  display: block;
  touch-action: none;
}
#captions {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 6px;
  pointer-events: none;
  text-align: center;
  font: 600 18px/1.05 var(--sans);
  color: white;
  text-shadow: 0 1px 4px black;
}
#captions span {
  display: inline-block;
  background: #000c;
  border-radius: 3px;
  padding: 3px 8px;
}
#captions small {
  font-size: 10px;
  font-weight: 450;
}
#panels {
  margin: 10px 0;
  display: grid;
  gap: 8px;
}
.controls {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.controls button,
.pad button {
  background: #1c2c27;
  border: 1px solid #3c524b;
  border-radius: 7px;
  padding: 10px 14px;
  color: #ebfff5;
  font-weight: 600;
  touch-action: none;
  user-select: none;
}
.controls .launch {
  background: var(--mint);
  color: #153127;
}
.controls small {
  color: var(--muted);
  margin-left: 4px;
}
.panel-top,
.vitals {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.panel-top {
  font-size: 13px;
  color: var(--muted);
}
.vitals {
  font: 12px var(--mono);
  color: #c4d8d0;
}
.meter {
  position: relative;
  width: min(220px, 42vw);
  height: 12px;
  overflow: hidden;
  border-radius: 20px;
  background: #26312e;
}
.meter i {
  position: absolute;
  height: 100%;
  background: #4b9f85;
}
.meter b {
  position: absolute;
  top: 0;
  width: 3px;
  height: 100%;
  background: white;
}
.pad {
  display: inline-grid;
  grid-template-columns: repeat(3, 34px);
  grid-template-rows: 24px 24px;
  gap: 2px;
}
.pad button {
  padding: 0;
}
.pad button:first-child {
  grid-column: 2;
}
.pad button:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}
.match-help {
  font-size: 12px;
}
.guide-list kbd,
kbd {
  font: 11px var(--mono);
  padding: 2px 5px;
  background: #21312a;
  border-radius: 3px;
}
.game-active nav,
.game-active .brand {
  pointer-events: none;
}
.notice {
  color: var(--mint);
  font-size: 13px;
}
.art-caption,
.hero-art {
  pointer-events: none;
}
@media (max-width: 760px) {
  .bar,
  main,
  #battle {
    width: calc(100% - 28px);
  }
  .bar {
    height: 59px;
    gap: 20px;
  }
  .brand {
    font-size: 16px;
    gap: 7px;
  }
  .logo {
    transform: scale(0.9);
  }
  nav {
    gap: 14px;
  }
  nav > * {
    font-size: 12px;
  }
  .hero {
    min-height: 410px;
    margin: 18px 0 26px;
  }
  .hero-copy {
    width: 58%;
    padding-right: 4px;
  }
  .hero p {
    font-size: 14px;
  }
  .hero-art {
    left: 19%;
  }
  .hero-fighter {
    right: 15%;
    width: 95px;
    bottom: 25%;
  }
  .atlas-head {
    align-items: end;
  }
  .acts button {
    padding: 5px 9px;
  }
  .cards {
    gap: 9px;
  }
  .card-body {
    padding: 10px;
  }
  .card h3 {
    font-size: 23px;
  }
  .arrow {
    display: none;
  }
  .card-index {
    left: 8px;
    top: 8px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .art-caption {
    right: 15px;
    bottom: 16px;
  }
  .controls button {
    padding: 9px 11px;
  }
  .match-help {
    margin-bottom: 10px;
  }
}
@media (max-width: 550px) {
  .bar {
    gap: 12px;
  }
  .brand {
    font-size: 16px;
  }
  .sound {
    padding: 6px 8px;
    font-size: 11px;
  }
  .sound .wave {
    display: none;
  }
  nav {
    gap: 9px;
  }
  .hero {
    min-height: 456px;
    align-items: end;
  }
  .hero-art {
    inset: 0 0 17% 8%;
  }
  .wood {
    object-position: 58% center;
  }
  .hero-art:after {
    background:
      linear-gradient(0deg, #070e0e 0%, #070e0e08 65%),
      linear-gradient(90deg, #070e0e55, transparent 60%);
  }
  .hero-copy {
    width: 100%;
    padding: 22px;
    position: relative;
    background: linear-gradient(
      0deg,
      #070e0e 12%,
      #070e0eaa 37%,
      transparent 100%
    );
  }
  .hero-copy h1 {
    font-size: 76px;
    margin: 12px 0;
  }
  .hero p {
    max-width: 275px;
    line-height: 1.45;
  }
  .hero-fighter {
    width: 87px;
    right: 15%;
    bottom: 48%;
  }
  .hero-actions {
    margin-top: 17px;
    gap: 14px;
  }
  .art-caption {
    top: 13px;
    bottom: auto;
    font-size: 8px;
  }
  .atlas-head {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .acts {
    width: 100%;
  }
  .acts button {
    flex: 1;
  }
  .cards {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }
  .card {
    display: grid;
    grid-template-columns: 39% 1fr;
  }
  .card-picture {
    height: 88px;
  }
  .card-body {
    padding: 10px 14px;
  }
  .arrow {
    display: grid;
  }
  .card-index {
    font-size: 8px;
    padding: 2px 4px;
  }
  .grid {
    gap: 8px;
  }
  .battle-title h2 {
    font-size: 32px;
  }
  #board {
    height: min(49dvh, 400px);
  }
  .controls {
    gap: 5px;
  }
  .controls small {
    display: none;
  }
  .controls button {
    padding: 10px 9px;
    font-size: 13px;
  }
  .panel-top,
  .vitals {
    gap: 7px;
  }
  .skill-list {
    grid-template-columns: 1fr;
  }
  .art-caption i {
    width: 15px;
  }
}
@media (max-width: 375px) {
  .bar {
    gap: 7px;
  }
  .brand {
    font-size: 14px;
  }
  .sound {
    font-size: 10px;
  }
  nav {
    gap: 7px;
  }
  .hero-actions {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card {
    transition: none;
  }
}
@media (max-width: 550px) {
  .brand {
    white-space: nowrap;
  }
  .bar {
    gap: 10px;
  }
  .sound {
    white-space: nowrap;
  }
  .game-active nav {
    display: none;
  }
  .game-active .bar {
    height: 46px;
  }
  .game-active .brand {
    font-size: 15px;
  }
  .game-active #battle {
    padding-top: 10px;
  }
  .game-active .battle-title .eyebrow {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  .game-active .battle-title .outline {
    white-space: nowrap;
    font-size: 12px;
    padding: 8px 10px;
  }
  #board {
    height: clamp(255px, 43dvh, 390px);
  }
  .pad {
    grid-template-columns: repeat(3, 29px);
    grid-template-rows: 25px 25px;
  }
  .controls .pad button {
    padding: 0;
  }
  .pad button:nth-child(3) {
    grid-area: 2/2;
  }
  .pad button:nth-child(4) {
    grid-area: 2/3;
  }
  .controls button {
    min-height: 34px;
  }
  .controls .pad button {
    min-height: 24px;
  }
}
