:root {
  --bg: #f4f7ed;
  --panel: #fff;
  --line: #d6dfd1;
  --muted: #7d897e;
  --ink: #263e3a;
  --acid: #ebf55b;
  --cyan: #16b6a1;
  --orange: #ef865d;
  --display: "Barlow Condensed", "Noto Sans KR", sans-serif;
  --body: "Barlow", "Noto Sans KR", sans-serif;
  color-scheme: light;
  font-family: var(--body);
  color: var(--ink);
  background: #d6e9df;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 50% 45%, #f3f7e9 0%, transparent 65%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 79px,
      #294c3310 80px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 79px,
      #294c3310 80px
    ),
    #d6e9df;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border: 0;
}
button:disabled {
  cursor: default;
}
button:focus-visible {
  outline: 3px solid #069884;
  outline-offset: 3px;
}
button,
a {
  touch-action: manipulation;
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.game-shell {
  width: 100%;
  max-width: 480px;
  margin: auto;
  height: 100dvh;
  min-height: 560px;
  max-height: 1100px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 0 100px #2a5c3d12;
  border-inline: 1px solid #56735a18;
}
.screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: screen-in 0.25s ease-out;
  isolation: isolate;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 24px 15px;
  gap: 10px;
  flex-shrink: 0;
  z-index: 3;
}
.player {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  background: var(--acid);
  color: #344b30;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font: 900 italic 29px var(--display);
  border: 1px solid #c4d440;
  border-radius: 13px 13px 13px 3px;
  box-shadow: 0 3px 0 #bdd04166;
}
.player-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.player-rank {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.player-rank span {
  color: #bd8a47;
}
.balances {
  display: flex;
  gap: 11px;
  font-size: 12px;
  font-weight: 700;
}
.currency {
  display: flex;
  gap: 4px;
  align-items: center;
}
.currency i {
  font-style: normal;
  font-size: 18px;
  color: #ceaa30;
}
.currency:last-child i {
  color: #34baa3;
}
.icon-button {
  height: 36px;
  width: 36px;
  display: grid;
  place-items: center;
  background: #ffffffb3;
  border: 1px solid #d7e0d0;
  border-radius: 11px;
  color: #7a887b;
}
.lobby-heading {
  padding: 12px 24px 0;
  z-index: 2;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 2.2px;
  font-size: 9px;
  font-weight: 700;
  color: #7b907b;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 3px;
  background: #6bb49a;
}
.wordmark {
  font: 900 italic clamp(40px, 12vw, 57px) / 0.97 var(--display);
  letter-spacing: -1.1px;
  margin: 10px 0 10px;
  white-space: nowrap;
  color: #27483c;
}
.wordmark span {
  color: #18a88e;
}
.heading-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.season {
  font-size: 9px;
  color: #788b72;
  letter-spacing: 1.1px;
  font-weight: 700;
}
.live {
  font-size: 9px;
  color: #0b9a81;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #11b992;
  box-shadow: 0 0 0 3px #11b99213;
}
.hero {
  position: relative;
  flex: 1;
  min-height: 195px;
  max-height: 420px;
  overflow: hidden;
  margin-top: 0;
  background: radial-gradient(ellipse at 50% 60%, #d4f1dc70, transparent 70%);
}
.hero-art {
  position: absolute;
  width: 142%;
  height: 110%;
  object-fit: cover;
  left: -21%;
  top: -3%;
  mask-image: linear-gradient(transparent, black 18%, black 74%, transparent);
  mix-blend-mode: multiply;
  animation: float 5s ease-in-out infinite;
}
.hero canvas {
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 0;
}
.hero-label {
  position: absolute;
  top: 27px;
  left: 24px;
  z-index: 2;
  border-left: 2px solid #4dbb98;
  padding-left: 8px;
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: 1px;
  color: #80987e;
}
.hero-label b {
  color: #309f83;
  font-weight: 700;
}
.hero-side {
  position: absolute;
  right: 18px;
  top: 40px;
  writing-mode: vertical-rl;
  font: 600 9px var(--body);
  color: #97ad91;
  letter-spacing: 2.5px;
}
.hero-dots {
  position: absolute;
  bottom: 6px;
  left: 24px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.hero-dots i {
  width: 5px;
  height: 5px;
  border-radius: 3px;
  background: #aec1a7;
}
.hero-dots i.active {
  width: 22px;
  background: #32b28e;
}
.hero-orbit {
  position: absolute;
  bottom: 6px;
  right: 24px;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 2px;
}
.hero-swap {
  position: absolute;
  top: 50%;
  width: 30px;
  height: 30px;
  background: #ffffffaa;
  border: 1px solid #cadac4;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #799879;
  z-index: 3;
}
.hero-swap svg {
  width: 13px;
  height: 13px;
}
.hero-swap.prev {
  left: 16px;
}
.hero-swap.next {
  right: 16px;
}
.loadout {
  margin: 9px 24px 19px;
  flex-shrink: 0;
}
.loadout-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
}
.tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #219e81;
  display: flex;
  align-items: center;
  gap: 5px;
}
.tag svg {
  width: 13px;
  height: 13px;
}
.rarity {
  font: 700 9px var(--body);
  letter-spacing: 1.3px;
  color: #b3994d;
}
.bey-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bey-title h2 {
  font: 800 italic 32px/0.95 var(--display);
  letter-spacing: 0.2px;
  margin: 0;
}
.bey-title .name-ko {
  font-size: 11px;
  color: #8b9582;
  margin-top: 8px;
}
.level {
  border: 1px solid #d4df9a;
  background: #edf3cb;
  padding: 6px 9px;
  border-radius: 6px;
  color: #82962e;
  font-size: 10px;
  font-weight: 800;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin-top: 17px;
}
.stat-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 7px;
}
.stat-head b {
  color: var(--ink);
  font-size: 12px;
}
.stat-track {
  height: 5px;
  background: #e1e7d8;
  border-radius: 3px;
  overflow: hidden;
}
.stat-track i {
  display: block;
  height: 100%;
  background: #ebc553;
  border-radius: 3px;
  transition: width 0.3s;
}
.stat-row > div:nth-child(2) i {
  background: #a3b394;
}
.stat-row > div:nth-child(3) i {
  background: #5cbaa2;
}
.lobby-actions {
  padding: 0 24px 16px;
  flex-shrink: 0;
}
.primary {
  width: 100%;
  min-height: 63px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 19px;
  background: var(--acid);
  color: #344729;
  border: 1px solid #cbd442;
  border-bottom: 4px solid #bfcd3f;
  border-radius: 13px;
  text-align: left;
  font-weight: 900;
  overflow: hidden;
  transition:
    filter 0.2s,
    transform 0.2s;
}
.primary:hover {
  filter: brightness(1.035);
}
.primary:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}
.primary:before {
  content: "";
  position: absolute;
  right: 28px;
  top: -40px;
  transform: rotate(28deg);
  width: 65px;
  height: 180px;
  background: #ffffff35;
}
.primary span,
.primary svg {
  z-index: 1;
}
.primary strong {
  font-size: 19px;
  letter-spacing: -0.6px;
}
.primary small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.8px;
  margin-top: 4px;
  font-weight: 700;
  opacity: 0.55;
}
.primary svg {
  width: 29px;
  height: 29px;
}
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.secondary {
  border: 1px solid #d3dfcc;
  background: #fcfdf6;
  min-height: 49px;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 2px 0 #d6dfca77;
}
.secondary svg {
  width: 18px;
  color: #75a173;
}
.secondary:hover {
  background: #eaf3de;
}
.banner {
  margin: 0 24px 18px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 10px 13px;
  background: linear-gradient(105deg, #ddeade, #e9f0dd);
  border: 1px solid #cddfc6;
  border-radius: 11px;
  position: relative;
  overflow: hidden;
}
.banner-mark {
  font: 900 italic 41px/1 var(--display);
  color: #94b19a;
}
.banner small {
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #709273;
  font-weight: 700;
}
.banner p {
  font-size: 11px;
  font-weight: 600;
  margin: 5px 0 0;
  color: #5e7b5f;
}
.banner > svg {
  margin-left: auto;
  width: 17px;
  color: #96ae88;
}
.bottom-nav {
  margin-top: auto;
  display: flex;
  padding: 13px 12px max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid #dfe6d6;
  background: #f9fbf1;
  flex-shrink: 0;
  z-index: 5;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 500;
  color: #99a08f;
  background: transparent;
  position: relative;
  padding: 3px 0;
}
.nav-item svg {
  width: 21px;
  height: 21px;
}
.nav-item.active {
  color: #379577;
  font-weight: 700;
}
.nav-item.active:before {
  position: absolute;
  content: "";
  top: -14px;
  background: #80bd90;
  height: 3px;
  border-radius: 3px;
  width: 24px;
}
.desktop-brand {
  position: fixed;
  left: max(32px, calc(50% - 560px));
  top: 50%;
  transform: translateY(-50%);
  font: 800 italic 27px var(--display);
  letter-spacing: 1px;
  color: #719781;
}
.desktop-brand span {
  color: #299e7e;
}
.desktop-brand small {
  font: 600 9px var(--body);
  display: block;
  letter-spacing: 3.5px;
  margin-top: 12px;
  color: #8cab92;
}
.brand-emblem {
  font: 900 italic 130px/1 var(--display);
  color: #a6c8b0;
  margin-bottom: 22px;
}
.brand-emblem span {
  font-size: 65px;
  color: #5cad90;
}
.desktop-edition {
  position: fixed;
  right: 36px;
  bottom: 40px;
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: 3px;
  color: #8baa91;
}
.desktop-edition span {
  margin-top: 20px;
  color: #6c947c;
}
.page-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px 17px;
  border-bottom: 1px solid #dce6d4;
  flex-shrink: 0;
  background: #f8fbf0;
}
.page-header .icon-button {
  width: 35px;
  background: #fff;
  border-color: #d7e4d0;
  color: #759677;
}
.page-header h1 {
  font: 800 italic 26px/1 var(--display);
  margin: 0;
  letter-spacing: 0.5px;
}
.page-header small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.page-header .step {
  margin-left: auto;
  color: #63987c;
  font: 600 11px var(--body);
  letter-spacing: 1.3px;
}
.scroll-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #b9ceb2 transparent;
  padding: 22px 24px;
}
.section-kicker {
  color: #4aa98a;
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 800;
  margin: 0 0 8px;
}
.section-title {
  font-size: 23px;
  font-weight: 800;
  margin: 0 0 7px;
  letter-spacing: -0.8px;
}
.section-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 22px;
}
.footer-action {
  padding: 14px 24px 18px;
  border-top: 1px solid #dce5d2;
  background: #f7faed;
  flex-shrink: 0;
}
.footer-action .primary {
  min-height: 57px;
}
.footer-action .primary strong {
  font-size: 17px;
}
.opponent-card {
  width: 100%;
  text-align: left;
  position: relative;
  padding: 18px;
  margin: 0 0 12px;
  background: #fff9ed;
  border: 1px solid #e7dbc5;
  border-radius: 15px;
  overflow: hidden;
  min-height: 149px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.opponent-card:nth-child(2) {
  background: #eff0fb;
  border-color: #d7d9ed;
}
.opponent-card:nth-child(3) {
  background: #eaf4fa;
  border-color: #ccdee9;
}
.opponent-card.selected {
  border: 2px solid #42b592;
  padding: 17px;
  box-shadow: 0 3px 0 #9bc6a955;
}
.opponent-card .enemy-number {
  position: absolute;
  right: 9px;
  top: -19px;
  font: 900 italic 150px var(--display);
  color: #a1926530;
}
.opponent-card .mini-top {
  position: absolute;
  right: 6px;
  bottom: -8px;
  width: 140px;
  height: 140px;
}
.opponent-card h3 {
  font: 800 italic 28px var(--display);
  margin: 7px 0 1px;
  position: relative;
  z-index: 1;
}
.opponent-card p {
  font-size: 11px;
  color: #82917c;
  margin: 0 0 17px;
}
.opponent-card .difficulty {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #57a087;
  font-weight: 800;
}
.opponent-card .difficulty.hard {
  color: #de896b;
}
.opponent-card .opp-meta {
  font-size: 10px;
  color: #93a087;
}
.selected-mark {
  position: absolute;
  right: 12px;
  top: 12px;
  color: #fff;
  background: #40af8f;
  border-radius: 50%;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.tips {
  padding: 13px 14px;
  border-left: 3px solid #8ebfa4;
  background: #eaf1df;
  font-size: 11px;
  line-height: 1.9;
  color: #85977e;
  border-radius: 3px 10px 10px 3px;
  margin-top: 8px;
}
.tips b {
  color: #458d70;
}
.preview-stage {
  height: 172px;
  position: relative;
  background: radial-gradient(ellipse, #d7eee0, transparent 70%);
  margin: -14px 0 8px;
}
.preview-stage canvas {
  width: 100%;
  height: 100%;
}
.preview-stage .stage-name {
  position: absolute;
  bottom: 0;
  left: 0;
  font: 800 italic 23px var(--display);
}
.preview-stage .stage-type {
  position: absolute;
  bottom: 3px;
  right: 0;
  font-size: 10px;
  color: #4ba78d;
  letter-spacing: 1px;
}
.core-selector {
  display: flex;
  gap: 6px;
  margin: 15px 0 17px;
}
.core-selector button {
  flex: 1;
  padding: 10px 2px;
  font-size: 10px;
  font-weight: 600;
  background: #edf2e4;
  border: 1px solid #d5e0ca;
  color: #8f9a83;
  border-radius: 7px;
}
.core-selector button.selected {
  background: #ddf1d9;
  border-color: #7dbb91;
  color: #3d8c69;
}
.part-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 20px;
}
.part-tab {
  background: #edf1e5;
  border: 1px solid #d9e2cc;
  padding: 11px 0;
  color: #87967d;
  font-size: 10px;
  border-radius: 7px;
}
.part-tab.selected {
  background: var(--acid);
  color: #5d702e;
  border-color: #c7d448;
  font-weight: 700;
}
.part-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 13px;
}
.part-card {
  background: #fcfdf7;
  border: 1px solid #dbe3d0;
  display: flex;
  align-items: center;
  padding: 12px 13px;
  text-align: left;
  gap: 11px;
  border-radius: 10px;
  min-height: 69px;
}
.part-card.selected {
  border-color: #79b58c;
  background: #eff6e3;
}
.part-icon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  color: #79a78a;
  border: 1px solid #cee0c4;
  background: #f5faec;
  border-radius: 9px;
  flex-shrink: 0;
}
.part-card h3 {
  font-size: 12px;
  margin: 0 0 5px;
}
.part-card small {
  color: #92a085;
  font-size: 10px;
}
.part-card .part-stat {
  font: 700 10px var(--body);
  color: #75a471;
  margin-left: auto;
  text-align: right;
  line-height: 1.8;
  min-width: 55px;
}
.part-card.selected .part-stat {
  color: #48956e;
}
.build-summary {
  font-size: 10px;
  color: #8b9b80;
  margin-top: 12px;
  line-height: 1.8;
}
.skill-card {
  width: 100%;
  padding: 18px;
  margin-bottom: 12px;
  border: 1px solid #d4dfc9;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffefa, #eef3e6);
  text-align: left;
  position: relative;
}
.skill-card.selected {
  border: 2px solid #77b38b;
  padding: 17px;
}
.skill-top {
  display: flex;
  gap: 14px;
  align-items: center;
}
.skill-icon {
  height: 55px;
  width: 55px;
  display: grid;
  place-items: center;
  color: #77954d;
  background: linear-gradient(145deg, #ebf5a8, #d8eaa5);
  border: 1px solid #c5d68f;
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 3px 0 #cbdc9b;
}
.skill-icon svg {
  width: 30px;
  height: 30px;
}
.skill-card h3 {
  font-size: 16px;
  margin: 5px 0;
}
.skill-card small {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #86a26a;
  font-weight: 700;
}
.skill-card p {
  font-size: 12px;
  line-height: 1.9;
  color: #8c9b7e;
  margin: 14px 0;
}
.skill-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #dce5d0;
  padding-top: 11px;
  font-size: 10px;
  color: #96a489;
}
.skill-bottom strong {
  color: #62946c;
}
.equipped-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  padding: 13px;
  background: #e7f0d9;
  border: 1px solid #cddfb9;
  border-radius: 10px;
  margin-bottom: 18px;
}
.equipped-strip svg {
  color: #82a76e;
}
.equipped-strip span {
  margin-left: auto;
  color: #6f9864;
  font-size: 10px;
}
.battle-screen {
  background: linear-gradient(#edf7ee, #e2f1e8);
}
.battle-header {
  padding: 17px 20px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4;
}
.battle-header span {
  font: 800 italic 18px var(--display);
  letter-spacing: 1.4px;
}
.battle-header small {
  color: #78aa84;
  font-size: 9px;
  letter-spacing: 1px;
}
.battle-hud {
  display: grid;
  grid-template-columns: 1fr 35px 1fr;
  gap: 8px;
  padding: 6px 20px;
  z-index: 4;
}
.fighter-label {
  font-size: 10px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.fighter-label small {
  font-size: 9px;
  color: #27ac8d;
}
.enemy .fighter-label small {
  color: var(--orange);
}
.hp-track {
  height: 8px;
  background: #d2e5d7;
  margin: 9px 0 6px;
  border-radius: 6px;
  overflow: hidden;
}
.hp-track i {
  display: block;
  background: #45baa1;
  height: 100%;
  width: 100%;
  border-radius: 6px;
  transition: width 0.15s;
}
.enemy .hp-track i {
  background: #f3a16d;
}
.spin-label {
  font: 600 10px var(--body);
  color: #8b9e89;
}
.versus {
  text-align: center;
  font: 900 italic 23px var(--display);
  color: #91b49b;
  padding-top: 8px;
}
.arena-wrap {
  position: relative;
  flex: 1;
  min-height: 190px;
  touch-action: none;
}
.arena-wrap canvas {
  height: 100%;
  width: 100%;
  display: block;
  touch-action: none;
}
.arena-time {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font: 700 37px var(--display);
  color: #728f79;
  text-align: center;
}
.arena-time small {
  display: block;
  font: 600 8px var(--body);
  letter-spacing: 2px;
  color: #a5b9a2;
  margin-top: 2px;
}
.arena-hint {
  position: absolute;
  bottom: 10px;
  text-align: center;
  width: 100%;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #91a888;
  pointer-events: none;
}
.battle-controls {
  padding: 17px 22px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4;
  border-top: 1px solid #cbdcc4;
  background: #f3f8e9;
  gap: 10px;
}
.joystick {
  width: 104px;
  height: 104px;
  position: relative;
  border-radius: 50%;
  border: 1px solid #cbdbc0;
  background: radial-gradient(
    circle,
    #e4edda 40%,
    #f6f9ec 41%,
    #edf3e0 65%,
    #0000 66%
  );
  touch-action: none;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.joystick:before,
.joystick:after {
  content: "";
  position: absolute;
  background: #bacbad66;
}
.joystick:before {
  width: 1px;
  height: 90%;
}
.joystick:after {
  height: 1px;
  width: 90%;
}
.joystick-knob {
  width: 47px;
  height: 47px;
  border: 1px solid #b4c79d;
  border-radius: 50%;
  background: linear-gradient(135deg, #e3edc7, #c6dba6);
  box-shadow: 0 4px 0 #becf9c;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.joystick-knob svg {
  width: 20px;
  color: #7e9964;
}
.combat-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.minor-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.combat-btn {
  position: relative;
  width: 50px;
  height: 43px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  border: 1px solid #bcd6be;
  background: #e3efdb;
  color: #759d73;
  font-size: 8px;
  font-weight: 700;
  box-shadow: 0 2px 0 #c2d5b2;
}
.combat-btn svg {
  height: 18px;
  width: 18px;
}
.combat-btn.ultimate {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: var(--acid);
  border: 2px solid #c8d14f;
  box-shadow:
    0 4px 0 #bbca42,
    0 0 0 5px #e5eeaf80;
  color: #677d32;
  font-size: 9px;
}
.combat-btn.ultimate svg {
  width: 30px;
  height: 30px;
}
.combat-btn:disabled {
  filter: saturate(0.3);
  opacity: 0.6;
}
.cooldown-number {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: #e1e9ccd9;
  color: #7a8c63;
  font: 800 24px var(--display);
}
.cooldown-number:empty {
  display: none;
}
.battle-announcement {
  position: absolute;
  top: 43%;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 8;
  pointer-events: none;
  font: 900 italic 73px/0.9 var(--display);
  color: #23aa89;
  -webkit-text-stroke: 1px #fff;
  text-shadow:
    0 4px 0 #ffffff,
    0 8px 20px #83c2a566;
  animation: impact-in 0.25s ease-out;
}
.battle-announcement small {
  display: block;
  font: 700 11px var(--body);
  letter-spacing: 3px;
  margin-top: 14px;
  color: #50896c;
  -webkit-text-stroke: 0;
  text-shadow: none;
}
.skill-cut {
  position: absolute;
  top: 36%;
  left: -10%;
  width: 120%;
  padding: 19px 0;
  background: linear-gradient(95deg, #d4ea72, #faffb7, #e8f57a);
  color: #4b7455;
  transform: rotate(-9deg);
  text-align: center;
  font: 900 italic 49px var(--display);
  border-block: 4px solid #fff;
  box-shadow: 0 8px 0 #42795722;
  z-index: 9;
  pointer-events: none;
  animation: skill-cut 0.95s both;
}
.skill-cut small {
  font: 800 11px var(--body);
  display: block;
  letter-spacing: 4px;
}
.modal-shade {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: #29574355;
  backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-panel {
  width: 100%;
  max-width: 375px;
  padding: 27px;
  background: linear-gradient(145deg, #fcfef4, #eff5df);
  border: 2px solid #fff;
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 20px 60px #21493730;
}
.modal-panel h2 {
  font: 900 italic 57px/0.95 var(--display);
  color: #419d7b;
  margin: 15px 0;
}
.modal-panel p {
  font-size: 12px;
  line-height: 1.9;
  color: #859d78;
}
.modal-panel .secondary {
  width: 100%;
  margin-top: 10px;
}
.result-grade {
  font: 900 italic 91px/1 var(--display);
  color: #b8c63a;
  margin: 20px;
  text-shadow: 3px 3px 0 #fff;
}
.result-stats {
  display: flex;
  justify-content: space-around;
  border-block: 1px solid #d5e2c5;
  margin: 20px 0;
  padding: 15px 0;
  font-size: 10px;
  color: #8f9e7e;
}
.result-stats b {
  font: 700 24px var(--display);
  color: #627f4e;
  display: block;
  margin-top: 6px;
}
.launch-meter {
  position: relative;
  height: 20px;
  background: #d9e7c8;
  border-radius: 10px;
  overflow: hidden;
  margin: 24px 0 9px;
}
.launch-meter .perfect-zone {
  position: absolute;
  left: 68%;
  width: 18%;
  height: 100%;
  background: #85bf7d;
}
.launch-meter .meter-needle {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: #386d51;
  box-shadow: 0 0 0 2px #fff;
}
.launch-button {
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  justify-content: center;
  margin-top: 20px;
  min-height: 66px;
}
.launch-instruction {
  font-size: 10px !important;
  margin: 0 !important;
}
.reward-line {
  font-size: 14px;
  font-weight: 700;
  color: #879b40;
  padding: 10px 0;
}
.keyboard-tip {
  font-size: 9px !important;
  color: #a7b59a !important;
}
#toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 100px;
  transform: translate(-50%, 20px);
  background: #355a43;
  color: #f4f8df;
  font-size: 12px;
  font-weight: 600;
  padding: 13px 20px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  white-space: nowrap;
  box-shadow: 0 5px 20px #21493722;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.sound-btn.on {
  color: #22a082;
}
.local-note {
  font-size: 9px;
  text-align: center;
  color: #9aa990;
  margin: 10px 0 0;
}
@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes impact-in {
  from {
    transform: scale(1.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes skill-cut {
  0% {
    translate: -110% 0;
  }
  22%,
  70% {
    translate: 0 0;
  }
  100% {
    translate: 110% 0;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-6px) rotate(1deg);
  }
}
@media (min-width: 700px) {
  .game-shell {
    height: calc(100dvh - 40px);
    margin: 20px auto;
    max-height: 960px;
    min-height: 700px;
    border: 1px solid #bad0b4;
    border-radius: 23px;
    box-shadow: 0 30px 100px #30584122;
  }
}
@media (max-width: 1050px) {
  .desktop-brand,
  .desktop-edition {
    display: none;
  }
}
@media (max-height: 760px) {
  .topbar {
    padding-top: 14px;
    padding-bottom: 9px;
  }
  .lobby-heading {
    padding-top: 5px;
  }
  .hero {
    min-height: 100px;
  }
  .wordmark {
    font-size: 46px;
  }
  .banner {
    min-height: 48px;
    margin-bottom: 12px;
    padding-block: 6px;
  }
  .loadout {
    margin-top: 5px;
    margin-bottom: 12px;
  }
  .stat-row {
    margin-top: 12px;
  }
  .lobby-actions {
    padding-bottom: 12px;
  }
  .primary {
    min-height: 55px;
  }
  .bottom-nav {
    padding-block: 9px 10px;
  }
  .nav-item.active:before {
    top: -10px;
  }
  .preview-stage {
    height: 135px;
  }
  .battle-controls {
    padding-block: 12px 18px;
  }
  .bey-title h2 {
    font-size: 29px;
  }
}
@media (max-height: 600px) {
  .hero {
    min-height: 80px;
  }
  .banner {
    display: none;
  }
  .modal-panel {
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 20px;
  }
  .modal-panel h2 {
    font-size: 43px;
  }
}
@media (max-width: 360px) {
  .topbar,
  .page-header {
    padding-inline: 18px;
  }
  .lobby-heading {
    padding-inline: 18px;
  }
  .loadout,
  .banner {
    margin-inline: 18px;
  }
  .lobby-actions {
    padding-inline: 18px;
  }
  .wordmark {
    font-size: 42px;
  }
  .balances {
    gap: 7px;
  }
  .hero-label {
    left: 18px;
  }
  .scroll-body {
    padding-inline: 18px;
  }
  .combat-actions {
    gap: 7px;
  }
  .battle-controls {
    padding-inline: 16px;
  }
  .joystick {
    width: 92px;
    height: 92px;
  }
  .combat-btn.ultimate {
    width: 77px;
    height: 77px;
  }
  .player-name {
    font-size: 11px;
  }
  .currency {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}



/* Mechanical garage inspection */
.preview-stage.mechanical-inspection {
  height: 220px;
  margin-top: -8px;
  overflow: hidden;
  border: 1px solid #b9d6ca;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(223,239,230,.45)),
    radial-gradient(circle at 52% 44%, #e5f5ec 0 24%, #d3e9df 54%, #b9d4c9 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}
.preview-stage.mechanical-inspection::before {
  content: "MECHANICAL LOCK SYSTEM · LIVE ASSEMBLY";
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 11px;
  font: 700 8px/1 var(--display);
  letter-spacing: 1.6px;
  color: #3e7f6c;
  pointer-events: none;
}
.preview-stage.mechanical-inspection::after {
  content: "BLADE / CORE / DISC / RATCHET / DRIVER / TIP";
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 27px;
  font: 600 7px/1.2 var(--display);
  letter-spacing: 1px;
  color: #78988c;
  pointer-events: none;
}
.preview-stage.mechanical-inspection .stage-name,
.preview-stage.mechanical-inspection .stage-type {
  z-index: 2;
  margin: 0 10px 9px;
}

/* 3D mechanical renderer presentation */
.hero {
  background:
    radial-gradient(circle at 50% 72%, #76f6c026 0 18%, transparent 45%),
    linear-gradient(180deg, #e8f5ed 0%, #dbeee5 58%, #cfdfd8 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 10% 7% 5%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 68%, #3db99b26 0 1px, transparent 1px 18px),
    linear-gradient(90deg, transparent 49.7%, #ffffff66 50%, transparent 50.3%);
  transform: perspective(300px) rotateX(67deg);
  transform-origin: 50% 70%;
  pointer-events: none;
}
.hero canvas,
.preview-stage canvas,
.opponent-card .mini-top {
  filter: saturate(1.08) contrast(1.04);
}
.hero canvas {
  z-index: 1;
}
.preview-stage {
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 72%, #65e2b933 0 18%, transparent 48%),
    linear-gradient(#eef8f0, #dfece4);
  border: 1px solid #d5e3d6;
}
.opponent-card .mini-top {
  z-index: 0;
}

.battle-screen {
  background:
    radial-gradient(circle at 50% 42%, #164a4f, #0c2d31 53%, #071f23 100%);
  color: #effff8;
}
.battle-header,
.battle-hud {
  background: linear-gradient(180deg, #09272bd9, #09272b77);
  backdrop-filter: blur(8px);
}
.battle-header small,
.spin-label,
.versus {
  color: #9fc7bc;
}
.battle-hud {
  border-bottom: 1px solid #64dbc638;
}
.hp-track {
  background: #163e42;
  box-shadow: inset 0 0 0 1px #ffffff14;
}
.hp-track i {
  background: linear-gradient(90deg, #2fe0b6, #9af28d);
  box-shadow: 0 0 12px #42e7bf88;
}
.enemy .hp-track i {
  background: linear-gradient(90deg, #ff775f, #ffb05e);
  box-shadow: 0 0 12px #ff6f4d66;
}
.arena-wrap {
  background:
    radial-gradient(circle at 50% 58%, #2a777d44, transparent 62%),
    linear-gradient(180deg, #0a272b 0%, #0a2024 100%);
}
.arena-time {
  color: #effff8;
  text-shadow: 0 0 18px #72f9d688;
  z-index: 3;
}
.arena-time small {
  color: #8ab7ac;
}
.arena-hint {
  color: #d0eee5;
  text-shadow: 0 1px 8px #041719;
  z-index: 3;
}
.battle-controls {
  background: linear-gradient(180deg, #0c2b30f2, #071f23);
  border-top-color: #4cc9ad3f;
}
.joystick {
  border-color: #4ed7b56b;
  background:
    radial-gradient(circle, #163c42 0 38%, #204d51 39% 42%, #0e292d 43% 65%, transparent 66%);
  box-shadow: inset 0 0 30px #35b69b18, 0 0 20px #08151766;
}
.combat-btn {
  box-shadow: 0 8px 24px #03131555;
}
