@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap");
:root {
  color-scheme: dark;
  --bg: #101618;
  --panel: #172023;
  --lime: #e1f68c;
  --white: #eeeeda;
  --muted: #889497;
  --line: #303b3e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: "Noto Sans KR", sans-serif;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}
a {
  color: inherit;
  text-decoration: none;
}
.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 4.6%;
}
.brand {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 800;
  font-size: 29px;
  display: flex;
  align-items: center;
  gap: 13px;
  letter-spacing: 0.4px;
}
.brand-icon {
  color: var(--bg);
  background: var(--lime);
  font-size: 21px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  transform: skew(-8deg);
}
.edition {
  font:
    9px "Noto Sans KR",
    sans-serif;
  letter-spacing: 2px;
  border-left: 1px solid #556065;
  padding-left: 15px;
  max-width: 65px;
  line-height: 1.6;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 26px;
}
.status {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #9da8a9;
}
.status i,
.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  margin-right: 7px;
}
.quiet,
.icon-btn {
  background: none;
  border: 0;
  color: var(--white);
  font-size: 11px;
}
.quiet span {
  color: var(--lime);
  margin-left: 15px;
}
.icon-btn {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  font-size: 10px;
  color: #a7b3b5;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 0 4.6%;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 48px 0 35px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.3px;
  color: var(--lime);
}
.eyebrow span {
  margin: 0 12px;
  color: #758084;
}
h1 {
  font-size: clamp(30px, 3.8vw, 55px);
  letter-spacing: -2.7px;
  line-height: 1.35;
  margin: 14px 0 0;
  font-weight: 800;
}
h1 em {
  font-style: normal;
  color: var(--lime);
}
.intro-side {
  padding-bottom: 4px;
}
.intro-side p {
  font-size: 12px;
  line-height: 1.9;
  color: #a7b0b0;
  margin: 0 0 23px;
}
.build-tag {
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #718084;
}
.build-tag b {
  margin-left: 15px;
  color: #a5b1b1;
}
.arena-shell {
  border: 1px solid #374448;
  background: #152024;
  box-shadow: 0 25px 80px #0003;
}
.arena-top {
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #bbc3bd;
}
.venue {
  color: #879596;
}
.venue span {
  font-size: 8px;
  color: #526468;
  margin-left: 15px;
}
.arena-actions {
  display: flex;
  gap: 16px;
}
.arena-actions button {
  background: none;
  border: 0;
  color: #c1cdcc;
  font-size: 20px;
  line-height: 1;
}
.arena {
  position: relative;
  aspect-ratio: 1200/650;
  overflow: hidden;
  background: #10212b;
}
.arena canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 100px #0009;
}
.hud {
  position: absolute;
  top: 6%;
  left: 4%;
  right: 4%;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  pointer-events: none;
}
.fighter-info {
  flex: 1;
}
.name-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.name-line b {
  font:
    700 clamp(16px, 2.3vw, 30px) "Barlow Condensed",
    Impact,
    sans-serif;
  letter-spacing: 1px;
}
.name-line small {
  font:
    9px "Noto Sans KR",
    sans-serif;
  color: #a7baba;
  letter-spacing: 0;
  margin-left: 8px;
}
.name-line > span {
  color: var(--lime);
  font-size: 14px;
  letter-spacing: 5px;
}
.health {
  height: 14px;
  background: #142329bb;
  border: 1px solid #dcebd633;
  transform: skew(-15deg);
  overflow: hidden;
}
.health > div {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #87a969, var(--lime));
  transition: width 0.12s;
}
.right .health > div {
  margin-left: auto;
  background: linear-gradient(90deg, #ffdc93, #dc8c69);
}
.meter {
  height: 3px;
  background: #122229aa;
  margin-top: 5px;
  max-width: 65%;
  transform: skew(-15deg);
}
.meter > div {
  height: 100%;
  width: 0;
  background: #79e4df;
  transition: width 0.15s;
}
.right .meter {
  margin-left: auto;
}
.right .meter > div {
  margin-left: auto;
  background: #f2a977;
}
.player-label {
  font-size: 7px;
  letter-spacing: 1.8px;
  color: #b2c4c0;
  display: block;
  margin-top: 8px;
}
.right .player-label {
  text-align: right;
}
.clock {
  text-align: center;
  min-width: 68px;
}
.clock b {
  display: block;
  font:
    800 clamp(25px, 4.2vw, 58px) / 1 "Barlow Condensed",
    Impact,
    sans-serif;
}
.clock small {
  display: block;
  font-size: 7px;
  letter-spacing: 1.5px;
  margin-top: 5px;
  color: #bacac5;
}
.menu {
  position: absolute;
  top: 24%;
  left: 6%;
  width: 34%;
  max-width: 380px;
  background: linear-gradient(90deg, #0d1719e8, #0d1719a0);
  padding: 20px 23px 18px;
  border-left: 2px solid var(--lime);
  backdrop-filter: blur(7px);
}
.menu-kicker {
  font-size: 8px;
  letter-spacing: 2.2px;
  color: var(--lime);
}
.menu h2 {
  font:
    900 clamp(36px, 6.4vw, 87px) / 0.88 "Barlow Condensed",
    Impact,
    sans-serif;
  letter-spacing: -1px;
  margin: 14px 0;
}
.menu h2 span {
  color: var(--lime);
  font-size: 0.65em;
  margin-left: 6px;
}
.menu p {
  font-size: 10px;
  color: #b5c1bf;
  margin: 15px 0 20px;
}
.mode-options {
  display: flex;
  gap: 4px;
}
.mode-options button {
  flex: 1;
  color: #b6c4c1;
  background: #17272bc9;
  border: 1px solid #3d5053;
  padding: 8px 1px;
  font-size: 9px;
  white-space: nowrap;
}
.mode-options .selected {
  border-color: var(--lime);
  color: var(--lime);
  background: #e1f68c0c;
}
.difficulty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
  font-size: 9px;
  color: #92a6a5;
}
.difficulty-row select {
  font-size: 9px;
  background: #122125;
  border: 1px solid #435154;
  color: var(--white);
  padding: 4px 7px;
}
.start {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--lime);
  color: #14201a;
  border: 0;
  padding: 13px 17px;
  width: 100%;
  font-weight: 800;
  font-size: 12px;
}
.start span {
  font-size: 21px;
  font-weight: 400;
}
.load-status {
  font-size: 7px;
  display: block;
  margin-top: 9px;
  color: #8ea39f;
  letter-spacing: 0.5px;
}
.stage-caption {
  position: absolute;
  bottom: 4%;
  left: 4%;
  right: 4%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  color: #abc4c5;
  font-size: 7px;
  letter-spacing: 2px;
}
.stage-caption i {
  width: 30px;
  height: 1px;
  display: inline-block;
  background: #adc4ba;
  vertical-align: middle;
  margin: 0 10px;
}
.arena-bottom {
  height: 43px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  color: #7e9292;
  font-size: 8px;
  letter-spacing: 1px;
}
.arena-bottom > span:first-child {
  font-size: 9px;
  letter-spacing: 0;
  color: #c0ccc5;
}
.green-square {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  background: var(--lime);
}
.below {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.7fr;
  margin: 38px 0 45px;
}
.below > div {
  padding: 0 30px;
  border-right: 1px solid var(--line);
}
.below > div:first-child {
  padding-left: 0;
}
.below > div:last-child {
  border: 0;
  padding-right: 0;
}
.section-index {
  font:
    9px "Barlow Condensed",
    sans-serif;
  color: #829491;
  letter-spacing: 1.8px;
}
h3 {
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: -0.6px;
  margin: 16px 0;
}
.key-list > div {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 9px 0;
  flex-wrap: wrap;
}
.key-list span {
  font-size: 9px;
  color: #94a6a4;
  margin-right: 6px;
}
.key-list kbd {
  font: 10px monospace;
  padding: 4px 6px;
  min-width: 23px;
  text-align: center;
  background: #1a2629;
  border: 1px solid #405052;
  border-bottom: 2px solid #4b5b5d;
  border-radius: 2px;
  color: #c5cfca;
}
.fight-notes p,
.record p {
  font-size: 10px;
  line-height: 1.9;
  color: #94a6a4;
  max-width: 300px;
}
.text-link {
  border: 0;
  border-bottom: 1px solid #53624c;
  padding: 0 0 7px;
  margin-top: 8px;
  background: none;
  color: var(--lime);
  font-size: 10px;
}
.text-link span {
  margin-left: 40px;
}
.record-number {
  font:
    700 80px/1.2 "Barlow Condensed",
    Impact,
    sans-serif;
  color: var(--lime);
  margin-top: 14px;
}
.record-number span {
  font-size: 10px;
  letter-spacing: 1px;
  margin-left: 12px;
  color: #8c9d94;
}
.record-caption {
  font-size: 9px;
  color: #536b69;
}
footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 26px 4.6%;
  color: #5f7474;
  font-size: 9px;
}
.footer-logo {
  font:
    700 18px "Barlow Condensed",
    Impact,
    sans-serif;
  color: #aebcb5;
  letter-spacing: 1px;
}
.announcement {
  position: absolute;
  top: 39%;
  left: 0;
  right: 0;
  text-align: center;
  font:
    900 clamp(26px, 7vw, 90px) "Barlow Condensed",
    Impact,
    sans-serif;
  color: var(--lime);
  text-shadow: 0 4px 24px #000;
  letter-spacing: 3px;
  pointer-events: none;
}
.combo {
  position: absolute;
  top: 30%;
  left: 5%;
  font:
    700 30px "Barlow Condensed",
    sans-serif;
  color: var(--lime);
  pointer-events: none;
}
.dialog-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 30px;
  background: #101d21f5;
  border: 1px solid #789077;
  width: min(420px, 80%);
  text-align: center;
  box-shadow: 0 0 0 1000px #06101480;
}
.dialog-panel h2 {
  font-size: 25px;
  letter-spacing: -1px;
}
.dialog-panel p {
  font-size: 11px;
  color: #97adaa;
}
.secondary {
  background: transparent;
  border: 1px solid #425552;
  color: var(--white);
  padding: 11px;
  width: 100%;
  margin-top: 8px;
  font-size: 11px;
}
[hidden] {
  display: none !important;
}
dialog {
  width: min(650px, 90vw);
  padding: 35px;
  background: #152226;
  color: var(--white);
  border: 1px solid #52645a;
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(4px);
}
dialog p {
  font-size: 12px;
  line-height: 2;
  color: #b4c1b9;
}
dialog h2 {
  letter-spacing: -1px;
}
dialog table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  margin: 20px 0;
}
td,
th {
  text-align: left;
  border-bottom: 1px solid #405150;
  padding: 12px 8px;
}
th {
  color: var(--lime);
}
dialog .muted {
  font-size: 10px;
  color: #7b908c;
}
.close {
  position: absolute;
  right: 18px;
  top: 12px;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 28px;
}
.touch-controls {
  display: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.arena-shell:fullscreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #0a1115;
  width: 100%;
  height: 100%;
}
.arena-shell:fullscreen .arena {
  width: 100%;
  max-height: calc(100dvh - 90px);
}
.arena-shell:fullscreen .arena-top,
.arena-shell:fullscreen .arena-bottom {
  flex-shrink: 0;
}
.dpad {
  display: flex;
  align-items: center;
  gap: 5px;
}
.dpad > div {
  display: grid;
  gap: 4px;
}
.touch-controls button {
  border: 1px solid #48605c;
  background: #213336;
  color: #d5e6d8;
  border-radius: 6px;
  min-width: 45px;
  min-height: 40px;
  font-size: 13px;
}
.touch-controls button.pressed {
  background: var(--lime);
  color: #16251a;
}
.touch-attacks {
  display: flex;
  gap: 6px;
  align-items: center;
}
.touch-attacks .special {
  color: var(--lime);
  border-color: #9aaa66;
}
.touch-controls.inactive {
  opacity: 0.35;
}
@media (pointer: coarse) {
  .touch-controls {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    gap: 15px;
  }
  .arena-shell:fullscreen .arena {
    max-height: calc(100dvh - 190px);
  }
}
@media (max-width: 750px) {
  .topbar {
    height: 67px;
    padding: 0 5%;
  }
  .brand {
    font-size: 23px;
    gap: 10px;
  }
  .edition,
  .status {
    display: none;
  }
  .top-right {
    gap: 10px;
  }
  .quiet {
    font-size: 10px;
  }
  .icon-btn {
    padding-left: 10px;
    font-size: 8px;
  }
  main {
    padding: 0 4%;
  }
  .intro {
    padding: 30px 0 24px;
  }
  .intro-side p {
    display: none;
  }
  .intro-side {
    max-width: 80px;
  }
  .build-tag {
    font-size: 6px;
    line-height: 1.8;
  }
  .build-tag b {
    margin: 0;
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  h1 {
    font-size: 32px;
    letter-spacing: -1.6px;
  }
  .venue span {
    display: none;
  }
  .arena-top {
    height: 34px;
    padding: 0 10px;
    font-size: 7px;
  }
  .arena-actions {
    gap: 9px;
  }
  .arena-actions button {
    font-size: 16px;
  }
  .hud {
    gap: 10px;
    top: 5%;
  }
  .name-line {
    margin-bottom: 4px;
  }
  .name-line small {
    display: none;
  }
  .name-line > span {
    font-size: 9px;
    letter-spacing: 2px;
  }
  .health {
    height: 8px;
  }
  .clock {
    min-width: 30px;
  }
  .clock small {
    font-size: 5px;
    letter-spacing: 0;
  }
  .player-label {
    font-size: 5px;
    margin-top: 4px;
    letter-spacing: 0.6px;
  }
  .menu {
    top: 23%;
    left: 4%;
    width: 45%;
    padding: 12px 13px 10px;
  }
  .menu-kicker {
    font-size: 5px;
    letter-spacing: 1px;
  }
  .menu h2 {
    font-size: 44px;
    margin: 8px 0;
  }
  .menu p {
    display: none;
  }
  .mode-options {
    gap: 2px;
    margin-top: 10px;
  }
  .mode-options button {
    font-size: 7px;
    padding: 5px 0;
  }
  .difficulty-row {
    margin: 6px 0;
    font-size: 7px;
  }
  .difficulty-row select {
    font-size: 7px;
    padding: 1px 3px;
  }
  .start {
    font-size: 9px;
    padding: 8px 10px;
  }
  .start span {
    font-size: 15px;
  }
  .load-status {
    font-size: 5px;
    margin-top: 5px;
  }
  .stage-caption {
    font-size: 5px;
    letter-spacing: 0.5px;
  }
  .stage-caption i {
    width: 13px;
    margin: 0 4px;
  }
  .arena-bottom {
    height: 33px;
    padding: 0 10px;
    font-size: 6px;
    letter-spacing: 0.3px;
  }
  .arena-bottom > span:first-child {
    font-size: 7px;
  }
  .arena-bottom > span:nth-child(2) {
    display: none;
  }
  .below {
    grid-template-columns: 1fr 1fr;
    margin: 30px 0;
  }
  .below > div {
    padding: 0 15px;
  }
  .below .record {
    grid-column: 1/-1;
    padding: 22px 0 0;
    margin-top: 25px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .record .record-number {
    grid-column: 2;
    grid-row: 1/4;
    margin: 0;
    text-align: right;
    font-size: 60px;
  }
  .record p {
    margin: 10px 0;
    font-size: 8px;
  }
  .record-caption {
    font-size: 8px;
  }
  .below .fight-notes {
    border: 0;
    padding-right: 0;
  }
  h3 {
    font-size: 16px;
  }
  .section-index {
    font-size: 8px;
  }
  .key-list span {
    font-size: 8px;
  }
  .key-list kbd {
    font-size: 8px;
    min-width: 19px;
    padding: 3px 5px;
  }
  .fight-notes p {
    font-size: 9px;
  }
  .text-link {
    font-size: 9px;
  }
  .text-link span {
    margin-left: 8px;
  }
  footer {
    flex-wrap: wrap;
    gap: 15px;
    padding: 22px 5%;
    font-size: 7px;
  }
  .footer-logo {
    width: 100%;
    font-size: 16px;
  }
  .dialog-panel {
    padding: 14px;
    max-width: 270px;
  }
  .dialog-panel h2 {
    font-size: 18px;
    margin: 10px;
  }
  .dialog-panel .eyebrow {
    font-size: 6px;
  }
  .secondary {
    font-size: 9px;
    padding: 7px;
  }
  .dialog-panel p {
    font-size: 8px;
  }
}
@media (max-width: 440px) {
  .arena {
    aspect-ratio: 1.2;
  }
  .arena canvas {
    width: 150%;
    max-width: none;
    transform: translateX(-16.66%);
  }
  .hud {
    top: 4%;
  }
  .menu {
    top: 24%;
    width: 59%;
    padding: 16px;
  }
  .menu h2 {
    font-size: 53px;
  }
  .menu-kicker {
    font-size: 6px;
  }
  .mode-options button {
    font-size: 8px;
    padding: 7px 0;
  }
  .difficulty-row {
    font-size: 8px;
    margin: 8px 0;
  }
  .start {
    font-size: 11px;
    padding: 10px;
  }
  .load-status {
    font-size: 6px;
  }
  .stage-caption {
    bottom: 3%;
    font-size: 5px;
  }
  .touch-controls {
    gap: 8px;
    padding: 9px;
  }
  .touch-controls button {
    min-width: 35px;
    min-height: 36px;
    font-size: 10px;
  }
  .touch-attacks {
    gap: 4px;
  }
  .touch-attacks button {
    padding: 5px;
  }
  .clock b {
    font-size: 32px;
  }
  .name-line b {
    font-size: 19px;
  }
  .health {
    height: 10px;
  }
  .clock small {
    font-size: 6px;
  }
  .player-label {
    font-size: 5px;
  }
  .below {
    grid-template-columns: 1fr;
  }
  .below > div {
    padding: 0 !important;
    border: 0;
  }
  .below .fight-notes {
    margin-top: 25px;
    border-top: 1px solid var(--line);
    padding-top: 22px !important;
  }
  .below .record {
    grid-column: auto;
  }
  .fight-notes p {
    max-width: none;
  }
  .intro-side {
    display: none;
  }
}
.drive {
  display: flex;
  gap: 3px;
  width: 42%;
  height: 5px;
  margin-top: 5px;
  position: relative;
}
.drive i {
  flex: 1;
  background: #c6de81;
  transform: skew(-15deg);
}
.right .drive {
  margin-left: auto;
}
.drive.burnout i {
  background: #e88570;
}
.drive.burnout::after {
  content: "탈진";
  position: absolute;
  top: 6px;
  font-size: 8px;
  color: #ffb3a3;
}
.right .drive.burnout::after {
  right: 0;
}
.touch-attacks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.touch-attacks button {
  min-height: 32px;
}
.menu h2 {
  font-size: clamp(32px, 5.2vw, 74px);
  line-height: 0.95;
  white-space: nowrap;
}
@media (max-width: 750px) {
  .menu h2 {
    font-size: clamp(30px, 5.3vw, 44px);
  }
}
@media (max-width: 440px) {
  .menu {
    top: 22%;
    width: 64%;
    padding: 10px 12px;
  }
  .menu h2 {
    font-size: 38px;
    line-height: 0.9;
  }
  .mode-options button {
    padding: 6px 0;
  }
  .difficulty-row {
    margin: 5px 0;
  }
  .menu .start {
    font-size: 10px;
    padding: 8px 10px;
  }
  .menu .load-status {
    display: none;
  }
  .stage-caption {
    font-size: 4px;
  }
  .drive {
    height: 4px;
    gap: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media (max-width: 750px) {
  .touch-controls {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    gap: 10px;
  }
}
