:root {
  color-scheme: dark;
  --bg-main: #090b14;
  --bg-top: #12172a;
  --bg-panel: rgba(17, 22, 38, 0.92);
  --bg-panel-soft: rgba(23, 31, 53, 0.9);
  --bg-card: rgba(19, 25, 44, 0.92);
  --bg-card-alt: rgba(27, 35, 58, 0.88);
  --line: rgba(155, 178, 255, 0.18);
  --line-strong: rgba(126, 159, 255, 0.32);
  --text: #eef3ff;
  --muted: #a8b6d9;
  --accent: #5f86ff;
  --accent-strong: #3754c8;
  --accent-soft: rgba(95, 134, 255, 0.18);
  --gold: #ffca63;
  --danger: #d76363;
  --shadow: 0 24px 60px rgba(2, 6, 18, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(88, 116, 255, 0.3), transparent 30%),
    radial-gradient(circle at top right, rgba(0, 200, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #101427 0%, var(--bg-main) 100%);
}

body {
  min-height: 100vh;
}

button,
input,
textarea {
  font: inherit;
}

.dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  transition: grid-template-columns 220ms ease;
}

.dashboard-shell.sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}

.sidebar {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 26px 20px;
  background:
    linear-gradient(180deg, rgba(14, 19, 35, 0.98), rgba(10, 13, 24, 0.98)),
    var(--bg-main);
  border-right: 1px solid var(--line);
  overflow: hidden;
  transition: opacity 180ms ease, transform 180ms ease, padding 180ms ease, border-color 180ms ease;
}

.dashboard-shell.sidebar-collapsed .sidebar {
  opacity: 0;
  transform: translateX(-12px);
  padding-left: 0;
  padding-right: 0;
  border-color: transparent;
}

.sidebar-topbar {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
}

.brand-block,
.sidebar-card,
.topbar,
.hero-card,
.dashboard-card,
.game-header,
.hud,
.panel {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.brand-block {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(33, 43, 72, 0.96), rgba(16, 22, 37, 0.96));
}

.brand-mini,
.topbar-label,
.card-label,
.hero-label,
.sidebar-label,
.eyebrow,
.panel-kicker {
  margin: 0 0 8px;
  color: #8ea6f6;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.brand-block h1,
.topbar h2,
.hero-copy h3,
.dashboard-card h3,
.game-header h3,
.feedback-drawer h2,
.panel h2 {
  margin: 0;
}

.brand-copy,
.sidebar-help,
.hero-copy p,
.dashboard-card p,
.feedback-copy,
.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.nav-link,
.game-pick {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}

.nav-link.active,
.nav-link:hover,
.game-pick.active,
.game-pick:hover {
  background: linear-gradient(135deg, rgba(95, 134, 255, 0.28), rgba(43, 68, 165, 0.25));
  border-color: var(--line-strong);
}

.game-pick {
  display: grid;
  gap: 4px;
}

.game-pick small {
  color: var(--muted);
}

.sidebar-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(18, 24, 40, 0.96), rgba(12, 16, 28, 0.96));
}

.workspace {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px;
}

.dashboard-shell.game-focus-mode {
  grid-template-columns: 1fr;
}

.dashboard-shell.game-focus-mode .sidebar,
.dashboard-shell.game-focus-mode .topbar,
.dashboard-shell.game-focus-mode #flyFrenzyView .game-screen-bar,
.dashboard-shell.game-focus-mode #aztecDuelView .game-screen-bar {
  display: none;
}

.dashboard-shell.game-focus-mode .workspace {
  gap: 0;
  padding: 8px;
}

.dashboard-shell.game-focus-mode .view-stack,
.dashboard-shell.game-focus-mode #flyFrenzyView,
.dashboard-shell.game-focus-mode #flyFrenzyView.active,
.dashboard-shell.game-focus-mode #aztecDuelView,
.dashboard-shell.game-focus-mode #aztecDuelView.active,
.dashboard-shell.game-focus-mode .game-screen-minimal,
.dashboard-shell.game-focus-mode .game-shell,
.dashboard-shell.game-focus-mode .canvas-wrap-game-only {
  min-height: calc(100dvh - 16px);
  height: calc(100dvh - 16px);
}

.dashboard-shell.game-focus-mode #flyFrenzyView {
  gap: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(16, 22, 40, 0.96), rgba(20, 28, 49, 0.96));
}

.sidebar-toggle-button {
  width: 46px;
  height: 46px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  box-shadow: none;
  color: var(--text);
}

.sidebar-toggle-button:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.sidebar-toggle-icon {
  display: grid;
  gap: 4px;
}

.sidebar-toggle-icon span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.sidebar-reveal-button {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 30;
  width: 46px;
  height: 46px;
  padding: 0;
  display: none;
  place-items: center;
  border-radius: 14px;
  background: rgba(12, 18, 32, 0.94);
  border: 1px solid rgba(126, 159, 255, 0.28);
  box-shadow: var(--shadow);
}

.dashboard-shell.sidebar-collapsed + .sidebar-reveal-button,
.sidebar-reveal-button.is-visible {
  display: inline-grid;
}

.sidebar-reveal-button[hidden] {
  display: none !important;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-actions input,
.username-form input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(9, 14, 26, 0.92);
  color: var(--text);
}

.topbar-actions input {
  width: min(340px, 48vw);
}

.topbar-actions input:focus,
.username-form input:focus,
textarea:focus {
  outline: 3px solid var(--accent-soft);
  border-color: var(--line-strong);
}

.user-chip {
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(95, 134, 255, 0.26), rgba(56, 87, 192, 0.28));
  border: 1px solid var(--line-strong);
  font-weight: 700;
}

.view-stack {
  display: grid;
}

.dashboard-view {
  display: none;
  gap: 18px;
}

.dashboard-view.active {
  display: grid;
}

#gameView:fullscreen {
  display: grid;
  align-content: stretch;
  padding: 8px;
  background:
    radial-gradient(circle at top left, rgba(88, 116, 255, 0.24), transparent 28%),
    linear-gradient(180deg, #090d18 0%, #05070f 100%);
}

#gameView:fullscreen .game-shell {
  min-height: calc(100dvh - 16px);
}

#gameView:fullscreen .canvas-wrap {
  height: 100%;
  display: grid;
  place-items: center;
}

#gameView:fullscreen canvas {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 16 / 9;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 18px;
  padding: 24px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(122, 155, 255, 0.28), transparent 30%),
    linear-gradient(135deg, rgba(48, 21, 94, 0.96), rgba(21, 33, 69, 0.96));
}

.hero-copy h3 {
  font-size: clamp(2rem, 2vw + 1rem, 3.2rem);
  line-height: 1.05;
  margin-bottom: 12px;
}

.hero-badge-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(8, 13, 27, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-badge-title {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(17, 23, 39, 0.96), rgba(12, 16, 28, 0.98));
}

.username-form,
.feedback-form {
  display: grid;
  gap: 12px;
}

.username-form label,
.feedback-label {
  color: #c5d2f3;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.username-actions,
.feedback-actions,
.comments-header,
.settings-line {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.inline-status,
.feedback-status {
  min-height: 1.2em;
  color: #98b7ff;
  font-weight: 700;
}

.library-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(34, 43, 72, 0.85), rgba(20, 26, 45, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-grid {
  grid-template-columns: 0.85fr 1.15fr;
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-item,
.empty-comments {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(27, 35, 58, 0.72), rgba(15, 20, 34, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.comment-item p,
.empty-comments {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.comment-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.game-shell {
  display: grid;
  gap: 16px;
}

.game-shell-v2 {
  gap: 0;
}

.arcade-shell,
.game-screen-minimal {
  display: grid;
  gap: 18px;
}

.arcade-header,
.game-screen-bar,
.game-tile,
.panel-minimal {
  border: 1px solid rgba(87, 255, 20, 0.12);
  background: rgba(10, 12, 16, 0.92);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.arcade-header,
.game-screen-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}

.arcade-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.game-tile {
  min-height: 220px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 18px;
}

.game-tile-featured {
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.5), rgba(8, 8, 8, 0.88)),
    url("https://images.unsplash.com/photo-1546961342-ea5f73321433?w=900&h=500&fit=crop&auto=format") center/cover no-repeat;
}

.game-tile-soon {
  background: linear-gradient(180deg, rgba(14, 16, 20, 0.95), rgba(8, 8, 8, 0.95));
  opacity: 0.9;
}

.game-tile-aztec {
  background:
    linear-gradient(180deg, rgba(17, 11, 7, 0.35), rgba(10, 8, 8, 0.88)),
    linear-gradient(135deg, rgba(189, 90, 32, 0.18), rgba(116, 34, 9, 0.18));
}

.game-tile-luchador {
  background:
    linear-gradient(180deg, rgba(25, 12, 20, 0.32), rgba(8, 8, 8, 0.88)),
    linear-gradient(135deg, rgba(255, 121, 79, 0.2), rgba(255, 205, 86, 0.14)),
    radial-gradient(circle at top right, rgba(76, 201, 240, 0.16), transparent 28%);
}

.game-tile-kicker {
  margin: 0 0 8px;
  color: rgba(57, 255, 20, 0.62);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.game-tile-copy h3,
.game-screen-bar h3 {
  margin: 0;
}

.game-tile-copy p:last-child {
  margin: 6px 0 0;
  color: rgba(229, 231, 235, 0.6);
}

.game-tile-actions {
  display: flex;
  justify-content: flex-start;
}

.game-screen-bar {
  padding: 12px 14px;
}

.game-screen-actions {
  display: flex;
  gap: 10px;
}

.back-link {
  border: 1px solid rgba(87, 255, 20, 0.14);
  background: transparent;
  color: rgba(229, 231, 235, 0.72);
  box-shadow: none;
  padding: 10px 14px;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.canvas-wrap-game-only {
  min-height: min(78vh, 860px);
}

.hud-minimal {
  top: 14px;
  left: 14px;
  right: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 6px;
}

.panel-minimal {
  max-width: 360px;
  gap: 10px;
  padding: 20px;
}

.panel-minimal h2,
.panel-minimal p {
  margin: 0;
}

.aztec-rules {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 244, 221, 0.08);
  border: 1px solid rgba(255, 194, 120, 0.18);
  text-align: left;
}

.aztec-rules p {
  color: #f2e6cc;
  font-size: 0.95rem;
}

.aztec-rules strong {
  color: #ffd17f;
}

.aztec-mode-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hud-aztec {
  top: 2px;
  left: 6px;
  right: 6px;
  padding: 2px;
  background: rgba(8, 12, 22, 0.12);
  border-color: rgba(255, 208, 146, 0.08);
  box-shadow: 0 6px 14px rgba(2, 6, 18, 0.08);
  backdrop-filter: blur(5px);
}

.hud-aztec .hud-item {
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(15, 18, 31, 0.72);
}

.hud-aztec .hud-item span {
  font-size: 0.52rem;
  letter-spacing: 0.14em;
}

.hud-aztec .hud-item strong {
  color: #ffe7be;
  font-size: 0.76rem;
}

.hud-luchador {
  top: 2px;
  left: 6px;
  right: 6px;
  padding: 2px;
  background: rgba(14, 11, 25, 0.14);
  border-color: rgba(255, 140, 96, 0.1);
  box-shadow: 0 6px 14px rgba(2, 6, 18, 0.08);
  backdrop-filter: blur(6px);
}

.hud-luchador .hud-item {
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(18, 18, 32, 0.78);
}

.hud-luchador .hud-item span {
  font-size: 0.52rem;
  letter-spacing: 0.14em;
}

.hud-luchador .hud-item strong {
  color: #ffe1c3;
  font-size: 0.76rem;
}

:root {
  --bg-main: #040812;
  --bg-top: #0f1628;
  --bg-panel: rgba(10, 16, 28, 0.92);
  --bg-panel-soft: rgba(14, 21, 37, 0.9);
  --bg-card: rgba(9, 14, 25, 0.94);
  --bg-card-alt: rgba(17, 26, 42, 0.92);
  --line: rgba(109, 137, 205, 0.2);
  --line-strong: rgba(88, 247, 193, 0.34);
  --text: #eff4ff;
  --muted: #9ca8c7;
  --accent: #2bf4c6;
  --accent-strong: #19cfa7;
  --accent-soft: rgba(43, 244, 198, 0.14);
}

html,
body {
  background:
    radial-gradient(circle at top left, rgba(54, 102, 255, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(43, 244, 198, 0.1), transparent 24%),
    linear-gradient(180deg, #07101e 0%, var(--bg-main) 100%);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(7, 11, 21, 0.98), rgba(6, 10, 18, 0.98)),
    var(--bg-main);
}

.brand-block {
  background:
    linear-gradient(180deg, rgba(17, 27, 47, 0.96), rgba(9, 15, 27, 0.98)),
    rgba(9, 15, 27, 0.96);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.brand-logo-mark {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 221, 121, 0.38), transparent 42%),
    linear-gradient(135deg, rgba(19, 33, 58, 1), rgba(10, 16, 30, 1));
  border: 1px solid rgba(80, 248, 197, 0.35);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26);
  color: #ffe582;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-arcade {
  margin: 4px 0 0;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.brand-block h1 {
  font-size: 1.7rem;
  line-height: 0.92;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(231, 239, 255, 0.82);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-link.active,
.nav-link:hover,
.game-pick.active,
.game-pick:hover {
  background: linear-gradient(135deg, rgba(23, 34, 57, 0.94), rgba(11, 18, 30, 0.94));
  border-color: var(--line-strong);
  color: var(--accent);
}

.nav-link.active .nav-link-icon,
.nav-link:hover .nav-link-icon {
  color: var(--accent);
  border-color: rgba(43, 244, 198, 0.24);
}

.sidebar-card-challenge,
.sidebar-card-tip {
  gap: 12px;
}

.challenge-meter {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.challenge-meter span {
  display: block;
  width: 51%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2bf4c6, #5e84ff);
}

.sidebar-stat-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.sidebar-stat-line strong {
  color: var(--text);
}

.dashboard-shell.game-focus-mode .sidebar,
.dashboard-shell.game-focus-mode .topbar,
.dashboard-shell.game-focus-mode #flyFrenzyView .game-screen-bar,
.dashboard-shell.game-focus-mode #aztecDuelView .game-screen-bar,
.dashboard-shell.game-focus-mode #luchadorLegendsView .game-screen-bar {
  display: none;
}

.topbar {
  background:
    linear-gradient(135deg, rgba(11, 18, 32, 0.97), rgba(10, 17, 30, 0.93)),
    rgba(10, 17, 30, 0.95);
}

.topbar-actions {
  gap: 14px;
}

.topbar-stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-stat {
  min-width: 88px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #fff0c8;
  font-weight: 700;
  text-align: center;
}

.topbar h2 {
  font-size: clamp(1.85rem, 1.2vw + 1.2rem, 2.45rem);
  line-height: 0.98;
}

.arcade-header,
.game-screen-bar,
.game-tile,
.panel-minimal {
  border: 1px solid rgba(93, 126, 202, 0.16);
  background: rgba(8, 12, 20, 0.92);
}

.arcade-header {
  padding-top: 18px;
  padding-bottom: 18px;
}

.arcade-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.arcade-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

.carousel-arrow span {
  font-size: 1.2rem;
  line-height: 1;
}

.arcade-grid-hub {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}

.game-tile {
  min-height: 202px;
  padding: 16px;
  border-radius: 22px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.game-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 7, 14, 0.02), rgba(3, 7, 14, 0.72));
  pointer-events: none;
}

.game-tile > * {
  position: relative;
  z-index: 1;
}

.game-tile:hover,
.game-tile:focus-visible,
.game-tile.is-selected {
  transform: translateY(-2px);
  border-color: rgba(43, 244, 198, 0.54);
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.34);
}

.game-tile-featured {
  background:
    linear-gradient(180deg, rgba(6, 9, 17, 0.04), rgba(6, 9, 17, 0.82)),
    url("https://images.unsplash.com/photo-1546961342-ea5f73321433?w=900&h=500&fit=crop&auto=format") center/cover no-repeat;
}

.game-tile-soon {
  background:
    linear-gradient(180deg, rgba(14, 16, 20, 0.4), rgba(8, 8, 8, 0.9)),
    linear-gradient(135deg, rgba(121, 72, 18, 0.3), rgba(20, 18, 14, 0.9));
}

.game-tile-aztec {
  background:
    linear-gradient(180deg, rgba(17, 11, 7, 0.14), rgba(10, 8, 8, 0.82)),
    url("https://images.unsplash.com/photo-1539768942893-daf53e448371?w=900&h=500&fit=crop&auto=format") center/cover no-repeat;
}

.game-tile-luchador {
  background:
    linear-gradient(180deg, rgba(25, 12, 20, 0.16), rgba(8, 8, 8, 0.86)),
    url("./assets/luchador-hub-concept.png") center/cover no-repeat;
}

.game-tile-space {
  background:
    linear-gradient(180deg, rgba(8, 12, 26, 0.18), rgba(5, 8, 16, 0.88)),
    url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=900&h=500&fit=crop&auto=format") center/cover no-repeat;
}

.game-tile-kicker {
  color: rgba(255, 226, 128, 0.92);
}

.game-tile-copy p:last-child {
  color: rgba(229, 231, 235, 0.82);
}

.hub-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: 18px;
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(79, 107, 180, 0.22);
  background:
    linear-gradient(180deg, rgba(7, 12, 22, 0.98), rgba(7, 11, 20, 0.94)),
    rgba(7, 11, 20, 0.96);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.34);
}

.hub-feature-visual {
  min-height: 560px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hub-feature-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 14, 24, 0.06), rgba(8, 14, 24, 0.18) 50%, rgba(8, 14, 24, 0.78)),
    linear-gradient(90deg, rgba(8, 14, 24, 0.22), transparent 45%);
}

.hub-feature-visual-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
}

.hub-life-row,
.hub-coin-row {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(6, 10, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff0cb;
  font-weight: 700;
}

.hub-feature-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.hub-feature-heading {
  display: grid;
  gap: 14px;
}

.hub-feature-heading h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 0.96;
}

.hub-feature-tagline,
.hub-feature-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.hub-feature-tagline {
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 700;
}

.hub-play-button {
  width: auto;
  justify-self: start;
  min-width: 188px;
  padding: 18px 24px;
  border-radius: 18px;
  border: 0;
  background: linear-gradient(135deg, #22f1c5, #42d58c);
  color: #041018;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hub-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hub-chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #e8eefb;
  font-size: 0.88rem;
}

.hub-progress-card,
.hub-feature-list {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 16, 28, 0.86);
}

.hub-progress-card {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.hub-progress-copy {
  display: grid;
  gap: 6px;
}

.hub-progress-copy strong,
.hub-feature-item strong {
  color: var(--text);
}

.hub-progress-copy p,
.hub-feature-item p {
  margin: 0;
  color: var(--muted);
}

.hub-progress-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.hub-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #2bf4c6, #5f86ff);
  transition: width 180ms ease;
}

.hub-feature-list {
  display: grid;
  gap: 0;
}

.hub-feature-item {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
}

.hub-feature-item + .hub-feature-item {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.game-preview-fly {
  background-image:
    linear-gradient(180deg, rgba(8, 10, 18, 0.04), rgba(8, 10, 18, 0.18)),
    url("https://images.unsplash.com/photo-1546961342-ea5f73321433?w=1400&h=1000&fit=crop&auto=format");
}

.game-preview-aztec {
  background-image:
    linear-gradient(180deg, rgba(8, 10, 18, 0.04), rgba(8, 10, 18, 0.18)),
    url("https://images.unsplash.com/photo-1539768942893-daf53e448371?w=1400&h=1000&fit=crop&auto=format");
}

.game-preview-luchador {
  background-image: url("./assets/luchador-hub-concept.png");
}

.game-page-v2 {
  display: grid;
  gap: 28px;
  color: #e5e7eb;
}

.game-page-nav,
.game-hero-v2,
.game-sidebar-block,
.game-tab-panel,
.leaderboard-table-wrap {
  border: 1px solid rgba(87, 255, 20, 0.14);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.game-page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 52px;
  padding: 12px 18px;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(10px);
}

.game-page-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.game-brand-title {
  color: #39ff14;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.game-brand-slash,
.game-brand-subtitle,
.game-section-kicker,
.game-live-label,
.mission-stat-row span,
.game-quick-card span,
.game-tab,
.controls-row-v2 span,
.leaderboard-table th {
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
}

.game-brand-slash {
  color: rgba(255, 255, 255, 0.2);
}

.game-brand-subtitle {
  color: rgba(229, 231, 235, 0.58);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.game-launch-button,
.game-primary-cta,
.game-secondary-cta {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  box-shadow: none;
}

.game-launch-button,
.game-primary-cta {
  background: #39ff14;
  color: #040404;
}

.game-secondary-cta {
  background: transparent;
  color: #b6c2d3;
  border: 1px solid rgba(87, 255, 20, 0.2);
}

.game-hero-v2 {
  position: relative;
  min-height: 46vh;
  display: grid;
  align-items: end;
  padding: 48px 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.38), rgba(8, 8, 8, 0.78)),
    linear-gradient(0deg, rgba(57, 255, 20, 0.06), rgba(57, 255, 20, 0.06)),
    url("https://images.unsplash.com/photo-1534430480872-3498386e7856?w=1600&h=900&fit=crop&auto=format") center/cover no-repeat;
}

.game-hero-v2::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(57, 255, 20, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.game-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.game-section-kicker,
.game-live-label {
  color: rgba(57, 255, 20, 0.56);
  font-size: 0.68rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.game-hero-title {
  margin: 0 0 10px;
  font-size: clamp(3.3rem, 11vw, 7.5rem);
  line-height: 0.9;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.game-hero-title span {
  color: #39ff14;
  text-shadow: 0 0 36px rgba(57, 255, 20, 0.28);
}

.game-hero-subtitle {
  margin: 0 0 24px;
  color: rgba(229, 231, 235, 0.72);
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.game-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.game-play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.game-live-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.game-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #39ff14;
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.7);
}

.controls-card {
  display: grid;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(152, 188, 255, 0.35);
  font-size: 0.92rem;
  text-align: right;
  color: var(--muted);
}

.hud {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(15, 20, 36, 0.92);
}

.hud-item {
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(24, 31, 54, 0.96), rgba(16, 21, 38, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hud-item span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hud-item strong {
  font-size: 1.1rem;
}

.canvas-wrap {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #0f1834 0%, #111827 100%);
  overscroll-behavior: contain;
}

.canvas-wrap-v2 {
  min-height: min(74vh, 760px);
  background:
    linear-gradient(180deg, rgba(7, 10, 18, 0.1), rgba(7, 10, 18, 0.28)),
    linear-gradient(180deg, #0f1834 0%, #111827 100%);
}

.canvas-wrap-aztec {
  background:
    linear-gradient(180deg, rgba(34, 15, 6, 0.12), rgba(17, 10, 7, 0.22)),
    linear-gradient(180deg, #24130d 0%, #111827 100%);
}

.canvas-wrap-luchador {
  background:
    linear-gradient(180deg, rgba(40, 12, 26, 0.08), rgba(18, 16, 32, 0.16)),
    linear-gradient(180deg, #170d1f 0%, #111827 100%);
}

.game-topbar,
.hud-floating,
.controls-card-floating {
  position: absolute;
  z-index: 2;
}

.game-topbar {
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(6, 9, 16, 0.78);
  border: 1px solid rgba(145, 168, 255, 0.14);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 38px rgba(2, 6, 18, 0.3);
  pointer-events: none;
}

.game-title-stack {
  display: grid;
  gap: 3px;
}

.game-title-stack h3 {
  font-size: clamp(1.12rem, 1.2vw + 0.8rem, 1.5rem);
}

.game-topbar .eyebrow {
  margin-bottom: 0;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
}

.game-topbar-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.game-meta-chip {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-meta-chip-live {
  background: rgba(83, 214, 122, 0.14);
  border-color: rgba(83, 214, 122, 0.28);
  color: #bbf7ce;
}

.hud-floating {
  top: 96px;
  left: 18px;
  right: 18px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 8px;
  background: rgba(8, 12, 22, 0.44);
  border: 1px solid rgba(145, 168, 255, 0.12);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 38px rgba(2, 6, 18, 0.24);
  pointer-events: none;
}

.hud-floating .hud-item {
  padding: 8px 12px;
  background: rgba(17, 22, 38, 0.86);
}

.hud-floating .hud-item span {
  font-size: 0.68rem;
}

.hud-floating .hud-item strong {
  font-size: 1rem;
}

.controls-card-floating {
  top: auto;
  bottom: 18px;
  right: 18px;
  width: min(280px, calc(100% - 36px));
  padding: 10px 14px;
  background: rgba(6, 9, 16, 0.72);
  border-style: solid;
  border-color: rgba(145, 168, 255, 0.14);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 38px rgba(2, 6, 18, 0.24);
  pointer-events: none;
}

.game-sidebar-v2 {
  display: grid;
  gap: 14px;
}

.game-sidebar-block {
  padding: 18px;
  background: #101010;
}

.mission-stats-list {
  display: grid;
  gap: 1px;
  margin-top: 10px;
}

.mission-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(87, 255, 20, 0.1);
}

.mission-stat-row span {
  color: rgba(229, 231, 235, 0.52);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.mission-stat-row strong,
.game-quick-card strong {
  color: #39ff14;
  font-size: 1.05rem;
}

.game-brief-block p:last-child {
  margin: 12px 0 0;
  color: rgba(229, 231, 235, 0.72);
  line-height: 1.6;
}

.game-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
}

.game-quick-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(87, 255, 20, 0.12);
  background: #101010;
}

.game-quick-card span {
  color: rgba(229, 231, 235, 0.46);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.game-info-v2 {
  display: grid;
  gap: 18px;
}

.game-tabbar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(87, 255, 20, 0.14);
}

.game-tab {
  background: transparent;
  color: rgba(229, 231, 235, 0.56);
  box-shadow: none;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  padding: 16px 24px;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.game-tab.active {
  color: #39ff14;
  border-bottom-color: #39ff14;
}

.game-tab-panel {
  padding: 28px;
  background: #101010;
}

.story-grid,
.controls-grid-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 28px;
}

.game-info-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
  font-weight: 900;
}

.game-info-title span {
  color: #39ff14;
}

.story-copy {
  display: grid;
  gap: 16px;
  color: rgba(229, 231, 235, 0.72);
  line-height: 1.7;
}

.story-side-card,
.touch-layout-card {
  padding: 20px;
  border: 1px solid rgba(87, 255, 20, 0.14);
  background: rgba(57, 255, 20, 0.03);
  color: rgba(229, 231, 235, 0.72);
  line-height: 1.6;
}

.controls-list-v2 {
  display: grid;
  gap: 1px;
}

.controls-row-v2 {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(87, 255, 20, 0.1);
  background: #0c0c0c;
}

.controls-row-v2 div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

kbd {
  border: 1px solid rgba(87, 255, 20, 0.2);
  background: #080808;
  color: #39ff14;
  padding: 6px 10px;
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.7rem;
}

.controls-row-v2 span {
  color: rgba(229, 231, 235, 0.58);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: right;
}

.leaderboard-table-wrap {
  overflow-x: auto;
  background: #101010;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(87, 255, 20, 0.1);
  text-align: left;
}

.leaderboard-table th {
  color: rgba(229, 231, 235, 0.5);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.leaderboard-table td {
  color: rgba(229, 231, 235, 0.78);
  font-family: "JetBrains Mono", "SFMono-Regular", monospace;
  font-size: 0.86rem;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: transparent;
  touch-action: none;
}

.overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 12, 22, 0.52);
  backdrop-filter: blur(2px);
}

.overlay.visible {
  display: flex;
}

.panel {
  max-width: 560px;
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: 24px;
  background: rgba(18, 24, 41, 0.96);
  text-align: center;
}

.panel-kicker {
  color: #7da3ff;
}

.start-note {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(47, 111, 216, 0.16);
  border: 1px solid rgba(95, 134, 255, 0.24);
  font-size: 0.95rem;
}

.start-actions {
  display: grid;
  gap: 12px;
}

textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: #f6f8ff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(46, 74, 178, 0.28);
}

button:hover {
  filter: brightness(1.07);
}

.secondary-button {
  background: linear-gradient(180deg, rgba(68, 91, 168, 0.96), rgba(40, 56, 113, 0.96));
}

.skip-intro-button {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  padding: 10px 18px;
  font-size: 0.92rem;
}

.touch-controls {
  position: absolute;
  inset: auto 0 18px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  pointer-events: none;
}

.touch-cluster {
  display: flex;
  gap: 12px;
  pointer-events: auto;
}

.touch-cluster-right {
  justify-content: flex-end;
}

.touch-button {
  width: auto;
  flex: 0 0 auto;
  min-width: 78px;
  min-height: 78px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(10, 16, 30, 0.72);
  box-shadow: 0 18px 28px rgba(3, 8, 20, 0.36);
  backdrop-filter: blur(10px);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.touch-button:active,
.touch-button.is-pressed {
  background: rgba(95, 134, 255, 0.78);
  transform: scale(0.98);
}

.touch-button-jump {
  min-width: 108px;
}

.fact-popup {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(16px);
  max-width: min(520px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(95, 134, 255, 0.34);
  background: rgba(17, 25, 44, 0.95);
  box-shadow: var(--shadow);
  text-align: center;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.fact-popup.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.aztec-popup {
  bottom: 18px;
  max-width: min(360px, calc(100% - 28px));
  padding: 10px 14px;
  border-color: rgba(255, 188, 107, 0.36);
  background: rgba(43, 22, 12, 0.94);
  font-size: 0.88rem;
}

.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 6, 18, 0.74);
  backdrop-filter: blur(12px);
}

.admin-overlay[hidden] {
  display: none;
}

.admin-panel {
  width: min(980px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(12, 17, 31, 0.98), rgba(16, 22, 40, 0.98));
  border: 1px solid rgba(145, 168, 255, 0.18);
  box-shadow: var(--shadow);
}

.admin-panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

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

.admin-stat-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(145, 168, 255, 0.12);
}

.admin-stat-card h3,
.admin-stat-card p {
  margin: 0;
}

.admin-stat-card p {
  color: var(--muted);
  line-height: 1.5;
  white-space: pre-line;
}

.admin-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

#luchadorCanvas,
#luchadorGestureCanvas {
  position: absolute;
  inset: 0;
}

#luchadorGestureCanvas {
  z-index: 3;
}

.panel-luchador {
  max-width: 540px;
}

.luchador-rules {
  background: rgba(255, 157, 104, 0.08);
  border-color: rgba(255, 157, 104, 0.16);
}

.luchador-popup {
  bottom: 18px;
  max-width: min(400px, calc(100% - 28px));
  padding: 10px 14px;
  border-color: rgba(255, 157, 104, 0.36);
  background: rgba(47, 15, 26, 0.94);
  font-size: 0.88rem;
}

.feedback-fab {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  padding: 12px 18px;
  border-radius: 999px;
}

.feedback-fab-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.feedback-fab-text {
  font-size: 0.94rem;
}

.feedback-drawer {
  position: absolute;
  right: 18px;
  bottom: 86px;
  z-index: 4;
  width: min(420px, calc(100% - 36px));
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, rgba(16, 21, 37, 0.98), rgba(20, 29, 52, 0.98));
}

.feedback-drawer[hidden] {
  display: none;
}

.feedback-drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.feedback-close-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

@media (hover: none), (pointer: coarse) {
  .controls-card-floating {
    display: none;
  }

  .feedback-fab {
    right: 18px;
    bottom: 112px;
  }

  .feedback-drawer {
    bottom: 180px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .touch-controls {
    display: none;
  }
}

@media (max-width: 1100px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .workspace {
    order: 1;
  }

  .sidebar {
    order: 2;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dashboard-grid,
  .settings-grid,
  .hero-card {
    grid-template-columns: 1fr;
  }

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

  .arcade-grid-hub {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-feature {
    grid-template-columns: 1fr;
  }

  .game-play-layout,
  .story-grid,
  .controls-grid-v2 {
    grid-template-columns: 1fr;
  }

  .controls-card-floating {
    display: none;
  }

  .game-topbar {
    right: 18px;
  }
}

@media (max-width: 860px) {
  .workspace {
    padding: 14px;
  }

  .topbar {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 22px;
  }

  .topbar-actions {
    display: grid;
  }

  .topbar-stat-row {
    order: 3;
  }

  .topbar-actions input {
    width: 100%;
  }

  .hud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-topbar,
  .hud-floating {
    left: 14px;
    right: 14px;
  }

  .game-topbar {
    padding: 9px 12px;
  }

  .game-topbar-meta {
    display: none;
  }

  .hud-floating {
    top: 88px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .game-page-nav,
  .game-hero-v2,
  .game-tab-panel,
  .game-sidebar-block {
    padding-left: 16px;
    padding-right: 16px;
  }

  .arcade-header,
  .game-screen-bar {
    display: grid;
  }

  .arcade-grid-hub {
    grid-template-columns: 1fr;
  }

  .game-screen-actions {
    display: grid;
  }

  .game-page-nav {
    display: grid;
  }

  .game-brand-title {
    font-size: 0.92rem;
  }

  .game-brand-subtitle {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
  }

  .topbar-label {
    margin-bottom: 4px;
    font-size: 0.68rem;
  }

  .topbar h2 {
    font-size: 1.6rem;
    line-height: 1.05;
  }

  .library-card {
    display: grid;
  }
}

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

  .hud-minimal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .canvas-wrap {
    border-radius: 22px;
  }

  .workspace {
    padding: 12px;
  }

  .topbar {
    gap: 8px;
    padding: 12px 14px;
    border-radius: 18px;
  }

  .topbar-stat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-stat {
    min-width: 0;
  }

  .topbar-label {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }

  .topbar h2 {
    font-size: 1.15rem;
  }

  .user-chip {
    padding: 8px 12px;
    font-size: 0.92rem;
  }

  .sidebar-reveal-button {
    top: 88px;
    left: 12px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .sidebar-reveal-button .sidebar-toggle-icon span {
    width: 14px;
  }

  .panel,
  .dashboard-card,
  .hero-card {
    padding: 20px;
  }

  .hub-feature {
    padding: 14px;
    border-radius: 24px;
  }

  .hub-feature-visual {
    min-height: 320px;
  }

  .hub-feature-heading h3 {
    font-size: 1.45rem;
  }

  button {
    width: 100%;
  }

  .username-actions,
  .feedback-actions,
  .comments-header,
  .settings-line {
    display: grid;
    justify-content: stretch;
  }

  .skip-intro-button {
    top: 12px;
    right: 12px;
    width: auto;
  }

  .game-topbar,
  .hud-floating {
    left: 10px;
    right: 10px;
  }

  .game-topbar {
    top: 10px;
    padding: 8px 10px;
    border-radius: 14px;
  }

  .game-title-stack h3 {
    font-size: 1rem;
  }

  .game-topbar .eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.14em;
  }

  .game-hero-v2 {
    min-height: 38vh;
    padding: 32px 16px;
  }

  .game-hero-actions {
    display: grid;
  }

  .hud-floating {
    top: 72px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 6px;
    border-radius: 14px;
  }

  .hud-floating .hud-item {
    padding: 7px 10px;
    border-radius: 12px;
  }

  .game-tabbar {
    overflow-x: auto;
  }

  .game-tab {
    padding: 14px 16px;
    white-space: nowrap;
  }

  .game-tab-panel {
    padding: 20px 16px;
  }

  .game-info-title {
    font-size: 2rem;
  }

  .touch-controls {
    inset: auto 0 12px;
    padding: 0 12px;
  }

  .touch-cluster {
    gap: 10px;
  }

  .touch-button {
    min-width: 68px;
    min-height: 68px;
    border-radius: 20px;
    font-size: 0.92rem;
  }

  .touch-button-jump {
    min-width: 92px;
  }

  .feedback-fab {
    right: 12px;
    bottom: 104px;
  }

  .feedback-drawer {
    right: 12px;
    bottom: 170px;
    width: calc(100% - 24px);
    padding: 16px;
  }

  .aztec-mode-buttons,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}
