/* =========================================================
   Lumenfold design system
   Charcoal surfaces, porcelain light mode, one portal-green accent (from the logo).
   Display: Outfit (light weights, very large). Text & labels: DM Sans.
   ========================================================= */

:root {
  --bg: #111210;
  --bg-2: #171816;
  --panel: #1c1d1a;
  --panel-2: #232420;
  --panel-3: #2b2c28;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f1;
  --text-2: #cfcfc8;
  --muted: #8f8f88;
  --invert: #111210;

  --lime: #b6ef35;
  --lime-ink: #0d1200;
  --lime-soft: rgba(182, 239, 53, 0.12);
  --lime-card: radial-gradient(120% 90% at 70% 30%, #26340d 0%, #161c0b 45%, #111210 100%);
  --pink: #ff74b3;
  --silver: #a9adb3;
  --red: #ff5a5f;
  --yellow: #ffd84d;

  /* legacy aliases used by game UI */
  --orange: var(--lime);
  --green: var(--lime);
  --purple: #b6a6ff;

  --radius: 24px;
  --radius-sm: 16px;
  --display: 'Outfit', system-ui, sans-serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'DM Sans', system-ui, sans-serif;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}

:root[data-theme="light"] {
  --bg: #f4f4f1;
  --bg-2: #e9e9e5;
  --panel: #ffffff;
  --panel-2: #f6f6f3;
  --panel-3: #ececE8;
  --line: rgba(0, 0, 0, 0.07);
  --line-2: rgba(0, 0, 0, 0.14);
  --text: #111210;
  --text-2: #3a3a37;
  --muted: #7a7a74;
  --invert: #ffffff;
  --lime-soft: rgba(120, 160, 0, 0.12);
  --shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .3s, color .3s; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--lime); color: var(--lime-ink); }

h1, h2, h3, .display { font-family: var(--display); font-weight: 300; letter-spacing: -0.035em; line-height: 1; }
.mono { font-family: var(--sans); letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; font-weight: 500; }
.muted { color: var(--muted); }
.container { width: min(1280px, 100% - 64px); margin-inline: auto; }
.dot { display: inline-flex; align-items: center; gap: 8px; }
.dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); flex: none; }

/* ---------- buttons: pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: transform .2s, background .2s, box-shadow .2s, color .2s; white-space: nowrap; border: 1px solid transparent; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary, .btn-green { background: var(--lime); color: var(--lime-ink); box-shadow: 0 10px 40px -12px rgba(182, 239, 53, .6); }
.btn-primary:hover, .btn-green:hover { box-shadow: 0 14px 50px -10px rgba(182, 239, 53, .8); }
.btn-ghost { border-color: var(--line-2); background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--panel-2); }
.btn-white, .btn-pink { background: var(--text); color: var(--invert); }
.btn-sm { padding: 8px 15px; font-size: 13px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.arrow-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; font-size: 17px; font-weight: 700; flex: none; transition: transform .25s; }
.arrow-btn.silver { background: transparent; border: 1px solid var(--line-2); color: var(--muted); }
a:hover > .arrow-btn, .arrow-btn:hover { transform: rotate(45deg); }

/* ---------- header: centered pill navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.site-header .row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: 0.02em; text-transform: uppercase; }
.brand .logo { width: 26px; height: 26px; }
.brand small { display: block; font-family: var(--sans); font-size: 10px; color: var(--lime); font-weight: 500; letter-spacing: .08em; text-transform: none; margin-top: 2px; }
.brand small::before { content: '●'; margin-right: 4px; font-size: 7px; vertical-align: 1px; }
:root[data-theme="light"] .brand small { color: #5d7a00; }
.nav { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.nav a { padding: 8px 18px; border-radius: 999px; font-size: 13.5px; color: var(--text-2); font-weight: 500; transition: background .2s, color .2s; }
.nav a:hover { color: var(--text); }
.nav a.active { background: var(--text); color: var(--invert); }
.header-right { justify-self: end; display: flex; gap: 10px; align-items: center; }
.balance-pill { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--lime-soft); color: var(--text); font-size: 13px; font-weight: 600; }
.balance-pill::first-letter { color: var(--lime); }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; font-weight: 500; font-size: 13.5px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: radial-gradient(circle at 35% 30%, #4a5a1a, #182006); color: var(--lime); }
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 15px; color: var(--text-2); }
.theme-toggle:hover { background: var(--panel-2); }

.event-banner { text-align: center; padding: 10px 16px; font-size: 13px; color: var(--text-2); border-bottom: 1px solid var(--line); }
.event-banner b { color: var(--text); font-weight: 600; }

/* meta strip: three small labels across a section, as in a presentation */
.meta-strip { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.meta-strip span:nth-child(2) { text-align: center; }
.meta-strip span:last-child { text-align: right; }

/* ---------- intro & start screen ---------- */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden; background: #050505; transition: background .5s; }
.intro.hide { animation: fadeOut .5s forwards; }
.intro canvas { position: absolute; inset: 0; opacity: .5; }
.intro .word-wrap { position: absolute; left: 6vw; top: 38%; }
.intro .tag { display: flex; gap: 14px; align-items: center; color: rgba(255, 255, 255, .6); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.intro .tag span:first-child { color: var(--lime); }
.intro .word { font-family: var(--display); font-size: clamp(56px, 11vw, 168px); font-weight: 200; letter-spacing: -.04em; line-height: 1; color: #fff; margin-top: 10px; }
.intro .bignum { position: absolute; right: 5vw; bottom: 8vh; font-family: var(--display); font-size: 30vh; font-weight: 100; color: rgba(255, 255, 255, .06); line-height: 1; }
.intro .skip { position: absolute; top: 20px; right: 20px; border: 1px solid rgba(255, 255, 255, .2); color: #fff; padding: 9px 18px; border-radius: 999px; font-size: 12px; letter-spacing: .08em; }
.intro .dots { position: absolute; bottom: 52px; left: 6vw; display: flex; gap: 6px; }
.intro .dots i { width: 22px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .2); }
.intro .dots i.on { background: var(--lime); }
.ticker { position: absolute; bottom: 0; left: 0; right: 0; border-top: 1px solid rgba(255, 255, 255, .08); overflow: hidden; padding: 10px 0; }
.ticker-track { display: flex; gap: 34px; width: max-content; animation: marquee 40s linear infinite; }
.ticker-track span { font-size: 11px; letter-spacing: .16em; font-weight: 500; white-space: nowrap; color: rgba(255, 255, 255, .55) !important; }
.ticker-track span::before { content: '•'; margin-right: 34px; color: var(--lime); }

.start-screen { position: fixed; inset: 0; z-index: 190; background: radial-gradient(60% 50% at 50% 55%, #1c2a05 0%, #070806 55%, #050505 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 20px; overflow: hidden; color: #fff; }
.start-screen.hide { animation: fadeOut .45s forwards; }
.start-screen .floor { display: none; }
.start-logo { display: flex; align-items: center; gap: 18px; font-family: var(--display); font-size: clamp(54px, 12vw, 150px); font-weight: 200; letter-spacing: .02em; }
.start-logo img { width: .6em; height: .6em; }
.start-sub { color: rgba(255, 255, 255, .6); margin-top: -18px; letter-spacing: .3em; }
.start-card { width: min(560px, 100%); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 18px; position: relative; z-index: 2; backdrop-filter: blur(10px); }
.start-card .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-weight: 500; font-size: 14px; }
.live-pill { color: var(--lime); background: rgba(182, 239, 53, .1); padding: 5px 12px; border-radius: 999px; }
.start-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.start-stats div { background: rgba(255, 255, 255, .04); border-radius: 16px; padding: 14px; }
.start-stats b { display: block; font-family: var(--display); font-size: 32px; font-weight: 300; }
.start-btn { position: relative; z-index: 2; padding: 16px 56px; font-size: 15px; font-weight: 600; letter-spacing: .2em; color: var(--lime-ink); background: var(--lime); border-radius: 999px; box-shadow: 0 0 80px rgba(182, 239, 53, .45); }
.start-btn:hover { transform: scale(1.03); }
.coin-float { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 16px var(--lime); animation: floatUp linear infinite; opacity: .5; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-bottom: 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding: 30px 0 50px; }
.hero h1 { font-size: clamp(52px, 6.4vw, 104px); font-weight: 300; letter-spacing: -.045em; line-height: .95; }
.hero h1 .soft { color: var(--muted); }
.grad { color: var(--lime); }
:root[data-theme="light"] .grad { color: #6f9400; }
.hero p.lead { margin: 30px 0 34px; font-size: 18px; color: var(--text-2); max-width: 540px; line-height: 1.6; }
.hero p.lead b { color: var(--text); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 26px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.eyebrow .bar { width: 26px; height: 1px; background: var(--line-2); }
.hero-art { position: relative; aspect-ratio: .9; border-radius: 32px; overflow: hidden; background: #070806; border: 1px solid rgba(255, 255, 255, .06); box-shadow: var(--shadow); }
.hero-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art .label { position: absolute; top: 22px; left: 24px; color: var(--lime); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; z-index: 2; }
.hero-art .caption { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; color: #fff; }
.hero-art .caption b { font-family: var(--display); font-weight: 300; font-size: 28px; display: block; }
.hero-art .caption span { color: rgba(255, 255, 255, .55); font-size: 13px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 10px; border-top: 1px solid var(--line); }
.hero-stats > div { padding: 22px 0 0; }
.hero-stats .mono { color: var(--muted); display: block; margin-bottom: 6px; }
.hero-stats b { font-family: var(--display); font-weight: 300; font-size: 30px; }
.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.top-game { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); position: relative; transition: border-color .2s; }
.top-game:hover { border-color: var(--line-2); }
.top-game .rank { position: absolute; top: 12px; right: 14px; font-size: 11px; color: var(--muted); }
.top-game .thumb { width: 56px; height: 56px; border-radius: 14px; background: var(--panel-3) center/cover; flex: none; }
.top-game b { display: block; font-weight: 600; }
.top-game .mono { color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.top-game .btn { margin-left: auto; }
.hero-hint { color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-top: 34px; }
.feature-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 30px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 500; color: var(--text-2); }
.feature-bar span::before { content: '•'; color: var(--lime); margin-right: 10px; }

/* ---------- sections ---------- */
section.block { padding: 110px 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 46px; flex-wrap: wrap; }
.kicker { color: var(--lime); margin-bottom: 20px; display: block; }
:root[data-theme="light"] .kicker { color: #5d7a00; }
h2 { font-size: clamp(42px, 6vw, 92px); }
h2 .dim { color: var(--muted); }
.section-head p { max-width: 420px; color: var(--text-2); font-size: 16px; }
.numbered { list-style: none; display: grid; gap: 14px; counter-reset: n; }
.numbered li { counter-increment: n; font-size: 15px; color: var(--text-2); }
.numbered li::before { content: '0' counter(n) ' / '; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* app window frame (screens shown like product shots) */
.window { background: var(--bg-2); border: 1px solid var(--line); border-radius: 28px; padding: 10px; box-shadow: var(--shadow); }
.window > .window-bar { display: flex; justify-content: space-between; padding: 8px 14px 12px; color: var(--muted); font-size: 12px; }
.window > .window-body { background: var(--bg); border-radius: 20px; padding: 22px; border: 1px solid var(--line); }

/* ---------- world cards (program-library bento) ---------- */
.worlds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.world-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; min-height: 250px; position: relative; overflow: hidden; transition: border-color .25s, transform .25s; isolation: isolate; }
.world-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.world-card.active { background: var(--lime-card); border-color: rgba(182, 239, 53, .14); color: #f3f3f0; }
.world-card.active p { color: rgba(255, 255, 255, .62); }
.world-card.big { grid-column: span 2; grid-row: span 2; min-height: 520px; }
.world-card.wide { grid-column: span 2; }
.world-card .tag { color: var(--lime); font-size: 12px; font-weight: 500; }
.world-card .tag::before { content: '•'; margin-right: 6px; }
.world-card:not(.active) .tag { color: var(--muted); }
.world-card h3 { font-size: 32px; margin-top: auto; }
.world-card.big h3 { font-size: 58px; }
.world-card p { color: var(--muted); font-size: 14px; max-width: 420px; }
.world-card .go { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); margin-top: 8px; }
.world-card.active .go { color: rgba(255, 255, 255, .55); }
.world-card .go .arrow-btn { margin-left: auto; }
.world-card .emoji { position: absolute; right: 18px; top: 16px; font-size: 34px; opacity: .85; filter: grayscale(.2); }
.world-card .art { position: absolute; z-index: -1; right: -8%; top: -4%; width: 72%; aspect-ratio: 1; }
.world-card .art canvas { width: 100%; height: 100%; }
.world-card.big .art { width: 78%; right: -6%; top: 0; }
.world-card .art-img { position: absolute; z-index: -1; inset: 0; background: center/cover; opacity: .35; mask-image: linear-gradient(200deg, #000 10%, transparent 70%); filter: grayscale(1) contrast(1.1); transition: opacity .3s, filter .3s; }
.world-card:hover .art-img { opacity: .55; filter: grayscale(.2); }
.roles { display: flex; gap: 6px; flex-wrap: wrap; }
.roles span { padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 12.5px; color: rgba(255, 255, 255, .8); }
.lobby-line { color: var(--lime); font-size: 12px; }
.world-card.pink { background: var(--pink); color: #160610; border: 0; }
.world-card.pink p, .world-card.pink .go, .world-card.pink .tag { color: rgba(22, 6, 16, .7) !important; }
.world-card.pink .arrow-btn { background: #160610; color: var(--pink); }

/* porcelain stat cards with sparklines */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { background: #fff; color: #0e0e0d; border-radius: 22px; padding: 20px 22px; display: grid; gap: 8px; min-height: 170px; }
:root[data-theme="light"] .stat-card { border: 1px solid var(--line); }
.stat-card .top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; }
.stat-card .top i { font-style: normal; color: #777; }
.stat-card b { font-family: var(--display); font-weight: 300; font-size: 44px; line-height: 1; }
.stat-card svg { width: 100%; height: 34px; }
.stat-card small { color: #777; font-size: 12.5px; }

/* ---------- loot ---------- */
.loot { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.skin-stage { aspect-ratio: 1.05; border-radius: 32px; background: var(--lime-card); position: relative; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(182, 239, 53, .12); color: #fff; }
.skin-stage .label { position: absolute; top: 22px; left: 24px; color: var(--lime) !important; }
.skin-stage .name { position: absolute; bottom: 22px; left: 24px; font-family: var(--display); font-size: 34px; font-weight: 300; display: flex; align-items: center; gap: 12px; }
.rarity { font-size: 11px; padding: 4px 10px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; display: inline-block; font-weight: 600; font-family: var(--sans); }
.r-Common { background: rgba(160, 160, 160, .16); color: #b8b8b8; }
.r-Rare { background: rgba(120, 170, 255, .16); color: #9cc0ff; }
.r-Epic { background: rgba(190, 160, 255, .18); color: #cbb8ff; }
.r-Legendary { background: rgba(182, 239, 53, .16); color: var(--lime); }
.r-Mythic { background: rgba(255, 116, 179, .18); color: var(--pink); }
:root[data-theme="light"] .r-Legendary { color: #5d7a00; }
.gun { width: 70%; height: 30%; position: relative; animation: bob 4s ease-in-out infinite; }
.gun i { position: absolute; border-radius: 8px; background: var(--skin, linear-gradient(90deg, #b6ef35, #f4ffb0)); background-size: 200% 100%; animation: shimmer 3s linear infinite; box-shadow: 0 0 60px -6px var(--glow, #b6ef35); }
.gun .body { left: 0; top: 10%; width: 80%; height: 40%; }
.gun .barrel { left: 78%; top: 18%; width: 22%; height: 18%; }
.gun .grip { left: 18%; top: 45%; width: 14%; height: 55%; transform: skewX(-12deg); }
.gun .mag { left: 44%; top: 45%; width: 11%; height: 40%; }
.feature-list { display: grid; }
.feature-list div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 210px 1fr; gap: 20px; }
.feature-list b { font-weight: 500; font-size: 16px; }
.feature-list span { color: var(--muted); }

/* ---------- generator (player-style screen) ---------- */
.build { display: grid; grid-template-columns: 380px 1fr; gap: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.build-form { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.build-form textarea, .input { width: 100%; background: var(--panel-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; resize: vertical; outline: none; color: var(--text); transition: border-color .2s; }
.build-form textarea:focus, .input:focus { border-color: var(--lime); }
/* fields never get squeezed by a short flex column (workshop sidebar) */
.input { flex-shrink: 0; }
textarea.input { min-height: 96px; line-height: 1.5; resize: none; scrollbar-width: thin; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 7px 13px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); transition: background .2s, color .2s; }
.chip:hover { background: var(--text); color: var(--invert); }
.steps { display: grid; gap: 4px; margin-top: 6px; }
.steps li { list-style: none; display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 14px; padding: 6px 0; }
.steps li .n { font-size: 12px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); flex: none; }
.steps li.active { color: var(--text); }
.steps li.active .n { border-color: var(--lime); color: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); animation: pulse 1.2s infinite; }
.steps li.done { color: var(--text); }
.steps li.done .n { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.viewport { position: relative; min-height: 480px; overflow: hidden; background: radial-gradient(60% 60% at 50% 55%, #1d2b05, #070806 70%); border-color: rgba(182, 239, 53, .08); }
.viewport canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: var(--radius); }
.viewport .overlay { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; color: rgba(255, 255, 255, .6); font-family: var(--display); font-weight: 300; font-size: 22px; }
.viewport .hud { position: absolute; top: 18px; left: 20px; right: 20px; display: flex; justify-content: space-between; color: rgba(255, 255, 255, .55); pointer-events: none; z-index: 2; }
.viewport .actions { position: absolute; bottom: 18px; right: 18px; display: flex; gap: 8px; z-index: 2; }
.viewport .actions .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .35); }

/* ---------- creator sequence ---------- */
.pipeline { display: grid; grid-template-columns: 1.05fr 1fr; gap: 14px; }
.mock { padding: 22px; display: grid; gap: 12px; }
.mock .file { font-size: 14px; color: var(--text-2); background: var(--panel-2); border-radius: 16px; padding: 16px; }
.mock .file::first-line { color: var(--muted); font-size: 12px; }
.mock .tree { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock .tree > div { background: var(--panel-2); border-radius: 16px; padding: 16px; font-size: 13px; }
.mock .tree ul { list-style: none; margin-top: 10px; display: grid; gap: 5px; color: var(--text-2); font-size: 13px; }
.slider { height: 4px; border-radius: 3px; background: var(--line-2); margin: 7px 0 13px; overflow: hidden; }
.slider i { display: block; height: 100%; background: var(--lime); }
.coin-row { display: flex; align-items: center; gap: 12px; background: var(--panel-2); border-radius: 16px; padding: 14px; }
.coin-row .c { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #efffb0, #7da800); display: grid; place-items: center; font-weight: 700; color: var(--lime-ink); }
.split { display: flex; height: 36px; border-radius: 999px; overflow: hidden; font-size: 12px; font-weight: 600; background: var(--panel-3); }
.split div { display: flex; align-items: center; padding: 0 14px; white-space: nowrap; }
.split div:first-child { background: var(--lime) !important; color: var(--lime-ink) !important; border-radius: 999px; }
.split div:not(:first-child) { background: transparent !important; color: var(--muted) !important; }
.timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.timeline .step { padding: 22px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.timeline .step .mono { color: var(--muted); display: flex; align-items: center; gap: 10px; }
.timeline .step .mono::before { content: attr(data-n); width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 12px; letter-spacing: 0; color: var(--text-2); }
.timeline .step:first-child { border-color: rgba(182, 239, 53, .35); }
.timeline .step:first-child .mono { color: var(--lime); }
.timeline .step:first-child .mono::before { border-color: var(--lime); color: var(--lime); }
.timeline .step h3 { font-size: 28px; }
.timeline .step p { color: var(--muted); font-size: 14px; }

/* ---------- workshop modules ---------- */
.modules { display: grid; grid-template-columns: 320px 1fr; gap: 14px; }
.mod-list { display: grid; gap: 6px; }
.mod-list button { text-align: left; padding: 14px 18px; border-radius: 20px; border: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; align-items: center; background: var(--panel); transition: border-color .2s, background .2s; }
.mod-list button .mono { grid-row: span 2; font-size: 18px; letter-spacing: 0; }
.mod-list button b { font-weight: 500; }
.mod-list button span:last-child { color: var(--muted); font-size: 13px; }
.mod-list button.on { background: var(--text); color: var(--invert); border-color: var(--text); }
.mod-list button.on span:last-child { color: color-mix(in srgb, var(--invert) 60%, transparent); }
.mod-view { padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; min-height: 400px; }
.mod-view h3 { font-size: 64px; }
.mod-view ul { list-style: none; display: grid; gap: 10px; margin-top: 20px; }
.mod-view li { color: var(--text-2); }
.mod-view li::before { content: '•'; color: var(--lime); margin-right: 10px; }
.mod-art { aspect-ratio: 1; border-radius: 26px; background: var(--lime-card); display: grid; place-items: center; font-size: 110px; filter: saturate(.9); }

/* ---------- game cards (catalogue) ---------- */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.game-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s; padding: 8px; }
.game-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.game-card .cover { aspect-ratio: 16/11; position: relative; border-radius: 18px; overflow: hidden; }
.game-card .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.game-card:hover .cover img { transform: scale(1.05); }
.game-card .cover .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; z-index: 1; flex-wrap: wrap; }
.badge { font-size: 10.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; letter-spacing: .04em; backdrop-filter: blur(6px); }
.badge.live { background: var(--lime); color: var(--lime-ink); }
.badge.sample { background: #fff; color: #111; }
.game-card .info { padding: 14px 10px 8px; display: grid; gap: 2px; }
.game-card .info b { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: -.02em; }
.game-card .info .mono { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.game-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.game-card .meta .mono { text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.game-card .online-dot { background: rgba(0, 0, 0, .55); color: var(--lime); }

/* ---------- feed ---------- */
.feed-wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 50px; align-items: start; }
.feed { display: grid; gap: 6px; }
.feed-item { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 14px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; animation: slideIn .4s ease; }
.feed-item .mono { color: var(--lime); text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.feed-item .mono::before { content: '•'; margin-right: 6px; }
.feed-item .mono.drop { color: var(--pink); }
.feed-item .mono.player { color: var(--purple); }
.feed-item .mono.coin, .feed-item .mono.lobby { color: var(--text-2); }
:root[data-theme="light"] .feed-item .mono.launch { color: #5d7a00; }
.feed-item time { color: var(--muted); font-size: 12px; }

/* ---------- trust ---------- */
.safety { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.splits { display: grid; gap: 20px; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); align-content: start; }
.cards3 { display: grid; gap: 10px; }
.cards3 .panel { padding: 22px; display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; }
.cards3 .mono { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--lime-soft); color: var(--lime); display: grid; place-items: center; letter-spacing: 0; font-size: 13px; }
:root[data-theme="light"] .cards3 .mono { color: #5d7a00; }
.cards3 b { font-weight: 500; font-size: 17px; }
.cards3 p { color: var(--muted); font-size: 14px; }

/* ---------- final + footer ---------- */
.final { text-align: left; padding: 140px 0 120px; position: relative; overflow: hidden; }
.final::before { content: ''; position: absolute; right: -10%; bottom: -40%; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, rgba(182, 239, 53, .16), transparent 60%); pointer-events: none; }
.final h2 { font-size: clamp(56px, 10vw, 160px); margin-bottom: 40px; }
.final .cta-row { justify-content: flex-start; }
footer { padding: 70px 0 30px; border-top: 1px solid var(--line); }
footer .cols { display: grid; grid-template-columns: 1.8fr repeat(4, 1fr); gap: 30px; }
footer h4 { font-size: 11px; color: var(--muted); letter-spacing: .12em; font-weight: 500; margin-bottom: 16px; }
footer ul { list-style: none; display: grid; gap: 10px; font-size: 14px; color: var(--text-2); }
footer ul a:hover { color: var(--text); }
footer .bottom { display: flex; justify-content: space-between; margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
footer .mono[style*="var(--green)"] { color: var(--lime) !important; }

/* ---------- app pages ---------- */
.page { padding: 40px 0 110px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.page-head h1 { font-size: clamp(48px, 7vw, 96px); }
.page-head h1 .muted { color: var(--muted); }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); width: fit-content; }
.tabs button { padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text-2); transition: background .2s, color .2s; }
.tabs button:hover { color: var(--text); }
.tabs button.on { background: var(--text); color: var(--invert); }
.grid-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.item-card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 10px; display: grid; gap: 8px; transition: border-color .2s; }
.item-card:hover { border-color: var(--line-2); }
.item-card .art { aspect-ratio: 1.25; border-radius: 16px; background: radial-gradient(70% 70% at 50% 55%, #1f2c06, #0c0f05); display: grid; place-items: center; font-size: 46px; overflow: hidden; }
:root[data-theme="light"] .item-card .art { background: radial-gradient(70% 70% at 50% 55%, #f3ffd0, #e6e9df); }
.item-card .art .gun { width: 78%; height: 34%; }
.item-card > b { font-weight: 500; font-size: 15px; padding: 0 6px; }
.item-card .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 4px 4px 6px; flex-wrap: wrap; }
.price { color: var(--text); font-weight: 600; font-size: 13px; }
.crates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.crate { padding: 26px; display: grid; gap: 14px; text-align: left; }
.crate:first-child { background: var(--lime-card); border-color: rgba(182, 239, 53, .14); color: #f3f3f0; }
.crate .box { font-size: 64px; filter: drop-shadow(0 14px 40px rgba(182, 239, 53, .35)); }
.crate b { font-family: var(--display); font-weight: 300; font-size: 30px !important; }
.crate .odds { display: flex; gap: 5px; flex-wrap: wrap; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wheel-box { padding: 28px; display: grid; justify-items: center; gap: 18px; }
.wheel-wrap { position: relative; width: 280px; height: 280px; }
.wheel-wrap canvas { width: 100%; height: 100%; transition: transform 4.5s cubic-bezier(.12, .7, .1, 1); }
.wheel-wrap::after { content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%); border: 11px solid transparent; border-top: 18px solid var(--text); }
.streak { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; width: 100%; }
.streak div { background: var(--panel-2); border-radius: 16px; padding: 12px 4px; text-align: center; font-size: 12px; color: var(--muted); }
.streak div b { display: block; color: var(--text); font-family: var(--display); font-weight: 400; font-size: 18px; }
.streak div.got { background: var(--lime); color: var(--lime-ink); }
.streak div.got b { color: var(--lime-ink); }
.empty { padding: 50px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 22px; }
.empty a { color: var(--text) !important; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- workshop (studio) ---------- */
.studio { display: grid; grid-template-columns: 300px 1fr 290px; gap: 12px; height: calc(100vh - 72px - 32px); margin-top: 16px; }
.studio .side { padding: 18px; display: flex; flex-direction: column; gap: 12px; overflow: auto; }
.studio .side h4 { font-size: 11px; color: var(--muted); letter-spacing: .12em; font-weight: 500; }
.studio .viewport { min-height: 0; }
.part-list { display: grid; gap: 2px; font-size: 12.5px; }
.part-list button { text-align: left; padding: 7px 10px; border-radius: 10px; color: var(--text-2); display: flex; gap: 8px; align-items: center; }
.part-list button:hover { background: var(--panel-2); }
.part-list button.sel { background: var(--lime); color: var(--lime-ink); }
.part-list i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.field-row .input { padding: 9px; font-size: 13px; border-radius: 12px; }

/* ---------- play page (always dark) ---------- */
.play-root { position: fixed; inset: 0; background: #000; }
.play-root canvas { display: block; width: 100%; height: 100%; }
.play-hud { position: fixed; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; z-index: 5; gap: 10px; }
.play-hud > * { pointer-events: auto; }
.hud-card { background: rgba(10, 10, 10, .72); color: #f3f3f0; border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; padding: 10px 16px; backdrop-filter: blur(14px); }
.hud-card .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .18); }
.play-center { position: fixed; inset: 0; display: grid; place-items: center; z-index: 6; background: radial-gradient(60% 60% at 50% 50%, rgba(20, 30, 4, .55), rgba(0, 0, 0, .75)); backdrop-filter: blur(3px); }
.play-center .panel { padding: 34px; text-align: center; max-width: 460px; display: grid; gap: 16px; background: rgba(14, 14, 14, .92); color: #f3f3f0; border-color: rgba(255, 255, 255, .08); }
.play-center .panel h2 { font-size: 44px !important; }
.play-center .muted { color: #8a8a84; }
.keys { display: flex; gap: 6px 12px; justify-content: center; flex-wrap: wrap; font-size: 12px; color: #8a8a84; }
.keys kbd { border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; padding: 2px 8px; color: #fff; font-family: var(--sans); font-size: 11.5px; margin-right: 3px; }
.float-text { position: fixed; z-index: 7; font-weight: 600; font-family: var(--display); font-size: 20px; color: var(--lime); pointer-events: none; animation: rise 1s forwards; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }

/* ---------- modal + toast ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, .55); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(8px); animation: fadeIn .2s; }
.modal { width: min(440px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 30px; display: grid; gap: 14px; position: relative; box-shadow: var(--shadow); }
.modal h3 { font-size: 34px; }
.modal .close { position: absolute; top: 18px; right: 20px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.modal .err { color: var(--red); font-size: 14px; min-height: 20px; }
.modal .switch { font-size: 14px; color: var(--muted); }
.modal .switch button { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.reveal-item { text-align: center; display: grid; gap: 12px; justify-items: center; }
.reveal-item .art { width: 220px; height: 160px; display: grid; place-items: center; font-size: 80px; border-radius: 22px; background: var(--lime-card); animation: pop .5s ease; }
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 400; display: grid; gap: 8px; }
.toast { background: var(--text); color: var(--invert); padding: 13px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; animation: slideIn .3s; max-width: 380px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); }
.toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex: none; }
.toast.err::before { background: var(--red); }

/* ---------- animations ---------- */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes floatUp { from { transform: translateY(110vh); } to { transform: translateY(-20vh); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pulse { 50% { opacity: .45; } }
@keyframes slideIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes rise { to { transform: translateY(-50px); opacity: 0; } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes bannerIn { from { opacity: 0; transform: translate(-50%, 20px) scale(.95); } }

/* ---------- in-game HUD ---------- */
.mode-hud { display: flex; gap: 4px; align-items: center; background: rgba(10, 10, 10, .72); color: #f3f3f0; border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; padding: 8px 10px; backdrop-filter: blur(14px); }
.mode-hud .stat { display: grid; justify-items: center; padding: 2px 14px; }
.mode-hud .stat + .stat { border-left: 1px solid rgba(255, 255, 255, .08); }
.mode-hud .stat small { font-size: 10px; color: #8a8a84; letter-spacing: .12em; }
.mode-hud .stat b { font-family: var(--display); font-weight: 300; font-size: 26px; line-height: 1.1; }
.players-box { min-width: 170px; display: grid; gap: 5px; font-size: 13px; }
.players-box div div { display: flex; align-items: center; gap: 8px; }
.players-box div div::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.crosshair { position: fixed; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%); z-index: 5; pointer-events: none; }
.crosshair::before, .crosshair::after { content: ''; position: absolute; background: #fff; box-shadow: 0 0 4px #000; border-radius: 2px; }
.crosshair::before { left: 10px; top: 0; width: 2px; height: 22px; }
.crosshair::after { top: 10px; left: 0; height: 2px; width: 22px; }
.crosshair.hit::before, .crosshair.hit::after { background: var(--red); }
.hp-bar { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); width: 300px; height: 14px; border-radius: 999px; background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .12); overflow: hidden; z-index: 5; }
.hp-bar i { display: block; height: 100%; background: var(--lime); transition: width .2s; border-radius: 999px; }
.hp-bar span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #0d1200; mix-blend-mode: normal; }
.ammo { position: fixed; right: 26px; bottom: 24px; z-index: 5; font-family: var(--display); font-size: 34px; font-weight: 300; color: #fff; text-shadow: 0 2px 10px #000; }
.banner { position: fixed; left: 50%; top: 24%; transform: translateX(-50%); z-index: 6; font-family: var(--display); font-size: clamp(40px, 8vw, 96px); font-weight: 300; letter-spacing: -.04em; color: #fff; text-shadow: 0 6px 30px rgba(0, 0, 0, .6); pointer-events: none; animation: bannerIn .5s ease; text-align: center; }
.banner small { display: block; font: 600 12px var(--sans); letter-spacing: .2em; color: var(--lime); margin-bottom: 6px; }
.prompt-hint { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 5; background: rgba(10, 10, 10, .78); color: #fff; border: 1px solid rgba(255, 255, 255, .1); padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: 14px; backdrop-filter: blur(14px); }
.prompt-hint kbd { background: var(--lime); color: #0d1200; border-radius: 999px; padding: 1px 9px; font-family: var(--sans); font-weight: 700; margin-right: 8px; }
.progress { position: fixed; left: 50%; bottom: 78px; transform: translateX(-50%); width: 220px; height: 6px; border-radius: 999px; background: rgba(0, 0, 0, .6); overflow: hidden; z-index: 5; }
.progress i { display: block; height: 100%; width: 0; background: var(--lime); }
.fish-game { position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 6; background: rgba(10, 10, 10, .85); color: #fff; border: 1px solid rgba(255, 255, 255, .1); border-radius: 24px; padding: 16px; width: 360px; display: grid; gap: 12px; text-align: center; backdrop-filter: blur(14px); }
.fish-track { position: relative; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.fish-zone { position: absolute; top: 0; bottom: 0; background: rgba(182, 239, 53, .45); border-radius: 999px; }
.fish-marker { position: absolute; top: 2px; bottom: 2px; width: 4px; background: #fff; box-shadow: 0 0 12px #fff; border-radius: 4px; }
.pause-hint { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 5; color: rgba(255, 255, 255, .5); font-size: 11px; }
.chat { position: fixed; left: 16px; bottom: 16px; width: min(360px, 60vw); z-index: 5; display: grid; gap: 6px; }
.chat-log { display: grid; gap: 4px; max-height: 190px; overflow: hidden; align-content: end; font-size: 13px; }
.chat-log div { background: rgba(10, 10, 10, .6); color: #f3f3f0; padding: 6px 12px; border-radius: 14px; width: fit-content; max-width: 100%; animation: slideIn .2s; overflow-wrap: anywhere; backdrop-filter: blur(10px); }
.chat-log b { color: var(--lime); font-weight: 600; }
.chat-log .sys { color: #8a8a84; }
.chat-input { background: rgba(10, 10, 10, .6); border: 1px solid rgba(255, 255, 255, .08); border-radius: 999px; padding: 10px 16px; font-size: 13px; outline: none; color: #fff; backdrop-filter: blur(10px); }
.chat-input:focus { border-color: var(--lime); }
.start-panel { width: min(480px, calc(100vw - 32px)); }
.board { display: grid; gap: 4px; text-align: left; }
.board:empty { display: none; }
.board .row { display: flex; justify-content: space-between; font-size: 14px; padding: 9px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.board .row:first-of-type { background: rgba(182, 239, 53, .1); }
.board .row b { color: var(--lime); font-weight: 600; }
.catch-card { position: fixed; left: 50%; top: 38%; transform: translate(-50%, -50%); z-index: 7; background: rgba(14, 14, 14, .92); color: #fff; border: 1px solid rgba(182, 239, 53, .2); border-radius: 28px; padding: 26px 34px; text-align: center; display: grid; gap: 8px; animation: pop .35s ease; pointer-events: none; }
.catch-card .big { font-size: 64px; }
.dmg-flash { position: fixed; inset: 0; z-index: 4; pointer-events: none; box-shadow: inset 0 0 160px rgba(255, 40, 50, .6); animation: fadeOut .45s forwards; }
.touch { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.stick { position: absolute; left: 30px; bottom: 120px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .2); pointer-events: auto; touch-action: none; backdrop-filter: blur(8px); }
.stick i { position: absolute; left: 40px; top: 40px; width: 50px; height: 50px; border-radius: 50%; background: rgba(182, 239, 53, .6); }
.tbtn { position: absolute; right: 30px; width: 74px; height: 74px; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: 26px; font-weight: 700; pointer-events: auto; touch-action: none; backdrop-filter: blur(8px); }
.tbtn.jump { bottom: 130px; }
.tbtn.act { bottom: 220px; right: 50px; width: 60px; height: 60px; font-size: 20px; background: var(--lime); color: #0d1200; }

/* ---------- mobile menu ---------- */
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 16px; justify-self: end; }
.mobile-menu { display: grid; padding: 8px 20px 20px; border-top: 1px solid var(--line); background: var(--bg); }
.mobile-menu a, .mobile-menu button { padding: 15px 4px; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 300; font-size: 22px; text-align: left; }
.mobile-menu button { color: var(--lime); }
:root[data-theme="light"] .mobile-menu button { color: #5d7a00; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { aspect-ratio: 1.2; max-height: 520px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .site-header .row { grid-template-columns: 1fr auto auto; }
  .nav { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .worlds { grid-template-columns: 1fr 1fr; }
  .loot, .build, .pipeline, .modules, .feed-wrap, .safety, .two-col, .mod-view { grid-template-columns: 1fr; }
  .crates { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .studio { grid-template-columns: 1fr; height: auto; }
  .studio .viewport { min-height: 420px; }
  .meta-strip span:nth-child(2) { display: none; }
}
@media (min-width: 1001px) { .mobile-menu { display: none !important; } }
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .worlds, .timeline, .hero-cards { grid-template-columns: 1fr; }
  .world-card.big, .world-card.wide { grid-column: auto; grid-row: auto; }
  .world-card.big { min-height: 420px; }
  .world-card.big h3 { font-size: 44px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .feature-list div { grid-template-columns: 1fr; gap: 4px; }
  section.block { padding: 80px 0; }
  .header-right .hide-sm { display: none; }
  .header-right .btn-primary { display: none; }
  .feed-item { grid-template-columns: 1fr auto; }
  .feed-item .mono { grid-column: span 2; }
  .mod-view { padding: 24px; }
  .mod-view h3 { font-size: 44px; }
  .feature-bar { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .hp-bar { width: 180px; left: auto; right: 16px; transform: none; bottom: 70px; }
  .ammo { bottom: 96px; font-size: 26px; }
  .players-box { display: none; }
  .mode-hud .stat { padding: 0 8px; }
  .mode-hud .stat b { font-size: 20px; }
  .prompt-hint { bottom: 150px; font-size: 13px; max-width: calc(100vw - 32px); }
}

/* ---------- lumenfold logo ----------
   Outline arch frame + green light rising in the doorway; wordmark in the same light Outfit as the headings. */
.brand { text-transform: none; letter-spacing: 0; gap: 11px; }
.brand .mark { width: 28px; height: 28px; color: var(--text); flex: none; }
.wordmark { font-family: var(--display); font-weight: 300; letter-spacing: .01em; text-transform: lowercase; font-size: 23px; line-height: 1; }
.tagline { color: var(--muted); letter-spacing: .34em; font-size: 10px; }
.start-logo { gap: .2em; font-weight: 200; letter-spacing: .01em; }
.start-logo .mark { width: .72em; height: .72em; color: var(--text); }
.start-logo .wordmark { font-size: 1em; font-weight: 200; }
.start-sub { letter-spacing: .34em; }
.wordmark .fold { color: var(--lime); }
:root[data-theme="light"] .wordmark .fold { color: #7fae12; }

/* ---------- wallet panel (Bazaar) ---------- */
.wallet-panel { padding: 26px 28px; display: grid; gap: 14px; }
.wallet-panel h3 { font-size: 30px; }
.wallet-panel p { max-width: 640px; }
.wallet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.wallet-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.wallet-row > div { display: grid; gap: 2px; }
.wallet-row b { font-size: 22px; font-weight: 500; }
.wallet-row .btn { margin-left: auto; }
.wallet-deposit { display: flex; gap: 10px; flex-wrap: wrap; }
.wallet-deposit .input { flex: 1 1 240px; }
.wallet-note { font-size: 13px; }
.wallet-deps { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; }
.wallet-deps div { display: flex; gap: 16px; }

/* token card (start screen, home) */
.token-card .tk-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tk-sym { font-family: var(--display); font-weight: 500; font-size: 18px; }
.tk-pill { font-size: 11px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); }
.tk-pill.live { color: var(--lime); border-color: color-mix(in srgb, var(--lime) 45%, transparent); }
.tk-pill.soon { color: rgba(255, 255, 255, .55); }
.tk-pill .up { color: var(--lime); } .tk-pill .down { color: #ff6b6b; }
.tk-note { margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, .55); }
.tk-ca { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); flex-wrap: wrap; }
.tk-ca code { font-family: var(--mono, ui-monospace, monospace); color: var(--lime); flex: 1; min-width: 120px; }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.start-screen .token-card .btn-ghost { color: #fff; border-color: rgba(255,255,255,.2); }
