@import url("fonts.css");

:root {
  --lime: #ccff00;
  --red: #ff1f3d;
  --cyan: #00e5ff;
  --violet: #9d4dff;
  --ink: #07070b;
  --ink-2: #0e0e16;
  --card: #13131d;
  --card-2: #1b1b28;
  --line: #2a2a3c;
  --text: #f3f3ff;
  --muted: #b3b3cc;
  --dim: #7a7a96;
  --water: #1fa8ff;
  --bad: #ff5d6c;
  --px: 'Jersey 10', 'VT323', monospace;
  --body: 'VT323', 'Jersey 10', monospace;
  --wrap: 1200px;
  --c: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--body); font-size: 22px; line-height: 1.3; overflow-x: hidden; -webkit-font-smoothing: none; }
::selection { background: var(--red); color: #fff; }
img, canvas { display: block; }
.px, canvas.px { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--px); font-weight: 400; line-height: 0.92; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.ico { width: 1em; height: 1em; fill: currentColor; shape-rendering: crispEdges; flex: none; }
.notch { clip-path: polygon(0 var(--c), var(--c) var(--c), var(--c) 0, calc(100% - var(--c)) 0, calc(100% - var(--c)) var(--c), 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, var(--c) calc(100% - var(--c)), 0 calc(100% - var(--c))); }

.lime-bg { background: var(--lime); color: var(--ink); }
.red-bg { background: var(--red); color: var(--ink); }
.cyan-bg { background: var(--cyan); color: var(--ink); }
.violet-bg { background: var(--violet); color: var(--ink); }
.grid-bg { background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 32px 32px; }

.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 60; padding: 0 14px; pointer-events: none; }
.nav .bar { pointer-events: auto; position: relative; max-width: calc(var(--wrap) - 48px); margin: 0 auto; display: flex; align-items: center; gap: 12px; background: var(--ink); padding: 8px 10px 8px 12px; box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink), 6px 10px 0 0 rgba(0, 0, 0, 0.35), 10px 6px 0 0 rgba(0, 0, 0, 0.35); }
.progressbar { position: absolute; left: 0; bottom: -4px; height: 4px; width: 0; background: linear-gradient(90deg, var(--lime), var(--cyan), var(--red), var(--violet)); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--px); font-size: 28px; line-height: 1; color: var(--text); white-space: nowrap; }
.brand canvas { width: 36px; height: 36px; }
.brand b { color: var(--lime); font-weight: 400; }
.brand:hover canvas { animation: hop 0.5s steps(4); }
@keyframes hop { 50% { transform: translateY(-6px); } }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { position: relative; font-family: var(--px); font-size: 22px; color: var(--muted); padding: 6px 10px; transition: color 0.15s steps(2); }
.nav-links a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 3px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.25s steps(5); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:nth-child(4n+1):hover { color: var(--lime); }
.nav-links a:nth-child(4n+2):hover { color: var(--red); }
.nav-links a:nth-child(4n+3):hover { color: var(--cyan); }
.nav-links a:nth-child(4n+4):hover { color: var(--violet); }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 42px; background: var(--card-2); border: 0; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; width: 22px; height: 4px; background: var(--lime); transition: transform 0.25s steps(4), opacity 0.2s, top 0.25s steps(4); }
.menu-btn span:nth-child(1) { top: 12px; }
.menu-btn span:nth-child(2) { top: 19px; background: var(--red); }
.menu-btn span:nth-child(3) { top: 26px; background: var(--cyan); }
.menu-btn.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.menu-btn.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.btn { --b: var(--ink); --f: var(--lime); --s: rgba(0, 0, 0, 0.35); position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--px); font-size: 24px; line-height: 1; letter-spacing: 0.02em; padding: 14px 24px 12px; border: 0; cursor: pointer; background: var(--b); color: var(--f); box-shadow: 0 -4px 0 0 var(--b), 0 4px 0 0 var(--b), -4px 0 0 0 var(--b), 4px 0 0 0 var(--b), 4px 8px 0 0 var(--s), 8px 4px 0 0 var(--s); transition: transform 0.12s steps(2), box-shadow 0.12s steps(2); white-space: nowrap; margin: 4px; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-20deg); transition: left 0.5s ease; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 0 -4px 0 0 var(--b), 0 4px 0 0 var(--b), -4px 0 0 0 var(--b), 4px 0 0 0 var(--b), 6px 10px 0 0 var(--s), 10px 6px 0 0 var(--s); }
.btn:hover::after { left: 120%; }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 -4px 0 0 var(--b), 0 4px 0 0 var(--b), -4px 0 0 0 var(--b), 4px 0 0 0 var(--b); }
.btn .ico { width: 20px; height: 18px; transition: transform 0.2s steps(2); }
.btn:hover .ico.go { transform: translateX(4px); }
.btn.lime { --b: var(--lime); --f: var(--ink); }
.btn.red { --b: var(--red); --f: #fff; }
.btn.cyan { --b: var(--cyan); --f: var(--ink); }
.btn.violet { --b: var(--violet); --f: #fff; }
.btn.white { --b: #f3f3ff; --f: var(--ink); }
.btn.ghost { --b: var(--card-2); --f: var(--text); }
.btn.line { --b: transparent; --f: var(--ink); --s: transparent; box-shadow: inset 0 0 0 3px var(--ink); }
.btn.line:hover { box-shadow: inset 0 0 0 3px var(--ink), 4px 4px 0 0 var(--ink); }
.btn.small { font-size: 20px; padding: 10px 16px 8px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; filter: saturate(0.4); }

.tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--px); font-size: 18px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 12px 5px; background: var(--ink); color: var(--lime); }
.tag i { width: 8px; height: 8px; background: currentColor; animation: blink 1s steps(1) infinite; }
.tag.red { color: var(--red); }
.tag.cyan { color: var(--cyan); }
.tag.violet { color: var(--violet); }
.dark .tag { background: var(--card-2); }
@keyframes blink { 50% { opacity: 0; } }

.hero { position: relative; min-height: 100vh; padding: 118px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 20px; align-items: center; min-height: calc(100vh - 170px); }
.hero h1 { font-size: clamp(64px, 9vw, 132px); margin: 22px 0 22px; line-height: 0.86; }
.hero h1 span { display: block; }
.hero h1 .l1 { text-shadow: 5px 5px 0 var(--red); }
.hero h1 .l2 { text-shadow: 5px 5px 0 var(--violet); }
.hero h1 .l3 { text-shadow: 5px 5px 0 var(--cyan); }
.hero .lead { font-size: 25px; max-width: 540px; color: #1d2408; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 30px; margin-top: 40px; }
.stats b { display: block; font-family: var(--px); font-weight: 400; font-size: 44px; line-height: 1; }
.stats div:nth-child(1) b { color: var(--ink); text-shadow: 3px 3px 0 var(--red); }
.stats div:nth-child(2) b { color: var(--ink); text-shadow: 3px 3px 0 var(--cyan); }
.stats div:nth-child(3) b { color: var(--ink); text-shadow: 3px 3px 0 var(--violet); }
.stats div:nth-child(4) b { color: var(--ink); text-shadow: 3px 3px 0 #fff; }
.stats span { font-size: 20px; color: #3b4520; }
.stage { position: relative; height: min(76vh, 700px); min-height: 440px; margin-right: -60px; }
.stage canvas.gl { position: absolute; inset: 0; width: 100% !important; height: 100% !important; -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); }
.stage .fallback { display: none; }
.stage.no3d .fallback { display: grid; place-items: center; height: 100%; }
.stage.no3d .fallback canvas { width: 70%; max-width: 380px; aspect-ratio: 1; }
.hud { z-index: 2; position: absolute; left: 20px; bottom: 26px; display: flex; align-items: center; gap: 14px; background: var(--ink); color: var(--text); padding: 10px 16px 8px; font-family: var(--px); font-size: 22px; line-height: 1; box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink); }
.hud .dot { width: 12px; height: 12px; background: var(--cyan); animation: blink 1s steps(1) infinite; }
.hud b { color: var(--lime); font-weight: 400; }
.hud .bar { width: 110px; height: 10px; background: #26263a; }
.hud .bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--cyan) 0 8px, var(--water) 8px 10px); transition: width 0.6s steps(6); }

.marquee { overflow: hidden; }
.marquee .track { display: flex; width: max-content; animation: slide 40s linear infinite; }
.marquee.rev .track { animation-direction: reverse; animation-duration: 46s; }
.marquee span { font-family: var(--px); font-size: clamp(30px, 4vw, 46px); line-height: 1; padding: 16px 24px 12px; white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee span::after { content: ""; width: 14px; height: 14px; background: currentColor; transform: rotate(45deg); }
@keyframes slide { to { transform: translateX(-50%); } }

section.block { padding: 130px 0; position: relative; }
.head { max-width: 800px; margin-bottom: 56px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head h2 { font-size: clamp(54px, 7vw, 96px); margin: 20px 0 20px; }
.head p { color: var(--muted); font-size: 25px; }
.lime-bg .head p, .red-bg .head p, .cyan-bg .head p, .violet-bg .head p { color: rgba(0, 0, 0, 0.72); }
.hl-lime { color: var(--lime); }
.hl-red { color: var(--red); }
.hl-cyan { color: var(--cyan); }
.hl-violet { color: var(--violet); }
.sh-ink { color: #fff; text-shadow: 4px 4px 0 var(--ink); }

.card { --a: var(--lime); position: relative; background: var(--card); padding: 30px; transition: transform 0.2s steps(3); box-shadow: inset 0 0 0 3px var(--line); }
.card:hover { box-shadow: inset 0 0 0 3px var(--a), inset 0 0 40px -10px var(--a); }
.card h3 { font-size: 36px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 21px; }
.card.a-red { --a: var(--red); }
.card.a-cyan { --a: var(--cyan); }
.card.a-violet { --a: var(--violet); }
.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); }

.story .card { min-height: 340px; display: flex; flex-direction: column; overflow: hidden; }
.story .card .n { font-family: var(--px); font-size: 130px; line-height: 0.7; color: var(--a); opacity: 0.16; position: absolute; right: 16px; bottom: 12px; }
.story .card canvas { width: 104px; height: 104px; margin-bottom: 24px; box-shadow: 6px 6px 0 var(--a); transition: transform 0.2s steps(2); }
.story .card:hover canvas { transform: translate(-3px, -3px) rotate(-3deg); }
.story .card h3 { color: var(--a); }

.mine { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
ol.steps { padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.steps li { --a: var(--lime); list-style: none; display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center; padding: 18px; background: var(--card); box-shadow: inset 0 0 0 3px var(--line); transition: box-shadow 0.2s steps(2), transform 0.2s steps(2); }
.steps li:nth-child(2) { --a: var(--red); }
.steps li:nth-child(3) { --a: var(--cyan); }
.steps li:nth-child(4) { --a: var(--violet); }
.steps li.on { box-shadow: inset 0 0 0 3px var(--a), 6px 6px 0 var(--a); transform: translate(-3px, -3px); }
.steps li .i { width: 56px; height: 56px; background: var(--card-2); display: grid; place-items: center; font-family: var(--px); font-size: 38px; color: var(--a); }
.steps li.on .i { background: var(--a); color: var(--ink); }
.steps h3 { font-size: 32px; }
.steps p { color: var(--muted); font-size: 20px; }

.finder { position: sticky; top: 100px; background: #06060a; box-shadow: inset 0 0 0 3px var(--violet), 10px 10px 0 var(--violet); overflow: hidden; }
.finder .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 22px 12px; background: var(--violet); color: #fff; }
.finder .top b { font-family: var(--px); font-weight: 400; font-size: 26px; line-height: 1; display: flex; align-items: center; gap: 10px; }
.finder .top b i { width: 10px; height: 10px; background: var(--lime); animation: blink 0.8s steps(1) infinite; }
.finder .top span { font-family: var(--px); font-size: 24px; }
.finder .meta { display: grid; grid-template-columns: 1fr 1fr 1fr; border-bottom: 3px solid var(--line); }
.finder .meta div { padding: 12px 22px; border-right: 3px solid var(--line); }
.finder .meta div:last-child { border-right: 0; }
.finder .meta small { display: block; font-family: var(--px); font-size: 17px; letter-spacing: 0.06em; color: var(--dim); text-transform: uppercase; }
.finder .meta strong { font-family: var(--px); font-size: 28px; font-weight: 400; color: var(--cyan); line-height: 1.1; }
.hashes { font-family: var(--body); font-size: 22px; padding: 12px 22px; height: 290px; overflow: hidden; position: relative; }
.hashes::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(transparent, #06060a); }
.hashes div { display: flex; justify-content: space-between; gap: 16px; padding: 1px 0; color: #5d5d7a; white-space: nowrap; }
.hashes div span:first-child { color: #3d3d55; }
.hashes div.hit { color: var(--ink); background: var(--lime); margin: 3px -10px; padding: 3px 10px; animation: flash 0.3s steps(2) 3; }
.hashes div.hit span:first-child { color: var(--ink); }
@keyframes flash { 50% { background: var(--red); } }
.finder .act { padding: 20px 22px 24px; border-top: 3px solid var(--line); display: flex; align-items: center; gap: 18px; min-height: 100px; }
.finder .act .btn { min-width: 240px; }
.finder .act .btn .fill { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(0, 0, 0, 0.22); width: 0; }
.finder .act p { font-size: 21px; color: var(--muted); }
.finder .act p b { color: var(--lime); font-weight: 400; }

.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 70px; }
.rule { padding: 24px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px) top / 100% 3px no-repeat, repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px) bottom / 100% 3px no-repeat, repeating-linear-gradient(0deg, var(--line) 0 8px, transparent 8px 14px) left / 3px 100% no-repeat, repeating-linear-gradient(0deg, var(--line) 0 8px, transparent 8px 14px) right / 3px 100% no-repeat; }
.rule h3 { font-size: 30px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.rule h3::before { content: ""; width: 12px; height: 12px; background: var(--red); }
.rule:nth-child(2) h3::before { background: var(--cyan); }
.rule:nth-child(3) h3::before { background: var(--lime); }
.rule p { font-size: 20px; color: var(--muted); }

.jugs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.jug { background: rgba(0, 0, 0, 0.08); padding: 16px 8px 12px; text-align: center; transition: transform 0.2s steps(3), background 0.2s; }
.jug:hover { transform: translateY(-8px); background: rgba(0, 0, 0, 0.16); }
.jug svg { width: 100%; max-width: 64px; height: auto; margin: 0 auto 10px; display: block; overflow: visible; shape-rendering: crispEdges; }
.jug .n { font-family: var(--px); font-size: 18px; line-height: 1; letter-spacing: 0.05em; }
.jug .n .s { display: none; }
.jug .p { font-family: var(--px); font-size: 26px; line-height: 1.1; }
.jug .wave { animation: wave 3s steps(6) infinite; }
@keyframes wave { 50% { transform: translateX(-6px); } }
.chart { margin-top: 44px; background: var(--ink); color: var(--text); padding: 30px 30px 24px; box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.3); }
.chart svg { width: 100%; height: auto; display: block; }
.chart .legend { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 21px; }
.chart .legend b { color: var(--lime); font-family: var(--px); font-weight: 400; font-size: 30px; }
.chart .legend b.p { color: var(--red); }

.split { display: flex; height: 130px; gap: 8px; }
.split div { display: flex; align-items: flex-end; padding: 16px 20px 10px; font-family: var(--px); font-size: clamp(38px, 6vw, 80px); line-height: 1; color: var(--ink); transform-origin: left; transition: transform 1.1s steps(12); }
.split .a { flex: 65; background: var(--lime); }
.split .b { flex: 25; background: var(--red); color: #fff; }
.split .c { flex: 10; background: var(--cyan); font-size: clamp(26px, 3vw, 44px); }
.split:not(.in) div { transform: scaleX(0.02); }
.split-legend { display: grid; grid-template-columns: 65fr 25fr 10fr; gap: 20px; margin-top: 24px; }
.split-legend h3 { font-size: 32px; margin-bottom: 6px; }
.split-legend div:nth-child(1) h3 { color: var(--lime); }
.split-legend div:nth-child(2) h3 { color: var(--red); }
.split-legend div:nth-child(3) h3 { color: var(--cyan); }
.split-legend p { color: var(--muted); font-size: 20px; }

.tok { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tok .card { min-height: 250px; display: flex; flex-direction: column; }
.tok .big { font-family: var(--px); font-size: 66px; line-height: 0.95; margin: 12px 0 14px; color: var(--a); }
.tok .big small { font-size: 32px; color: var(--muted); }
.tok .card.inv { background: var(--violet); box-shadow: none; color: #fff; }
.tok .card.inv p { color: rgba(255, 255, 255, 0.85); }
.tok .card.inv .big { color: #fff; text-shadow: 4px 4px 0 var(--ink); }
.tok .card .foot { margin-top: auto; padding-top: 14px; }
.decay { height: 12px; background: #26263a; }
.decay i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--red), var(--violet) 50%, var(--lime)); transform-origin: left; animation: decay 5s steps(20) infinite; }
@keyframes decay { from { transform: scaleX(1); } to { transform: scaleX(0.02); } }
.decay-lbl { display: flex; justify-content: space-between; font-family: var(--px); font-size: 17px; color: var(--dim); margin-top: 6px; }

.stakes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stake { --a: var(--lime); background: var(--ink); color: var(--text); padding: 30px; text-align: center; position: relative; overflow: hidden; transition: transform 0.2s steps(3); box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.3); }
.stake:nth-child(2) { --a: var(--red); }
.stake:nth-child(3) { --a: var(--violet); }
.stake:hover { transform: translate(-4px, -8px); }
.stake .d { font-family: var(--px); font-size: 34px; line-height: 1; color: var(--muted); }
.stake .glass { width: 100px; height: 132px; margin: 22px auto; border: 4px solid rgba(255, 255, 255, 0.6); border-top: 0; position: relative; overflow: hidden; }
.stake .glass i { position: absolute; left: 0; right: 0; bottom: 0; background: repeating-linear-gradient(0deg, var(--cyan) 0 8px, var(--water) 8px 12px); animation: rise 3.4s steps(10) infinite alternate; }
.stake .glass i::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: #b8f6ff; }
@keyframes rise { from { height: var(--lo); } to { height: var(--hi); } }
.stake .m { font-family: var(--px); font-size: 110px; line-height: 0.8; color: var(--a); }
.stake p { color: var(--muted); font-size: 21px; margin-top: 10px; }
.stake .ribbon { position: absolute; top: 18px; right: 18px; background: var(--lime); color: var(--ink); font-family: var(--px); font-size: 18px; line-height: 1; padding: 6px 10px 4px; animation: blink 1.4s steps(1) infinite; }
.note { text-align: center; font-size: 21px; margin-top: 30px; color: rgba(0, 0, 0, 0.7); }

.coll { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: stretch; }
.viewer { position: relative; min-height: 560px; overflow: hidden; background: radial-gradient(60% 50% at 50% 42%, rgba(157, 77, 255, 0.35), transparent 70%), radial-gradient(40% 30% at 50% 88%, rgba(0, 229, 255, 0.25), transparent 70%), #08080f; box-shadow: inset 0 0 0 3px var(--violet), 10px 10px 0 var(--violet); }
.viewer canvas.gl { position: absolute; inset: 0; width: 100% !important; height: 100% !important; cursor: grab; }
.viewer canvas.gl:active { cursor: grabbing; }
.viewer .lbl { position: absolute; left: 18px; top: 16px; z-index: 2; }
.viewer .hint { position: absolute; right: 20px; top: 20px; font-size: 19px; color: var(--dim); z-index: 2; }
.viewer .traits { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.viewer .traits span { font-size: 18px; background: rgba(7, 7, 11, 0.8); padding: 3px 9px; color: var(--muted); box-shadow: inset 0 0 0 2px var(--line); }
.viewer .traits b { color: var(--cyan); font-weight: 400; }
.viewer .fallback { display: none; }
.viewer.no3d .fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.viewer .fallback canvas { width: 60%; aspect-ratio: 1; }
.side { display: flex; flex-direction: column; gap: 18px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery button { padding: 0; border: 0; overflow: hidden; background: var(--card); cursor: pointer; transition: transform 0.15s steps(2), box-shadow 0.15s steps(2); animation: pop 0.4s steps(4) both; box-shadow: 0 0 0 3px var(--line); }
.gallery button:hover { transform: translate(-3px, -3px); box-shadow: 0 0 0 3px var(--cyan), 5px 5px 0 3px var(--cyan); }
.gallery button.sel { box-shadow: 0 0 0 3px var(--lime), 5px 5px 0 3px var(--red); }
.gallery canvas { width: 100%; height: auto; aspect-ratio: 1; }
@keyframes pop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }
.counts { display: flex; flex-wrap: wrap; gap: 8px; }
.counts span { font-size: 20px; color: var(--muted); background: var(--card); padding: 4px 12px; box-shadow: inset 0 0 0 2px var(--line); }
.counts span:nth-child(4n+1) b { color: var(--lime); }
.counts span:nth-child(4n+2) b { color: var(--red); }
.counts span:nth-child(4n+3) b { color: var(--cyan); }
.counts span:nth-child(4n+4) b { color: var(--violet); }
.counts b { font-family: var(--px); font-weight: 400; font-size: 24px; }
.side .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }

.cta-band { position: relative; overflow: hidden; padding: 60px; display: grid; grid-template-columns: 220px 1fr auto; gap: 44px; align-items: center; background: linear-gradient(120deg, var(--red), var(--violet)); color: #fff; box-shadow: 12px 12px 0 var(--cyan); }
.cta-band canvas { width: 220px; height: 220px; box-shadow: 8px 8px 0 var(--ink); animation: bob 2.4s steps(6) infinite; }
.cta-band h2 { font-size: clamp(52px, 6vw, 84px); margin: 16px 0 14px; text-shadow: 4px 4px 0 var(--ink); }
.cta-band p { font-size: 23px; max-width: 520px; }
.cta-band .perk { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--px); font-size: 26px; line-height: 1; background: var(--lime); color: var(--ink); padding: 10px 14px 7px; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.faq { max-width: 880px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { --a: var(--lime); background: var(--card); padding: 0 24px; box-shadow: inset 0 0 0 3px var(--line); transition: box-shadow 0.15s steps(2); }
.faq details:nth-child(4n+2) { --a: var(--red); }
.faq details:nth-child(4n+3) { --a: var(--cyan); }
.faq details:nth-child(4n+4) { --a: var(--violet); }
.faq details[open], .faq details:hover { box-shadow: inset 0 0 0 3px var(--a), 6px 6px 0 var(--a); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0 16px; font-family: var(--px); font-size: 30px; line-height: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; background: var(--card-2); color: var(--a); display: grid; place-items: center; font-size: 32px; transition: transform 0.2s steps(3); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--a); color: var(--ink); }
.faq details p { color: var(--muted); padding: 0 0 22px; font-size: 22px; }

footer { padding: 60px 0 40px; border-top: 3px solid var(--line); }
footer .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--px); font-size: 24px; }
footer .links a { color: var(--muted); transition: color 0.15s steps(2); }
footer .links a:nth-child(4n+1):hover { color: var(--lime); }
footer .links a:nth-child(4n+2):hover { color: var(--red); }
footer .links a:nth-child(4n+3):hover { color: var(--cyan); }
footer .links a:nth-child(4n+4):hover { color: var(--violet); }
.chain { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-family: var(--px); font-size: 20px; line-height: 1; color: var(--ink); background: var(--lime); padding: 8px 12px 6px; }
.chain i { width: 8px; height: 8px; background: var(--ink); }
.legal { margin-top: 36px; padding-top: 20px; border-top: 3px solid var(--line); color: var(--dim); font-size: 19px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.big-word { font-family: var(--px); font-size: clamp(56px, 15.5vw, 212px); line-height: 0.8; margin-top: 50px; white-space: nowrap; overflow: hidden; user-select: none; background: linear-gradient(90deg, var(--lime), var(--cyan), var(--red), var(--violet), var(--lime)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shift 8s linear infinite; opacity: 0.9; }
@keyframes shift { to { background-position: 200% 0; } }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s steps(6), transform 0.6s steps(6); }
.reveal.in { opacity: 1; transform: none; }

.wl { padding: 118px 0 90px; min-height: 100vh; }
.wl-top { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.wl-top h1 { font-size: clamp(70px, 10vw, 130px); margin: 18px 0 10px; text-shadow: 5px 5px 0 var(--red); }
.wl-top p { font-size: 25px; color: #2a3212; }
.progress { list-style: none; margin: 0 auto 36px; padding: 0; display: flex; justify-content: center; gap: 8px; max-width: 820px; }
.progress li { --a: var(--lime); flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; font-family: var(--px); font-size: 20px; line-height: 1; text-transform: uppercase; color: #4a5424; }
.progress li:nth-child(2) { --a: var(--red); }
.progress li:nth-child(3) { --a: var(--cyan); }
.progress li:nth-child(4) { --a: var(--violet); }
.progress li:nth-child(5) { --a: var(--red); }
.progress li:nth-child(6) { --a: var(--cyan); }
.progress li::before { content: ""; position: absolute; top: 20px; left: calc(-50% + 26px); right: calc(50% + 26px); height: 4px; background: rgba(0, 0, 0, 0.15); }
.progress li:first-child::before { display: none; }
.progress li i { font-style: normal; width: 44px; height: 44px; display: grid; place-items: center; background: rgba(0, 0, 0, 0.1); font-family: var(--px); font-size: 30px; line-height: 1; color: #4a5424; transition: all 0.25s steps(3); }
.progress li.now { color: var(--ink); }
.progress li.now i { background: var(--ink); color: var(--a); transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--a); }
.progress li.done i { background: var(--ink); color: var(--a); }
.progress li.done { color: var(--ink); }
.progress li.done::before, .progress li.now::before { background: var(--ink); }
.wl-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 34px; align-items: start; }
.guide { position: sticky; top: 100px; }
.wl-stage { position: relative; height: 470px; }
.wl-stage canvas.gl { position: absolute; inset: 0; width: 100% !important; height: 100% !important; -webkit-mask-image: radial-gradient(ellipse 70% 68% at 50% 50%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 70% 68% at 50% 50%, #000 60%, transparent 100%); }
.wl-stage .fallback { display: none; }
.wl-stage.no3d .fallback { display: grid; place-items: center; height: 100%; }
.wl-stage.no3d .fallback canvas { width: 60%; max-width: 300px; aspect-ratio: 1; }
.bubble { position: relative; margin-top: 4px; background: var(--ink); color: var(--lime); font-family: var(--px); font-size: 30px; line-height: 1.05; padding: 18px 22px 14px; box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink), 8px 12px 0 0 var(--red), 12px 8px 0 0 var(--red); }
.bubble::before { content: ""; position: absolute; top: -16px; left: 56px; width: 16px; height: 16px; background: var(--ink); box-shadow: 8px -8px 0 0 var(--ink); }
.bubble.bad { color: #ff8f8f; }
.bubble.pop { animation: bubble 0.3s steps(3); }
@keyframes bubble { 0% { transform: translateY(6px); opacity: 0.3; } 100% { transform: none; opacity: 1; } }
.panel { min-height: 440px; }
.wstep { background: var(--ink); color: var(--text); padding: 40px; box-shadow: 12px 12px 0 var(--violet); }
.wstep.enter { animation: enter 0.35s steps(5) both; }
@keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.wstep .k { font-family: var(--px); font-size: 22px; line-height: 1; color: var(--red); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.wstep h2 { font-size: clamp(44px, 5vw, 62px); margin-bottom: 12px; color: var(--lime); }
.wstep > p { color: var(--muted); font-size: 24px; }
.wstep b { color: var(--cyan); font-weight: 400; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; align-items: center; }
.ask { margin-top: 28px; padding-top: 24px; border-top: 3px dashed var(--line); }
.ask .q { font-family: var(--px); font-size: 36px; line-height: 1; }
.ask .actions { margin-top: 14px; }
.confirm:not(.ready) { opacity: 0.6; }
.msg { margin-top: 18px; color: var(--bad); font-size: 22px; }
.msg:empty { display: none; }
.field { display: block; margin-top: 22px; }
.field span { display: block; font-family: var(--px); font-size: 24px; line-height: 1; margin-bottom: 10px; color: var(--text); }
.field small { display: block; margin-top: 8px; color: var(--dim); font-size: 19px; }
.field input { width: 100%; font: 24px var(--body); color: var(--text); background: var(--card); border: 0; box-shadow: inset 0 0 0 3px var(--line); padding: 14px 16px 12px; outline: none; transition: box-shadow 0.15s steps(2); }
.field input:focus { box-shadow: inset 0 0 0 3px var(--cyan), 5px 5px 0 var(--cyan); }
.field input::placeholder { color: var(--dim); }
.at { display: flex; }
.at b { display: grid; place-items: center; padding: 0 16px; background: var(--card-2); color: var(--red); font-family: var(--px); font-size: 28px; font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.safe { margin-top: 18px; font-size: 20px; color: var(--muted); padding: 10px 14px; background: #101018; box-shadow: inset 0 0 0 2px var(--line); }
.work { margin-top: 22px; }
.wbar { height: 16px; background: var(--card-2); }
.wbar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--lime) 0 10px, var(--cyan) 10px 20px, var(--red) 20px 30px); transition: width 0.3s steps(4); }
.work span { display: block; margin-top: 10px; font-family: var(--px); font-size: 22px; color: var(--lime); }
.done { text-align: center; }
.done .actions { justify-content: center; }
.done .bell { width: 104px; height: 104px; margin: 0 auto 18px; animation: ring 1.6s steps(8) infinite; transform-origin: 50% 10%; }
@keyframes ring { 0%, 50%, 100% { transform: rotate(0); } 10% { transform: rotate(14deg); } 20% { transform: rotate(-12deg); } 30% { transform: rotate(8deg); } 40% { transform: rotate(-5deg); } }
.notify { display: flex; gap: 14px; align-items: center; text-align: left; margin: 26px auto 0; max-width: 520px; background: var(--card); padding: 16px 20px; box-shadow: inset 0 0 0 3px var(--lime); }
.notify .ring { font-size: 32px; line-height: 1; display: inline-block; animation: ring 1.6s steps(8) infinite; transform-origin: 50% 10%; }
.notify p { color: var(--muted); font-size: 21px; }
.link { color: var(--muted); font-size: 21px; text-decoration: underline; }

@media (max-width: 1080px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .stage { margin-right: 0; height: 520px; }
  .mine, .coll { grid-template-columns: 1fr; }
  .finder { position: relative; top: 0; }
  .jugs { grid-template-columns: repeat(4, 1fr); }
  .cta-band { grid-template-columns: 160px 1fr; padding: 44px; }
  .cta-band canvas { width: 160px; height: 160px; }
  .cta-band .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 900px) {
  .wl-grid { grid-template-columns: 1fr; gap: 18px; }
  .guide { position: static; }
  .wl-stage { height: 340px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; background: var(--ink); padding: 12px; box-shadow: 0 0 0 4px var(--ink), 8px 8px 0 4px var(--red); }
  .nav-links.open { display: flex; animation: enter 0.25s steps(4); }
  .nav-links a { padding: 10px 12px; font-size: 28px; }
  .menu-btn { display: block; }
  .nav .bar > .btn { display: none; }
  .g3, .tok, .stakes, .rules { grid-template-columns: 1fr; }
  .split-legend { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, auto); gap: 20px 40px; }
}
@media (max-width: 560px) {
  body { font-size: 21px; }
  .wrap { padding: 0 18px; }
  .hero { padding-top: 100px; }
  .hero .lead { font-size: 22px; }
  .stage { height: 400px; min-height: 0; margin: 0 -18px; }
  .hud { left: 18px; bottom: 16px; font-size: 19px; }
  .hud .bar { width: 60px; }
  section.block { padding: 90px 0; }
  .card { padding: 24px; }
  .gallery { gap: 10px; }
  .jug .n .w { display: none; }
  .jug .n .s { display: inline; }
  .viewer { min-height: 420px; }
  .viewer .traits { display: none; }
  .cta-band { grid-template-columns: 1fr; padding: 32px 24px; }
  .cta-band canvas { width: 130px; height: 130px; }
  .split { height: 96px; gap: 5px; }
  .split div { padding: 10px; }
  .finder .meta div { padding: 10px 12px; }
  .hashes { font-size: 18px; padding: 10px 14px; }
  .finder .act { flex-direction: column; align-items: stretch; }
  .finder .act .btn { min-width: 0; }
  .wl { padding-top: 96px; }
  .progress span { display: none; }
  .progress li i { width: 36px; height: 36px; font-size: 24px; }
  .progress li::before { top: 16px; left: calc(-50% + 20px); right: calc(50% + 20px); }
  .wstep { padding: 26px 20px; }
  .wl-stage { height: 290px; margin: 0 -18px; }
  .bubble { font-size: 24px; }
  .actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.lost canvas { width: 180px; height: 180px; margin: 0 auto 26px; box-shadow: 8px 8px 0 var(--ink); animation: bob 2.4s steps(6) infinite; }
.lost h1 { font-size: clamp(60px, 9vw, 120px); margin: 18px 0 12px; text-shadow: 5px 5px 0 var(--red); }
.lost p { font-size: 25px; margin-bottom: 28px; }

.btn[hidden] { display: none; }
.hint { margin-top: 14px; font-size: 20px; color: var(--dim); display: flex; align-items: center; gap: 10px; }
.hint::before { content: ""; width: 10px; height: 10px; background: var(--cyan); animation: blink 1s steps(1) infinite; }
.hint[hidden] { display: none; }
.after.enter { animation: enter 0.35s steps(5) both; }
