:root {
  --ink: #0b0708;
  --ink-2: #140c0e;
  --panel: #170d10;
  --panel-2: #1f1115;
  --line: #3a1a22;
  --blood: #9c1c3f;
  --blood-hi: #c9365d;
  --blood-lo: #5c0c22;
  --bone: #efe6d6;
  --bone-dim: #b9ad9d;
  --muted: #84776c;
  --teal: #2f5d5a;
  --teal-hi: #4f8f88;
  --gold: #d9b26a;
  --ok: #4f8f88;
  --radius: 14px;
  --f-title: 'UnifrakturMaguntia', 'Pirata One', serif;
  --f-head: 'Pirata One', 'UnifrakturMaguntia', serif;
  --f-label: 'Cinzel', Georgia, serif;
  --f-body: 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(156, 28, 63, .28), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 60%, rgba(47, 93, 90, .12), transparent 70%),
    radial-gradient(ellipse 60% 40% at 0% 90%, rgba(92, 12, 34, .25), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .85 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed;
  color: var(--bone);
  font: 15px/1.55 var(--f-body);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--blood-hi); }
img { max-width: 100%; display: block; }
svg { width: 100%; height: 100%; }
::selection { background: var(--blood); color: var(--bone); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(11, 7, 8, .96), rgba(11, 7, 8, .82));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blood), transparent);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bone); flex-shrink: 0; }
.brand-mark { width: 30px; height: 30px; color: var(--bone); filter: drop-shadow(0 0 8px rgba(201, 54, 93, .6)); }
.brand-name { font: 28px/1 var(--f-title); background: linear-gradient(180deg, var(--bone) 35%, var(--blood-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  position: relative; padding: 8px 12px; border-radius: 8px;
  font: 600 13px var(--f-label); letter-spacing: .08em; text-transform: uppercase;
  color: var(--bone-dim); text-decoration: none; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--bone); background: rgba(156, 28, 63, .12); }
.nav a.active { color: var(--bone); }
.nav a.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--blood-hi); border-radius: 2px; box-shadow: 0 0 10px var(--blood-hi); }
.pill { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--blood); color: var(--bone); font: 700 11px var(--f-body); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(201, 54, 93, 0); } 0% { box-shadow: 0 0 0 0 rgba(201, 54, 93, .7); } }
.account { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.me { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bone); padding: 4px 6px 4px 4px; border-radius: 30px; border: 1px solid var(--line); background: var(--panel); }
.me img { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--blood); }
.me .bal { font: 700 13px var(--f-label); color: var(--gold); padding-right: 6px; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 40px; height: 38px; padding: 9px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--bone); margin: 4px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  --c: var(--blood);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 10px; cursor: pointer;
  font: 700 13px var(--f-label); letter-spacing: .1em; text-transform: uppercase;
  color: var(--bone); text-decoration: none;
  background: linear-gradient(180deg, var(--blood-hi), var(--blood) 55%, var(--blood-lo));
  border: 1px solid #e05479;
  box-shadow: 0 6px 24px -8px rgba(201, 54, 93, .8), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: transform .15s, filter .15s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: grayscale(.6); }
.btn.ghost { background: transparent; border-color: var(--line); box-shadow: none; color: var(--bone-dim); }
.btn.ghost:hover { border-color: var(--blood); color: var(--bone); }
.btn.teal { background: linear-gradient(180deg, var(--teal-hi), var(--teal)); border-color: #6fb2aa; box-shadow: 0 6px 24px -8px rgba(79, 143, 136, .8); }
.btn.sm { padding: 8px 14px; font-size: 11px; }
.btn.discord { background: linear-gradient(180deg, #6c78ff, #4752c4); border-color: #8b95ff; box-shadow: 0 6px 24px -8px rgba(88, 101, 242, .9); }
.btn.discord svg { width: 20px; height: 20px; }

/* ---------- Layout ---------- */
.view { padding: 0 clamp(16px, 4vw, 40px) 60px; max-width: 1240px; margin: 0 auto; min-height: 70vh; animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
.section { margin-top: 64px; }
.section-head { text-align: center; margin-bottom: 28px; }
.eyebrow { font: 700 11px var(--f-label); letter-spacing: .3em; text-transform: uppercase; color: var(--blood-hi); }
h1, h2, h3 { font-family: var(--f-head); font-weight: 400; margin: 0; letter-spacing: .01em; }
h2 { font-size: clamp(34px, 5vw, 48px); line-height: 1.05; color: var(--bone); margin-top: 6px; }
h3 { font-size: 26px; }
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 12px auto 0; color: var(--blood); max-width: 360px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--blood)); }
.divider::after { transform: scaleX(-1); }
.divider svg { width: 10px; height: 20px; flex-shrink: 0; }
.muted { color: var(--muted); }
.page-title { padding: 48px 0 8px; text-align: center; }
.page-title h1 { font: clamp(44px, 7vw, 72px)/1 var(--f-title); background: linear-gradient(180deg, var(--bone) 30%, var(--blood-hi) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 18px rgba(156, 28, 63, .45)); }
.page-title p { color: var(--bone-dim); max-width: 560px; margin: 14px auto 0; }

/* ---------- Ornate panel ---------- */
.ornate { position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.ornate::before { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(156, 28, 63, .25); border-radius: calc(var(--radius) - 5px); pointer-events: none; }
.corner { position: absolute; width: 34px; height: 34px; color: var(--blood); pointer-events: none; opacity: .9; }
.corner.tl { top: -2px; left: -2px; }
.corner.tr { top: -2px; right: -2px; transform: scaleX(-1); }
.corner.bl { bottom: -2px; left: -2px; transform: scaleY(-1); }
.corner.br { bottom: -2px; right: -2px; transform: scale(-1); }

/* ---------- Hero ---------- */
.hero { position: relative; margin: 26px auto 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); min-height: 520px; display: grid; place-items: center; text-align: center; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at 50% 40%, #2a0f17, var(--ink) 70%); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 7, 8, .1) 0%, rgba(11, 7, 8, .55) 55%, var(--ink) 100%); }
.hero-inner { padding: 60px 20px 48px; max-width: 760px; }
.hero-roses { display: flex; justify-content: center; gap: 0; margin-bottom: -8px; }
.hero-roses svg { width: 54px; height: 54px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); }
.hero-roses svg:nth-child(2) { width: 70px; height: 70px; margin: -8px -6px 0; }
.hero h1 { font: clamp(60px, 11vw, 128px)/.95 var(--f-title); margin: 6px 0 4px; background: linear-gradient(180deg, #fff8ea 25%, #e7c9c0 50%, var(--blood-hi) 80%, var(--blood-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .6)) drop-shadow(0 0 40px rgba(156, 28, 63, .5)); }
.hero .tag { font: 700 clamp(13px, 1.8vw, 16px) var(--f-label); letter-spacing: .32em; text-transform: uppercase; color: var(--bone-dim); }
.hero .lead { font-size: clamp(16px, 2vw, 19px); color: var(--bone); margin: 22px auto 30px; max-width: 560px; }
.hero .lead b { color: var(--gold); font-weight: 700; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.side-star { position: absolute; top: 50%; width: 22px; height: 44px; color: var(--bone-dim); opacity: .7; transform: translateY(-50%); }
.side-star.l { left: 6%; } .side-star.r { right: 6%; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -40px; position: relative; z-index: 2; padding: 0 clamp(0px, 3vw, 40px); }
.stat { text-align: center; padding: 18px 10px; background: rgba(23, 13, 16, .92); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: blur(6px); }
.stat b { display: block; font: 34px/1 var(--f-head); color: var(--bone); }
.stat span { font: 600 10px var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { counter-increment: s; text-align: center; padding: 30px 20px 24px; }
.step::after { content: counter(s, upper-roman); position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); border: 1px solid var(--blood); font: 700 12px var(--f-label); color: var(--blood-hi); }
.step .ico { width: 46px; height: 46px; margin: 6px auto 12px; color: var(--bone); }
.step h3 { font-size: 24px; }
.step p { color: var(--bone-dim); margin: 8px 0 0; font-size: 14px; }

/* ---------- Games ---------- */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.game { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); transition: transform .25s, border-color .25s, box-shadow .25s; display: flex; flex-direction: column; }
.game:hover { transform: translateY(-4px); border-color: var(--blood); box-shadow: 0 18px 40px -18px var(--glow, var(--blood)); }
.game-art { aspect-ratio: 4 / 5; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 30%, var(--c1), var(--c2)); }
.game-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.game:hover .game-art img { transform: scale(1.05); }
.game-art .fallback { position: absolute; inset: 0; display: grid; place-items: center; font: 34px/1 var(--f-head); text-align: center; padding: 14px; }
.game-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 7, 8, .95)); }
.game-body { padding: 0 14px 14px; margin-top: -54px; position: relative; z-index: 1; }
.game-body h3 { font-size: 24px; line-height: 1.05; }
.game-body p { margin: 4px 0 12px; color: var(--bone-dim); font-size: 13px; }
.game-body .btn { width: 100%; }

/* ---------- Feed ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feed { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.feed li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(11, 7, 8, .5); border: 1px solid var(--line); border-radius: 10px; }
.feed img { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); flex-shrink: 0; }
.feed .who { flex: 1; min-width: 0; }
.feed .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .who span { color: var(--muted); font-size: 12px; }
.mult { font: 22px/1 var(--f-head); color: var(--gold); white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; font-style: italic; }

/* ---------- Challenges ---------- */
.challenges { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.ch-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; font: 700 10px var(--f-label); letter-spacing: .15em; text-transform: uppercase; border: 1px solid; }
.badge.live { color: #ff8aa8; border-color: var(--blood); background: rgba(156, 28, 63, .15); }
.badge.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ff4f7b; box-shadow: 0 0 8px #ff4f7b; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.badge.upcoming { color: var(--teal-hi); border-color: var(--teal); }
.badge.ended { color: var(--muted); border-color: var(--line); }
.ch p { color: var(--bone-dim); margin: 8px 0 14px; }
.ch-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { padding: 6px 10px; border-radius: 8px; background: rgba(11, 7, 8, .6); border: 1px solid var(--line); font-size: 12px; color: var(--bone-dim); }
.chip b { color: var(--bone); }
.timer { font: 700 13px var(--f-label); color: var(--gold); letter-spacing: .05em; }
.leaders { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.leaders li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.leaders .rank { width: 22px; font: 700 12px var(--f-label); color: var(--blood-hi); }
.leaders img { width: 24px; height: 24px; border-radius: 50%; }
.leaders .n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; max-width: 760px; margin: 28px auto 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font: 700 11px var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--bone-dim); }
.field small { color: var(--muted); font-size: 12px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: rgba(11, 7, 8, .7); border: 1px solid var(--line); color: var(--bone);
  font: 15px var(--f-body); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blood-hi); box-shadow: 0 0 0 3px rgba(201, 54, 93, .2); }
textarea { resize: vertical; min-height: 70px; }
.multi-preview { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 12px; border: 1px dashed var(--line); background: rgba(11, 7, 8, .5); }
.multi-preview b { font: 40px/1 var(--f-head); color: var(--muted); transition: color .2s; }
.multi-preview.ok { border-color: var(--teal-hi); }
.multi-preview.ok b { color: var(--gold); text-shadow: 0 0 20px rgba(217, 178, 106, .5); }
.drop { position: relative; display: grid; place-items: center; gap: 6px; text-align: center; padding: 26px; border: 1px dashed var(--blood); border-radius: 12px; background: rgba(156, 28, 63, .06); cursor: pointer; color: var(--bone-dim); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img { max-height: 180px; border-radius: 8px; }
.notice { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: rgba(47, 93, 90, .12); color: var(--bone-dim); font-size: 14px; }
.notice b { color: var(--bone); }

/* ---------- Tables / lists ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 700 10px var(--f-label); letter-spacing: .15em; text-transform: uppercase; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 8px; border-bottom: 1px solid rgba(58, 26, 34, .5); vertical-align: middle; }
.table-wrap { overflow-x: auto; }
.status { font: 700 10px var(--f-label); letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.status.pending, .status.requested { color: var(--gold); background: rgba(217, 178, 106, .12); }
.status.approved, .status.paid { color: var(--teal-hi); background: rgba(79, 143, 136, .15); }
.status.rejected { color: #ff7a96; background: rgba(156, 28, 63, .15); }
.board-row { display: flex; align-items: center; gap: 12px; }
.board-row img { width: 30px; height: 30px; border-radius: 50%; }
.podium { color: var(--gold); font: 22px var(--f-head); width: 30px; }

/* ---------- Lootbox ---------- */
.boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; margin-top: 28px; }
.boxcard { position: relative; padding: 18px 14px 16px; text-align: center; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(circle at 50% 35%, rgba(156, 28, 63, .25), var(--panel) 70%); cursor: pointer; transition: transform .2s, border-color .2s; }
.boxcard:hover { transform: translateY(-4px) rotate(-1deg); border-color: var(--blood-hi); }
.boxcard .chest-mini { width: 110px; height: 96px; margin: 0 auto 8px; animation: bob 2.6s ease-in-out infinite; }
.boxcard small { display: block; color: var(--muted); font-size: 12px; }
.boxcard.opened { cursor: default; opacity: .6; background: var(--panel); }
.boxcard.opened:hover { transform: none; border-color: var(--line); }
.boxcard .won { font: 30px/1 var(--f-head); margin: 8px 0 4px; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.tier-empty { color: var(--muted); } .tier-common { color: var(--bone); } .tier-rare { color: var(--gold); }
.odds { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.odds .chip b.tier-rare { color: var(--gold); }

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(5, 2, 3, .82); backdrop-filter: blur(6px); animation: fadein .2s; }
.modal-card { position: relative; width: min(520px, 100%); max-height: 92vh; overflow: hidden; text-align: center; padding: 30px 22px 26px; }
.stage { position: relative; height: 290px; display: grid; place-items: center; }
.rays { position: absolute; width: 520px; height: 520px; left: 50%; top: 50%; margin: -260px 0 0 -260px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(201, 54, 93, .35) 0 8deg, transparent 8deg 20deg); mask: radial-gradient(circle, #000 10%, transparent 62%); -webkit-mask: radial-gradient(circle, #000 10%, transparent 62%); opacity: 0; transform: scale(.4); transition: opacity .5s, transform .8s; animation: spin 14s linear infinite; pointer-events: none; }
.stage.open .rays { opacity: 1; transform: scale(1); }
.stage.rare .rays { background: repeating-conic-gradient(from 0deg, rgba(217, 178, 106, .5) 0 8deg, transparent 8deg 20deg); }
.stage.empty .rays { background: repeating-conic-gradient(from 0deg, rgba(120, 110, 100, .18) 0 8deg, transparent 8deg 20deg); }
@keyframes spin { to { rotate: 360deg; } }
.chest { width: 230px; height: 200px; overflow: visible; cursor: pointer; position: relative; z-index: 1; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .7)); }
.chest .lid { transform-origin: 30px 92px; transition: transform .7s cubic-bezier(.2, 1.4, .4, 1); }
.chest.shake { animation: shake .09s linear infinite; }
.chest.open .lid { transform: translate(-6px, -40px) rotate(-38deg); }
.chest .glow { opacity: 0; transition: opacity .3s; }
.chest.open .glow { opacity: 1; }
@keyframes shake { 0% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-3px, 1px) rotate(-2deg); } 50% { transform: translate(2px, -1px) rotate(1.5deg); } 75% { transform: translate(-1px, 2px) rotate(-1deg); } }
.reveal { min-height: 120px; }
.reveal .amount { font: 76px/1 var(--f-title); opacity: 0; transform: scale(.4); transition: transform .6s cubic-bezier(.2, 1.6, .4, 1), opacity .3s; }
.reveal.show .amount { opacity: 1; transform: none; }
.reveal .amount.tier-rare { background: linear-gradient(180deg, #fff3cf, var(--gold) 60%, #8a5d1f); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(217, 178, 106, .6)); }
.reveal .amount.tier-common { background: linear-gradient(180deg, #fff, var(--bone) 50%, var(--blood-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reveal .amount.tier-empty { font-size: 44px; color: var(--muted); }
.reveal p { color: var(--bone-dim); margin: 10px 0 0; opacity: 0; transition: opacity .4s .3s; }
.reveal.show p { opacity: 1; }
.hint { font: 700 12px var(--f-label); letter-spacing: .25em; text-transform: uppercase; color: var(--bone-dim); animation: blink 1.6s infinite; }

/* ---------- Wallet ---------- */
.wallet-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin-top: 28px; }
.balance-big { font: clamp(54px, 9vw, 84px)/1 var(--f-head); color: var(--gold); text-shadow: 0 0 30px rgba(217, 178, 106, .35); margin: 8px 0; }
.progress { height: 8px; border-radius: 6px; background: rgba(11, 7, 8, .8); border: 1px solid var(--line); overflow: hidden; margin: 10px 0 6px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--blood-lo), var(--blood-hi)); box-shadow: 0 0 10px var(--blood-hi); }
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-head img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--blood); }
.level { font: 700 11px var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--blood-hi); }

/* ---------- Admin ---------- */
.tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 24px 0; }
.tabs button { background: var(--panel); border: 1px solid var(--line); color: var(--bone-dim); padding: 9px 16px; border-radius: 10px; font: 700 11px var(--f-label); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.tabs button.active { border-color: var(--blood); color: var(--bone); background: rgba(156, 28, 63, .18); }
.review { display: grid; grid-template-columns: 260px 1fr; gap: 20px; margin-bottom: 18px; }
.review .proof { border-radius: 10px; border: 1px solid var(--line); overflow: hidden; background: #000; aspect-ratio: 4/3; }
.review .proof img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; margin: 12px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions input { flex: 1; min-width: 160px; padding: 9px 12px; }
.budget-bar { height: 14px; border-radius: 8px; background: rgba(11, 7, 8, .8); border: 1px solid var(--line); overflow: hidden; }
.budget-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold), var(--blood-hi)); }

/* ---------- Toasts / FX ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: grid; gap: 8px; max-width: calc(100vw - 32px); }
.toast { padding: 12px 16px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--teal-hi); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: fadein .25s; }
.toast.err { border-left-color: var(--blood-hi); }
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 70; width: 100%; height: 100%; }
.footer { text-align: center; padding: 40px 16px 50px; border-top: 1px solid var(--line); color: var(--bone-dim); font-size: 13px; }
.footer-orn { width: 14px; height: 28px; margin: 0 auto; color: var(--blood); }
.footer-title { font: 32px var(--f-title); color: var(--bone); margin: 6px 0; }
.footer p { margin: 6px auto; max-width: 620px; }
.loginbox { max-width: 480px; margin: 40px auto; text-align: center; }
.loginbox .skull { width: 70px; height: 70px; margin: 0 auto 12px; color: var(--bone); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .two, .wallet-top { grid-template-columns: 1fr; }
}
@media (max-width: 1020px) {
  .burger { display: block; margin-left: auto; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 10px 16px 16px; background: rgba(11, 7, 8, .98); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .account { order: 2; }
  .topbar { gap: 10px; }
  .me .bal { display: none; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: -30px; }
  .review { grid-template-columns: 1fr; }
  .side-star { display: none; }
}
@media (max-width: 560px) {
  .brand-name { font-size: 22px; }
  .steps, .grid2 { grid-template-columns: 1fr; }
  .hero { min-height: 460px; }
  .challenges { grid-template-columns: 1fr; }
  .games { grid-template-columns: 1fr 1fr; gap: 12px; }
  .game-body h3 { font-size: 19px; }
  .account .btn { padding: 9px 12px; font-size: 10px; }
  .account .btn span { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
