:root {
  --bg: #04050b;
  --ink: #eef1ff;
  --ink-2: #b8bfd8;
  --muted: #7d86a3;
  --line: rgba(160, 180, 255, 0.14);
  --glass: rgba(12, 15, 30, 0.52);
  --glass-2: rgba(20, 24, 46, 0.7);
  --accent: #8fd3ff;
  --accent-2: #c79bff;
  --warm: #ffb36b;
  --rare: #9aa7b8;
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--body); overflow: hidden; -webkit-font-smoothing: antialiased; }
body { touch-action: none; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(143, 211, 255, 0.35); }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; outline: none; }
#vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%); }
#flash { position: fixed; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 50%, #fff 0%, #e8f2ff 30%, rgba(160, 200, 255, 0.6) 60%, rgba(4, 5, 11, 0) 100%); z-index: 40; }
#flash.on { animation: flash 1.1s var(--ease) forwards; }
@keyframes flash { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0; } }

/* loader */
#loader { position: fixed; inset: 0; display: grid; place-content: center; gap: 22px; justify-items: center; z-index: 60; background: var(--bg); transition: opacity 1s ease, visibility 1s; }
body:not(.boot) #loader { opacity: 0; visibility: hidden; }
.loader-orb { width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #8fd3ff 30%, #3a4aa8 70%, #0a0d22); box-shadow: 0 0 60px #4f7dff88; animation: pulse 1.6s ease-in-out infinite; }
.loader-text { font-family: var(--mono); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
@keyframes pulse { 50% { transform: scale(1.12); box-shadow: 0 0 90px #8fd3ffaa; } }

/* ui scaffolding */
.ui { position: fixed; z-index: 10; }
.screen { inset: 0; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; }
.screen.active { opacity: 1; visibility: visible; }
.screen.active > * { pointer-events: auto; }
body.photo .ui, body.photo .screen.active, body.photo .hover-label { opacity: 0 !important; pointer-events: none !important; }
.glass { background: var(--glass); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* topbar */
.topbar { top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px 26px; pointer-events: none; transition: opacity .6s; }
.topbar > * { pointer-events: auto; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 500; letter-spacing: .32em; font-size: 13px; color: var(--ink); }
.logo svg { width: 26px; height: 26px; color: var(--accent); filter: drop-shadow(0 0 8px #8fd3ff88); }
.topbar nav { display: flex; align-items: center; gap: 12px; }
.nav-link { font-size: 13.5px; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; border: 1px solid transparent; transition: .3s; }
.nav-link:hover { color: var(--ink); border-color: var(--line); background: rgba(255, 255, 255, 0.04); }
.pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.pill.live i { width: 7px; height: 7px; border-radius: 50%; background: #5fe0a0; box-shadow: 0 0 10px #5fe0a0; animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); cursor: pointer; transition: .25s; color: var(--ink-2); }
.icon-btn:hover { color: var(--ink); background: rgba(255, 255, 255, 0.09); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.small { width: 30px; height: 30px; font-size: 12px; }
#soundBtn:not(.on) .wave { opacity: .2; }
#soundBtn.on { color: var(--accent); border-color: #8fd3ff55; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); cursor: pointer; font-weight: 500; font-size: 14.5px; transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s; white-space: nowrap; }
.btn:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { background: linear-gradient(135deg, #e9f6ff, #9fd8ff 45%, #b99bff); color: #070a1a; border: 0; font-weight: 600; box-shadow: 0 8px 30px rgba(143, 211, 255, 0.35); }
.btn.primary:hover { box-shadow: 0 10px 44px rgba(143, 211, 255, 0.55); }
.btn.ghost { background: rgba(255, 255, 255, 0.03); color: var(--ink-2); }
.btn.ghost:hover { color: var(--ink); }
.btn.small { padding: 8px 14px; font-size: 12.5px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.arr { transition: transform .3s var(--ease); display: inline-block; }
.btn:hover .arr { transform: translateX(4px); }

/* HOME */
.hero { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); width: min(760px, calc(100vw - 32px)); text-align: center; isolation: isolate; }
.hero::before { content: ''; position: absolute; z-index: -1; inset: -12% -18%; pointer-events: none; background: radial-gradient(ellipse 50% 50% at 50% 46%, rgba(4, 5, 11, 0.72) 0%, rgba(4, 5, 11, 0.5) 45%, rgba(4, 5, 11, 0) 100%); filter: blur(8px); }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(10, 12, 26, 0.45); backdrop-filter: blur(10px); }
.spark { color: var(--warm); animation: spin 8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero h1 { font-family: var(--display); font-weight: 300; font-size: clamp(40px, 7.4vw, 92px); line-height: .98; letter-spacing: -0.03em; margin: 26px 0 18px; text-shadow: 0 0 2px rgba(4, 5, 11, 0.9), 0 2px 12px rgba(4, 5, 11, 0.85), 0 4px 60px rgba(0, 0, 0, 0.7); }
.hero h1 em { font-style: normal; font-weight: 700; background: linear-gradient(100deg, #fff 0%, #9fd8ff 35%, #c79bff 65%, #ffb36b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: sheen 8s ease-in-out infinite; text-shadow: none; filter: drop-shadow(0 2px 10px rgba(4, 5, 11, 0.8)); }
@keyframes sheen { 50% { background-position: 100% 0; } }
.sub { color: #dfe4f5; font-weight: 500; font-size: clamp(15px, 1.6vw, 17.5px); line-height: 1.6; max-width: 560px; margin: 0 auto 34px; text-wrap: balance; text-shadow: 0 0 1px #04050b, 0 0 2px #04050b, 0 1px 3px rgba(4, 5, 11, 0.95), 0 2px 18px rgba(4, 5, 11, 0.9); }
.seed-form { max-width: 600px; margin: 0 auto; }
.seed-input { position: relative; display: flex; align-items: center; padding: 7px; border-radius: 999px; background: rgba(8, 10, 24, 0.66); border: 1px solid rgba(160, 190, 255, 0.24); backdrop-filter: blur(16px); box-shadow: 0 0 0 0 rgba(143, 211, 255, 0); transition: box-shadow .4s, border-color .4s; }
.seed-input:focus-within { border-color: rgba(143, 211, 255, 0.6); box-shadow: 0 0 0 6px rgba(143, 211, 255, 0.08), 0 20px 80px rgba(80, 130, 255, 0.25); }
.seed-input input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; font-family: var(--display); font-weight: 300; font-size: clamp(17px, 2.2vw, 22px); padding: 10px 20px; letter-spacing: .01em; }
.typer { position: absolute; left: 27px; top: 50%; transform: translateY(-50%); pointer-events: none; font-family: var(--display); font-weight: 300; font-size: clamp(17px, 2.2vw, 22px); color: var(--muted); white-space: nowrap; overflow: hidden; max-width: calc(100% - 210px); }
.typer::after { content: ''; display: inline-block; width: 2px; height: 1em; background: var(--accent); margin-left: 3px; vertical-align: -0.12em; animation: blink 1s steps(1) infinite; }
.seed-input input:not(:placeholder-shown) + .typer, .seed-input.has-value .typer { display: none; }
.preview { min-height: 34px; margin-top: 14px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; transition: opacity .3s; }
.preview .chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(10, 12, 26, 0.55); color: var(--ink-2); backdrop-filter: blur(10px); animation: pop .35s var(--ease); }
.preview .chip.r { color: var(--rc); border-color: color-mix(in srgb, var(--rc) 45%, transparent); box-shadow: 0 0 20px color-mix(in srgb, var(--rc) 25%, transparent); }
.preview .chip.claimed { color: var(--warm); }
@keyframes pop { from { opacity: 0; transform: translateY(4px) scale(.96); } }
.hero-actions .btn { background: rgba(8, 10, 24, 0.6); backdrop-filter: blur(10px); color: var(--ink); }
.hero-actions { margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; overflow: hidden; border-top: 1px solid var(--line); background: linear-gradient(to top, rgba(4, 5, 11, 0.85), rgba(4, 5, 11, 0.2)); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; gap: 46px; align-items: center; height: 100%; width: max-content; animation: tick 60s linear infinite; padding-left: 100%; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick { display: inline-flex; gap: 9px; align-items: center; font-size: 13px; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.tick b { color: var(--ink); font-weight: 600; }
.tick .orb { width: 14px; height: 14px; }
.tick time { font-family: var(--mono); font-size: 11px; color: var(--muted); }
@keyframes tick { to { transform: translateX(-100%); } }

.orb { display: inline-block; border-radius: 50%; flex: none; background: radial-gradient(circle at 32% 30%, hsl(var(--h) 90% 85%), hsl(var(--h) 75% 52%) 45%, hsl(calc(var(--h) + 20) 70% 18%) 80%); box-shadow: 0 0 14px hsl(var(--h) 80% 55% / .5); }

/* EXPLORE */
.panel { position: absolute; border-radius: var(--radius); }
.explore-panel { top: 84px; left: 24px; bottom: 24px; width: 340px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.panel-head h2 { font-family: var(--display); font-weight: 500; font-size: 22px; margin: 0 0 4px; letter-spacing: -0.01em; }
.panel-head p { margin: 0; font-size: 13px; }
.field { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); outline: none; transition: border-color .25s; resize: none; }
.field:focus { border-color: rgba(143, 211, 255, 0.55); }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); }
.tab { flex: 1; padding: 8px 6px; border-radius: 9px; border: 0; background: transparent; cursor: pointer; font-size: 12.5px; color: var(--muted); transition: .25s; }
.tab.active { background: rgba(255, 255, 255, 0.09); color: var(--ink); }
.world-list { list-style: none; margin: 0; padding: 0 4px 0 0; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 4px; scrollbar-width: thin; scrollbar-color: #2a3150 transparent; }
.world-list li { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 12px; cursor: pointer; transition: background .2s; }
.world-list li:hover, .world-list li.hot { background: rgba(255, 255, 255, 0.06); }
.world-list .orb { width: 30px; height: 30px; }
.world-list .meta { flex: 1; min-width: 0; }
.world-list .nm { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.world-list .by { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.world-list .st { font-family: var(--mono); font-size: 11.5px; color: var(--warm); }
.world-list .empty { color: var(--muted); font-size: 13px; cursor: default; line-height: 1.5; }
.hint-chip { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding: 8px 14px; border-radius: 999px; background: rgba(8, 10, 22, 0.6); border: 1px solid var(--line); white-space: nowrap; }
.hover-label { position: fixed; z-index: 12; pointer-events: none; transform: translate(-50%, calc(-100% - 22px)); padding: 9px 14px; border-radius: 12px; background: rgba(8, 10, 24, 0.82); border: 1px solid var(--line); backdrop-filter: blur(10px); opacity: 0; transition: opacity .2s; white-space: nowrap; text-align: center; }
.hover-label.on { opacity: 1; }
.hover-label b { display: block; font-family: var(--display); font-weight: 500; font-size: 14px; }
.hover-label span { font-size: 11.5px; color: var(--muted); }

/* WORLD */
.dossier { top: 84px; left: 24px; bottom: 112px; width: 372px; padding: 0; overflow: hidden; transition: transform .6s var(--ease), opacity .6s; }
.dossier.collapsed { transform: translateX(calc(-100% + 34px)); }
.dossier-scroll { height: 100%; overflow-y: auto; padding: 26px 26px 30px; scrollbar-width: thin; scrollbar-color: #2a3150 transparent; }
.collapse { position: absolute; right: 8px; top: 12px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); cursor: pointer; color: var(--muted); font-size: 16px; line-height: 1; transition: transform .4s; }
.dossier.collapsed .collapse { transform: rotate(180deg); }
.rarity { display: inline-flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--rc, #9aa7b8); padding: 6px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--rc, #9aa7b8) 40%, transparent); background: color-mix(in srgb, var(--rc, #9aa7b8) 10%, transparent); box-shadow: 0 0 30px color-mix(in srgb, var(--rc, #9aa7b8) 22%, transparent); }
.rarity .pct { color: var(--ink-2); letter-spacing: .04em; text-transform: none; }
.rarity.mythic, .rarity.legendary { animation: glowPulse 2.4s ease-in-out infinite; }
@keyframes glowPulse { 50% { box-shadow: 0 0 46px color-mix(in srgb, var(--rc) 50%, transparent); } }
.world-name { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.02; letter-spacing: -0.02em; margin: 16px 0 8px; word-break: break-word; }
.classline { font-family: var(--mono); font-size: 12px; color: var(--ink-2); letter-spacing: .04em; }
.discoverer { margin-top: 14px; font-size: 13.5px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.discoverer b { color: var(--ink); }
.discoverer .badge { font-family: var(--mono); font-size: 10.5px; padding: 3px 8px; border-radius: 6px; background: rgba(255, 179, 107, 0.12); color: var(--warm); border: 1px solid rgba(255, 179, 107, 0.3); text-transform: uppercase; letter-spacing: .1em; }
.discoverer .badge.free { background: rgba(95, 224, 160, 0.1); color: #5fe0a0; border-color: rgba(95, 224, 160, 0.3); }
.epitaph { margin: 16px 0 0; padding: 12px 16px; border-left: 2px solid var(--accent-2); background: rgba(199, 155, 255, 0.06); border-radius: 0 12px 12px 0; font-style: italic; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.epitaph:empty { display: none; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 22px 0; }
.stat { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(160, 180, 255, 0.08); }
.stat.wide { grid-column: span 2; }
.stat .k { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat .v { margin-top: 5px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat .v small { color: var(--muted); font-weight: 400; font-size: 12px; }
.bar { height: 5px; margin-top: 9px; border-radius: 9px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #ff6b6b, #ffb36b, #5fe0a0); background-size: 300px 100%; width: 0; transition: width 1.4s var(--ease); }
.lore { font-size: 14.5px; line-height: 1.72; color: var(--ink-2); margin: 0; min-height: 4em; }
.lore .cursor { display: inline-block; width: 7px; height: 1em; background: var(--accent); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }

.forge { top: 84px; right: 24px; bottom: 112px; width: 330px; padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 10px; transform: translateX(calc(100% + 40px)); transition: transform .6s var(--ease); }
.forge.open { transform: none; }
.forge-head { display: flex; justify-content: space-between; align-items: center; }
.forge-head h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 17px; }
.forge-body { flex: 1; overflow-y: auto; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; scrollbar-color: #2a3150 transparent; }
.forge-body.locked { opacity: .45; pointer-events: none; filter: saturate(.4); }
.fgroup { margin: 14px 0 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.types button { padding: 9px 2px 7px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); cursor: pointer; font-size: 10.5px; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 3px; transition: .2s; }
.types button span { font-size: 16px; line-height: 1; }
.types button.active { border-color: rgba(143, 211, 255, 0.6); background: rgba(143, 211, 255, 0.1); color: var(--ink); }
.slider { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 7px 0; }
.slider label { font-size: 12.5px; color: var(--ink-2); }
.slider output { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.slider input { grid-column: span 2; width: 100%; }
.toggles { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.toggles button { padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); cursor: pointer; font-size: 12px; color: var(--ink-2); transition: .2s; }
.toggles button.on { border-color: rgba(255, 179, 107, 0.6); color: var(--warm); background: rgba(255, 179, 107, 0.08); }
input[type=range] { -webkit-appearance: none; appearance: none; height: 22px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), rgba(255, 255, 255, 0.1) var(--p, 50%)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(143, 211, 255, 0.25), 0 2px 8px rgba(0, 0, 0, 0.5); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(143, 211, 255, 0.25); }
.forge-foot { display: flex; gap: 8px; justify-content: space-between; padding-top: 6px; border-top: 1px solid var(--line); }

.actionbar { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 7px; border-radius: 999px; max-width: calc(100vw - 32px); }
.act { display: inline-flex; align-items: center; gap: 7px; padding: 11px 15px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; color: var(--ink-2); font-size: 13.5px; font-weight: 500; transition: .25s; white-space: nowrap; }
.act svg { width: 18px; height: 18px; flex: none; }
.act:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.act.claim { background: linear-gradient(135deg, #e9f6ff, #9fd8ff 45%, #b99bff); color: #070a1a; font-weight: 600; padding: 11px 22px; box-shadow: 0 6px 26px rgba(143, 211, 255, 0.35); margin: 0 4px; }
.act.claim:hover { box-shadow: 0 8px 36px rgba(143, 211, 255, 0.6); color: #070a1a; }
.act.claim.owned { background: rgba(255, 179, 107, 0.12); color: var(--warm); box-shadow: none; border: 1px solid rgba(255, 179, 107, 0.35); }
.act.claim.taken { background: rgba(255, 255, 255, 0.05); color: var(--muted); box-shadow: none; cursor: default; }
#starBtn.on { color: #ffd36b; }
#starBtn.on svg { filter: drop-shadow(0 0 8px #ffd36b); }
#starBtn.burst svg { animation: burst .6s var(--ease); }
@keyframes burst { 40% { transform: scale(1.6) rotate(20deg); } }
#forgeBtn.on { color: var(--accent); }

.forming { position: absolute; left: 50%; top: 50%; transform: translate(-50%, 150px); font-family: var(--mono); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); opacity: 0; transition: opacity .6s; text-shadow: 0 0 20px #000; pointer-events: none !important; text-align: center; white-space: nowrap; }
.forming.on { opacity: 1; }

.photo-hint { position: fixed; z-index: 11; bottom: 24px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11.5px; color: var(--muted); opacity: 0; pointer-events: none; transition: opacity .6s; }
body.photo .photo-hint { opacity: .8; }
kbd { font-family: var(--mono); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(2, 3, 8, 0.55); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: .4s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-card { width: min(440px, 100%); padding: 30px 28px 24px; border-radius: 26px; display: flex; flex-direction: column; gap: 14px; transform: translateY(16px) scale(.98); transition: transform .5s var(--ease); background: var(--glass-2); }
.modal.open .modal-card { transform: none; }
.modal-card h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 22px; }
.modal-card p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.modal-card label { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.modal-orb { width: 64px; height: 64px; margin-bottom: 4px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.error { color: #ff8a8a !important; min-height: 1em; font-size: 13px !important; }

.toast { position: fixed; z-index: 55; left: 50%; top: 84px; transform: translate(-50%, -20px); padding: 12px 20px; border-radius: 999px; background: rgba(14, 18, 36, 0.92); border: 1px solid var(--line); font-size: 13.5px; opacity: 0; pointer-events: none; transition: .45s var(--ease); max-width: calc(100vw - 32px); text-align: center; backdrop-filter: blur(10px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.noscript { position: fixed; inset: 0; display: grid; place-items: center; color: var(--ink-2); }

/* responsive */
@media (max-width: 900px) {
  .topbar { padding: 14px 16px; }
  .logo span { display: none; }
  .nav-link { padding: 8px 10px; font-size: 13px; }
  .hero { transform: translate(-50%, -58%); }
  .seed-input { flex-wrap: wrap; border-radius: 26px; }
  .seed-input input { flex-basis: 100%; text-align: center; padding: 14px 12px 10px; }
  .typer { left: 50%; top: 30px; transform: translate(-50%, -50%); max-width: calc(100% - 40px); }
  .seed-input .btn { flex: 1; }
  .explore-panel { top: auto; left: 12px; right: 12px; bottom: 12px; width: auto; height: 46vh; padding: 16px; }
  .hint-chip { display: none; }
  .dossier { top: auto; left: 12px; right: 12px; bottom: 88px; width: auto; height: 38vh; }
  .dossier.collapsed { transform: translateY(calc(100% - 52px)); }
  .dossier .collapse { transform: rotate(-90deg); }
  .dossier.collapsed .collapse { transform: rotate(90deg); }
  .dossier-scroll { padding: 20px 18px 24px; }
  .world-name { font-size: 28px; margin-top: 10px; }
  .forge { top: 70px; left: 12px; right: 12px; bottom: 88px; width: auto; transform: translateY(calc(100% + 120px)); }
  .actionbar { bottom: 14px; gap: 0; padding: 5px; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .act { padding: 10px 11px; }
  .act span:not(#starCount) { display: none; }
  .act.claim span { display: inline; }
  .act.claim { padding: 10px 16px; }
  .forming { transform: translate(-50%, -38vh); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation-duration: 160s; }
  .hero h1 em, .spark { animation: none; }
}

/* ---------------------------------------------------------------- accounts */
.account-wrap { position: relative; }
#accountBtn { padding: 8px 14px; font-size: 13px; }
#accountBtn .av { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: #070a1a; background: linear-gradient(135deg, #9fd8ff, #c79bff); }
.hidden { display: none !important; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 6px; border-radius: 14px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s var(--ease); background: var(--glass-2); }
.menu.open { opacity: 1; visibility: visible; transform: none; }
.menu a, .menu button { text-align: left; padding: 10px 12px; border-radius: 9px; border: 0; background: transparent; cursor: pointer; font-size: 13.5px; color: var(--ink-2); }
.menu a:hover, .menu button:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink); }
.modal-card { position: relative; }
.modal-card .close { position: absolute; right: 14px; top: 14px; }
.social { display: grid; gap: 8px; }
.social:empty, .social:empty + .or { display: none; }
.social a { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); font-weight: 500; font-size: 14px; transition: .2s; }
.social a:hover { background: rgba(255, 255, 255, 0.09); }
.social svg { width: 18px; height: 18px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.hint { margin: -6px 0 0; font-size: 12px !important; color: var(--muted); }
.auth-links { display: flex; flex-direction: column; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.auth-links a:hover { color: var(--ink); }
.auth-links b { color: var(--accent); font-weight: 500; }
#authForm[data-mode="signin"] .f-handle, #authForm[data-mode="signin"] .f-hint, #authForm[data-mode="signin"] .l-signin,
#authForm[data-mode="signup"] .l-signup, #authForm[data-mode="signup"] .l-forgot,
#authForm[data-mode="forgot"] .f-handle, #authForm[data-mode="forgot"] .f-password, #authForm[data-mode="forgot"] .f-hint, #authForm[data-mode="forgot"] .l-forgot, #authForm[data-mode="forgot"] .l-signup, #authForm[data-mode="forgot"] .social, #authForm[data-mode="forgot"] .or,
#authForm[data-mode="reset"] .f-handle, #authForm[data-mode="reset"] .f-email, #authForm[data-mode="reset"] .social, #authForm[data-mode="reset"] .or, #authForm[data-mode="reset"] .auth-links { display: none; }
.claim-as { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(143, 211, 255, 0.07); border: 1px solid rgba(143, 211, 255, 0.2); font-size: 13.5px; }
.account-card { gap: 16px; }
.acct-row { display: flex; gap: 8px; align-items: flex-end; }
.acct-row label { flex: 1; }
.acct-block { display: flex; flex-direction: column; gap: 10px; }
.acct-block .btn { align-self: flex-start; }
.verify-note { font-size: 13px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 179, 107, 0.08); border: 1px solid rgba(255, 179, 107, 0.3); color: var(--warm); }
.verify-note a { text-decoration: underline; }
.danger-zone summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.danger-zone[open] summary { color: #ff8a8a; margin-bottom: 8px; }
.danger-btn { background: rgba(255, 107, 129, 0.12); color: #ff8a8a; border-color: rgba(255, 107, 129, 0.35); }
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.reasons label { flex-direction: row; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); cursor: pointer; font-size: 13px; color: var(--ink-2); }
.reasons label:has(input:checked) { border-color: rgba(143, 211, 255, 0.6); color: var(--ink); background: rgba(143, 211, 255, 0.08); }
.discoverer a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(143, 211, 255, 0.5); text-underline-offset: 3px; }

/* ---------------------------------------------------------------- profile */
#profile { overflow-y: auto; }
.profile-wrap { width: min(1100px, calc(100vw - 32px)); margin: 96px auto 60px; display: flex; flex-direction: column; gap: 22px; }
.profile-head { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 24px 28px; border-radius: var(--radius); }
.avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 28px; font-weight: 700; color: #070a1a; background: linear-gradient(135deg, #e9f6ff, #9fd8ff 45%, #b99bff); box-shadow: 0 0 40px rgba(143, 211, 255, 0.35); }
.profile-head h2 { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 3vw, 34px); margin: 0; }
.profile-head p { margin: 4px 0 0; font-size: 13.5px; }
.pstats { display: flex; gap: 22px; }
.pstats div { text-align: center; }
.pstats b { display: block; font-family: var(--display); font-size: 24px; font-weight: 500; }
.pstats span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.pcard { padding: 20px; border-radius: 18px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; transition: transform .3s var(--ease), border-color .3s; }
.pcard:hover { transform: translateY(-3px); border-color: rgba(143, 211, 255, 0.4); }
.pcard .orb { width: 64px; height: 64px; }
.pcard h4 { margin: 4px 0 0; font-family: var(--display); font-weight: 500; font-size: 18px; }
.pcard .meta { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.pcard .rar { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.pempty { grid-column: 1 / -1; text-align: center; padding: 50px 20px; border-radius: 18px; color: var(--muted); }
@media (max-width: 900px) {
  .profile-head { grid-template-columns: auto 1fr; padding: 18px; }
  .pstats { grid-column: 1 / -1; justify-content: space-around; }
  .profile-wrap { margin-top: 76px; }
  .reasons { grid-template-columns: 1fr; }
  #accountBtn span.label { display: none; }
}

.legal-links { position: absolute; right: 22px; bottom: 64px; display: flex; gap: 16px; font-size: 12px; }
.legal-links a { color: var(--muted); transition: color .2s; }
.legal-links a:hover { color: var(--ink); }
.legal-note { margin: -4px 0 0 !important; font-size: 12px !important; color: var(--muted); text-align: center; }
.legal-note a { color: var(--ink-2); text-decoration: underline; }
#authForm[data-mode="reset"] .legal-note, #authForm[data-mode="forgot"] .legal-note { display: none; }
@media (max-width: 900px) { .legal-links { right: 50%; transform: translateX(50%); bottom: 58px; } }
