﻿:root {
  color-scheme: light;
  --ink: #161512;
  --muted: #6a655d;
  --line: #ded8cd;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --side: #171410;
  --teal: #0fb5ae;
  --teal-dark: #087c78;
  --coral: #f05a4f;
  --gold: #f3bd3e;
  --green: #49a35b;
  --violet: #6157d8;
  --shadow: 0 18px 60px rgba(22, 21, 18, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(15, 181, 174, 0.08), transparent 24%),
    linear-gradient(180deg, #fbfaf6, #eeeeeb 70%, #f8f8f4);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 18px;
  background:
    linear-gradient(180deg, rgba(240, 90, 79, 0.12), transparent 26%),
    linear-gradient(135deg, #171410 0%, #262019 100%);
  color: #fdf7ec;
}

.brand {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--coral), var(--gold));
  color: #1a130d;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  min-width: 0;
}

.brand strong {
  font-size: 15px;
  line-height: 1.15;
}

.brand small {
  color: rgba(253, 247, 236, 0.68);
  font-size: 12px;
  margin-top: 3px;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-link {
  border-radius: var(--radius);
  color: rgba(253, 247, 236, 0.78);
  padding: 11px 12px;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-link:hover {
  transform: translateX(2px);
}

.sidebar-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  padding: 12px;
  color: rgba(253, 247, 236, 0.83);
  font-size: 14px;
}

.pulse {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  flex: 0 0 auto;
}

.pulse::after {
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  background: rgba(73, 163, 91, 0.24);
  content: "";
  animation: pulse 1.8s infinite;
}

main {
  display: grid;
  gap: 22px;
  align-content: start;
  padding: 28px;
  min-width: 0;
}

main > * {
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  min-height: 188px;
  border-radius: var(--radius);
  padding: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 22%, rgba(243, 189, 62, 0.34), transparent 24%),
    radial-gradient(circle at 72% 86%, rgba(15, 181, 174, 0.28), transparent 30%),
    linear-gradient(135deg, #241d17, #181511 62%, #332017);
  color: #fff8ec;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.topbar .eyebrow {
  color: rgba(255, 248, 236, 0.76);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: 38px;
  line-height: 1.04;
}

h2 {
  margin-bottom: 0;
  font-size: 26px;
  line-height: 1.12;
}

h3 {
  font-size: 20px;
  line-height: 1.16;
}

.topbar-actions,
.form-actions,
.arena-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-button,
.ghost-button,
.admin-card button,
.game-controls button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  padding: 0 15px;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.primary-button {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 12px 24px rgba(240, 90, 79, 0.24);
}

.creator-cta {
  max-width: 330px;
  min-height: 48px;
  padding-block: 8px;
  text-align: center;
  white-space: normal;
  line-height: 1.14;
  text-transform: uppercase;
}

.ghost-button {
  border: 1px solid rgba(22, 21, 18, 0.16);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.topbar .ghost-button {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #fff8ec;
}

.primary-button:hover,
.ghost-button:hover,
.admin-card button:hover,
.game-controls button:hover {
  transform: translateY(-1px);
}

.compact {
  min-height: 36px;
  padding-inline: 12px;
  font-size: 14px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 34px rgba(22, 21, 18, 0.06);
  padding: 22px;
  min-width: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.status-chip,
.price-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: var(--radius);
  padding: 0 11px;
  background: #ece8df;
  color: #312c25;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.price-chip {
  background: var(--ink);
  color: #fff;
}

.price-sale {
  display: inline-grid;
  min-height: 0;
  gap: 2px;
  align-items: center;
  padding: 8px 12px;
  text-align: right;
  line-height: 1.05;
}

.old-price {
  position: relative;
  color: rgba(255, 226, 157, 0.72);
}

.old-price::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  top: 50%;
  height: 2px;
  background: #c81916;
  transform: rotate(-9deg);
  box-shadow: 0 0 12px rgba(200, 25, 22, 0.65);
}

.price-sale em,
.sale-price-block em {
  color: #ff3b31;
  font-style: normal;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.price-sale small {
  color: #fff2d2;
  font-size: 11px;
}

.live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
  gap: 18px;
  min-width: 0;
}

.featured-match {
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(240px, 0.7fr);
  grid-template-rows: auto auto;
  gap: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #181512;
  color: #fff9ee;
  min-width: 0;
}

.match-stage {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(135deg, #1b1713, #332018);
}

.spotlight {
  position: absolute;
  top: 0;
  width: 42%;
  height: 84%;
  opacity: 0.62;
  clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%);
}

.spotlight.left {
  left: 6%;
  background: linear-gradient(180deg, rgba(15, 181, 174, 0.52), transparent);
}

.spotlight.right {
  right: 6%;
  background: linear-gradient(180deg, rgba(240, 90, 79, 0.55), transparent);
}

.stage-ring {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 20px;
  height: 88px;
  border: 3px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  transform: perspective(220px) rotateX(58deg);
}

.stage-avatar {
  position: absolute;
  bottom: 86px;
  width: 78px;
  height: 118px;
}

.stage-avatar::before,
.stage-avatar::after {
  position: absolute;
  content: "";
}

.stage-avatar::before {
  left: 19px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: inset 0 -8px rgba(0, 0, 0, 0.18);
}

.stage-avatar::after {
  left: 15px;
  top: 43px;
  width: 48px;
  height: 70px;
  border-radius: 24px 24px 10px 10px;
  background: currentColor;
}

.avatar-a {
  left: 27%;
  color: var(--teal);
}

.avatar-b {
  right: 27%;
  color: var(--coral);
  transform: scaleX(-1);
}

.match-copy {
  display: grid;
  align-content: center;
  padding: 22px 22px 8px 0;
}

.match-copy p {
  margin-bottom: 0;
  color: rgba(255, 249, 238, 0.72);
}

.vote-cta-card {
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 0.9fr);
  min-height: 236px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(40, 7, 6, 0.68)),
    url("assets/social-kombat-room.png") center / cover;
}

.vote-cta-visual {
  position: relative;
  min-height: 236px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 210, 109, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(200, 25, 22, 0.38), rgba(0, 0, 0, 0.25));
}

.vote-cta-visual::before {
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(255, 210, 109, 0.28);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 38px rgba(200, 25, 22, 0.35);
}

.vote-token {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 210, 109, 0.68);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffd26d;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 0 22px rgba(255, 210, 109, 0.22);
}

.token-one {
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  font-size: 24px;
}

.token-two {
  right: 14%;
  top: 24%;
  width: 64px;
  height: 64px;
  color: #9bf16e;
}

.token-three {
  left: 12%;
  bottom: 18%;
  padding: 12px 16px;
  color: #fff2d2;
}

.vote-cta-copy {
  gap: 10px;
  padding: 24px 24px 24px 0;
}

.vote-cta-copy h3 {
  margin: 0;
  color: #fff2d2;
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
}

.vote-cta-button {
  width: fit-content;
  padding: 15px 22px;
  font-size: 15px;
}

.match-label {
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
}

.match-stats {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  background: rgba(255, 255, 255, 0.12);
}

.match-stats div {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
}

dt {
  color: rgba(255, 249, 238, 0.62);
  font-size: 12px;
  font-weight: 750;
}

dd {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 900;
}

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

.metric-card {
  min-height: 132px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}

.metric-card span,
.admin-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-card strong,
.admin-card strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.metric-card small {
  color: var(--green);
  font-weight: 800;
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #f8f5ee;
}

.segment {
  min-height: 36px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  padding: 0 12px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
}

.segment:last-child {
  border-right: 0;
}

.segment.active {
  background: var(--ink);
  color: #fff;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 12px;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

td {
  font-weight: 760;
}

.rank-fighter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rank-dot,
.mini-avatar {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: inset 0 -5px rgba(0, 0, 0, 0.16);
}

.rank-form {
  display: inline-flex;
  gap: 4px;
}

.rank-form span {
  width: 18px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}

.rank-form .loss {
  background: var(--coral);
}

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

.promo-banner-panel {
  padding: 0;
  overflow: hidden;
}

.promo-banner-panel.is-hidden {
  display: none;
}

.promo-banner-card {
  position: relative;
  min-height: 260px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-radius: var(--radius);
  background: #070403;
}

.promo-banner-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-banner-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.32) 52%, rgba(0, 0, 0, 0.04)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent 64%);
}

.promo-banner-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
  display: grid;
  gap: 10px;
  padding: clamp(22px, 4vw, 44px);
}

.promo-banner-copy span {
  color: #ffd26d;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.promo-banner-copy h2 {
  color: #fff2d2;
  font-size: clamp(32px, 5vw, 66px);
  line-height: 0.95;
  text-transform: uppercase;
}

.promo-banner-copy p {
  color: #f8e9c9;
  font-weight: 750;
}

.replay-card,
.fighter-card,
.admin-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.replay-thumb {
  position: relative;
  min-height: 152px;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(15, 181, 174, 0.78), transparent 42%),
    linear-gradient(225deg, rgba(240, 90, 79, 0.82), transparent 46%),
    linear-gradient(180deg, #1c1713, #332017);
}

.replay-thumb.has-media {
  display: grid;
  place-items: center;
  max-height: 420px;
  background: #050404;
}

.replay-thumb.has-media::before,
.replay-thumb.has-media::after {
  display: none;
}

.replay-thumb video,
.replay-thumb img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
  border: 0;
}

.replay-media-card.media-portrait {
  max-width: 360px;
}

.replay-media-card.media-portrait .replay-thumb {
  min-height: 320px;
  aspect-ratio: 9 / 16;
}

.replay-media-card.media-landscape .replay-thumb {
  aspect-ratio: 16 / 9;
}

.replay-media-card.media-square .replay-thumb {
  aspect-ratio: 1;
}

.replay-card.media-missing .replay-thumb.has-media::before {
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #ffd26d;
  content: "File non disponibile";
  transform: translate(-50%, -50%);
}

.replay-thumb::before,
.replay-thumb::after {
  position: absolute;
  content: "";
}

.replay-thumb::before {
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%);
}

.replay-thumb::after {
  left: calc(50% - 5px);
  top: calc(50% - 10px);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid var(--coral);
}

.replay-card .card-body,
.fighter-card .card-body {
  padding: 14px;
}

.card-body h3 {
  margin-bottom: 7px;
  font-size: 17px;
}

.card-body p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.fighter-card {
  padding: 16px;
}

.fighter-card .portrait {
  width: 74px;
  height: 74px;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.86) 0 15%, transparent 16%),
    radial-gradient(circle at 50% 66%, currentColor 0 34%, transparent 35%),
    linear-gradient(135deg, #1b1713, #3a2a1f);
  color: var(--teal);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.fighter-card:nth-child(2n) .portrait {
  color: var(--coral);
}

.fighter-card:nth-child(3n) .portrait {
  color: var(--gold);
}

.fighter-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 0;
}

.fighter-card dt {
  color: var(--muted);
}

.fighter-card dd {
  color: var(--ink);
  font-size: 16px;
}

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

.section-note {
  max-width: 680px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.donation-notice {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  border: 1px solid rgba(215, 160, 57, 0.56);
  border-left: 5px solid var(--coral);
  border-radius: var(--radius);
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(200, 25, 22, 0.18), rgba(0, 0, 0, 0.24)),
    rgba(7, 5, 4, 0.88);
  color: #fff2d2;
}

.donation-notice strong {
  color: #ffd26d;
  font-size: 16px;
  text-transform: uppercase;
}

.donation-notice p {
  margin-bottom: 0;
  color: #f3dfb8;
  font-size: 14px;
  font-weight: 740;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 12px 12px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 181, 174, 0.18);
}

textarea {
  resize: vertical;
}

.wide {
  grid-column: 1 / -1;
}

.signup-result {
  min-height: 22px;
  margin-top: 14px;
  color: var(--green);
  font-weight: 850;
}

.arena-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

.match-console,
.match-feed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
  min-width: 0;
}

.versus-row,
.hud {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.player-tag {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.player-tag.right {
  justify-content: end;
}

.player-tag strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-avatar.coral,
.rank-dot.coral {
  background: var(--coral);
}

.mini-avatar.teal,
.rank-dot.teal {
  background: var(--teal);
}

.mini-avatar.gold,
.rank-dot.gold {
  background: var(--gold);
}

.versus {
  display: inline-grid;
  min-width: 50px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.health-shell {
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee7dc;
}

.health-shell span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 180ms ease;
}

.health-shell:last-child span {
  margin-left: auto;
  background: var(--coral);
}

.timer {
  display: grid;
  width: 50px;
  height: 38px;
  place-items: center;
  border-radius: var(--radius);
  background: #f8f1e4;
  color: var(--ink);
  font-weight: 950;
}

canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #15120f;
}

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

.control-cluster {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.game-controls button {
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  background: #f9f5ec;
  color: var(--ink);
  font-size: 13px;
  padding-inline: 8px;
  white-space: normal;
}

.control-cluster.right button {
  background: #fff0ee;
}

.arena-actions {
  margin-top: 12px;
}

.room-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 850;
}

.match-feed h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

#eventLog {
  display: grid;
  gap: 9px;
  max-height: 560px;
  margin: 0;
  padding-left: 20px;
  overflow: auto;
}

#eventLog li {
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
  color: var(--muted);
  font-size: 14px;
}

.admin-card {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.admin-card button {
  border: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
}

@keyframes pulse {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  70%,
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@media (max-width: 1180px) {
  .live-grid,
  .arena-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 960px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    z-index: 5;
    height: auto;
    padding: 14px;
  }

  .brand {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .nav-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .nav-link {
    flex: 0 0 auto;
  }

  .sidebar-status {
    display: none;
  }

  main {
    padding: 16px;
  }

  .topbar {
    display: grid;
    align-items: start;
    min-height: auto;
  }

  h1 {
    font-size: 30px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .topbar,
  .panel {
    padding: 16px;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .featured-match {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .match-stage {
    width: 100%;
    min-width: 0;
  }

  .match-copy {
    padding: 0 16px 4px;
  }

  .match-stats,
  .metric-grid,
  .signup-form,
  .game-controls,
  .versus-row,
  .hud {
    grid-template-columns: 1fr;
  }

  .timer,
  .versus {
    justify-self: center;
  }

  .replay-grid,
  .fighter-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .segmented {
    width: 100%;
    overflow-x: auto;
  }

  .segment {
    flex: 1 0 auto;
  }

  .control-cluster {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Social Kombat visual skin */
:root {
  --ink: #f8e9c9;
  --muted: #b8a27a;
  --line: rgba(218, 164, 57, 0.34);
  --paper: #070504;
  --panel: rgba(12, 9, 7, 0.92);
  --side: #050403;
  --teal: #158dc1;
  --teal-dark: #0b5d80;
  --coral: #c81916;
  --gold: #d7a039;
  --green: #78a84b;
  --violet: #7d6cf0;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.56);
}

body {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.9)),
    url("assets/social-kombat-room.png") center top / cover fixed;
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(204, 23, 18, 0.18), transparent 28%, rgba(215, 160, 57, 0.14)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 96px);
  content: "";
  pointer-events: none;
}

.sidebar {
  border-right: 1px solid rgba(215, 160, 57, 0.32);
  background:
    linear-gradient(180deg, rgba(200, 25, 22, 0.2), transparent 31%),
    linear-gradient(135deg, #030202 0%, #120d09 100%);
  box-shadow: 16px 0 44px rgba(0, 0, 0, 0.44);
}

.brand-mark {
  border-color: rgba(215, 160, 57, 0.8);
  background:
    radial-gradient(circle at 50% 38%, #f8d578 0 18%, transparent 19%),
    linear-gradient(135deg, #0b0907, #2b1c0d);
  color: var(--gold);
  box-shadow:
    inset 0 0 0 1px rgba(255, 229, 151, 0.18),
    0 0 24px rgba(215, 160, 57, 0.22);
}

.nav-link {
  border: 1px solid transparent;
  color: rgba(248, 233, 201, 0.72);
}

.nav-link:hover,
.nav-link.active {
  border-color: rgba(215, 160, 57, 0.34);
  background: rgba(200, 25, 22, 0.2);
  color: #fff7e4;
}

.sidebar-status,
.status-chip,
.price-chip,
.versus,
.timer {
  border: 1px solid rgba(215, 160, 57, 0.38);
  background: rgba(8, 6, 5, 0.8);
  color: #f8e9c9;
}

.pulse {
  background: var(--coral);
}

.pulse::after {
  background: rgba(200, 25, 22, 0.22);
}

.topbar {
  min-height: 360px;
  align-items: end;
  border: 1px solid rgba(215, 160, 57, 0.42);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.72)),
    linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, 0.78)),
    url("assets/social-kombat-room.png") center / cover;
  box-shadow: var(--shadow);
}

.topbar::after {
  display: block;
  flex: 0 0 330px;
  width: 330px;
  height: 94px;
  border: 1px solid rgba(215, 160, 57, 0.5);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(200, 25, 22, 0.86), rgba(200, 25, 22, 0.08)),
    rgba(0, 0, 0, 0.5);
  content: "SOCIAL KOMBAT";
  color: #d7a039;
  font-size: 27px;
  font-weight: 950;
  line-height: 94px;
  text-align: center;
  text-shadow: 0 2px 0 #000, 0 0 24px rgba(215, 160, 57, 0.34);
  white-space: nowrap;
}

.topbar .eyebrow,
.eyebrow {
  color: var(--gold);
}

h1 {
  max-width: 580px;
  color: #fff2d2;
  font-size: 54px;
  text-shadow: 0 2px 0 #000, 0 0 32px rgba(200, 25, 22, 0.3);
  text-transform: uppercase;
}

h2,
h3 {
  color: #fff2d2;
}

.panel {
  border-color: rgba(215, 160, 57, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(10, 8, 6, 0.92);
  box-shadow: var(--shadow);
}

.ghost-button {
  border-color: rgba(215, 160, 57, 0.42);
  background: rgba(0, 0, 0, 0.38);
  color: #ffe9b5;
}

.primary-button {
  border: 1px solid rgba(255, 214, 118, 0.34);
  background: linear-gradient(180deg, #e12b22, #9d0f0d);
  color: #fff7e8;
  box-shadow: 0 0 24px rgba(200, 25, 22, 0.32);
}

.featured-match {
  border-color: rgba(215, 160, 57, 0.46);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.35) 42%, rgba(0, 0, 0, 0.82)),
    url("assets/social-kombat-room.png") center / cover;
}

.match-stage {
  min-height: 340px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.36)),
    url("assets/social-kombat-room.png") center / cover;
}

.stage-ring {
  border-color: rgba(215, 160, 57, 0.66);
  box-shadow: 0 0 44px rgba(215, 160, 57, 0.28);
}

.stage-avatar::before,
.stage-avatar::after {
  border: 1px solid rgba(255, 229, 151, 0.32);
}

.match-label {
  border-color: rgba(215, 160, 57, 0.56);
  background: rgba(0, 0, 0, 0.46);
  color: #ffd26d;
  text-transform: uppercase;
}

.match-copy p,
.card-body p,
#eventLog li,
.room-status,
.meta-row,
label,
.metric-card span,
.admin-card span {
  color: var(--muted);
}

.metric-card,
.replay-card,
.fighter-card,
.admin-card,
.match-console,
.match-feed {
  border-color: rgba(215, 160, 57, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(7, 5, 4, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 229, 151, 0.04);
}

.metric-card strong,
.admin-card strong,
td,
.fighter-card dd {
  color: #fff2d2;
}

.metric-card small {
  color: #80c45d;
}

.segmented {
  border-color: rgba(215, 160, 57, 0.34);
  background: rgba(0, 0, 0, 0.4);
}

.segment {
  border-right-color: rgba(215, 160, 57, 0.26);
  color: var(--muted);
}

.segment.active {
  background: rgba(200, 25, 22, 0.82);
  color: #fff4da;
}

th,
td {
  border-bottom-color: rgba(215, 160, 57, 0.22);
}

th {
  color: #d6ba75;
}

.replay-thumb {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.5)),
    url("assets/social-kombat-room.png") center / cover;
}

.replay-card:nth-child(2n) .replay-thumb {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.48)),
    url("assets/social-kombat-room.png") center / cover;
}

.replay-card:nth-child(3n) .replay-thumb {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.48)),
    url("assets/social-kombat-room.png") center / cover;
}

.replay-thumb::before {
  background: rgba(255, 226, 157, 0.92);
  box-shadow: 0 0 20px rgba(215, 160, 57, 0.55);
}

.replay-thumb::after {
  border-left-color: #9d0f0d;
}

.roster-strip {
  position: relative;
  min-height: 260px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid rgba(215, 160, 57, 0.36);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.2) 52%, rgba(0, 0, 0, 0.72)),
    url("assets/social-kombat-room.png") center / cover;
}

.roster-title {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(215, 160, 57, 0.46);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.68);
  text-transform: uppercase;
}

.roster-title span {
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
}

.roster-title strong {
  color: #ffd26d;
  font-size: 24px;
  line-height: 1;
}

.fighter-card {
  position: relative;
  min-height: 242px;
}

.fighter-card::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(215, 160, 57, 0.22);
  border-radius: 6px;
  content: "";
  pointer-events: none;
}

.fighter-card .portrait {
  border: 1px solid rgba(215, 160, 57, 0.48);
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 231, 175, 0.88) 0 15%, transparent 16%),
    radial-gradient(circle at 50% 66%, currentColor 0 34%, transparent 35%),
    linear-gradient(135deg, #070504, #2e2112);
}

.signup-panel {
  background:
    linear-gradient(90deg, rgba(10, 8, 6, 0.95), rgba(10, 8, 6, 0.83)),
    url("assets/social-kombat-room.png") right center / auto 100% no-repeat,
    rgba(10, 8, 6, 0.92);
}

input,
select,
textarea {
  border-color: rgba(215, 160, 57, 0.34);
  background: rgba(0, 0, 0, 0.48);
  color: #fff4da;
}

input::placeholder,
textarea::placeholder {
  color: rgba(248, 233, 201, 0.48);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(215, 160, 57, 0.2);
}

.arena-panel {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.88)),
    url("assets/social-kombat-room.png") center / cover;
}

.match-console {
  background: rgba(5, 4, 3, 0.82);
  backdrop-filter: blur(2px);
}

canvas {
  border: 1px solid rgba(215, 160, 57, 0.4);
  box-shadow: 0 0 34px rgba(0, 0, 0, 0.42);
}

.health-shell {
  border: 1px solid rgba(215, 160, 57, 0.28);
  background: #21150d;
}

.game-controls button {
  border-color: rgba(215, 160, 57, 0.34);
  background: rgba(0, 0, 0, 0.54);
  color: #ffe9b5;
}

.control-cluster.right button {
  background: rgba(124, 15, 13, 0.45);
}

.admin-card button {
  border-color: rgba(215, 160, 57, 0.34);
  background: rgba(200, 25, 22, 0.78);
  color: #fff4da;
}

#eventLog li {
  border-bottom-color: rgba(215, 160, 57, 0.2);
}

@media (max-width: 960px) {
  .topbar {
    min-height: 300px;
  }

  .topbar::after {
    flex-basis: auto;
    width: 100%;
  }

  h1 {
    font-size: 38px;
  }
}

@media (max-width: 720px) {
  .topbar {
    min-height: 340px;
  }

  .topbar::after {
    height: 68px;
    font-size: 24px;
    line-height: 68px;
  }

  h1 {
    font-size: 32px;
  }

  .roster-strip {
    min-height: 190px;
  }
}

.gateway-copy {
  max-width: 760px;
  color: var(--muted);
  margin-bottom: 0;
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.challenge-card {
  border: 1px solid rgba(215, 160, 57, 0.34);
  border-radius: var(--radius);
  background: rgba(7, 5, 4, 0.88);
  padding: 16px;
}

.challenge-card h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.challenge-form {
  display: grid;
  gap: 12px;
}

.challenge-inbox {
  min-height: 132px;
  border: 1px solid rgba(215, 160, 57, 0.22);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(0, 0, 0, 0.28);
}

.challenge-inbox p {
  color: var(--muted);
  margin-bottom: 0;
}

.challenge-request {
  margin-bottom: 8px;
}

.challenge-request button {
  display: grid;
  width: 100%;
  gap: 4px;
  border: 1px solid rgba(215, 160, 57, 0.24);
  border-radius: 6px;
  padding: 9px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff2d2;
  text-align: left;
}

.challenge-request.active button {
  border-color: rgba(255, 210, 109, 0.72);
  box-shadow: 0 0 18px rgba(200, 25, 22, 0.18);
}

.challenge-request span {
  color: rgba(248, 233, 201, 0.68);
  font-size: 12px;
}

.challenge-request em {
  color: #89d044;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.reminder-tools {
  align-items: center;
}

.challenge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.challenge-actions button:disabled,
.arena-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.move-list dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.move-list dt {
  color: var(--gold);
}

.move-list dd {
  color: #fff2d2;
  font-size: 15px;
  line-height: 1.35;
}

.game-locked .match-console {
  position: relative;
}

.game-locked .match-console::after {
  position: absolute;
  inset: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(215, 160, 57, 0.34);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.68);
  color: #ffd26d;
  content: "SFIDA NON ACCETTATA";
  font-size: 26px;
  font-weight: 950;
  text-align: center;
  z-index: 3;
}

.mobile-fight-pad {
  display: none;
}

.control-cluster {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-body {
  min-height: 100vh;
}

.influencer-body {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.94)),
    url("assets/social-kombat-room.png") center / cover fixed;
}

.admin-shell {
  display: block;
  max-width: none;
  min-height: 100vh;
  padding: 24px;
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(280px, 0.9fr);
  gap: 28px;
  width: min(920px, calc(100vw - 32px));
  margin: 8vh auto 0;
  align-items: center;
}

.influencer-login {
  grid-template-columns: minmax(240px, 0.62fr) minmax(320px, 1fr);
  width: min(1120px, calc(100vw - 32px));
  margin-top: 5vh;
}

.admin-brand {
  align-self: start;
}

.portal-auth-copy {
  display: grid;
  gap: 22px;
}

.admin-login-form {
  display: grid;
  gap: 14px;
}

.portal-auth-stack {
  display: grid;
  gap: 14px;
}

.reset-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-auth-card {
  border: 1px solid rgba(215, 160, 57, 0.26);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(0, 0, 0, 0.28);
}

.reset-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.reset-steps span {
  display: grid;
  place-items: center;
  min-height: 32px;
  border: 1px solid rgba(215, 160, 57, 0.28);
  border-radius: 6px;
  color: var(--muted);
  font-weight: 950;
}

.reset-steps span.active {
  border-color: rgba(200, 25, 22, 0.78);
  background: rgba(200, 25, 22, 0.22);
  color: #fff2d2;
}

.reset-step {
  display: none;
  gap: 12px;
}

.reset-step.active {
  display: grid;
}

.portal-form-grid,
.portal-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.portal-overview {
  background:
    linear-gradient(90deg, rgba(10, 8, 6, 0.95), rgba(10, 8, 6, 0.7)),
    url("assets/social-kombat-room.png") center / cover;
}

.portal-profile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-status-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  align-content: space-between;
  border: 1px solid rgba(215, 160, 57, 0.32);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(0, 0, 0, 0.62);
}

.portal-status-card span,
.portal-status-card small {
  color: var(--muted);
  font-weight: 800;
}

.portal-status-card strong {
  color: #fff2d2;
  font-size: 28px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.admin-login-form h1,
.admin-topline h1 {
  font-size: 38px;
}

.login-error {
  min-height: 22px;
  margin: 0;
  color: #ff7d73;
  font-weight: 850;
}

.is-hidden {
  display: none !important;
}

.admin-dashboard {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 20px;
}

.admin-nav {
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-tabs .nav-link {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  font: inherit;
}

.admin-nav-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.admin-content {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.admin-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

#overview.active {
  display: block;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(215, 160, 57, 0.24);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(0, 0, 0, 0.24);
}

.admin-row span,
.admin-row small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.admin-row strong {
  display: block;
  color: #fff2d2;
  font-size: 17px;
}

.admin-row em {
  border: 1px solid rgba(215, 160, 57, 0.34);
  border-radius: var(--radius);
  padding: 7px 10px;
  color: #ffd26d;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.row-actions button {
  min-height: 34px;
  border: 1px solid rgba(215, 160, 57, 0.34);
  border-radius: var(--radius);
  background: rgba(200, 25, 22, 0.78);
  color: #fff4da;
  cursor: pointer;
  font-weight: 850;
  padding: 0 11px;
}

.game-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 0;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.96)),
    url("assets/social-kombat-room.png") center / cover;
}

.game-fullscreen .match-console {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  overflow: hidden;
}

.game-fullscreen canvas {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 210px);
  object-fit: contain;
}

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

@media (max-width: 960px) {
  .admin-shell {
    padding: 16px;
  }

  .admin-login,
  .influencer-login,
  .admin-dashboard {
    grid-template-columns: 1fr;
  }

  .admin-nav {
    position: static;
    height: auto;
  }

  .admin-topline {
    display: grid;
    align-items: start;
  }

  .admin-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .row-actions {
    justify-content: start;
  }
}

@media (max-width: 760px) {
  .creator-cta {
    max-width: 100%;
    width: 100%;
  }

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

  .game-controls {
    display: none;
  }

  .mobile-fight-pad {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
  }

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

  .touch-zone button {
    min-height: 48px;
    border: 1px solid rgba(215, 160, 57, 0.4);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.62);
    color: #ffe9b5;
    font-weight: 900;
  }

  .touch-zone.attacks button {
    background: rgba(200, 25, 22, 0.72);
  }

  .game-fullscreen {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .game-fullscreen .match-feed {
    display: none;
  }

  .game-fullscreen .match-console {
    min-height: calc(100vh - 16px);
    padding: 8px;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .game-fullscreen .versus-row {
    margin-bottom: 6px;
  }

  .game-fullscreen .hud {
    grid-template-columns: 1fr 48px 1fr;
    margin-bottom: 6px;
  }

  .game-fullscreen canvas {
    height: calc(100vh - 130px);
    max-height: none;
  }

  .game-fullscreen .arena-actions {
    position: absolute;
    top: auto;
    right: 12px;
    bottom: 140px;
    z-index: 6;
    display: flex;
    justify-content: end;
    max-width: 220px;
    gap: 6px;
    padding-bottom: 0;
  }

  .game-fullscreen #startGame,
  .game-fullscreen #saveResult {
    display: none;
  }

  .game-fullscreen .arena-actions button {
    min-height: 32px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .game-fullscreen .mobile-fight-pad {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    grid-template-columns: 0.8fr 1fr;
    pointer-events: none;
  }

  .game-fullscreen .touch-zone button {
    min-height: 54px;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
  }

  .game-fullscreen .touch-zone.attacks button {
    background: rgba(200, 25, 22, 0.78);
  }

}

/* Tournament bracket and interaction layer */
.tournament-board {
  position: relative;
  min-width: 0;
}

.bracket-scroll {
  overflow-x: auto;
  overflow-y: visible;
  padding: 8px 8px 44px;
}

.bracket-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(236px, 1fr));
  gap: 52px;
  min-width: 1120px;
  align-items: stretch;
}

.round-column {
  min-width: 0;
}

.round-column h3 {
  position: sticky;
  left: 0;
  z-index: 2;
  width: fit-content;
  margin-bottom: 12px;
  border: 1px solid rgba(215, 160, 57, 0.34);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.62);
  color: #ffd26d;
  font-size: 15px;
  text-transform: uppercase;
}

.round-stack {
  display: grid;
  min-height: 940px;
}

.round-1 .round-stack {
  grid-template-rows: repeat(8, minmax(102px, 1fr));
  gap: 14px;
}

.round-2 .round-stack {
  grid-template-rows: repeat(4, minmax(132px, 1fr));
  gap: 72px;
  padding-block: 58px;
}

.round-3 .round-stack {
  grid-template-rows: repeat(2, minmax(160px, 1fr));
  gap: 218px;
  padding-block: 142px;
}

.round-4 .round-stack {
  grid-template-rows: minmax(210px, 1fr);
  padding-block: 358px;
}

.bracket-match {
  position: relative;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid rgba(215, 160, 57, 0.28);
  border-radius: var(--radius);
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(0, 0, 0, 0.52);
  box-shadow: inset 0 0 0 1px rgba(255, 229, 151, 0.04);
}

.bracket-match.complete {
  border-color: rgba(79, 224, 255, 0.52);
  box-shadow:
    0 0 24px rgba(21, 141, 193, 0.22),
    inset 0 0 0 1px rgba(255, 229, 151, 0.08);
}

.bracket-match.complete::after {
  position: absolute;
  left: calc(100% + 1px);
  top: 50%;
  width: 52px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #3eefff, #ffd26d, #c81916, transparent);
  background-size: 220% 100%;
  box-shadow:
    0 0 12px rgba(62, 239, 255, 0.82),
    0 0 24px rgba(215, 160, 57, 0.46);
  content: "";
  animation: energyFlow 1.05s linear infinite;
}

.round-column:last-child .bracket-match::after {
  display: none;
}

.match-ribbon {
  width: fit-content;
  border: 1px solid rgba(215, 160, 57, 0.3);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.44);
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fighter-slot {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(215, 160, 57, 0.22);
  border-radius: var(--radius);
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.38);
  color: #fff2d2;
  text-align: left;
}

button.fighter-slot {
  cursor: pointer;
}

.fighter-slot.winner {
  border-color: rgba(62, 239, 255, 0.58);
  background:
    linear-gradient(90deg, rgba(21, 141, 193, 0.28), rgba(200, 25, 22, 0.18)),
    rgba(0, 0, 0, 0.52);
  box-shadow: 0 0 18px rgba(21, 141, 193, 0.2);
}

.fighter-slot.pending {
  color: rgba(248, 233, 201, 0.46);
}

.bracket-avatar,
.portal-avatar-preview {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(215, 160, 57, 0.48);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 231, 175, 0.9) 0 16%, transparent 17%),
    radial-gradient(circle at 50% 70%, rgba(21, 141, 193, 0.88) 0 34%, transparent 35%),
    linear-gradient(135deg, #070504, #2e2112);
  background-position: center;
  background-size: cover;
  color: #ffd26d;
  font-size: 12px;
  font-weight: 950;
}

.portal-avatar-preview {
  width: 74px;
  height: 74px;
  margin-block: 6px;
  font-size: 18px;
}

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

.slot-copy {
  min-width: 0;
}

.slot-copy strong,
.slot-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-copy strong {
  font-size: 14px;
  line-height: 1.1;
}

.slot-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.match-versus {
  justify-self: center;
  color: rgba(215, 160, 57, 0.72);
  font-size: 10px;
  font-weight: 950;
}

.video-popover {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  z-index: 30;
  display: grid;
  width: 230px;
  gap: 9px;
  border: 1px solid rgba(215, 160, 57, 0.42);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(5, 4, 3, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.58);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-8px) scale(0.98);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.has-preview:hover .video-popover,
.has-preview:focus-visible .video-popover {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1);
}

.preview-screen {
  position: relative;
  display: grid;
  min-height: 118px;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(62, 239, 255, 0.32), transparent 42%),
    linear-gradient(225deg, rgba(200, 25, 22, 0.54), transparent 48%),
    url("assets/social-kombat-room.png") center / cover;
}

.preview-screen::after {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 7px);
  content: "";
  mix-blend-mode: screen;
  opacity: 0.42;
  animation: scanVideo 900ms linear infinite;
}

.play-mark {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 226, 157, 0.92);
  box-shadow: 0 0 26px rgba(215, 160, 57, 0.6);
}

.play-mark::after {
  position: absolute;
  left: 18px;
  top: 13px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #9d0f0d;
  content: "";
}

.preview-copy strong,
.preview-copy small {
  display: block;
}

.preview-copy strong {
  color: #fff2d2;
  font-size: 14px;
}

.preview-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.locked-select {
  border-color: rgba(62, 239, 255, 0.58);
  background:
    linear-gradient(90deg, rgba(21, 141, 193, 0.24), rgba(0, 0, 0, 0.48)),
    rgba(0, 0, 0, 0.48);
  pointer-events: none;
}

.combat-cursor-enabled,
.combat-cursor-enabled * {
  cursor: none !important;
}

.combat-cursor {
  --x: -80px;
  --y: -80px;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 210, 109, 0.86);
  border-radius: 50%;
  box-shadow:
    0 0 16px rgba(215, 160, 57, 0.54),
    inset 0 0 12px rgba(62, 239, 255, 0.22);
  pointer-events: none;
  transform: translate(calc(var(--x) - 17px), calc(var(--y) - 17px));
  transition:
    width 140ms ease,
    height 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.combat-cursor span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3eefff;
  box-shadow: 0 0 12px rgba(62, 239, 255, 0.8);
}

.combat-cursor.is-hovering {
  width: 48px;
  height: 48px;
  border-color: rgba(62, 239, 255, 0.9);
  box-shadow:
    0 0 22px rgba(62, 239, 255, 0.5),
    inset 0 0 16px rgba(200, 25, 22, 0.24);
  transform: translate(calc(var(--x) - 24px), calc(var(--y) - 24px));
}

.combat-cursor.is-clicking {
  width: 24px;
  height: 24px;
  transform: translate(calc(var(--x) - 12px), calc(var(--y) - 12px));
}

@keyframes energyFlow {
  to {
    background-position: -220% 0;
  }
}

@keyframes scanVideo {
  to {
    transform: translateY(7px);
  }
}

@media (max-width: 760px) {
  .bracket-scroll {
    margin-inline: -8px;
    padding-inline: 8px;
  }

  .bracket-grid {
    min-width: 1040px;
    gap: 44px;
  }

  .video-popover {
    left: 0;
    top: calc(100% + 8px);
    transform: translateY(0) scale(0.98);
  }

  .has-preview:hover .video-popover,
  .has-preview:focus-visible .video-popover {
    transform: translateY(0) scale(1);
  }
}

/* Vertical tournament bracket correction */
.tournament-board {
  overflow: visible;
}

.bracket-scroll {
  overflow: visible;
  padding: 0;
}

.bracket-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  min-width: 0;
  width: 100%;
  align-items: stretch;
}

.round-band {
  position: relative;
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid rgba(215, 160, 57, 0.26);
  border-radius: var(--radius);
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(21, 141, 193, 0.08), transparent 40%, rgba(200, 25, 22, 0.08)),
    rgba(0, 0, 0, 0.28);
}

.round-band:not(:last-child) {
  margin-bottom: 18px;
}

.round-band.has-complete:not(:last-child)::after {
  position: absolute;
  left: 50%;
  bottom: -39px;
  width: 5px;
  height: 39px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, #3eefff, #ffd26d, #c81916, transparent);
  background-size: 100% 240%;
  box-shadow:
    0 0 14px rgba(62, 239, 255, 0.78),
    0 0 30px rgba(215, 160, 57, 0.34);
  content: "";
  transform: translateX(-50%);
  animation: energyDrop 1.1s linear infinite;
}

.round-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.round-heading h3,
.round-column h3 {
  position: static;
  width: auto;
  margin: 0;
  border: 1px solid rgba(215, 160, 57, 0.34);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.62);
  color: #ffd26d;
  font-size: 15px;
  text-transform: uppercase;
}

.round-heading span {
  border: 1px solid rgba(215, 160, 57, 0.24);
  border-radius: var(--radius);
  padding: 7px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.round-stack,
.round-1 .round-stack,
.round-2 .round-stack,
.round-3 .round-stack,
.round-4 .round-stack {
  display: grid;
  grid-template-rows: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-height: 0;
  padding-block: 0;
}

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

.round-4 .round-stack {
  grid-template-columns: minmax(0, 0.58fr);
  justify-content: center;
}

.bracket-match {
  min-height: 0;
  align-content: start;
}

.bracket-match.complete::after {
  left: 50%;
  top: auto;
  bottom: -19px;
  width: 4px;
  height: 19px;
  background: linear-gradient(180deg, transparent, #3eefff, #ffd26d, transparent);
  background-size: 100% 220%;
  transform: translateX(-50%);
  animation: energyDrop 900ms linear infinite;
}

.round-band:last-child .bracket-match::after {
  display: none;
}

.video-popover {
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%) translateY(-8px) scale(0.98);
}

.has-preview:hover .video-popover,
.has-preview:focus-visible .video-popover {
  transform: translateX(-50%) translateY(0) scale(1);
}

@keyframes energyDrop {
  to {
    background-position: 0 240%;
  }
}

@media (max-width: 1180px) {
  .round-stack,
  .round-1 .round-stack,
  .round-2 .round-stack,
  .round-3 .round-stack,
  .round-4 .round-stack {
    grid-template-columns: 1fr;
  }

  .round-4 .round-stack {
    justify-content: stretch;
  }
}

@media (max-width: 760px) {
  .bracket-scroll {
    margin-inline: 0;
    overflow: visible;
    padding-inline: 0;
  }

  .bracket-grid {
    min-width: 0;
    gap: 30px;
  }

  .round-band {
    padding: 12px;
  }

  .round-heading {
    display: grid;
    align-items: start;
  }

  .fighter-slot {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .bracket-avatar {
    width: 38px;
    height: 38px;
  }

  .video-popover {
    width: min(230px, calc(100vw - 70px));
  }
}

/* Reference dashboard skin */
body:not(.admin-body) {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.72)),
    url("assets/social-kombat-room.png") center / cover fixed;
  color: #f7ead0;
}

body:not(.admin-body)::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 62% 8%, rgba(201, 25, 22, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(3, 2, 2, 0.28), #050403 78%);
  content: "";
}

body:not(.admin-body) .app-shell {
  grid-template-columns: 288px minmax(0, 1fr);
  gap: 0;
  min-height: 100vh;
}

body:not(.admin-body) .sidebar {
  gap: 34px;
  padding: 38px 20px 24px;
  background:
    linear-gradient(180deg, rgba(9, 7, 5, 0.98), rgba(0, 0, 0, 0.94)),
    radial-gradient(circle at 50% 72%, rgba(215, 160, 57, 0.12), transparent 28%);
  border-right: 1px solid rgba(215, 160, 57, 0.24);
}

body:not(.admin-body) .brand {
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
}

body:not(.admin-body) .brand-mark {
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 50%;
  background: url("assets/social-kombat-logo.png") center / contain no-repeat;
  color: transparent;
  box-shadow: 0 0 22px rgba(215, 160, 57, 0.18);
}

body:not(.admin-body) .brand strong {
  color: #d7a039;
  font-size: 27px;
  font-weight: 950;
  line-height: 0.9;
  text-transform: uppercase;
}

body:not(.admin-body) .brand small {
  margin-top: 12px;
  color: #d7a039;
  font-size: 14px;
}

body:not(.admin-body) .nav-list {
  gap: 10px;
}

body:not(.admin-body) .nav-link {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 16px 0 58px;
  color: #f1dfbd;
  font-size: 17px;
}

body:not(.admin-body) .nav-link::before {
  position: absolute;
  left: 20px;
  top: 50%;
  width: 22px;
  height: 22px;
  border: 2px solid #d7a039;
  border-radius: 6px;
  content: "";
  transform: translateY(-50%);
}

body:not(.admin-body) .nav-link:hover,
body:not(.admin-body) .nav-link.active {
  border-color: rgba(200, 25, 22, 0.8);
  background:
    linear-gradient(90deg, rgba(200, 25, 22, 0.42), rgba(0, 0, 0, 0.22)),
    rgba(255, 255, 255, 0.02);
  color: #fff7e8;
  box-shadow:
    inset 4px 0 0 #c81916,
    0 0 32px rgba(200, 25, 22, 0.22);
  transform: none;
}

body:not(.admin-body) .sidebar-status {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin-top: auto;
  border-color: rgba(215, 160, 57, 0.42);
  background: rgba(0, 0, 0, 0.42);
  padding: 18px;
}

body:not(.admin-body) .sidebar-status strong,
body:not(.admin-body) .sidebar-status small {
  display: block;
}

body:not(.admin-body) .sidebar-status strong {
  color: #fff2d2;
}

body:not(.admin-body) .sidebar-status small {
  margin-top: 10px;
  color: #cbb68a;
  font-size: 13px;
}

body:not(.admin-body) main {
  gap: 10px;
  padding: 0 8px 18px;
}

body:not(.admin-body) .topbar {
  position: relative;
  min-height: 304px;
  align-items: end;
  border: 1px solid rgba(215, 160, 57, 0.58);
  border-radius: 7px;
  padding: 34px 42px 20px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.36) 48%, rgba(0, 0, 0, 0.04)),
    url("assets/social-kombat-room.png") center / cover;
  box-shadow: none;
}

body:not(.admin-body) .topbar::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 38%, rgba(0, 0, 0, 0.42));
  content: "";
  pointer-events: none;
}

body:not(.admin-body) .topbar > * {
  position: relative;
  z-index: 1;
}

body:not(.admin-body) .topbar .eyebrow {
  color: #ffd26d;
}

body:not(.admin-body) h1 {
  max-width: 520px;
  color: #f5efe5;
  font-size: 64px;
  font-weight: 950;
  line-height: 0.94;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.32);
}

body:not(.admin-body) h1::first-line {
  color: #fff;
}

body:not(.admin-body) .panel {
  border: 1px solid rgba(215, 160, 57, 0.46);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    rgba(4, 3, 3, 0.82);
  box-shadow: none;
  padding: 18px;
}

body:not(.admin-body) .topbar-actions {
  align-self: end;
}

body:not(.admin-body) .primary-button,
body:not(.admin-body) .ghost-button,
body:not(.admin-body) .admin-card button {
  border: 1px solid rgba(215, 160, 57, 0.48);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.46);
  color: #fff2d2;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 226, 157, 0.05);
}

body:not(.admin-body) .primary-button {
  border-color: rgba(255, 96, 78, 0.82);
  background: linear-gradient(180deg, rgba(223, 38, 32, 0.95), rgba(120, 12, 11, 0.92));
  box-shadow: 0 0 24px rgba(200, 25, 22, 0.34);
}

body:not(.admin-body) .section-heading {
  margin-bottom: 10px;
}

body:not(.admin-body) .eyebrow {
  color: #ffd26d;
  font-size: 12px;
}

body:not(.admin-body) h2 {
  color: #fff2d2;
  font-size: 24px;
  font-weight: 950;
}

body:not(.admin-body) .live-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr);
  gap: 12px;
}

body:not(.admin-body) .featured-match {
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 0;
  min-height: 214px;
  border-color: rgba(215, 160, 57, 0.42);
  background: rgba(0, 0, 0, 0.76);
}

body:not(.admin-body) .vote-cta-card {
  grid-template-columns: minmax(190px, 0.72fr) minmax(260px, 1fr);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(64, 8, 7, 0.58)),
    url("assets/social-kombat-room.png") center / cover;
}

body:not(.admin-body) .vote-cta-visual {
  min-height: 214px;
}

body:not(.admin-body) .match-stage {
  min-height: 166px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.05)),
    url("assets/social-kombat-room.png") center 54% / cover;
}

body:not(.admin-body) .stage-ring {
  left: 20%;
  right: 10%;
  bottom: 20px;
  height: 56px;
}

body:not(.admin-body) .stage-avatar {
  bottom: 44px;
  width: 54px;
  height: 84px;
}

body:not(.admin-body) .stage-avatar::before {
  left: 14px;
  width: 28px;
  height: 28px;
}

body:not(.admin-body) .stage-avatar::after {
  left: 10px;
  top: 31px;
  width: 36px;
  height: 52px;
}

body:not(.admin-body) .avatar-a {
  left: 28%;
}

body:not(.admin-body) .avatar-b {
  right: 18%;
}

body:not(.admin-body) .match-copy {
  padding: 22px 16px;
}

body:not(.admin-body) .match-copy h3 {
  margin-bottom: 10px;
  color: #fff2d2;
  font-size: 22px;
  line-height: 1.08;
}

body:not(.admin-body) .vote-cta-copy {
  padding: 24px 20px 24px 0;
}

body:not(.admin-body) .vote-cta-copy h3 {
  font-size: 34px;
}

body:not(.admin-body) .match-copy p strong,
body:not(.admin-body) .match-stats dd:last-child {
  color: #ffd26d;
}

body:not(.admin-body) .match-stats {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(215, 160, 57, 0.3);
  background: rgba(0, 0, 0, 0.72);
}

body:not(.admin-body) .match-stats div {
  display: grid;
  grid-template-columns: 1fr;
  padding: 11px 22px;
  background: transparent;
}

body:not(.admin-body) .metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body:not(.admin-body) .metric-card {
  min-height: 102px;
  border-color: rgba(215, 160, 57, 0.42);
  background: rgba(5, 4, 3, 0.78);
}

body:not(.admin-body) .metric-card strong {
  color: #fff2d2;
  font-size: 28px;
}

body:not(.admin-body) .metric-card small {
  color: #89d044;
}

body:not(.admin-body) .roster-panel {
  padding: 12px 16px 16px;
}

.roster-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.roster-heading h2 {
  color: #d7a039;
  font-size: 18px;
  text-transform: uppercase;
}

.roster-heading span {
  color: #cdb98d;
  font-size: 14px;
  font-weight: 800;
}

body:not(.admin-body) .fighter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
}

body:not(.admin-body) .fighter-card {
  position: relative;
  min-height: 252px;
  overflow: hidden;
  border-color: rgba(215, 160, 57, 0.56);
  border-radius: 5px;
  padding: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(200, 25, 22, 0.32), transparent 36%),
    #050403;
}

body:not(.admin-body) .fighter-card::before {
  inset: 7px;
  border-color: rgba(215, 160, 57, 0.28);
}

body:not(.admin-body) .fighter-card .portrait {
  width: 100%;
  height: 252px;
  margin: 0;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  padding: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(215, 160, 57, 0.28), transparent 28%),
    linear-gradient(180deg, rgba(200, 25, 22, 0.2), transparent),
    #080504;
}

body:not(.admin-body) .fighter-card .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 220ms ease, filter 220ms ease;
}

body:not(.admin-body) .fighter-card:hover .portrait img,
body:not(.admin-body) .fighter-card .portrait:focus-visible img {
  filter: saturate(1.1) contrast(1.08);
  transform: scale(1.035);
}

body:not(.admin-body) .fighter-card .portrait span {
  display: grid;
  height: 100%;
  place-items: center;
  color: #ffd26d;
  font-size: 30px;
  font-weight: 950;
}

.fighter-nameplate {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(215, 160, 57, 0.54);
  border-radius: 4px;
  padding: 8px 8px;
  background: rgba(0, 0, 0, 0.76);
}

.fighter-nameplate strong {
  min-width: 0;
  color: #d7a039;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.08;
  text-transform: uppercase;
  white-space: normal;
}

.fighter-nameplate span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(215, 160, 57, 0.7);
  border-radius: 50%;
  color: #ffd26d;
  font-size: 9px;
  font-weight: 950;
}

body:not(.admin-body) .fighter-card .card-body {
  display: none;
}

body:not(.admin-body) .fighter-card .card-body p {
  display: none;
}

body:not(.admin-body) .bracket-scroll {
  overflow: visible;
  padding: 0;
}

body:not(.admin-body) .bracket-grid {
  display: grid;
  grid-template-columns: 1.08fr 1.08fr 1.08fr 1fr 0.9fr;
  --bracket-node-height: 96px;
  --bracket-node-gap: 12px;
  --bracket-step: calc(var(--bracket-node-height) + var(--bracket-node-gap));
  gap: 18px;
  min-width: 0;
  width: 100%;
  align-items: start;
}

.bracket-column {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.bracket-column:not(:last-child)::after {
  display: none;
}

.bracket-column h3 {
  margin: 0 0 4px;
  color: #d7a039;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.bracket-column-stack {
  display: grid;
  gap: var(--bracket-node-gap, 12px);
}

body:not(.admin-body) .stage-2 .bracket-column-stack {
  margin-top: calc(var(--bracket-step) * 0.5);
  gap: calc(var(--bracket-step) * 2 - var(--bracket-node-height));
}

body:not(.admin-body) .stage-3 .bracket-column-stack {
  margin-top: calc(var(--bracket-step) * 1.5);
  gap: calc(var(--bracket-step) * 4 - var(--bracket-node-height));
}

body:not(.admin-body) .stage-4 .bracket-column-stack {
  margin-top: calc(var(--bracket-step) * 3.5);
  gap: calc(var(--bracket-step) * 8 - var(--bracket-node-height));
}

body:not(.admin-body) .stage-5 .bracket-column-stack {
  margin-top: calc(var(--bracket-step) * 7.5);
}

body:not(.admin-body) .stage-2 {
  --connector-height: var(--bracket-step);
}

body:not(.admin-body) .stage-3 {
  --connector-height: calc(var(--bracket-step) * 2);
}

body:not(.admin-body) .stage-4 {
  --connector-height: calc(var(--bracket-step) * 4);
}

body:not(.admin-body) .stage-5 {
  --connector-height: calc(var(--bracket-step) * 8);
}

.bracket-node {
  position: relative;
  display: grid;
  box-sizing: border-box;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 6px;
  height: var(--bracket-node-height, 96px);
  min-height: 0;
  border: 1px solid rgba(215, 160, 57, 0.4);
  border-radius: 5px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.58);
}

body:not(.admin-body) .bracket-column:not(.stage-1) .bracket-node::before {
  position: absolute;
  left: -18px;
  top: 50%;
  width: 18px;
  height: var(--connector-height, 84px);
  border-top: 1px solid rgba(215, 160, 57, 0.58);
  border-bottom: 1px solid rgba(215, 160, 57, 0.58);
  border-left: 1px solid rgba(215, 160, 57, 0.42);
  background: linear-gradient(90deg, rgba(215, 160, 57, 0.08), #ffd26d) center / 100% 2px no-repeat;
  content: "";
  pointer-events: none;
  transform: translateY(-50%);
}

.bracket-node.complete {
  border-color: rgba(215, 160, 57, 0.72);
}

.bracket-node.complete::after {
  position: absolute;
  right: -18px;
  top: 50%;
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, #ffd26d, rgba(215, 160, 57, 0));
  content: "";
  animation: energyFlow 1.1s linear infinite;
}

.bracket-column:last-child .bracket-node::after {
  display: none;
}

.bracket-entry {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 4px;
  padding: 3px;
  background: transparent;
  color: #fff2d2;
  text-align: left;
}

button.bracket-entry {
  cursor: pointer;
}

.bracket-entry.winner {
  background: rgba(215, 160, 57, 0.08);
}

.bracket-entry.pending {
  color: rgba(248, 233, 201, 0.52);
}

.bracket-avatar {
  width: 30px;
  height: 30px;
  border-radius: 3px;
}

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

.bracket-entry strong,
.bracket-entry small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-entry strong {
  font-size: 12px;
}

.bracket-entry small {
  color: #89d044;
  font-size: 10px;
  font-weight: 900;
}

body:not(.admin-body) .video-popover {
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(-8px) scale(0.98);
}

body:not(.admin-body) .has-preview:hover .video-popover,
body:not(.admin-body) .has-preview:focus-visible .video-popover {
  transform: translateX(-50%) translateY(0) scale(1);
}

.profile-admin-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(360px, 1.18fr);
  gap: 16px;
  align-items: start;
}

.profile-admin-list {
  display: grid;
  gap: 10px;
  max-height: 820px;
  overflow: auto;
}

.profile-admin-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(215, 160, 57, 0.24);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(0, 0, 0, 0.28);
}

.profile-admin-card.active {
  border-color: rgba(62, 239, 255, 0.62);
  box-shadow: 0 0 22px rgba(21, 141, 193, 0.16);
}

.profile-admin-card strong,
.profile-admin-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-admin-card strong {
  color: #fff2d2;
}

.profile-admin-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-admin-card button {
  min-height: 34px;
  border: 1px solid rgba(215, 160, 57, 0.36);
  border-radius: var(--radius);
  background: rgba(200, 25, 22, 0.72);
  color: #fff4da;
  cursor: pointer;
  font-weight: 850;
  padding: 0 10px;
}

.admin-profile-mini,
.admin-profile-avatar {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(215, 160, 57, 0.5);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 231, 175, 0.9) 0 16%, transparent 17%),
    radial-gradient(circle at 50% 70%, rgba(21, 141, 193, 0.88) 0 34%, transparent 35%),
    linear-gradient(135deg, #070504, #2e2112);
  background-position: center;
  background-size: cover;
  color: #ffd26d;
  font-weight: 950;
}

.admin-profile-mini {
  width: 48px;
  height: 48px;
  font-size: 12px;
}

.admin-profile-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-profile-avatar {
  width: 86px;
  height: 86px;
  font-size: 20px;
}

.profile-editor {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(215, 160, 57, 0.28);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(0, 0, 0, 0.24);
}

.profile-editor-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.asset-tool {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(215, 160, 57, 0.26);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(0, 0, 0, 0.22);
}

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

.asset-tool-head strong {
  color: #fff2d2;
}

.review-profile-tools {
  display: flex;
  align-items: end;
  gap: 10px;
}

.review-profile-tools label,
.image-loader-grid label {
  display: grid;
  gap: 7px;
}

.review-profile-tools select {
  min-width: 220px;
}

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

.face-upload-block {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(215, 160, 57, 0.26);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.generator-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.generator-controls {
  display: grid;
  gap: 14px;
}

.asset-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#assetPreviewGrid {
  grid-column: 2;
}

#faceUploadPreviewGrid,
.moves-editor {
  grid-column: 1 / -1;
}

#faceUploadPreviewGrid .asset-preview {
  min-height: 150px;
}

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

.moves-editor .asset-tool-head,
.moves-editor button,
.moves-editor .signup-result {
  grid-column: 1 / -1;
}

.asset-preview {
  position: relative;
  display: grid;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid rgba(215, 160, 57, 0.34);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.42);
}

.asset-preview.square {
  aspect-ratio: 1 / 1;
}

.asset-preview.poster {
  aspect-ratio: 4 / 5;
}

.asset-preview.wide {
  aspect-ratio: 16 / 10;
}

.asset-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-preview > span {
  display: grid;
  place-items: center;
  color: #ffd26d;
  font-size: 28px;
  font-weight: 950;
}

.asset-preview strong {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(215, 160, 57, 0.28);
  border-radius: 5px;
  padding: 7px 9px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff2d2;
  font-size: 12px;
}

.fighter-sheet-preview {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.stat-radar {
  width: 88px;
  height: 88px;
  display: block;
  filter: drop-shadow(0 0 14px rgba(215, 160, 57, 0.22));
}

.stat-radar.large {
  width: 128px;
  height: 128px;
}

.radar-frame {
  fill: rgba(0, 0, 0, 0.22);
  stroke: rgba(215, 160, 57, 0.45);
  stroke-width: 1.3;
}

.radar-frame.inner {
  stroke: rgba(255, 242, 210, 0.2);
}

.radar-fill {
  fill: rgba(200, 25, 22, 0.46);
  stroke: #ffd26d;
  stroke-width: 2.4;
}

.radar-label {
  fill: #ffd26d;
  font-size: 7px;
  font-weight: 950;
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.82);
  stroke-width: 2px;
}

.fighter-stat-list {
  display: grid;
  gap: 5px;
  margin: 0;
}

.fighter-stat-list div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}

.fighter-stat-list dt {
  color: rgba(248, 233, 201, 0.68);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.fighter-stat-list dd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 6px;
  align-items: center;
  margin: 0;
}

.fighter-stat-list dd span {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 242, 210, 0.12);
}

.fighter-stat-list dd span::before {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c81916, #ffd26d);
  box-shadow: 0 0 10px rgba(215, 160, 57, 0.35);
}

.fighter-stat-list dd strong,
.fan-boost-label {
  color: #ffd26d;
  font-size: 10px;
  font-weight: 950;
}

.fan-boost-label {
  display: block;
  margin-top: 8px;
  text-transform: uppercase;
}

.stat-editor {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(215, 160, 57, 0.26);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.stat-editor-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.stat-radar-card {
  min-height: 154px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px solid rgba(215, 160, 57, 0.22);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 50%, rgba(200, 25, 22, 0.2), transparent 62%),
    rgba(0, 0, 0, 0.3);
}

.stat-radar-card strong {
  color: #8ff54e;
  font-size: 12px;
  text-transform: uppercase;
}

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

.shop-pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.shop-settings-form .wide,
.pairing-form {
  grid-column: 1 / -1;
}

.shop-pack-settings {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(215, 160, 57, 0.22);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(0, 0, 0, 0.22);
}

.shop-pack-settings-head,
.shop-pack-settings-row {
  display: grid;
  grid-template-columns: 1fr 120px 120px 1.4fr;
  gap: 10px;
  align-items: center;
}

.shop-pack-settings-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.shop-pack-settings-row strong,
.shop-pack-settings-row span {
  overflow-wrap: anywhere;
}

.storage-status-card {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  border: 1px solid rgba(215, 160, 57, 0.24);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(0, 0, 0, 0.28);
}

.storage-status-card strong {
  color: #fff2d2;
}

.storage-status-card p,
.storage-status-card small {
  color: var(--muted);
}

.revenue-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
  margin-top: 14px;
}

.influencer-revenue-panel {
  display: grid;
  gap: 14px;
}

.followers-editor {
  background:
    linear-gradient(135deg, rgba(200, 25, 22, 0.14), transparent),
    rgba(0, 0, 0, 0.24);
}

.profile-form-grid.compact {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.influencer-revenue-details .admin-row em {
  color: #9bf16e;
}

.revenue-bars {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  border: 1px solid rgba(215, 160, 57, 0.18);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.revenue-bars div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 100px;
  gap: 10px;
  align-items: center;
}

.revenue-bars span,
.revenue-bars em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.revenue-bars strong {
  display: block;
  min-width: 6px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c81916, #ffd26d);
}

.fan-support-choice {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  border: 1px solid rgba(215, 160, 57, 0.26);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(0, 0, 0, 0.28);
}

.fan-support-choice select {
  width: 100%;
}

.shop-pack {
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid rgba(215, 160, 57, 0.28);
  border-radius: var(--radius);
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(200, 25, 22, 0.16), transparent 56%),
    rgba(0, 0, 0, 0.34);
}

.shop-pack span,
.shop-pack small {
  color: var(--muted);
  font-weight: 850;
}

.shop-pack strong {
  color: #fff2d2;
  font-size: 28px;
}

.sale-price-block {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(200, 25, 22, 0.34);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(200, 25, 22, 0.1);
}

.shop-pack .sale-price-block strong {
  color: #ffffff;
  font-size: 20px;
}

.boost-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.fan-fighter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fan-fighter-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(215, 160, 57, 0.24);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(0, 0, 0, 0.34);
}

.fan-fighter-card strong,
.fan-fighter-card small {
  display: block;
}

.fan-fighter-card strong {
  color: #fff2d2;
}

.fan-fighter-card small {
  margin-bottom: 8px;
  color: #8ff54e;
  font-weight: 900;
}

.modal-open {
  overflow: hidden;
}

.fighter-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.94)),
    radial-gradient(circle at 50% 30%, rgba(200, 25, 22, 0.18), transparent 56%);
}

.fighter-modal-backdrop.active {
  display: grid;
}

.fighter-modal {
  position: relative;
  width: min(1480px, 100%);
  max-height: min(900px, calc(100vh - 28px));
  overflow: auto;
  border: 1px solid rgba(200, 25, 22, 0.72);
  border-radius: 6px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(16, 10, 8, 0.98), rgba(3, 3, 3, 0.98)),
    url("assets/social-kombat-room.png") center / cover;
  box-shadow: 0 0 0 1px rgba(215, 160, 57, 0.24) inset, 0 28px 80px rgba(0, 0, 0, 0.72);
}

.fighter-modal::before {
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border: 1px solid rgba(215, 160, 57, 0.16);
  border-radius: 4px;
  content: "";
}

.fighter-modal-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
}

.sheet-logo {
  color: #d8c4a0;
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(200, 25, 22, 0.44);
}

.sheet-logo span {
  color: #c81916;
}

.fighter-modal-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(200, 25, 22, 0.72);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #ff3c30;
  cursor: pointer;
  font-size: 28px;
  font-weight: 950;
}

.sheet-tabs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 8px 14px;
}

.sheet-tabs button {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(215, 160, 57, 0.28);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.5);
  color: #9d7e53;
  cursor: pointer;
  font-size: 18px;
  font-weight: 950;
  text-transform: uppercase;
}

.sheet-tabs button.active {
  border-color: rgba(200, 25, 22, 0.78);
  background: linear-gradient(90deg, rgba(94, 0, 0, 0.74), rgba(200, 25, 22, 0.22));
  color: #ff3c30;
}

.fighter-sheet {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(290px, 0.95fr) minmax(330px, 1.18fr) minmax(310px, 0.95fr);
  grid-template-areas:
    "stats hero radar"
    "equipment moves fatality";
  gap: 12px;
}

.fighter-sheet-tabbed {
  display: block;
}

.sheet-tab-panel {
  display: none;
}

.sheet-tab-panel.active {
  display: block;
}

.sheet-character-layout {
  display: grid;
  grid-template-columns: minmax(290px, 0.95fr) minmax(330px, 1.18fr) minmax(310px, 0.95fr);
  grid-template-areas: "stats hero radar";
  gap: 12px;
}

.fighter-sheet section {
  border: 1px solid rgba(200, 25, 22, 0.35);
  border-radius: 5px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.52)),
    rgba(15, 9, 7, 0.76);
  box-shadow: 0 0 0 1px rgba(215, 160, 57, 0.08) inset;
}

.fighter-sheet h3 {
  margin: 0 0 12px;
  color: #ff3c30;
  font-size: 18px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.sheet-stat-panel {
  grid-area: stats;
}

.sheet-character-panel {
  grid-area: hero;
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
}

.sheet-character-panel h2 {
  margin: 0;
  color: #d8c4a0;
  font-size: clamp(28px, 3.5vw, 48px);
  text-transform: uppercase;
}

.sheet-character-panel p:not(.eyebrow) {
  max-width: 520px;
  color: #cdb98d;
  font-weight: 760;
}

.sheet-radar-panel {
  grid-area: radar;
  display: grid;
  gap: 12px;
  align-content: start;
}

.sheet-equipment-panel {
  grid-area: equipment;
}

.sheet-moves-panel {
  grid-area: moves;
}

.sheet-fatality-panel {
  grid-area: fatality;
  text-align: center;
}

.sheet-stat-stack {
  display: grid;
  gap: 8px;
}

.sheet-stat-stack article {
  display: grid;
  grid-template-columns: 44px minmax(0, 0.7fr) minmax(96px, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(215, 160, 57, 0.22);
  border-radius: 4px;
  padding: 9px;
  background: rgba(0, 0, 0, 0.38);
}

.stat-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(200, 25, 22, 0.58);
  border-radius: 50%;
  color: #d7a039;
  font-weight: 950;
}

.sheet-stat-stack strong,
.sheet-stat-stack small {
  display: block;
}

.sheet-stat-stack strong {
  color: #cdb98d;
  text-transform: uppercase;
}

.sheet-stat-stack small {
  color: #d7a039;
  font-weight: 850;
}

.stat-blocks {
  display: grid;
  grid-template-columns: repeat(10, minmax(7px, 1fr));
  gap: 3px;
}

.stat-blocks span {
  height: 16px;
  border: 1px solid rgba(215, 160, 57, 0.16);
  background: rgba(0, 0, 0, 0.42);
}

.stat-blocks span.active {
  border-color: rgba(255, 60, 48, 0.54);
  background: linear-gradient(180deg, #ff3c30, #7a0905);
  box-shadow: 0 0 8px rgba(200, 25, 22, 0.28);
}

.sheet-portrait-ring {
  width: min(360px, 78vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin: 18px 0 14px;
  border: 2px solid rgba(200, 25, 22, 0.68);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(200, 25, 22, 0.24), transparent 68%),
    rgba(0, 0, 0, 0.58);
  box-shadow: 0 0 0 12px rgba(215, 160, 57, 0.04), 0 0 44px rgba(200, 25, 22, 0.2);
}

.sheet-portrait-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.sheet-portrait-ring span {
  color: #ffd26d;
  font-size: 42px;
  font-weight: 950;
}

.sheet-credit-strip {
  width: min(440px, 100%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
  border: 1px solid rgba(215, 160, 57, 0.28);
  border-radius: 4px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.52);
}

.sheet-credit-strip span,
.sheet-credit-strip a {
  color: #cdb98d;
  font-weight: 900;
  text-transform: uppercase;
}

.sheet-credit-strip strong {
  color: #8ff54e;
  font-size: 22px;
}

.sheet-credit-strip a {
  color: #ffd26d;
}

.sheet-radar-wrap {
  display: grid;
  place-items: center;
  min-height: 210px;
}

.sheet-radar-wrap .stat-radar {
  width: 220px;
  height: 220px;
}

.sheet-boost-controls {
  display: grid;
  gap: 7px;
}

.sheet-boost-controls article {
  display: grid;
  grid-template-columns: minmax(82px, 1fr) 42px 36px 42px;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(215, 160, 57, 0.2);
  border-radius: 4px;
  padding: 7px;
  background: rgba(0, 0, 0, 0.42);
}

.sheet-boost-controls span {
  color: #cdb98d;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.sheet-boost-controls button {
  height: 34px;
  border: 1px solid rgba(215, 160, 57, 0.28);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  color: #ff3c30;
  cursor: pointer;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.sheet-boost-controls button[data-boost-action="plus"] {
  color: #8ff54e;
}

.sheet-boost-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.sheet-boost-controls strong {
  color: #fff2d2;
  text-align: center;
}

.session-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(92vw, 560px);
  padding: 10px;
  border: 1px solid rgba(214, 160, 65, 0.45);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(12, 10, 8, 0.98), rgba(31, 12, 10, 0.96)),
    var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 24px rgba(194, 28, 28, 0.18);
  color: var(--text);
}

.session-dock span {
  display: grid;
  min-width: 110px;
  line-height: 1.1;
}

.session-dock small {
  color: var(--accent);
  font-family: var(--display);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.session-dock strong {
  overflow: hidden;
  max-width: 150px;
  color: var(--text);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-dock a,
.session-dock button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(214, 160, 65, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font: 700 0.72rem/1 var(--body);
  padding: 0 10px;
  text-decoration: none;
}

.session-dock .session-dock-main {
  border-color: rgba(235, 34, 34, 0.65);
  background: linear-gradient(135deg, rgba(184, 17, 17, 0.92), rgba(69, 8, 8, 0.96));
  color: #fff;
  box-shadow: 0 0 18px rgba(235, 34, 34, 0.28);
}

.session-dock button {
  color: var(--muted);
}

.session-dock a:hover,
.session-dock button:hover {
  border-color: rgba(214, 160, 65, 0.8);
  color: #fff;
}

.session-dock-admin {
  border-color: rgba(235, 34, 34, 0.62);
}

.sheet-status {
  min-height: 20px;
  margin: 0;
  color: #ffd26d;
  font-size: 12px;
  font-weight: 850;
}

.sheet-slot-grid,
.sheet-move-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.sheet-slot-grid span,
.sheet-move-grid span {
  min-height: 76px;
  display: grid;
  place-items: end center;
  border: 1px solid rgba(215, 160, 57, 0.2);
  border-radius: 4px;
  padding: 8px;
  background:
    linear-gradient(180deg, rgba(200, 25, 22, 0.09), transparent 46%),
    rgba(0, 0, 0, 0.46);
  color: #cdb98d;
  font-size: 11px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.sheet-equipment-image {
  display: grid;
  place-items: center;
  max-height: min(66vh, 620px);
  overflow: hidden;
  border: 1px solid rgba(215, 160, 57, 0.28);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.52);
}

.sheet-equipment-image img {
  width: 100%;
  max-height: min(66vh, 620px);
  object-fit: contain;
}

.vote-admin-tools,
.bracket-winner-form {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(215, 160, 57, 0.24);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(0, 0, 0, 0.28);
}

.bracket-winner-form {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.7fr) auto;
  align-items: end;
}

.bracket-winner-form .signup-result {
  grid-column: 1 / -1;
}

body.is-influencer-session a[href*="shop.html"],
body.is-influencer-session .fan-shop-link {
  display: none !important;
}

.sheet-move-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sheet-fatality-panel {
  display: grid;
  gap: 8px;
  justify-items: center;
  align-content: center;
}

.fatality-token {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200, 25, 22, 0.64);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(200, 25, 22, 0.26), transparent 68%),
    rgba(0, 0, 0, 0.62);
  color: #d7a039;
  font-size: 26px;
  font-weight: 950;
}

.sheet-fatality-panel strong {
  color: #cdb98d;
  text-transform: uppercase;
}

.sheet-full-panel {
  min-height: 520px;
}

.sheet-fatality-lines {
  display: grid;
  gap: 8px;
  max-width: 620px;
}

.sheet-fatality-lines span {
  border: 1px solid rgba(215, 160, 57, 0.22);
  border-radius: 4px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.46);
  color: #cdb98d;
  font-weight: 850;
  text-transform: none;
}

@media (max-width: 1240px) {
  body:not(.admin-body) .fighter-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body:not(.admin-body) .bracket-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.admin-body) .stage-2 .bracket-column-stack,
  body:not(.admin-body) .stage-3 .bracket-column-stack,
  body:not(.admin-body) .stage-4 .bracket-column-stack,
  body:not(.admin-body) .stage-5 .bracket-column-stack {
    margin-top: 0;
    gap: 12px;
  }

  .bracket-column:not(:last-child)::after,
  .bracket-column:not(.stage-1) .bracket-node::before,
  .bracket-node.complete::after {
    display: none;
  }
}

@media (max-width: 960px) {
  body:not(.admin-body) .app-shell {
    display: block;
  }

  body:not(.admin-body) .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    padding: 12px;
  }

  body:not(.admin-body) .brand {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  body:not(.admin-body) .brand-mark {
    width: 52px;
    height: 52px;
  }

  body:not(.admin-body) .brand strong {
    font-size: 20px;
  }

  body:not(.admin-body) .nav-list {
    display: flex;
    overflow-x: auto;
  }

  body:not(.admin-body) .nav-link {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 12px 0 42px;
    font-size: 14px;
  }

  body:not(.admin-body) .nav-link::before {
    left: 12px;
    width: 18px;
    height: 18px;
  }

  body:not(.admin-body) .sidebar-status {
    display: none;
  }

  body:not(.admin-body) main {
    padding: 10px;
  }

  body:not(.admin-body) .topbar {
    min-height: 260px;
    padding: 24px;
  }

  body:not(.admin-body) h1 {
    font-size: 48px;
  }

  body:not(.admin-body) .live-grid,
  .profile-admin-grid,
  .generator-layout,
  .fighter-sheet,
  .sheet-character-layout {
    grid-template-columns: 1fr;
  }

  #assetPreviewGrid,
  #faceUploadPreviewGrid,
  .moves-editor {
    grid-column: 1 / -1;
  }

  .fighter-sheet,
  .sheet-character-layout {
    grid-template-areas:
      "hero"
      "radar"
      "stats";
  }
}

@media (max-width: 760px) {
  .session-dock {
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .session-dock span {
    grid-column: 1 / -1;
  }

  .session-dock a,
  .session-dock button {
    min-height: 38px;
    padding: 0 8px;
  }

  body:not(.admin-body) h1 {
    font-size: 38px;
  }

  body:not(.admin-body) .topbar {
    align-items: start;
    min-height: 230px;
  }

  body:not(.admin-body) .live-grid,
  body:not(.admin-body) .featured-match,
  body:not(.admin-body) .metric-grid,
  body:not(.admin-body) .fighter-grid,
  body:not(.admin-body) .bracket-grid,
  .profile-form-grid,
  .asset-preview-grid,
  .image-loader-grid {
    grid-template-columns: 1fr;
  }

  body:not(.admin-body) .fighter-card {
    min-height: 240px;
  }

  body:not(.admin-body) .fighter-card .portrait {
    height: 190px;
  }

  .asset-tool-head {
    display: grid;
  }

  .review-profile-tools {
    display: grid;
    width: 100%;
  }

  .review-profile-tools select {
    min-width: 0;
    width: 100%;
  }

  .fighter-sheet-preview,
  .stat-editor-grid,
  .boost-form,
  .shop-pack-grid,
  .fan-fighter-grid {
    grid-template-columns: 1fr;
  }

  .stat-input-grid {
    grid-template-columns: 1fr;
  }

  .fan-fighter-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .fighter-modal {
    padding: 10px;
  }

  .sheet-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-inline: 0;
  }

  .sheet-tabs button {
    min-height: 36px;
    font-size: 12px;
  }

  .sheet-stat-stack article {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .stat-blocks {
    grid-column: 1 / -1;
  }

  .sheet-credit-strip,
  .sheet-boost-controls article {
    grid-template-columns: 1fr;
    text-align: center;
  }

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




/* ===== Mobile optimization pass (pre-deploy) ===== */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  -webkit-tap-highlight-color: rgba(200, 25, 22, 0.25);
}

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

  .admin-grid > *,
  .admin-card,
  .admin-card *,
  .admin-row,
  .admin-row * {
    min-width: 0;
  }

  .admin-card strong,
  .admin-card span,
  .admin-card small,
  .admin-row strong,
  .admin-row small,
  .admin-row em {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
  }

  .row-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .row-actions button,
  .row-actions a {
    flex: 1 1 auto;
    min-height: 44px;
  }

  button,
  .primary-button,
  .ghost-button,
  .nav-link,
  select,
  input {
    min-height: 44px;
  }

  .section-heading {
    flex-wrap: wrap;
    gap: 12px;
  }

  .shop-pack-settings-head {
    display: none;
  }

  .shop-pack-settings-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .shop-pack-settings-row strong {
    grid-column: 1 / -1;
  }

  .shop-pack-settings-row span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .session-dock {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 6px;
  }

  .session-dock span {
    flex: 1 1 100%;
  }

  .session-dock a,
  .session-dock button {
    flex: 1 1 auto;
    text-align: center;
    min-height: 40px;
  }

  .hero-actions,
  .gateway-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .primary-button,
  .hero-actions .ghost-button {
    width: 100%;
  }
}

/* ===== Influencer signup gate ===== */
.signup-gate {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 5, 4, 0.86);
  backdrop-filter: blur(8px);
  overflow-y: auto;
}

.signup-gate.is-hidden {
  display: none;
}

.signup-gate-card {
  width: min(520px, 100%);
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(214, 160, 65, 0.5);
}

.signup-gate-card h2 {
  margin: 0;
}

.signup-gate-amount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(214, 160, 65, 0.4);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.5);
}

.signup-gate-amount strong {
  font-size: 1.8rem;
  color: #ffe9b5;
}

.signup-gate-card .primary-button {
  min-height: 50px;
}

.signup-gate-card .ghost-button.compact {
  justify-self: center;
}

/* ---------- Legal footer & consent ---------- */
.legal-footer {
  margin-top: 28px;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(128, 128, 128, 0.35);
  font-size: 0.82rem;
  color: inherit;
  opacity: 0.85;
}

.legal-footer p {
  margin: 0;
}

.legal-footer-links {
  display: flex;
  gap: 18px;
}

.legal-footer-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-footer-links a:hover {
  opacity: 0.7;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  cursor: pointer;
}

.consent-check input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: #0fb5ae;
}

.consent-check a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-check.is-hidden {
  display: none;
}

/* ---------- Legal pages ---------- */
.legal-body {
  margin: 0;
}

.legal-page {
  max-width: 840px;
  margin: 0 auto;
  padding: 48px 22px 40px;
}

.legal-page h1 {
  margin: 8px 0 4px;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.15;
}

.legal-page h2 {
  margin: 30px 0 8px;
  font-size: 1.08rem;
}

.legal-page p,
.legal-page li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(247, 234, 208, 0.88);
}

.legal-page ul {
  padding-left: 20px;
}

.legal-updated {
  font-size: 0.8rem;
  color: rgba(247, 234, 208, 0.55);
}

.legal-back {
  display: inline-flex;
  margin-bottom: 18px;
}

/* ---------- Admin: manual credit & donation register ---------- */
.donation-register-heading {
  margin-top: 34px;
}

.manual-credit-form {
  margin-top: 8px;
}

.donation-register-summary {
  margin: 14px 0;
}

.donation-register-row div small {
  display: block;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .legal-footer {
    flex-direction: column;
    align-items: flex-start;
  }

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

/* ---------- Collab ufficiali ---------- */
.collab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
}

.collab-intro p {
  line-height: 1.6;
}

.collab-points {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 10px;
}

.collab-points li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
}

.collab-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e63946;
  box-shadow: 0 0 8px rgba(230, 57, 70, 0.7);
}

.collab-mail a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.collab-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.collab-form label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.collab-form input,
.collab-form textarea {
  padding: 11px 13px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.collab-form input:focus,
.collab-form textarea:focus {
  outline: none;
  border-color: #e63946;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.18);
}

.collab-form textarea {
  resize: vertical;
  min-height: 110px;
}

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

/* ---------- Restricted legal gate ---------- */
.restricted-gate {
  margin: 26px 0;
  padding: 26px;
  border-radius: 14px;
  border: 1px solid rgba(230, 57, 70, 0.45);
  background: rgba(230, 57, 70, 0.08);
  display: grid;
  gap: 12px;
  justify-items: start;
}

.restricted-gate.is-hidden {
  display: none;
}

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

  .collab-row {
    grid-template-columns: 1fr;
  }
}
