/* FRAG brand overrides on top of ARENA lobby CSS */

@font-face {
  font-family: Minecraft;
  src: url("/site/Minecraft.otf") format("opentype");
  font-display: swap;
}

:root {
  --frag-gold: #ffc107;
}

.wordmark span,
.lobby-title {
  letter-spacing: 0.04em;
}

.operator-stage {
  position: absolute;
  left: 58%;
  bottom: 18%;
  width: min(28vw, 360px);
  transform: translateX(-20%);
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.6));
  animation: frag-operator-in 700ms ease-out both;
}

.operator-stage img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes frag-operator-in {
  from {
    opacity: 0;
    transform: translateX(-20%) translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateX(-20%) translateY(0);
  }
}

.lobby-title {
  animation: frag-title-in 500ms ease-out both;
}

@keyframes frag-title-in {
  from {
    opacity: 0;
    letter-spacing: 0.18em;
  }
  to {
    opacity: 1;
  }
}

.menu-button.primary {
  animation: frag-cta-pulse 2.4s ease-in-out infinite;
}

@keyframes frag-cta-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.08);
  }
}

.view[hidden] {
  display: none !important;
}

.view.is-active {
  display: block;
}

.panel-sheet {
  position: relative;
  z-index: 3;
  width: min(720px, calc(100% - 48px));
  margin: 48px auto;
  padding: 28px;
  background: rgba(17, 23, 25, 0.92);
  border: 1px solid #3a4244;
  color: #eef0e8;
}

.panel-sheet h2 {
  margin: 0 0 8px;
  font: 34px/1 Minecraft, monospace;
}

.panel-sheet .muted {
  margin: 0 0 22px;
  color: #a4b1b5;
}

.server-list,
.class-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.server-row,
.class-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  color: inherit;
  background: #192023;
  border: 1px solid #3c4446;
  cursor: pointer;
  font: inherit;
}

.class-card {
  flex-direction: column;
}

.class-card.is-active,
.server-row:hover,
.class-card:hover {
  border-color: var(--frag-gold);
}

.header nav a.is-active {
  color: var(--frag-gold);
  box-shadow: inset 0 -2px 0 var(--frag-gold);
}

.market-empty,
.vault-card {
  padding: 18px;
  margin-bottom: 18px;
  background: #192023;
  border: 1px solid #3c4446;
}

.vault-card {
  display: grid;
  gap: 6px;
}

.vault-card strong {
  font: 28px/1 Minecraft, monospace;
  color: var(--frag-gold);
}

.play-arrow {
  font-size: 18px;
}

/* Larger map-cycle hit targets than stock ARENA arrows */
.map-arrow {
  width: 40px;
  height: 44px;
  font-size: 22px;
  line-height: 1;
  color: #e8ebe6;
}

.map-arrow:hover {
  background: #ffffff18;
  color: var(--amber, #ffc107);
}

@media (max-width: 900px) {
  .operator-stage {
    width: min(40vw, 240px);
    left: 62%;
    bottom: 22%;
    opacity: 0.92;
  }
}

@media (max-width: 700px) {
  .operator-stage {
    display: none;
  }

  .menu-button.primary {
    animation: none;
  }
}

.operator-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #1a2124;
  border: 1px solid #3a4446;
  color: #ffc107;
  font: 12px Minecraft, monospace;
}

.operator-tag input {
  width: 108px;
  border: 0;
  background: transparent;
  color: #eef0e8;
  font: 12px Minecraft, monospace;
  text-transform: uppercase;
  outline: none;
}

.leaderboard-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.leaderboard-list li {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: #192023;
  border: 1px solid #3c4446;
}

.leaderboard-list li.is-me {
  border-color: #ffc107;
}

.leaderboard-list .rank {
  color: #ffc107;
  font: 16px Minecraft, monospace;
}

.leaderboard-list b {
  color: #ffc107;
}

.claim-wallet {
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid #5a4f2e;
  background:
    radial-gradient(ellipse at 0% 0%, #bb914318, transparent 55%),
    #151b1f;
}

.claim-wallet h3 {
  margin: 0 0 6px;
  font: 16px Minecraft, monospace;
  color: #ffc107;
  letter-spacing: 0.04em;
}

.claim-wallet > .muted {
  margin: 0 0 14px;
  max-width: 42ch;
}

.claim-wallet-field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #a4b1b5;
}

.claim-wallet-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #545e60;
  background: #0f1417;
  color: #e8ecea;
  font: 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.claim-wallet-field input:focus {
  outline: none;
  border-color: #ffc107;
}

.claim-wallet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.claim-wallet-actions .menu-button {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 13px;
  width: auto;
}

.claim-wallet-status {
  font-size: 12px;
  color: #8fd18a;
}

.claim-wallet-status.is-error {
  color: #ff8d7a;
}

.bounty-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.bounty-card {
  padding: 14px 16px;
  background: #192023;
  border: 1px solid #3c4446;
}

.bounty-card.is-done {
  border-color: #6fbf73;
  opacity: 0.85;
}

.bounty-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font: 14px Minecraft, monospace;
}

.bounty-card header span,
.bounty-card p {
  color: #a4b1b5;
}

.bounty-card p {
  margin: 0 0 10px;
  font-size: 13px;
}

.bounty-progress {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #d7ddd8;
}

.bounty-progress i {
  display: block;
  height: 6px;
  background: linear-gradient(90deg, #ffc107 var(--p, 0%), #2a3234 var(--p, 0%));
}

.bounty-claim {
  margin-top: 12px;
}

.bounty-claim .menu-button {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 12px;
  width: auto;
}

.bounty-claim-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: #8fd18a;
  word-break: break-all;
}

.bounty-claim-hint {
  margin: 8px 0 0;
  font-size: 11px;
  color: #a4b1b5;
}

.stock-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin: 16px 0 20px;
  max-height: min(62vh, 640px);
  overflow: auto;
  padding-right: 4px;
}

.stock-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #192023;
  border: 1px solid #3c4446;
}

.stock-row strong {
  display: block;
  font: 14px Minecraft, monospace;
  color: #ffc107;
}

.stock-row span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #a4b1b5;
}

.stock-row b {
  font: 14px Minecraft, monospace;
  color: #eef0e8;
}

.stock-row em {
  font-style: normal;
  font-size: 12px;
  min-width: 52px;
  text-align: right;
}

.stock-row.is-up em { color: #8fd18a; }
.stock-row.is-down em { color: #ff8d7a; }

.server-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.server-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #192023;
  border: 1px solid #3c4446;
  color: inherit;
  text-decoration: none;
}

.server-row:hover {
  border-color: #ffc107;
}

.server-row span {
  color: #a4b1b5;
  font-size: 13px;
}
