:root {
  --bg0: #06080c;
  --panel: rgba(8, 12, 16, 0.55);
  --text: #f5f7fa;
  --muted: #9aa3ad;
  --cyan: #5cf0d8;
  --teal: #2ec4b0;
  --amber: #f0b429;
  --line: rgba(92, 240, 216, 0.22);
  --font-ui: "Sora", "Segoe UI", sans-serif;
  --font-brand: "Orbitron", "Sora", sans-serif;
}

* {
  box-sizing: border-box;
  user-select: none;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg0);
  color: var(--text);
  font-family: var(--font-ui);
  overflow: hidden;
}

button,
input,
textarea {
  font-family: inherit;
}

#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #05070a;
  overflow: hidden;
}

#game {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: none;
  z-index: 0;
  background: #4a525a;
}

.strafe-peek-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 0;
  pointer-events: none;
  background: #1a222a;
}

.strafe-peek-gl.is-active {
  display: block;
}

#game.is-strafepeek {
  background: transparent;
}

#enemies-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  contain: layout style;
}

#peek-slit {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
}

#enemies-layer img {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

#boxes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 2;
  contain: strict;
}

#crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 5;
}

.valorant-crosshair {
  pointer-events: none;
  width: 0;
  height: 0;
}

.ch-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 128px;
  height: 128px;
  transform: translate(-50%, -50%);
  image-rendering: pixelated;
  pointer-events: none;
}

#gun {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 4;
  transform-origin: 70% 85%;
  display: none;
}

#gun.is-left-hand {
  /* Centro: scaleX espelha a arte (arma no canto) sem empurrar pra fora. */
  transform-origin: 50% 50%;
}

/* Tamanho real fora da tela — 1px throttla decode; em (0,0) pode tapar a view. */
.gun-inspect-src {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 1920px;
  height: 1080px;
  opacity: 0;
  pointer-events: none;
}

.gun-inspect-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  image-rendering: auto;
  pointer-events: none;
  z-index: 5;
  transform-origin: 70% 85%;
  display: none;
  background: transparent;
}

.gun-inspect-canvas.is-left-hand {
  transform-origin: 50% 50%;
}

.gun-inspect-canvas.is-playing {
  display: block;
}

#fx-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 3;
  display: none;
  opacity: 0;
}

#hud {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 12px #000;
  z-index: 6;
  pointer-events: none;
  font-weight: 600;
}

#hud.hud-cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
  text-align: left;
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: none;
}
.hud-card {
  min-width: 108px;
  padding: 10px 16px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 14, 20, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hud-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(235, 240, 245, 0.72);
}
.hud-card-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
  color: #f4f7fa;
  font-variant-numeric: tabular-nums;
}

.match-loading {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 6, 10, 0.88);
  backdrop-filter: blur(8px);
}
.match-loading.hidden {
  display: none;
}
.match-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 32px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 14, 18, 0.92);
  min-width: min(280px, 86vw);
  text-align: center;
}
.match-loading-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: #5cf0d8;
  animation: matchLoadSpin 0.75s linear infinite;
}
.match-loading-text {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #f2f5f7;
}
.match-loading-sub {
  margin: 0;
  font-size: 13px;
  color: rgba(230, 236, 240, 0.55);
}
@keyframes matchLoadSpin {
  to {
    transform: rotate(360deg);
  }
}

.restart-hint {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 7;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(170, 178, 188, 0.55);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  user-select: none;
}

.restart-hint kbd,
.restart-hint .restart-hint-key {
  color: rgba(200, 208, 218, 0.72);
  font-weight: 750;
}

#menu-bg {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 70% 40%, rgba(46, 196, 176, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 50% at 15% 85%, rgba(240, 180, 41, 0.08), transparent 55%),
    linear-gradient(160deg, #04070b 0%, #0b1520 42%, #081018 100%);
  opacity: 1;
  transition: opacity 0.35s ease;
}

.menu-bg-glow {
  position: absolute;
  left: 50%;
  top: 35%;
  width: min(70vw, 780px);
  height: min(70vw, 780px);
  transform: translate(-40%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 240, 216, 0.18), transparent 68%);
  filter: blur(10px);
  animation: glowPulse 6s ease-in-out infinite;
}

.menu-hero {
  position: absolute;
  right: max(-2vw, -20px);
  bottom: 0;
  height: min(98vh, 980px);
  width: auto;
  max-width: 55vw;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45)) brightness(1.05) contrast(1.05);
  animation: heroIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both, heroFloat 7s ease-in-out 0.9s infinite;
  z-index: 1;
}

.menu-bg-fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(4, 7, 11, 0.55) 0%, rgba(4, 7, 11, 0.25) 42%, rgba(4, 7, 11, 0.08) 68%, rgba(4, 7, 11, 0.2) 100%),
    linear-gradient(180deg, rgba(4, 7, 11, 0.15) 0%, transparent 30%, rgba(4, 7, 11, 0.45) 100%);
}

.menu-bg-fade::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(92, 240, 216, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 240, 216, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.7;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes heroIn {
  from { opacity: 0; transform: translateX(40px) scale(1.04); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  overflow: auto;
}

#menu {
  position: absolute;
}

.screen.hidden {
  display: none !important;
}

.lang-switch {
  position: static;
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.menu-corner {
  position: absolute;
  top: clamp(14px, 2.5vh, 28px);
  right: clamp(14px, 2.5vw, 28px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: auto;
}

.user-chip {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(8, 10, 14, 0.72);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.user-chip .nav-badge {
  top: -2px;
  right: -2px;
  z-index: 2;
}

.user-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.user-chip.is-logged {
  border-color: rgba(255, 85, 81, 0.45);
}

.user-chip-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.user-chip-icon {
  width: 22px;
  height: 22px;
  opacity: 0.9;
}

.user-chip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-chip-dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffc857;
  border: 2px solid rgba(8, 10, 14, 0.95);
  box-shadow: 0 0 8px rgba(255, 200, 87, 0.55);
}

.lang-btn {
  width: 44px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(8, 10, 14, 0.55);
  cursor: pointer;
  overflow: hidden;
  opacity: 0.72;
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.lang-btn svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lang-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.lang-btn.active {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(255, 70, 85, 0.35);
}

.menu-layout {
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4.5vw, 56px);
  padding: clamp(20px, 4vh, 48px) clamp(20px, 4vw, 48px);
  position: relative;
  z-index: 3;
}

.menu-left {
  width: min(480px, 100%);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: riseIn 0.55s ease both;
  position: relative;
  z-index: 3;
  margin: 0;
  flex-shrink: 0;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: transparent;
}

.brand-tag {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
}

.brand-title {
  margin: 2px 0 0;
  font-family: var(--font-brand);
  font-size: clamp(36px, 6vw, 58px);
  letter-spacing: 0.14em;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.main-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-pill {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--muted);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: 0.2s ease;
}

.nav-pill:hover {
  color: #fff;
  border-color: var(--line);
}

.nav-pill.active {
  color: #041210;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(46, 196, 176, 0.25);
}

.mode-spotlight {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(6, 10, 14, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.mode-spotlight-top {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.mode-arrow {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.15s ease;
  padding: 0;
  flex-shrink: 0;
  justify-self: center;
}

.mode-arrow svg {
  width: 22px;
  height: 22px;
  display: block;
}

.mode-arrow:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(92, 240, 216, 0.08);
}

.mode-spotlight-body {
  text-align: center;
  min-height: 118px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.mode-kicker {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.mode-title {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(22px, 3.6vw, 34px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.mode-record {
  margin: 6px 0 0;
  color: var(--amber);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 28px;
}

.mode-record-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.mode-record-icon.hidden {
  display: none !important;
}

.mode-record-text {
  line-height: 1.2;
}

.play-btn {
  width: 100%;
  min-width: 0;
  padding: 16px 20px;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 14px;
  background: linear-gradient(135deg, #5cf0d8, #1fa892);
  box-shadow: 0 14px 36px rgba(46, 196, 176, 0.28);
}

.spotify-menu-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(29, 185, 84, 0.35);
  background:
    linear-gradient(135deg, rgba(29, 185, 84, 0.18), rgba(29, 185, 84, 0.05)),
    rgba(8, 12, 14, 0.75);
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 10px 28px rgba(29, 185, 84, 0.12);
}

.spotify-menu-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(29, 185, 84, 0.7);
  box-shadow: 0 14px 34px rgba(29, 185, 84, 0.22);
  background:
    linear-gradient(135deg, rgba(29, 185, 84, 0.28), rgba(29, 185, 84, 0.08)),
    rgba(8, 12, 14, 0.85);
}

.spotify-menu-btn:active {
  transform: translateY(0);
}

.spotify-menu-btn.is-connected {
  border-color: rgba(29, 185, 84, 0.75);
  background:
    linear-gradient(135deg, #1db954, #169c46),
    #1db954;
  box-shadow: 0 12px 32px rgba(29, 185, 84, 0.35);
}

.spotify-menu-btn.is-connected:hover {
  filter: brightness(1.05);
}

.spotify-menu-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.spotify-menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #1db954;
  color: #000;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.spotify-menu-btn.is-connected .spotify-menu-icon {
  background: #000;
  color: #1db954;
}

.spotify-menu-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.spotify-menu-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spotify-menu-copy strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-menu-copy small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-menu-btn.is-connected .spotify-menu-copy small {
  color: rgba(0, 0, 0, 0.72);
}

.spotify-menu-btn.is-connected .spotify-menu-copy strong {
  color: #04140a;
}

.youtube-menu-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 0, 0, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 0, 0, 0.16), rgba(255, 0, 0, 0.04)),
    rgba(8, 12, 14, 0.75);
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 28px rgba(255, 0, 0, 0.1);
}

.youtube-menu-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 0, 0, 0.55);
}

.youtube-menu-btn.is-active {
  border-color: rgba(255, 0, 0, 0.7);
  background: linear-gradient(135deg, #ff0000, #cc0000);
}

.youtube-menu-btn.is-active .spotify-menu-copy strong,
.youtube-menu-btn.is-active .spotify-menu-copy small {
  color: #fff;
}

.youtube-menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #ff0000;
  color: #fff;
}

.youtube-menu-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.youtube-menu-btn.is-active .youtube-menu-icon {
  background: #fff;
  color: #ff0000;
}

.youtube-modal-card {
  width: min(480px, 100%);
  align-items: stretch;
  text-align: left;
  gap: 14px;
}

.youtube-link-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.youtube-link-field input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  padding: 12px 14px;
  font: 13px/1.4 var(--font-ui);
  text-transform: none;
  letter-spacing: 0;
}

.youtube-play-btn {
  background: linear-gradient(135deg, #ff0000, #cc0000) !important;
  border: 0 !important;
}

.youtube-bar {
  border-color: rgba(255, 255, 255, 0.08);
  background: #181818;
}

.youtube-btn-main {
  background: #ff0000 !important;
  color: #fff !important;
}

.youtube-btn-main:hover {
  background: #ff2222 !important;
  color: #fff !important;
}

.youtube-btn-search {
  color: #ff4444;
}

.youtube-btn-search:hover {
  color: #ff6666;
}

.youtube-art-fallback {
  color: #ff0000 !important;
}

.yt-player-host {
  position: fixed;
  width: 240px;
  height: 135px;
  left: -9999px;
  top: 0;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

.mode-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mode-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  padding: 0;
  transition: 0.15s ease;
}

.mode-dot.active {
  background: var(--cyan);
  transform: scale(1.25);
  box-shadow: 0 0 12px rgba(92, 240, 216, 0.55);
}

.duration-opts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.duration-pill {
  min-width: 72px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.4);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s ease;
}

.duration-pill:hover {
  color: #fff;
  border-color: var(--line);
}

.duration-pill.active {
  color: #120900;
  background: linear-gradient(135deg, var(--amber), #d4921a);
  border-color: transparent;
}

.duration-pill.duration-inf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 10px 16px;
}

.duration-pill.duration-inf svg {
  width: 22px;
  height: 22px;
  display: block;
}

.modal {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.hidden {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 8, 0.72);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 28px 24px 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 18, 0.92);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  animation: riseIn 0.3s ease both;
}

.modal-visual {
  flex-wrap: wrap;
  justify-content: center;
}

.modal-visual .duration-pill {
  min-width: 0;
  flex: 1 1 auto;
}

.modal-card h2 {
  margin: 0;
  font-family: var(--font-brand);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 20px;
  color: var(--cyan);
}

.modal-sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.modal-label {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
}

.modal-duration {
  margin: 2px 0 4px;
}

.modal-actions {
  width: 100%;
  margin-top: 6px;
}

.modal-actions .btn {
  flex: 1;
  min-width: 0;
}

.screen-foot {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.screen-shell {
  width: min(980px, 100%);
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  animation: riseIn 0.45s ease both;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.panel-head h2 {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.panel-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(8, 12, 16, 0.72);
  backdrop-filter: blur(16px);
  padding: 18px;
}

.btn {
  min-width: 150px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #041210;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: 0.15s ease;
}

.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn.ghost {
  min-width: 0;
  background: rgba(12, 14, 18, 0.75);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
}

.btn.back {
  padding: 10px 14px;
  font-size: 13px;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 0;
}

.section-title {
  margin: 0 0 6px;
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.skins-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 18px 18px;
  background:
    radial-gradient(ellipse 70% 50% at 18% 0%, rgba(255, 70, 85, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 92% 8%, rgba(92, 240, 216, 0.06), transparent 50%),
    rgba(8, 10, 14, 0.55);
}

.arsenal-tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.arsenal-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.15s ease;
}

.arsenal-tab-new {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #ff4655, #ff7a2f);
  box-shadow: 0 2px 8px rgba(255, 70, 85, 0.35);
  line-height: 1.2;
}
.arsenal-tab-new[hidden] {
  display: none !important;
}

.arsenal-soon {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
  background: rgba(255, 70, 85, 0.85);
  text-transform: uppercase;
}

.arsenal-tab:hover:not(.is-locked) {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.arsenal-tab.active {
  color: #fff;
  border-color: rgba(240, 180, 41, 0.4);
  background: linear-gradient(120deg, rgba(240, 180, 41, 0.18), rgba(255, 70, 85, 0.12));
  box-shadow: 0 0 0 1px rgba(240, 180, 41, 0.12);
}

.keychain-inspect-hint {
  margin: 8px 0 0;
  color: #f0b429;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.skin-card-badge--premium {
  left: auto;
  right: 10px;
  color: #1a1200;
  background: linear-gradient(120deg, #f0b429, #ffd36a);
  box-shadow: 0 4px 12px rgba(240, 180, 41, 0.35);
}

.arsenal-tab.is-locked {
  opacity: 0.55;
  cursor: pointer;
  position: relative;
}

.arsenal-tab.is-locked.active {
  opacity: 0.85;
}

.arsenal-tab.is-locked::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-left: 2px;
  border-radius: 2px;
  background:
    linear-gradient(currentColor, currentColor) center 2px / 6px 5px no-repeat,
    transparent;
  box-shadow:
    inset 0 0 0 1.5px currentColor;
  opacity: 0.75;
}

.arsenal-tab.is-pulse {
  animation: arsenalLockPulse 0.45s ease;
}

@keyframes arsenalLockPulse {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}

.arsenal-panel {
  min-height: 0;
}

.arsenal-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: min(48vh, 420px);
  padding: 36px 24px;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 70, 85, 0.1), transparent 55%),
    rgba(0, 0, 0, 0.28);
}

.arsenal-locked-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.arsenal-locked-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #ff4655, #ff7a2f);
}

.arsenal-locked h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.arsenal-locked p {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.skins-stage {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 18px;
  align-items: start;
}

.loadout-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: min(66vh, 700px);
}

.loadout-weapon-rail {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.loadout-weapon-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(210, 218, 228, 0.62);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.loadout-weapon-btn em {
  font-style: normal;
  font-size: 0.72rem;
  opacity: 0.75;
  letter-spacing: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 1.2em;
  text-align: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.loadout-weapon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.08);
}

.loadout-weapon-btn.active {
  color: #fff;
  border-color: rgba(240, 180, 41, 0.55);
  background: linear-gradient(120deg, rgba(240, 180, 41, 0.24), rgba(255, 70, 85, 0.14));
  box-shadow: 0 0 0 1px rgba(240, 180, 41, 0.14), 0 8px 18px rgba(240, 180, 41, 0.1);
}

.loadout-weapon-new {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #ff4655, #ff7a2f);
  box-shadow: 0 2px 8px rgba(255, 70, 85, 0.35);
}

.loadout-main {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(340px, 1.1fr);
  gap: 14px;
  align-items: stretch;
  min-width: 0;
  flex: 1;
}

.loadout-inspect {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(165deg, rgba(28, 34, 44, 0.96), rgba(6, 8, 12, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 44px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  min-width: 0;
}

.loadout-inspect-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 260px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(255, 70, 85, 0.16), transparent 60%),
    radial-gradient(circle at 50% 40%, #2a3646, #05070a 72%);
}

.loadout-inspect-stage.is-flash img {
  animation: loadoutInspectIn 0.32s ease;
}

@keyframes loadoutInspectIn {
  from { opacity: 0.35; transform: scale(0.97); }
  to { opacity: 1; transform: none; }
}

.loadout-inspect-glow {
  position: absolute;
  inset: auto 10% -20% 10%;
  height: 45%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 240, 216, 0.2), transparent 70%);
  pointer-events: none;
  filter: blur(10px);
}

.loadout-inspect-floor {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 7%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55), transparent 72%);
  pointer-events: none;
}

.loadout-inspect-stage img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  padding: 28px 22px 40px;
  box-sizing: border-box;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45));
}

/* Chaveiro no stage grande: reduz sem cropar. */
#keychain-preview-ui img {
  padding: 48px 56px 64px;
  transform: scale(0.78);
  transform-origin: center 68%;
}

.loadout-inspect-hud {
  position: absolute;
  inset: 14px 14px auto 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.loadout-weapon-tag,
.loadout-equipped-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.loadout-weapon-tag {
  margin: 0;
  color: #ffe2a8;
  background: rgba(20, 14, 6, 0.6);
  border: 1px solid rgba(240, 180, 41, 0.4);
}

.loadout-equipped-pill {
  color: #041018;
  background: linear-gradient(90deg, #7dffa3, #5cf0d8);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.loadout-inspect-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.28);
}

.loadout-inspect-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.loadout-inspect-kicker {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(180, 194, 210, 0.55);
}

.loadout-inspect-meta strong {
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 750;
}

.loadout-collection {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 6, 10, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.loadout-collection-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.loadout-collection-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.loadout-collection-head p {
  margin: 4px 0 0;
  font-size: 0.74rem;
  color: var(--muted);
}

.loadout-collection .skin-grid {
  flex: 1 1 auto;
  max-height: min(58vh, 600px);
  min-height: 300px;
}

@media (max-width: 980px) {
  .loadout-main {
    grid-template-columns: 1fr;
  }
}

.skin-preview-pane {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(28, 34, 42, 0.95), rgba(8, 10, 14, 0.98));
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skin-preview-frame {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 70%, #1c2630, #07090c 72%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
}

.skin-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.skin-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.skin-preview-meta strong { font-size: 1.02rem; line-height: 1.3; }
.skin-preview-meta span {
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skin-variant-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.skin-variant-row.hidden { display: none; }

.skin-variant-btn {
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: 0.15s ease;
}

.skin-variant-btn:hover {
  border-color: rgba(255, 70, 85, 0.45);
  background: rgba(255, 70, 85, 0.12);
}

.skin-variant-btn.active {
  border-color: rgba(240, 180, 41, 0.65);
  background: linear-gradient(120deg, rgba(240, 180, 41, 0.22), rgba(255, 70, 85, 0.16));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(240, 180, 41, 0.2);
}

.skin-grid-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.skin-grid-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.skin-grid-head h3 { margin: 0; font-size: 0.95rem; font-weight: 700; }
.skin-grid-head p { margin: 0; font-size: 0.78rem; color: var(--muted); }

.skin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 12px;
  align-content: start;
  align-items: start;
  grid-auto-rows: max-content;
  max-height: min(60vh, 580px);
  overflow: auto;
  padding: 2px 4px 8px 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(92, 240, 216, 0.55) transparent;
}

.main-nav .nav-pill { position: relative; }

.nav-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff4655;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(5, 6, 10, 0.9);
  pointer-events: none;
}

.skin-card {
  display: grid;
  grid-template-rows: 112px auto;
  align-self: start;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.48);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  position: relative;
  overflow: hidden;
  min-height: 158px;
  height: auto;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.skin-card-art {
  position: relative;
  width: 100%;
  height: 112px;
  min-height: 112px;
  max-height: 112px;
  background: radial-gradient(circle at 50% 70%, #1c2630, #07090c 75%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.skin-card-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 10px;
  box-sizing: border-box;
  pointer-events: none;
}

.skin-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 11px 11px;
  background: rgba(0, 0, 0, 0.28);
  min-height: 46px;
}

.skin-card .skin-name {
  font-size: 0.84rem;
  font-weight: 650;
  color: rgba(236, 242, 248, 0.94);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.25;
}

.skin-card .skin-card-weapon {
  display: block;
  margin: 0;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 200, 120, 0.72);
  line-height: 1.2;
}

.skin-card.is-featured {
  grid-column: 1 / -1;
  grid-template-rows: 148px auto;
  min-height: 200px;
  border-color: rgba(255, 70, 85, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 70, 85, 0.18), rgba(0, 0, 0, 0.42) 55%),
    rgba(0, 0, 0, 0.52);
  box-shadow: 0 12px 30px rgba(255, 70, 85, 0.14);
}

.skin-card.is-featured .skin-card-art {
  height: 148px;
  min-height: 148px;
  max-height: 148px;
}

.skin-card.is-featured .skin-card-meta {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 14px;
  min-height: 52px;
}

.skin-card.is-featured .skin-name {
  font-size: 1.08rem;
  font-weight: 750;
  color: #fff;
  flex: 1 1 auto;
  white-space: normal;
}

.skin-card.is-featured .skin-card-weapon { order: -1; }

.skin-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #ff4655, #ff7a2f);
  box-shadow: 0 4px 12px rgba(255, 70, 85, 0.35);
}

.skin-card-sub {
  margin: 0;
  width: 100%;
  font-size: 0.72rem;
  opacity: 0.65;
  line-height: 1.35;
}

.skin-card:hover {
  border-color: rgba(92, 240, 216, 0.48);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.skin-card.active {
  border-color: rgba(240, 180, 41, 0.85);
  box-shadow: 0 0 0 1px rgba(240, 180, 41, 0.4), 0 12px 26px rgba(240, 180, 41, 0.12);
}

.skin-card.active::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5cf0d8;
  box-shadow: 0 0 10px rgba(92, 240, 216, 0.85);
}

.skin-card.active .skin-name { color: #fff; }


.settings-shell,
.skins-shell {
  width: min(1240px, 100%);
}

.settings-shell {
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding-bottom: 32px;
  scrollbar-width: thin;
}

.settings-head {
  align-items: flex-start;
}

.settings-kicker {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(92, 240, 216, 0.72);
}

.settings-head-copy h2 {
  margin: 0;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.settings-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(165deg, rgba(28, 34, 44, 0.88), rgba(6, 8, 12, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 36px rgba(0, 0, 0, 0.28);
  min-width: 0;
}

.settings-card--hand {
  grid-column: auto;
}

.settings-card--crosshair,
.settings-card--spotify {
  grid-column: 1 / -1;
}

.settings-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.settings-card-head h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(245, 247, 250, 0.96);
}

.settings-card-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.settings-card-val {
  margin-left: auto;
  font-size: 0.86rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(92, 240, 216, 0.92);
  padding-top: 2px;
}

.settings-card-ico {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(92, 240, 216, 0.1);
  border: 1px solid rgba(92, 240, 216, 0.18);
  color: var(--cyan);
}

.settings-card-ico svg {
  width: 18px;
  height: 18px;
}

.settings-card-ico--spotify {
  background: rgba(29, 185, 84, 0.12);
  border-color: rgba(29, 185, 84, 0.28);
  color: #1db954;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(236, 242, 248, 0.82);
}

.settings-sens-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.settings-sens-row .settings-field input,
#settings .settings-field input[type="number"] {
  width: 100%;
  max-width: none;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.42);
  color: var(--text);
  padding: 0 12px;
  font-size: 15px;
}

.settings-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

#sens-hint {
  margin: 0;
  width: 100%;
}

.settings-hand-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}

.settings-outline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.settings-outline-swatch {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: var(--swatch, rgba(255, 255, 255, 0.08));
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.75);
  font: inherit;
  font-size: 0.65rem;
  font-weight: 700;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.settings-outline-swatch:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.35);
}

.settings-outline-swatch.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25), 0 0 12px color-mix(in srgb, var(--swatch, #fff) 45%, transparent);
}

.settings-outline-swatch[data-outline="off"] {
  background: rgba(0, 0, 0, 0.35);
  width: auto;
  min-width: 44px;
  padding: 0 10px;
}

.settings-outline-swatch--wide {
  width: auto;
  min-width: 52px;
  padding: 0 10px;
  color: rgba(0, 0, 0, 0.72);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.settings-hand-btn {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font: inherit;
  min-width: 0;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.settings-hand-btn:hover {
  border-color: rgba(92, 240, 216, 0.35);
  transform: translateY(-1px);
}

.settings-hand-btn.active {
  border-color: rgba(92, 240, 216, 0.55);
  background: linear-gradient(165deg, rgba(92, 240, 216, 0.14), rgba(0, 0, 0, 0.35));
  box-shadow: 0 0 0 1px rgba(92, 240, 216, 0.12);
}

.settings-hand-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.settings-hand-btn strong {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.settings-hand-btn small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.settings-hand-preview {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: linear-gradient(180deg, #1a222c, #07090d);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}

.settings-hand-gun {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  pointer-events: none;
  transform-origin: 50% 50%;
}

.settings-hand-gun--left {
  transform: scaleX(-1);
}

.settings-hand-cross {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  pointer-events: none;
  z-index: 2;
}

.settings-hand-cross::before,
.settings-hand-cross::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(245, 247, 250, 0.9);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.settings-hand-cross::before {
  width: 10px;
  height: 2px;
  margin: -1px 0 0 -5px;
}

.settings-hand-cross::after {
  width: 2px;
  height: 10px;
  margin: -5px 0 0 -1px;
}

.settings-volume {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.settings-crosshair-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 14px;
  align-items: start;
}

.settings-crosshair-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.settings-spotify-actions {
  justify-content: flex-start;
}

.settings-spotify-connect {
  background: linear-gradient(135deg, #1db954, #169c46) !important;
  color: #04140a !important;
}

@media (max-width: 860px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-card--crosshair,
  .settings-card--spotify {
    grid-column: auto;
  }

  .settings-crosshair-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .settings-sens-row,
  .settings-hand-row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: min(420px, 100%);
  font-size: 14px;
  font-weight: 500;
}

.settings-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#spotify-playlist {
  width: min(420px, 100%);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  padding: 10px 12px;
  font: 13px/1.4 var(--font-ui);
}

.spotify-open-lib {
  width: min(420px, 100%);
  background: linear-gradient(135deg, #1db954, #169c46) !important;
  color: #04140a !important;
  border: 0 !important;
  box-shadow: 0 10px 28px rgba(29, 185, 84, 0.25);
}

.spotify-modal-card {
  width: min(560px, 100%);
  max-height: min(88vh, 780px);
  align-items: stretch;
  text-align: left;
  gap: 12px;
  padding: 20px 18px 16px;
}

.spotify-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.spotify-modal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.spotify-modal-brand h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.spotify-modal-user {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.spotify-modal-close {
  flex: 0 0 auto;
  padding: 8px 12px;
}

.spotify-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(29, 185, 84, 0.28);
  background: rgba(0, 0, 0, 0.42);
}

.spotify-search-lg {
  padding: 14px 16px;
  border-radius: 16px;
  border-color: rgba(29, 185, 84, 0.5);
  box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.08);
}

.spotify-search svg {
  width: 18px;
  height: 18px;
  color: #1db954;
  flex: 0 0 auto;
}

.spotify-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 15px/1.3 var(--font-ui);
}

.spotify-search input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.spotify-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.spotify-tab {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.spotify-tab.active {
  color: #04140a;
  background: #1db954;
  border-color: #1db954;
}

.spotify-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  max-height: min(48vh, 420px);
  padding-right: 2px;
  min-height: 180px;
}

.spotify-result {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: 0.15s ease;
}

.spotify-result:hover {
  border-color: rgba(29, 185, 84, 0.45);
  background: rgba(29, 185, 84, 0.1);
}

.spotify-result img,
.spotify-result-fallback {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.spotify-result-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1db954;
  font-size: 18px;
  font-weight: 700;
}

.spotify-result-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spotify-result-copy strong {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-result-copy span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-result-play {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  background: #1db954;
  color: #04140a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex: 0 0 auto;
  pointer-events: none;
}

.spotify-result-type {
  display: none;
}

.spotify-empty {
  margin: 0;
  text-align: center;
  padding: 28px 12px;
}

.spotify-empty.hidden {
  display: none !important;
}

.spotify-modal-out {
  width: 100%;
}

.spotify-bar {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 24px));
  z-index: 46;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #181818;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}

.spotify-bar.hidden {
  display: none !important;
}

.spotify-now {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.spotify-art-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 6px;
  overflow: hidden;
  background: #282828;
}

.spotify-art {
  width: 40px;
  height: 40px;
  object-fit: cover;
  display: none;
  position: relative;
  z-index: 1;
}

.spotify-art.is-on {
  display: block;
}

.spotify-art-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1db954;
  background: #282828;
}

.spotify-art-fallback svg {
  width: 20px;
  height: 20px;
}

.spotify-art-wrap.has-art .spotify-art-fallback {
  display: none;
}

.spotify-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.spotify-meta strong {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-meta span {
  font-size: 11px;
  color: #b3b3b3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-controls {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
  align-items: center;
}

.spotify-volume {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 2px;
  color: #b3b3b3;
}

.spotify-volume svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.spotify-volume input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: #404040;
  outline: none;
  cursor: pointer;
}

.spotify-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.spotify-volume input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.spotify-volume:hover {
  color: #fff;
}

.youtube-bar .spotify-volume input[type="range"]::-webkit-slider-thumb,
.pause-youtube .spotify-volume input[type="range"]::-webkit-slider-thumb {
  background: #ff0033;
}

.youtube-bar .spotify-volume input[type="range"]::-moz-range-thumb,
.pause-youtube .spotify-volume input[type="range"]::-moz-range-thumb {
  background: #ff0033;
}

.spotify-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #b3b3b3;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.spotify-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.spotify-btn:hover {
  color: #fff;
}

.spotify-btn-main {
  width: 32px;
  height: 32px;
  background: #fff;
  color: #000;
}

.spotify-btn-main:hover {
  transform: scale(1.06);
  color: #000;
  background: #fff;
}

.spotify-btn-main svg {
  width: 14px;
  height: 14px;
}

.spotify-btn-search {
  color: #1db954;
}

.spotify-btn-search:hover {
  color: #1ed760;
}

.pause-spotify {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #181818;
}

.pause-spotify.hidden {
  display: none !important;
}

.pause-spotify-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.pause-spotify-controls {
  justify-content: center;
}

.pause-volume-card {
  width: 100%;
  margin: 2px 0 4px;
}

.volume-control {
  width: 100%;
  padding: 12px 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(160deg, rgba(255, 122, 47, 0.1), transparent 55%),
    rgba(0, 0, 0, 0.28);
  text-align: left;
}

.volume-control-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.volume-control-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 122, 47, 0.16);
  color: #ff9a5a;
  flex: 0 0 auto;
}

.volume-control-ico svg {
  width: 18px;
  height: 18px;
}

.volume-control-copy {
  flex: 1;
  min-width: 0;
}

.volume-control-copy strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
}

.volume-control-copy .hint {
  margin: 2px 0 0;
  font-size: 0.72rem;
  opacity: 0.55;
}

.volume-control-val {
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffb07a;
  min-width: 3.2rem;
  text-align: right;
}

.volume-control input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  outline: none;
  cursor: pointer;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff7a2f;
  border: 2px solid #fff3ea;
  box-shadow: 0 0 0 3px rgba(255, 122, 47, 0.22);
  cursor: pointer;
}

.volume-control input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff7a2f;
  border: 2px solid #fff3ea;
  box-shadow: 0 0 0 3px rgba(255, 122, 47, 0.22);
  cursor: pointer;
}

.volume-block {
  width: min(420px, 100%);
}

.weapon-volume-field input[type="range"] {
  width: 100%;
  margin-top: 6px;
}

body.spotify-on #pause .overlay-card {
  margin-bottom: 8px;
}

body.is-playing .spotify-bar {
  bottom: 16px;
}

#settings a {
  color: var(--cyan);
}

#crosshair-code {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  padding: 12px 14px;
  font: 13px/1.4 Consolas, "Courier New", monospace;
}

#crosshair-preview {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 50% 50%, #1a2430, #0c1016 70%);
}

#settings input[type="number"] {
  width: 120px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  padding: 0 10px;
  font-size: 15px;
}

.overlay-screen {
  align-items: center;
  justify-content: center;
  background: rgba(3, 4, 8, 0.72);
  backdrop-filter: blur(10px);
}

.overlay-card {
  width: min(440px, 92vw);
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 14, 18, 0.9);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  animation: riseIn 0.35s ease both;
}

.overlay-card .pause-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.overlay-card .pause-actions .btn {
  min-width: 0;
  width: 100%;
}

.overlay-card .pause-actions #btn-resume,
.overlay-card .pause-actions #btn-restart,
.overlay-card .pause-actions #btn-pause-menu {
  grid-column: 1 / -1;
}

#skins.from-match,
#settings.from-match {
  background: rgba(3, 5, 8, 0.72);
  backdrop-filter: blur(10px);
}

.overlay-card h2 {
  margin: 0;
  font-family: var(--font-brand);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 26px;
  color: var(--cyan);
}

.results-card .score-hero {
  margin: 4px 0 0;
  font-family: var(--font-brand);
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.18);
}

.results-card .rank-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.results-card .rank-badge img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.results-card .rank-badge span {
  font-family: var(--font-brand);
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.results-global {
  margin: 10px 0 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
}

.results-global.is-pending {
  color: #8ec8ff;
}

.results-global.is-ok {
  color: #7dffa3;
}

.results-global.is-fail,
.results-global.is-muted {
  color: rgba(255, 200, 140, 0.9);
}

#diag {
  display: none !important;
}

.hidden {
  display: none !important;
}

body.is-playing #menu-bg {
  opacity: 0;
}

@media (max-width: 900px) {
  .menu-hero {
    opacity: 0.35;
    max-width: 70vw;
    right: -10vw;
  }

  .menu-bg-fade {
    background: linear-gradient(90deg, rgba(5, 8, 12, 0.88), rgba(5, 8, 12, 0.55));
  }

  .skins-stage {
    grid-template-columns: 1fr;
  }

  .skin-preview-pane {
    position: static;
  }

  .arsenal-tabs {
    gap: 6px;
  }

  .arsenal-tab {
    font-size: 0.78rem;
    min-height: 40px;
    padding: 8px 10px;
  }

  .spotify-volume input[type="range"] {
    width: 56px;
  }

  .spotify-bar {
    width: min(100%, calc(100% - 16px));
    gap: 6px;
  }
}

.menu-lb-float {
  width: min(320px, 100%);
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  animation: riseIn 0.65s ease 0.08s both;
  align-self: center;
  z-index: 4;
  margin: 0;
  flex-shrink: 0;
}

.menu-lb-head {
  margin-bottom: 10px;
}

.menu-lb-kicker {
  margin: 0 0 4px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

.menu-lb-mode {
  margin: 0;
  font-family: Orbitron, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.menu-lb-float .lb-row {
  overflow: visible;
  background: rgba(255, 255, 255, 0.03);
  border-color: transparent;
  border-radius: 10px;
  padding: 7px 8px;
  grid-template-columns: 22px 28px 1fr auto auto;
}

.menu-lb-float .lb-list,
.lb-list {
  overflow: visible;
}

.menu-lb-float .lb-medals {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.menu-lb-float .medal-chip.is-generic {
  display: none;
}

.menu-lb-float .lb-premium {
  font-size: 0.5rem;
  padding: 0 4px;
}

.menu-lb-float .lb-avatar-slot {
  width: 26px;
  height: 26px;
}

.menu-lb-float .lb-avatar,
.menu-lb-float .lb-avatar-fallback {
  width: 26px;
  height: 26px;
}

.menu-lb-float .lb-avatar-slot .lb-avatar {
  width: 100%;
  height: 100%;
}

@media (max-width: 980px) {
  .menu-layout {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .menu-left,
  .menu-lb-float {
    width: min(480px, 100%);
    align-self: center;
  }
}

.main-nav {
  flex-wrap: wrap;
}

.lb-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lb-row {
  display: grid;
  grid-template-columns: 28px 32px 1fr auto auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  overflow: visible;
}

.lb-row:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.lb-row.is-me {
  border-color: rgba(255, 70, 85, 0.55);
  background: rgba(255, 70, 85, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 70, 85, 0.2);
}

.lb-avatar-slot {
  position: relative;
  width: 28px;
  height: 28px;
  display: inline-flex;
}

.lb-avatar-slot .lb-avatar-replace {
  position: absolute;
  inset: 0;
}

.ranking-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px 20px;
}

.ranking-period-tabs,
.ranking-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ranking-period-tabs {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ranking-period-pill {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}

.ranking-me {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 70, 85, 0.35);
  background: rgba(255, 70, 85, 0.1);
  font-size: 0.92rem;
}

.ranking-list {
  max-height: min(52vh, 520px);
  overflow: auto;
}

.ranking-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ranking-page-label {
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
  min-width: 7rem;
  text-align: center;
}

.lb-pos {
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.lb-avatar {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
}

.lb-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  font-size: 0.75rem;
}

.lb-nick {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lb-nick.has-glow {
  overflow: visible;
  text-overflow: clip;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: color-mix(in srgb, #ffffff 78%, var(--nick-glow, #ff4655));
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.95),
    0 0 3px #fff,
    0 0 7px var(--nick-glow, #ff4655),
    0 0 14px var(--nick-glow, #ff4655),
    0 0 24px var(--nick-glow, #ff4655),
    0 0 38px color-mix(in srgb, var(--nick-glow, #ff4655) 75%, transparent);
  filter: drop-shadow(0 0 4px var(--nick-glow, #ff4655));
  animation: nickGlowPulse 2.6s ease-in-out infinite;
}

@keyframes nickGlowPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 3px var(--nick-glow, #ff4655));
    text-shadow:
      0 0 1px rgba(255, 255, 255, 0.95),
      0 0 3px #fff,
      0 0 7px var(--nick-glow, #ff4655),
      0 0 14px var(--nick-glow, #ff4655),
      0 0 22px var(--nick-glow, #ff4655),
      0 0 34px color-mix(in srgb, var(--nick-glow, #ff4655) 65%, transparent);
  }
  50% {
    filter: drop-shadow(0 0 8px var(--nick-glow, #ff4655));
    text-shadow:
      0 0 1px #fff,
      0 0 4px #fff,
      0 0 10px var(--nick-glow, #ff4655),
      0 0 18px var(--nick-glow, #ff4655),
      0 0 30px var(--nick-glow, #ff4655),
      0 0 46px color-mix(in srgb, var(--nick-glow, #ff4655) 80%, transparent);
  }
}

@supports not (color: color-mix(in srgb, #fff 50%, #000)) {
  .lb-nick.has-glow {
    color: #fff;
  }
}

.lb-staff {
  font-style: normal;
  font-size: 0.65rem;
  color: #ffc857;
  margin-left: 4px;
}

.lb-premium {
  font-style: normal;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #ffc857;
  margin-left: 4px;
  padding: 1px 5px;
  border: 1px solid rgba(255, 200, 87, 0.55);
  border-radius: 999px;
  vertical-align: middle;
}

.lb-score {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.lb-medals {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}

.lb-medals-compact {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.medal-stack-extra {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 14px;
  padding: 1px 3px;
  border-radius: 999px;
  background: rgba(12, 14, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.52rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.medal-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
}

.medal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
  overflow: hidden;
}

.medal-badge--chip {
  width: 20px;
  height: 20px;
}

.medal-badge--ico {
  width: 24px;
  height: 24px;
}

.medal-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.medal-rank-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.medal-badge.is-staff,
.medal-item.is-staff .medal-badge {
  color: #ffc857;
  background: rgba(255, 200, 87, 0.12);
  border: 1px solid rgba(255, 200, 87, 0.35);
}

.medal-badge.is-premium,
.medal-item.is-premium .medal-badge {
  color: #ffc857;
  background: linear-gradient(145deg, rgba(255, 210, 90, 0.22), rgba(255, 130, 40, 0.14));
  border: 1px solid rgba(255, 200, 87, 0.45);
}

.medal-badge.is-beta,
.medal-item.is-beta .medal-badge {
  color: #7ec8ff;
  background: rgba(126, 200, 255, 0.12);
  border: 1px solid rgba(126, 200, 255, 0.35);
}

.medal-badge.is-top1,
.medal-item.is-top1 .medal-badge {
  color: #f0d060;
  background: linear-gradient(145deg, rgba(240, 208, 96, 0.2), rgba(180, 130, 40, 0.12));
  border: 1px solid rgba(240, 208, 96, 0.4);
}

.medal-badge.is-top2,
.medal-item.is-top2 .medal-badge {
  color: #d0d6e0;
  background: linear-gradient(145deg, rgba(210, 220, 235, 0.22), rgba(120, 130, 150, 0.12));
  border: 1px solid rgba(200, 210, 225, 0.45);
}

.medal-badge.is-top3,
.medal-item.is-top3 .medal-badge {
  color: #d4a574;
  background: linear-gradient(145deg, rgba(212, 165, 116, 0.22), rgba(140, 90, 50, 0.12));
  border: 1px solid rgba(212, 165, 116, 0.42);
}

.medal-badge.is-radiant,
.medal-item.is-radiant .medal-badge {
  background: radial-gradient(circle at 50% 35%, rgba(255, 245, 200, 0.25), rgba(255, 180, 60, 0.08));
  border: 1px solid rgba(255, 237, 170, 0.45);
  box-shadow: 0 0 10px rgba(255, 220, 120, 0.15);
}

.medal-badge.is-radiant .medal-rank-img {
  filter: drop-shadow(0 0 4px rgba(255, 230, 150, 0.45));
}

.medal-item.is-premium .medal-ico,
.medal-item.is-beta .medal-ico,
.medal-item.is-staff .medal-ico {
  display: inline-flex;
}

.lb-empty {
  margin: 0;
  opacity: 0.6;
  font-size: 0.85rem;
}

.lb-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.account-card {
  width: min(440px, 94vw);
  max-height: 90vh;
  overflow: auto;
}

.profile-card {
  width: min(900px, 96vw);
  max-height: min(94vh, 820px);
  overflow: hidden;
  align-items: stretch;
  text-align: left;
  padding: 0;
  gap: 0;
  display: flex;
  flex-direction: column;
}

.profile-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(8, 10, 14, 0.72);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-close:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(20, 24, 32, 0.9);
}

.profile-body {
  overflow: hidden;
  padding: 0 0 16px;
}

.profile-state {
  margin: 28px 20px;
  text-align: center;
}

.profile-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-hero {
  position: relative;
}

.profile-banner {
  height: 72px;
  margin: 0;
  background-size: cover;
  background-position: center;
  border-radius: 20px 20px 0 0;
}

.profile-banner-empty {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255, 85, 81, 0.45), transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(90, 169, 182, 0.35), transparent 50%),
    linear-gradient(135deg, #141820, #0a0d12);
}

.profile-hero-main {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  padding: 0 18px;
  margin-top: -28px;
  position: relative;
  z-index: 1;
}

.lb-avatar-slot.profile-av,
.lb-avatar.profile-av {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  flex-shrink: 0;
}

.lb-avatar-slot.profile-av {
  box-shadow: 0 0 0 3px rgba(10, 14, 18, 0.95), 0 8px 22px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.lb-avatar-slot.profile-av .lb-avatar,
.lb-avatar.profile-av {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  font-size: 1.35rem;
}

.profile-identity {
  flex: 1;
  min-width: 0;
  padding-bottom: 2px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.profile-name-row h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.profile-nick-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.country-flag,
.profile-country-flag {
  display: inline-block;
  width: 22px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  vertical-align: middle;
  flex-shrink: 0;
  object-fit: cover;
}

.country-flag-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  width: auto;
  height: auto;
  box-shadow: none;
  border-radius: 0;
}

.lb-nick-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.lb-country-flag {
  width: 16px;
}

.lb-country-flag.country-flag-emoji {
  font-size: 14px;
}

.account-nick-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.account-nick-flag:not([hidden]) {
  display: inline-flex;
  align-items: center;
}

.account-nick-flag .country-flag {
  width: 18px;
}

.profile-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
}

.profile-pill.is-premium {
  border-color: rgba(255, 200, 87, 0.55);
  background: linear-gradient(180deg, rgba(255, 200, 87, 0.22), rgba(255, 140, 40, 0.1));
  color: #ffc857;
}

.profile-pill.is-staff {
  border-color: rgba(255, 85, 81, 0.5);
  background: rgba(255, 85, 81, 0.14);
  color: #ff8a82;
}

.profile-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-social-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  text-decoration: none;
}

.profile-social-chip:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.profile-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 14px 18px;
  padding: 0 16px;
  align-items: start;
}

.profile-section {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.profile-section-head h4 {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan, #5aa9b6);
  font-weight: 700;
}

.profile-section-head p {
  margin: 3px 0 0;
  color: var(--muted, rgba(255, 255, 255, 0.55));
  font-size: 0.74rem;
  line-height: 1.3;
}

.profile-empty {
  margin: 0;
  padding: 12px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  text-align: center;
}

.profile-medal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.profile-medal {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  margin: 0;
}

.profile-medal .medal-ico {
  flex-shrink: 0;
}

.profile-medal .medal-text,
.medal-item .medal-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.profile-medal .medal-text strong,
.medal-item .medal-text strong {
  font-size: 0.82rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-medal .medal-text small,
.medal-item .medal-text small {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-best-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.profile-best {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.profile-best-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.profile-best-mode {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.2;
}

.profile-best-score {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  font-size: 0.92rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.profile-best-rank {
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-rank-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.profile-best-rank-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.profile-best-elo {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-best-elo.muted {
  color: rgba(255, 255, 255, 0.4);
}

.profile-best-speed {
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.4);
}

.medal-list,
.best-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.medal-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

@media (max-width: 720px) {
  .profile-card {
    width: min(520px, 96vw);
    max-height: 92vh;
  }

  .profile-body {
    overflow: auto;
  }

  .profile-columns {
    grid-template-columns: 1fr;
  }

  .profile-best-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 860px) {
  .profile-best-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .profile-medal-grid {
    grid-template-columns: 1fr;
  }
}

.account-modal {
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
}

.account-modal .modal-backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.account-panel {
  position: relative;
  z-index: 2;
  width: min(420px, 100vw);
  height: 100%;
  max-height: 100vh;
  overflow: auto;
  padding: 22px 20px 28px;
  background:
    linear-gradient(180deg, rgba(18, 22, 30, 0.98), rgba(10, 12, 16, 0.98));
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.45);
  animation: accountSlide 0.28s ease both;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@keyframes accountSlide {
  from {
    transform: translateX(18px);
    opacity: 0.4;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

.account-kicker {
  margin: 0 0 4px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

.account-panel-head h2 {
  margin: 0;
  font-family: Orbitron, sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.account-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.account-close svg {
  width: 14px;
  height: 14px;
}

.account-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.account-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.account-seg-btn {
  border: 0;
  border-radius: 9px;
  padding: 10px 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.65;
}

.account-seg-btn.active {
  background: rgba(255, 85, 81, 0.9);
  opacity: 1;
  color: #fff;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.95;
}

.account-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  font: inherit;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: normal;
}

.account-field input:focus {
  outline: none;
  border-color: rgba(255, 85, 81, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 85, 81, 0.15);
}

.account-style-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 10px 0;
}

.account-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}

.account-field-inline {
  flex: 1;
  min-width: 140px;
}

.account-field-inline input[type="color"] {
  height: 40px;
  padding: 4px;
  cursor: pointer;
}

.nick-glow-preview {
  margin: 8px 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nick-glow-preview.is-on {
  color: color-mix(in srgb, #ffffff 78%, var(--nick-glow, #ff4655));
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.95),
    0 0 3px #fff,
    0 0 7px var(--nick-glow, #ff4655),
    0 0 14px var(--nick-glow, #ff4655),
    0 0 24px var(--nick-glow, #ff4655),
    0 0 38px color-mix(in srgb, var(--nick-glow, #ff4655) 75%, transparent);
  filter: drop-shadow(0 0 4px var(--nick-glow, #ff4655));
  animation: nickGlowPulse 2.6s ease-in-out infinite;
}

.profile-nick-glow {
  color: color-mix(in srgb, #ffffff 78%, var(--nick-glow, #ff4655));
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.95),
    0 0 3px #fff,
    0 0 7px var(--nick-glow, #ff4655),
    0 0 14px var(--nick-glow, #ff4655),
    0 0 24px var(--nick-glow, #ff4655),
    0 0 38px color-mix(in srgb, var(--nick-glow, #ff4655) 75%, transparent);
  filter: drop-shadow(0 0 4px var(--nick-glow, #ff4655));
  animation: nickGlowPulse 2.6s ease-in-out infinite;
}

.account-style-locked {
  opacity: 0.55;
  pointer-events: none;
}

.profile-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.profile-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-decoration: none;
  font-size: 0.78rem;
}

.profile-social-link:hover {
  border-color: rgba(255, 70, 85, 0.45);
  background: rgba(255, 70, 85, 0.1);
}

.account-submit {
  width: 100%;
  margin-top: 4px;
}

.account-link {
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 0.85rem;
  text-align: left;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-link.subtle {
  opacity: 0.55;
  text-decoration: none;
}

.account-link:hover {
  color: #fff;
}

.account-help {
  margin: 0;
  opacity: 0.7;
  font-size: 0.9rem;
  line-height: 1.45;
}

.account-msg {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.88rem;
  color: #ffb4b0;
}

.account-profile-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.account-banner-wrap {
  position: relative;
  height: 96px;
}

.account-banner-preview {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(120deg, rgba(255, 85, 81, 0.35), rgba(90, 169, 182, 0.28)),
    rgba(20, 24, 32, 1);
  background-size: cover;
  background-position: center;
}

.account-upload-fab {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.account-profile-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  padding: 0 14px 14px;
  margin-top: -28px;
}

.account-avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 3px solid rgba(12, 14, 18, 0.95);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}

.account-avatar-img,
.account-avatar-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 700;
}

.account-avatar-edit {
  position: absolute;
  inset: auto 0 0;
  padding: 4px;
  background: rgba(0, 0, 0, 0.65);
  font-size: 0.62rem;
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.account-profile-meta strong {
  display: block;
  font-size: 1.05rem;
}

.account-profile-meta p {
  margin: 4px 0 0;
  opacity: 0.6;
  font-size: 0.82rem;
  word-break: break-all;
}

.account-block {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-block-title {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
}

.account-inline-btn {
  align-self: flex-start;
}

.premium-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.premium-status {
  margin: 6px 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
  opacity: 0.8;
}

.premium-perks {
  margin: 0 0 12px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0.85;
  font-size: 0.9rem;
}

.account-logout {
  width: 100%;
  margin-top: 4px;
}

.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.account-user-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.premium-badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 200, 87, 0.7);
  background: linear-gradient(180deg, rgba(255, 200, 87, 0.22), rgba(255, 140, 40, 0.12));
  color: #ffc857;
  vertical-align: middle;
}

.premium-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.premium-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.premium-card {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.premium-card h3 {
  margin: 4px 0 8px;
  font-size: 1rem;
}

.premium-kind {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}


.auth-screen {
  z-index: 50;
  display: block;
  padding: 0;
  background: #090b0c;
  overflow: auto;
}

.asplit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100%;
  width: 100%;
}

.asplit-form-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 28px 24px;
  min-height: 100%;
  background: #090b0c;
}

.asplit-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  color: #fff;
  font-family: Orbitron, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 0;
}

.asplit-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.asplit-brand:hover { opacity: 0.85; }

.asplit-box {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  text-align: center;
  margin: auto 0;
  padding: 20px 0;
}

.asplit-title {
  font-family: Sora, sans-serif;
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 8px;
}

.asplit-sub {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  margin: 0 0 22px;
}

.asplit-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}

.asplit-tab {
  display: grid;
  place-items: center;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.asplit-tab.is-active {
  background: #14181c;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.asplit-field {
  display: block;
  text-align: left;
  margin-bottom: 14px;
}

.asplit-field > span {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 7px;
  text-transform: none;
  letter-spacing: normal;
}

.asplit-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
}

.asplit-field input::placeholder { color: rgba(255, 255, 255, 0.3); }

.asplit-field input:focus {
  outline: none;
  border-color: rgba(255, 70, 85, 0.55);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(255, 70, 85, 0.12);
}

.asplit-field .password-row { position: relative; }
.asplit-field .password-row input { padding-right: 46px; }

.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.password-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.password-toggle svg { width: 19px; height: 19px; }
.password-toggle .icon-eye-off { display: none; }
.password-toggle.is-open .icon-eye { display: none; }
.password-toggle.is-open .icon-eye-off { display: block; }

.asplit-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff4d57 0%, #e11d2e 100%);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(255, 70, 85, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.asplit-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 14px 32px rgba(255, 70, 85, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.asplit-forgot,
.asplit-resend,
.asplit-alt-link,
.asplit-legal-link {
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  cursor: pointer;
}

.asplit-forgot {
  display: inline-block;
  margin: 18px auto 0;
  font-size: 0.86rem;
}

.asplit-forgot:hover,
.asplit-alt-link:hover,
.asplit-legal-link:hover,
.asplit-resend:hover { color: #fff; }

.asplit-alt {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

.asplit-alt-link {
  color: #ff6b75;
  font-weight: 600;
  padding: 0;
}

.asplit-resend {
  margin-top: 10px;
  font-size: 0.8rem;
  opacity: 0.7;
}

.asplit-msg {
  min-height: 1.2em;
  margin: 0 0 8px;
  font-size: 0.86rem;
  color: #ffb4b0;
  text-align: left;
}

.asplit-legal {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

.asplit-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #ff7a1a 0%, #c2410c 45%, #1a0a04 100%);
  min-height: 100%;
}

.asplit-panel-mark {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  font-family: Orbitron, sans-serif;
  font-size: min(58vh, 42vw);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.12);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.asplit-hero {
  position: absolute;
  right: -4%;
  bottom: 0;
  height: 96%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
  pointer-events: none;
  user-select: none;
}

@media (max-width: 900px) {
  .asplit { grid-template-columns: 1fr; }
  .asplit-panel { display: none; }
  .asplit-form-col { padding: 28px 18px 20px; min-height: 100%; }
}

.menu-card {
  padding: 18px 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.menu-play {
  margin-top: 14px;
  width: 100%;
}

#menu .nav-pill.active {
  color: #fff;
  background: linear-gradient(180deg, #ff4d57 0%, #e11d2e 100%);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(255, 70, 85, 0.28);
}

#menu .brand-tag {
  color: #ff6b75;
}

.premium-block {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 200, 87, 0.22);
  background:
    linear-gradient(160deg, rgba(255, 122, 26, 0.16), rgba(8, 10, 14, 0.2)),
    rgba(255, 255, 255, 0.03);
}

.premium-hero {
  padding: 16px 16px 8px;
  position: relative;
}

.premium-eyebrow {
  margin: 0 0 6px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: #ffc857;
}

.premium-hero h3 {
  margin: 0;
  font-family: Orbitron, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.premium-block #premium-gate,
.premium-block #premium-lounge {
  padding: 8px 16px 16px;
}

.premium-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0 12px;
}

.premium-price-row strong {
  font-size: 1.6rem;
  font-family: Orbitron, sans-serif;
}

.premium-secure {
  margin: 10px 0 0;
  font-size: 0.75rem;
  opacity: 0.55;
  line-height: 1.4;
}

.premium-account-cta {
  padding: 0 16px 16px;
}

/* ?? Premium lounge (full app) ?? */
.premium-screen {
  --prem-bg: #070809;
  --prem-panel: #0d0f11;
  --prem-line: rgba(255, 138, 61, 0.18);
  --prem-orange: #ff8a3d;
  --prem-amber: #ffc857;
  --prem-ink: #0a0806;
  z-index: 50;
  display: block;
  padding: 0;
  background: var(--prem-bg);
  overflow: hidden;
  color: #f5f2ed;
}

.premium-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
  min-height: 100%;
  position: absolute;
  inset: 0;
  z-index: 2;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.premium-intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.premium-intro-left {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #090b0c;
  padding: 32px;
}

.premium-intro-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  max-width: 360px;
}

.premium-intro-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  animation: premiumLogoIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  filter: drop-shadow(0 12px 28px rgba(255, 138, 61, 0.22));
}

.premium-loader {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 18px;
}

.premium-loader span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--prem-orange);
  animation: premiumBounce 0.9s ease-in-out infinite;
}

.premium-loader span:nth-child(2) { animation-delay: 0.12s; background: var(--prem-amber); }
.premium-loader span:nth-child(3) { animation-delay: 0.24s; }

.premium-intro-loading {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  transition: opacity 0.35s ease;
}

.premium-intro-welcome {
  margin: 0;
  font-family: Orbitron, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #fff 20%, var(--prem-amber), var(--prem-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: premiumWelcomeIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.premium-intro-welcome-sub {
  margin: -6px 0 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.5);
  animation: premiumWelcomeIn 0.65s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.premium-intro-right {
  position: relative;
  overflow: hidden;
  background: #120e0c;
}

.premium-intro-mark {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  font-family: Orbitron, sans-serif;
  font-size: clamp(8rem, 22vw, 16rem);
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 138, 61, 0.12);
  pointer-events: none;
  z-index: 1;
}

.premium-intro-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

@keyframes premiumBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-7px); opacity: 1; }
}

@keyframes premiumLogoIn {
  from { opacity: 0; transform: scale(0.86) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes premiumWelcomeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.premium-app {
  display: grid;
  grid-template-columns: 240px 1fr;
  width: 100%;
  height: 100%;
  min-height: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.premium-app.is-in {
  opacity: 1;
  transform: none;
}

.premium-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 16px;
  background: linear-gradient(180deg, #0c0d0f 0%, #090a0b 100%);
  border-right: 1px solid var(--prem-line);
  min-height: 0;
}

.premium-side-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  color: #fff;
  font-family: Orbitron, sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 4px 6px;
}

.premium-side-brand img {
  border-radius: 8px;
}

.premium-side-brand:hover { color: var(--prem-amber); }

.premium-side-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 0;
}

.premium-side-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 11px 12px;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.premium-side-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
}

.premium-side-link:hover {
  color: #fff;
  background: rgba(255, 138, 61, 0.08);
}

.premium-side-link.active,
.premium-side-link.is-active {
  color: var(--prem-ink);
  background: linear-gradient(135deg, var(--prem-amber), var(--prem-orange));
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(255, 138, 61, 0.22);
}

.premium-side-link .nav-badge {
  margin-left: auto;
}

.premium-side-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.premium-side-status {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.45);
}

.premium-side-menu {
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 0.82rem;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.premium-side-menu:hover { color: var(--prem-amber); }

.premium-main {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 28px 32px 36px;
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(255, 138, 61, 0.08), transparent 55%),
    var(--prem-bg);
}

.premium-main-head {
  margin-bottom: 22px;
}

.premium-eyebrow {
  margin: 0 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--prem-orange);
}

.premium-main-title {
  margin: 0;
  font-family: Orbitron, sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.premium-page-gate {
  max-width: 560px;
}

.premium-gate-card {
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid var(--prem-line);
  background: rgba(255, 255, 255, 0.03);
}

.premium-gate-card h2 {
  margin: 0 0 14px;
  font-family: Orbitron, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.premium-perks {
  margin: 0 0 16px;
  padding: 0 0 0 18px;
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.4;
}

.premium-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0 14px;
}

.premium-price-row strong {
  font-size: 1.7rem;
  font-family: Orbitron, sans-serif;
  color: var(--prem-amber);
}

.premium-cta {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--prem-ink);
  background: linear-gradient(135deg, var(--prem-amber), var(--prem-orange));
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(255, 138, 61, 0.25);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.premium-pay-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.premium-pay-actions .premium-cta {
  width: 100%;
}

.premium-cta-stripe {
  color: #f4f7ff;
  background: linear-gradient(135deg, #635bff, #0a2540);
  box-shadow: 0 10px 28px rgba(99, 91, 255, 0.28);
}

.premium-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.premium-cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.premium-secure {
  margin: 12px 0 0;
  font-size: 0.75rem;
  opacity: 0.5;
  line-height: 1.4;
}

.premium-page-lounge {
  min-height: 0;
}

.premium-tab-panel {
  animation: premiumPanelIn 0.35s ease both;
}

@keyframes premiumPanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.premium-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  max-width: 1100px;
}

.premium-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 138, 61, 0.25);
  color: rgba(255, 255, 255, 0.5);
}

.premium-empty-ico {
  font-size: 1.6rem;
  color: var(--prem-amber);
  margin-bottom: 8px;
}

.premium-card-rich {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.premium-card-rich:hover {
  border-color: rgba(255, 138, 61, 0.35);
  transform: translateY(-2px);
}

.premium-pdf-preview {
  position: relative;
  display: block;
  height: 180px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 138, 61, 0.18), transparent 45%),
    #111;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.premium-pdf-preview iframe {
  width: 145%;
  height: 240%;
  border: 0;
  transform: scale(0.7);
  transform-origin: top left;
  pointer-events: none;
  filter: saturate(0.92) contrast(1.06);
}

.premium-pdf-preview-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 8, 9, 0.05) 30%, rgba(7, 8, 9, 0.88));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px;
}

.premium-pdf-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--prem-amber), var(--prem-orange));
  color: #0a0806;
}

.premium-pdf-open {
  align-self: flex-end;
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  opacity: 0.9;
}

.premium-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.premium-card-author {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
}

.premium-dl-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
}

.premium-dl-btn:hover {
  border-color: rgba(255, 138, 61, 0.4);
  color: #fff;
}

.wa-mode-tab {
  position: relative;
}

.wa-composer.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.wa-messages {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

.premium-card-art {
  height: 120px;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 138, 61, 0.35), transparent 50%),
    linear-gradient(135deg, #1a120e, #0d0f11);
}

.premium-ch-preview-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  padding: 14px 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(90, 169, 182, 0.16), transparent 55%),
    linear-gradient(160deg, #141820, #0b0e12);
}

.premium-ch-preview,
.premium-publish-ch-preview {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  image-rendering: pixelated;
}

.premium-crosshair-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.premium-crosshair-fields.hidden {
  display: none !important;
}

.premium-ch-code {
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
  word-break: break-all;
  max-height: 3.6em;
  overflow: hidden;
}

.premium-card-rich.is-crosshair .premium-card-actions {
  margin-top: 10px;
}

.admin-ch-code {
  display: block;
  word-break: break-all;
  opacity: 0.7;
}

.premium-card-art span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--prem-amber);
  font-weight: 700;
}

.premium-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.premium-card-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  line-height: 1.45;
}

.premium-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.premium-cta-sm {
  padding: 9px 14px;
  font-size: 0.82rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.wa-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  height: calc(100vh - 56px);
  min-height: 520px;
  max-height: none;
  max-width: none;
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--prem-line);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
}

.wa-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
  min-height: 0;
  overflow: auto;
}

.wa-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.wa-mode-tab {
  appearance: none;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 9px 8px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wa-mode-tab.is-active {
  color: #0a0806;
  background: linear-gradient(135deg, var(--prem-amber), var(--prem-orange));
}

.wa-pane-hint,
.wa-section-label {
  margin: 4px 0;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.45);
}

.wa-search-row input {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
}

.wa-inbox,
.wa-members {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wa-peer {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
}

.wa-peer:hover,
.wa-peer.is-active {
  background: rgba(255, 138, 61, 0.12);
}

.wa-peer-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 138, 61, 0.2);
  font-weight: 700;
  overflow: hidden;
}

.wa-peer-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wa-peer-meta strong {
  display: block;
  font-size: 0.85rem;
}

.wa-peer-meta span {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.wa-stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.wa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.wa-header strong {
  font-size: 0.95rem;
}

.wa-sub {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.wa-messages,
#chat-messages.wa-messages,
#chat-messages.chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
  height: auto;
  overflow: auto;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa-composer,
#chat-form.wa-composer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  align-items: center;
}

.wa-attach {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.wa-attach svg {
  width: 20px;
  height: 20px;
}

.wa-attach:hover {
  color: var(--prem-amber);
  background: rgba(255, 138, 61, 0.12);
}

.wa-attach-name {
  font-size: 0.72rem;
  color: var(--prem-amber);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-msg-image {
  display: block;
  margin: 6px 0;
  border-radius: 12px;
  overflow: hidden;
  max-width: min(280px, 70vw);
}

.chat-msg-image img {
  display: block;
  width: 100%;
  height: auto;
}

.chat-msg-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.chat-msg-del {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 4px;
}

.chat-msg-del:hover {
  color: #ff6b6b;
}

.chat-msg.is-deleted {
  opacity: 0.55;
  justify-content: center;
}

.chat-msg-deleted {
  margin: 0;
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
}

.premium-main:has(#premium-panel-chat:not(.hidden)) {
  padding: 16px 20px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.premium-main:has(#premium-panel-chat:not(.hidden)) #premium-lounge,
.premium-main:has(#premium-panel-chat:not(.hidden)) #premium-panel-chat {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.premium-main:has(#premium-panel-chat:not(.hidden)) .wa-shell {
  flex: 1;
  height: 100%;
  min-height: 0;
}

.premium-page-lounge:has(#premium-panel-chat:not(.hidden)) .premium-main-head {
  display: none;
}

@media (max-width: 900px) {
  .wa-shell {
    grid-template-columns: 1fr;
    height: calc(100vh - 120px);
    min-height: 480px;
  }
  .wa-rail {
    max-height: 180px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .premium-content {
    grid-template-columns: 1fr;
  }
}


.premium-card {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.premium-card h3 {
  margin: 4px 0 8px;
  font-size: 1.05rem;
}

.premium-kind {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--prem-amber);
}

.chat-shell-page {
  min-height: min(70vh, 640px);
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-live-label {
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.55;
}

.chat-live-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #58ff88;
  box-shadow: 0 0 0 0 rgba(88, 255, 136, 0.55);
  animation: chatLivePulse 1.6s ease-out infinite;
  flex-shrink: 0;
}

@keyframes chatLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(88, 255, 136, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(88, 255, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(88, 255, 136, 0); }
}

.chat-shell-page .chat-messages {
  flex: 1;
  min-height: 320px;
  max-height: none;
  overflow: auto;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.32);
}

.chat-form {
  display: flex;
  gap: 8px;
}

.chat-form input {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
}

.chat-send-btn {
  min-width: 0;
  width: auto;
  padding: 12px 18px;
}

.premium-publish-card {
  max-width: 640px;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid var(--prem-line);
  background: rgba(255, 255, 255, 0.03);
}

.premium-panel-lead {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.premium-publish-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.premium-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.premium-field input,
.premium-field textarea,
.premium-field select,
.premium-publish-form textarea,
.premium-publish-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
}

.premium-publish-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.premium-inline-msg {
  margin: 4px 0 0;
  min-height: 1.2em;
  font-size: 0.82rem;
  color: rgba(255, 200, 120, 0.9);
}

@media (max-width: 900px) {
  .premium-intro { grid-template-columns: 1fr; }
  .premium-intro-right { display: none; }
  .premium-app { grid-template-columns: 1fr; }
  .premium-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--prem-line);
    padding: 14px 14px 12px;
  }
  .premium-side-nav {
    flex-direction: row;
    flex: 1 1 100%;
    overflow-x: auto;
  }
  .premium-side-link { width: auto; white-space: nowrap; }
  .premium-side-foot {
    flex: 1 1 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-top: 0;
    padding-top: 0;
  }
  .premium-main { padding: 18px 16px 28px; }
  .premium-publish-row { grid-template-columns: 1fr; }
  .chat-shell-page { min-height: 55vh; }
}

.premium-lounge {
  padding: 0 0 12px;
}

.premium-tabs {
  display: flex;
  gap: 6px;
  padding: 0 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}

.premium-tab {
  position: relative;
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.premium-tab.active {
  color: #ffc857;
  border-color: rgba(255, 200, 87, 0.35);
  background: rgba(255, 200, 87, 0.1);
}

.premium-tab .nav-badge {
  top: -4px;
  right: -2px;
}

.premium-tab-panel {
  padding: 8px 16px 8px;
}

#premium-panel-chat.premium-tab-panel {
  padding: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.premium-block #premium-gate,
.premium-block #premium-lounge {
  padding-bottom: 8px;
}

.chat-shell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 280px;
}

.chat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chat-toolbar .hint {
  margin: 0;
}

.chat-messages {
  flex: 1;
  min-height: 220px;
  max-height: 320px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
}

#premium-panel-chat .chat-messages,
#chat-messages.wa-messages {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 16px;
}

.chat-empty {
  margin: auto;
  text-align: center;
}

.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 92%;
}

.chat-msg.is-mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 70, 85, 0.2);
  border: 1px solid rgba(255, 70, 85, 0.35);
  color: #ffb4bb;
}

.chat-msg-body {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-msg.is-mine .chat-msg-body {
  background: rgba(255, 200, 87, 0.1);
  border-color: rgba(255, 200, 87, 0.22);
}

.chat-msg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 0.72rem;
}

.chat-msg-head strong {
  color: var(--text);
}

.chat-msg-head time {
  margin-left: auto;
  opacity: 0.45;
  font-variant-numeric: tabular-nums;
}

.chat-msg-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}

.wa-composer-field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.wa-composer-field input {
  width: 100%;
  box-sizing: border-box;
}

.chat-mention-popup {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 20, 28, 0.98);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.chat-mention-popup.hidden {
  display: none;
}

.chat-mention-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.chat-mention-option:hover,
.chat-mention-option.is-active {
  background: rgba(255, 138, 61, 0.16);
  color: #fff;
}

.chat-mention-option.is-everyone {
  font-weight: 700;
  color: #ffb088;
}

.chat-mention {
  color: #7ec8ff;
  font-weight: 650;
}

.chat-mention.is-me,
.chat-mention-everyone {
  color: #ffb088;
  background: rgba(255, 138, 61, 0.14);
  border-radius: 4px;
  padding: 0 3px;
}

.chat-msg.is-mentioned .chat-msg-body {
  box-shadow: inset 3px 0 0 rgba(255, 138, 61, 0.85);
}

.chat-role {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.7);
}

.chat-role-admin {
  color: #ff8a95;
  border-color: rgba(255, 70, 85, 0.5);
  background: rgba(255, 70, 85, 0.12);
}

.chat-role-staff {
  color: #7eb6ff;
  border-color: rgba(126, 182, 255, 0.45);
  background: rgba(126, 182, 255, 0.1);
}

.chat-role-coach {
  color: #9dffc2;
  border-color: rgba(126, 255, 180, 0.4);
  background: rgba(126, 255, 180, 0.1);
}

.chat-role-premium {
  color: #ffc857;
  border-color: rgba(255, 200, 87, 0.45);
  background: rgba(255, 200, 87, 0.1);
}

.chat-form {
  display: flex;
  gap: 8px;
}

.chat-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
}

.chat-form .btn {
  min-width: 0;
  padding: 10px 14px;
}

.admin-role.is-coach {
  color: #9dffc2;
  border-color: rgba(126, 255, 180, 0.45);
  margin-left: 4px;
}

.medal-item.is-coach .medal-badge,
.medal-badge.is-coach {
  color: #9dffc2;
  border-color: rgba(126, 255, 180, 0.45);
}

.admin-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
}

.admin-shell .glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(18px);
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.admin-kpi {
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(160deg, rgba(255, 70, 85, 0.12), transparent 55%),
    rgba(0, 0, 0, 0.28);
}

.admin-kpi span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 8px;
}

.admin-kpi strong {
  font-size: 1.4rem;
  font-family: Orbitron, sans-serif;
  letter-spacing: 0.02em;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-search-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: min(100%, 280px);
}

.admin-search {
  flex: 1;
  min-width: 180px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  font: inherit;
}

.admin-search:focus {
  outline: none;
  border-color: rgba(255, 70, 85, 0.55);
  box-shadow: 0 0 0 2px rgba(255, 70, 85, 0.15);
}

.admin-msg {
  margin: 0;
}

.admin-msg.is-error {
  color: #ff8a95;
}

.admin-msg.is-ok {
  color: #7dffb0;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
}

.admin-grid-3 {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.admin-section {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.22);
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  margin-top: 10px;
}

.admin-row {
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.86rem;
}

button.admin-row {
  display: block;
  width: 100%;
  margin: 0;
  text-align: left;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.admin-row strong {
  color: var(--text);
  font-weight: 700;
}

.admin-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-row-top span {
  opacity: 0.55;
  font-size: 0.72rem;
  white-space: nowrap;
}

.admin-row-top > span:last-child {
  opacity: 0.55;
  font-size: 0.72rem;
  white-space: nowrap;
  margin-left: auto;
}

.admin-row-top .admin-geo-country {
  opacity: 1;
  font-size: inherit;
  white-space: normal;
}

.admin-role {
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #ffc857;
  border: 1px solid rgba(255, 200, 87, 0.4);
  border-radius: 999px;
  padding: 2px 7px;
}

.admin-role.is-user {
  color: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.18);
}

.admin-role.is-staff {
  color: #7eb6ff;
  border-color: rgba(126, 182, 255, 0.45);
}

.admin-role.is-premium {
  color: #ffc857;
  border-color: rgba(255, 200, 87, 0.45);
  margin-left: 4px;
}

.admin-row small {
  display: block;
  opacity: 0.55;
  margin-top: 6px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.admin-actions .btn {
  padding: 6px 10px;
  font-size: 0.72rem;
  min-height: 0;
}

.admin-actions .btn.is-on {
  border-color: rgba(255, 70, 85, 0.55);
  background: rgba(255, 70, 85, 0.18);
}

.admin-sale-ok {
  color: #7dffb0;
}

.admin-sale-miss {
  color: #ffb347;
}

.admin-geo-section {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.22);
}

.admin-geo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-geo-head .hint {
  margin: 4px 0 0;
}

.admin-geo-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-geo-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.admin-geo-kpi {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.admin-geo-kpi span {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 1;
  margin-bottom: 4px;
}

.admin-geo-kpi strong {
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.admin-geo-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 12px;
}

.admin-geo-label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
}

.admin-geo-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.admin-geo-label-row .admin-geo-label,
.admin-geo-label-row .account-block-title {
  margin: 0;
}

.admin-geo-list {
  max-height: 320px;
  margin-top: 0;
}

.admin-geo-row {
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.admin-geo-row:hover,
.admin-geo-row.is-active {
  border-color: rgba(255, 70, 85, 0.45);
  background: rgba(255, 70, 85, 0.12);
  color: var(--text);
}

.admin-geo-row small,
.admin-geo-row .admin-row-top span,
.admin-geo-meta {
  color: var(--muted);
}

.admin-geo-bar {
  margin-top: 8px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.admin-geo-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff4655, #ff7a2f);
}

.admin-geo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.72rem;
  opacity: 1;
}

.admin-geo-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff8a95;
  border: 1px solid rgba(255, 70, 85, 0.4);
  border-radius: 999px;
  padding: 2px 8px;
}

.admin-geo-country {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-align: left;
}

.admin-geo-country-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.admin-geo-country-text strong {
  font-size: 0.9rem;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.admin-geo-country-text em {
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.admin-flag {
  width: 22px;
  height: 16.5px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}

.admin-flag-fallback {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 16.5px;
  padding: 0 3px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.admin-geo-sub-flag,
#admin-geo-sub {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-recent-place {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-recent-place .admin-flag {
  width: 16px;
  height: 12px;
}

.admin-premium-section {
  margin-top: 4px;
}

.admin-premium-section .hint {
  margin: 4px 0 12px;
}

.admin-premium-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.admin-premium-form-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  font-size: 0.78rem;
}

.admin-field span {
  opacity: 0.65;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.64rem;
}

.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  font: inherit;
  padding: 10px 12px;
}

.admin-field-file input {
  padding: 8px;
}

.admin-premium-list {
  max-height: 280px;
}

.premium-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.premium-pdf-card {
  width: min(960px, 96vw);
  height: min(86vh, 900px);
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
}

.premium-pdf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.premium-pdf-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.premium-pdf-actions {
  display: flex;
  gap: 8px;
}

.premium-pdf-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 12px;
  background: #0b0d12;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.account-medals {
  margin: 0;
}

.medal-item .medal-ico {
  display: inline-flex;
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .admin-grid-3 { grid-template-columns: 1fr 1fr; }
  .admin-geo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .admin-grid,
  .admin-grid-3 { grid-template-columns: 1fr; }
  .admin-premium-form-row { grid-template-columns: 1fr; }
}

.nav-pill-ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.9;
}

.market-products {
  max-width: 1100px;
}

.market-card-media {
  height: 160px;
  overflow: hidden;
  background: #111;
}

.market-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.market-card-media-empty {
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 138, 61, 0.35), transparent 50%),
    linear-gradient(135deg, #1a120e, #0d0f11);
}

.market-card-media-empty span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--prem-amber);
  font-weight: 700;
}

.market-price {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--prem-amber);
}

.market-seller-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

.market-seller-row .wa-peer-av {
  width: 24px;
  height: 24px;
  font-size: 0.7rem;
}

.market-owned-tag {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}

.market-wa {
  max-width: none;
}

.premium-main:has(#market-panel-chats:not(.hidden)) {
  padding: 16px 20px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.premium-main:has(#market-panel-chats:not(.hidden)) #market-lounge,
.premium-main:has(#market-panel-chats:not(.hidden)) #market-panel-chats {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.premium-main:has(#market-panel-chats:not(.hidden)) .market-wa {
  flex: 1;
  height: 100%;
  min-height: 0;
}

#market-panel-chats.premium-tab-panel {
  padding: 0;
}

.admin-screen .premium-app {
  opacity: 1;
  transform: none;
}

.admin-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-main .premium-main-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-panel-card {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--prem-line);
  background: rgba(255, 255, 255, 0.03);
}

.admin-screen .admin-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 4px;
}

.admin-screen .admin-kpi {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 138, 61, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 138, 61, 0.14), transparent 55%),
    rgba(0, 0, 0, 0.28);
}

.admin-screen .admin-kpi span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
}

.admin-screen .admin-kpi strong {
  font-size: 1.25rem;
  font-family: Orbitron, sans-serif;
  color: var(--prem-amber);
}

.admin-list-tall {
  max-height: min(62vh, 640px);
  overflow: auto;
}

.admin-screen .admin-toolbar {
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.admin-screen .admin-search {
  border-color: rgba(255, 138, 61, 0.2);
  background: rgba(0, 0, 0, 0.35);
}

.admin-screen .admin-msg {
  margin: 0;
  max-width: 360px;
  text-align: right;
}

.admin-screen .admin-geo-section {
  border: 0;
  background: transparent;
  padding: 0;
}

.admin-screen .admin-row {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
}

.admin-screen .admin-premium-form {
  margin: 12px 0 18px;
}

.market-owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.market-del-btn {
  appearance: none;
  border: 1px solid rgba(255, 70, 85, 0.35);
  background: rgba(255, 70, 85, 0.08);
  color: #ff8a95;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.market-del-btn:hover {
  border-color: rgba(255, 70, 85, 0.55);
  background: rgba(255, 70, 85, 0.16);
}

.market-publish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.market-card.is-clickable {
  cursor: pointer;
}

.market-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.market-card-rating {
  margin-top: 2px;
}

.market-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.market-rating-md {
  font-size: 1.05rem;
}

.market-star.is-on {
  color: var(--prem-amber);
}

.market-rating-count,
.market-rating-avg,
.market-rating-empty {
  margin-left: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.market-char-count {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: right;
}

.market-detail-card {
  width: min(720px, 94vw);
  max-height: min(88vh, 860px);
  overflow: auto;
  padding: 0;
  position: relative;
  background: #0d0f11;
  border: 1px solid rgba(255, 138, 61, 0.22);
}

.market-detail-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}

.market-detail-content {
  display: grid;
  grid-template-columns: 1fr;
}

.market-detail-media {
  min-height: 200px;
  background: #111;
}

.market-detail-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.market-detail-img.market-card-media-empty {
  height: 180px;
}

.market-detail-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.market-detail-body h2 {
  margin: 0;
  font-size: 1.35rem;
}

.market-detail-desc {
  margin: 4px 0 0;
  white-space: pre-wrap;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.market-detail-actions {
  margin-top: 6px;
}

.market-reviews-block {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.market-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  overflow: auto;
}

.market-review {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.market-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.market-review p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

.market-review-form,
.market-my-review {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 138, 61, 0.2);
  background: rgba(255, 138, 61, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.market-star-picker {
  display: flex;
  gap: 4px;
}

.market-star-pick {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.25);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}

.market-star-pick.is-on,
.market-star-pick:hover {
  color: var(--prem-amber);
}

@media (min-width: 720px) {
  .market-detail-content {
    grid-template-columns: 280px 1fr;
  }
  .market-detail-img {
    height: 100%;
    min-height: 100%;
  }
}

.market-shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  max-width: 1100px;
}

.market-search-wrap {
  flex: 1 1 220px;
  min-width: 0;
}

.market-search-wrap input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 138, 61, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  font: inherit;
}

.market-sort-wrap select {
  appearance: none;
  padding: 11px 36px 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 138, 61, 0.22);
  background:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.45) 50%) calc(100% - 16px) / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(255, 255, 255, 0.45) 50%, transparent 50%) calc(100% - 10px) / 6px 6px no-repeat,
    rgba(0, 0, 0, 0.35);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.market-staff-tag {
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7eb6ff;
}

/* ?? Creator Studio / Community (admin) ?? */
.community-screen .premium-app {
  opacity: 1;
  transform: none;
}
.community-screen .premium-main {
  overflow: auto;
}
.studio-task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.studio-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 1px solid rgba(90, 169, 182, 0.22);
  border-radius: 14px;
  background: rgba(10, 14, 20, 0.72);
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  font: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.studio-card:hover,
.studio-card:focus-visible {
  border-color: rgba(90, 169, 182, 0.55);
  transform: translateY(-2px);
  outline: none;
}
.studio-card-cover {
  height: 120px;
  background-size: cover;
  background-position: center;
  background-color: #151b22;
}
.studio-card-cover-empty {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
}
.studio-card-cover-gen {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(90, 169, 182, 0.18), transparent 55%),
    linear-gradient(160deg, #121820 0%, #0a0e14 100%);
}
.studio-cover-svg {
  width: 78px;
  height: 78px;
  filter: drop-shadow(0 0 12px rgba(255, 70, 85, 0.25));
}
.studio-cover-svg.is-spinning {
  animation: studio-cover-spin 4.5s linear infinite;
}
@keyframes studio-cover-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.studio-cover-type {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.studio-detail-cover-gen {
  height: 180px;
  padding: 0;
}
.studio-detail-cover-gen .studio-card-cover {
  height: 100%;
  border-radius: 0;
}
.studio-detail-cover-gen .studio-cover-svg {
  width: 110px;
  height: 110px;
}
.studio-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.studio-card-body h3 {
  margin: 0;
  font-size: 1.05rem;
}
.studio-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.studio-card-author {
  margin: 0;
  opacity: 0.7;
  font-size: 0.85rem;
}
.studio-status {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.studio-status.is-published {
  color: #7dcea0;
  background: rgba(125, 206, 160, 0.12);
}
.studio-status.is-draft {
  color: #f0c674;
  background: rgba(240, 198, 116, 0.12);
}
.studio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.studio-tag {
  font-size: 0.72rem;
  opacity: 0.75;
  background: rgba(90, 169, 182, 0.12);
  padding: 2px 7px;
  border-radius: 6px;
}
.studio-stars {
  font-size: 0.8rem;
  color: #f0c674;
}
.studio-stars em {
  font-style: normal;
  opacity: 0.7;
  margin-left: 4px;
  color: inherit;
}
.studio-mine-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}
.studio-workspace-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.studio-workspace-head h2 {
  margin: 0;
}
.studio-workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.studio-grid-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1100px) {
  .studio-grid-panels {
    grid-template-columns: 1fr;
  }
}
.studio-panel {
  border: 1px solid rgba(90, 169, 182, 0.18);
  border-radius: 14px;
  background: rgba(8, 12, 18, 0.55);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.studio-panel h3,
.studio-panel h4 {
  margin: 0;
}
.studio-asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.studio-asset-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.studio-asset-card.is-active {
  border-color: rgba(90, 169, 182, 0.7);
}
.studio-asset-card img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  background: #111;
}
.studio-asset-card span {
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.studio-asset-card em {
  font-size: 0.65rem;
  opacity: 0.55;
  font-style: normal;
}
.studio-asset-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  cursor: pointer;
}
#studio-map-canvas,
#studio-hitbox-canvas {
  width: 100%;
  max-width: 480px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f1318;
  cursor: crosshair;
}
.studio-zone-list,
.studio-wave-list,
.studio-ent-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
}
.studio-zone-row,
.studio-wave-row,
.studio-ent-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: 4px;
  align-items: center;
}
.studio-zone-row input,
.studio-wave-row input,
.studio-ent-row input,
.studio-ent-row select {
  min-width: 0;
  width: 100%;
  padding: 6px 7px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
}
#studio-json-export {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  color: inherit;
  padding: 10px;
  resize: vertical;
}
.studio-detail-card {
  width: min(860px, 96vw);
  max-height: min(92vh, 820px);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  gap: 0;
  border-radius: 18px;
  border: 1px solid rgba(90, 169, 182, 0.2);
  background: #0b1016;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.6);
}
.studio-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.studio-detail-close:hover {
  background: rgba(255, 70, 85, 0.85);
}
.studio-detail-scroll {
  overflow: hidden;
  max-height: min(92vh, 820px);
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.studio-detail-shell {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: min(92vh, 820px);
}
.studio-detail-hero {
  position: relative;
  min-height: 132px;
  flex: 0 0 auto;
  overflow: hidden;
}
.studio-detail-hero-bg,
.studio-detail-hero-gen,
.studio-detail-hero-gen .studio-card-cover {
  position: absolute;
  inset: 0;
  height: 100% !important;
  background-size: cover;
  background-position: center;
}
.studio-detail-hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.15) 0%, rgba(8, 12, 18, 0.92) 100%);
}
.studio-detail-hero-content {
  position: relative;
  z-index: 1;
  padding: 18px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-end;
  min-height: 132px;
}
.studio-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.studio-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  color: #9fd4dc;
  background: rgba(90, 169, 182, 0.16);
  border: 1px solid rgba(90, 169, 182, 0.28);
}
.studio-pill.is-soft {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
.studio-detail-hero-content h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.studio-detail-by {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 0.92rem;
}
.studio-detail-author-avatar,
.studio-lb-avatar,
.studio-review-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2a3a45, #1a242c);
  border: 1px solid rgba(255,255,255,0.12);
  color: #cfe8ee;
  flex: 0 0 auto;
}
.studio-dot {
  opacity: 0.45;
}
.studio-detail-body {
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}
.studio-detail-desc {
  margin: 0;
  opacity: 0.82;
  line-height: 1.4;
  font-size: 0.86rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.studio-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.studio-stat {
  padding: 8px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.studio-stat em {
  font-style: normal;
  font-weight: 800;
  font-size: 1.05rem;
  color: #f2f5f7;
}
.studio-stat span {
  font-size: 0.72rem;
  opacity: 0.55;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.studio-detail-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.studio-play-cta {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  color: #0a0e14;
  background: linear-gradient(135deg, #7dcea0, #59f280);
  box-shadow: 0 10px 28px rgba(89, 242, 128, 0.22);
}
.studio-play-cta:hover {
  filter: brightness(1.05);
}
.studio-detail-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.studio-tool-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
  border-radius: 10px;
  padding: 9px 12px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 650;
  cursor: pointer;
}
.studio-tool-btn:hover {
  border-color: rgba(90, 169, 182, 0.45);
  background: rgba(90, 169, 182, 0.1);
}
.studio-tool-btn.is-danger:hover {
  border-color: rgba(255, 70, 85, 0.55);
  background: rgba(255, 70, 85, 0.12);
  color: #ff8a9a;
}
.studio-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 10px;
  min-height: 0;
  flex: 1 1 auto;
}
.studio-panel {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.studio-panel-paged {
  min-height: 0;
  overflow: hidden;
  height: 100%;
  align-self: stretch;
}
.studio-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 0 0 auto;
}
.studio-panel-head h3 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
}
.studio-panel-count {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.55);
}
.studio-lb-list,
.studio-review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.studio-paged-list {
  flex: 1 1 auto;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  padding: 2px 4px 2px 2px;
  overscroll-behavior: contain;
}
.studio-lb-list.studio-paged-list {
  max-height: none;
  overflow: hidden;
}
.studio-review-list.studio-paged-list {
  max-height: 168px;
  flex: 0 1 auto;
}
.studio-paged-list.is-loading {
  opacity: 0.45;
  pointer-events: none;
}
.studio-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  background: rgba(11, 16, 22, 0.96);
}
.studio-pager[hidden],
.studio-pager.is-empty {
  display: none;
}
.studio-pager-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.studio-pager-btn {
  appearance: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, opacity 0.12s;
  pointer-events: auto;
}
.studio-pager-btn:hover:not(:disabled) {
  background: rgba(90, 169, 182, 0.18);
  border-color: rgba(90, 169, 182, 0.35);
}
.studio-pager-btn:disabled {
  opacity: 0.28;
  cursor: default;
}
.studio-lb-row {
  display: grid;
  grid-template-columns: 28px 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(0,0,0,0.22);
  overflow: visible;
}
.studio-lb-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1;
  width: 28px;
  height: 28px;
}
.studio-lb-rank b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  color: #0a0e14;
}
.studio-lb-rank b.is-top1 { background: #eccf56; }
.studio-lb-rank b.is-top2 { background: #c8d0d8; }
.studio-lb-rank b.is-top3 { background: #c08a4e; }
.studio-lb-avatar {
  width: 28px;
  height: 28px;
}
.studio-lb-nick.studio-nick-link,
button.studio-nick-link.studio-lb-nick {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 28px;
  font-size: 0.86rem;
  line-height: 1.2;
  overflow: visible;
  text-align: left;
}
.studio-nick-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
  min-width: 0;
  max-width: 100%;
}
.studio-nick-link .lb-nick {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.25;
  vertical-align: middle;
}
/* Mesmo glow do ranking principal (.lb-nick.has-glow) */
.studio-nick-link .lb-nick.has-glow {
  overflow: visible;
  text-overflow: clip;
}
.studio-nick-link:hover .lb-nick:not(.has-glow) {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.studio-lb-score {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 28px;
  font-weight: 800;
  color: #ffc857;
  font-variant-numeric: tabular-nums;
  font-size: 0.86rem;
  line-height: 1;
  white-space: nowrap;
}
.studio-rate-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(90, 169, 182, 0.07);
  border: 1px solid rgba(90, 169, 182, 0.16);
  flex: 0 0 auto;
}
.studio-rate-label {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  opacity: 0.75;
}
.studio-star-pick {
  display: flex;
  gap: 4px;
}
.studio-star-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.22);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.12s, transform 0.12s;
}
.studio-star-btn.is-on {
  color: #ffc857;
}
.studio-star-btn:hover {
  transform: scale(1.08);
  color: #ffd27a;
}
.studio-rate-box textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.35);
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  padding: 7px 10px;
  resize: none;
  min-height: 0;
  height: 34px;
}
.studio-rate-submit {
  align-self: flex-start;
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 8px;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  color: #0a0e14;
  background: #5aa9b6;
}
.studio-review {
  padding: 8px 9px;
  border-radius: 10px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.05);
}
.studio-review-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.studio-review-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.studio-review-meta strong {
  font-size: 0.84rem;
}
.studio-review-stars {
  color: #ffc857;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.studio-review p {
  margin: 0;
  opacity: 0.88;
  line-height: 1.35;
  font-size: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.studio-review p.is-muted {
  opacity: 0.4;
  font-style: italic;
  -webkit-line-clamp: 1;
}
.studio-empty-hint {
  padding: 18px 12px;
  text-align: center;
  opacity: 0.45;
  font-size: 0.88rem;
}
.app-confirm-card {
  width: min(420px, 94vw);
  text-align: center;
  gap: 12px;
  padding: 28px 24px 20px;
}
.app-confirm-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.25rem;
  color: #ffc857;
  background: rgba(255, 200, 87, 0.12);
  border: 1px solid rgba(255, 200, 87, 0.28);
}
.app-confirm-icon.is-danger {
  color: #ff6b8a;
  background: rgba(255, 70, 85, 0.12);
  border-color: rgba(255, 70, 85, 0.3);
}
.app-confirm-card h2 {
  margin: 0;
  font-size: 1.15rem;
}
.app-confirm-actions {
  width: 100%;
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.app-confirm-actions .btn {
  flex: 1;
}
.app-confirm-actions .btn.is-danger,
#app-confirm-ok.is-danger {
  background: #ff4655;
  border-color: #ff4655;
  color: #fff;
}
.app-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 120;
  max-width: min(420px, 92vw);
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(14, 18, 24, 0.96);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  color: #f2f5f7;
  font-size: 0.92rem;
  font-weight: 650;
  text-align: center;
  pointer-events: none;
}
.app-toast.is-error {
  border-color: rgba(255, 70, 85, 0.45);
  color: #ffb3bf;
}
.app-toast.is-ok {
  border-color: rgba(89, 242, 128, 0.35);
  color: #b8ff9a;
}
.app-toast.hidden {
  display: none !important;
}
@media (max-width: 760px) {
  .studio-detail-scroll,
  .studio-detail-shell {
    overflow: auto;
    max-height: 92vh;
  }
  .studio-detail-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .studio-detail-grid {
    grid-template-columns: 1fr;
  }
  .studio-detail-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .studio-play-cta {
    justify-content: center;
  }
  .studio-review-list.studio-paged-list {
    max-height: 140px;
  }
  .studio-lb-list.studio-paged-list {
    max-height: none;
    overflow: hidden;
  }
}

/* ?? Aim Lab?style Creator Studio ?? */
.community-screen.is-studio-mode .premium-main-head {
  display: none;
}
.community-screen.is-studio-mode .premium-page-lounge {
  height: calc(100vh - 0px);
  max-height: none;
  padding: 0;
  overflow: hidden;
}
.community-screen.is-studio-mode #community-panel-studio {
  height: 100%;
}
.creator-studio {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 24px);
  min-height: 560px;
  gap: 0;
  background: #080b0f;
  border: 1px solid rgba(90, 169, 182, 0.14);
  border-radius: 14px;
  overflow: hidden;
}
.creator-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #10151c, #0c1016);
  flex-wrap: wrap;
}
.creator-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.creator-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #5aa9b6;
  background: rgba(90, 169, 182, 0.12);
  padding: 4px 8px;
  border-radius: 6px;
}
.creator-beta-badge {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #0d1117;
  background: linear-gradient(135deg, #ffc857, #ff8a3d);
  padding: 4px 8px;
  border-radius: 6px;
}
.creator-beta-badge-inline {
  margin-left: auto;
  padding: 2px 6px;
  font-size: 0.58rem;
}
.community-beta-card {
  max-width: min(440px, 92vw);
  text-align: left;
  gap: 14px;
}
.community-beta-pill {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #0d1117;
  background: linear-gradient(135deg, #ffc857, #ff8a3d);
  padding: 4px 10px;
  border-radius: 999px;
}
.community-beta-card h2 {
  margin: 0;
}
.community-beta-card .modal-sub {
  white-space: pre-line;
  line-height: 1.55;
}
.studio-official-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dcea0;
  background: rgba(125, 206, 160, 0.14);
  border: 1px solid rgba(125, 206, 160, 0.35);
  padding: 2px 7px;
  border-radius: 999px;
}
.studio-diff-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.studio-diff-badge.is-easy {
  color: #7dcea0;
  background: rgba(125, 206, 160, 0.12);
  border-color: rgba(125, 206, 160, 0.3);
}
.studio-diff-badge.is-medium {
  color: #ffc857;
  background: rgba(255, 200, 87, 0.12);
  border-color: rgba(255, 200, 87, 0.3);
}
.studio-diff-badge.is-hard {
  color: #ff6b8a;
  background: rgba(255, 70, 85, 0.14);
  border-color: rgba(255, 70, 85, 0.35);
}
.studio-diff-badge.is-extreme {
  color: #c084fc;
  background: rgba(167, 139, 250, 0.14);
  border-color: rgba(167, 139, 250, 0.35);
}
.studio-card.is-official {
  box-shadow: inset 0 0 0 1px rgba(125, 206, 160, 0.28);
}
.creator-title-input {
  flex: 1;
  min-width: 140px;
  max-width: 360px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  color: #f2f5f7;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 4px 2px;
}
.creator-title-input:focus {
  outline: none;
  border-bottom-color: rgba(90, 169, 182, 0.5);
}
.creator-status-pill {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}
.creator-status-pill.is-published {
  color: #7dcea0;
  background: rgba(125, 206, 160, 0.12);
}
.creator-status-pill.is-draft {
  color: #f0c674;
  background: rgba(240, 198, 116, 0.12);
}
.creator-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.creator-play-btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  color: #071016;
  background: linear-gradient(135deg, #5aa9b6, #7dcea0);
  box-shadow: 0 8px 24px rgba(90, 169, 182, 0.25);
}
.creator-play-btn:hover {
  filter: brightness(1.06);
}
.creator-msg {
  margin: 0;
  padding: 0 14px;
  min-height: 0;
}
.creator-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  gap: 0;
  flex: 1;
  min-height: 0;
}
@media (max-width: 1100px) {
  .creator-body {
    grid-template-columns: 1fr;
    overflow: auto;
  }
}
.creator-library,
.creator-inspector {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  background: #0b0f14;
  overflow: auto;
  min-height: 0;
}
.creator-library {
  border-right: 1px solid rgba(255,255,255,0.05);
}
.creator-inspector {
  border-left: 1px solid rgba(255,255,255,0.05);
}
.creator-lib-section h3,
.creator-timeline-head h3 {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
}
.creator-lib-grow {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.creator-lib-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.creator-upload-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 8px 0 0;
}
.creator-upload-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.2);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.creator-upload-opt input {
  accent-color: #5aa9b6;
}
.creator-upload-opt:has(input:checked) {
  border-color: rgba(90, 169, 182, 0.45);
  background: rgba(90, 169, 182, 0.12);
  color: #d7f3f8;
}
.creator-lib-tabs {
  display: flex;
  gap: 4px;
  margin: 8px 0;
}
.creator-lib-tab,
.creator-insp-tab {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.creator-lib-tab.is-active,
.creator-insp-tab.is-active {
  background: rgba(90, 169, 182, 0.16);
  border-color: rgba(90, 169, 182, 0.35);
  color: #9fd4dc;
}
.creator-preset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.creator-preset {
  appearance: none;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: inherit;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  font: inherit;
}
.creator-preset:hover {
  border-color: rgba(90, 169, 182, 0.4);
  background: rgba(90, 169, 182, 0.08);
}
.creator-preset strong {
  display: block;
  font-size: 0.8rem;
}
.creator-preset em {
  font-style: normal;
  font-size: 0.65rem;
  opacity: 0.5;
}
.creator-tool-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.creator-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.2);
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.creator-tool span {
  font-size: 1.1rem;
  line-height: 1;
}
.creator-tool em {
  font-style: normal;
  font-size: 0.65rem;
  opacity: 0.65;
}
.creator-tool.is-active {
  border-color: rgba(255, 138, 61, 0.55);
  background: rgba(255, 138, 61, 0.12);
  color: #ffc857;
}
.creator-asset-grid {
  overflow: auto;
  max-height: none;
  flex: 1;
}
.creator-viewport-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #070a0e;
}
.creator-viewport-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-wrap: wrap;
}
.creator-hint {
  font-size: 0.78rem;
  opacity: 0.6;
}
.creator-viewport-toggles {
  display: flex;
  align-items: center;
  gap: 10px;
}
.creator-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  opacity: 0.8;
}
.btn.tiny {
  padding: 6px 10px;
  font-size: 0.78rem;
}
.creator-viewport {
  flex: 1;
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 10px;
  background:
    radial-gradient(ellipse at center, rgba(90, 169, 182, 0.05), transparent 60%),
    #070a0e;
}
.creator-viewport canvas {
  width: 100%;
  max-width: 960px;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0f1318;
  cursor: crosshair;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}
.creator-viewport-3d {
  place-items: stretch;
  min-height: 360px;
}
.creator-viewport-3d .studio-gl {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 360px;
  aspect-ratio: auto;
  display: block;
  cursor: grab;
}
.creator-timeline {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 10px 12px 12px;
  background: #0a0e13;
}
.creator-timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.creator-timeline-track {
  position: relative;
  min-height: 52px;
}
.creator-timeline-ruler {
  position: relative;
  height: 48px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.creator-timeline-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(90, 169, 182, 0.25);
}
.creator-wave-chip {
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
  appearance: none;
  border: 1px solid rgba(167, 139, 250, 0.45);
  background: rgba(167, 139, 250, 0.18);
  color: #e9e0ff;
  border-radius: 8px;
  padding: 4px 8px;
  font: inherit;
  font-size: 0.7rem;
  cursor: pointer;
  z-index: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.creator-wave-chip.is-active {
  border-color: #ffc857;
  background: rgba(255, 200, 87, 0.2);
  color: #ffe7b0;
}
.creator-insp-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.creator-insp-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.creator-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.studio-mechanic-hint {
  margin: -4px 0 8px;
  font-size: 0.78rem;
}
#studio-target-color {
  width: 100%;
  min-height: 36px;
  padding: 2px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #121820;
  cursor: pointer;
}
.creator-preset.is-active {
  border-color: rgba(255, 70, 85, 0.75);
  box-shadow: 0 0 0 1px rgba(255, 70, 85, 0.35);
}
.creator-insp-kind {
  margin: 0;
  font-weight: 800;
  color: #9fd4dc;
}
#studio-hitbox-canvas {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0f1318;
  cursor: crosshair;
}

/* Rank help (?): título centralizado; ? ao lado sem empurrar as setas */
.mode-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-width: 0;
  column-gap: 8px;
}
.mode-title-row .mode-title {
  grid-column: 2;
  justify-self: center;
  margin: 0;
  min-width: 0;
}
.mode-new-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-family: var(--font-ui, inherit);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #ff4655, #ff7a2f);
  box-shadow: 0 4px 14px rgba(255, 70, 85, 0.45);
  line-height: 1.2;
  pointer-events: none;
}
.mode-new-badge[hidden] {
  display: none !important;
}
.mode-rank-help {
  grid-column: 3;
  justify-self: start;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #cfe8ee;
  font: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  padding: 0;
}
.mode-rank-help:hover {
  border-color: rgba(90, 169, 182, 0.55);
  color: #fff;
  background: rgba(90, 169, 182, 0.18);
}
.time-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-bottom: 2px;
}
.time-modal-head h2 {
  margin: 0;
}
.time-modal-card {
  width: min(560px, 100%);
  max-height: min(92vh, 860px);
  overflow: auto;
  padding: 26px 24px 20px;
  gap: 16px;
  align-items: stretch;
  text-align: left;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(92, 240, 216, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(240, 180, 41, 0.07), transparent 50%),
    linear-gradient(165deg, rgba(16, 20, 26, 0.97), rgba(8, 10, 14, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  scrollbar-width: thin;
}
.time-modal-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}
.time-modal-head-text .modal-sub {
  margin-top: 4px;
  color: rgba(245, 247, 250, 0.72);
  font-weight: 600;
}
.time-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.time-section .modal-label {
  margin: 0;
  text-align: left;
}
.time-section-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.time-section-hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.time-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  width: 100%;
}
.time-modal-grid .duration-opts {
  justify-content: flex-start;
}
.time-modal-actions {
  width: 100%;
  margin-top: 4px;
  gap: 10px;
}
.time-modal-actions .btn {
  flex: 1;
}
.time-start-btn {
  box-shadow: 0 10px 28px rgba(240, 180, 41, 0.22);
}

.arena-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
.arena-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.arena-card:hover {
  border-color: rgba(92, 240, 216, 0.35);
  transform: translateY(-2px);
}
.arena-card.active {
  border-color: rgba(240, 180, 41, 0.75);
  box-shadow:
    0 0 0 1px rgba(240, 180, 41, 0.35),
    0 12px 28px rgba(0, 0, 0, 0.35);
}
.arena-card.active::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  color: #120900;
  background: linear-gradient(135deg, var(--amber), #d4921a);
  box-shadow: 0 0 0 2px rgba(8, 10, 14, 0.85);
  z-index: 2;
}
.arena-preview {
  position: relative;
  height: 88px;
  overflow: hidden;
  isolation: isolate;
}
.arena-preview-gray {
  background: linear-gradient(180deg, #4a525c 0%, #55606c 52%, #7a848e 52%, #5f6872 100%);
}
.arena-preview-gray .arena-prev-floor {
  display: none;
}
.arena-preview-dark {
  background: #15181e;
}
.arena-preview-dark .arena-prev-grid {
  display: block;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(170, 185, 200, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170, 185, 200, 0.12) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.85;
}
.arena-preview-dark .arena-prev-ledge {
  display: none;
}
.arena-preview-sky {
  background: linear-gradient(180deg, #3d9fe0 0%, #9fd0f2 42%, #e8f2fa 46%, #c4ccd6 52%, #8a949f 100%);
}
.arena-prev-cloud {
  position: absolute;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.7);
  filter: blur(1px);
}
.arena-prev-cloud.c1 {
  width: 48px;
  height: 14px;
  top: 12px;
  left: 14%;
  box-shadow: 18px 4px 0 -2px rgba(255, 255, 255, 0.55);
}
.arena-prev-cloud.c2 {
  width: 40px;
  height: 12px;
  top: 20px;
  right: 12%;
  opacity: 0.75;
  box-shadow: -14px 3px 0 -2px rgba(255, 255, 255, 0.45);
}
.arena-prev-horizon {
  position: absolute;
  left: 0;
  right: 0;
  top: 44%;
  height: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent);
}
.arena-prev-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff2948;
  box-shadow: 0 0 8px rgba(255, 41, 72, 0.55);
  z-index: 1;
}
.arena-prev-dot.yellow {
  background: #ffe14a;
  box-shadow: 0 0 10px rgba(255, 220, 70, 0.55);
}
.arena-prev-dot.d1 { left: 28%; top: 34%; }
.arena-prev-dot.d2 { left: 52%; top: 48%; width: 11px; height: 11px; }
.arena-prev-dot.d3 { left: 70%; top: 30%; }
.arena-prev-cross {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  z-index: 2;
}
.arena-prev-cross.yellow {
  background: #ffe14a;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
}
.arena-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 8, 12, 0.55);
}
.arena-card-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f5f7fa;
}
.arena-card-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}
.arena-card.active .arena-card-name {
  color: #ffd27a;
}

@media (max-width: 560px) {
  .time-modal-grid {
    grid-template-columns: 1fr;
  }
  .arena-gallery {
    grid-template-columns: 1fr;
  }
  .arena-preview {
    height: 76px;
  }
}

.rank-help-card {
  width: min(420px, 94vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}
.rank-help-scroll {
  overflow: auto;
  max-height: min(58vh, 520px);
  margin: 8px 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.rank-help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.rank-help-table th,
.rank-help-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.rank-help-table th {
  position: sticky;
  top: 0;
  background: #12161c;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}
.rank-help-rank {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rank-help-rank img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.rank-help-table tr.is-radiant td {
  color: #ffedaa;
  font-weight: 700;
}

.creator-howto {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(90, 169, 182, 0.06);
}
@media (max-width: 900px) {
  .creator-howto { grid-template-columns: 1fr 1fr; }
}
.creator-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 0.9;
}
.creator-step b {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(90, 169, 182, 0.25);
  color: #9fd4dc;
  font-size: 0.72rem;
}
.creator-lib-hint {
  margin: 0 0 8px;
  font-size: 0.75rem;
  color: #9fd4dc;
  opacity: 0.85;
}
.creator-active-assets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 8px;
}
.creator-chip {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-player-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(90, 169, 182, 0.22);
  background: linear-gradient(180deg, rgba(90, 169, 182, 0.08), rgba(0,0,0,0.2));
}
.creator-player-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.creator-player-preview-head h3 {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}
.creator-live-pill {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #7dcea0;
  background: rgba(125, 206, 160, 0.14);
  border: 1px solid rgba(125, 206, 160, 0.35);
  padding: 3px 7px;
  border-radius: 999px;
  animation: creatorLivePulse 1.6s ease-in-out infinite;
}
@keyframes creatorLivePulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.creator-player-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: #070a0e;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 10px 28px rgba(0,0,0,0.35);
}
.creator-player-frame canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* �� Creator Studio fullscreen 3D �� */
.creator-close-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #e8eef2;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}
.creator-close-btn:hover {
  background: rgba(90, 169, 182, 0.18);
  border-color: rgba(90, 169, 182, 0.45);
}
.creator-viewport-3d {
  position: relative;
  flex: 1;
  min-height: 280px;
}
.studio-gl {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border-radius: 10px;
  background: #0a0e14;
}
.creator-fps-preview {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: min(280px, 42vw);
  z-index: 5;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(90, 169, 182, 0.28);
  background: rgba(8, 12, 18, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  pointer-events: none;
}
.creator-fps-preview .hint {
  margin: 6px 2px 0;
  font-size: 0.68rem;
  opacity: 0.65;
}
.creator-fps-crosshair {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(#fff, #fff) center/1.5px 12px no-repeat,
    linear-gradient(#fff, #fff) center/12px 1.5px no-repeat;
  opacity: 0.55;
  mix-blend-mode: difference;
}
.creator-drop-hint {
  position: absolute;
  inset: 12px;
  z-index: 6;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 2px dashed rgba(90, 169, 182, 0.65);
  background: rgba(90, 169, 182, 0.12);
  color: #cfe8ee;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  pointer-events: none;
}
.creator-drop-hint[hidden] { display: none !important; }
.studio-asset-card.is-dragging {
  opacity: 0.45;
  outline: 2px solid rgba(90, 169, 182, 0.6);
}
.studio-asset-card[draggable="true"] {
  cursor: grab;
}
.studio-asset-card[draggable="true"]:active {
  cursor: grabbing;
}

body.studio-fs-open {
  overflow: hidden;
}
body.studio-fs-open #studio-editor {
  position: fixed;
  inset: 0;
  z-index: 9200;
  width: 100vw;
  height: 100vh;
  max-height: none;
  min-height: 100vh;
  border-radius: 0;
  border: none;
  animation: studioFsIn 0.28s ease-out;
}
@keyframes studioFsIn {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}
body.studio-fs-open #studio-editor .creator-howto {
  display: none;
}
body.studio-fs-open #studio-editor .creator-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr minmax(240px, 300px);
  gap: 0;
}
body.studio-fs-open #studio-editor .creator-library,
body.studio-fs-open #studio-editor .creator-inspector {
  background: rgba(10, 14, 20, 0.88);
  backdrop-filter: blur(14px);
  border: none;
  overflow: auto;
  max-height: none;
}
body.studio-fs-open #studio-editor .creator-library {
  border-right: 1px solid rgba(255,255,255,0.06);
}
body.studio-fs-open #studio-editor .creator-inspector {
  border-left: 1px solid rgba(255,255,255,0.06);
}
body.studio-fs-open #studio-editor .creator-viewport-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 8px 10px 10px;
  gap: 8px;
}
body.studio-fs-open #studio-editor .creator-viewport-3d {
  flex: 1;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
body.studio-fs-open #studio-editor .studio-gl {
  min-height: 100%;
  height: 100%;
  border-radius: 0;
}
body.studio-fs-open #studio-editor .creator-timeline {
  max-height: 120px;
  overflow: auto;
}
body.studio-fs-open #studio-editor .creator-fps-preview {
  width: min(320px, 36vw);
}
@media (max-width: 980px) {
  body.studio-fs-open #studio-editor .creator-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
  }
  body.studio-fs-open #studio-editor .creator-library,
  body.studio-fs-open #studio-editor .creator-inspector {
    max-height: 28vh;
  }
  body.studio-fs-open #studio-editor .creator-fps-preview {
    width: min(200px, 48vw);
    right: 8px;
    bottom: 8px;
  }
}
