:root {
  --text: #f8fbff;
  --soft: rgba(248, 251, 255, 0.72);
  --dim: rgba(248, 251, 255, 0.52);
  --panel: rgba(7, 10, 18, 0.76);
  --panel-strong: rgba(10, 14, 24, 0.9);
  --line: rgba(205, 231, 255, 0.18);
  --blue: #28adff;
  --cyan: #62f3ff;
  --pink: #ff4b9c;
  --red: #ff3048;
  --gold: #ffd64a;
  --green: #51f56d;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

body {
  position: relative;
  user-select: none;
}

#overlayRoot {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 1080px;
  height: 1920px;
  transform: translate(-50%, -50%) scale(var(--stage-scale, 1));
  transform-origin: center center;
  container-type: size;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(3, 5, 11, 0.45), rgba(4, 5, 10, 0.92) 74%),
    conic-gradient(from 200deg at 50% 54%, rgba(255, 48, 72, 0.22), rgba(37, 160, 255, 0.18), rgba(255, 214, 74, 0.16), rgba(255, 75, 156, 0.18), rgba(255, 48, 72, 0.22)),
    #05070d;
  isolation: isolate;
}

#overlayRoot::before {
  content: "";
  position: absolute;
  inset: -3%;
  z-index: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 80px);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 86%, transparent 100%);
  opacity: 0.52;
}

#overlayRoot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(40, 173, 255, 0.26), transparent 16%, transparent 84%, rgba(255, 48, 72, 0.24)),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 44%, rgba(0, 0, 0, 0.58) 100%);
  pointer-events: none;
}

#overlayRoot.mode-arena-only {
  background:
    radial-gradient(circle at 50% 43%, rgba(23, 220, 255, 0.14), transparent 30%),
    radial-gradient(circle at 50% 62%, rgba(255, 46, 128, 0.12), transparent 34%),
    #000;
}

#overlayRoot.mode-arena-only::before {
  opacity: 0.18;
}

#overlayRoot.mode-arena-only::after {
  background:
    radial-gradient(ellipse at 50% 54%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.46) 76%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.78));
}

#arenaCanvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

#cornerFrame {
  position: absolute;
  inset: 18px;
  z-index: 2;
  border: 1px solid rgba(145, 206, 255, 0.2);
  border-radius: 8px;
  pointer-events: none;
  clip-path: polygon(0 0, 18% 0, 18% 1px, 82% 1px, 82% 0, 100% 0, 100% 18%, calc(100% - 1px) 18%, calc(100% - 1px) 82%, 100% 82%, 100% 100%, 82% 100%, 82% calc(100% - 1px), 18% calc(100% - 1px), 18% 100%, 0 100%, 0 82%, 1px 82%, 1px 18%, 0 18%);
  box-shadow:
    inset 0 0 24px rgba(40, 173, 255, 0.18),
    inset 0 0 34px rgba(255, 48, 72, 0.11);
}

#heroHeader,
#rankingPanel,
#giftPanel,
#countdownPanel,
#giftSpotlight,
#eventFeedPanel,
#statsPanel,
#giftShortcuts,
#connectionStatus,
#winnerBanner,
#arenaShell {
  position: absolute;
  z-index: 5;
}

.mode-arena-only #cornerFrame {
  display: none;
}

.mode-arena-only #arenaShell {
  left: 66px;
  right: 66px;
  top: 250px;
  bottom: 300px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mode-arena-only #arenaTopStrip {
  display: none;
}

.mode-arena-only #countdownPanel {
  top: 64px;
  left: 50%;
  right: auto;
  width: 270px;
  padding: 12px 18px;
  transform: translateX(-50%);
  border-radius: 12px;
  border-color: rgba(98, 243, 255, 0.28);
  background:
    linear-gradient(90deg, rgba(98, 243, 255, 0.12), rgba(255, 75, 156, 0.1)),
    rgba(6, 8, 13, 0.68);
  backdrop-filter: blur(18px);
  box-shadow:
    0 0 34px rgba(61, 239, 255, 0.22),
    inset 0 0 24px rgba(255, 255, 255, 0.06);
}

.mode-arena-only #countdownPanel div,
.mode-arena-only #countdownPanel span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0;
  text-align: center;
}

.mode-arena-only #countdownPanel strong {
  margin: 4px 0 2px;
  font-size: 56px;
  line-height: 1;
  text-align: center;
}

.mode-arena-only #countdownPanel span {
  color: rgba(98, 243, 255, 0.82);
}

.mode-arena-only #giftPanel {
  left: 54px;
  right: 54px;
  top: auto;
  bottom: 96px;
  width: auto;
  height: 228px;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 0;
  overflow: hidden;
  border-color: rgba(255, 75, 156, 0.26);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(98, 243, 255, 0.08), transparent 24%, rgba(255, 75, 156, 0.08)),
    rgba(4, 7, 13, 0.74);
  box-shadow:
    0 0 44px rgba(255, 75, 156, 0.12),
    inset 0 0 32px rgba(98, 243, 255, 0.06);
}

.mode-arena-only #giftPanel .panelTitle {
  padding: 20px 16px 6px;
  color: #fff;
  font-size: 19px;
  line-height: 1.05;
}

.mode-arena-only #giftPanel .panelSub {
  padding: 0 16px 20px;
  align-self: end;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.mode-arena-only #giftRules {
  grid-row: 1 / 3;
  grid-column: 2;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 1fr);
  align-items: stretch;
  gap: 12px;
  padding: 16px 16px 16px 0;
  overflow: hidden;
}

.mode-arena-only .giftRule {
  min-height: 0;
  grid-template-columns: 1fr;
  grid-template-rows: 64px 1fr auto;
  justify-items: center;
  text-align: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.3);
}

.mode-arena-only .giftIcon {
  width: 62px;
  height: 62px;
  font-size: 38px;
}

.mode-arena-only .giftRule strong,
.mode-arena-only .giftRule em {
  max-width: 100%;
  text-align: center;
}

.mode-arena-only .giftRule strong {
  font-size: 17px;
}

.mode-arena-only .giftRule em {
  margin-top: 3px;
  font-size: 13px;
}

.mode-arena-only .giftRule b {
  font-size: 30px;
  line-height: 1;
}

.mode-arena-only #giftPanel .giftFoot {
  display: none;
}

.mode-arena-only #arenaGlow::before {
  width: 780px;
  height: 780px;
  top: 49%;
  border-width: 5px;
  border-color: rgba(61, 239, 255, 0.7);
  box-shadow:
    0 0 28px rgba(61, 239, 255, 0.7),
    inset 0 0 42px rgba(61, 239, 255, 0.18);
}

.mode-arena-only #arenaGlow::after {
  width: 560px;
  height: 560px;
  top: 49%;
  border-width: 2px;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 36px rgba(255, 255, 255, 0.12);
}

#heroHeader {
  top: 42px;
  left: 50%;
  width: 700px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 9px;
  text-align: center;
  pointer-events: none;
}

.topChips {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chip,
#domainPill {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(202, 225, 255, 0.26);
  border-radius: 8px;
  background: rgba(9, 13, 22, 0.72);
  color: #f9fbff;
  font-size: clamp(13px, 1.7cqh, 20px);
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.34);
}

.chip.small {
  min-height: 28px;
  padding: 0 11px;
  font-size: 13px;
}

.liveChip {
  border-color: rgba(255, 58, 79, 0.66);
  background: linear-gradient(135deg, rgba(255, 42, 69, 0.96), rgba(175, 0, 33, 0.88));
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.liveChip span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}

#domainPill {
  min-height: 30px;
  padding-inline: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(12px, 1.45cqh, 17px);
  font-weight: 800;
  border-radius: 999px;
}

#gameTitle {
  max-width: 100%;
  font-size: 82px;
  line-height: 0.92;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fff;
  text-wrap: balance;
  text-shadow:
    0 3px 0 rgba(0, 0, 0, 0.55),
    0 0 18px rgba(255, 255, 255, 0.58),
    -12px 10px 34px rgba(40, 173, 255, 0.58),
    12px 12px 36px rgba(255, 48, 90, 0.44);
}

#subtitle {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 30px;
  font-weight: 650;
  line-height: 1.12;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.62);
}

#subtitle::before,
#subtitle::after {
  content: "";
  width: clamp(40px, 7cqw, 120px);
  height: 2px;
  background: currentColor;
  opacity: 0.66;
  box-shadow: 0 0 14px currentColor;
}

#arenaShell {
  left: 23%;
  right: 25%;
  top: 18.8%;
  bottom: 21.8%;
  z-index: 2;
  border: 1px solid rgba(199, 224, 255, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 28%),
    linear-gradient(135deg, rgba(40, 173, 255, 0.12), rgba(255, 48, 72, 0.09));
  box-shadow:
    inset 0 0 45px rgba(36, 159, 255, 0.14),
    inset 0 0 55px rgba(255, 48, 90, 0.1),
    0 0 70px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

#arenaTopStrip {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 3;
}

#arenaGlow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}

#arenaGlow::before,
#arenaGlow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 58%;
  width: 112%;
  height: 72%;
  border: 4px solid rgba(76, 184, 255, 0.24);
  border-bottom-color: rgba(255, 70, 132, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 28px rgba(76, 184, 255, 0.24),
    inset 0 0 32px rgba(255, 70, 132, 0.14);
}

#arenaGlow::after {
  width: 78%;
  height: 48%;
  border-color: rgba(255, 214, 74, 0.24);
  box-shadow: 0 0 36px rgba(255, 214, 74, 0.2);
}

#rankingPanel {
  left: clamp(14px, 1.9cqw, 28px);
  top: 330px;
  bottom: 365px;
  width: 220px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#giftPanel {
  right: clamp(14px, 1.9cqw, 28px);
  top: 350px;
  bottom: 365px;
  width: 250px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#rankingPanel,
#giftPanel,
#countdownPanel,
#eventFeedPanel,
#statsPanel,
#giftSpotlight {
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    var(--panel);
  backdrop-filter: blur(18px);
  box-shadow:
    inset 0 0 24px rgba(76, 184, 255, 0.08),
    0 20px 55px rgba(0, 0, 0, 0.38);
}

#rankingPanel {
  box-shadow:
    inset 4px 0 24px rgba(40, 173, 255, 0.22),
    0 20px 55px rgba(0, 0, 0, 0.38);
}

#giftPanel {
  box-shadow:
    inset -4px 0 24px rgba(255, 75, 156, 0.18),
    0 20px 55px rgba(0, 0, 0, 0.38);
}

.panelTitle {
  flex: 0 0 auto;
  padding: 16px 15px 12px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(13px, 1.55cqh, 18px);
  font-weight: 950;
  line-height: 1.08;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(98, 243, 255, 0.35);
}

.panelSub,
.panelHint,
.giftFoot {
  color: var(--soft);
  font-size: clamp(11px, 1.3cqh, 15px);
  font-weight: 600;
  line-height: 1.35;
}

.panelSub {
  padding: 0 15px 12px;
}

.panelHint {
  margin: auto 12px 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

#leaderboard {
  list-style: none;
  min-height: 0;
  overflow: hidden;
}

#leaderboard li {
  position: relative;
  min-height: clamp(82px, 9.4cqh, 118px);
  display: grid;
  grid-template-columns: 30px 36px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 0 8px;
  padding: 12px 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

#leaderboard li::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--team), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  opacity: 0.18;
}

#leaderboard li.leader {
  border-top-color: rgba(255, 214, 74, 0.5);
}

#leaderboard .rank,
#leaderboard .rankOrb,
#leaderboard strong,
#leaderboard em {
  position: relative;
  z-index: 1;
}

#leaderboard .rank {
  grid-row: 1 / 3;
  color: #fff;
  font-size: clamp(22px, 3.2cqh, 34px);
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 14px currentColor;
}

#leaderboard .rankOrb {
  width: clamp(30px, 3.9cqh, 46px);
  height: clamp(30px, 3.9cqh, 46px);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  border: 4px solid var(--team);
  box-shadow:
    0 0 20px var(--team),
    inset 0 0 18px rgba(255, 255, 255, 0.12);
}

#leaderboard strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 23px;
  font-weight: 1000;
  line-height: 1.1;
  text-transform: uppercase;
}

#leaderboard em {
  grid-column: 3;
  align-self: start;
  color: var(--team);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 23px;
  font-style: normal;
  font-weight: 1000;
  line-height: 1.1;
  text-shadow: 0 0 18px var(--team);
}

#leaderboard .bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

#leaderboard .bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar-width);
  background: var(--team);
  box-shadow: 0 0 16px var(--team);
}

#giftRules {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
  padding: 0 11px 10px;
}

.giftRule {
  min-height: clamp(60px, 7.1cqh, 82px);
  display: grid;
  grid-template-columns: clamp(42px, 5.6cqh, 64px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    rgba(0, 0, 0, 0.26);
}

.giftIcon {
  width: clamp(40px, 5.1cqh, 58px);
  height: clamp(40px, 5.1cqh, 58px);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  font-size: clamp(26px, 3.6cqh, 43px);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.1);
}

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

.giftRule strong {
  color: #fff;
  font-size: clamp(13px, 1.7cqh, 19px);
  font-weight: 950;
  text-transform: uppercase;
}

.giftRule em {
  margin-top: 3px;
  color: var(--soft);
  font-size: clamp(12px, 1.45cqh, 16px);
  font-style: normal;
  font-weight: 750;
}

.giftRule b {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(16px, 2.3cqh, 27px);
  font-weight: 1000;
  text-shadow: 0 0 16px currentColor;
}

.giftFoot {
  margin: auto 12px 12px;
  padding: 12px;
  border: 1px solid rgba(255, 75, 156, 0.24);
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 75, 156, 0.055);
}

#countdownPanel {
  right: clamp(14px, 1.9cqw, 28px);
  top: 132px;
  width: 224px;
  padding: 14px 16px;
  text-transform: uppercase;
}

#countdownPanel div,
#countdownPanel span {
  display: block;
  color: var(--soft);
  font-size: clamp(11px, 1.35cqh, 15px);
  font-weight: 900;
}

#countdownPanel strong {
  display: block;
  margin: 8px 0 10px;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 54px;
  font-weight: 1000;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow:
    0 0 22px rgba(255, 255, 255, 0.5),
    10px 0 28px rgba(255, 48, 72, 0.32);
}

#giftSpotlight {
  left: 250px;
  bottom: 380px;
  width: 540px;
  min-height: 104px;
  display: grid;
  grid-template-columns: clamp(76px, 8.4cqh, 116px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-color: rgba(255, 48, 72, 0.58);
  background:
    linear-gradient(90deg, rgba(255, 48, 72, 0.2), rgba(10, 14, 24, 0.86) 36%, rgba(255, 255, 255, 0.04)),
    var(--panel-strong);
  box-shadow:
    0 0 28px rgba(255, 48, 72, 0.34),
    0 22px 60px rgba(0, 0, 0, 0.45);
}

#giftIconBig {
  display: grid;
  place-items: center;
  height: clamp(68px, 8cqh, 106px);
  font-size: clamp(50px, 6.8cqh, 88px);
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.42));
}

#giftSpotlight span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(15px, 2cqh, 23px);
  font-style: italic;
  font-weight: 700;
}

#giftSpotlight strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 39px;
  font-style: italic;
  font-weight: 1000;
  line-height: 1.05;
  text-shadow: 0 0 20px rgba(255, 48, 72, 0.62);
}

#eventFeedPanel {
  left: clamp(18px, 3cqw, 40px);
  bottom: clamp(22px, 2.6cqh, 42px);
  width: min(520px, 48cqw);
  height: 250px;
  overflow: hidden;
  padding-bottom: 10px;
}

#eventFeedPanel .panelTitle,
#statsPanel .panelTitle {
  padding: 13px 16px 8px;
}

#eventFeed {
  display: grid;
  gap: 6px;
  padding: 0 14px 10px;
}

.feedLine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-left-width: 5px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  animation: feedIn 0.22s ease-out;
}

.feedLine strong,
.feedLine span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedLine strong {
  color: #fff;
  font-size: clamp(12px, 1.55cqh, 17px);
  font-weight: 850;
}

.feedLine span {
  grid-column: 1;
  color: var(--soft);
  font-size: clamp(11px, 1.35cqh, 15px);
  font-weight: 650;
}

.feedLine b {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: #fff;
  font-size: clamp(14px, 1.8cqh, 22px);
  font-weight: 1000;
  white-space: nowrap;
}

@keyframes feedIn {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
}

#statsPanel {
  right: clamp(18px, 3cqw, 40px);
  bottom: clamp(22px, 2.6cqh, 42px);
  width: min(360px, 34cqw);
  min-height: 245px;
}

#statsPanel dl {
  display: grid;
  gap: 6px;
  padding: 0 14px 14px;
}

#statsPanel dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#statsPanel dt {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--soft);
  font-size: clamp(11px, 1.35cqh, 15px);
  font-weight: 700;
}

#statsPanel dd {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(12px, 1.65cqh, 18px);
  font-weight: 1000;
}

#giftShortcuts {
  left: 50%;
  bottom: 270px;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: clamp(8px, 1.3cqw, 18px);
  width: 520px;
  pointer-events: none;
}

.giftShortcut {
  width: clamp(52px, 6.4cqh, 82px);
  height: clamp(52px, 6.4cqh, 82px);
  display: grid;
  place-items: center;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(7, 10, 18, 0.78);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38);
}

.giftShortcut span {
  font-size: clamp(24px, 3.4cqh, 42px);
  line-height: 1;
}

.giftShortcut strong {
  margin-top: -4px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(11px, 1.5cqh, 16px);
  font-weight: 1000;
  line-height: 1;
}

#connectionStatus {
  left: 50%;
  bottom: clamp(7px, 0.9cqh, 16px);
  transform: translateX(-50%);
  min-width: 120px;
  max-width: min(70cqw, 660px);
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(10px);
}

#musicHost {
  position: absolute;
  left: -1px;
  top: -1px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

#musicHost iframe {
  width: 1px;
  height: 1px;
  border: 0;
}

#winnerBanner {
  left: 50%;
  top: 50%;
  z-index: 10;
  transform: translate(-50%, -50%) scale(0.92);
  max-width: min(86cqw, 900px);
  padding: clamp(24px, 4cqh, 48px) clamp(28px, 5cqw, 70px);
  border: 1px solid rgba(255, 214, 74, 0.58);
  border-radius: 14px;
  background: rgba(5, 7, 12, 0.86);
  color: #fff3a0;
  text-align: center;
  font-size: clamp(42px, 8cqh, 96px);
  font-weight: 1000;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  text-shadow: 0 0 28px rgba(255, 214, 74, 0.55);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.52);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#winnerBanner.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.theme-partei-battle #gameTitle {
  text-shadow:
    0 3px 0 rgba(0, 0, 0, 0.55),
    -14px 10px 34px rgba(36, 159, 255, 0.66),
    14px 12px 36px rgba(255, 75, 156, 0.56);
}

.theme-kreis-duell #arenaShell {
  left: 24%;
  right: 24%;
  border-radius: 28px;
}

@media (max-width: 820px) {
  #cornerFrame {
    inset: 10px;
  }

  #heroHeader {
    top: 12px;
  }

  .chip,
  #domainPill {
    min-height: 28px;
    padding-inline: 10px;
    font-size: 12px;
  }

  #gameTitle {
    font-size: clamp(35px, 9cqw, 70px);
  }

  #subtitle {
    font-size: 16px;
  }
}
