/* Shared identity: original transparent logo and subtle full viewport backdrop. */
body{position:relative;isolation:isolate;min-height:100vh}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:url('/assets/vice-city-background.jpg') center center/cover no-repeat;opacity:.12}
.image-brand{position:relative;display:block;flex-shrink:0;width:104px;height:94px;overflow:hidden;transform:none;padding:0;margin:0}
.image-brand img{position:absolute;display:block;width:146%;max-width:none;height:auto;left:-21%;top:-34%}
.topbar{background:rgba(17,14,25,.88)}
.admin-brand.image-brand{width:136px;height:123px;margin:0 auto 20px}
.login-brand.image-brand{width:172px;height:155px;margin:0 auto 24px}
@media(max-width:800px){.topbar .image-brand{width:78px;height:70px}}

body:has(.arena-layout) {
  --panel-width: 1440px;
}

body:has(.arena-layout) main {
  max-width: var(--panel-width);
}

.topbar:has(.image-brand) {
  padding-inline: max(24px, calc((100% - var(--panel-width)) / 2 + 24px));
  border-bottom-color: #543747;
}

.intro {
  padding-block: clamp(24px, 3vw, 40px) clamp(20px, 2vw, 30px);
}

.intro h1 em {
  color: #ff9ecb;
}

.intro.intro-compact {
  padding-block: 20px 18px;
}

.intro-compact h1 {
  margin: 0 0 7px;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -.4px;
}

.intro-compact p {
  font-size: 13px;
}

.screen-brand.stream-waiting {
  top: 14%;
  left: 5%;
}

.stream-waiting img {
  display: block;
  width: clamp(100px, 15vw, 180px);
  height: auto;
}

.priority-card { margin: 12px; padding: 12px; border: 1px solid #755b48; border-radius: 12px; background: #322434; }
.priority-card button { width: 100%; color: #ffd575; border-color: #947054; }
.priority-card p { margin: 9px 0; font-size: 12px; line-height: 1.5; color: #e2cfe3; }
.priority-tiers, .priority-options { display: flex; flex-wrap: wrap; gap: 6px; }
.priority-tiers span, .priority-options button { padding: 6px 9px; border: 1px solid #6b5266; border-radius: 7px; font-size: 12px; }
.priority-tiers strong, .priority-options button, .queue-priority { color: #ffd575; }
.priority-options { margin-bottom: 8px; }

.screen .control-overlay {
  display: block;
  z-index: 2;
  top: 19%;
  right: 3%;
  width: clamp(130px, 29%, 224px);
  padding: clamp(8px, 1.15vw, 14px);
  background: #14121fe8;
  border-radius: 12px;
  pointer-events: none;
}

.control-overlay .gamepad {
  flex-basis: 100%;
  width: 100%;
  height: auto;
}

.gamepad .pad-part { fill: #343641; }
.gamepad .pad-stick { fill: url(#pad-stick); }
.gamepad .pad-trigger { fill: #83eee1; opacity: 0; }
.gamepad .pad-part.pressed {
  fill: #157e78;
  filter: drop-shadow(0 0 4px #82eadc);
}
.gamepad .pad-face text {
  fill: inherit;
  font-size: 11px;
  pointer-events: none;
}
.gamepad .pad-face text[fill="#ffd657"] { fill: #ffd657; }
.gamepad .pad-face text[fill="#7dcfff"] { fill: #7dcfff; }
.gamepad .pad-face text[fill="#ff889b"] { fill: #ff889b; }
.gamepad .pad-face text[fill="#a4ed8d"] { fill: #a4ed8d; }

.arena-layout .screen {
  border-radius: 16px 16px 0 0;
  border-color: #634258;
}

.arena-layout .stream-bar {
  background: #211729;
  border-color: #51374e;
  border-radius: 0 0 16px 16px;
}

.arena-layout .sidebar,
.arena-layout .turn-panel,
.community-metrics > div {
  border-radius: 14px;
  border-color: #4c354b;
  box-shadow: 0 10px 25px #09060d38;
}

.arena-layout .sidebar {
  min-width: 0;
  min-height: 0;
  background: linear-gradient(160deg, #211727, #17121f 70%);
}

@media (min-width: 801px) {
  .arena-layout {
    grid-template-columns: minmax(0, 1fr) clamp(270px, 23vw, 306px);
  }
}

@media (max-width: 800px) {
  .topbar:has(.image-brand) {
    padding-inline: 16px;
  }
}
