:root {
  --bg-deep: #050810;
  --bg-panel: rgba(10, 18, 36, 0.82);
  --border: rgba(80, 140, 210, 0.22);
  --text: #e8eef5;
  --text-muted: rgba(175, 195, 220, 0.72);
  /* elektrik mavisi */
  --accent: #3aabf0;
  --accent-dim: rgba(58, 171, 240, 0.16);
  --accent-hot: #ffd45c;
  --team-red: #d4283a;
  --team-red-dim: rgba(212, 40, 58, 0.2);
  --danger: #ff5c6c;
  --radius: 16px;
  --font: "Outfit", system-ui, sans-serif;
  --shadow: 0 24px 64px rgba(0, 8, 24, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.app-user-error-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(180deg, rgba(28, 22, 36, 0.98) 0%, rgba(14, 16, 28, 0.97) 100%);
  border-bottom: 1px solid rgba(255, 120, 130, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.app-user-error-banner[hidden] {
  display: none !important;
}

.app-user-error-banner__text {
  margin: 0;
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 240, 240, 0.96);
}

.app-user-error-banner__close {
  flex-shrink: 0;
  margin: -0.2rem -0.25rem 0 0;
  padding: 0.15rem 0.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
}

.app-user-error-banner__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.pitch {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 85% at 15% 20%, rgba(20, 60, 120, 0.35), transparent 52%),
    radial-gradient(ellipse 90% 80% at 88% 75%, rgba(90, 20, 35, 0.32), transparent 50%),
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(15, 40, 80, 0.45), transparent 55%),
    linear-gradient(185deg, #060a14 0%, #0a1020 42%, #050810 100%);
}

.pitch::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 47px,
      rgba(255, 255, 255, 0.028) 47px,
      rgba(255, 255, 255, 0.028) 48px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 47px,
      rgba(255, 255, 255, 0.028) 47px,
      rgba(255, 255, 255, 0.028) 48px
    );
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 72%);
}

.glow {
  position: fixed;
  width: 42vmax;
  height: 42vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.glow--a {
  top: -12%;
  right: -8%;
  background: #2a8fd8;
}

.glow--b {
  bottom: -18%;
  left: -12%;
  background: #b02038;
}

/** Açılış: logo ortada, kalp atışı animasyonu + OYNA */
.screen-splash[hidden] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/** Kullanım logları (özel kod ile): tam ekran tablo */
.screen-usage-admin[hidden] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.screen-usage-admin {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 1.5rem);
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(30, 90, 160, 0.35), transparent 50%),
    linear-gradient(185deg, #050810 0%, #0c1428 45%, #070a12 100%);
  pointer-events: auto;
}

.screen-usage-admin .usage-admin__shell {
  width: min(980px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.screen-usage-admin .usage-admin__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.screen-usage-admin .usage-admin__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.screen-usage-admin .usage-admin__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.screen-usage-admin .usage-admin__hint {
  margin: 0;
  padding: 0.65rem 1.1rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.screen-usage-admin .usage-admin__hint strong {
  color: var(--accent);
  font-weight: 600;
}

.screen-usage-admin .usage-admin__status {
  margin: 0.35rem 1.1rem 0;
  font-size: 0.84rem;
  color: var(--accent-hot);
}

.screen-usage-admin .usage-admin__status[hidden] {
  display: none !important;
}

.screen-usage-admin .usage-admin__scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin: 0.75rem 0 0;
  padding: 0 1.1rem 1.1rem;
}

.screen-usage-admin .usage-admin__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.screen-usage-admin .usage-admin__table td {
  padding: 0.4rem 0.55rem;
  border-bottom: 1px solid rgba(80, 140, 210, 0.12);
  vertical-align: top;
  word-break: break-word;
}

.screen-usage-admin .usage-admin__row--head td {
  font-weight: 600;
  color: var(--accent);
  border-bottom-color: rgba(58, 171, 240, 0.35);
  background: rgba(58, 171, 240, 0.06);
}

.screen-usage-admin .usage-admin__empty {
  color: var(--text-muted);
  font-style: italic;
}

.screen-splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  background:
    radial-gradient(ellipse 95% 75% at 22% 35%, rgba(25, 70, 140, 0.4), transparent 55%),
    radial-gradient(ellipse 90% 70% at 82% 65%, rgba(110, 25, 45, 0.38), transparent 52%),
    linear-gradient(178deg, #04060c 0%, #0a1022 48%, #060810 100%);
  pointer-events: auto;
}

.splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vh, 2.75rem);
  text-align: center;
  max-width: min(640px, 100%);
}

.splash__logo--heartbeat {
  position: relative;
  z-index: 0;
  animation: splash-heartbeat 1.28s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
}

@keyframes splash-heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.06);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.11);
  }
  56% {
    transform: scale(1);
  }
}

.splash__logo-img {
  display: block;
  width: clamp(168px, 44vw, 280px);
  height: auto;
  margin: 0 auto clamp(0.75rem, 2vh, 1.1rem);
  border-radius: clamp(18px, 5vw, 28px);
  object-fit: contain;
  box-shadow:
    0 0 0 2px rgba(200, 215, 235, 0.2),
    0 0 48px rgba(45, 140, 220, 0.35),
    0 0 72px rgba(180, 35, 55, 0.22),
    0 28px 64px rgba(0, 0, 0, 0.55);
}

.splash__title {
  margin: 0;
  font-size: clamp(1.55rem, 4.5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.12;
  text-transform: uppercase;
  background: linear-gradient(180deg, #f4f8ff 0%, #8ec0f0 38%, #c8d8e8 72%, #e8f0f8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 14px rgba(0, 24, 56, 0.85)) drop-shadow(0 0 24px rgba(50, 120, 200, 0.35));
}

.splash__tag {
  margin: 0.55rem 0 0;
  font-size: clamp(0.82rem, 2.1vw, 1rem);
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

.btn--splash-play {
  position: relative;
  z-index: 2;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 0.95rem clamp(2rem, 6vw, 3.25rem);
  min-width: 12rem;
  color: #1a1208;
  background: linear-gradient(180deg, #ffe060 0%, #d89818 55%, #a87010 100%);
  border: 1px solid rgba(255, 230, 160, 0.45);
  box-shadow:
    0 0 0 1px rgba(255, 200, 80, 0.25),
    0 12px 40px rgba(200, 140, 30, 0.45),
    0 18px 48px rgba(0, 0, 0, 0.45);
}

.btn--splash-play:hover {
  filter: brightness(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .splash__logo--heartbeat {
    animation: none;
  }
}

/** Lobi: geniş ekranda marka | form | odalar (yatay düzen). */
.layout.layout--entry {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(1680px, 100%);
  margin: 0 auto;
  min-height: 100dvh;
  padding: clamp(0.45rem, 1.5vw, 0.95rem) clamp(0.65rem, 2.2vw, 1.25rem) 0.65rem;
  display: grid;
  align-items: start;
  align-content: center;
  gap: clamp(0.55rem, 1.8vw, 1.1rem);
}

.layout__entry-main {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  min-height: 0;
}

@media (min-width: 861px) {
  .layout.layout--entry {
    grid-template-columns: minmax(6.5rem, 10rem) minmax(300px, 1.5fr) minmax(200px, 0.46fr);
    grid-template-areas: "brand main rooms";
  }

  .layout--entry .brand--entry {
    grid-area: brand;
  }

  .layout--entry .layout__entry-main {
    grid-area: main;
  }

  .layout--entry .layout__rooms {
    grid-area: rooms;
  }

  .brand--entry {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 0.35rem 0.25rem;
    position: sticky;
    top: 0.5rem;
  }

  .brand--entry .brand__mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .brand--entry .brand__ball {
    width: 19px;
    height: 19px;
  }

  .brand--entry .brand__tower {
    width: 15px;
    height: 8px;
  }

  .brand--entry .brand__title {
    font-size: clamp(0.92rem, 1.1vw + 0.55rem, 1.12rem);
    line-height: 1.15;
    hyphens: auto;
  }

  .brand--entry .brand__tag {
    display: none;
  }
}

.layout__rooms {
  position: relative;
  padding-top: 0.25rem;
}

.layout__rooms .panel--rooms {
  position: sticky;
  top: clamp(0.35rem, 1.5vh, 0.65rem);
  display: flex;
  flex-direction: column;
  max-height: min(calc(100dvh - 1.5rem), 88vh, 620px);
}

.room-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.panel__heading--rooms {
  margin: 0;
  flex: 1;
}

.room-panel__hint {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.room-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  scrollbar-color: rgba(55, 165, 235, 0.35) rgba(6, 12, 18, 0.4);
}

.room-list::-webkit-scrollbar {
  width: 8px;
}

.room-list::-webkit-scrollbar-thumb {
  background: rgba(55, 165, 235, 0.3);
  border-radius: 8px;
}

.room-item {
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  text-align: left;
}

.room-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(70, 130, 200, 0.2);
  background: rgba(6, 12, 18, 0.55);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.room-item__btn:hover:not(:disabled) {
  border-color: rgba(55, 165, 235, 0.45);
  background: rgba(55, 165, 235, 0.08);
}

.room-item__btn:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.room-item--selected .room-item__btn:not(:disabled) {
  border-color: var(--accent);
  background: rgba(55, 165, 235, 0.14);
  box-shadow: 0 0 0 1px rgba(55, 165, 235, 0.25);
}

.room-item__name {
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.room-item__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.room-item__count {
  font-size: 0.8rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent-hot);
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  background: rgba(55, 165, 235, 0.1);
}

.room-item--full .room-item__count {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

.room-item--locked .room-item__count {
  color: rgba(220, 190, 130, 0.92);
  background: rgba(200, 140, 60, 0.14);
}

.room-item__badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--danger);
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 107, 122, 0.35);
  background: rgba(255, 107, 122, 0.08);
}

.room-item__btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  filter: grayscale(0.25);
}

.room-item__btn:disabled:hover {
  border-color: rgba(70, 130, 200, 0.15);
  background: rgba(6, 12, 18, 0.45);
}

.btn--tiny {
  padding: 0.35rem 0.6rem;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.room-list__empty {
  margin: 0;
  padding: 1.25rem 0.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand__mark {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(55, 165, 235, 0.2), rgba(10, 20, 28, 0.9));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.brand__mark--svg {
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(160, 185, 220, 0.22);
  background: #080c14;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4) inset,
    0 6px 22px rgba(25, 80, 140, 0.35);
}

.brand__mark--svg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand__ball {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0%, #b8ffc8 40%, #2d8a5c 100%);
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.brand__tower {
  position: absolute;
  width: 18px;
  height: 10px;
  left: 50%;
  bottom: 9px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(200, 255, 106, 0.35), rgba(55, 165, 235, 0.5));
  border-radius: 2px 2px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.brand__title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand--entry .brand__title {
  background: linear-gradient(180deg, #f2f6ff 0%, #6a9fd8 48%, #b0c8e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 16, 40, 0.65));
}

.brand__tag {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 28ch;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel__heading {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field__inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field__label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.field__input {
  width: 100%;
  padding: 0.75rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(6, 12, 18, 0.65);
  border: 1px solid rgba(70, 130, 200, 0.22);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field__input::placeholder {
  color: rgba(130, 155, 185, 0.45);
}

.field__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.field__input--mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field__hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.field__join-actions {
  margin: 0.5rem 0 0;
}

.room-list__status {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
  min-height: 1.2em;
}

.room-list__status:first-of-type:empty {
  display: none;
}

.room-item__badge--live {
  margin-left: 0.35rem;
  font-size: 0.65rem;
  opacity: 0.85;
}

.field--hidden[hidden] {
  display: none !important;
}

.field--inline {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.55rem;
}

.field--inline input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.field__label--inline {
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 400;
}

.create-settings[hidden] {
  display: none !important;
}

.create-settings {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 0.15rem;
  margin-top: 0.05rem;
}

.create-settings__bar {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(70, 130, 200, 0.28),
    transparent
  );
  margin-bottom: 0.1rem;
}

.create-settings__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
}

.create-settings__lead {
  margin: -0.25rem 0 0;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.create-settings .field--create-title {
  margin-bottom: 0;
}

.field__hint--create-title {
  margin: -0.2rem 0 0.1rem;
  font-size: 0.72rem;
  line-height: 1.35;
}

.option-group {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.option-group__legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.option-group__hint {
  margin: -0.15rem 0 0.4rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  clear: both;
}

.pill-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  clear: both;
}

.pill-row--wrap {
  flex-wrap: wrap;
}

.pill-row--nowrap {
  flex-wrap: nowrap;
}

.pill-row--compact {
  gap: 0.28rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(55, 165, 235, 0.35) transparent;
}

.pill-row--compact::-webkit-scrollbar {
  height: 4px;
}

.pill-row--compact::-webkit-scrollbar-thumb {
  background: rgba(55, 165, 235, 0.35);
  border-radius: 4px;
}

.pill-row--compact .pill {
  padding: 0.38rem 0.45rem;
  min-width: 1.75rem;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.pill {
  font: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.5rem 0.65rem;
  min-width: 2.35rem;
  border-radius: 10px;
  border: 1px solid rgba(55, 165, 235, 0.22);
  background: rgba(6, 12, 18, 0.55);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pill--wide {
  min-width: auto;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

.pill:hover {
  border-color: rgba(55, 165, 235, 0.4);
  background: rgba(55, 165, 235, 0.08);
}

.pill:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.pill[aria-pressed="true"] {
  border-color: var(--accent);
  background: rgba(55, 165, 235, 0.2);
  color: var(--accent-hot);
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.actions--footer {
  margin-top: 0.65rem;
}

.btn {
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 12px;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--ghost {
  color: var(--text);
  background: rgba(55, 165, 235, 0.08);
  border-color: rgba(55, 165, 235, 0.22);
}

.btn--ghost:hover {
  background: rgba(55, 165, 235, 0.14);
  border-color: rgba(55, 165, 235, 0.35);
}

.btn--ghost[aria-pressed="true"] {
  background: rgba(55, 165, 235, 0.22);
  border-color: var(--accent);
  color: var(--accent-hot);
}

.btn--primary {
  color: #061018;
  background: linear-gradient(180deg, #4eb8ff 0%, #1e78d0 52%, #1458a8 100%);
  border-color: rgba(200, 230, 255, 0.28);
  box-shadow: 0 8px 28px rgba(40, 120, 200, 0.38);
}

.btn--primary:hover {
  filter: brightness(1.05);
}

.btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.field__input.invalid,
.field__input:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}

.foot {
  text-align: center;
}

@media (min-width: 861px) {
  .layout__entry-main .foot {
    text-align: left;
  }
}

@media (max-width: 860px) {
  .layout.layout--entry {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "main"
      "rooms";
    max-width: 440px;
    align-content: start;
  }

  .brand--entry {
    flex-direction: row;
    align-items: center;
    text-align: left;
    position: relative;
    top: auto;
    padding: 0;
  }

  .brand--entry .brand__mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .brand--entry .brand__ball {
    width: 22px;
    height: 22px;
  }

  .brand--entry .brand__tower {
    width: 18px;
    height: 10px;
  }

  .brand--entry .brand__title {
    font-size: 1.45rem;
  }

  .brand--entry .brand__tag {
    display: block;
  }

  .layout__rooms .panel--rooms {
    position: relative;
    top: auto;
    max-height: min(380px, 52vh);
  }
}

.foot__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(70, 130, 200, 0.15);
  background: rgba(8, 16, 24, 0.5);
}

@media (min-width: 480px) {
  .brand__title {
    font-size: 1.6rem;
  }
}

@media (min-width: 920px) {
  .create-settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.95rem;
    align-items: start;
  }

  .create-settings__bar,
  .create-settings__title,
  .create-settings__lead,
  .create-settings > .field--create-title,
  .create-settings > .field__hint--create-title {
    grid-column: 1 / -1;
  }

  .create-settings > .option-group:first-of-type {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1120px) {
  .create-settings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem 0.85rem;
  }

  .create-settings > .option-group:first-of-type {
    grid-column: auto;
  }

  .create-settings__lead {
    margin-bottom: 0;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  #screen-entry .layout.layout--entry {
    align-content: start;
    min-height: 100dvh;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }

  #screen-entry .panel {
    padding: 0.72rem 1rem 0.8rem;
  }

  #screen-entry .layout__rooms .panel--rooms {
    max-height: min(calc(100dvh - 0.75rem), 94vh);
  }

  #screen-entry .brand--entry .brand__title {
    font-size: 1rem;
  }
}

/* 3B saha (Three.js canvas) */
.arena-canvas-host {
  width: 100%;
  max-width: min(96vw, 920px);
  aspect-ratio: 16 / 10;
  max-height: min(72vh, 620px);
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid rgba(70, 130, 200, 0.22);
  background: rgba(4, 10, 14, 0.75);
  box-shadow: var(--shadow);
  outline: none;
  overflow: hidden;
}

.arena-canvas-host canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.arena-error {
  margin: 0;
  max-width: 36rem;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.arena-error code {
  font-size: 0.8em;
  color: var(--accent-hot);
}

/* —— Oda / arena ekranı —— */

.screen-room[hidden] {
  display: none !important;
}

.screen-room {
  position: fixed;
  inset: 0;
  z-index: 50;
  width: 100%;
  min-height: 100dvh;
  height: 100dvh;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(20, 55, 100, 0.4), rgba(4, 8, 16, 0.97)),
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(90, 25, 40, 0.15), transparent 55%),
    #040810;
}

/* Mobil tam ekran API (oda + HUD) — tarayıcı gerçek tam ekrana geçince tüm alanı kapla */
.screen-room:fullscreen {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  min-height: 100%;
}
.screen-room:-webkit-full-screen {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  min-height: 100%;
}

.room-bar {
  position: absolute;
  /* Mobil yan çubuklar z-index:25; üst bar daha üstte olmalı yoksa «Lobiye dön» tıklanamaz */
  z-index: 35;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  padding: 0.65rem clamp(0.75rem, 3vw, 1.25rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(6, 12, 18, 0.92) 0%, rgba(6, 12, 18, 0.55) 65%, transparent 100%);
  pointer-events: none;
}

.room-bar .btn,
.room-bar__leading,
.room-bar__info {
  pointer-events: auto;
}

.room-bar__leading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  min-width: 0;
}

/** Üst çubukta süre («Lobiye dön»ün hemen altı); sahada mutlak konum yok */
.room-bar .room-hud--in-bar {
  position: relative;
  left: auto;
  top: auto;
  right: auto;
  bottom: auto;
  z-index: 1;
  max-width: min(100%, 11rem);
  margin: 0;
  padding: 0.22rem 0.42rem;
  font-size: 0.66rem;
  font-weight: 600;
  pointer-events: none;
}

.room-bar__info {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  min-width: 0;
}

.room-bar__title {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.room-bar__sep {
  opacity: 0.45;
}

.room-bar__detail {
  line-height: 1.35;
}

.room-arena-area {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

/* Gol kutlaması: sahayı kaplayan kısa animasyon (süre js ile Arena3D.GOAL_CELEBRATION_SEC ile uyumlu) */
.goal-celebration {
  position: absolute;
  inset: 0;
  z-index: 32;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.goal-celebration[hidden] {
  display: none !important;
}

.goal-celebration--active::before {
  content: "";
  position: absolute;
  inset: -25%;
  animation: goal-bg-pulse var(--goal-celebration-sec, 2.5s) ease-out forwards;
}

.goal-celebration--active[data-goal-var="0"]::before {
  background: radial-gradient(
    circle at 50% 42%,
    rgba(126, 240, 184, 0.42) 0%,
    rgba(40, 180, 120, 0.12) 38%,
    transparent 62%
  );
}

.goal-celebration--active[data-goal-var="1"]::before {
  background: radial-gradient(
    circle at 48% 38%,
    rgba(255, 220, 120, 0.48) 0%,
    rgba(200, 120, 40, 0.14) 40%,
    transparent 65%
  );
}

.goal-celebration--active[data-goal-var="2"]::before {
  background: radial-gradient(
    circle at 52% 44%,
    rgba(100, 220, 255, 0.4) 0%,
    rgba(50, 100, 200, 0.12) 42%,
    transparent 64%
  );
}

.goal-celebration--active[data-goal-var="3"]::before {
  background: radial-gradient(
    ellipse 85% 70% at 50% 100%,
    rgba(255, 140, 90, 0.38) 0%,
    rgba(180, 60, 120, 0.1) 45%,
    transparent 68%
  );
}

.goal-celebration--active[data-goal-var="4"]::before {
  background: radial-gradient(
    circle at 50% 45%,
    rgba(200, 150, 255, 0.42) 0%,
    rgba(120, 80, 220, 0.12) 38%,
    transparent 62%
  );
}

.goal-celebration--active[data-goal-var="5"]::before {
  background: radial-gradient(
    circle at 45% 40%,
    rgba(180, 255, 130, 0.4) 0%,
    rgba(60, 200, 100, 0.14) 40%,
    transparent 63%
  );
}

.goal-celebration--active[data-goal-var="6"]::before {
  background: radial-gradient(
    circle at 50% 42%,
    rgba(200, 235, 255, 0.45) 0%,
    rgba(80, 140, 200, 0.12) 40%,
    transparent 64%
  );
}

.goal-celebration--active[data-goal-var="7"]::before {
  background: radial-gradient(
    circle at 55% 48%,
    rgba(255, 120, 200, 0.42) 0%,
    rgba(255, 60, 140, 0.1) 38%,
    transparent 62%
  );
}

.goal-celebration--active[data-goal-var="own"]::before {
  background: radial-gradient(
    circle at 50% 45%,
    rgba(255, 90, 90, 0.35) 0%,
    rgba(120, 40, 55, 0.14) 42%,
    transparent 65%
  );
}

@keyframes goal-bg-pulse {
  0% {
    opacity: 0;
    transform: scale(0.65);
  }
  18% {
    opacity: 1;
    transform: scale(1);
  }
  72% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: scale(1.15);
  }
}

.goal-celebration--active[data-goal-var="5"] {
  perspective: 960px;
}

.goal-celebration__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 1rem 1.75rem;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(12, 28, 22, 0.92) 0%, rgba(6, 14, 18, 0.88) 100%);
  border: 1px solid rgba(126, 240, 184, 0.38);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(55, 165, 235, 0.15);
  backface-visibility: hidden;
}

.goal-celebration--active[data-goal-var="0"] .goal-celebration__card {
  animation: goal-card-pop var(--goal-celebration-sec, 2.5s) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.goal-celebration--active[data-goal-var="1"] .goal-celebration__card {
  border-color: rgba(255, 200, 100, 0.48);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 48px rgba(255, 200, 100, 0.22);
  animation: goal-card-drop var(--goal-celebration-sec, 2.5s) cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

.goal-celebration--active[data-goal-var="2"] .goal-celebration__card {
  border-color: rgba(120, 220, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 44px rgba(100, 210, 255, 0.2);
  animation: goal-card-zoom var(--goal-celebration-sec, 2.5s) cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.goal-celebration--active[data-goal-var="3"] .goal-celebration__card {
  border-color: rgba(255, 150, 110, 0.42);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(255, 130, 100, 0.18);
  animation: goal-card-slide var(--goal-celebration-sec, 2.5s) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.goal-celebration--active[data-goal-var="4"] .goal-celebration__card {
  border-color: rgba(200, 160, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 42px rgba(190, 140, 255, 0.2);
  animation: goal-card-shake var(--goal-celebration-sec, 2.5s) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.goal-celebration--active[data-goal-var="5"] .goal-celebration__card {
  border-color: rgba(160, 255, 140, 0.42);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(120, 255, 160, 0.18);
  transform-style: preserve-3d;
  animation: goal-card-flip var(--goal-celebration-sec, 2.5s) cubic-bezier(0.24, 1, 0.32, 1) forwards;
}

.goal-celebration--active[data-goal-var="6"] .goal-celebration__card {
  border-color: rgba(170, 220, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(160, 210, 255, 0.2);
  animation: goal-card-elastic var(--goal-celebration-sec, 2.5s) cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

.goal-celebration--active[data-goal-var="7"] .goal-celebration__card {
  border-color: rgba(255, 120, 200, 0.48);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 44px rgba(255, 100, 180, 0.2);
  animation: goal-card-twist var(--goal-celebration-sec, 2.5s) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.goal-celebration--active[data-goal-var="own"] .goal-celebration__card {
  border-color: rgba(255, 100, 90, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.38) inset,
    0 18px 44px rgba(0, 0, 0, 0.5),
    0 0 36px rgba(200, 60, 70, 0.18);
  animation: goal-card-shake var(--goal-celebration-sec, 2.5s) cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.goal-celebration__emoji {
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.goal-celebration__word {
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 11vw, 3.4rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: #f2fff6;
  text-shadow:
    0 2px 0 rgba(20, 60, 40, 0.9),
    0 0 28px rgba(126, 240, 184, 0.5);
}

.goal-celebration__name {
  font-family: Outfit, system-ui, sans-serif;
  font-size: clamp(0.85rem, 3.5vw, 1rem);
  font-weight: 600;
  color: rgba(180, 245, 210, 0.9);
  max-width: min(70vw, 14rem);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes goal-card-pop {
  0% {
    opacity: 0;
    transform: scale(0.45) translateY(1.25rem);
    filter: blur(10px);
  }
  12% {
    opacity: 1;
    transform: scale(1.06) translateY(0);
    filter: blur(0);
  }
  20% {
    transform: scale(1) translateY(0);
  }
  76% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(1.08) translateY(-0.35rem);
    filter: blur(6px);
  }
}

@keyframes goal-card-drop {
  0% {
    opacity: 0;
    transform: translateY(-110vh) scale(0.88);
    filter: blur(4px);
  }
  14% {
    opacity: 1;
    transform: translateY(0.6rem) scale(1.04);
    filter: blur(0);
  }
  22% {
    transform: translateY(0) scale(1);
  }
  76% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-2rem) scale(1.06);
    filter: blur(5px);
  }
}

@keyframes goal-card-zoom {
  0% {
    opacity: 0;
    transform: scale(2.85);
    filter: blur(14px);
  }
  16% {
    opacity: 1;
    transform: scale(0.97);
    filter: blur(0);
  }
  24% {
    transform: scale(1);
  }
  76% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.12);
    filter: blur(8px);
  }
}

@keyframes goal-card-slide {
  0% {
    opacity: 0;
    transform: translateX(-115vw) rotate(-10deg);
    filter: blur(6px);
  }
  15% {
    opacity: 1;
    transform: translateX(0.5rem) rotate(2deg);
    filter: blur(0);
  }
  22% {
    transform: translateX(0) rotate(0deg);
  }
  76% {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateX(1.5rem) rotate(6deg);
    filter: blur(6px);
  }
}

@keyframes goal-card-shake {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(0.75rem);
    filter: blur(8px);
  }
  11% {
    opacity: 1;
    transform: scale(1.05) translateY(0);
    filter: blur(0);
  }
  18% {
    transform: scale(1) translateY(0);
  }
  32% {
    transform: translateX(-0.55rem) scale(1);
  }
  36% {
    transform: translateX(0.55rem) scale(1);
  }
  40% {
    transform: translateX(-0.35rem) scale(1);
  }
  44% {
    transform: translateX(0.2rem) scale(1);
  }
  48% {
    transform: translateX(0) scale(1);
  }
  76% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.06) translateY(-0.4rem);
    filter: blur(5px);
  }
}

@keyframes goal-card-flip {
  0% {
    opacity: 0;
    transform: rotateY(-88deg) scale(0.65);
    filter: blur(6px);
  }
  18% {
    opacity: 1;
    transform: rotateY(6deg) scale(1.04);
    filter: blur(0);
  }
  26% {
    transform: rotateY(0) scale(1);
  }
  76% {
    opacity: 1;
    transform: rotateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: rotateY(22deg) scale(1.05);
    filter: blur(6px);
  }
}

@keyframes goal-card-elastic {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  11% {
    opacity: 1;
    transform: scale(1.18);
  }
  17% {
    transform: scale(0.9);
  }
  23% {
    transform: scale(1.06);
  }
  29% {
    transform: scale(0.98);
  }
  35% {
    transform: scale(1);
  }
  76% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.15);
    filter: blur(5px);
  }
}

@keyframes goal-card-twist {
  0% {
    opacity: 0;
    transform: rotate(-38deg) scale(0.32);
    filter: blur(10px);
  }
  14% {
    opacity: 1;
    transform: rotate(12deg) scale(1.07);
    filter: blur(0);
  }
  22% {
    transform: rotate(-4deg) scale(1);
  }
  28% {
    transform: rotate(0) scale(1);
  }
  76% {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: rotate(18deg) scale(1.08);
    filter: blur(7px);
  }
}

.screen-room .arena-canvas-host {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  aspect-ratio: unset;
  max-height: none;
  margin: 0;
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(70, 130, 200, 0.12);
}

/* Mobil maç: yan çubuklar (kaydırma yok), ortada canvas */
.room-arena-area--mobile-touch {
  touch-action: none;
}

.mobile-arena-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  /* Üst çubuk (z-index 35) altında kalmalı; tıklamaları çalmaması için room-bar’dan düşük */
  z-index: 12;
  width: min(22vw, 7.75rem);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.35rem 0.2rem;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
}

.mobile-arena-rail--left {
  left: 0;
  justify-content: flex-end;
  padding-top: 10vh;
  padding-bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
  background: linear-gradient(90deg, rgba(4, 10, 18, 0.88) 0%, rgba(4, 10, 18, 0.35) 72%, transparent 100%);
}

.mobile-arena-rail--right {
  right: 0;
  justify-content: flex-end;
  padding-top: 10vh;
  padding-bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
  background: linear-gradient(270deg, rgba(4, 10, 18, 0.88) 0%, rgba(4, 10, 18, 0.35) 72%, transparent 100%);
}

.mobile-arena-rail__cap {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
}

.mobile-arena-stick {
  position: relative;
  width: min(26vw, 5.35rem);
  height: min(26vw, 5.35rem);
  border-radius: 50%;
  background: rgba(58, 171, 240, 0.1);
  border: 2px solid rgba(58, 171, 240, 0.38);
  touch-action: none;
}

.mobile-arena-stick__knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42%;
  height: 42%;
  margin-left: -21%;
  margin-top: -21%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.38), rgba(58, 171, 240, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  transform: translate(0, 0);
}

.mobile-arena-btn {
  width: min(15.5vw, 3.55rem);
  min-height: 2.38rem;
  padding: 0.22rem 0.32rem;
  border-radius: 10px;
  border: 1px solid rgba(58, 171, 240, 0.42);
  font-family: var(--font);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  background: rgba(58, 171, 240, 0.16);
  box-shadow: 0 3px 11px rgba(0, 0, 0, 0.34);
  touch-action: manipulation;
}

.mobile-arena-btn--jump {
  background: rgba(90, 200, 130, 0.22);
  border-color: rgba(120, 220, 160, 0.48);
}

.mobile-arena-btn--kick {
  background: rgba(255, 212, 92, 0.18);
  border-color: rgba(255, 212, 92, 0.45);
  color: #fff8e6;
}

.mobile-arena-btn:active {
  transform: scale(0.96);
}

.room-arena-area--mobile-touch .room-hud--score {
  top: 0.1rem;
  right: 0.1rem;
  max-width: min(44vw, 9.25rem);
  padding: 0.2rem 0.38rem;
  font-size: 0.6rem;
  border-radius: 7px;
}

@media (orientation: landscape) and (max-height: 420px) {
  .mobile-arena-rail__cap {
    display: none;
  }
  .mobile-arena-rail--left,
  .mobile-arena-rail--right {
    padding-top: 6vh;
  }
  .mobile-arena-stick {
    width: min(22vw, 4.35rem);
    height: min(22vw, 4.35rem);
  }
  .mobile-arena-btn {
    width: min(14vw, 3.2rem);
    min-height: 2.1rem;
    font-size: 0.52rem;
  }
}

/* Mobil maç aktifken üst başlık + skor tablosu daha kompakt */
.screen-room--mobile-touch .room-bar__title {
  font-size: 0.74rem;
}

.screen-room--mobile-touch .room-bar__info {
  font-size: 0.68rem;
}

.screen-room--mobile-touch .room-bar .room-hud--in-bar {
  font-size: 0.58rem;
  padding: 0.16rem 0.34rem;
}

.screen-room--mobile-touch .room-hud--score {
  top: 0.06rem;
  right: 0.06rem;
  max-width: min(42vw, 8.75rem);
  padding: 0.16rem 0.32rem;
  font-size: 0.56rem;
}

.screen-room--mobile-touch .room-hud--score .room-scoreboard {
  gap: 0.12rem;
  min-width: 6rem;
}

.screen-room--mobile-touch .room-hud--score .room-scoreboard__title {
  font-size: 0.5rem !important;
  margin-bottom: 0.06rem !important;
}

.screen-room--mobile-touch .room-hud--score .room-scoreboard__row {
  gap: 0.45rem;
  line-height: 1.15;
}

.screen-room--mobile-touch .room-hud--score .room-scoreboard__name {
  font-size: 0.55rem;
  max-width: 8ch;
}

.screen-room--mobile-touch .room-hud--score .room-scoreboard__pts {
  font-size: 0.58rem;
}

.room-hud {
  position: absolute;
  z-index: 40;
  top: 3.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(6, 12, 18, 0.72);
  color: #e8f4ec;
  border: 1px solid rgba(55, 165, 235, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  max-width: min(42%, 200px);
}

.room-hud--timer {
  left: 0.35rem;
}

.room-hud--score {
  right: 0.35rem;
  text-align: right;
}

/* Elenen oyuncu: izle / ana sayfa */
.eliminated-spectator-overlay {
  position: absolute;
  inset: 0;
  z-index: 48;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 10, 16, 0.76);
  backdrop-filter: blur(5px);
  box-sizing: border-box;
}

.eliminated-spectator-overlay[hidden] {
  display: none !important;
}

.eliminated-spectator-overlay__panel {
  width: 100%;
  max-width: min(96vw, 26rem);
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(70, 130, 200, 0.3);
  background: linear-gradient(165deg, rgba(18, 34, 42, 0.97) 0%, rgba(8, 16, 22, 0.96) 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.eliminated-spectator-overlay__title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e8f4ec;
}

.eliminated-spectator-overlay__lead {
  margin: 0 0 1rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(200, 220, 210, 0.88);
}

.eliminated-spectator-overlay__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Maç bitişi: kutlama + kazanan + puan tablosu */
.match-end-overlay {
  position: absolute;
  inset: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 10, 16, 0.82);
  backdrop-filter: blur(6px);
  animation: match-end-fade-in 0.45s ease-out both;
}

.match-end-overlay[hidden] {
  display: none !important;
}

@keyframes match-end-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.match-end-overlay__panel {
  position: relative;
  width: min(92vw, 380px);
  max-height: min(82vh, 520px);
  overflow: auto;
  padding: 1.35rem 1.25rem 1.15rem;
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(18, 32, 48, 0.97), rgba(8, 18, 28, 0.98));
  border: 1px solid rgba(120, 230, 180, 0.28);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 18px 48px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.match-end__celebrate {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 14px;
}

.match-end__spark {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #7ef0b8;
  opacity: 0;
  box-shadow: 0 0 18px #7ef0b8;
  animation: match-end-spark 2.8s ease-in-out infinite;
}

.match-end__spark--b {
  left: 18%;
  top: 22%;
  background: #f0d878;
  box-shadow: 0 0 14px #f0d878;
  animation-delay: 0.35s;
}

.match-end__spark--c {
  right: 14%;
  top: 30%;
  background: #88c8ff;
  box-shadow: 0 0 16px #88c8ff;
  animation-delay: 0.7s;
}

@keyframes match-end-spark {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.4) translateY(0);
  }
  20% {
    opacity: 1;
    transform: scale(1) translateY(-6px);
  }
  45% {
    opacity: 0.85;
    transform: scale(1.05) translateY(4px);
  }
}

.match-end__winner-phase {
  position: relative;
  z-index: 1;
  animation: match-end-winner-pop 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes match-end-winner-pop {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.match-end__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(180, 225, 200, 0.75);
}

.match-end__winner-title {
  margin: 0 0 0.3rem;
  font-size: clamp(1.45rem, 5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  color: #f2fff8;
  text-shadow: 0 0 24px rgba(126, 240, 184, 0.35);
}

.match-end__winner-caption {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(200, 230, 215, 0.88);
  line-height: 1.4;
}

.match-end__scores-phase {
  position: relative;
  z-index: 1;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(70, 130, 200, 0.2);
  text-align: left;
  animation: match-end-scores-in 0.55s ease-out both;
}

.match-end-overlay.match-end-overlay--scores-ready .match-end__scores-phase {
  display: block;
}

@keyframes match-end-scores-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.match-end__scores-heading {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(180, 225, 200, 0.8);
}

.match-end__board {
  font-size: 0.82rem;
}

.match-end__board .room-scoreboard {
  gap: 0.35rem;
}

.match-end__board .room-scoreboard__name {
  max-width: 14ch;
}

.match-end__actions {
  margin-top: 1.15rem;
  position: relative;
  z-index: 1;
}

.match-end__btn-exit {
  width: 100%;
}

.room-scoreboard {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 7.5rem;
}

.room-scoreboard__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.65rem;
  line-height: 1.25;
}

.room-scoreboard__name {
  font-weight: 500;
  color: rgba(232, 244, 236, 0.92);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 9.5ch;
}

.room-scoreboard__name--eliminated {
  color: #e54545 !important;
  text-decoration: line-through;
  text-decoration-thickness: 0.075em;
  text-decoration-color: rgba(229, 69, 69, 0.95);
}

.room-scoreboard__pts {
  font-variant-numeric: tabular-nums;
  color: #7ef0b8;
}

.room-match-overlay {
  position: absolute;
  inset: 0;
  z-index: 48;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(0.65rem, 2.5vh, 1.25rem) clamp(0.5rem, 2vw, 1rem);
  background: rgba(4, 10, 14, 0.78);
  backdrop-filter: blur(8px);
  overflow-y: auto;
  box-sizing: border-box;
}

.room-match-overlay[hidden] {
  display: none !important;
}

.room-net-lobby {
  position: absolute;
  inset: 0;
  z-index: 47;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(0.65rem, 2.5vh, 1.25rem) clamp(0.5rem, 2vw, 1rem);
  background: rgba(4, 10, 14, 0.82);
  backdrop-filter: blur(8px);
  overflow-y: auto;
  box-sizing: border-box;
}

.room-net-lobby[hidden] {
  display: none !important;
}

.room-net-lobby__panel {
  width: 100%;
  max-width: min(96vw, 52rem);
  margin-top: clamp(0.5rem, 3vh, 2rem);
  margin-bottom: auto;
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1rem, 2.8vw, 1.45rem);
  border-radius: 16px;
  border: 1px solid rgba(70, 130, 200, 0.28);
  background: linear-gradient(165deg, rgba(14, 28, 24, 0.96) 0%, rgba(6, 14, 18, 0.94) 100%);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.room-net-lobby__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 0.45rem;
}

.room-net-lobby__back {
  padding: 0.2rem 0.55rem;
  font-size: 0.8rem;
}

.room-net-lobby__back:hover {
  color: rgba(200, 235, 255, 0.95);
  border-color: rgba(120, 190, 240, 0.35);
}

.room-net-lobby__head {
  margin-bottom: 0.85rem;
}

.room-net-lobby__body {
  display: grid;
  grid-template-columns: minmax(11.5rem, 1fr) minmax(16rem, 1.4fr);
  gap: 1rem 1.35rem;
  align-items: start;
}

@media (max-width: 36rem) {
  .room-net-lobby__body {
    grid-template-columns: 1fr;
  }
}

.room-net-lobby__aside {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.room-net-lobby__main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.room-net-lobby__title {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #e8f4ec;
  line-height: 1.25;
}

.room-net-lobby__lead {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(200, 220, 210, 0.88);
}

.room-net-lobby__label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(200, 230, 214, 0.75);
}

.room-net-lobby__cosmetics {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.65rem 0.55rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(70, 130, 200, 0.14);
}

.room-net-lobby__cosmetics[hidden] {
  display: none !important;
}

.room-net-lobby__cos-lead {
  margin: 0 0 0.55rem;
  font-size: 0.76rem;
  line-height: 1.35;
  color: rgba(200, 220, 210, 0.88);
}

.room-net-lobby__pick {
  max-height: min(42vh, 20rem);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  padding-bottom: 0.15rem;
}

.room-net-lobby__roster {
  list-style: none;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(70, 130, 200, 0.12);
  min-height: 2.5rem;
}

.room-net-lobby__roster:empty::before {
  content: "Henüz kimse yok.";
  font-size: 0.8rem;
  color: rgba(180, 200, 195, 0.65);
}

.room-net-lobby__player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  padding: 0.35rem 0;
  color: rgba(232, 244, 236, 0.92);
  border-bottom: 1px solid rgba(70, 130, 200, 0.1);
}

.room-net-lobby__player-name {
  flex: 1;
  min-width: 0;
}

.room-net-lobby__ready-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(120, 200, 150, 0.35);
  color: rgba(190, 240, 210, 0.95);
  background: rgba(40, 90, 60, 0.35);
  white-space: nowrap;
}

.room-net-lobby__ready-badge--no {
  border-color: rgba(200, 170, 100, 0.4);
  color: rgba(240, 220, 170, 0.95);
  background: rgba(90, 70, 30, 0.35);
}

.room-net-lobby__ready-badge--host {
  border-color: rgba(120, 170, 220, 0.45);
  color: rgba(200, 225, 250, 0.95);
  background: rgba(35, 60, 95, 0.4);
}

.room-net-lobby__player:last-child {
  border-bottom: none;
}

.room-net-lobby__player--self {
  color: #7ef0b8;
}

.room-net-lobby__player-name--self::after {
  content: " (sen)";
  font-size: 0.78em;
  opacity: 0.85;
}

.room-net-lobby__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin-top: 0.15rem;
}

.room-net-lobby__btn-start:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.room-match-overlay__panel {
  width: 100%;
  max-width: min(96vw, 72rem);
  margin-top: clamp(0, 2vh, 1.25rem);
  margin-bottom: auto;
  padding: clamp(1rem, 2.5vw, 1.45rem) clamp(1rem, 2.8vw, 1.65rem);
  border-radius: 16px;
  border: 1px solid rgba(70, 130, 200, 0.28);
  background: linear-gradient(165deg, rgba(14, 28, 24, 0.96) 0%, rgba(6, 14, 18, 0.94) 100%);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.room-match-overlay__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: -0.15rem 0 0.45rem;
}

.room-match-overlay__back {
  padding: 0.28rem 0.55rem;
  font-size: 0.78rem;
  opacity: 0.92;
}

.room-match-overlay__back:hover {
  opacity: 1;
}

.room-match-overlay__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #e8f4ec;
  line-height: 1.25;
}

.room-match-overlay__lead {
  margin: 0 0 1.1rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(200, 220, 210, 0.88);
}

.room-match-cosmetics {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(70, 130, 200, 0.14);
}

.room-match-cosmetics__hint {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(180, 210, 198, 0.82);
}

.room-match-cosmetics__sections {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cosmetic-block {
  margin-bottom: 0;
  min-width: 0;
}

.cosmetic-block__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(200, 230, 214, 0.75);
}

.cosmetic-matrix {
  display: grid;
  gap: 0.45rem 0.5rem;
  overflow: visible;
  width: 100%;
}

.cosmetic-matrix--goalies {
  grid-template-columns: repeat(auto-fill, minmax(4.55rem, 1fr));
}

.cosmetic-matrix--balls {
  grid-template-columns: repeat(auto-fill, minmax(2.65rem, 1fr));
  justify-items: center;
}

.cosmetic-matrix--balls .cosmetic-swatch {
  width: 2.65rem;
  height: 2.65rem;
  flex-shrink: 0;
}

.cosmetic-matrix--goalies .cosmetic-swatch--avatar {
  justify-self: center;
}

.cosmetic-swatch {
  position: relative;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border: 2px solid rgba(100, 180, 140, 0.35);
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.25);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}

.cosmetic-swatch--avatar {
  width: 100%;
  max-width: 5rem;
  min-height: 4.85rem;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0.32rem 0.34rem 0.28rem;
  gap: 0.22rem;
  box-sizing: border-box;
}

.cosmetic-swatch__preview {
  flex: 1;
  min-height: 2.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 12, 16, 0.45);
  border-radius: 7px;
}

.cosmetic-swatch__preview svg {
  width: 2.35rem;
  height: 2.35rem;
  display: block;
}

.cosmetic-swatch__caption {
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(216, 238, 228, 0.9);
  text-align: center;
}

.cosmetic-swatch:hover {
  border-color: rgba(130, 240, 190, 0.55);
  transform: scale(1.05);
}

.cosmetic-swatch:focus-visible {
  outline: 2px solid #7ef0b8;
  outline-offset: 2px;
}

.cosmetic-swatch[aria-pressed="true"] {
  border-color: #7ef0b8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 2px rgba(126, 240, 184, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.35);
}

.cosmetic-swatch__ball {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none;
}

.cosmetic-swatch__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.room-match-overlay__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.room-match-overlay__btn {
  width: 100%;
  justify-content: center;
}

.room-wait-hint {
  position: absolute;
  z-index: 35;
  left: 50%;
  bottom: 0.65rem;
  transform: translateX(-50%);
  margin: 0;
  padding: 0 0.75rem;
  font-size: 0.72rem;
  color: rgba(232, 244, 236, 0.75);
  text-align: center;
  max-width: min(42ch, 92vw);
  line-height: 1.35;
  pointer-events: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.arena {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: min(92vmin, 520px);
}

.arena__pitch-wrap {
  position: absolute;
  inset: 4%;
  border-radius: 16px;
}

.arena__pitch {
  width: 100%;
  height: 100%;
  position: relative;
  clip-path: polygon(50% 6%, 94% 78%, 6% 78%);
  transition: clip-path 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(70, 130, 200, 0.12);
}

.arena__grass {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(62, 160, 110, 0.5), transparent 70%),
    linear-gradient(165deg, #0f3d2c 0%, #1a5c40 45%, #0d3024 100%);
}

.arena__shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.09), transparent 45%);
  pointer-events: none;
}

.arena__hub {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.arena__ball {
  width: clamp(22px, 5.5vmin, 32px);
  height: clamp(22px, 5.5vmin, 32px);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0%, #d4ffe4 35%, #1e8a55 72%, #0a3020 100%);
  box-shadow:
    0 3px 14px rgba(0, 0, 0, 0.45),
    inset 0 -3px 8px rgba(0, 0, 0, 0.25);
}

.arena__slots {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.arena__slots .arena-slot {
  pointer-events: auto;
}

.arena-slot {
  --orbit: 41%;
  --angle: 0deg;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26%;
  max-width: 130px;
  min-width: 72px;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(-1 * var(--orbit)))
    rotate(calc(-1 * var(--angle)));
}

.arena-slot__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.arena-slot__label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(200, 255, 200, 0.55);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}

.arena-goal {
  position: relative;
  width: 100%;
  max-width: 88px;
  height: 38px;
  flex-shrink: 0;
}

.arena-goal__mouth {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 78%;
  height: 100%;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.12),
    0 0 12px rgba(55, 165, 235, 0.15);
}

.arena-goal__net {
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  width: 58%;
  height: 60%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 4px,
    rgba(255, 255, 255, 0.08) 4px,
    rgba(255, 255, 255, 0.08) 5px
  ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 4px,
      rgba(255, 255, 255, 0.06) 4px,
      rgba(255, 255, 255, 0.06) 5px
    );
  opacity: 0.55;
  pointer-events: none;
  clip-path: inset(0 0 0 0 round 4px 4px 0 0);
}

.arena-goalie {
  position: relative;
  width: 28px;
  height: 32px;
  margin-top: -4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.arena-goalie__head {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ffe8d4 0%, #c9a88c 55%, #7d5e48 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.arena-goalie__arms {
  position: absolute;
  top: 12px;
  width: 40px;
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, #243a32, #3d5c4f 50%, #243a32);
  z-index: 1;
  opacity: 0.92;
}

.arena-goalie__body {
  margin-top: -2px;
  width: 24px;
  height: 22px;
  border-radius: 8px 8px 10px 10px;
  background: linear-gradient(
    180deg,
    hsl(var(--hue), 38%, 32%) 0%,
    hsl(var(--hue), 32%, 18%) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 10px rgba(0, 0, 0, 0.35);
}

@media (max-width: 400px) {
  .arena-slot {
    width: 30%;
    min-width: 62px;
  }

  .arena-slot__label {
    font-size: 0.55rem;
  }
}
