:root {
  color-scheme: dark;
  --ink: #07090f;
  --paper: #f5f1e8;
  --blue: #1668ff;
  --blue-bright: #5ee7ff;
  --red: #f02b35;
  --red-bright: #ff9a62;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: var(--ink); }

body {
  color: var(--paper);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  overflow-x: hidden;
}

.arena { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; background: #0a0d16; }
.arena::before { content: ""; position: absolute; z-index: 8; top: -3%; left: 50%; width: 4px; height: 106%; background: rgba(255,255,255,.28); box-shadow: 0 0 18px rgba(255,255,255,.18), 5px 0 18px rgba(5,7,12,.3); transform: translateX(-50%) rotate(-1.5deg); pointer-events: none; }

.topbar {
  position: absolute; z-index: 20; inset: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; padding: 18px clamp(20px, 4vw, 64px);
  background: linear-gradient(to bottom, rgba(5,7,12,.78), transparent);
}

.brand { color: white; text-decoration: none; display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .12em; }
.brand strong { color: #ffda45; }
.brand-mark { display: block; width: 38px; height: 38px; border: 2px solid white; border-radius: 50%; object-fit: cover; transform: rotate(-3deg); box-shadow: 4px 4px 0 #ffda45; }

.minecraft-status { font-size: 10px; letter-spacing: .18em; opacity: .85; }
.minecraft-status i { display: inline-block; width: 7px; height: 7px; background: #75fb79; margin-right: 8px; box-shadow: 0 0 12px #75fb79; }

.side { position: absolute; inset-block: 0; left: 0; width: 100%; overflow: hidden; }
.side-blue { background: radial-gradient(circle at 12% 30%, #1f7af6 0, #0e3c91 34%, #07132d 78%); clip-path: polygon(0 0, 49.3% 0, 50.7% 100%, 0 100%); }
.side-red { background: radial-gradient(circle at 62% 30%, #ef393d 0, #7e141c 34%, #29090c 78%); clip-path: polygon(49.3% 0, 100% 0, 100% 100%, 50.7% 100%); }

.side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.08) 50%, transparent 60%); transform: translateX(-120%); animation: sweep 7s ease-in-out infinite; pointer-events: none; }
.side-red::after { animation-delay: 1.2s; }
@keyframes sweep { 0%, 62% { transform: translateX(-120%); } 82%, 100% { transform: translateX(120%); } }

.pixel-grid { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(to bottom, transparent, black 30%, transparent); }
.side-glow { position: absolute; width: 55vw; height: 55vw; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; top: 8%; filter: blur(.2px); }
.side-blue .side-glow { left: -20vw; box-shadow: inset 0 0 100px rgba(60,204,255,.3); }
.side-red .side-glow { right: -20vw; box-shadow: inset 0 0 100px rgba(255,103,78,.3); }

.fighter { position: absolute; z-index: 3; top: 92px; display: flex; flex-direction: column; justify-content: flex-start; width: min(340px, calc(50% - 120px)); margin: 0; padding: 0 0 50px; }
.side-blue .fighter { right: calc(50% + clamp(54px, 6vw, 105px)); align-items: flex-end; text-align: right; transform: scale(.84); transform-origin: top right; }
.side-red .fighter { left: calc(50% + clamp(54px, 6vw, 105px)); align-items: flex-start; text-align: left; transform: scale(.84); transform-origin: top left; }

.profile-slots { position: absolute; z-index: 3; top: 390px; display: grid; gap: 8px; width: clamp(165px, 14vw, 205px); max-height: calc(100vh - 460px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.28) transparent; }
.profile-slots-blue { left: clamp(44px, 5vw, 90px); }
.profile-slots-red { right: clamp(44px, 5vw, 90px); }
.profile-slots > p { margin: 0 0 2px; font-size: 9px; font-weight: 700; letter-spacing: .18em; opacity: .6; }
.profile-slots-red > p { text-align: right; }
.profile-slot { position: relative; display: flex; align-items: center; gap: 9px; min-height: 56px; padding: 7px; overflow: hidden; color: white; text-decoration: none; border: 1px solid rgba(255,255,255,.22); background: rgba(5,7,12,.2); backdrop-filter: blur(4px); transition: transform .18s, border-color .18s, background .18s; }
.profile-slots-red .profile-slot { flex-direction: row-reverse; text-align: right; }
.profile-slot:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.6); background: rgba(5,7,12,.34); }
.slot-avatar { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; overflow: hidden; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.09); }
.slot-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slot-avatar-fallback { font-size: 12px; font-weight: 900; color: rgba(255,255,255,.55); }
.slot-copy { display: grid; gap: 4px; min-width: 0; }
.slot-copy b { overflow: hidden; font-size: 12px; letter-spacing: .04em; color: rgba(255,255,255,.94); text-overflow: ellipsis; white-space: nowrap; }
.slot-copy small { font-size: 8px; letter-spacing: .07em; color: rgba(255,255,255,.52); }
.slot-copy small.is-live { color: #91ff9a; }

.side-label { margin-bottom: 11px; border: 1px solid rgba(255,255,255,.55); padding: 5px 8px; font-size: 8px; font-weight: 700; letter-spacing: .2em; background: rgba(7,9,15,.28); backdrop-filter: blur(8px); }
.avatar-frame { position: relative; width: clamp(118px, 11vw, 160px); aspect-ratio: 1; margin-bottom: 17px; }
.avatar-frame::before, .avatar-frame::after { content: ""; position: absolute; width: 42px; height: 42px; z-index: 2; }
.avatar-frame::before { left: -9px; top: -9px; border-left: 4px solid white; border-top: 4px solid white; }
.avatar-frame::after { right: -9px; bottom: -9px; border-right: 4px solid white; border-bottom: 4px solid white; }
.avatar { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.8) contrast(1.1); background: rgba(0,0,0,.25); }
.avatar-fallback { display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); color: rgba(255,255,255,.9); font: 900 clamp(72px, 10vw, 150px) Impact, "Arial Black", sans-serif; background: rgba(0,0,0,.2); }
.live-badge { position: absolute; right: -14px; bottom: 14px; z-index: 4; padding: 7px 10px; background: #ff2233; color: white; font-size: 10px; font-weight: 700; letter-spacing: .12em; box-shadow: 4px 4px 0 var(--ink); }
.live-badge.is-offline { background: #272a33; color: #aaa; }

.fighter-copy { width: min(360px, 100%); }
.eyebrow { margin: 0 0 4px; font-size: 9px; font-weight: 700; letter-spacing: .22em; opacity: .72; }
h1 { margin: 0; font: 900 clamp(30px, 3.4vw, 54px)/.9 Impact, "Arial Black", sans-serif; text-transform: uppercase; letter-spacing: -.025em; text-shadow: 4px 4px 0 rgba(4,6,12,.35); overflow-wrap: anywhere; }
.stream-title { min-height: 2.8em; margin: 12px 0 9px; font-size: clamp(9px, .75vw, 12px); line-height: 1.5; opacity: .82; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stats { display: flex; gap: 8px; justify-content: inherit; flex-wrap: wrap; margin-bottom: 18px; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.side-blue .stats { justify-content: flex-end; }
.side-red .stats { justify-content: flex-start; }
.stats span { padding: 6px 9px; background: rgba(4,6,12,.35); border: 1px solid rgba(255,255,255,.17); }
.is-hidden { display: none !important; }

.choose-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-width: 190px; padding: 11px 13px; border: 2px solid white; color: white; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .06em; box-shadow: 4px 4px 0 rgba(0,0,0,.5); transition: transform .18s, box-shadow .18s, background .18s, color .18s; }
.choose-button:hover { background: white; color: var(--ink); transform: translate(-2px,-2px); box-shadow: 9px 9px 0 rgba(0,0,0,.5); }
.choose-button b { font-size: 18px; }

.center-copy { position: absolute; z-index: 10; left: 50%; top: 42%; width: 150px; transform: translate(-50%,-45%) rotate(-3deg); text-align: center; filter: drop-shadow(0 12px 25px rgba(0,0,0,.55)); }
.center-copy > p { margin: 0 0 10px; font-size: 9px; font-weight: bold; letter-spacing: .11em; }
.versus { display: flex; justify-content: center; align-items: center; width: 126px; height: 126px; margin: auto; border: 4px solid var(--ink); background: var(--paper); color: var(--ink); font: 900 54px Impact, "Arial Black", sans-serif; clip-path: polygon(8% 9%, 92% 0, 100% 84%, 12% 100%, 0 55%); box-shadow: 0 0 0 3px rgba(255,255,255,.55); }
.versus span:first-child { transform: translateY(-5px); }
.versus span:last-child { transform: translateY(8px); color: #ef3038; }
.center-copy small { display: block; margin-top: 10px; font-size: 8px; font-weight: bold; letter-spacing: .14em; line-height: 1.5; }
.vote-counter { display: grid; grid-template-columns: 1fr 1fr; align-items: center; width: 190px; margin: 13px 0 0 -20px; padding: 11px 10px; border: 1px solid rgba(255,255,255,.3); background: rgba(5,7,12,.74); box-shadow: 6px 6px 0 rgba(0,0,0,.28); backdrop-filter: blur(8px); transform: rotate(3deg); }
.vote-side { display: grid; place-items: center; }
.vote-side + .vote-side { border-left: 1px solid rgba(255,255,255,.22); }
.vote-side b { font-size: 24px; line-height: 1; }
.vote-blue b { color: var(--blue-bright); }
.vote-red b { color: #ff6970; }

.demo-note { position: absolute; z-index: 30; bottom: 38px; left: 50%; transform: translateX(-50%); padding: 7px 10px; color: #d4d5da; background: rgba(5,7,12,.75); border: 1px solid rgba(255,255,255,.16); font-size: 8px; letter-spacing: .1em; white-space: nowrap; }
footer { position: absolute; z-index: 20; bottom: 18px; left: 50%; display: flex; align-items: center; gap: 8px; transform: translateX(-50%); font-size: 13px; font-weight: 700; letter-spacing: .1em; color: rgba(255,255,255,.78); white-space: nowrap; }
footer a { display: inline-flex; align-items: center; gap: 6px; color: white; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.5); transition: color .18s, border-color .18s, transform .18s; }
footer a i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: white; color: #080a12; font: normal 700 12px/1 Arial, sans-serif; letter-spacing: 0; }
footer a:hover { color: #ffda45; border-color: #ffda45; transform: translateY(-1px); }

@media (max-width: 760px) {
  .arena { min-height: 1120px; }
  .arena::before { display: none; }
  .topbar { position: fixed; min-height: 62px; padding: 14px 17px; background: rgba(5,7,12,.82); backdrop-filter: blur(9px); }
  .minecraft-status { display: none; }
  .side { width: 100%; height: 57%; }
  .side-blue { inset: 0 0 auto; clip-path: polygon(0 0,100% 0,100% 88%,0 100%); }
  .side-red { inset: auto 0 0; clip-path: polygon(0 12%,100% 0,100% 100%,0 100%); }
  .fighter { position: relative; inset: auto; width: calc(100% - 46px); min-height: 100%; margin-left: 23px; padding: 78px 0 40px; align-items: flex-start; text-align: left; transform: scale(.87); transform-origin: top left; }
  .side-blue .fighter { right: auto; align-items: flex-start; text-align: left; transform: scale(.87); transform-origin: top left; }
  .side-red .fighter { left: auto; margin-left: 23px; padding-top: 96px; transform: scale(.87); transform-origin: top left; }
  .side-blue .stats { justify-content: flex-start; }
  .avatar-frame { width: 118px; margin-bottom: 14px; }
  h1 { font-size: clamp(34px, 12vw, 54px); }
  .stream-title { margin: 12px 0 8px; min-height: auto; }
  .choose-button { padding: 12px 14px; }
  .center-copy { position: absolute; top: 54%; width: 95px; transform: translate(-50%,-50%) rotate(-5deg); }
  .center-copy > p, .center-copy > small { display: none; }
  .versus { width: 78px; height: 78px; font-size: 34px; }
  .vote-counter { width: 154px; margin-left: -29px; padding: 9px 7px; }
  .demo-note { position: fixed; bottom: 8px; }
  footer { bottom: 10px; gap: 5px; font-size: 9px; letter-spacing: .07em; }
  footer a { gap: 4px; }
  footer a i { width: 17px; height: 17px; font-size: 10px; }
}

@media (max-width: 1100px) {
  .profile-slots { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
