:root {
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: #ebede9;
  background: #172038;
  font-synthesis: none;
  --lime: #d0da91;
  --muted: #a8b5b2;
  --line: #ffffff20;
}
* {
  box-sizing: border-box;
}
html {
  font-size: 100%;
}
body {
  margin: 0;
  overflow: hidden;
  font-size: 1rem;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 5px;
}
button {
  color: inherit;
  border: 0;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#shell {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(23, 32, 56, 0.97),
    rgba(23, 32, 56, 0.87) 30%,
    rgba(23, 32, 56, 0.06) 63%
  );
  pointer-events: none;
}
#shell > * {
  pointer-events: auto;
}
header {
  height: 90px;
  margin: 0 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 45px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f8f7ed;
  font-size: 1.4375rem;
  font-weight: 950;
  letter-spacing: -1px;
  text-decoration: none;
}
.flag-icon {
  font-size: 2.0625rem;
  color: var(--lime);
  transform: rotate(-10deg);
  display: inline-block;
}
.build {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: var(--lime);
  border: 1px solid #b5cd7940;
  border-radius: 3px;
  padding: 5px;
  margin-left: 12px;
  font-weight: 600;
}
nav {
  display: flex;
  gap: 27px;
  margin-left: auto;
  height: 100%;
}
nav button {
  background: none;
  font-size: 0.75rem;
  letter-spacing: 1.6px;
  font-weight: 750;
  position: relative;
  color: #b7c4bf;
  padding: 0 5px;
}
nav button.active {
  color: var(--lime);
}
nav button.active:after {
  content: "";
  height: 3px;
  background: var(--lime);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.icon-button {
  border: 1px solid var(--line);
  background: #ffffff09;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 1.25rem;
}
main {
  position: absolute;
  left: 5.5%;
  top: 16%;
  width: 43%;
  max-width: 560px;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: #b0beb5;
  line-height: 1.7;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  margin-right: 8px;
}
h1 {
  font-size: clamp(1.95rem, 3.25vw, 3.625rem);
  line-height: 1.08;
  letter-spacing: -2.7px;
  font-weight: 950;
  margin: 19px 0 17px;
}
h1 em {
  color: var(--lime);
  font-style: normal;
}
.intro {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #bfc9c0;
  margin-bottom: 24px;
}
.match-card,
.detail-card {
  background: linear-gradient(120deg, #364741cc, #263932dd);
  border: 1px solid #bacbb626;
  border-radius: 10px;
  max-width: 400px;
  padding: 20px;
  box-shadow: 0 18px 60px #0002;
}
.map-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.map-icon {
  color: var(--lime);
  font-size: 1.875rem;
  background: #ccd59a12;
  border-radius: 8px;
  padding: 7px 11px;
}
.map-title h2 {
  font-size: 1.25rem;
  margin: 3px 0;
}
.pill {
  font-size: 0.75rem;
  margin-left: auto;
  border: 1px solid var(--line);
  padding: 5px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}
.match-controls {
  display: flex;
  gap: 12px;
  margin: 18px 0;
}
.match-controls label {
  flex: 1;
  width: 50%;
}
label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 1.2px;
  color: #acb8ab;
  font-weight: 700;
}
select,
input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  background: #172b25;
  color: #ecf1dc;
  border: 1px solid #b9cd9e2b;
  border-radius: 5px;
  padding: 10px 8px;
  margin-top: 7px;
  font-size: 0.75rem;
  letter-spacing: 0;
}
select option {
  background: #23392f;
}
.primary {
  background: var(--lime);
  color: #243325;
  font-weight: 900;
  font-size: 0.9375rem;
  letter-spacing: 1px;
  width: 100%;
  padding: 17px;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  transition:
    background 0.2s,
    transform 0.2s;
}
.primary:hover {
  background: #e7ffaf;
  transform: translateY(-1px);
}
.primary span {
  font-size: 1.3125rem;
  line-height: 15px;
}
.match-foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #9ba993;
  margin-top: 12px;
  gap: 10px;
}
.tip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
  color: #a8b5a7;
}
.tip > span {
  font-size: 1.8125rem;
  color: #d7dfb7;
}
.tip p {
  font-size: 0.75rem;
  line-height: 1.6;
}
.tip b {
  color: #dce3c9;
  font-weight: 500;
}
#preview-caption {
  position: absolute;
  right: 6%;
  bottom: 24%;
  text-align: right;
}
#preview-caption h2 {
  font-size: 2.75rem;
  font-style: italic;
  font-weight: 950;
  letter-spacing: -2px;
  margin: 0;
}
#preview-caption p {
  font-size: 0.75rem;
  color: #c7d5ce;
  margin: 6px 0 17px;
}
.team-picker {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
}
.team-picker span {
  font-size: 0.75rem;
  letter-spacing: 1.4px;
  margin-right: 5px;
  color: #c9d2c4;
}
.team-picker button {
  background: #223536;
  border: 1px solid #ffffff25;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  padding: 0;
  font-size: 0.75rem;
}
.team-picker button.selected {
  border-color: currentColor;
  box-shadow: 0 0 0 2px #fff1;
}
#preview-caption small {
  display: block;
  font-size: 0.75rem;
  color: #9faeaa;
  margin-top: 13px;
}
footer {
  position: absolute;
  left: 5.5%;
  right: 5.5%;
  bottom: 22px;
}
.roster-heading {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  letter-spacing: 1.7px;
  color: #c3cdbb;
  margin-bottom: 10px;
}
.roster-heading span:last-child {
  color: var(--lime);
}
#roster {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
}
.hero-card {
  background: #203431c9;
  border: 1px solid #acc9b326;
  border-radius: 6px;
  height: 97px;
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 0;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.hero-card:hover {
  transform: translateY(-4px);
}
.hero-card.selected {
  border-color: var(--lime);
  background: #465441;
}
.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 23%;
  opacity: 0.9;
}
.hero-card:after {
  content: "";
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(transparent, #0d211cec);
}
.hero-card span {
  position: absolute;
  z-index: 1;
  bottom: 10px;
  left: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.8px;
}
.hero-card.selected span {
  color: var(--lime);
}
.hero-card .hero-number {
  top: 7px;
  bottom: auto;
  font-size: 0.75rem;
  opacity: 0.65;
  font-weight: 400;
}
.footer-note {
  display: flex;
  justify-content: space-between;
  margin-top: 13px;
  font-size: 0.75rem;
  letter-spacing: 1.3px;
  color: #92a695;
}
.footer-note i {
  margin: 0 9px;
  font-style: normal;
}
.detail-card h2 {
  font-size: 1.6875rem;
  margin: 4px 0;
}
.detail-card p {
  font-size: 0.75rem;
  line-height: 1.6;
  color: #c2cabc;
}
.detail-card label {
  margin: 14px 0;
}
.detail-card hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 14px 0;
}
.detail-card b {
  font-size: 0.75rem;
  color: var(--lime);
}
.slot-list {
  font-size: 0.75rem;
  line-height: 1.9;
  letter-spacing: 1px;
  color: #8eaa97;
  margin-top: 16px;
}
.small-button {
  background: #ffffff0e;
  border: 1px solid #bbc7a13b;
  padding: 10px 13px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.8px;
}
.small-button:hover {
  background: #ffffff20;
}
.button-row {
  display: flex;
  gap: 10px;
  margin: 14px 0;
}
#hero-stats {
  display: flex;
  gap: 25px;
  margin-top: 16px;
}
.stat {
  font-size: 0.75rem;
  color: #92a68d;
}
.stat i {
  display: inline-block;
  width: 9px;
  height: 3px;
  background: #a2b69530;
  margin-right: 3px;
}
.stat i.on {
  background: var(--lime);
}
.stat div {
  margin-top: 6px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0;
  font-weight: 400;
}
.check input {
  accent-color: var(--lime);
}
dialog {
  border: 1px solid #86997650;
  background: #22352e;
  color: #eff1de;
  padding: 35px;
  border-radius: 12px;
  max-width: 460px;
  box-shadow: 0 20px 80px #0009;
}
dialog::backdrop {
  background: #081511b8;
  backdrop-filter: blur(6px);
}
dialog h2 {
  font-size: 2rem;
  margin: 10px 0 25px;
}
dialog label {
  margin: 20px 0;
}
dialog p {
  font-size: 0.75rem;
  line-height: 1.8;
}
.muted {
  color: #9aae9e !important;
}
.close {
  position: absolute;
  right: 14px;
  top: 10px;
  background: none;
  font-size: 1.5rem;
}
#loading {
  position: fixed;
  inset: 0;
  background: #182b25;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
}
#loading h2 {
  font-size: 1.25rem;
}
#loading p {
  font-size: 0.75rem;
  color: var(--lime);
}
#notice {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: #e3f1c9;
  color: #1b3326;
  border-radius: 6px;
  padding: 13px 22px;
  font-size: 0.75rem;
  z-index: 20;
  display: none;
}
#hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    #07191840,
    transparent 15%,
    transparent 78%,
    #07191899
  );
}
#hud button {
  pointer-events: auto;
}
.match-top {
  position: absolute;
  top: 20px;
  left: 3%;
  right: 3%;
  display: flex;
  gap: 20px;
  align-items: center;
}
#scores {
  display: flex;
  gap: 8px;
}
#scores > div {
  background: #152826de;
  border: 1px solid #fff2;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 0.75rem;
}
#scores strong {
  font-size: 1.4375rem;
  margin-left: 15px;
}
#timer {
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  margin: auto;
}
#objective {
  position: absolute;
  top: 95px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  background: #132824bb;
  padding: 11px 22px;
  border-radius: 5px;
}
#crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 1.5625rem;
  transform: translate(-50%, -50%);
  color: #fff9;
}
#toast {
  position: absolute;
  top: 24%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4375rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px #000;
}
#minimap {
  position: absolute;
  right: 3%;
  bottom: 55px;
  background: #142a24d9;
  border: 1px solid #b7d6b943;
  border-radius: 8px;
}
.player-hud {
  position: absolute;
  left: 4%;
  bottom: 6%;
  width: 260px;
  /* Small light text sits over a bright, moving scene; keep it legible. */
  text-shadow:
    0 0 2px #090a14,
    0 1px 3px #090a14;
}
.player-hud h2 {
  margin: 1px 0 10px;
  font-size: 1.8125rem;
  font-style: italic;
}
.health {
  height: 7px;
  background: #081713;
  border-radius: 3px;
  overflow: hidden;
}
#health-fill {
  background: var(--lime);
  height: 100%;
  width: 100%;
  transition: width 0.12s;
}
#health-text {
  font-size: 0.75rem;
  display: block;
  margin-top: 6px;
}
.ability {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 20px;
}
.ability strong {
  display: block;
  font-size: 0.75rem;
}
.ability small {
  display: block;
  font-size: 0.75rem;
  margin-top: 6px;
  color: var(--lime);
}
kbd {
  display: inline-block;
  border: 1px solid #d0e9c33f;
  border-radius: 4px;
  padding: 5px 7px;
  font: 0.75rem Arial;
  background: #20362ab3;
}
.ability kbd {
  padding: 14px;
  font-size: 1.0625rem;
}
.controls {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  white-space: nowrap;
  color: #c9d8c6;
}
.controls kbd {
  margin: 0 4px 0 10px;
}
#nameplates {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.nameplate {
  position: absolute;
  transform: translate(-50%, -100%);
  font-size: 0.75rem;
  text-shadow: 0 1px 4px #000;
  white-space: nowrap;
  background: #13251daa;
  border-radius: 4px;
  padding: 3px 7px;
}
.nameplate i {
  display: block;
  height: 2px;
  margin-top: 4px;
  background: currentColor;
}
#respawn,
#results {
  position: absolute;
  inset: 35% 25%;
  text-align: center;
  background: #172e26ed;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  font-size: 1.75rem;
  font-weight: 900;
}
#results small,
#respawn small {
  display: block;
  font-size: 0.75rem;
  line-height: 2;
  font-weight: 400;
  margin-top: 12px;
}
#lobby-row {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 15px;
}
#lobby-row label {
  flex: 1;
}
@media (max-height: 800px) {
  header {
    height: 72px;
  }
  main {
    top: 14%;
  }
  h1 {
    margin: 13px 0;
    font-size: 2.375rem;
  }
  .intro {
    margin: 10px 0 17px;
    font-size: 0.75rem;
  }
  .match-card,
  .detail-card {
    padding: 16px;
  }
  .tip {
    margin-top: 5px;
  }
  .hero-card {
    height: 78px;
  }
  footer {
    bottom: 15px;
  }
  .detail-card p {
    margin: 8px 0;
  }
  .slot-list {
    margin-top: 8px;
  }
  #hero-stats {
    margin-top: 8px;
  }
  .match-controls {
    margin: 13px 0;
  }
  #preview-caption {
    bottom: 24%;
  }
}
@media (max-width: 900px) {
  header {
    margin: 0 20px;
    gap: 10px;
  }
  .build {
    display: none;
  }
  nav {
    gap: 12px;
  }
  main {
    left: 4%;
    width: 48%;
  }
  h1 {
    font-size: 1.9375rem;
    letter-spacing: -1.5px;
  }
  footer {
    left: 4%;
    right: 4%;
  }
  .hero-card span {
    font-size: 0.75rem;
    left: 5px;
  }
  #roster {
    gap: 4px;
  }
  #preview-caption {
    right: 4%;
  }
  #preview-caption h2 {
    font-size: 2rem;
  }
  .footer-note {
    font-size: 0.75rem;
  }
  #preview-contract {
    max-width: 180px;
  }
  .team-picker span {
    display: none;
  }
  .tip {
    display: none;
  }
}
@media (max-width: 600px) {
  header {
    height: 60px;
    margin: 0 12px;
    gap: 6px;
  }
  .brand {
    font-size: 1rem;
  }
  .flag-icon {
    font-size: 1.5625rem;
  }
  nav button {
    font-size: 0.75rem;
    letter-spacing: 0;
    padding: 0 3px;
  }
  nav {
    gap: 4px;
  }
  .icon-button {
    width: 26px;
    height: 26px;
    font-size: 1.0625rem;
  }
  main {
    top: 12%;
    width: 70%;
    max-width: 330px;
  }
  h1 {
    font-size: 1.8125rem;
  }
  .intro {
    font-size: 0.75rem;
  }
  .eyebrow {
    font-size: 0.75rem;
  }
  .match-card {
    padding: 12px;
  }
  .match-foot {
    font-size: 0.75rem;
  }
  .match-foot span:last-child,
  .pill {
    white-space: nowrap;
  }
  .primary {
    padding: 13px;
  }
  #preview-caption {
    display: none;
  }
  #roster {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
  }
  .hero-card {
    height: 52px;
  }
  .hero-card img {
    object-position: center 27%;
  }
  .hero-card .hero-number {
    display: none;
  }
  .hero-card span {
    bottom: 5px;
    left: 3px;
    right: 1px;
    letter-spacing: -0.3px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .footer-note {
    display: none;
  }
  footer {
    bottom: 12px;
  }
  .detail-card {
    padding: 12px;
  }
  .detail-card p {
    font-size: 0.75rem;
  }
  .detail-card hr,
  .slot-list {
    display: none;
  }
  .controls {
    display: none;
  }
  #minimap {
    width: 115px;
    height: 90px;
  }
  .match-top {
    gap: 8px;
  }
  #scores > div {
    padding: 5px;
    font-size: 0.75rem;
  }
  #scores strong {
    font-size: 1rem;
    margin-left: 5px;
  }
  #timer {
    font-size: 1.125rem;
  }
  #objective {
    font-size: 0.75rem;
    white-space: nowrap;
  }
}

#scores small {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-top: 3px;
  opacity: 0.8;
}

.hero-card img {
  display: block;
  position: absolute;
  inset: 0;
  transform: translateZ(0);
}

.hero-card {
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
}
.hero-card img {
  visibility: hidden;
}
/* Workshop controls keep the map usable at laptop sizes. */
#workshop-panel {
  width: 370px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  padding-right: 12px;
}
#workshop-panel h1 {
  font-size: 2rem;
  margin: 14px 0;
}
#workshop-panel .intro {
  margin-bottom: 16px;
}
.editor-card {
  padding: 18px;
}
.editor-card .muted {
  font-size: 0.75rem;
  line-height: 1.5;
}
.editor-tools {
  display: flex;
  gap: 5px;
}
.editor-tools button {
  padding: 10px;
  flex: 1;
  background: #253a5e;
  font-size: 0.75rem;
  letter-spacing: 1px;
}
.editor-tools .selected {
  background: var(--lime);
  color: #172038;
}
.editor-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.editor-fields label {
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin: 3px 0;
}
.editor-fields input,
.editor-fields select {
  width: 100%;
  padding: 8px;
  color: #ebede9;
  background: #172038;
  border: 1px solid #577277;
  border-radius: 4px;
  margin-top: 5px;
}
.editor-card .button-row {
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  align-items: center;
}
.editor-card .small-button {
  font-size: 0.75rem;
  padding: 9px;
}
.editor-card .check {
  font-size: 0.75rem;
  margin: 0;
}
#selection-controls {
  border: 1px solid #e8c170;
  border-radius: 6px;
  padding: 10px;
  margin-top: 10px;
}
#selection-label {
  font-size: 0.75rem;
  color: #e8c170;
  margin: 0 0 8px;
}
@media (max-width: 800px) {
  #workshop-panel {
    width: min(330px, 85vw);
    max-height: calc(100vh - 155px);
  }
}
body[data-tab="workshop"] #shell footer {
  display: none;
}
body[data-tab="workshop"] #workshop-panel {
  max-height: calc(100vh - 180px);
}
#crosshair {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 1px 2px #090a14);
  color: #ebede9;
  pointer-events: none;
}
#crosshair i {
  position: absolute;
  background: currentColor;
  border-radius: 1px;
}
#crosshair i:nth-child(1) {
  width: 2px;
  height: 6px;
  left: 11px;
  top: -2px;
}
#crosshair i:nth-child(2) {
  width: 2px;
  height: 6px;
  left: 11px;
  bottom: -2px;
}
#crosshair i:nth-child(3) {
  height: 2px;
  width: 6px;
  top: 11px;
  left: -2px;
}
#crosshair i:nth-child(4) {
  height: 2px;
  width: 6px;
  top: 11px;
  right: -2px;
}
#crosshair b {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  position: absolute;
  left: 10.5px;
  top: 10.5px;
}
#crosshair.target {
  color: #d0da91;
}
#crosshair.blocked {
  color: #e8c170;
}
#crosshair.focus {
  width: 18px;
  height: 18px;
}
#crosshair.focus i:nth-child(-n + 2) {
  left: 8px;
}
#crosshair.focus i:nth-child(n + 3) {
  top: 8px;
}
#crosshair.focus b {
  left: 7.5px;
  top: 7.5px;
}
#hitmarker {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  line-height: 1;
  color: #ebede9;
  opacity: 0;
  text-shadow: 0 1px 3px #090a14;
  pointer-events: none;
}
#hitmarker.visible {
  opacity: 1;
}
#hitmarker.kill {
  color: #e8c170;
}
#aim-status {
  position: absolute;
  top: calc(50% + 28px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: #e8c170;
  text-shadow: 0 1px 3px #090a14;
}
#damage-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 90px 25px #a53030;
  opacity: 0;
}

#arena-description {
  color: #bacbbd;
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0 0 14px;
}
