:root {
  --bg: #0c0b0a;
  --bg-2: #141210;
  --bg-3: #1b1916;
  --rust: #c45c26;
  --rust-hot: #e07030;
  --rust-dim: #8a3d16;
  --olive: #4a5c3a;
  --blood: #8b1e1e;
  --death: #5c1212;
  --steel: #3a3a38;
  --iron: #2a2a28;
  --iron-2: #1f1e1c;
  --text: #e5dfd3;
  --text-dim: #9a9386;
  --white: #ffffff;
  --toxic: #6b8e23;
  --toxic-2: #9acd32;
  --shadow: #050403;
  --plate: #161513;
  --warn: #c4a35a;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  min-height: 100%;
  overflow-x: hidden;
}

html {
  scrollbar-color: var(--rust-dim) var(--bg);
}

body {
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(196, 92, 38, 0.08), transparent 55%),
    radial-gradient(800px 400px at 80% 120%, rgba(92, 18, 18, 0.18), transparent 50%),
    url("../assets/hero.jpg");
  background-size: auto, auto, cover;
  background-attachment: fixed;
  background-position: center;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(12, 11, 10, 0.72), rgba(12, 11, 10, 0.88) 40%, #0c0b0a 100%);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--rust);
  color: #1a0c04;
}

/* atmosphere layers */
#grain,
#ash,
#flash,
#sparks {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#grain {
  z-index: 80;
  opacity: 0.16;
  background-image: url("../assets/grain.jpg");
  background-size: 420px 420px;
  mix-blend-mode: overlay;
  animation: grain-shift 1.6s steps(4) infinite;
}

#ash {
  z-index: 70;
}

#flash {
  z-index: 75;
  background: radial-gradient(circle at 70% 80%, rgba(196, 92, 38, 0.28), transparent 42%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

#flash.is-on {
  opacity: 1;
}

#sparks {
  z-index: 90;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-8px, 4px); }
  50% { transform: translate(6px, -6px); }
  75% { transform: translate(-4px, -2px); }
  100% { transform: translate(0, 0); }
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* type */
.wordmark {
  font-family: "Black Ops One", "Teko", sans-serif;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
  line-height: 0.9;
  background: linear-gradient(180deg, #f0c29a 0%, #c45c26 38%, #7a3010 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 #1a0c04) drop-shadow(0 0 18px rgba(196, 92, 38, 0.35));
}

.kicker,
.nav-btn,
.tag,
.label,
.btn,
.toolbar-link {
  font-family: "Teko", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.h1 {
  font-family: "Teko", sans-serif;
  font-weight: 600;
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.82;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  color: var(--white);
  text-shadow: 0 3px 0 #1a0c04, 0 14px 40px rgba(0, 0, 0, 0.7);
}

.h2 {
  font-family: "Teko", sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.h3 {
  font-family: "Teko", sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.sub {
  color: var(--text-dim);
  font-size: 16px;
  margin: 0;
}

.stamp {
  font-family: "Teko", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #e07030;
  text-shadow:
    0 1px 0 #3a1a08,
    0 2px 0 #140804,
    0 0 8px rgba(196, 92, 38, 0.85),
    0 0 22px rgba(196, 92, 38, 0.45);
  filter: contrast(1.18) saturate(1.1);
}

.stamp--lg {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.85;
}

.stamp.is-low {
  color: #e24a4a;
  text-shadow: 0 0 12px rgba(139, 30, 30, 0.8);
  animation: pulse-low 0.8s ease-in-out infinite;
}

@keyframes pulse-low {
  50% { opacity: 0.55; }
}

.stamp--xl {
  font-size: clamp(64px, 8vw, 120px);
  line-height: 0.8;
  color: var(--white);
  text-shadow: 0 3px 0 #1a0c04, 0 0 24px rgba(196, 92, 38, 0.35);
}

.stamp--win {
  color: var(--toxic-2);
  text-shadow: 0 2px 0 #1a2808, 0 0 22px rgba(107, 142, 35, 0.45);
}

.stamp--lose {
  color: #c44a4a;
  text-shadow: 0 2px 0 #2a0808, 0 0 22px rgba(92, 18, 18, 0.55);
}

/* plates */
.plate {
  position: relative;
  background:
    linear-gradient(180deg, rgba(40, 38, 34, 0.55), rgba(12, 11, 10, 0.78)),
    url("../assets/metal.jpg");
  background-size: cover;
  background-blend-mode: multiply;
  border: 1px solid #4a4740;
  box-shadow:
    inset 0 1px 0 rgba(230, 220, 200, 0.08),
    inset 0 -18px 40px rgba(0, 0, 0, 0.45),
    0 10px 30px rgba(0, 0, 0, 0.45);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.plate::before,
.plate::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #8a8880, #2a2a28 60%, #0a0a09);
  box-shadow:
    0 0 0 1px #111,
    inset 0 1px 0 #bbb,
    12px 0 0 -1px #2a2a28,
    calc(100% - 26px) 0 0 -1px #2a2a28;
  z-index: 2;
}

.plate::before { top: 7px; left: 7px; }
.plate::after { bottom: 7px; right: 7px; }

.plate--scratched {
  overflow: hidden;
}

.plate--scratched > * {
  position: relative;
  z-index: 1;
}

.plate--scratched::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(8px 5px at 12% 70%, rgba(90, 18, 18, 0.28), transparent 70%),
    repeating-linear-gradient(118deg, transparent 0 17px, rgba(255, 255, 255, 0.015) 18px, transparent 19px),
    repeating-linear-gradient(-20deg, transparent 0 41px, rgba(0, 0, 0, 0.12) 42px, transparent 43px);
  z-index: 0;
  border-radius: inherit;
}

/* buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid #5a5348;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: transform 0.12s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 0 0 1px rgba(196, 92, 38, 0.4), 0 0 22px rgba(196, 92, 38, 0.28);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
  filter: brightness(0.92);
}

.btn--rust {
  background:
    linear-gradient(180deg, #d56a2c 0%, #c45c26 42%, #8a3d16 100%);
  color: #1a0c04;
  border-color: #e08a4a;
  text-shadow: 0 1px 0 rgba(255, 220, 180, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 180, 0.35),
    0 8px 18px rgba(0, 0, 0, 0.4);
}

.btn--steel {
  background: linear-gradient(180deg, #3f3f3c, #262624);
  color: var(--text);
  border-color: #6a675e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn--blood {
  background: linear-gradient(180deg, #a32626, #5c1212);
  color: #f2d8d8;
  border-color: #c44;
}

.btn--olive {
  background: linear-gradient(180deg, #5d7348, #3a4a2e);
  color: #e8efd8;
  border-color: #7a8f5a;
}

.btn--block {
  width: 100%;
}

.btn--sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 16px;
}

.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

/* loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(8, 7, 6, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.loader.is-on {
  opacity: 1;
  pointer-events: auto;
}

.loader-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.gear {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  animation: spin 1.8s linear infinite;
  filter: drop-shadow(0 0 12px rgba(196, 92, 38, 0.45));
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* landing */
.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(196, 92, 38, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(12, 11, 10, 0.18) 0%, rgba(12, 11, 10, 0.42) 58%, #0c0b0a 100%),
    url("../assets/hero.jpg") center/cover;
  filter: saturate(0.85) contrast(1.14);
  transform: scale(1.04);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 18px;
}

.coin-wrap {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 4px #2a2118,
    0 0 0 6px #c45c26,
    0 20px 50px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(196, 92, 38, 0.35);
  animation: coin-float 6s ease-in-out infinite;
}

.coin-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes coin-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.wordmark.hero-mark {
  font-size: clamp(48px, 8vw, 92px);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.hero-actions .btn {
  min-width: 220px;
  min-height: 58px;
  font-size: 22px;
}

.flow {
  position: relative;
  z-index: 2;
  padding: 10px 20px 90px;
  width: min(1100px, 100%);
  margin: -40px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.flow-card {
  padding: 22px 20px 20px;
  text-align: left;
  min-height: 180px;
}

.flow-num {
  font-family: "Teko", sans-serif;
  color: var(--rust);
  font-size: 28px;
  letter-spacing: 0.16em;
}

.flow-card p {
  color: var(--text-dim);
  margin: 8px 0 0;
  line-height: 1.45;
}

.ticker {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  height: 42px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: linear-gradient(180deg, #1a1612, #0e0c0a);
  border-top: 1px solid #5a3a22;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.ticker-label {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  padding: 0 16px;
  display: grid;
  place-items: center;
  background: var(--rust);
  color: #1a0c04;
  font-family: "Teko", sans-serif;
  letter-spacing: 0.16em;
  font-size: 16px;
  font-weight: 600;
  isolation: isolate;
  box-shadow: 14px 0 18px rgba(8, 6, 4, 0.85);
}

.ticker-viewport {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.ticker-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #0e0c0a);
  z-index: 2;
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 38s linear infinite;
  padding-left: 24px;
  line-height: 42px;
  font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--text);
}

.ticker-track b {
  color: var(--rust);
  font-weight: 400;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* app chrome */
.app {
  display: none;
  min-height: 100vh;
  padding-top: 72px;
}

.app.is-on {
  display: block;
}

.toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 72px;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  background:
    linear-gradient(180deg, rgba(28, 26, 22, 0.94), rgba(14, 13, 12, 0.96)),
    url("../assets/metal.jpg");
  background-size: auto, 600px;
  border-bottom: 1px solid #5a4a38;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #c45c26;
}

.brand span {
  font-family: "Black Ops One", sans-serif;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--rust);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.nav-btn {
  padding: 10px 16px;
  font-size: 18px;
  color: var(--text-dim);
  border: 1px solid transparent;
}

.nav-btn.is-on,
.nav-btn:hover {
  color: var(--text);
  border-color: #5a4a38;
  background: rgba(196, 92, 38, 0.08);
  box-shadow: inset 0 0 18px rgba(196, 92, 38, 0.08);
}

.who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.who-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.who-name {
  font-family: "Teko", sans-serif;
  letter-spacing: 0.1em;
  font-size: 16px;
  line-height: 1;
  color: var(--text);
}

.sol-chip {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 12px;
  font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--toxic-2);
  border: 1px solid var(--olive);
  background: rgba(26, 40, 16, 0.7);
  word-break: break-all;
}

.sol-chip.is-off {
  color: var(--text-dim);
  border-color: #4a4740;
  background: rgba(10, 9, 8, 0.55);
}

.conv {
  margin: 0 0 12px;
  font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-dim);
}

.auth-tabs {
  display: flex;
  gap: 8px;
}

.field input[readonly] {
  color: var(--text-dim);
  letter-spacing: 0.12em;
}

.bal-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 6px 14px 4px;
  min-width: 140px;
  background: #12100e;
  border: 1px solid #c45c26;
  box-shadow: 0 0 16px rgba(196, 92, 38, 0.2), inset 0 0 12px rgba(196, 92, 38, 0.08);
  cursor: pointer;
}

.bal-chip small {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}

.bal-chip strong {
  font-family: "Teko", sans-serif;
  font-size: 28px;
  line-height: 1;
  color: var(--rust);
  text-shadow: 0 0 12px rgba(196, 92, 38, 0.4);
}

.avatar {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 2px solid #6a5a48;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.status-dot {
  font-family: "Teko", sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  padding: 2px 8px;
  background: #1a2810;
  color: var(--toxic-2);
  border: 1px solid var(--olive);
}

.status-dot.is-naked {
  background: #2a1010;
  color: #e07070;
  border-color: var(--blood);
}

/* views */
.view {
  display: none;
  padding: 22px 22px 96px;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.landing.view {
  width: 100%;
  padding: 0;
  margin: 0;
}

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

.view-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

/* dashboard */
.dash {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 18px;
}

.qa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.qa {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  text-align: left;
}

.qa-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.7) contrast(1.05);
  transform: scale(1.04);
  transition: transform 0.5s var(--ease);
}

.qa:hover .qa-bg {
  transform: scale(1.08);
}

.qa-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 7, 6, 0.08) 0%, rgba(8, 7, 6, 0.28) 38%, rgba(8, 7, 6, 0.78) 100%),
    radial-gradient(28px 16px at 82% 28%, rgba(90, 18, 18, 0.28), transparent 70%);
}

.qa-body {
  position: relative;
  z-index: 1;
}

.qa .stamp {
  display: block;
  margin: 4px 0 10px;
}

.side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.side-card {
  padding: 16px;
}

.side-card .stamp {
  display: block;
  margin: 4px 0 12px;
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fight {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(90, 80, 70, 0.35);
  cursor: pointer;
}

.fight:first-of-type {
  border-top: 0;
}

.fight b {
  font-family: "Teko", sans-serif;
  letter-spacing: 0.08em;
  font-size: 16px;
}

.pill {
  font-family: "Teko", sans-serif;
  letter-spacing: 0.12em;
  font-size: 13px;
  padding: 1px 7px;
  border: 1px solid var(--blood);
  color: #e07070;
}

.pill.is-live {
  border-color: var(--toxic);
  color: var(--toxic-2);
  box-shadow: 0 0 10px rgba(107, 142, 35, 0.25);
}

/* raid browser */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 34px;
  padding: 0 12px;
  font-family: "Teko", sans-serif;
  letter-spacing: 0.12em;
  font-size: 16px;
  color: var(--text-dim);
  border: 1px solid #4a4740;
  background: #161412;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.chip.is-on,
.chip:hover {
  color: var(--text);
  border-color: var(--rust);
  box-shadow: 0 0 12px rgba(196, 92, 38, 0.2);
}

.raid-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.raid {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 168px;
  overflow: hidden;
}

.raid-shot {
  position: relative;
  background-size: cover;
  background-position: center;
}

.raid-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 30%, rgba(12, 11, 10, 0.35)),
    radial-gradient(22px 12px at 30% 70%, rgba(90, 18, 18, 0.4), transparent 70%);
}

.raid-body {
  padding: 14px 16px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text-dim);
  font-size: 13px;
}

.tag {
  font-size: 13px;
  padding: 1px 7px;
  border: 1px solid #6a5a40;
  color: var(--warn);
}

.raid-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

/* live */
.live {
  display: grid;
  gap: 14px;
}

.live-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
}

.live-stage {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.live-stage .qa-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  filter: saturate(0.65) contrast(1.08) brightness(0.7);
}

.hud {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background:
    repeating-linear-gradient(180deg, transparent 0 3px, rgba(0, 0, 0, 0.08) 3px 4px),
    linear-gradient(180deg, rgba(8, 7, 6, 0.35), transparent 28%, transparent 62%, rgba(8, 7, 6, 0.7));
}

.hud-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.roster {
  display: grid;
  gap: 8px;
  width: min(360px, 100%);
}

.roster-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(10, 9, 8, 0.72);
  border: 1px solid #4a4034;
  font-size: 13px;
}

.roster-item.is-you {
  border-color: var(--rust);
}

/* wallet */
.wallet-hero {
  padding: 36px 24px 32px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow:
    inset 0 1px 0 rgba(230, 220, 200, 0.08),
    inset 0 -18px 40px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(196, 92, 38, 0.12);
}

.ops {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field span {
  font-family: "Teko", sans-serif;
  letter-spacing: 0.14em;
  font-size: 15px;
  color: var(--text-dim);
}

.field input,
.field select {
  background: #0e0c0a;
  border: 1px solid #4a4740;
  min-height: 44px;
  padding: 0 12px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--rust);
  box-shadow: 0 0 0 1px rgba(196, 92, 38, 0.35);
}

.log {
  width: 100%;
  border-collapse: collapse;
  font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: 12px;
}

.log th,
.log td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px dashed rgba(120, 110, 90, 0.28);
}

.log th {
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.log .pos { color: var(--toxic-2); }
.log .neg { color: #c44a4a; }

/* inventory */
.inv-top {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.portrait {
  padding: 12px;
}

.portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.85);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stat {
  padding: 14px;
}

.grid-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.slot {
  min-height: 148px;
  padding: 12px;
  background:
    linear-gradient(180deg, #24211c, #12100d);
  border: 2px solid #5a5348;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.slot:hover,
.slot.is-on {
  border-color: var(--rust);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.65), 0 0 16px rgba(196, 92, 38, 0.25);
}

.slot.is-locked {
  opacity: 0.4;
  cursor: not-allowed;
}

.slot small {
  display: block;
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 6px;
}

/* leaderboard */
.board {
  width: 100%;
  border-collapse: collapse;
}

.board th,
.board td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(90, 80, 70, 0.3);
}

.board th {
  font-family: "Teko", sans-serif;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  font-weight: 500;
}

.board tr.is-you td {
  background: rgba(196, 92, 38, 0.08);
  color: var(--white);
}

/* cups */
.cup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cup {
  min-height: 220px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

/* modals */
.modal-back {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(6, 5, 4, 0.78);
  display: none;
  place-items: center;
  padding: 20px;
}

.modal-back.is-on {
  display: grid;
}

.modal {
  width: min(560px, 100%);
  padding: 22px 22px 20px;
}

.modal--wide {
  width: min(720px, 100%);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 14px;
}

.x {
  width: 36px;
  height: 36px;
  border: 1px solid #5a5348;
  color: var(--text);
  font-size: 20px;
}

.steps {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.25);
}

.step b {
  font-family: "Teko", sans-serif;
  font-size: 28px;
  color: var(--rust);
}

.board-modal {
  background:
    linear-gradient(180deg, rgba(196, 184, 150, 0.92), rgba(160, 148, 118, 0.92)),
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(80, 70, 50, 0.15) 28px);
  color: #2a2418;
  border: 8px solid #3a3228;
  box-shadow: inset 0 0 40px rgba(80, 60, 30, 0.25);
}

.board-modal .h2,
.board-modal .label,
.board-modal .field span {
  color: #2a2418;
  font-family: "Special Elite", "Courier New", monospace;
  letter-spacing: 0.04em;
}

.board-modal input,
.board-modal select {
  background: transparent;
  border: 0;
  border-bottom: 2px solid #2a2418;
  clip-path: none;
  color: #1a160e;
  font-family: "Special Elite", "Courier New", monospace;
}

.wallets {
  display: grid;
  gap: 8px;
}

/* result */
.result {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: none;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(20, 8, 6, 0.2), rgba(6, 4, 4, 0.92) 70%),
    #080606;
  text-align: center;
  padding: 24px;
}

.result.is-on {
  display: grid;
}

.result.is-win {
  background:
    radial-gradient(circle at 50% 40%, rgba(60, 40, 10, 0.25), rgba(6, 4, 4, 0.92) 70%),
    #080606;
}

.result.is-lose {
  background:
    radial-gradient(circle at 50% 40%, rgba(80, 10, 10, 0.35), rgba(6, 4, 4, 0.94) 70%),
    #120606;
}

.result-inner {
  width: min(760px, 100%);
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.result-actions .btn {
  min-width: 180px;
  min-height: 56px;
}

.scoreboard {
  margin-top: 22px;
  width: 100%;
  border-collapse: collapse;
  font-family: "Share Tech Mono", monospace;
  font-size: 13px;
  background: rgba(12, 10, 8, 0.55);
}

.scoreboard td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(120, 90, 70, 0.35);
  color: var(--text);
}

/* toast */
.toast {
  position: fixed;
  right: 18px;
  bottom: 58px;
  z-index: 130;
  padding: 10px 14px;
  background: #161310;
  border: 1px solid var(--rust);
  color: var(--text);
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.2s ease;
  pointer-events: none;
}

.toast.is-on {
  opacity: 1;
  transform: none;
}

/* mute */
.mute {
  position: fixed;
  left: 12px;
  bottom: 54px;
  z-index: 96;
  width: 36px;
  height: 36px;
  border: 1px solid #5a5348;
  background: #161412;
  color: var(--text-dim);
  font-size: 12px;
}

/* landing-only ticker offset */
body.is-app .ticker {
  opacity: 0.92;
}

@media (max-width: 1100px) {
  .who-name {
    display: none;
  }
}

@media (max-width: 980px) {
  .flow,
  .dash,
  .raid-grid,
  .ops,
  .cup-grid,
  .inv-top,
  .stats {
    grid-template-columns: 1fr;
  }
  .qa-grid,
  .grid-slots {
    grid-template-columns: 1fr 1fr;
  }
  .toolbar {
    grid-template-columns: auto 1fr auto;
  }
  .nav {
    overflow-x: auto;
    justify-content: flex-start;
  }
  .raid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .raid-shot {
    min-height: 120px;
  }
  .live-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .qa-grid,
  .grid-slots {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    min-width: 0;
    width: 100%;
  }
  .who .status-dot,
  .who-name {
    display: none;
  }
  #btn-logout {
    min-width: 0;
    padding: 0 10px;
  }
  .toolbar {
    height: auto;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    padding: 8px 10px 6px;
    gap: 6px 10px;
  }
  .brand { grid-column: 1; grid-row: 1; }
  .brand span { display: none; }
  .who { grid-column: 2; grid-row: 1; }
  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
  }
  .app { padding-top: 112px; }
  .bal-chip { min-width: 110px; padding: 4px 10px 3px; }
  .bal-chip strong { font-size: 22px; }
}
