@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg: #11121b;
  --panel: #1b1c28;
  --muted: #999cac;
  --text: #f6f5f9;
  --lime: #d6ff67;
  --line: #30313f;
  font-family: Inter, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-synthesis: none;
}
.project-page-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  border-bottom: 1px solid #ffffff15;
  padding: 12px 18px;
}
.project-page-tabs a {
  padding: 8px 18px;
  color: #aeb5c9;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
}
.project-page-tabs a:hover {
  color: #fff;
  background: #ffffff08;
}
.project-page-tabs a[aria-current] {
  color: #d6ff67;
  background: #d6ff670e;
}
.in-battle .project-page-tabs {
  display: none;
}
.history-invite {
  display: block;
  padding: 23px 25px;
  margin-top: 28px;
  border: 1px solid #d6ff6738;
  border-radius: 13px;
  background: #d6ff6706;
}
.history-invite span {
  display: block;
  font:
    700 10px Arial,
    sans-serif;
  letter-spacing: 0.14em;
  color: #d6ff67;
}
.history-invite strong {
  display: block;
  font-size: 18px;
  margin-top: 11px;
  font-weight: 650;
  color: #e2e8d6;
}
.history-invite small {
  display: block;
  font-size: 13px;
  margin-top: 10px;
  color: #9faa99;
}
.history-invite:hover {
  background: #d6ff670d;
}
@media (max-width: 560px) {
  .project-page-tabs {
    gap: 3px;
    padding: 9px 12px;
  }
  .project-page-tabs a {
    font-size: 12px;
    padding: 8px 12px;
  }
  .history-invite {
    padding: 20px;
  }
  .history-invite strong {
    font-size: 16px;
    line-height: 1.6;
  }
  .history-invite small {
    font-size: 12px;
    line-height: 1.7;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  cursor: pointer;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 5px;
}
button:focus:not(:focus-visible) {
  outline: none;
}
::selection {
  background: var(--lime);
  color: var(--bg);
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  background: var(--lime);
  color: #111;
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.topbar {
  height: 100px;
  max-width: 1480px;
  margin: auto;
  padding: 0 56px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 28px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  background: none;
  font:
    900 19px/0.91 Arial,
    sans-serif;
  letter-spacing: 1px;
  padding: 0;
}
.brand-second {
  display: block;
  margin-top: 6px;
  font-size: 25px;
  letter-spacing: 2px;
}
.brand-dot {
  color: var(--lime);
}
.brand-icon {
  width: 43px;
  height: 45px;
  display: flex;
  align-items: center;
  gap: 5px;
  transform: rotate(-12deg);
}
.brand-icon i {
  display: block;
  background: var(--lime);
  border-radius: 3px;
  width: 8px;
  height: 25px;
}
.brand-icon i:nth-child(2) {
  height: 41px;
}
.brand-icon i:nth-child(3) {
  height: 32px;
}
.creator-tag {
  margin-left: 22px;
  color: #9398aa;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
}
.topbar nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-button {
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  font-size: 14px;
  color: #d6d7e1;
  padding: 12px 0;
}
.in-battle .trailer-link {
  display: none;
}
.trailer-page {
  background:
    radial-gradient(ellipse at 80% 0%, #202b233f, transparent 60%), #11121b;
}
.trailer-header {
  max-width: 1260px;
  margin: auto;
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.trailer-wordmark {
  color: #f4f5ef;
  font:
    900 22px Arial,
    sans-serif;
  letter-spacing: -1px;
  text-decoration: none;
}
.trailer-wordmark span {
  color: #d6ff67;
}
.trailer-header .secondary-button {
  padding: 12px 18px;
  text-decoration: none;
}
.trailer-main {
  max-width: 1192px;
  margin: 55px auto 0;
  padding: 0 34px 60px;
}
.trailer-main > h1 {
  font-size: clamp(38px, 5.5vw, 69px);
  line-height: 1.23;
  letter-spacing: -3px;
  margin: 20px 0 24px;
}
.trailer-main > h1 em {
  color: #d6ff67;
  font-style: normal;
}
.trailer-intro {
  color: #afb5c9;
  line-height: 1.8;
  font-size: 18px;
}
.trailer-film {
  margin-top: 40px;
  border: 1px solid #ffffff20;
  border-radius: 20px;
  overflow: hidden;
  background: #090d18;
  box-shadow: 0 24px 80px #0005;
}
.trailer-film video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}
.trailer-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 2px;
  color: #9ba4bb;
  font-size: 13px;
}
.trailer-meta a {
  color: #d6ff67;
  text-underline-offset: 4px;
}
.trailer-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}
.trailer-features > div {
  border-top: 1px solid #ffffff22;
  padding-top: 25px;
}
.trailer-features span {
  color: #d6ff67;
  font:
    700 13px Arial,
    sans-serif;
}
.trailer-features h2 {
  font-size: 22px;
  margin: 17px 0 12px;
}
.trailer-features p {
  color: #a6aec5;
  font-size: 14px;
  line-height: 1.8;
}
.trailer-cta {
  text-align: center;
  border-radius: 22px;
  padding: 50px 24px;
  background: #d6ff6709;
  border: 1px solid #d6ff672c;
  margin-top: 70px;
}
.trailer-cta h2 {
  font-size: clamp(24px, 4vw, 34px);
  margin: 0 0 15px;
}
.trailer-cta p {
  color: #a6aec5;
  line-height: 1.8;
  margin-bottom: 26px;
}
.trailer-cta .primary-button {
  display: inline-flex;
  padding: 16px 27px;
  text-decoration: none;
}
.trailer-note {
  color: #838da7;
  font-size: 12px;
  line-height: 1.7;
  margin: 26px 0 0;
}
@media (max-width: 650px) {
  .trailer-header {
    padding: 22px 20px;
  }
  .trailer-wordmark {
    font-size: 18px;
  }
  .trailer-header .secondary-button {
    font-size: 12px;
    padding: 10px 13px;
  }
  .trailer-main {
    padding: 0 20px 30px;
    margin-top: 35px;
  }
  .trailer-main > h1 {
    letter-spacing: -2px;
  }
  .trailer-intro {
    font-size: 15px;
  }
  .trailer-film {
    border-radius: 12px;
    margin-top: 28px;
  }
  .trailer-meta {
    font-size: 11px;
  }
  .trailer-features {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 36px;
  }
  .trailer-features h2 {
    margin: 12px 0 8px;
  }
  .trailer-cta {
    margin-top: 40px;
  }
  .topbar nav:has(.trailer-link) {
    gap: 8px;
  }
  .topbar:has(.trailer-link) {
    gap: 10px;
  }
  .topbar .nav-button > span {
    display: none;
  }
}
@media (max-width: 360px) {
  .topbar:has(.trailer-link) .brand-icon {
    display: none;
  }
}
.nav-button > span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid #747788;
  border-radius: 50%;
  font-size: 12px;
}
.icon-button {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #1c1d29;
  font-size: 22px;
  line-height: 1;
}
.icon-button:hover {
  background: #303240;
}
.lobby {
  max-width: 1480px;
  padding: 42px 56px 20px;
  margin: auto;
}
.lobby-heading {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2.8px;
  font-weight: 800;
  color: var(--lime);
  margin: 0 0 12px;
}
.lobby h1 {
  font-size: clamp(30px, 3vw, 45px);
  letter-spacing: -1.9px;
  line-height: 1.25;
  margin: 0 0 14px;
  font-weight: 850;
}
.lobby-intro {
  color: #a5a8b8;
  margin: 0;
  font-size: 16px;
}
.player-chip {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 9px 24px 9px 8px;
  background: #20212e;
  border: 1px solid #353644;
  border-radius: 18px;
  flex-shrink: 0;
}
.player-chip canvas {
  width: 70px;
  height: 70px;
}
.player-chip small {
  display: block;
  color: #9b9eb0;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 3px;
}
.player-chip strong {
  font-size: 18px;
}
.player-chip b {
  color: var(--lime);
  font-size: 12px;
  background: #d6ff6713;
  padding: 3px 7px;
  border-radius: 4px;
  margin-left: 9px;
}
.roster-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 20px;
}
.section-label {
  font-size: 14px;
  letter-spacing: 1px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.section-label span {
  font-size: 12px;
  color: #989daf;
}
.progress-pill {
  color: #afb3c3;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.progress-pill strong {
  color: var(--lime);
}
.mini-progress {
  display: flex;
  gap: 4px;
}
.mini-progress i {
  width: 20px;
  height: 5px;
  border-radius: 5px;
  background: #333644;
}
.mini-progress i.done {
  background: var(--lime);
}
.roster {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.character-card {
  --accent: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
  border: 1px solid #363743;
  border-radius: 20px;
  background: #1e202b;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
  min-width: 0;
}
.character-card:hover {
  transform: translateY(-7px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px #0004;
}
.character-card:focus-visible {
  outline-color: var(--accent);
}
.card-art {
  height: 257px;
  background:
    radial-gradient(
      ellipse at 50% 68%,
      color-mix(in srgb, var(--accent) 19%, transparent),
      transparent 70%
    ),
    linear-gradient(
      150deg,
      color-mix(in srgb, var(--accent) 12%, #20212d),
      #1d1e2a
    );
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-art:after {
  content: "";
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
  width: 170px;
  height: 170px;
  border-radius: 50%;
  top: 49px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.card-art canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transition: transform 0.3s;
}
.character-card:hover canvas {
  transform: scale(1.05) rotate(-2deg);
}
.stage-number {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font:
    700 12px/1.3 Arial,
    sans-serif;
  color: color-mix(in srgb, var(--accent) 75%, white);
  letter-spacing: 1.5px;
}
.card-badge {
  position: absolute;
  right: 12px;
  top: 13px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 7px;
  border-radius: 5px;
  color: #1a1a21;
  background: var(--accent);
  z-index: 2;
}
.character-english {
  position: absolute;
  bottom: 5px;
  left: 14px;
  right: 8px;
  line-height: 1;
  font:
    900 clamp(27px, 3vw, 42px) / 1 Arial,
    sans-serif;
  letter-spacing: -2px;
  color: color-mix(in srgb, var(--accent) 17%, transparent);
  z-index: 0;
}
.card-body {
  padding: 20px 18px 0;
}
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-body h2 {
  font-size: 24px;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 0;
}
.card-body .go {
  font-size: 24px;
  font-weight: 300;
  color: var(--accent);
}
.character-title {
  color: #a4a8b9;
  font-size: 12px;
  min-height: 19px;
  margin: 9px 0 20px;
  letter-spacing: -0.4px;
  white-space: nowrap;
}
.star-row {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: space-between;
  border-top: 1px solid #ffffff12;
  padding: 14px 0 15px;
}
.stars {
  white-space: nowrap;
  letter-spacing: 2px;
  font-size: 15px;
  color: var(--accent);
}
.stars .empty {
  color: #494b5a;
}
.star-label {
  font-size: 12px;
  color: #b3b5c4;
  white-space: nowrap;
}
.card-record {
  background: #d6ff670c;
  color: var(--lime);
  font-size: 12px;
  padding: 8px 18px;
  border-top: 1px solid #d6ff6722;
  margin-top: auto;
}
.legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 29px;
  color: #989eb2;
  font-size: 12px;
  align-items: center;
}
.legend-values {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.legend-values span {
  white-space: nowrap;
}
.legend b {
  color: #b5b8c7;
  font-weight: 500;
}
.how-strip {
  border: 1px solid #343542;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: #1b1c27;
}
.strip-icon {
  color: var(--lime);
  font-size: 28px;
}
.strip-copy strong {
  font-size: 15px;
  font-weight: 650;
}
.strip-copy p {
  font-size: 13px;
  color: #a6abbd;
  margin: 4px 0 0;
}
.key-group {
  display: flex;
  gap: 5px;
  margin-left: auto;
}
.keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  height: 35px;
  font:
    700 15px Arial,
    sans-serif;
  border: 1px solid #525465;
  border-bottom: 3px solid #525465;
  border-radius: 7px;
  color: #d7d9e4;
  background: #262836;
}
.key-or {
  font-size: 12px;
  color: #999daf;
  align-self: center;
  margin: 0 8px;
}
.site-footer {
  max-width: 1480px;
  padding: 24px 56px 28px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #949aae;
  font-size: 12px;
}
.site-footer a:hover {
  color: var(--lime);
}
.footer-dot {
  margin: 0 9px;
  color: #62667c;
}
.all-clear {
  border: 1px solid #d6ff6755;
  background: #d6ff6710;
  padding: 16px 22px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  font-size: 15px;
}
.all-clear strong {
  color: var(--lime);
}
dialog {
  background: #20212e;
  color: var(--text);
  border: 1px solid #484956;
  border-radius: 24px;
  padding: 30px;
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  box-shadow: 0 30px 150px #0009;
  overflow: auto;
}
dialog::backdrop {
  background: #080913ce;
  backdrop-filter: blur(7px);
}
.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.modal-top h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.7px;
}
.close-button {
  background: #323441;
  color: #b8bdce;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 23px;
  flex-shrink: 0;
  line-height: 1;
}
.opponent-preview {
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 14px;
  border: 1px solid #ffffff12;
  border-radius: 16px;
  background: radial-gradient(ellipse at left, var(--tint), transparent);
}
.opponent-preview canvas {
  width: 125px;
  height: 140px;
  flex-shrink: 0;
}
.opponent-preview h3 {
  margin: 2px 0 6px;
  font-size: 26px;
}
.opponent-preview p {
  font-size: 14px;
  color: #b3b8ca;
  margin: 0;
}
.opponent-preview .stars {
  margin-top: 12px;
  font-size: 14px;
}
.diff-heading {
  font-size: 15px;
  margin: 24px 0 12px;
  color: #cfd3df;
}
.difficulty-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.difficulty-option {
  position: relative;
  display: block;
  cursor: pointer;
}
.difficulty-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
}
.difficulty-option .option-box {
  display: block;
  padding: 16px 12px;
  border: 1px solid #494b5d;
  border-radius: 12px;
  background: #292a38;
  height: 100%;
  transition: 0.2s;
}
.difficulty-option input:checked + .option-box {
  background: #d6ff6710;
  border-color: var(--lime);
  box-shadow: 0 0 0 1px var(--lime);
}
.difficulty-option input:focus-visible + .option-box {
  outline: 3px solid white;
  outline-offset: 3px;
}
.option-box strong {
  display: block;
  font-size: 18px;
  margin-bottom: 5px;
}
.option-box small {
  display: block;
  color: #b8bfd2;
  font-size: 12px;
  line-height: 1.6;
}
.option-box .tempo-tag {
  font-size: 12px;
  color: #b2b8cc;
  margin-top: 10px;
}
.diff-description {
  font-size: 13px;
  color: #b8bed0;
  min-height: 40px;
  margin: 15px 0 3px;
}
.primary-button {
  background: var(--lime);
  color: #172008;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  min-height: 52px;
  padding: 12px 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: 0.15s;
}
.primary-button:hover {
  background: #e3ff97;
  transform: translateY(-1px);
}
.primary-button.full {
  width: 100%;
}
.secondary-button {
  background: #2f3142;
  border: 1px solid #4b4e63;
  color: #e2e5f0;
  border-radius: 12px;
  min-height: 48px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
}
.secondary-button:hover {
  background: #3b3e52;
}
.modal-note {
  font-size: 12px;
  text-align: center;
  color: #a8aec2;
  margin: 14px 0 0;
}
.help-list {
  display: grid;
  gap: 20px;
}
.help-item {
  display: flex;
  gap: 15px;
}
.help-index {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #d6ff6715;
  color: var(--lime);
  font-weight: bold;
  flex-shrink: 0;
}
.help-item strong {
  font-size: 16px;
}
.help-item p {
  font-size: 14px;
  color: #aeb4c6;
  margin: 5px 0 0;
}
.help-keys {
  display: flex;
  gap: 5px;
  margin: 12px 0 4px;
}
.settings-row {
  margin: 24px 0;
}
.settings-row label {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 12px;
}
.settings-row input[type="range"] {
  width: 100%;
  accent-color: var(--lime);
  height: 24px;
}
.settings-row p {
  font-size: 13px;
  color: #a7aec2;
  margin: 8px 0;
}
.settings-row output {
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.settings-actions {
  display: flex;
  gap: 10px;
}
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  background: #edeff7;
  color: #151824;
  border-radius: 12px;
  padding: 13px 23px;
  box-shadow: 0 10px 40px #0005;
  z-index: 99;
  transition: 0.2s;
  max-width: calc(100vw - 30px);
  font-size: 14px;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.battle-shell {
  max-width: 1440px;
  margin: auto;
  padding: 22px 40px 0;
  --accent: var(--lime);
}
.battle-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 25px;
  margin-bottom: 17px;
}
.battle-song h1 {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  margin: 3px 0 6px;
}
.battle-song small {
  color: #a9b0c4;
  font-size: 12px;
}
.battle-score {
  text-align: center;
}
.battle-score strong {
  display: block;
  font:
    800 28px/1.2 Arial,
    sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}
.battle-score small {
  font-size: 12px;
  letter-spacing: 2px;
  color: #a4acc3;
}
.battle-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}
.time-left {
  font:
    600 16px Arial,
    sans-serif;
  font-variant-numeric: tabular-nums;
  color: #b9c0d5;
}
.battle-hp {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  max-width: 570px;
  margin-left: auto;
  margin-right: auto;
}
.hp-label {
  font-size: 12px;
  font-weight: 800;
  color: #a0e2b8;
}
.hp-track {
  height: 10px;
  border-radius: 10px;
  background: #363347;
  overflow: hidden;
}
.hp-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #83dcb8, #c4f38a);
  transition: width 0.1s;
  border-radius: 10px;
}
.hp-fill.low {
  background: linear-gradient(90deg, #e76587, #ffac87);
}
.hp-number {
  font:
    700 12px Arial,
    sans-serif;
  color: #c1c8da;
  min-width: 35px;
}
.arena {
  position: relative;
  height: min(65vh, 620px);
  min-height: 410px;
  overflow: hidden;
  border: 1px solid #35384b;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 50% 100%, #3f37573d, transparent 75%), #151723;
}
.arena.pirate {
  background:
    linear-gradient(#11121bbf, #11121b99),
    url("assets/moonlit-deck.png") center/cover;
}
.arena:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 0% 70%,
    color-mix(in srgb, var(--accent) 8%, transparent),
    transparent 60%
  );
  pointer-events: none;
}
.game-canvas {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  touch-action: none;
  user-select: none;
}
.battle-status {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: #b1b9d0;
}
.battle-status b {
  color: var(--accent);
  font-weight: 650;
}
.battle-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 5px;
  color: #a4aec7;
  font-size: 12px;
}
.song-progress {
  width: 160px;
  height: 4px;
  background: #34384b;
  border-radius: 5px;
  overflow: hidden;
}
.song-progress > i {
  display: block;
  background: var(--accent);
  height: 100%;
  width: 0;
}
.judgment-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.touch-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: min(450px, 100%);
  margin: 12px auto 0;
}
.lane-button {
  height: 65px;
  border: 1px solid color-mix(in srgb, var(--lane) 50%, #222);
  border-bottom-width: 4px;
  border-radius: 12px;
  color: var(--lane);
  background: color-mix(in srgb, var(--lane) 8%, #1c2030);
  font-size: 30px;
  touch-action: none;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.lane-button small {
  font-size: 12px;
  color: #b1bad0;
}
.lane-button:active,
.lane-button.pressed {
  background: var(--lane);
  color: #101522;
  transform: translateY(2px);
  border-bottom-width: 2px;
}
.lane-button.pressed small {
  color: #101522;
}
.result {
  text-align: center;
}
.result-kicker {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--lime);
  margin: 3px 0 8px;
}
.result h2 {
  font-size: 35px;
  letter-spacing: -1.5px;
  margin: 0 0 8px;
}
.result-subtitle {
  font-size: 14px;
  color: #a9b1c7;
}
.rank-medal {
  font:
    900 76px/1 Arial,
    sans-serif;
  color: var(--lime);
  margin: 20px auto;
  text-shadow: 0 0 45px #d6ff6733;
}
.result.lost .result-kicker,
.result.lost .rank-medal {
  color: #ffa4b6;
}
.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #42465b;
  background: #292c3d;
  border-radius: 14px;
  padding: 20px 12px;
  gap: 10px;
  margin: 23px 0 15px;
}
.result-stats strong {
  display: block;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.result-stats span {
  display: block;
  font-size: 12px;
  color: #b3bdd6;
  margin-top: 5px;
}
.result-breakdown {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 12px;
  color: #a6afc8;
  margin: 17px 0 25px;
}
.result-breakdown b {
  color: #e0e5f3;
}
.result-buttons {
  display: grid;
  gap: 10px;
}
.result-button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pause-content {
  text-align: center;
  padding: 12px 0;
}
.pause-content h2 {
  font-size: 28px;
  margin: 0 0 8px;
}
.pause-content p {
  font-size: 14px;
  color: #a2abc2;
  margin-bottom: 25px;
}
.pause-content .result-buttons {
  max-width: 380px;
  margin: auto;
}
@media (min-width: 1600px) {
  .card-art {
    height: 300px;
  }
  .lobby {
    padding-top: 55px;
  }
  .lobby-heading {
    margin-bottom: 44px;
  }
}
@media (max-width: 1150px) {
  .topbar {
    padding: 0 30px;
  }
  .lobby {
    padding: 32px 30px 15px;
  }
  .site-footer {
    padding: 22px 30px;
  }
  .roster {
    gap: 10px;
  }
  .card-art {
    height: 217px;
  }
  .card-body {
    padding: 17px 12px 0;
  }
  .card-body h2 {
    font-size: 22px;
  }
  .character-title {
    font-size: 12px;
    letter-spacing: -0.7px;
    white-space: normal;
    min-height: 38px;
  }
  .star-row {
    gap: 3px;
  }
  .stars {
    letter-spacing: 1px;
    font-size: 13px;
  }
  .star-label {
    font-size: 12px;
  }
  .creator-tag {
    display: none;
  }
  .how-strip {
    gap: 15px;
    padding: 18px;
  }
  .keycap {
    min-width: 29px;
    height: 32px;
  }
  .key-group {
    gap: 3px;
  }
  .battle-shell {
    padding: 18px 24px 0;
  }
}
@media (max-width: 850px) {
  .roster {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .card-art {
    height: 225px;
  }
  .card-body {
    padding: 18px 16px 0;
  }
  .card-body h2 {
    font-size: 24px;
  }
  .stars {
    font-size: 15px;
  }
  .player-chip {
    padding-right: 15px;
  }
  .player-chip canvas {
    width: 55px;
    height: 60px;
  }
  .player-chip b {
    display: none;
  }
  .key-group {
    display: none;
  }
  .how-strip {
    justify-content: flex-start;
  }
  .legend {
    align-items: flex-start;
  }
  .legend-values {
    gap: 7px 14px;
  }
  .battle-shell {
    padding: 16px 16px 0;
  }
  .arena {
    min-height: 440px;
  }
  .battle-top {
    grid-template-columns: 1fr auto auto;
    gap: 16px;
  }
  .battle-song h1 {
    font-size: 17px;
  }
  .battle-score strong {
    font-size: 24px;
  }
}
@media (max-width: 560px) {
  .topbar {
    height: 77px;
    padding: 0 20px;
  }
  .brand {
    font-size: 14px;
    gap: 8px;
  }
  .brand-second {
    font-size: 19px;
    letter-spacing: 1.7px;
  }
  .brand-icon {
    transform: scale(0.8) rotate(-12deg);
    width: 34px;
  }
  .topbar nav {
    gap: 14px;
  }
  .nav-button {
    font-size: 12px;
  }
  .icon-button {
    min-width: 35px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
  .lobby {
    padding: 28px 18px 10px;
  }
  .lobby-heading {
    gap: 14px;
    margin-bottom: 29px;
  }
  .lobby h1 {
    font-size: 30px;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
  }
  .eyebrow {
    font-size: 12px;
    letter-spacing: 1px;
  }
  .lobby-intro {
    font-size: 14px;
    max-width: 250px;
  }
  .player-chip {
    background: none;
    border: 0;
    padding: 0;
    flex-direction: column;
    gap: 3px;
    align-self: flex-end;
  }
  .player-chip canvas {
    width: 65px;
    height: 73px;
  }
  .player-chip small,
  .player-chip strong {
    display: none;
  }
  .roster-toolbar {
    margin-bottom: 16px;
    gap: 7px;
  }
  .section-label {
    font-size: 13px;
    gap: 6px;
  }
  .section-label span {
    display: none;
  }
  .progress-pill {
    font-size: 12px;
    gap: 8px;
  }
  .mini-progress i {
    width: 14px;
  }
  .roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .card-art {
    height: 195px;
  }
  .card-body {
    padding: 16px 13px 0;
  }
  .card-body h2 {
    font-size: 23px;
  }
  .character-title {
    font-size: 12px;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
  }
  .stars {
    font-size: 13px;
    letter-spacing: 1px;
  }
  .star-label {
    font-size: 12px;
  }
  .stage-number {
    font-size: 12px;
    left: 13px;
    top: 13px;
  }
  .card-badge {
    font-size: 10px;
    right: 9px;
    top: 11px;
  }
  .character-english {
    font-size: 35px;
  }
  .character-card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .character-card:last-child .card-art {
    height: 190px;
  }
  .character-card:last-child .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 17px 10px 8px;
  }
  .character-card:last-child .card-record {
    grid-column: span 2;
  }
  .legend {
    flex-direction: column;
    margin: 19px 0 22px;
  }
  .legend-values {
    font-size: 12px;
    gap: 8px 13px;
  }
  .how-strip {
    padding: 16px;
    gap: 13px;
  }
  .strip-copy strong {
    font-size: 14px;
  }
  .strip-copy p {
    font-size: 12px;
  }
  .site-footer {
    padding: 23px 20px 26px;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
  }
  dialog {
    padding: 22px 18px;
    border-radius: 20px;
  }
  .modal-top h2 {
    font-size: 20px;
  }
  .opponent-preview {
    gap: 13px;
    padding: 10px;
  }
  .opponent-preview canvas {
    width: 95px;
    height: 115px;
  }
  .opponent-preview h3 {
    font-size: 23px;
  }
  .opponent-preview p {
    font-size: 12px;
  }
  .difficulty-options {
    gap: 7px;
  }
  .difficulty-option .option-box {
    padding: 13px 9px;
  }
  .option-box strong {
    font-size: 17px;
  }
  .option-box small {
    font-size: 12px;
  }
  .option-box .tempo-tag {
    font-size: 12px;
  }
  .diff-description {
    font-size: 12px;
  }
  .battle-shell {
    padding: 13px 10px 0;
  }
  .battle-top {
    gap: 10px;
    margin-bottom: 13px;
  }
  .battle-song h1 {
    font-size: 15px;
    max-width: 170px;
  }
  .battle-song small {
    font-size: 12px;
  }
  .battle-score strong {
    font-size: 20px;
  }
  .battle-score small {
    font-size: 10px;
  }
  .time-left {
    font-size: 12px;
  }
  .battle-actions {
    gap: 8px;
  }
  .arena {
    height: calc(100dvh - 310px);
    min-height: 320px;
    max-height: 620px;
    border-radius: 16px;
  }
  .battle-status {
    top: 12px;
    left: 12px;
    right: 12px;
    font-size: 12px;
  }
  .battle-hp {
    margin-bottom: 12px;
  }
  .touch-controls {
    gap: 8px;
    margin-top: 10px;
  }
  .lane-button {
    height: 59px;
    font-size: 28px;
  }
  .lane-button small {
    display: none;
  }
  .battle-bottom {
    padding: 11px 2px;
    font-size: 12px;
    gap: 8px;
  }
  .battle-bottom > span:first-child {
    display: none;
  }
  .song-progress {
    width: 85px;
  }
  .result h2 {
    font-size: 30px;
  }
  .result-stats strong {
    font-size: 21px;
  }
  .result-stats {
    padding: 17px 8px;
  }
  .all-clear {
    padding: 13px 16px;
    font-size: 13px;
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.mobile-break {
  display: none;
}
.in-battle .topbar {
  height: 72px;
}
.in-battle .battle-shell {
  padding-top: 14px;
}
.arena {
  height: calc(100dvh - 315px);
  min-height: 320px;
  max-height: 620px;
}
.battle-top {
  margin-bottom: 12px;
}
.battle-hp {
  margin-bottom: 12px;
}
@media (max-width: 560px) {
  .mobile-break {
    display: block;
  }
  .in-battle .topbar {
    height: 62px;
  }
  .arena {
    height: calc(100dvh - 295px);
    min-height: 290px;
  }
  .in-battle .battle-shell {
    padding-top: 10px;
  }
  .battle-top {
    margin-bottom: 9px;
  }
  .battle-song > small:last-child {
    display: none;
  }
  .battle-bottom {
    padding-bottom: 8px;
  }
}
.adventure-controls {
  margin: 22px 0 26px;
}
.chapter-select {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.chapter-button {
  min-width: 0;
  border: 1px solid #424557;
  background: #1a1d2b;
  border-radius: 14px;
  padding: 17px 20px;
  text-align: left;
  color: #dce0ef;
  cursor: pointer;
}
.chapter-button small,
.chapter-button strong,
.chapter-button span {
  display: block;
}
.chapter-button small {
  font: 700 12px Arial;
  letter-spacing: 0.08em;
  color: #9eaac5;
}
.chapter-button strong {
  font-size: 21px;
  margin: 6px 0;
}
.chapter-button span {
  font-size: 13px;
  color: #a7b0c3;
}
.chapter-button.active {
  border-color: #d6ff67;
  background: #d6ff670b;
}
.chapter-button.active strong {
  color: #d6ff67;
}
.chapter-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.bot-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 19px;
  margin-top: 12px;
  background: #a997ff0b;
  border: 1px solid #a997ff36;
  border-radius: 12px;
  cursor: pointer;
}
.bot-switch input {
  width: 21px;
  height: 21px;
  accent-color: #d6ff67;
  flex-shrink: 0;
}
.bot-switch strong {
  font-size: 16px;
  display: block;
}
.bot-switch small {
  display: block;
  color: #aeb5cb;
  font-size: 14px;
  margin-top: 4px;
  line-height: 1.6;
}
.note-sign {
  color: var(--accent);
  font:
    900 26px "Segoe UI Symbol",
    sans-serif;
}
.difficulty-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.note-legend {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 17px;
}
.note-sample {
  position: relative;
  font: 900 64px Arial;
  line-height: 1;
  flex: 0 0 54px;
  text-align: center;
}
.note-sample b {
  position: absolute;
  left: 17px;
  top: 27px;
  background: #13182a;
  border: 1px solid currentColor;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font: 900 17px "Segoe UI Symbol";
  display: grid;
  place-items: center;
}
.trap-copy {
  font-weight: 500;
  color: #ff9caf;
}
.bot-badge {
  display: block;
  color: #d6ff67;
  font-size: 12px;
  font-weight: 750;
  margin-top: 5px;
}
.touch-controls button:disabled {
  opacity: 0.55;
  cursor: default;
}
.chapter-unlocked {
  border: 1px solid #d6ff6766;
  background: #d6ff670b;
  padding: 18px;
  border-radius: 12px;
  margin: 20px 0;
}
.chapter-unlocked strong {
  color: #d6ff67;
}
.chapter-unlocked p {
  font-size: 15px;
  line-height: 1.7;
  margin: 8px 0 0;
}
.character-ending {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: center;
  text-align: left;
  background: #111522;
  border: 1px solid #ffffff1a;
  border-radius: 14px;
  padding: 15px;
  margin: 20px 0;
}
.character-ending canvas {
  width: 130px;
  height: 150px;
}
.character-ending small {
  color: var(--accent);
  font: 700 12px Arial;
}
.character-ending h3 {
  font-size: 21px;
  margin: 8px 0;
}
.character-ending p {
  font-size: 15px;
  line-height: 1.75;
  color: #c5cbdc;
  margin: 0;
}
.arena.chapter-2 {
  background:
    radial-gradient(ellipse at 50% 0%, #53387255, transparent 70%), #131420;
}
.arena.chapter-3 {
  background: linear-gradient(115deg, #12354466, #141623 55%, #29304766);
}
.how-strip a {
  color: #d6ff67;
}
.character-card .character-title {
  min-height: 2.8em;
}
.character-card .character-english {
  font-size: clamp(18px, 2.2vw, 36px);
}
@media (max-width: 600px) {
  .chapter-select {
    gap: 6px;
  }
  .chapter-button {
    padding: 13px 9px;
    border-radius: 10px;
  }
  .chapter-button strong {
    font-size: 16px;
    line-height: 1.5;
  }
  .chapter-button small {
    font-size: 12px;
    line-height: 1.4;
  }
  .chapter-button span {
    font-size: 12px;
    line-height: 1.5;
  }
  .bot-switch {
    padding: 13px;
  }
  .bot-switch small {
    font-size: 13px;
  }
  .character-ending {
    grid-template-columns: 90px 1fr;
    gap: 12px;
    padding: 12px;
  }
  .character-ending canvas {
    width: 90px;
    height: 120px;
  }
  .character-ending h3 {
    font-size: 18px;
  }
  .character-ending p {
    font-size: 14px;
  }
  .bot-badge {
    max-width: 220px;
    line-height: 1.5;
  }
  .note-legend {
    gap: 7px;
    font-size: 13px;
  }
}
.version-caption {
  font-size: 14px;
  line-height: 1.8;
  color: #b7c0d4;
  margin: 24px 0 16px;
}
.version-caption a {
  color: #d6ff67;
}
