@font-face {
  font-family: "Oxanium";
  src: url("../assets/fonts/oxanium-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Oxanium";
  src: url("../assets/fonts/oxanium-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Oxanium";
  src: url("../assets/fonts/oxanium-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Black Ops One";
  src: url("../assets/fonts/black-ops-one-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-0: #08131f;
  --bg-1: #140f14;
  --panel: rgba(7, 18, 29, 0.78);
  --panel-line: rgba(255, 94, 76, 0.18);
  --text: #eef6ff;
  --muted: #9bb7d2;
  --accent: #ff6c52;
  --accent-2: #f7c766;
  --danger: #ff7b72;
  --health: linear-gradient(90deg, #ff7b72, #ffb16f);
  --xp: linear-gradient(90deg, #ff6c52, #f7c766);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  --font-ui: "Oxanium", "Bahnschrift", "Segoe UI Variable", "Trebuchet MS", sans-serif;
  --font-brand: "Black Ops One", "Oxanium", "Bahnschrift", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(161, 38, 38, 0.22), transparent 26%),
    radial-gradient(circle at 80% 20%, rgba(226, 154, 64, 0.12), transparent 28%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  color: var(--text);
  font-family: "Bahnschrift", "Segoe UI Variable", "Trebuchet MS", sans-serif;
}

body {
  position: relative;
  font-family: var(--font-ui);
}

#game {
  width: 100vw;
  height: 100vh;
  display: block;
  cursor: crosshair;
}

body.menu-open #game {
  cursor: default;
}

body.pause-open #game {
  cursor: default;
}

.start-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: auto;
  transition: opacity 160ms ease, transform 160ms ease;
}

.start-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 10, 16, 0.42), rgba(7, 10, 16, 0.62)),
    radial-gradient(circle at 50% 22%, rgba(255, 81, 71, 0.16), transparent 22%),
    radial-gradient(circle at 12% 18%, rgba(255, 202, 109, 0.08), transparent 16%),
    radial-gradient(circle at 80% 80%, rgba(255, 120, 89, 0.08), transparent 16%);
  backdrop-filter: blur(2px);
}

.start-corner {
  position: absolute;
  top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.start-corner-left {
  left: 14px;
}

.start-corner-right {
  right: 14px;
}

.corner-button,
.corner-link {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 2px solid rgba(0, 0, 0, 0.34);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.14),
    0 8px 18px rgba(0, 0, 0, 0.2);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 900;
}

.corner-button {
  cursor: pointer;
  color: #ffffff;
}

.corner-button-account,
.corner-button-guest {
  background: linear-gradient(180deg, #707680, #333841);
}

.corner-button-discord {
  background: linear-gradient(180deg, #7086ff, #4052cf);
}

.corner-button-discord.is-active {
  filter: brightness(1.08);
}

.corner-status {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(10, 18, 28, 0.76);
  border: 1px solid rgba(255, 110, 88, 0.18);
  color: #ffe2da;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.corner-status.is-discord {
  border-color: rgba(114, 135, 255, 0.24);
  color: #e8ecff;
}

.corner-link {
  background: rgba(10, 18, 28, 0.82);
  color: #f2f5f9;
  cursor: pointer;
}

.corner-link.hidden {
  display: none;
}

.start-shell {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100vw - 40px));
}

.start-center-stage {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.start-brand-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(460px, 82vw);
  padding: 12px 0 8px;
  isolation: isolate;
}

.start-brand-stage::before {
  content: "";
  position: absolute;
  inset: 12% 12% 20%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 73, 63, 0.2), rgba(255, 73, 63, 0) 62%),
    radial-gradient(circle at 52% 40%, rgba(248, 199, 102, 0.14), rgba(248, 199, 102, 0) 42%);
  filter: blur(22px);
  opacity: 0.88;
  transform: scale(0.96);
  animation: brandPulse 5.2s ease-in-out infinite;
}

.start-logo-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.logo-particle {
  position: absolute;
  display: block;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 248, 234, 0.96) 0 24%, rgba(255, 177, 112, 0.82) 34%, rgba(255, 103, 77, 0.26) 66%, rgba(255, 103, 77, 0) 100%);
  box-shadow:
    0 0 18px rgba(255, 109, 85, 0.26),
    0 0 28px rgba(247, 199, 102, 0.18);
  opacity: 0;
  animation: logoSparkFloat 4.2s ease-in-out infinite;
}

.logo-particle:nth-child(1) {
  top: 12%;
  left: 20%;
  width: 8px;
  height: 8px;
  animation-delay: 0s;
}

.logo-particle:nth-child(2) {
  top: 18%;
  right: 16%;
  width: 34px;
  height: 3px;
  animation-delay: 0.45s;
}

.logo-particle:nth-child(3) {
  top: 34%;
  left: 8%;
  width: 10px;
  height: 10px;
  animation-delay: 0.9s;
}

.logo-particle:nth-child(4) {
  top: 40%;
  right: 9%;
  width: 12px;
  height: 12px;
  animation-delay: 1.35s;
}

.logo-particle:nth-child(5) {
  top: 58%;
  left: 15%;
  width: 26px;
  height: 4px;
  animation-delay: 1.9s;
}

.logo-particle:nth-child(6) {
  top: 62%;
  right: 18%;
  width: 9px;
  height: 9px;
  animation-delay: 2.4s;
}

.logo-particle:nth-child(7) {
  bottom: 13%;
  left: 26%;
  width: 11px;
  height: 11px;
  animation-delay: 2.9s;
}

.logo-particle:nth-child(8) {
  bottom: 11%;
  right: 23%;
  width: 30px;
  height: 3px;
  animation-delay: 3.35s;
}

.logo-particle:nth-child(9) {
  bottom: 23%;
  right: 44%;
  width: 14px;
  height: 14px;
  animation-delay: 3.8s;
}

.start-logo-art {
  position: relative;
  z-index: 2;
  display: block;
  width: min(430px, 78vw);
  margin: 0;
  filter:
    drop-shadow(0 24px 46px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 36px rgba(255, 75, 70, 0.14));
  animation: logoDrift 6.8s ease-in-out infinite;
}

.start-kicker {
  margin: 0;
  color: #f7d68d;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.86rem;
  font-weight: 700;
  text-shadow: 0 0 18px rgba(247, 199, 102, 0.16);
}

.start-logo {
  margin: -8px 0 2px;
  font-family: var(--font-brand);
  font-size: clamp(2.9rem, 6.2vw, 4.85rem);
  line-height: 0.92;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff1ea;
  text-shadow:
    0 4px 0 rgba(22, 10, 10, 0.96),
    0 10px 24px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(255, 88, 73, 0.28),
    0 0 44px rgba(247, 199, 102, 0.12);
}

.start-player-strip {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 10px;
  align-items: center;
  width: min(560px, 100%);
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 120, 89, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(8, 16, 25, 0.74);
  backdrop-filter: blur(10px);
}

.account-avatar {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 211, 111, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(255, 108, 82, 0.98), rgba(89, 22, 18, 0.96));
  border: 1px solid rgba(255, 173, 139, 0.28);
  color: #fff8f2;
  font-size: 1.8rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.account-avatar.has-image {
  background: rgba(255, 255, 255, 0.04);
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.start-player-meta {
  display: grid;
  gap: 3px;
  text-align: left;
}

.start-player-name {
  margin: 0;
  font-size: 1.28rem;
  line-height: 0.96;
  color: #fff6ee;
}

.start-player-subtitle {
  margin: 0;
  color: #bcc8d5;
  font-size: 0.74rem;
  line-height: 1.3;
  text-align: left;
}

.start-mode {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 108, 82, 0.14);
  border: 1px solid rgba(255, 157, 124, 0.16);
  color: #ffe4bf;
  font-size: 0.66rem;
  font-weight: 900;
  white-space: nowrap;
}

.start-field {
  width: min(560px, 100%);
}

.start-input {
  width: 100%;
  min-height: 62px;
  padding: 0 22px;
  border-radius: 18px;
  border: 2px solid rgba(255, 117, 88, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(4, 12, 19, 0.76);
  color: #f4fbff;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: center;
}

.start-input::placeholder {
  color: rgba(220, 232, 244, 0.34);
}

.start-input:focus {
  outline: none;
  border-color: rgba(255, 108, 82, 0.42);
  box-shadow: 0 0 0 4px rgba(255, 108, 82, 0.12);
}

.start-actions {
  display: grid;
  width: min(560px, 100%);
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 10px;
}

.start-play,
.start-random {
  min-height: 58px;
  border-radius: 18px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition: transform 140ms ease, filter 140ms ease;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.12),
    0 14px 26px rgba(0, 0, 0, 0.22);
}

.start-play:hover,
.start-play:focus-visible,
.start-random:hover,
.start-random:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.04);
  outline: none;
}

.start-play {
  background:
    linear-gradient(180deg, #ffb06b, #ff6d55);
  color: #21110c;
  font-size: 1.15rem;
}

.start-random {
  background:
    linear-gradient(180deg, #6e737d, #2f353d);
  color: #fff1d8;
}

.start-note,
.start-controls {
  margin: 0;
  text-align: center;
}

.start-note {
  min-height: 18px;
  color: #cbb9af;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}

.start-controls {
  color: #98a8b9;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@keyframes brandPulse {
  0%,
  100% {
    opacity: 0.68;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.94;
    transform: scale(1.02);
  }
}

@keyframes logoDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -6px, 0);
  }
}

@keyframes logoSparkFloat {
  0%,
  100% {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.74);
  }

  18% {
    opacity: 0.78;
  }

  54% {
    opacity: 0.98;
    transform: translate3d(0, -8px, 0) scale(1);
  }

  86% {
    opacity: 0.18;
  }
}

.pause-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: auto;
}

.pause-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 14, 0.34), rgba(5, 8, 14, 0.6)),
    radial-gradient(circle at 50% 50%, rgba(255, 115, 90, 0.09), transparent 28%);
  backdrop-filter: blur(4px);
}

.pause-card {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 28px));
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 121, 94, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(10, 18, 28, 0.92);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  text-align: center;
}

.pause-kicker {
  margin: 0 0 8px;
  color: #f7d68d;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
}

.pause-title {
  margin: 0;
  color: #fff6ef;
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  line-height: 1;
}

.pause-copy {
  margin: 12px 0 0;
  color: #c5d3e2;
  font-size: 0.86rem;
  line-height: 1.45;
}

.pause-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.pause-resume,
.pause-abandon {
  min-height: 54px;
  border-radius: 18px;
  border: 2px solid rgba(0, 0, 0, 0.28);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.12),
    0 12px 20px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 900;
  transition: transform 140ms ease, filter 140ms ease;
}

.pause-resume:hover,
.pause-resume:focus-visible,
.pause-abandon:hover,
.pause-abandon:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.04);
  outline: none;
}

.pause-resume {
  background: linear-gradient(180deg, #ffb06b, #ff6d55);
  color: #24130d;
}

.pause-abandon {
  background: linear-gradient(180deg, #6b7079, #2d343d);
  color: #f5f8fb;
}

body.menu-open .hud-shell,
body.menu-open .bottom-player-shell,
body.menu-open .center-banner {
  opacity: 0;
  pointer-events: none;
}

.hud-shell {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.panel {
  pointer-events: none;
  padding: 10px 12px;
  border: 1px solid rgba(255, 111, 88, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    rgba(9, 18, 28, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.left-column,
.right-column {
  display: grid;
  gap: 8px;
  position: fixed;
  top: 14px;
  width: 178px;
  pointer-events: auto;
}

.left-column {
  left: 14px;
}

.right-column {
  right: 14px;
}

.status-panel {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
}

.upgrade-panel,
.upgrade-panel * {
  pointer-events: auto;
}

.help-panel,
.help-panel *,
.rank-panel,
.rank-panel * {
  pointer-events: auto;
}

.upgrade-panel {
  max-height: none;
  overflow: visible;
  scrollbar-width: none;
}

.eyebrow,
.mini-title {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.62rem;
}

.status-panel h1,
.upgrade-panel h2,
.rank-panel h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  line-height: 0.95;
}

.status-head,
.upgrade-head,
.rank-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.status-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 0.35rem 0.48rem;
  border-radius: 999px;
  background: rgba(255, 108, 82, 0.14);
  border: 1px solid rgba(255, 108, 82, 0.22);
  color: #ffe8e2;
  font-size: 0.68rem;
  font-weight: 700;
}

.status-chip-score {
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(255, 209, 102, 0.2);
  color: #fff0bf;
}

.class-path {
  display: none;
}

.health-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.55rem;
  margin-bottom: 0.35rem;
  color: #d7e6f5;
  font-size: 0.72rem;
}

.rank-subtitle {
  color: var(--muted);
  font-size: 0.66rem;
  padding-top: 0.2rem;
}

.help-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin-top: 0.45rem;
}

.help-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px;
  color: #dbe8f5;
  padding: 0.35rem 0.42rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.help-key {
  width: auto;
  text-align: center;
  padding: 0.24rem 0.34rem;
  border-radius: 9px;
  background: rgba(255, 108, 82, 0.12);
  border: 1px solid rgba(255, 146, 117, 0.16);
  color: #fff6ef;
  font-weight: 700;
  font-size: 0.64rem;
}

.help-copy {
  font-size: 0.68rem;
  line-height: 1.15;
}

.points-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  margin-top: 0;
  padding: 0.42rem 0.58rem;
  border-radius: 12px;
  background: rgba(255, 108, 82, 0.12);
  border: 1px solid rgba(247, 199, 102, 0.22);
  color: #ffe5bf;
  min-width: 60px;
  font-size: 0.66rem;
}

.meter {
  position: relative;
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 120ms ease-out;
}

.health-fill {
  background: var(--health);
}

.xp-fill {
  background: var(--xp);
}

.points-box strong {
  font-size: 1rem;
}

.stat-list {
  display: grid;
  gap: 5px;
  margin-top: 0.5rem;
}

.stat-row {
  --stat-color: #73d2de;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 6px;
  padding: 0.32rem 0.4rem;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #dfeaf7;
}

.stat-row-head {
  display: contents;
}

.stat-name {
  min-width: 46px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #eef5fc;
}

.stat-row-body {
  display: contents;
}

.key-tag {
  min-width: 1.45rem;
  text-align: center;
  padding: 0.18rem 0.26rem;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f8fb;
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.58rem;
  font-weight: 700;
}

.segment-strip {
  display: grid;
  grid-template-columns: repeat(var(--segment-count, 8), minmax(2px, 1fr));
  gap: 1px;
}

.segment {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.segment.is-filled {
  background: color-mix(in srgb, var(--stat-color) 78%, white 6%);
  border-color: color-mix(in srgb, var(--stat-color) 64%, white 16%);
  box-shadow: 0 0 18px color-mix(in srgb, var(--stat-color) 16%, transparent);
}

.stat-plus {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--stat-color) 60%, white 12%);
  background: color-mix(in srgb, var(--stat-color) 20%, rgba(255, 255, 255, 0.06));
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease, filter 120ms ease;
}

.stat-plus:hover:not(:disabled),
.stat-plus:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.08);
  outline: none;
}

.stat-plus:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.rank-list {
  display: grid;
  gap: 5px;
  margin-top: 0.45rem;
}

.rank-row {
  padding: 0.36rem 0.44rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.rank-row.is-player {
  border-color: rgba(255, 108, 82, 0.28);
  background: rgba(255, 108, 82, 0.08);
}

.rank-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 5px;
  font-size: 0.66rem;
}

.rank-number {
  color: var(--muted);
  font-weight: 700;
}

.rank-name {
  color: #eef6ff;
  font-weight: 700;
}

.rank-score {
  color: #fff1bf;
  font-weight: 700;
}

.rank-bar {
  position: relative;
  height: 7px;
  margin-top: 0.25rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.rank-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
}

.rank-class {
  display: none;
}

.center-banner {
  position: fixed;
  left: 50%;
  bottom: 118px;
  transform: translateX(-50%);
  padding: 0.55rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 126, 99, 0.12);
  background: rgba(14, 10, 12, 0.92);
  box-shadow: var(--shadow);
  font-size: 0.74rem;
  color: #eff7ff;
  transition: 220ms ease;
  z-index: 30;
}

.bottom-player-shell {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 160px));
  pointer-events: none;
  z-index: 20;
}

.player-name {
  margin: 0 0 8px;
  text-align: center;
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  line-height: 1;
  font-weight: 900;
  color: #eef6ff;
  text-shadow:
    0 3px 0 rgba(10, 18, 27, 0.95),
    0 0 14px rgba(0, 0, 0, 0.22);
}

.score-track,
.xp-track {
  position: relative;
  overflow: hidden;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
}

.score-track {
  margin-bottom: 4px;
}

.score-fill {
  background: linear-gradient(90deg, #ff6c52, #f7c766);
}

.score-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 10px;
}

.score-label {
  color: #f7fff9;
  font-size: 0.72rem;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.32);
}

.xp-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: #0d1822;
  font-size: 0.68rem;
  font-weight: 800;
  mix-blend-mode: screen;
}

.xp-level-label,
.xp-class-label,
.xp-label {
  color: #f3fff9;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.32);
}

.xp-class-label {
  opacity: 0.96;
}

.xp-label {
  justify-self: end;
}

.evolution-panel {
  pointer-events: auto;
  padding: 8px;
  width: 190px;
}

.evolution-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.evolution-panel h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1;
  color: #eef6ff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
}

.evolution-dismiss {
  padding: 0.24rem 0.42rem;
  border-radius: 7px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.14);
  color: #e6eef7;
  font-size: 0.58rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
}

.evolution-dismiss:hover,
.evolution-dismiss:focus-visible {
  outline: none;
  border-color: rgba(126, 240, 194, 0.4);
}

.evolution-subtitle {
  display: none;
}

.evolution-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 0.65rem;
}

.evolution-choice {
  appearance: none;
  text-align: center;
  padding: 0;
  overflow: hidden;
  border-radius: 4px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(146, 245, 234, 0.9) 0 58%, rgba(78, 170, 164, 0.8) 58% 100%);
  border: 3px solid rgba(88, 96, 104, 0.94);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
  display: grid;
  min-height: 98px;
}

.evolution-choice:hover,
.evolution-choice:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(235, 245, 255, 0.92);
  outline: none;
}

.choice-visual {
  display: grid;
  place-items: center;
  min-height: 66px;
  background: rgba(255, 255, 255, 0.16);
}

.evolution-choice .choice-tier {
  display: inline-flex;
  padding: 0.18rem 0.36rem;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.12);
  color: #ffe7a2;
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.evolution-choice h3 {
  margin: 0;
  align-self: end;
  display: grid;
  min-height: 1.35rem;
  place-items: center;
  padding: 0.2rem 0.14rem 0.3rem;
  color: #ffffff;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.68),
    0 0 6px rgba(0, 0, 0, 0.45);
}

.choice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 0.35rem;
}

.choice-tag {
  padding: 0.18rem 0.36rem;
  border-radius: 999px;
  background: rgba(126, 240, 194, 0.1);
  border: 1px solid rgba(126, 240, 194, 0.14);
  color: #dbfff2;
  font-size: 0.56rem;
  font-weight: 700;
}

.choice-metrics {
  display: grid;
  gap: 5px;
  margin-top: 0.45rem;
}

.choice-metric {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 6px;
  color: #d3e1ef;
  font-size: 0.58rem;
}

.choice-meter {
  position: relative;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.choice-meter span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(115, 210, 222, 0.94), rgba(126, 240, 194, 0.94));
}

.evolution-choice p {
  margin: 0.2rem 0 0;
  color: #d7e4ef;
  line-height: 1.25;
  font-size: 0.62rem;
}

.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

@media (max-width: 1180px) {
  .left-column,
  .right-column {
    width: 164px;
  }
}

@media (max-width: 760px) {
  .panel {
    padding: 8px 10px;
    border-radius: 14px;
  }

  .rank-panel {
    display: none;
  }

  .start-screen {
    padding: 16px;
  }

  .start-corner {
    position: static;
    justify-content: center;
    flex-wrap: wrap;
  }

  .start-screen {
    align-content: start;
    gap: 12px;
  }

  .start-logo-art {
    width: min(250px, 72vw);
  }

  .start-brand-stage {
    width: min(286px, 78vw);
    padding: 6px 0 2px;
  }

  .start-center-stage {
    gap: 10px;
  }

  .start-shell,
  .start-center-stage,
  .start-field,
  .start-actions,
  .start-player-strip {
    width: 100%;
  }

  .start-actions {
    grid-template-columns: 1fr;
  }

  .start-player-strip {
    grid-template-columns: 58px 1fr;
    justify-items: start;
    padding: 10px 12px;
  }

  .account-avatar {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 1.4rem;
  }

  .start-mode {
    grid-column: 1 / -1;
  }

  .start-input,
  .start-play,
  .start-random,
  .corner-button,
  .corner-link {
    min-height: 50px;
  }

  .start-input {
    font-size: 1rem;
  }

  .start-player-name {
    font-size: 1.08rem;
  }

  .start-player-subtitle,
  .start-note {
    font-size: 0.68rem;
  }

  .start-controls {
    display: none;
    font-size: 0.66rem;
    line-height: 1.5;
  }

  .pause-actions {
    grid-template-columns: 1fr;
  }

  .xp-overlay {
    grid-template-columns: auto 1fr;
    gap: 8px;
    font-size: 0.76rem;
  }

  .xp-class-label {
    display: none;
  }

  .left-column {
    top: 10px;
    left: 10px;
    width: 150px;
  }

  .bottom-player-shell {
    width: min(420px, calc(100vw - 24px));
  }

  .center-banner {
    bottom: 112px;
    width: min(420px, calc(100vw - 24px));
    text-align: center;
  }
}
