/* ============ LOOT — noir profond + or champagne ============ */
:root {
  --bg: #0b0b0e;
  --bg2: #101014;
  --panel: #15151b;
  --line: #26262f;
  --text: #f2efe6;
  --muted: #9b9aa3;
  --gold: #ffffff;
  --gold-2: #ffffff;
  --gold-dim: rgba(255, 255, 255, 0.08);
  --common: #8a8f98;
  --rare: #38bdf8;
  --epic: #a855f7;
  --legendary: #14f195;
  --mythic-a: #ff5ec8;
  --mythic-b: #5edfff;
  --tile: radial-gradient(circle at 50% 34%, #24242e 0%, #17171d 58%, #0e0e12 100%);
  --prod-shadow: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.6));
  --font-display: "Unbounded", sans-serif;
  --font-ui: "Space Grotesk", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
em { font-style: normal; }
img { display: block; }

.grad {
  background: linear-gradient(100deg, var(--gold) 20%, var(--gold-2) 50%, var(--gold) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 28px;
  background: rgba(11, 11, 14, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 900; font-size: 21px; letter-spacing: 1px;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 22px; margin-left: 10px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--gold-2); }
.nav-actions { margin-left: auto; display: flex; gap: 12px; align-items: center; }

.ca-pill {
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 600;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ca-pill:hover { border-color: var(--gold); color: var(--gold-2); }

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600; font-size: 13px; letter-spacing: 0.5px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(120deg, var(--gold), var(--gold-2) 60%, var(--gold));
  color: #06060b;
  box-shadow: 0 4px 24px rgba(153, 69, 255, 0.25);
}
.btn-gold:hover { box-shadow: 0 8px 32px rgba(153, 69, 255, 0.4); }
.btn-gold.is-disabled { opacity: 0.55; pointer-events: none; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); }
.btn-lg { font-size: 15px; padding: 15px 30px; border-radius: 14px; }

/* ============ LIVE BAR ============ */
.livebar {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 28px;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.livebar-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  white-space: nowrap;
}
.livebar-label em { color: var(--muted); font-weight: 500; letter-spacing: 0; text-transform: lowercase; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #46e07c;
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.livebar-feed { display: flex; gap: 10px; overflow: hidden; flex: 1; }
.drop-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--common);
  border-radius: 10px;
  font-size: 12px; white-space: nowrap;
  animation: chipIn 0.4s ease;
  flex-shrink: 0;
}
@keyframes chipIn { from { transform: translateX(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
.drop-chip img { width: 24px; height: 24px; object-fit: contain; }
.drop-chip b { color: var(--gold-2); font-weight: 600; }
.drop-chip .who { color: var(--muted); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 72px 28px 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(ellipse 40% 45% at 30% 10%, rgba(153, 69, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 34% 42% at 85% 24%, rgba(168, 85, 247, 0.08), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.hero-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.04;
  letter-spacing: -1px;
}
.hero-sub {
  max-width: 540px;
  margin: 22px 0 0;
  font-size: 16.5px;
  color: var(--muted);
}
.hero-sub strong { color: var(--gold-2); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; margin-top: 44px; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800;
  color: var(--gold-2);
}
.stat span { font-size: 12.5px; color: var(--muted); }
.stat em { opacity: 0.6; }

/* hero showcase — vraies photos produits */
.hero-showcase {
  position: relative;
  height: 420px;
}
.show-card {
  position: absolute;
  width: 220px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  transition: transform 0.3s;
}
.show-card img {
  width: 100%; height: 200px; object-fit: contain;
  background: var(--tile);
  padding: 20px 14px 14px;
  filter: var(--prod-shadow);
}
.show-card figcaption {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
}
.show-card figcaption span { color: var(--gold-2); }
.show-a { top: 6px; left: 4%; transform: rotate(-5deg); z-index: 3; }
.show-b { top: 78px; right: 2%; transform: rotate(4deg); z-index: 2; }
.show-c { bottom: 2px; left: 26%; transform: rotate(-1deg); z-index: 4; }
.show-card:hover { transform: translateY(-8px) rotate(0deg); z-index: 5; }

/* ============ SECTIONS ============ */
.section { padding: 90px 28px; max-width: 1180px; margin: 0 auto; }
.section-alt {
  max-width: none;
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-alt > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
}
.section-head p { color: var(--muted); max-width: 560px; margin: 14px auto 0; }
.section-head b { color: var(--gold-2); }

/* ============ BOXES GRID ============ */
.boxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.box-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.box-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--gold-dim);
}
.box-cover {
  position: relative;
  height: 190px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 12%, rgba(153, 69, 255, 0.16), transparent 70%),
    var(--tile);
  display: grid; place-items: center;
  overflow: hidden;
}
.box-cover img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 24px 22px 30px;
  filter: var(--prod-shadow);
  transition: transform 0.3s;
}
.box-card:hover .box-cover img { transform: scale(1.06); }
.box-cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11,11,14,0.9) 100%);
}
.box-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(11,11,14,0.8); color: var(--gold-2);
  border: 1px solid rgba(153, 69, 255, 0.45);
  backdrop-filter: blur(4px);
}
.box-count {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(11,11,14,0.72); color: var(--text);
  border: 1px solid var(--line);
  backdrop-filter: blur(4px);
}
.box-body { padding: 16px 18px 20px; }
.box-name {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 800; letter-spacing: 0.4px;
}
.box-top { font-size: 12.5px; color: var(--muted); margin-top: 5px; min-height: 34px; }
.box-top b { color: var(--gold-2); font-weight: 600; }
.box-price {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: 12px;
  font-weight: 700; font-size: 16px; color: var(--gold-2);
}
.box-price small { color: var(--muted); font-weight: 500; font-size: 11.5px; }
.box-open {
  margin-top: 14px;
  display: block; text-align: center;
  font-family: var(--font-display); font-weight: 600; font-size: 12.5px;
  padding: 10px; border-radius: 11px;
  background: var(--bg); border: 1px solid var(--line);
  color: var(--text);
  transition: background 0.15s, color 0.15s;
}
.box-card:hover .box-open { background: linear-gradient(120deg, var(--gold), var(--gold-2)); color: #06060b; border-color: transparent; }

/* ============ FLYWHEEL ============ */
.fly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.fly-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  transition: border-color 0.18s, transform 0.18s;
}
.fly-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.fly-num {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 800;
  color: var(--gold);
  margin-bottom: 14px;
}
.fly-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.fly-card p { font-size: 14.5px; color: var(--muted); }
.fly-card b { color: var(--gold-2); }
.fly-loop { background: linear-gradient(160deg, rgba(153, 69, 255, 0.10), var(--panel) 55%); border-color: rgba(153, 69, 255, 0.35); }

/* ============ TIERS ============ */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.tier {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
  transition: transform 0.18s, border-color 0.18s;
}
.tier:hover { transform: translateY(-4px); }
.tier h3 { font-family: var(--font-display); font-size: 17px; font-weight: 800; letter-spacing: 1px; }
.t-bronze { color: #d59a6b; }
.t-silver { color: #c9ced8; }
.t-gold { color: var(--gold); }
.t-diamond {
  background: linear-gradient(100deg, var(--mythic-b), #ffffff, var(--mythic-a));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tier-req { font-size: 13px; color: var(--muted); margin: 6px 0 16px; font-weight: 600; }
.tier ul { list-style: none; }
.tier li {
  font-size: 14px; color: var(--text);
  padding: 7px 0 7px 22px;
  position: relative;
  border-top: 1px solid var(--line);
}
.tier li::before { content: "◆"; position: absolute; left: 2px; color: var(--gold); font-size: 10px; top: 11px; }
.tier-hot { border-color: rgba(153, 69, 255, 0.5); box-shadow: 0 0 40px rgba(153, 69, 255, 0.08); }

/* ============ FAIR ============ */
.fair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.fair-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
}
.fair-card h3 { font-size: 15px; font-weight: 700; color: var(--gold-2); margin-bottom: 10px; }
.fair-card p { font-size: 14px; color: var(--muted); }

/* ============ FAQ ============ */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-list details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
}
.faq-list summary {
  font-weight: 600; font-size: 15px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-list summary::after {
  content: "+"; position: absolute; right: 0; top: -2px;
  color: var(--gold); font-size: 20px; font-weight: 400;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 28px 60px;
  text-align: center;
}
.footer-brand { font-family: var(--font-display); font-weight: 900; font-size: 18px; }
.footer-brand span { color: var(--gold); }
.footer-disclaimer {
  max-width: 720px; margin: 18px auto 0;
  font-size: 12px; color: var(--muted); opacity: 0.85;
}
.footer-links { margin-top: 22px; display: flex; gap: 24px; justify-content: center; }
.footer-links a { font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--gold-2); }

/* ============ MODAL ============ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 5, 8, 0.82); backdrop-filter: blur(6px); }
.modal-panel {
  position: relative;
  width: min(880px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  animation: panelIn 0.25s ease;
}
@keyframes panelIn { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none;
  color: var(--muted); font-size: 30px; cursor: pointer;
  line-height: 1; z-index: 3;
}
.modal-close:hover { color: var(--text); }
.modal-head h3 { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.modal-head p { color: var(--gold-2); font-weight: 600; margin-top: 4px; }
.modal-head p small { color: var(--muted); font-weight: 500; }

/* spinner */
.spinner-wrap {
  position: relative;
  margin: 22px 0 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  overflow: hidden;
  padding: 16px 0;
}
.spinner-marker {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: var(--gold);
  z-index: 2;
  box-shadow: 0 0 14px rgba(153, 69, 255, 0.9);
}
.spinner-marker::before, .spinner-marker::after {
  content: ""; position: absolute; left: -5px;
  border: 6px solid transparent;
}
.spinner-marker::before { top: 0; border-top-color: var(--gold); }
.spinner-marker::after { bottom: 0; border-bottom-color: var(--gold); }
.spinner-track { display: flex; gap: 10px; will-change: transform; }
.spin-item {
  flex-shrink: 0;
  width: 124px;
  border-radius: 12px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--r-color, var(--common));
  background: var(--panel);
  overflow: hidden;
  text-align: center;
}
.spin-item img { width: 100%; height: 74px; object-fit: contain; background: var(--tile); padding: 8px; }
.spin-item .n { display: block; font-size: 10.5px; font-weight: 600; margin: 8px 6px 2px; line-height: 1.25; min-height: 26px; }
.spin-item .v { display: block; font-size: 11px; color: var(--gold-2); font-weight: 700; margin-bottom: 9px; }

/* result */
.modal-result {
  margin: 18px 0 4px;
  display: flex; align-items: center; gap: 22px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid var(--r-color, var(--line));
  background: var(--panel);
  animation: resultPop 0.4s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes resultPop { from { transform: scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-result img {
  width: 110px; height: 110px; object-fit: contain;
  background: var(--tile); border-radius: 14px; padding: 10px; flex-shrink: 0;
}
.modal-result .r-txt { text-align: left; }
.modal-result .r-label { font-size: 11px; letter-spacing: 2px; font-weight: 700; color: var(--muted); }
.modal-result h4 { font-family: var(--font-display); font-size: 20px; margin: 6px 0 2px; }
.modal-result .r-value { color: var(--gold-2); font-weight: 700; font-size: 15px; }
.modal-result .r-sub { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.modal-result .r-rarity { font-size: 12px; font-weight: 700; letter-spacing: 1px; margin-top: 8px; }

/* items list */
.modal-items {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 10px;
}
.m-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--r-color, var(--common));
  border-radius: 12px;
  padding: 8px 12px 8px 8px;
}
.m-item img { width: 40px; height: 40px; object-fit: contain; background: var(--tile); border-radius: 8px; padding: 3px; flex-shrink: 0; }
.m-item .mi-n { font-size: 12px; font-weight: 600; line-height: 1.25; color: var(--text); }
.m-item .mi-meta { font-size: 11px; color: var(--muted); }
.m-item .mi-meta b { color: var(--gold-2); }

.modal-actions {
  margin-top: 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.modal-note { font-size: 12px; color: var(--muted); }

/* rarity text colors */
.rc-common { color: var(--common); }
.rc-rare { color: var(--rare); }
.rc-epic { color: var(--epic); }
.rc-legendary { color: var(--legendary); }
.rc-mythic {
  background: linear-gradient(100deg, var(--mythic-a), var(--mythic-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-showcase { height: 360px; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 860px) {
  .nav { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .nav-links { display: none; }
  .hero { padding: 48px 18px 60px; }
  .hero-stats { gap: 28px; }
  .section { padding: 64px 18px; }
  .modal-panel { padding: 22px 16px; }
  .modal-result { flex-direction: column; text-align: center; }
  .modal-result .r-txt { text-align: center; }
}

/* ============ ANIMATIONS & POLISH ============ */

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(26px); }
.rv-in { opacity: 1; transform: none; transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }

/* hero glow drift */
.hero-glow { animation: glowDrift 14s ease-in-out infinite alternate; }
@keyframes glowDrift {
  from { transform: translate3d(-2%, 0, 0) scale(1); }
  to   { transform: translate3d(3%, 4%, 0) scale(1.08); }
}

/* showcase cards float */
.show-card { animation: floatCard 6s ease-in-out infinite; }
.show-a { animation-delay: 0s; }
.show-b { animation-delay: 1.6s; }
.show-c { animation-delay: 3.2s; }
@keyframes floatCard {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -12px; }
}
.show-card:hover { animation-play-state: paused; }

/* gold button shine sweep */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 46%;
  left: -60%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: btnShine 4.2s ease-in-out infinite;
}
@keyframes btnShine {
  0%, 55% { left: -60%; }
  75%, 100% { left: 130%; }
}

/* box cover shine on hover */
.box-cover::before {
  content: "";
  position: absolute; top: -20%; bottom: -20%; width: 40%;
  left: -70%; z-index: 2;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
  pointer-events: none;
}
.box-card:hover .box-cover::before { left: 140%; }

/* mythic result: animated glow border */
.modal-result.is-grail {
  position: relative;
  animation: grailGlow 1.8s ease-in-out infinite alternate;
}
@keyframes grailGlow {
  from { box-shadow: 0 0 18px rgba(153, 69, 255, 0.25); }
  to   { box-shadow: 0 0 44px rgba(255, 94, 200, 0.45); }
}

/* confetti */
.confetti {
  position: absolute; width: 9px; height: 9px; border-radius: 2px;
  pointer-events: none; z-index: 5;
  animation: confettiFall 1.4s cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
}
@keyframes confettiFall {
  from { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  to   { opacity: 0; transform: translate(var(--cx), var(--cy)) rotate(var(--cr)); }
}

/* live chip flash */
.drop-chip { position: relative; }
.drop-chip:first-child { animation: chipIn 0.4s ease, chipFlash 1.2s ease 0.1s; }
@keyframes chipFlash {
  0% { box-shadow: 0 0 0 rgba(153, 69, 255, 0); }
  30% { box-shadow: 0 0 16px rgba(153, 69, 255, 0.5); }
  100% { box-shadow: 0 0 0 rgba(153, 69, 255, 0); }
}

/* trust strip */
.trust-strip {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 28px;
}
.trust-badge {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
}
.trust-badge svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }

/* nav shadow when scrolled */
.nav.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; }
  .hero-glow, .show-card, .btn-gold::after, .drop-chip:first-child, .modal-result.is-grail { animation: none; }
}

/* ============ RILLA REDESIGN ============ */
.btn-sm { font-size: 11.5px; padding: 9px 16px; border-radius: 10px; }
.wallet-pill { border-color: rgba(70, 224, 124, 0.5); color: #46e07c; }

/* covers cubes : fond uni sombre, plus de tuile radiale */
.box-cover { background: radial-gradient(ellipse 80% 70% at 50% 30%, #191920 0%, #101015 70%); }
.box-cover img { padding: 14px 12px 10px; filter: none; }
.box-cover::after { background: none; }

/* games row */
.games-section { padding-top: 46px; padding-bottom: 0; }
.games-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.game-tile {
  position: relative;
  display: grid; place-items: center; gap: 6px;
  padding: 22px 12px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  transition: transform 0.18s, border-color 0.18s;
}
.game-tile svg { width: 44px; height: 44px; opacity: 0.75; }
.game-tile img { width: 76px; height: 76px; object-fit: contain; margin: -10px 0 -6px; }
.game-tile b { font-family: var(--font-display); font-size: 13.5px; font-weight: 700; color: var(--text); }
.game-tile.is-live { cursor: pointer; }
.game-tile.is-live:hover { transform: translateY(-4px); border-color: var(--gold); }
.game-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 9.5px; font-weight: 700; letter-spacing: 1px;
  padding: 3px 8px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line); color: var(--muted);
}
.game-badge.live { background: rgba(70, 224, 124, 0.12); border-color: rgba(70, 224, 124, 0.45); color: #46e07c; }

/* race banner */
.race-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: 34px 38px;
  border-radius: 22px;
  border: 1px solid rgba(153, 69, 255, 0.35);
  background:
    radial-gradient(ellipse 50% 90% at 8% 50%, rgba(153, 69, 255, 0.16), transparent 65%),
    radial-gradient(ellipse 40% 80% at 95% 20%, rgba(168, 85, 247, 0.10), transparent 70%),
    var(--panel);
}
.race-amount {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(30px, 4.6vw, 44px);
  color: var(--gold-2);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.race-tag {
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--gold); color: #06060b;
}
.race-sub { color: var(--muted); font-size: 14.5px; margin: 8px 0 18px; max-width: 460px; }
.race-left .btn { margin-right: 10px; }
.race-ends { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--muted); text-align: center; margin-bottom: 10px; }
.race-count { display: flex; gap: 10px; }
.rc-cell {
  min-width: 64px; text-align: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 8px 8px;
}
.rc-cell b { font-family: var(--font-display); font-size: 22px; color: var(--gold-2); display: block; }
.rc-cell span { font-size: 10.5px; color: var(--muted); letter-spacing: 0.5px; }

/* steps */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.step-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 24px;
  transition: transform 0.18s, border-color 0.18s;
}
.step-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.step-num { font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); }
.step-ico {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 14px; margin: 14px 0;
  background: var(--gold-dim); color: var(--gold);
}
.step-ico svg { width: 26px; height: 26px; }
.step-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 13.5px; color: var(--muted); }

/* auth / deposit modals */
.modal-sm { width: min(430px, 100%); }
.wallet-list { display: grid; gap: 10px; margin-top: 20px; }
.wallet-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 13px;
  color: var(--text); font-family: var(--font-ui); font-size: 14.5px; font-weight: 600;
  cursor: pointer; transition: border-color 0.15s, transform 0.15s;
}
.wallet-opt:hover { border-color: var(--gold); transform: translateY(-1px); }
.wallet-opt em { margin-left: auto; font-size: 10.5px; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; }
.w-ico {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  font-weight: 800; color: #101014; font-size: 15px;
}
.auth-sep { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--muted); font-size: 12px; }
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-email { display: flex; gap: 10px; }
.auth-email input {
  flex: 1; min-width: 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; color: var(--text); font-family: var(--font-ui); font-size: 14px;
}
.auth-email input:focus { outline: none; border-color: var(--gold); }

.dep-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.dep-method {
  padding: 14px 8px; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 13px;
  color: var(--text); cursor: pointer; font-family: var(--font-ui);
  transition: border-color 0.15s;
}
.dep-method b { display: block; font-size: 15px; }
.dep-method span { font-size: 11px; color: var(--muted); }
.dep-method.is-on { border-color: var(--gold); background: var(--gold-dim); }
.dep-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 20px; }
.dep-amt {
  padding: 10px 6px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 11px;
  color: var(--text); font-weight: 600; font-family: var(--font-ui); font-size: 13px; cursor: pointer;
}
.dep-amt.is-on { border-color: var(--gold); color: var(--gold-2); }
.dep-go { width: 100%; text-align: center; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(8px);
  z-index: 200;
  background: var(--panel);
  border: 1px solid rgba(153, 69, 255, 0.5);
  border-radius: 14px;
  padding: 13px 22px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  opacity: 0; transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 860px) {
  .games-row { grid-template-columns: repeat(2, 1fr); }
  .race-banner { padding: 26px 20px; }
  .nav .ca-pill#caPill { display: none; }
}

[hidden] { display: none !important; }

/* fix: cube contenu dans la cover quelle que soit la largeur */
.box-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* ============ BACKGROUND FX (orbes animées) ============ */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-fx span {
  position: absolute;
  width: 46vw; height: 46vw; max-width: 640px; max-height: 640px;
  border-radius: 50%;
  filter: blur(70px); transform: translateZ(0);
  opacity: 0.16;
  will-change: transform;
}
.bg-fx span:nth-child(1) { background: #9945ff; top: -12%; left: -10%; animation: orbA 26s ease-in-out infinite alternate; }
.bg-fx span:nth-child(2) { background: #454d5e; top: 30%; right: -16%; animation: orbB 32s ease-in-out infinite alternate; }
.bg-fx span:nth-child(3) { background: #ff5ec8; bottom: -18%; left: 22%; animation: orbC 38s ease-in-out infinite alternate; opacity: 0.10; }
.bg-fx span:nth-child(4) { background: #4f8cff; top: 62%; left: -14%; animation: orbB 44s ease-in-out infinite alternate-reverse; opacity: 0.10; }
@keyframes orbA { from { transform: translate(0, 0) scale(1); } to { transform: translate(9vw, 14vh) scale(1.15); } }
@keyframes orbB { from { transform: translate(0, 0) scale(1.05); } to { transform: translate(-10vw, -10vh) scale(0.9); } }
@keyframes orbC { from { transform: translate(0, 0) scale(0.95); } to { transform: translate(12vw, -12vh) scale(1.2); } }
nav.nav, .livebar, main, footer { position: relative; z-index: 1; }
.modal { z-index: 100; } .toast { z-index: 200; }
@media (prefers-reduced-motion: reduce) { .bg-fx span { animation: none; } }

/* roll équitable affiché */
.r-roll { margin-top: 8px; font-size: 11.5px; color: var(--muted); font-family: ui-monospace, monospace; letter-spacing: 0.4px; }

/* ============ BOX DETAIL PAGE ============ */
.bx-main { max-width: 1180px; margin: 0 auto; padding: 40px 28px 80px; position: relative; z-index: 1; }
.bx-hero {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center;
  padding: 34px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px;
}
.bx-cover {
  background: radial-gradient(ellipse 80% 70% at 50% 35%, #1b1b22 0%, #101015 70%);
  border: 1px solid var(--line); border-radius: 18px;
  display: grid; place-items: center;
  min-height: 300px; padding: 24px;
}
.bx-cover img { max-width: 100%; max-height: 300px; object-fit: contain; animation: floatCard 6s ease-in-out infinite; }
.bx-name { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 4.5vw, 46px); }
.bx-top { color: var(--muted); margin-top: 10px; font-size: 15px; }
.bx-top b { color: var(--gold-2); }
.bx-price-row { display: flex; align-items: baseline; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.bx-price { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--gold-2); }
.bx-price-alt { color: var(--muted); font-size: 13.5px; }
.bx-actions { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.bx-note { margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.bx-h2 { font-family: var(--font-display); font-weight: 800; font-size: 24px; margin: 46px 0 20px; }
.bx-count-tag { font-family: var(--font-ui); font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 10px; }
.bx-result { margin-top: 20px; }
.bx-main .spinner-wrap { margin-top: 26px; }

/* items grid façon référence : nom / image / prix pill / % */
.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.it-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--r-color, var(--line));
  border-radius: 14px;
  padding: 14px 14px 12px;
  display: flex; flex-direction: column;
  transition: transform 0.15s, border-color 0.15s;
}
.it-card:hover { transform: translateY(-3px); }
.it-name { font-size: 13px; font-weight: 700; line-height: 1.3; min-height: 34px; }
.it-img { height: 110px; display: grid; place-items: center; margin: 8px 0 10px; }
.it-img img { max-width: 100%; max-height: 110px; object-fit: contain; }
.it-price {
  text-align: center;
  background: linear-gradient(120deg, var(--gold), var(--gold-2));
  color: #06060b; font-weight: 700; font-size: 14px;
  border-radius: 9px; padding: 7px 6px;
}
.it-odds { text-align: right; font-size: 11.5px; color: var(--muted); margin-top: 8px; font-family: ui-monospace, monospace; }

/* suggestions */
.suggest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.suggest-card { display: block; }

@media (max-width: 860px) {
  .bx-hero { grid-template-columns: 1fr; padding: 20px; }
  .bx-main { padding: 24px 16px 60px; }
}

/* ============ PULLS / ROADMAP / FOOTER RICHE ============ */
.pulls-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.pull-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 16px;
}
.pull-card img { width: 58px; height: 58px; object-fit: contain; flex-shrink: 0; }
.pull-card b { display: block; font-size: 14.5px; }
.pull-card span { font-size: 12px; color: var(--muted); }
.pull-card em { margin-left: auto; font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--gold-2); }
.rc-b-mythic { border-left: 3px solid var(--mythic-a); }
.rc-b-legendary { border-left: 3px solid var(--legendary); }

.road-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.road-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; }
.road-card.is-now { border-color: rgba(153, 69, 255, 0.5); box-shadow: 0 0 34px rgba(153, 69, 255, 0.08); }
.road-tag { font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px; color: var(--gold); }
.road-card h3 { font-family: var(--font-display); font-size: 17px; margin: 10px 0 12px; }
.road-card ul { list-style: none; }
.road-card li { font-size: 13.5px; color: var(--muted); padding: 6px 0 6px 18px; position: relative; border-top: 1px solid var(--line); }
.road-card li::before { content: "→"; position: absolute; left: 0; color: var(--gold); font-size: 12px; }

.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; max-width: 1180px; margin: 0 auto 34px; text-align: left; }
.f-col h4 { font-family: var(--font-display); font-size: 13px; margin-bottom: 12px; color: var(--gold-2); }
.f-col a { display: block; font-size: 13.5px; color: var(--muted); padding: 4px 0; }
.f-col a:hover { color: var(--text); }
.f-brand-col p { font-size: 13px; color: var(--muted); margin: 10px 0 14px; max-width: 260px; }
@media (max-width: 860px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ============ REDESIGN BAS DE PAGE (v9) ============ */

/* How it works — bandeau sans cartes */
.steps-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.sf-step { position: relative; padding-top: 14px; border-top: 1px solid var(--line); }
.sf-step em {
  position: absolute; top: -13px; left: 0;
  font-style: normal; font-family: var(--font-display); font-weight: 800; font-size: 12px;
  background: var(--bg2); padding-right: 12px; color: var(--gold);
}
.sf-step .step-ico { margin: 10px 0 12px; }
.sf-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.sf-step p { font-size: 13.5px; color: var(--muted); }

/* Flywheel — timeline verticale */
.fw-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.fw-intro h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.fw-intro p { color: var(--muted); margin-top: 16px; font-size: 15.5px; }
.fw-stats { display: flex; gap: 30px; margin-top: 28px; flex-wrap: wrap; }
.fw-stats b { display: block; font-family: var(--font-display); font-size: 26px; color: var(--gold-2); }
.fw-stats span { font-size: 12px; color: var(--muted); }
.fw-line { list-style: none; position: relative; padding-left: 42px; counter-reset: fw; }
.fw-line::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), rgba(153, 69, 255,0.1)); }
.fw-line li { position: relative; padding: 0 0 26px; counter-increment: fw; }
.fw-line li:last-child { padding-bottom: 0; }
.fw-line li::before {
  content: counter(fw, decimal-leading-zero);
  position: absolute; left: -42px; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--gold);
  color: var(--gold); font-family: var(--font-display); font-weight: 800; font-size: 10px;
  display: grid; place-items: center;
}
.fw-line b { font-size: 16.5px; }
.fw-line p { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* Tiers — tableau */
.tier-table { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.tier-row {
  display: grid; grid-template-columns: 140px 110px 110px 130px 1fr;
  gap: 12px; align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.tier-row:last-child { border-bottom: none; }
.tier-row b { font-family: var(--font-display); font-size: 14px; letter-spacing: 1px; }
.tier-row span { color: var(--muted); }
.tier-thead { background: var(--panel); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; padding: 12px 24px; }
.tier-thead span { color: var(--muted); font-weight: 700; }
.tier-row.is-hot { background: linear-gradient(90deg, rgba(153, 69, 255,0.10), transparent 70%); }
.tier-row.is-hot span { color: var(--text); }

/* Roadmap — frise horizontale */
.road-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; padding-top: 26px; }
.road-line::before { content: ""; position: absolute; top: 7px; left: 8px; right: 8px; height: 2px; background: linear-gradient(90deg, var(--gold), rgba(153, 69, 255,0.08)); }
.road-stop { position: relative; }
.road-stop i {
  position: absolute; top: -26px; left: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--gold);
}
.road-stop.is-now i { background: var(--gold); box-shadow: 0 0 16px rgba(153, 69, 255,0.6); }
.road-stop h3 { font-family: var(--font-display); font-size: 16px; margin: 8px 0 6px; }
.road-stop p { font-size: 13px; color: var(--muted); }

/* Provably fair — panneau unique */
.fair-flow {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--panel);
  border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden;
}
.ff-step { padding: 30px 26px; border-left: 1px solid var(--line); }
.ff-step:first-child { border-left: none; }
.ff-step em { font-style: normal; font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--gold); }
.ff-step h3 { font-size: 15px; font-weight: 700; margin: 10px 0 8px; }
.ff-step p { font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .steps-flow { grid-template-columns: 1fr 1fr; gap: 26px; }
  .fw-wrap { grid-template-columns: 1fr; gap: 34px; }
  .road-line { grid-template-columns: 1fr 1fr; }
  .fair-flow { grid-template-columns: 1fr 1fr; }
  .ff-step:nth-child(3) { border-left: none; }
  .ff-step { border-top: 1px solid var(--line); }
  .ff-step:nth-child(-n+2) { border-top: none; }
  .tier-row { grid-template-columns: 90px 70px 60px 1fr; font-size: 12.5px; padding: 12px 14px; }
  .tier-row span:nth-child(5), .tier-thead span:nth-child(5) { display: none; }
}

/* ============ CLEAN PASS (v12) — accent violet uni, zéro dégradé ============ */
:root { --accent: #ffffff; --accent-strong: #d9d9de; }

/* titres : plus de text-gradient */
.grad { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--accent-strong); }

/* boutons : violet plein, texte blanc, pas de sweep */
.btn-gold {
  background: var(--accent);
  color: #0b0b0e;
  box-shadow: 0 6px 22px rgba(255, 255, 255, 0.10);
}
.btn-gold:hover { background: #ececef; box-shadow: 0 8px 26px rgba(255, 255, 255, 0.16); }
.btn-gold::after { display: none; }
.box-cover::before { display: none; }

/* pill prix items : violet plein */
.it-price { background: var(--accent); color: #0b0b0e; }

/* race banner : fond sobre */
.race-banner {
  background: var(--panel);
  border-color: rgba(255, 255, 255, 0.18);
}
.race-tag { background: var(--accent); color: #0b0b0e; }

/* orbes de fond : discrètes, monochromes */
.bg-fx span { opacity: 0.09 !important; }
.bg-fx span:nth-child(1) { background: #566074; }
.bg-fx span:nth-child(2) { background: #454d5e; }
.bg-fx span:nth-child(3) { background: #566074; }
.bg-fx span:nth-child(4) { background: #454d5e; }

/* wallet pill : violet, plus de vert flashy */
.wallet-pill { border-color: rgba(255, 255, 255, 0.35); color: var(--accent-strong); }

/* résultat grail : glow violet sobre */
@keyframes grailGlow {
  from { box-shadow: 0 0 14px rgba(255, 255, 255, 0.10); }
  to   { box-shadow: 0 0 30px rgba(255, 255, 255, 0.16); }
}

/* sound toggle */
.sound-toggle {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  width: 46px; height: 46px; font-size: 18px; cursor: pointer;
  color: var(--text); transition: border-color 0.15s, opacity 0.15s;
}
.sound-toggle:hover { border-color: var(--accent); }
.sound-toggle.is-off { opacity: 0.5; }

/* ============ WALLET PAGE ============ */
.wallet-main { max-width: 620px; margin: 0 auto; padding: 60px 24px 90px; position: relative; z-index: 1; }
.wallet-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 5vw, 44px); text-align: center; }
.wallet-sub { color: var(--muted); text-align: center; margin: 14px auto 40px; max-width: 460px; font-size: 15px; }

.wallet-connect { display: grid; gap: 12px; }
.wallet-hint { color: var(--muted); font-size: 13px; text-align: center; margin-top: 8px; }
.wallet-hint a { color: var(--accent); text-decoration: underline; }

.wa-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.wa-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.wa-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 7px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.wa-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #46e07c; }
.wa-disc { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 10px; padding: 8px 14px; font-family: var(--font-ui); font-size: 12.5px; cursor: pointer; }
.wa-disc:hover { border-color: var(--accent); color: var(--text); }
.wa-addr-row, .wa-balance { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); }
.wa-label { color: var(--muted); font-size: 13px; }
.wa-addr { background: none; border: none; color: var(--text); font-family: ui-monospace, monospace; font-size: 14px; cursor: pointer; }
.wa-addr:hover { color: var(--accent); }
.wa-balance b { font-family: var(--font-display); font-size: 22px; color: var(--text); }

.wa-deposit { margin-top: 26px; }
.wa-deposit .bx-h2 { margin: 0 0 18px; }
.wa-note { color: var(--muted); font-size: 12.5px; margin-top: 14px; text-align: center; }

/* ============ INVENTORY PAGE ============ */
.inv-main { max-width: 1180px; margin: 0 auto; padding: 44px 24px 90px; position: relative; z-index: 1; }
.inv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.inv-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 5vw, 46px); }
.inv-sub { color: var(--muted); margin-top: 10px; font-size: 15px; max-width: 460px; }
.inv-stats { display: flex; gap: 30px; }
.inv-stat b { display: block; font-family: var(--font-display); font-size: 28px; color: var(--text); }
.inv-stat span { font-size: 12.5px; color: var(--muted); }
.inv-toolbar { display: flex; gap: 12px; margin-bottom: 24px; }

.inv-card { position: relative; }
.inv-rarity { font-size: 9.5px; font-weight: 700; letter-spacing: 1px; }
.inv-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin: 6px 0 12px; }
.inv-actions { display: flex; gap: 8px; }
.inv-sell {
  flex: 1; padding: 9px; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: #0b0b0e; border: none;
  font-family: var(--font-display); font-weight: 600; font-size: 12.5px;
  transition: background 0.15s;
}
.inv-sell:hover { background: var(--accent-strong); }
.inv-ship {
  padding: 9px 14px; border-radius: 10px; cursor: pointer;
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 600;
}
.inv-ship:hover { border-color: var(--accent); }

.inv-empty { text-align: center; padding: 70px 20px; }
.inv-empty-ico { width: 72px; height: 72px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.inv-empty-ico svg { width: 34px; height: 34px; }
.inv-empty h2 { font-family: var(--font-display); font-size: 24px; margin-bottom: 8px; }
.inv-empty p { color: var(--muted); margin-bottom: 22px; }
