/* Outpost field-kit theme: dark stone, oxidised metal, and a warm ember accent. */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=DM+Sans:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg:         #111613;
  --bg-2:       #0b100e;
  --card:       #19211d;
  --card-2:     #232d27;
  --line:       #344239;
  --text:       #e8ede6;
  --dim:        #a1aca2;
  --faint:      #758279;

  --primary:    #df593b;
  --primary-d:  #873822;
  --primary-l:  #ef8762;
  --primary-t:  #f2c2aa;

  --green:      #b5df72;
  --blue:       #a9d7e2;
  --blue-700:   #234c52;

  --r:          6px;
  --top:        56px;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, h5 { margin: 0; }
input, textarea { font-family: inherit; }

/* boot screen */

.boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  background:
    radial-gradient(800px 480px at 50% 42%, rgba(205, 65, 43, .18), transparent 70%),
    #0b0d0b;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  transition: opacity .45s ease, visibility .45s ease;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot-mark {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 58px;
  letter-spacing: .12em;
  line-height: 1;
  color: var(--text);
}
.boot-mark span { color: var(--primary); }
.boot-bar {
  width: min(320px, 60vw);
  height: 3px;
  background: #242a24;
  overflow: hidden;
}
.boot-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary-d), var(--primary), var(--primary-l));
  animation: bootfill 1.35s cubic-bezier(.5, .1, .2, 1) forwards;
}
@keyframes bootfill { to { width: 100%; } }
.boot-txt {
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--dim);
}

/* top bar */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--top);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  background: rgba(14, 17, 14, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1b201b;
  z-index: 60;
}

.brand { display: flex; align-items: center; gap: 9px; padding-right: 14px; }
.brand-mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  font: 900 19px/1 'Barlow Condensed', sans-serif;
  color: var(--primary);
  border: 2px solid var(--primary);
  transform: skewX(-8deg);
}
.brand-word {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: .1em;
  line-height: 1;
}
.brand-word em { color: var(--primary); font-style: normal; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #d6d8d3;
  border-radius: 2px;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: #fff; background: #1c211c; }
.nav-ico { font-size: 13px; opacity: .85; }
.caret { font-size: 8px; opacity: .6; margin-left: 2px; }

.race-pill {
  position: absolute;
  top: -2px;
  right: -6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 2px 5px;
  border-radius: 2px;
  background: var(--primary);
  color: #fff;
}

/* dropdown — hover on desktop, click on touch */
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 258px;
  background: #1a1f1a;
  border: 1px solid #2a302a;
  border-radius: 2px;
  padding: 6px 0;
  box-shadow: 0 22px 50px -22px #000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .14s, transform .14s, visibility .14s;
  z-index: 65;
}
.nav-item.has-drop:hover .dropdown,
.nav-item.has-drop.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.drop-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #dcded9;
}
.drop-row:hover { background: #242b24; color: #fff; }
.drop-ico {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 2px;
  background: #0f120f;
  border: 1px solid #2a302a;
  font-size: 11px;
  color: var(--primary-l);
}

.spacer { flex: 1 1 auto; }

.btn {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 0;
  padding: 9px 15px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.btn:hover { background: var(--card-2); border-color: #3a423a; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 7px 11px; font-size: 11px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: #d9503a; border-color: #d9503a; }

.btn-steam {
  background: var(--primary-d);
  border-color: #9b3523;
  color: var(--primary-t);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-steam:hover { background: #8c2e1e; border-color: var(--primary); color: #fff; }
.steam-glyph { font-size: 14px; }

.btn-chat { display: inline-flex; }

.wallet-pill {
  display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--line);
  padding: 6px 11px;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  background: #10140f;
}
.wallet-pill b { color: var(--green); font-weight: 700; }
.scrap-dot {
  width: 11px; height: 11px;
  background: linear-gradient(140deg, #d6d6d6, #6f7570);
  clip-path: polygon(50% 0, 100% 35%, 80% 100%, 20% 100%, 0 35%);
}

/* route shell */

.route { padding-top: var(--top); min-height: 100vh; }

.hero {
  position: relative;
  min-height: min(560px, calc(100vh - var(--top)));
  overflow: hidden;
  display: block;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 12, 10, .55) 0%, rgba(10, 12, 10, .25) 40%, #141814 100%),
    radial-gradient(1100px 700px at 20% 10%, rgba(205, 65, 43, .35), transparent 62%),
    radial-gradient(900px 700px at 85% 30%, rgba(160, 120, 40, .28), transparent 65%),
    linear-gradient(160deg, #1d231c, #0c0f0c 70%);
}
.hero::after {
  /* standing silhouette on the right, like the camp warden */
  content: '';
  position: absolute;
  right: 4%;
  bottom: -6%;
  width: min(40vw, 520px);
  height: 88%;
  background:
    radial-gradient(60% 40% at 50% 12%, rgba(214, 160, 60, .32), transparent 70%),
    linear-gradient(180deg, #2a2118, #0a0c0a);
  clip-path: polygon(40% 0, 62% 3%, 72% 16%, 74% 34%, 88% 44%, 96% 100%, 4% 100%, 12% 46%, 26% 36%, 28% 16%);
  opacity: .8;
  pointer-events: none;
}

.hero-wrap {
  position: relative;
  z-index: 2;
  width: min(1000px, 100% - 32px);
  margin: 0 auto;
  padding: 54px 0 28px;
}

.hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-top h2 {
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.hero-top h1 {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: clamp(34px, 4.4vw, 46px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--primary-l);
  margin: 2px 0 4px;
}
.hero-top p { color: #c3c6c0; margin: 0; font-size: 14.5px; }
.online-count { font-size: 13.5px; color: #cfd2cc; display: flex; align-items: center; gap: 7px; }
.online-count b { color: #fff; }

/* win feed */

.win-feed {
  display: flex;
  gap: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}
.win {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 10px;
  background: rgba(97, 94, 88, .55);
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  overflow: hidden;
}
.win::before {
  content: '';
  position: absolute; inset: 0 auto 0 0; width: 80%;
  background: radial-gradient(circle at left center, var(--tint, #444), transparent 72%);
  opacity: .4;
}
.win > * { position: relative; }
.win-ico {
  width: 26px; height: 26px; flex: none;
  border-radius: 2px;
  background: #10140f;
  border: 1px solid #2a302a;
  display: grid; place-items: center;
  font-size: 10px; color: var(--primary-l);
}
.win-body { min-width: 0; }
.win-body b { display: block; color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }
.win-body span {
  display: block; color: #d8dad5; font-size: 11.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.win-body span i { color: #a6aaa3; font-style: normal; }
.win.ended .win-body b { color: var(--dim); }

/* slider */

.slider {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  height: 250px;
  background: #0d100d;
  margin-bottom: 26px;
}
.slide {
  position: absolute; inset: 0;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 34px;
}
.slide.show { display: flex; animation: fadein .4s ease; }
@keyframes fadein { from { opacity: 0; } }
.slide[data-kind="reward"] { background: linear-gradient(115deg, #2a1430, #12100e 60%); }
.slide[data-kind="drop"]   { background: linear-gradient(115deg, #2a1810, #12100e 60%); }
.slide[data-kind="crypto"] { background: linear-gradient(115deg, #0f1f2a, #12100e 60%); }
.slide[data-kind="social"] { background: linear-gradient(115deg, #1a1230, #12100e 60%); }
.slide-copy { max-width: 55%; }
.slide-kicker {
  font-size: 10.5px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--primary-l);
}
.slide h3 {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: .95;
  margin: 8px 0 8px;
}
.slide p { color: #b9bcb6; margin: 0 0 16px; font-size: 14px; }
.slide-cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 11px 22px;
  transform: skewX(-8deg);
}
.slide-art {
  width: clamp(120px, 22vw, 220px);
  aspect-ratio: 1;
  border-radius: 3px;
  background:
    radial-gradient(circle at 50% 42%, rgba(205, 65, 43, .45), transparent 62%),
    linear-gradient(150deg, #221a14, #0b0d0b);
  display: grid; place-items: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .26em;
  color: var(--primary-t);
  text-align: center;
  padding: 12px;
}
.slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(20, 24, 20, .8);
  color: #dfe1dc;
  font-size: 15px;
  cursor: pointer;
  z-index: 3;
}
.slider-nav:hover { background: rgba(205, 65, 43, .85); color: #fff; }
.slider-nav.prev { left: 12px; }
.slider-nav.next { right: 12px; }
.slider-dots {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 7px;
  z-index: 3;
}
.slider-dots button {
  width: 7px; height: 7px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer;
  background: #5a5f58;
}
.slider-dots button[data-on] { background: #fff; }

/* sections & game tiles */

.sheet { width: min(1000px, 100% - 32px); margin: 0 auto; }
.section { padding: 6px 0 26px; }
.section-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .01em;
}
.section-head .rule { flex: 1; height: 1px; background: #232922; }
.section-head small {
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint);
}

.home-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.game-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 2px;
  overflow: hidden;
  background: #0c0f0c;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform .22s ease;
}
.game-tile::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--tint), transparent 62%),
    linear-gradient(0deg, #060806 10%, transparent 72%);
  opacity: .62;
  transition: opacity .2s;
}
.game-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--tint), transparent 62%);
  opacity: 0;
  transition: opacity .2s;
}
.game-tile:hover { transform: translateY(-2px); }
.game-tile:hover::before { opacity: .9; }
.game-tile:hover::after { opacity: .18; }
.game-icon {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, rgba(255,255,255,.16), transparent 55%),
    linear-gradient(150deg, #2b2419, #0e100d);
  border: 1px solid rgba(255,255,255,.08);
  display: grid;
  place-items: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--tint);
  letter-spacing: .04em;
}
.game-title {
  position: relative;
  padding: 12px 10px 14px;
  text-align: center;
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-weight: 900;
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: .92;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0,0,0,.7);
}
.game-title span { display: block; }
.game-tag {
  position: absolute;
  top: 8px; left: 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 4px 6px;
  background: var(--blue-700);
  color: var(--blue);
  border-radius: 0;
  z-index: 2;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.promo {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  background: rgba(255,255,255,.035);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}
.promo:hover { background: rgba(255,255,255,.08); }
.promo-ico {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  background: #0e120d;
  border: 1px solid #2a302a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--primary-l);
}
.promo h4 {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}
.promo small {
  display: block;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* catalog */

.toolstrip {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 18px 0 16px;
}
.search {
  flex: 1 1 240px;
  background: #171c16;
  border: 1px solid #2a302a;
  color: var(--text);
  padding: 10px 13px;
  font-size: 13.5px;
  border-radius: 2px;
}
.search::placeholder { color: #5c615b; }
.search:focus { outline: none; border-color: var(--primary); }
.chips { display: flex; gap: 5px; flex-wrap: wrap; }
.chip {
  border: 1px solid #2a302a;
  background: transparent;
  border-radius: 99px;
  padding: 6px 13px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  cursor: pointer;
}
.chip[data-on] { background: var(--primary); border-color: var(--primary); color: #fff; }

.crate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.crate {
  position: relative;
  background: #171c16;
  border: 1px solid #232922;
  border-radius: 2px;
  padding: 14px 12px 12px;
  text-align: center;
  transition: border-color .15s, transform .15s;
  overflow: hidden;
}
.crate:hover { border-color: #3a423a; transform: translateY(-2px); }
.crate-svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.crate:hover .crate-svg { transform: translateY(-3px) rotate(-2deg); }
.crate-svg { transition: transform .2s; }
.crate-glyph {
  font-size: 42px;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .55));
}
.crate-art-lg {
  width: 190px;
  height: 190px;
  margin: 0 auto 14px;
}
.crate-art-lg .crate-glyph { font-size: 64px; }
.crate-art {
  width: 112px; height: 112px;
  margin: 0 auto 10px;
  border-radius: 2px;
  background:
    radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--tint, #cd412b) 55%, transparent), transparent 66%),
    linear-gradient(160deg, #202620, #0a0c0a);
  border: 1px solid #2a302a;
  display: grid; place-items: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: #efece0;
  padding: 6px;
  line-height: .95;
  text-transform: uppercase;
}
.crate-name {
  font-size: 13px;
  font-weight: 600;
  min-height: 34px;
  display: grid; place-items: center;
}
.risk-bar { display: flex; gap: 2px; height: 3px; margin: 8px 0 10px; }
.risk-bar i { flex: 1; background: #2a302a; }
.risk-bar i.on { background: var(--primary); }
.crate-price {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--green);
  font-variant-numeric: tabular-nums;
}
.fav {
  position: absolute; top: 7px; right: 7px;
  background: none; border: 0; cursor: pointer;
  color: #4a5049; font-size: 14px; line-height: 1;
}
.fav[data-on] { color: var(--primary-l); }

.empty-note { color: var(--dim); padding: 26px 0; font-size: 13.5px; }

/* panels, tables, forms */

.panel {
  background: #171c16;
  border: 1px solid #232922;
  border-radius: 2px;
  padding: 18px;
}
.page-head { padding: 26px 0 6px; }
.page-head h1 {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.page-head p { color: var(--dim); margin: 4px 0 0; font-size: 14px; }
.eyebrow {
  font-size: 10.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--primary-l);
}

table.grid-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid-table th, table.grid-table td {
  text-align: left; padding: 8px 10px;
  border-bottom: 1px solid #232922;
}
table.grid-table th {
  color: var(--faint); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 700;
}
table.grid-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

.stack { display: grid; gap: 12px; }
.two-col { display: grid; grid-template-columns: 1.35fr .85fr; gap: 14px; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }

.field { display: grid; gap: 5px; }
.field label {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
.field input, .field select {
  background: #0f130e;
  border: 1px solid #2a302a;
  color: var(--text);
  padding: 10px 11px;
  font-size: 13.5px;
  border-radius: 2px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); }
.field input[data-error] { border-color: #b8402f; }
.hint { font-size: 11.5px; color: var(--faint); }

.item-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.item-card {
  position: relative;
  border: 1px solid #232922;
  border-radius: 2px;
  background: #141813;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.item-card:hover { border-color: #3a423a; }
.item-card[data-picked] { border-color: var(--primary); background: #1c1512; }
.item-card[data-picked]::after {
  content: '\2713';
  position: absolute; top: 6px; right: 7px;
  color: var(--primary-l); font-size: 12px;
}
.item-art {
  height: 66px;
  border-radius: 2px;
  margin-bottom: 8px;
  background:
    radial-gradient(circle at 50% 44%, var(--rarity-tint, rgba(205,65,43,.4)), transparent 66%),
    linear-gradient(160deg, #1e241d, #0a0c0a);
  display: grid; place-items: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 12px;
  letter-spacing: .06em; color: #d8dad3;
  padding: 4px; text-transform: uppercase; line-height: 1.1;
}
.item-name {
  font-size: 11.5px; font-weight: 600; min-height: 30px;
  display: grid; place-items: center; line-height: 1.2;
}
.item-price { font-size: 11.5px; color: var(--green); font-weight: 700; }

.tab-row { display: flex; gap: 4px; border-bottom: 1px solid #232922; margin-bottom: 14px; }
.tab {
  border: 0; background: none; cursor: pointer;
  padding: 9px 14px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim);
  border-bottom: 2px solid transparent;
}
.tab[data-on] { color: #fff; border-bottom-color: var(--primary); }

/* footer */

.footer { border-top: 1px solid #1b201b; background: #0e110e; margin-top: 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr .7fr .7fr .8fr;
  gap: 22px;
  padding: 28px 0;
}
.footer h5 {
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--primary-l); margin: 0 0 10px; font-weight: 700;
}
.footer p, .footer li, .footer a { color: #8e918e; font-size: 12px; line-height: 1.65; }
.footer a:hover { color: #dcded8; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.trust { display: flex; flex-direction: column; gap: 6px; }
.trust span {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: #6c716b; border-left: 2px solid var(--primary-d); padding-left: 8px;
}
.footer-base {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid #1b201b;
  padding: 12px 0 22px;
  font-size: 11px; color: #5f645e;
}
.badge-18 {
  border: 1px solid #b8402f; color: #e08c7c;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  font-size: 10.5px; font-weight: 700;
}

/* chat rail */

.chat-rail {
  position: fixed;
  top: var(--top);
  left: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: rgba(12, 15, 12, .96);
  border-right: 1px solid #1e231e;
  display: flex;
  flex-direction: column;
  /* margin-left rather than transform: a transformed panel becomes the
     containing block for its own fixed children and the slide gets stuck */
  margin-left: -340px;
  transition: margin-left .26s ease;
  z-index: 70;
}
.chat-rail.open { margin-left: 0; box-shadow: 30px 0 60px -40px #000; }
.chat-head {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 13px;
  border-bottom: 1px solid #1e231e;
}
.chat-head h4 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.chat-online {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--green);
  letter-spacing: .08em;
}
.chat-head .close {
  background: none; border: 0; cursor: pointer;
  color: var(--dim); font-size: 16px; line-height: 1;
}
.vc {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 13px;
  border-bottom: 1px solid #1e231e;
  font-size: 11.5px; color: var(--blue);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #58a35a;
  box-shadow: 0 0 0 0 rgba(88,163,90,.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(88,163,90,0); }
  100% { box-shadow: 0 0 0 0 rgba(88,163,90,0); }
}
.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12.5px;
  scrollbar-width: thin;
}
.chat-line { display: flex; gap: 8px; align-items: flex-start; }
.chat-av {
  width: 26px; height: 26px; flex: none;
  background: #2a302a;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700; color: #cfd2cc;
}
.chat-body { min-width: 0; }
.chat-body b { font-weight: 700; font-size: 12px; }
.chat-body b.lvl-1 { color: #a6aaa3; }
.chat-body b.lvl-2 { color: #6fb3e0; }
.chat-body b.lvl-3 { color: var(--primary-l); }
.chat-body p { margin: 1px 0 0; color: #d3d6cf; word-break: break-word; }
.chat-body p.mine { color: var(--green); }
.chat-time { font-size: 10px; color: #5b605a; margin-left: 5px; }
.chat-embed {
  margin-top: 5px;
  border: 1px solid #2a302a;
  border-left: 2px solid var(--primary);
  background: #10140f;
  padding: 7px 9px;
  font-size: 11.5px;
  color: #b9bcb6;
}
.chat-input {
  display: flex; gap: 7px;
  padding: 9px 11px;
  border-top: 1px solid #1e231e;
}
.chat-input input {
  flex: 1;
  background: #12160f;
  border: 1px solid #2a302a;
  color: var(--text);
  padding: 8px 10px;
  font-size: 12.5px;
}
.chat-input input:focus { outline: none; border-color: var(--primary); }
.chat-input input[disabled] { opacity: .6; cursor: not-allowed; }

/* modal */

.scrim {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(6, 8, 6, .8);
  backdrop-filter: blur(3px);
  display: grid; place-items: center;
  padding: 18px;
  overflow-y: auto;
}
.scrim[hidden] { display: none; }
.modal {
  width: min(560px, 100%);
  background: #161b15;
  border: 1px solid #2a302a;
  border-radius: 2px;
  padding: 20px;
  box-shadow: 0 40px 90px -40px #000;
}
.modal.wide { width: min(760px, 100%); }
.modal h3 {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 24px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .02em;
  margin-bottom: 4px;
}
.modal > p { color: var(--dim); font-size: 13px; margin: 0 0 14px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

.oauth-row { display: grid; gap: 8px; margin: 6px 0 14px; }
.oauth {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px;
  border: 1px solid #2a302a;
  background: #10140f;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.oauth:hover { border-color: #3a423a; background: #151a14; }
.oauth-glyph {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 800;
  border-radius: 2px;
}
.oauth .oauth-glyph {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: #fff;
  border-radius: 4px;
}
.oauth.discord .oauth-glyph { background: #5865F2; color: #fff; }
.oauth.google .oauth-glyph { background: #fff; color: #4285F4; }
.oauth .oauth-glyph svg { display: block; }
.steam-glyph { display: inline-grid; place-items: center; }
.steam-glyph svg { width: 15px; height: 15px; }
.oauth small { display: block; font-size: 10.5px; color: var(--faint); font-weight: 400; letter-spacing: .06em; }

/* mobile */

.mobile-tabs {
  display: none;
  position: fixed; inset: auto 0 0 0; z-index: 80;
  background: rgba(14, 17, 14, .97);
  border-top: 1px solid #1e231e;
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}
.mobile-tabs a {
  flex: 1;
  display: grid; place-items: center; gap: 2px;
  font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim);
}
.mobile-tabs a b { font-size: 14px; color: var(--primary-l); font-weight: 400; }

@media (max-width: 1080px) {
  .home-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .crate-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .home-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .promo-grid { grid-template-columns: 1fr 1fr; }
  .two-col, .three-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .win-feed .win:nth-child(n+4) { display: none; }
  .slide-art { display: none; }
  .slide-copy { max-width: 100%; }
}

@media (max-width: 640px) {
  /* wallet + deposit stay reachable on a phone: balance in the pill, the
     deposit sheet lives on the bottom tab */
  .topbar #withdraw-open { display: none; }
  .topbar #deposit-open { display: none; }
  .topbar .wallet-pill { padding: 5px 8px; font-size: 11.5px; }
  .topbar .btn { padding: 7px 10px; font-size: 10.5px; letter-spacing: .06em; }
  .topbar .brand-word { font-size: 20px; }
  .mobile-tabs { display: flex; }
  .route { padding-bottom: 54px; }
  .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .slider { height: 220px; }
  .win-feed .win:nth-child(n+3) { display: none; }
  .hero-wrap { padding-top: 30px; }
}

/* wheel */

.wheel-page .page-head { padding-bottom: 10px; }

.wheel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .75fr);
  gap: 12px;
  align-items: start;
}

.wheel-main {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 22px 18px 18px;
  background:
    radial-gradient(560px 320px at 50% 30%, rgba(205, 65, 43, .12), transparent 70%),
    #171c16;
}

.wheel-stage {
  position: relative;
  width: min(400px, 82vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-top: 8px;
}
.wheel-disc {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  box-shadow:
    0 0 0 5px #191f18,
    0 0 0 8px #3f483c,
    0 0 0 9px #0d110c,
    0 0 40px -6px rgba(205, 65, 43, .35),
    0 34px 70px -30px #000;
  will-change: transform;
}
.wheel-stage::after {
  /* rim light that pulses while the disc is flying */
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: inset 0 0 34px rgba(255, 214, 130, .18);
}
.wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 20px solid #f1c64a;
  z-index: 3;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.75));
}
.wheel-pointer::after {
  content: '';
  position: absolute;
  top: -22px;
  left: -5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff0b8;
}

.wheel-readout {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.wheel-readout b {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  letter-spacing: .02em;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.wheel-spin {
  width: min(300px, 100%);
  padding: 14px;
  font-size: 14px;
  letter-spacing: .2em;
}
.wheel-note { margin: 0; }

.wheel-side { padding: 16px 14px; }
.wheel-side .eyebrow { margin-bottom: 10px; display: block; }

.wheel-bets { display: grid; gap: 5px; }
.wheel-bet {
  display: grid;
  grid-template-columns: 10px 1fr auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  background: #12160f;
  border: 1px solid #232922;
  border-left: 3px solid var(--tier);
  transition: background .15s, border-color .15s;
}
.wheel-bet[data-on] { background: #1a2118; border-color: #3a4238; border-left-color: var(--tier); }
.wb-color {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--tier);
  box-shadow: 0 0 8px -2px var(--tier);
}
.wb-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .04em;
}
.wb-odds { font-size: 10.5px; color: var(--faint); }
.wb-amount {
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--green);
  min-width: 46px;
  text-align: right;
}
.wb-steps { display: flex; gap: 3px; }
.wb-steps button {
  width: 22px; height: 22px;
  border: 1px solid #2c332c;
  background: #1b211a;
  color: #cfd2cc;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.wb-steps button:hover { background: #262d25; color: #fff; }

.wheel-side-actions { display: flex; gap: 5px; margin-top: 10px; }
.wheel-history { display: grid; gap: 5px; }
.wh-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  border-bottom: 1px solid #1e231e;
  padding-bottom: 5px;
}
.wh-row span { color: var(--dim); }
.wh-row b { color: var(--green); font-variant-numeric: tabular-nums; }

.wheel-odds { margin-top: 12px; padding: 8px 14px; }
.wb-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .wheel-layout { grid-template-columns: 1fr; }
  .wheel-stage { width: min(320px, 84vw); }
}

/* the stage gets .spinning for the length of the flight: lights up and lets the
   pin flicker so a slow wheel still reads as motion */
.wheel-stage.spinning .wheel-pointer { animation: pinFlicker .18s linear infinite; }
.wheel-stage.spinning::after { box-shadow: inset 0 0 60px rgba(255, 214, 130, .32); }
@keyframes pinFlicker {
  50% { transform: translateX(-50%) translateY(2px); }
}

/* Reduced motion: no long spin, but still a visible settle so the result reads
   as a landing rather than an instant jump. */
@media (prefers-reduced-motion: reduce) {
  .wheel-disc { transition-duration: .6s !important; }
  .wheel-stage.spinning .wheel-pointer { animation: none; }
}

/* deposit / withdraw stubs */

.stub-panel {
  border: 1px solid #232922;
  background: #10140f;
  padding: 12px 14px;
}
.stub-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #1c211b;
  font-size: 12.5px;
  color: var(--dim);
}
.stub-row:last-of-type { border-bottom: 0; }
.stub-row b { color: #e6e8e2; font-weight: 600; }

/* legal pages */

.legal-page { padding-bottom: 40px; }
.legal-body {
  max-width: 720px;
  margin-top: 18px;
  border-top: 1px solid #232922;
}
.legal-section { padding: 18px 0 6px; border-bottom: 1px solid #1c211b; }
.legal-section h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary-l);
  margin-bottom: 8px;
}
.legal-section p { color: #b3b7b0; font-size: 13.5px; line-height: 1.7; margin: 0; }
.legal-list {
  margin: 0;
  padding-left: 18px;
  color: #b3b7b0;
  font-size: 13.5px;
  line-height: 1.7;
}
.legal-list li { margin-bottom: 5px; }
.legal-list li::marker { color: var(--primary); }

/* crate opening */
.open-fx { position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; background: rgba(6,8,6,.94); opacity: 0; transition: opacity .2s; overflow: hidden; }
.open-fx.in { opacity: 1; }
.open-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 34px; letter-spacing: .08em; text-transform: uppercase; color: #efece0; }
.open-crate { width: 240px; height: 240px; }
.open-crate .crate-svg { filter: drop-shadow(0 0 30px rgba(205,65,43,.45)); }
.open-crate.shake { animation: crateShake .9s ease-in-out; }
.open-crate.pop .crate-lidg { animation: lidPop .45s ease-in forwards; }
.open-crate.pop { animation: crateFlash .45s ease-in forwards; }
@keyframes crateShake { 0%,100% { transform: rotate(0) scale(1); } 15% { transform: rotate(-7deg) scale(1.03); } 30% { transform: rotate(7deg) scale(1.06); }
  45% { transform: rotate(-9deg) scale(1.08); } 60% { transform: rotate(9deg) scale(1.1); } 80% { transform: rotate(-4deg) scale(1.12); } }
@keyframes lidPop { to { transform: translateY(-60px) rotate(-14deg); opacity: 0; } }
@keyframes crateFlash { to { transform: scale(1.25); filter: brightness(3); opacity: 0; } }
.reel-wrap { position: relative; width: min(1100px, 96vw); overflow: hidden; padding: 16px 0;
  background: linear-gradient(#0c0f0c, #151a14); border-block: 1px solid #2a302a;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.reel-marker { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #cd412b; z-index: 2; box-shadow: 0 0 14px #cd412b; }
.reel-marker::before { content: ''; position: absolute; top: 0; left: -6px; border: 7px solid transparent; border-top-color: #cd412b; }
.reel { display: flex; gap: var(--gap); will-change: transform; }
.reel-tile { flex: 0 0 var(--tile); height: 150px; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px; text-align: center;
  background: radial-gradient(circle at 50% 35%, var(--rarity-tint), transparent 70%), #181d17; border: 1px solid #272d26; border-bottom: 3px solid var(--rarity-tint); }
.reel-art { flex: 1; display: grid; place-items: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 19px; text-transform: uppercase; color: #efece0; line-height: 1; }
.reel-name { font-size: 11px; color: #9a9e98; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel-price { font-weight: 700; font-size: 13px; color: #b5e571; }
.reel-tile.hit { animation: tileHit .6s ease-out forwards; position: relative; z-index: 1; }
@keyframes tileHit { to { transform: scale(1.12); border-color: #b5e571; box-shadow: 0 0 30px rgba(181,229,113,.55); } }
.open-result { text-align: center; display: grid; gap: 4px; animation: resultIn .5s ease-out; }
.open-result small { color: #8e918e; text-transform: uppercase; letter-spacing: .15em; }
.open-result b { font-size: 28px; color: #efece0; }
.open-result span { color: #b5e571; font-weight: 700; font-size: 18px; margin-bottom: 10px; }
@keyframes resultIn { from { transform: translateY(14px) scale(.96); opacity: 0; } }
.open-fx.big::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(181,229,113,.25), transparent 60%); animation: bigFlash 1.2s ease-out; }
@keyframes bigFlash { from { opacity: 1; transform: scale(.4); } to { opacity: 0; transform: scale(1.6); } }
.open-skip { position: absolute; top: 18px; right: 18px; background: none; border: 1px solid #2a302a; color: #8e918e; padding: 6px 12px; cursor: pointer; font: inherit; font-size: 12px; }

.crate-art .crate-glyph { display: block; width: 100%; height: 100%; }
.open-fx [hidden] { display: none !important; }

.ico { display: block; }
.game-icon .ico { width: 100%; height: 100%; }
.promo-ico .ico, .drop-ico .ico, .win-ico .ico { margin: auto; }
.nav-ico, .btn [data-icon], .mobile-tabs b { display: inline-flex; vertical-align: middle; }
.btn [data-icon] { margin-right: 6px; }
.mobile-tabs b { display: flex; justify-content: center; }

/* game art + new game pages */
.game-icon { background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.08), transparent 60%), linear-gradient(150deg, #262014, #0d0f0c); overflow: hidden; }
.game-art { width: 78%; height: 78%; filter: drop-shadow(0 4px 8px rgba(0,0,0,.55)); transition: transform .25s; }
.game-tile:hover .game-art { transform: scale(1.08) rotate(-4deg); }
.lobby-hero { width: 180px; height: 180px; margin: 10px auto 0; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, color-mix(in srgb, var(--tint) 28%, transparent), transparent 70%); }
.lobby-hero .game-art { width: 80%; height: 80%; }
.mines-layout { display: grid; grid-template-columns: 300px 1fr; gap: 14px; padding-top: 14px; align-items: start; }
.mines-side { display: grid; gap: 10px; }
.mines-bet { display: flex; gap: 6px; }
.mines-bet input { flex: 1; min-width: 0; background: #0b0e0b; border: 1px solid #2a312a; color: #efece0; padding: 10px; font: inherit; }
.mines-counts { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: #141914; border: 1px solid #2a312a; color: #cfd2cb; padding: 8px 12px; cursor: pointer; font: inherit; font-weight: 600; }
.chip[data-on] { border-color: #ff5252; color: #fff; background: #2a1514; }
.mines-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mines-stats > div { background: #0b0e0b; border: 1px solid #232922; padding: 8px 10px; display: grid; }
.mines-stats b { font-size: 20px; color: #b5e571; }
.mines-board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 520px; padding: 14px;
  background: linear-gradient(#101510, #0a0d0a); border: 1px solid #232922; }
.mines-board.boom { animation: boom .45s; }
@keyframes boom { 20% { transform: translate(-6px, 3px); } 40% { transform: translate(6px, -4px); } 60% { transform: translate(-4px, 2px); } 80% { transform: translate(3px, -2px); } }
.mine-tile { aspect-ratio: 1; border: 1px solid #2b332b; border-bottom-width: 4px; background: linear-gradient(#222a21, #171c16); cursor: pointer;
  display: grid; place-items: center; padding: 14%; transition: transform .12s, background .2s; }
.mine-tile:not(:disabled):hover { transform: translateY(-2px); background: linear-gradient(#2c372b, #1c231b); }
.mine-tile:disabled { cursor: default; }
.mine-tile svg { width: 100%; height: 100%; animation: tilePop .3s ease-out; }
.mine-tile.gem { background: radial-gradient(circle, rgba(58,227,116,.25), #121812); border-color: #2c6b43; }
.mine-tile.bomb { background: radial-gradient(circle, rgba(255,82,82,.35), #1a1010); border-color: #7a2a2a; }
.mine-tile.dim svg { opacity: .45; }
@keyframes tilePop { from { transform: scale(.3) rotate(-20deg); opacity: 0; } }
.upg-dial { display: grid; place-items: center; background: linear-gradient(#101510, #0a0d0a); border: 1px solid #232922; padding: 20px; }
.upg-dial svg { width: min(360px, 80vw); }
@media (max-width: 760px) { .mines-layout { grid-template-columns: 1fr; } }
.mines-side { grid-template-columns: minmax(0, 1fr); box-sizing: border-box; }
.mines-side .btn { width: 100%; }
.mines-bet input { width: 100%; box-sizing: border-box; }

/* bot games */
.mines-select { width: 100%; box-sizing: border-box; background: #0b0e0b; border: 1px solid #2a312a; color: #efece0; padding: 10px; font: inherit; }
.battle-board { background: linear-gradient(#101510, #0a0d0a); border: 1px solid #232922; padding: 14px; min-height: 260px; }
.battle-cols { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 10px; }
.battle-col { background: #0b0e0b; border: 1px solid #232922; padding: 8px; display: grid; gap: 6px; align-content: start; }
.battle-col.winner { border-color: #b5e571; box-shadow: 0 0 22px -6px rgba(181,229,113,.6); }
.battle-col h5 { margin: 0; font-size: 12px; color: #9a9e98; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
h5.me { color: #ff8a5c; }
.battle-cell { height: 74px; display: grid; place-items: center; background: #141914; border: 1px solid #232922; overflow: hidden; }
.battle-cell .crate-svg { width: 60px; height: 60px; opacity: .6; }
.battle-cell.shown { animation: tilePop .35s ease-out; }
.battle-cell.up { border-color: #2c6b43; color: #b5e571; } .battle-cell.down { color: #cfd2cb; }
.battle-total { text-align: center; font-weight: 800; font-size: 18px; color: #b5e571; padding-top: 4px; }
.royale-list { display: grid; gap: 6px; }
.royale-row { display: grid; grid-template-columns: 1fr auto 48px; gap: 10px; align-items: center; padding: 10px 12px; background: #0b0e0b; border: 1px solid #232922; transition: opacity .4s; }
.royale-row.me span { color: #ff8a5c; } .royale-row.out { opacity: .35; } .royale-row em { color: #ff5252; font-style: normal; font-size: 11px; }
.royale-row b { color: #b5e571; }
.bean-stage { --heat: 0; position: relative; display: grid; justify-items: center; gap: 10px; padding: 24px; min-height: 300px; align-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(255,90,60, calc(var(--heat) * .35)), transparent 65%), linear-gradient(#101510, #0a0d0a); border: 1px solid #232922; }
.bean-can { width: 150px; height: 150px; animation: canShake .25s infinite; animation-duration: calc(.35s - var(--heat) * .25s); }
.bean-can .game-art { width: 100%; height: 100%; }
@keyframes canShake { 0%,100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
.bean-mult { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 64px; color: #efece0; }
.bean-stage.blast .bean-can { animation: canBlast .5s forwards; } .bean-stage.blast .bean-mult { color: #ff5252; }
@keyframes canBlast { to { transform: scale(2.2); opacity: 0; filter: brightness(3); } }
.bean-history { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.bean-history span { background: #141914; border: 1px solid #2a312a; padding: 3px 8px; font-size: 12px; color: #cfd2cb; } .bean-history .hi { color: #b5e571; border-color: #2c6b43; }
.spinner-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.spinner-card { width: 160px; text-align: center; padding: 10px; background: #0b0e0b; border: 1px solid #232922; display: grid; gap: 6px; }
.spinner-card.winner { border-color: #b5e571; box-shadow: 0 0 22px -6px rgba(181,229,113,.6); }
.spinner-card h5 { margin: 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #9a9e98; }
.spinner-card b { font-size: 13px; color: #b5e571; min-height: 18px; }

/* Outpost field kit — weathered stone, oxidised metal, and mode-specific signals */
:root {
  --stone-0: #0b100e;
  --stone-1: #121a16;
  --stone-2: #202b24;
  --stone-3: #344239;
  --warm-metal: #bd7449;
  --font-mono: 'Space Mono', monospace;
}

html { background: var(--stone-0); scroll-behavior: smooth; }
body {
  background:
    radial-gradient(ellipse 70% 38% at 48% -12%, rgba(99, 119, 91, .18), transparent 70%),
    repeating-linear-gradient(113deg, rgba(255,255,255,.012) 0 1px, transparent 1px 5px),
    var(--bg);
  font-family: 'DM Sans', sans-serif;
}
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #f0b875;
  outline-offset: 3px;
}
.topbar {
  background: rgba(11, 16, 14, .94);
  border-bottom-color: rgba(181, 223, 114, .16);
  box-shadow: 0 8px 28px rgba(0,0,0,.24);
}
.brand-mark { border-color: var(--primary); box-shadow: inset 0 0 0 3px rgba(223,89,59,.08); }
.nav-link[data-active] { color: #f1b184; }
.btn {
  border-radius: 4px;
  letter-spacing: .09em;
  box-shadow: inset 0 1px rgba(255,255,255,.045);
}
.btn-primary {
  color: #1a100d;
  background: linear-gradient(180deg, #f18359, #d95032);
  border-color: #f18359;
  box-shadow: 0 3px 0 #843822, inset 0 1px rgba(255,255,255,.22);
}
.btn-primary:hover { background: linear-gradient(180deg, #ff986c, #e3603d); border-color: #ff986c; }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 #843822; }
.btn-steam { border-radius: 4px; }
.wallet-pill { border-radius: 4px; border-color: #3a493d; background: #131b16; }
.hero { background: #0d130f; }
.hero::before {
  background:
    radial-gradient(ellipse 48% 55% at 78% 29%, rgba(210,102,54,.16), transparent 70%),
    radial-gradient(ellipse 64% 62% at 12% 4%, rgba(107,137,93,.22), transparent 75%),
    linear-gradient(180deg, rgba(8,12,10,.18), #111613 96%),
    repeating-linear-gradient(117deg, rgba(217,230,205,.018) 0 1px, transparent 1px 4px),
    linear-gradient(135deg,#202a21,#0b100e 74%);
}
.hero::after {
  width: min(38vw, 500px);
  background:
    radial-gradient(45% 34% at 50% 18%, rgba(191,111,65,.24), transparent 100%),
    linear-gradient(90deg, transparent 5%, rgba(12,17,14,.38) 24%, #111613 85%);
  clip-path: polygon(38% 0,63% 0,68% 20%,77% 28%,74% 48%,91% 61%,100% 100%,0 100%,10% 61%,27% 48%,24% 29%,33% 20%);
}
.hero-top h1, .page-head h1, .slide h3 { text-shadow: 0 3px 24px rgba(0,0,0,.42); }
.win {
  border: 1px solid rgba(193,204,181,.12);
  background: rgba(28,37,31,.76);
  border-radius: 4px;
  backdrop-filter: blur(8px);
}
.win-ico, .drop-ico, .promo-ico { border-radius: 4px; }
.slider { border: 1px solid rgba(219,229,211,.12); border-radius: 7px; box-shadow: 0 22px 55px -35px #000; }
.slide { background-image: repeating-linear-gradient(120deg,rgba(255,255,255,.018) 0 1px,transparent 1px 5px); }
.slide[data-kind="reward"] { background-color: #292019; }
.slide[data-kind="drop"] { background-color: #2b1b14; }
.slide[data-kind="crypto"] { background-color: #162724; }
.slide[data-kind="social"] { background-color: #20241a; }
.slide-cta { border-radius: 3px; box-shadow: 0 3px 0 #843822; }
.section-head { margin-bottom: 15px; }
.section-head h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 21px; text-transform: uppercase; letter-spacing: .08em; }
.section-head .rule { background: linear-gradient(90deg,#3d4c40,transparent); }
.home-tiles { gap: 14px; }
.game-tile {
  border-radius: 7px;
  border: 1px solid rgba(197,212,193,.12);
  background:
    radial-gradient(circle at 50% 34%, color-mix(in srgb,var(--tint) 20%,transparent), transparent 54%),
    linear-gradient(145deg,#27352b,#111713 60%,#0b100e);
  box-shadow: inset 0 1px rgba(255,255,255,.07), 0 12px 28px -18px #000;
}
.game-tile::before {
  background:
    linear-gradient(180deg,rgba(10,14,11,.04) 0%,rgba(8,12,10,.06) 36%,#0a100d 100%),
    repeating-linear-gradient(108deg,rgba(255,255,255,.016) 0 1px,transparent 1px 4px);
  opacity: .96;
}
.game-tile::after { background: linear-gradient(180deg,transparent 32%,color-mix(in srgb,var(--tint) 44%,transparent)); }
.game-tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb,var(--tint) 58%,#657163); }
.game-icon {
  width: 68%;
  top: 39%;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 50% 70%, color-mix(in srgb,var(--tint) 26%,transparent),transparent 62%),
    linear-gradient(145deg,#303c31,#141b16);
  border: 1px solid rgba(219,226,207,.17);
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 18px 28px -22px #000;
}
.game-art { width: 88%; height: 88%; filter: drop-shadow(0 9px 10px rgba(0,0,0,.52)); }
.game-tile:hover .game-art { transform: translateY(-3px) scale(1.06) rotate(-2deg); }
.game-title { z-index: 1; padding-bottom: 18px; font-size: clamp(18px,1.65vw,25px); letter-spacing: .04em; }
.game-tag { border-radius: 3px; background: #a94a30; color: #fff0db; box-shadow: 0 4px 10px #0005; }
.promo { border-radius: 5px; border: 1px solid rgba(185,204,180,.1); background: #172019; }
.promo:hover { border-color: rgba(181,223,114,.3); }

.page-head { padding-top: 32px; }
.page-head h1 { font-size: clamp(34px,4.4vw,48px); letter-spacing: .025em; }
.page-head p { max-width: 680px; }
.eyebrow { color: #e98961; font-family: var(--font-mono); letter-spacing: .12em; }
.panel, .wheel-main, .wheel-side, .upg-dial, .battle-board, .mines-board {
  border: 1px solid #34443a;
  border-radius: 7px;
  background:
    repeating-linear-gradient(112deg,rgba(225,236,216,.016) 0 1px,transparent 1px 5px),
    linear-gradient(145deg,#1a241d,#121915);
  box-shadow: inset 0 1px rgba(255,255,255,.055), 0 16px 35px -28px #000;
}
.panel { padding: 18px; }
.mines-layout {
  grid-template-columns: minmax(250px, 300px) minmax(0,1fr);
  gap: 16px;
  padding-top: 18px;
}
.mines-side {
  align-content: start;
  padding: 17px;
  border-color: #37473c;
  background:
    linear-gradient(155deg,rgba(200,215,190,.045),transparent 48%),
    #17201a;
  box-shadow: inset 0 1px rgba(255,255,255,.07), 0 15px 30px -24px #000;
}
.mines-side .hint, .mines-side label { color: #acb8ab; }
.mines-bet input, .mines-select, .field input, .field select {
  border-radius: 4px;
  border-color: #3a4a3d;
  background: #0d1410;
  transition: border-color .16s, background .16s;
}
.mines-bet input:focus, .mines-select:focus, .field input:focus, .field select:focus { border-color: var(--mode-accent,var(--primary)); }
.mines-counts { gap: 7px; }
.chip {
  border-radius: 4px;
  background: linear-gradient(180deg,#243027,#19211b);
  border-color: #3a4a3d;
  color: #c8d1c6;
  transition: background .15s,border-color .15s,color .15s,transform .15s;
}
.chip:hover:not(:disabled) { border-color: var(--mode-accent,var(--primary)); background: #2b382d; color: #fff; }
.chip:active:not(:disabled) { transform: translateY(1px); }
.chip[data-on] { border-color: var(--mode-accent,var(--primary)); color: #fff; background: color-mix(in srgb,var(--mode-accent,var(--primary)) 24%,#172019); }
.chip:disabled, .btn:disabled { cursor: not-allowed; opacity: .44; filter: saturate(.5); }
.mines-stats > div {
  border: 1px solid #344239;
  border-radius: 4px;
  background: #101712;
  padding: 10px;
}
.mines-stats b { font-family: 'Barlow Condensed',sans-serif; font-size: 23px; color: var(--mode-accent,var(--green)); }
.mines-board {
  width: min(100%, 640px);
  justify-self: center;
  gap: clamp(6px,1.05vw,11px);
  padding: clamp(10px,2vw,20px);
  border: 1px solid #465548;
  background:
    linear-gradient(135deg,rgba(207,224,197,.08),transparent 42%),
    repeating-linear-gradient(0deg,rgba(0,0,0,.11) 0 1px,transparent 1px 4px),
    linear-gradient(145deg,#101713,#1a241d 52%,#0b110e);
  box-shadow: inset 0 0 0 5px rgba(4,8,6,.25), 0 20px 50px -30px #000;
}
.mine-tile {
  position: relative;
  border-radius: 5px;
  border: 1px solid #556356;
  border-bottom: 5px solid #303b32;
  background:
    linear-gradient(145deg,rgba(255,255,255,.09),transparent 38%),
    repeating-linear-gradient(130deg,rgba(255,255,255,.022) 0 1px,transparent 1px 4px),
    linear-gradient(145deg,#596253,#3c463b 48%,#303a32);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.12), inset 0 -5px 8px rgba(0,0,0,.28), 0 4px 0 #101611;
  transition: transform .15s,filter .15s,border-color .15s,background .15s;
}
.mine-tile:not(:disabled):hover { transform: translateY(-3px); filter: brightness(1.13); border-color: #9aa888; }
.mine-tile:not(:disabled):active { transform: translateY(1px); }
.mine-tile:disabled { cursor: default; }
.mine-tile:disabled:not(.gem):not(.bomb) { filter: brightness(.78); }
.mine-tile.gem { background: radial-gradient(circle at 50% 44%,rgba(148,232,133,.3),transparent 60%),linear-gradient(145deg,#465846,#253b30); border-color:#78ac70; }
.mine-tile.bomb { background: radial-gradient(circle at 50% 44%,rgba(238,101,65,.3),transparent 60%),linear-gradient(145deg,#573b31,#30201d); border-color:#a95b43; }
.mines-board.boom { animation: boom .45s; }
#route:has(#mines-board) { --mode-accent: #d8a95a; }
#route:has(#mines-board) .page-head .eyebrow { color: #d8a95a !important; }
#route:has(#mines-board) .mines-board { background-color: #1c241b; }
#route:has(#upg-needle) { --mode-accent: #9dce75; }
#route:has(#cb-board) { --mode-accent: #e8934a; }
#route:has(#cr-board) { --mode-accent: #d8b76a; }
#route:has(#bean-stage) { --mode-accent: #ed7955; }
#route:has(#sp-row) { --mode-accent: #77b4c7; }
#route:has(.wheel-disc) { --mode-accent: #e2b967; }
#route:has(#crate-grid) { --mode-accent: #b6d77b; }
#route:has(#crate-grid) .crate { border-radius: 6px; background: linear-gradient(145deg,#202c24,#131a15); }
#route:has(#crate-grid) .crate-art { border-radius: 5px; }
#route:has(#crate-grid) .crate:hover { border-color: var(--mode-accent); }
#route:has(#crate-grid) .toolstrip { padding-top: 20px; }

.wheel-layout { gap: 16px; }
.wheel-main { background: radial-gradient(ellipse at 50% 40%,rgba(210,174,92,.1),transparent 58%),#17201a; }
.wheel-disc { box-shadow: 0 0 0 5px #202b24,0 0 0 8px #596344,0 0 0 10px #0b100e,0 30px 65px -30px #000; }
.wheel-side { background: linear-gradient(145deg,#1d2820,#121915); }
.wheel-bet { border-radius: 4px; background: #111813; }
.wheel-bet[data-on] { box-shadow: inset 0 0 18px rgba(255,255,255,.025); }
.wb-steps button { border-radius: 3px; }
.wheel-odds { margin-top: 16px; }
.upg-dial { min-height: 300px; background: radial-gradient(circle,rgba(157,206,117,.1),transparent 55%),linear-gradient(145deg,#1d2b21,#111713); }
.upg-dial svg { filter: drop-shadow(0 12px 20px #0008); }
.battle-board { min-width: 0; padding: clamp(10px,1.8vw,18px); }
.battle-cols { gap: clamp(6px,1vw,11px); }
.battle-col { border-radius: 5px; background: #101713; border-color: #344239; }
.battle-col.winner, .spinner-card.winner { border-color: #b5df72; box-shadow: inset 0 0 28px rgba(181,223,114,.08),0 0 22px -10px rgba(181,223,114,.5); }
.battle-cell { height: clamp(58px,8vw,86px); border-radius: 4px; background: linear-gradient(145deg,#243027,#141b16); border-color: #344239; }
.battle-cell.up { background: radial-gradient(circle,rgba(181,223,114,.14),#151e17); }
.battle-cell.down { background: radial-gradient(circle,rgba(204,120,83,.09),#151917); }
.battle-total, .royale-row b, .spinner-card b { color: var(--mode-accent,var(--green)); }
.royale-row { border-radius: 4px; background: linear-gradient(90deg,#18221b,#111713); border-color: #344239; }
.royale-row.out { filter: grayscale(.5); }
.royale-row.me span, h5.me { color: #f1a36d; }
.bean-stage {
  overflow: hidden;
  border-radius: 7px;
  border-color: #584039;
  background:
    radial-gradient(circle at 50% 40%,rgba(237,121,85,calc(var(--heat) * .32)),transparent 64%),
    repeating-linear-gradient(125deg,rgba(255,255,255,.018) 0 1px,transparent 1px 5px),
    linear-gradient(145deg,#281c18,#141915);
}
.bean-can { filter: drop-shadow(0 14px 20px rgba(0,0,0,.55)); }
.bean-mult { font-family:'Barlow Condensed',sans-serif; text-shadow: 0 4px 24px rgba(237,121,85,.24); }
.bean-history span { border-radius: 3px; background: #18211b; }
.spinner-row { gap: clamp(8px,1.5vw,16px); }
.spinner-card { border-radius: 6px; background: linear-gradient(145deg,#202c25,#111713); border-color: #3a4a3d; }
.spinner-svg { filter: drop-shadow(0 8px 12px #0008); }
.lobby-hero { width: min(260px,64vw); height: min(260px,64vw); border-radius: 18px; border:1px solid rgba(214,224,208,.12); background:radial-gradient(circle,color-mix(in srgb,var(--tint) 24%,transparent),transparent 72%),linear-gradient(145deg,#243027,#111713); box-shadow:inset 0 1px rgba(255,255,255,.07),0 24px 45px -30px #000; }
.lobby-hero .game-art { width: 88%; height: 88%; }
.empty-note { border-left: 2px solid var(--mode-accent,var(--primary)); padding: 12px 14px; background: rgba(255,255,255,.025); }
.crate { border-radius: 6px; }
.crate-svg { transition: transform .25s; }
.crate-name { color: #e2e9df; }
.crate-price { color: #c5e48a; font-family: var(--font-mono); font-size: 12px; }
.fav { font-size: 17px; }
.item-card, .item-art { border-radius: 4px; }
.chat-rail { background: rgba(12,18,14,.98); border-right-color: #344239; }
.footer { background: #0b100e; }

@media (max-width: 900px) {
  .mines-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .mines-board { width: 100%; }
}
@media (max-width: 760px) {
  .mines-layout { grid-template-columns: 1fr; }
  .mines-side { grid-template-columns: minmax(0,1fr); }
  .mines-board { width: min(100%,560px); }
  .battle-cols { grid-template-columns: repeat(var(--cols),minmax(0,1fr)); }
  .battle-cell { height: clamp(54px,14vw,74px); }
  .spinner-card { width: min(160px,calc(50% - 10px)); }
  .page-head { padding-top: 24px; }
}
@media (max-width: 460px) {
  .sheet { width: min(100% - 24px,1000px); }
  .home-tiles { gap: 9px; }
  .game-tile { aspect-ratio: 3 / 3.7; }
  .game-icon { width: 72%; }
  .mines-side { padding: 13px; }
  .mines-board { gap: 5px; padding: 9px; }
  .wheel-main { padding: 16px 10px; }
  .wheel-side { padding: 14px 11px; }
  .spinner-card { padding: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------------- store / gift cards ---------------- */

.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.gift-card {
  border: 1px solid #2a312a;
  background: #101510;
  padding: 12px;
  display: grid;
  gap: 10px;
}
.gift-face {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  padding: 14px;
  display: grid;
  align-content: space-between;
  background:
    radial-gradient(120% 90% at 12% 0%, hsl(var(--gc) 60% 34% / .95), transparent 62%),
    linear-gradient(150deg, hsl(var(--gc) 45% 18%), #0a0d0a 72%);
  border: 1px solid hsl(var(--gc) 40% 26%);
  overflow: hidden;
}
.gift-face::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 1px, transparent 1px 9px);
  pointer-events: none;
}
.gift-brand {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .28em;
  color: rgba(255,255,255,.82);
}
.gift-value {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 900;
  line-height: .9;
  color: #fff;
  text-shadow: 0 3px 12px rgba(0,0,0,.55);
}
.gift-scrap {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.66);
}
.gift-card .btn { width: 100%; }

.gift-redeem-row { display: flex; gap: 8px; }
.gift-redeem-row input {
  flex: 1;
  background: #0d1410;
  border: 1px solid #3a4a3d;
  color: var(--text);
  padding: 10px 11px;
  font-size: 13.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 4px;
}
.gift-redeem-row input:focus { outline: none; border-color: var(--primary); }
.account-gift { border-top: 1px solid #232922; margin-top: 14px; }

@media (max-width: 900px) {
  .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .gift-grid { grid-template-columns: 1fr; }
  .gift-redeem-row { flex-direction: column; }
}

/* ---------------- live crate battles ---------------- */

.battle-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #232922;
}
.battle-crate {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.battle-phase {
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid #2a312a;
  color: #9a9e98;
}
.battle-phase[data-phase="running"] { color: #e2b967; border-color: #5a4a1f; animation: phaseBlink 1.1s infinite; }
.battle-phase[data-phase="done"] { color: #b5e571; border-color: #2c6b43; }
@keyframes phaseBlink { 50% { opacity: .45; } }

.battle-who {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid #1c211b;
  margin-bottom: 4px;
}
.battle-who img,
.battle-initial {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #2a312a;
  font-size: 12px; font-weight: 700; color: #dfe2da;
  object-fit: cover;
}
.battle-who em {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #5f645e;
}
.battle-who em.is-ready { color: #b5e571; }

.battle-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 12px;
}
.battle-result {
  margin-top: 12px;
  padding: 10px 12px;
  text-align: center;
  font-size: 13px;
  background: #12190f;
  border: 1px solid #2c6b43;
  color: #b5e571;
}
.battle-col { min-width: 0; }

/* ---------------- crate shelf (visual picker) ---------------- */

.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 6px;
  max-height: 268px;
  overflow-y: auto;
  padding: 6px;
  background: #0b0e0b;
  border: 1px solid #232922;
  border-radius: 3px;
  scrollbar-width: thin;
}
.shelf-item {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 7px 4px 6px;
  background: #12170f;
  border: 1px solid #1f261e;
  border-radius: 3px;
  cursor: pointer;
  transition: border-color .14s, background .14s, transform .12s;
}
.shelf-item:hover { background: #182014; border-color: #3a4a3d; transform: translateY(-1px); }
.shelf-item.picked { border-color: var(--primary); background: #1d1512; box-shadow: 0 0 0 1px var(--primary) inset; }
.shelf-art { width: 40px; height: 40px; display: grid; place-items: center; }
.shelf-art .crate-svg { width: 40px; height: 40px; }
.shelf-name {
  font-size: 9.5px;
  line-height: 1.15;
  text-align: center;
  color: #b9beb6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 22px;
}
.shelf-price { font-size: 9.5px; font-weight: 700; color: #b5e571; }

/* ---------------- battle page layout ---------------- */

.battle-layout {
  display: grid;
  grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 12px;
}
.battle-setup { display: grid; gap: 10px; }
.battle-setup > .eyebrow { margin-bottom: 0; }
.setup-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.setup-foot { display: grid; gap: 10px; }
.setup-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.setup-stats div { background: #0b0e0b; border: 1px solid #1f261e; padding: 7px 8px; }
.setup-stats b { display: block; font-size: 13px; color: #e6e8e2; }
.setup-stats .hint { font-size: 9.5px; }

.lobby-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #232922;
}
.lobby-head .eyebrow { margin: 0; }

.lobby-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 9px 11px;
  background: #0b0e0b;
  border: 1px solid #1f261e;
  border-left: 2px solid var(--primary);
  margin-bottom: 6px;
  transition: background .14s, border-color .14s;
}
.lobby-row:hover { background: #131a11; border-color: #3a4a3d; border-left-color: var(--primary); }
.lobby-crate .crate-svg { width: 44px; height: 44px; }
.lobby-info { min-width: 0; }
.lobby-info b { display: block; font-size: 13px; }
.lobby-info span { font-size: 11px; color: #8e918e; }
.lobby-seats { display: flex; gap: 4px; }
.seat {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #12170f;
  border: 1px dashed #2a312a;
  font-size: 11px;
  color: #4c524b;
  overflow: hidden;
}
.seat.filled { border-style: solid; border-color: #3a4a3d; background: #243027; color: #dfe2da; font-weight: 700; }
.seat img { width: 100%; height: 100%; object-fit: cover; }

.battle-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }

/* ---------------- gift feed ---------------- */

.gift-feed { display: grid; gap: 4px; }
.gift-feed-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  padding: 6px 8px;
  background: #0b0e0b;
  border: 1px solid #1f261e;
}
.gift-feed-name { color: #d6d8d3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gift-feed-val { color: #b5e571; font-weight: 700; }
.gift-feed-time { color: #5f645e; font-size: 10.5px; }

@media (max-width: 980px) {
  .battle-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .lobby-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .lobby-seats { display: none; }
}
