/* Ringball — THE RUN. Helius sky, white snow, ink type. Pally + Ubuntu Sans Mono (self-hosted). */
@font-face { font-family: Pally; src: url(../assets/fonts/pally-400.woff2) format('woff2'); font-weight: 400; font-display: block; }
@font-face { font-family: Pally; src: url(../assets/fonts/pally-500.woff2) format('woff2'); font-weight: 500; font-display: block; }
@font-face { font-family: Pally; src: url(../assets/fonts/pally-700.woff2) format('woff2'); font-weight: 700; font-display: block; }
@font-face { font-family: 'Ubuntu Sans Mono'; src: url(../assets/fonts/ubuntu-sans-mono.woff2) format('woff2'); font-weight: 400 700; font-display: block; }

:root {
  --h1: #E35930; --h2: #E84125; --hf: #E64C2A; --hl: #FF664D;
  --ink: #0b0b0d; --ink2: #3d3f46; --mute: #7a7d86; --snow: #ffffff; --frost: #f3f6fa; --ice: #dfe8f3; --shade: #a3badf;
  --ok: #1fb46c; --bad: #e5484d;
  --sky: linear-gradient(180deg, #E84125 0%, #EB5236 38%, #F07A5A 70%, #F3A083 100%);
  --r: 18px; --r2: 14px;
  --sh: 0 1px 0 rgba(255,255,255,.7) inset, 0 18px 40px -18px rgba(40, 30, 60, .35), 0 4px 14px -6px rgba(40, 30, 60, .18);
  --mono: 'Ubuntu Sans Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { background: #E84125; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Pally, system-ui, sans-serif; color: var(--ink); background: var(--sky) fixed; min-height: 100vh; overflow-x: clip; }
html.fonts-wait body > *:not(#world):not(.sky) { visibility: hidden; }
a { color: inherit; }
button { font: inherit; }
::selection { background: #E84125; color: #fff; }

/* the world */
.sky { position: fixed; inset: 0; background: var(--sky); z-index: 0; }
#world { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; opacity: 0; transition: opacity .8s ease; }
#world.on { opacity: 1; }
main, .top, .dock { position: relative; z-index: 2; }

/* header */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 22px; padding: 18px clamp(16px, 3vw, 36px); pointer-events: none; }
.top > * { pointer-events: auto; }
.lock { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; font-weight: 700; font-size: 27px; letter-spacing: -.035em; line-height: 1; }
.lock svg { width: 30px; height: 30px; }
.top nav { display: flex; gap: 4px; margin-left: 8px; }
.top nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: 15.5px; padding: 9px 13px; border-radius: 11px; opacity: .92; }
.top nav a:hover { background: rgba(255,255,255,.14); opacity: 1; }
.top .sp { flex: 1; }
.top.scrolled .lock, .top.scrolled nav a { color: var(--ink); }
.top.scrolled { background: rgba(255,255,255,.96); box-shadow: 0 10px 30px -20px rgba(30,20,40,.4); }
.top.scrolled nav a:hover { background: var(--frost); }
.top.scrolled .lock .mk { color: #E84125 !important; }
.cachip { display: none; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13.5px; color: #fff; background: rgba(0,0,0,.16); border: 0; border-radius: 11px; padding: 9px 12px; cursor: pointer; }
.cachip.on { display: inline-flex; }
.top.scrolled .cachip { color: var(--ink); background: var(--frost); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none; font-weight: 700; font-size: 16.5px; letter-spacing: -.01em;
  padding: 15px 22px; border-radius: 14px; color: #fff; background: linear-gradient(180deg, #ef5a3b, #E84125); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 24px -10px rgba(160, 30, 10, .7); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 14px 28px -10px rgba(160, 30, 10, .75); }
.btn:active { transform: translateY(1px); }
.btn.snow { background: #fff; color: var(--ink); box-shadow: 0 1px 0 #fff inset, 0 10px 24px -12px rgba(60, 20, 10, .45); }
.btn.ghost { background: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
.btn.ghost:hover { background: rgba(255,255,255,.22); }
.btn.ink { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); }
.btn.small { padding: 10px 14px; font-size: 15px; border-radius: 12px; }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }
.wbtn img { width: 20px; height: 20px; border-radius: 5px; }

/* sections */
main { display: block; }
section { position: relative; min-height: 100vh; padding: 0 clamp(16px, 4vw, 56px); }
.hero { min-height: 100vh; display: grid; place-items: start center; text-align: center; padding-top: clamp(104px, 15vh, 150px); }
.hero .built { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 500; font-size: 16px; opacity: .95; margin-bottom: 22px; }
.hero .built img { height: 19px; filter: brightness(0) invert(1); }
.hero h1 { margin: 0; color: #fff; font-weight: 700; font-size: clamp(46px, 7.4vw, 112px); line-height: .98; letter-spacing: -.045em; text-wrap: balance; text-shadow: 0 2px 30px rgba(140, 20, 0, .18); }
.hero p.sub { color: #fff; text-shadow: 0 1px 16px rgba(150, 30, 10, .45); font-weight: 500; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; max-width: 640px; margin: 22px auto 0; opacity: .96; text-wrap: pretty; }
.hero .cta { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.throwhint { position: absolute; left: clamp(16px, 3vw, 36px); bottom: 26px; display: flex; align-items: center; gap: 10px; color: var(--ink2); font-weight: 500; font-size: 15px; background: rgba(255,255,255,.86); padding: 10px 14px; border-radius: 12px; box-shadow: var(--sh); }
.throwhint b { font-weight: 700; color: var(--ink); }
.throwhint .dot { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 40%, #dfe8f3 75%, #b9cde6 100%); box-shadow: 0 1px 3px rgba(40,50,90,.35); }

/* stations: cards that stand on the slope */
.st { display: flex; align-items: center; min-height: 100vh; padding-top: 90px; padding-bottom: 60px; }
.st.r { justify-content: flex-end; }
.card { width: min(520px, 100%); background: var(--snow); border-radius: var(--r); box-shadow: var(--sh); padding: 26px 26px 24px; }
.card .no { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 16px; background: radial-gradient(circle at 34% 30%, #ff7a5c, #E84125 70%); box-shadow: 0 6px 14px -6px rgba(200, 40, 10, .7); margin-bottom: 14px; }
.card h2 { margin: 0 0 10px; font-weight: 700; font-size: clamp(30px, 3vw, 40px); line-height: 1.02; letter-spacing: -.035em; }
.card p { margin: 0; color: var(--ink2); font-size: 17px; line-height: 1.5; }
.card p + p { margin-top: 10px; }
.card .ui { margin-top: 20px; }

/* flow row (fees) */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; }
.flow .f { background: var(--frost); border-radius: 12px; padding: 12px 10px; text-align: center; font-weight: 500; font-size: 14px; color: var(--ink2); min-height: 92px; display: grid; place-items: center; gap: 6px; }
.flow .f img { height: 26px; }
.flow .f b { display: block; color: var(--ink); font-weight: 700; font-size: 15px; }
.flow .ar { color: var(--hf); font-weight: 700; }
.ballico { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff 0 38%, #e6eef7 70%, #b9cde6 100%); box-shadow: 0 2px 6px rgba(40,50,90,.3); }

/* truth table (seal) */
.tt { border-radius: 12px; overflow: hidden; background: var(--frost); }
.tt .row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; font-size: 15.5px; }
.tt .row + .row { border-top: 1px solid #e6ecf3; }
.tt .k { color: var(--ink2); font-weight: 500; }
.tt .v { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.tt .v.pub { color: var(--ink); }
.tt .v.seal { font-family: var(--mono); font-weight: 500; color: #fff; background: var(--ink); padding: 5px 9px; border-radius: 8px; font-size: 14px; letter-spacing: .02em; }
.tt .v.unk { color: var(--hf); }
.tt .cap { font-size: 13px; color: var(--mute); padding: 10px 14px 12px; }

/* hits: public bot vs ringball */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vs .b { border-radius: 12px; padding: 14px; background: var(--frost); }
.vs .b.dark { background: var(--ink); color: #fff; }
.vs .b h4 { margin: 0 0 8px; font-size: 14.5px; font-weight: 500; color: var(--mute); }
.vs .b.dark h4 { color: rgba(255,255,255,.6); }
.vs .big { font-weight: 700; font-size: 30px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vs .b.dark .big { font-family: var(--mono); font-weight: 500; font-size: 26px; letter-spacing: .02em; }
.vs .lines { margin-top: 10px; display: grid; gap: 5px; font-size: 13px; color: var(--ink2); font-family: var(--mono); }
.vs .b.dark .lines { color: rgba(255,255,255,.72); }
.frontrun { margin-top: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.frontrun .out { font-size: 15px; color: var(--ink2); min-height: 22px; }

/* hit receipt (burn) */
.receipt { border-radius: 12px; background: var(--frost); padding: 14px 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.receipt .fire { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; box-shadow: 0 2px 8px rgba(40,50,90,.12); }
.receipt .t { font-weight: 700; font-size: 16px; }
.receipt .s { color: var(--mute); font-size: 14px; margin-top: 2px; font-family: var(--mono); }
.receipt .n { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 18px; text-align: right; }
.receipt .n small { display: block; color: var(--mute); font-weight: 500; font-size: 12.5px; }

/* modes */
.modes { min-height: 100vh; display: grid; align-content: center; gap: 22px; padding-top: 90px; padding-bottom: 60px; }
.modes .head { text-align: center; color: #fff; }
.modes .head h2 { margin: 0; font-weight: 700; font-size: clamp(36px, 4.6vw, 64px); letter-spacing: -.04em; line-height: 1; }
.modes .head p { margin: 12px auto 0; max-width: 560px; font-size: 18px; line-height: 1.45; font-weight: 500; opacity: .95; }
.mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1120px; margin: 0 auto; width: 100%; }
.mode { background: #fff; border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; display: flex; flex-direction: column; }
.mode .art { height: 170px; position: relative; overflow: hidden; background: linear-gradient(180deg, #f6f9fc, #e8eff7); }
.mode .body { padding: 18px 20px 20px; }
.mode h3 { margin: 0 0 8px; font-size: 25px; font-weight: 700; letter-spacing: -.03em; }
.mode p { margin: 0; color: var(--ink2); font-size: 16px; line-height: 1.45; }
.mode .gate { margin-top: 10px; font-size: 14px; color: var(--mute); }
/* mode arts (CSS) */
.art .ground { position: absolute; left: -10%; right: -10%; bottom: -40px; height: 90px; border-radius: 50%; background: #fff; box-shadow: 0 -10px 30px rgba(163,186,223,.35) inset; }
.art .sb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #fff 0 34%, #e9f0f8 66%, #b9cde6 100%); box-shadow: 0 8px 16px -8px rgba(40,50,90,.45); }
.a-snow .sb { width: 58px; height: 58px; left: 12%; bottom: 34px; animation: roll 4.2s cubic-bezier(.5,0,.4,1) infinite; }
.a-snow .hit { position: absolute; bottom: 70px; width: 8px; height: 30px; border-radius: 3px; background: var(--ok); opacity: 0; animation: hit 4.2s infinite; }
@keyframes roll { 0% { transform: translateX(0) rotate(0); } 50% { transform: translateX(170px) rotate(300deg); } 100% { transform: translateX(0) rotate(0); } }
@keyframes hit { 0%, 30% { opacity: 0; transform: translateY(10px) scaleY(.2); } 38% { opacity: 1; transform: none; } 70% { opacity: 1; } 80%, 100% { opacity: 0; } }
.a-ice .chart { position: absolute; left: 0; right: 0; top: 32px; height: 70px; }
.a-ice .water { position: absolute; left: 0; right: 0; top: 96px; bottom: 0; background: linear-gradient(180deg, rgba(163,186,223,.55), rgba(163,186,223,.15)); }
.a-ice .berg { position: absolute; left: 50%; top: 82px; width: 120px; height: 86px; transform: translateX(-50%); clip-path: polygon(38% 0, 62% 0, 74% 16%, 100% 62%, 84% 100%, 16% 100%, 0 58%, 26% 16%); background: linear-gradient(180deg, #fff 0 17%, #dbe6f2 17% 100%); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateX(-50%) translateY(5px); } }
.a-frost .core { position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #fff 0 30%, #e9f0f8 60%, #b9cde6 100%); box-shadow: 0 10px 22px -10px rgba(40,50,90,.5); }
.a-frost .hsol { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 0 24px 6px rgba(232,65,37,.35); }
.a-frost .hsol img { width: 100%; height: 100%; display: block; }
.a-frost .tick { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--hf); left: 50%; top: 50%; animation: orbit 3.6s linear infinite; }
@keyframes orbit { from { transform: rotate(0) translateX(74px); } to { transform: rotate(360deg) translateX(74px); } }

/* biggest snowball */
.mainc { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; background: var(--frost); border-radius: 12px; padding: 14px; }
.mainc .lg { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px #fff, 0 6px 14px -6px rgba(40,50,90,.4); }
.mainc .lg img { width: 100%; height: 100%; object-fit: cover; }
.mainc .nm { font-weight: 700; font-size: 18px; }
.mainc .st2 { color: var(--mute); font-size: 14.5px; margin-top: 3px; }
.mainc .ca { margin-top: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mainc .ca code { font-family: var(--mono); font-size: 13px; background: #fff; border-radius: 8px; padding: 6px 8px; word-break: break-all; }
.lnks { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.lnk { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 500; font-size: 14.5px; padding: 8px 11px; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(40,50,90,.1); }
.lnk img { width: 18px; height: 18px; border-radius: 4px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stats div { background: #fff; border-radius: 10px; padding: 10px; }
.stats small { display: block; color: var(--mute); font-size: 12.5px; }
.stats b { font-size: 17px; font-variant-numeric: tabular-nums; }

/* board */
.board { min-height: 100vh; padding-top: 110px; padding-bottom: 70px; }
.board .head { color: #fff; max-width: 1120px; margin: 0 auto 20px; display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.board .head h2 { margin: 0; font-weight: 700; font-size: clamp(34px, 4vw, 56px); letter-spacing: -.04em; line-height: 1; }
.board .head p { margin: 0; font-weight: 500; font-size: 17px; opacity: .95; max-width: 420px; }
.coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; max-width: 1120px; margin: 0 auto; }
.coin { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 16px; display: grid; gap: 12px; cursor: pointer; border: 0; text-align: left; color: var(--ink); }
.coin .tp { display: flex; gap: 12px; align-items: center; }
.coin .im { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; flex: none; background: radial-gradient(circle at 34% 28%, #fff 0 34%, #e9f0f8 66%, #b9cde6 100%); box-shadow: 0 0 0 3px #fff, 0 0 0 5px #eef3f9; }
.coin .im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coin .nm { font-weight: 700; font-size: 17px; line-height: 1.15; }
.coin .tk { color: var(--mute); font-size: 14px; }
.coin .state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink2); }
.coin .state i { width: 8px; height: 8px; border-radius: 50%; background: var(--shade); }
.coin .state.rolling i { background: var(--ok); }
.coin .state.iceberg i { background: #5b8fd6; }
.coin .state.frozen i { background: #9ac0ea; }
.coin .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.coin .row3 div { background: var(--frost); border-radius: 10px; padding: 8px; }
.coin .row3 small { display: block; color: var(--mute); font-size: 11.5px; }
.coin .row3 b { font-size: 15px; font-variant-numeric: tabular-nums; }
.coin.main { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--hf), var(--sh); }
.coin.open { cursor: default; place-items: center; text-align: center; min-height: 172px; background: rgba(255,255,255,.62); box-shadow: none; border: 2px dashed rgba(255,255,255,.95); color: var(--ink2); }
.coin.open b { color: var(--ink); font-size: 16px; }
.coin.open a { margin-top: 6px; }

/* launch studio */
.studio { min-height: 100vh; padding-top: 110px; padding-bottom: 80px; }
.studio .head { color: #fff; text-align: center; margin: 0 auto 26px; max-width: 760px; }
.studio .head h2 { margin: 0; font-weight: 700; font-size: clamp(38px, 5vw, 72px); letter-spacing: -.045em; line-height: 1; }
.studio .head p { margin: 14px auto 0; max-width: 600px; font-size: 18px; line-height: 1.45; font-weight: 500; opacity: .96; }
.sgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 18px; max-width: 1120px; margin: 0 auto; align-items: start; }
.panel { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 22px; }
.panel h3 { margin: 0 0 14px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.fields { display: grid; gap: 12px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: 14px; font-weight: 500; color: var(--ink2); }
.fld input, .fld textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--frost); border: 2px solid transparent; border-radius: 12px; padding: 12px 13px; outline: none; transition: border-color .15s, background .15s; }
.fld textarea { min-height: 84px; resize: vertical; }
.fld input:focus, .fld textarea:focus { border-color: #f2a38e; background: #fff; }
.fld.err input, .fld.err textarea, .drop.err { border-color: var(--bad); }
.fld .msg { font-size: 13px; color: var(--bad); min-height: 0; }
.drop { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--frost); border: 2px dashed #cfdbea; border-radius: 14px; padding: 14px; cursor: pointer; }
.drop.over { border-color: var(--hf); background: #fff4f0; }
.drop .th { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 34% 28%, #fff 0 34%, #e9f0f8 66%, #b9cde6 100%); display: grid; place-items: center; }
.drop .th img { width: 100%; height: 100%; object-fit: cover; }
.drop .tx b { display: block; font-size: 16px; }
.drop .tx small { color: var(--mute); font-size: 13.5px; }
.drop input { display: none; }
.more { margin-top: 2px; }
.more summary { cursor: pointer; font-weight: 500; color: var(--ink2); font-size: 15px; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more[open] summary { margin-bottom: 10px; }
.mix { display: grid; gap: 10px; }
.mixbar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: var(--frost); }
.mixbar i { display: block; height: 100%; transition: width .2s ease; }
.mixbar .s { background: #E84125; } .mixbar .i { background: #5b8fd6; } .mixbar .p { background: #9ac0ea; }
.rng { display: grid; grid-template-columns: 112px 1fr 54px; gap: 12px; align-items: center; font-size: 15px; }
.rng b { font-weight: 700; } .rng output { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.rng.off { opacity: .45; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--c, #E84125) var(--v, 50%), #e7edf5 var(--v, 50%)); }
input[type=range]::-moz-range-track { height: 8px; border-radius: 6px; background: #e7edf5; }
input[type=range]::-moz-range-progress { height: 8px; border-radius: 6px; background: var(--c, #E84125); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -7px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #fff 0 40%, #e9f0f8 75%, #c4d5ea 100%); box-shadow: 0 2px 6px rgba(40,50,90,.4); border: 0; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(40,50,90,.4); border: 0; }
.note { font-size: 13.5px; color: var(--mute); line-height: 1.45; }
.prev { position: sticky; top: 96px; display: grid; gap: 14px; }
.pcoin { display: grid; place-items: center; text-align: center; padding: 10px 0 4px; }
.pball { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; position: relative; background: radial-gradient(circle at 34% 28%, #fff 0 34%, #e9f0f8 66%, #b9cde6 100%); box-shadow: 0 0 0 6px #fff, 0 0 0 8px #eef3f9, 0 22px 40px -18px rgba(40,50,90,.55); display: grid; place-items: center; }
.pball img { width: 100%; height: 100%; object-fit: cover; }
.pball .ph { color: #b2c3da; font-weight: 700; font-size: 44px; letter-spacing: -.04em; }
.pcoin .nm { margin-top: 16px; font-weight: 700; font-size: 24px; letter-spacing: -.03em; min-height: 29px; }
.pcoin .tk { color: var(--mute); font-size: 15px; min-height: 18px; }
.sum { display: grid; gap: 7px; font-size: 14.5px; }
.sum div { display: flex; justify-content: space-between; gap: 10px; }
.sum span { color: var(--mute); }
.sum b { font-weight: 700; text-align: right; }
.go { width: 100%; padding: 17px; font-size: 18px; }
.walletgate { font-size: 14px; color: var(--mute); text-align: center; }

/* sheets (launch steps, coin log, wallet picker) */
.veil { position: fixed; inset: 0; z-index: 50; background: rgba(20, 12, 10, .42); display: grid; place-items: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.veil.on { opacity: 1; pointer-events: auto; }
.sheet { width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); padding: 22px; transform: translateY(10px); transition: transform .25s ease; }
.veil.on .sheet { transform: none; }
.sheet h3 { margin: 0 0 6px; font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.sheet p { margin: 0; color: var(--ink2); font-size: 16px; line-height: 1.45; }
.sheet .x { float: right; border: 0; background: var(--frost); width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 18px; line-height: 1; }
.steps { display: grid; gap: 10px; margin-top: 16px; }
.step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center; font-size: 16px; color: var(--mute); }
.step i { width: 28px; height: 28px; border-radius: 50%; background: var(--frost); display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 700; }
.step.on { color: var(--ink); } .step.on i { background: #fff1ec; color: var(--hf); animation: pulse 1.2s ease-in-out infinite; }
.step.ok { color: var(--ink); } .step.ok i { background: var(--ok); color: #fff; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(232,65,37,.12); } }
.wl { display: grid; gap: 8px; margin-top: 14px; }
.wl button { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 0; background: var(--frost); cursor: pointer; font-weight: 700; font-size: 16px; text-align: left; }
.wl button img { width: 30px; height: 30px; border-radius: 8px; }
.log { display: grid; gap: 8px; margin-top: 14px; }
.log .e { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; background: var(--frost); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; }
.log .e .k { font-weight: 700; }
.log .e .t { color: var(--mute); font-size: 13px; }
.log .e a { font-family: var(--mono); font-size: 13px; color: var(--ink2); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 60; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 500; font-size: 15px; opacity: 0; transition: .25s ease; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* truth + footer */
.truth { min-height: 90vh; display: grid; align-content: center; padding-top: 100px; padding-bottom: 40px; }
.truth .wrap { max-width: 1120px; margin: 0 auto; width: 100%; }
.truth h2 { color: #fff; margin: 0 0 20px; font-weight: 700; font-size: clamp(34px, 4vw, 56px); letter-spacing: -.04em; line-height: 1; }
.tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tq { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 18px 20px; }
.tq h4 { margin: 0 0 6px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.tq p { margin: 0; color: var(--ink2); font-size: 15.5px; line-height: 1.5; }
footer { position: relative; z-index: 2; padding: 40px clamp(16px, 4vw, 56px) 40px; }
footer .fw { max-width: 1120px; margin: 0 auto; background: rgba(255,255,255,.94); border-radius: var(--r); box-shadow: var(--sh); padding: 22px; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; }
footer .lock { color: var(--ink); font-size: 24px; }
footer .fine { color: var(--mute); font-size: 13.5px; line-height: 1.5; }
footer .fl { display: flex; gap: 8px; }

/* phones */
@media (max-width: 860px) {
  .top nav { display: none; }
  .st, .st.r { justify-content: center; align-items: flex-end; padding-bottom: 40px; }
  .mgrid, .tgrid { grid-template-columns: 1fr; }
  .sgrid { grid-template-columns: 1fr; }
  .prev { position: static; order: -1; }
  footer .fw { grid-template-columns: 1fr; }
  .throwhint { display: none; }
  .vs { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .lock { font-size: 23px; } .lock svg { width: 26px; height: 26px; }
  .card { padding: 20px 18px; }
  .f2 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; } .flow .ar { transform: rotate(90deg); justify-self: center; }
  .rng { grid-template-columns: 92px 1fr 46px; }
  .cachip { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* section heads stand on the slope as red run signs: readable on sky and on snow */
.sign { display: inline-block; text-align: left; color: #fff; background: linear-gradient(180deg, #ef5a3b, #E84125); border-radius: 18px; padding: 18px 24px 20px;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 22px 44px -20px rgba(120, 20, 5, .55), 0 6px 16px -8px rgba(120, 20, 5, .35); }
.sign.c { text-align: center; }
.sign h2 { margin: 0; color: #fff; }
.sign p { margin: 10px 0 0 !important; color: rgba(255,255,255,.96) !important; opacity: 1 !important; }
.board .head { display: block; }
.board .head .sign { display: flex; align-items: end; justify-content: space-between; gap: 22px; flex-wrap: wrap; width: 100%; }
.board .head .sign p { margin: 0 !important; }

/* a round that reaches wallets (station 4) */
.dropc { border-radius: 12px; background: var(--frost); padding: 14px 16px; }
.dropc .dhead { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.dropc .t { font-weight: 700; font-size: 16px; }
.dropc .s { color: var(--mute); font-size: 13.5px; margin-top: 2px; }
.dropc .n { font-weight: 700; font-size: 26px; text-align: right; font-variant-numeric: tabular-nums; line-height: 1; }
.dropc .n small { display: block; color: var(--mute); font-weight: 500; font-size: 12.5px; margin-top: 4px; }
.dwal { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dwal span { font-family: var(--mono); font-size: 12.5px; padding: 5px 8px; border-radius: 8px; background: #fff; color: #b4b8c2; transition: color .25s ease, background .25s ease, transform .25s ease; }
.dwal span.on { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(40, 50, 90, .1); transform: translateY(-1px); }
.dwal span.on::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: radial-gradient(circle at 35% 30%, #fff, #b9cde6); box-shadow: 0 0 0 1px #dbe5f1; vertical-align: 1px; }

.boardlinks { max-width: 1120px; margin: -6px auto 18px; display: flex; gap: 10px; flex-wrap: wrap; }
footer .fine a { color: var(--ink2); }
@media (max-width: 1060px) { .top nav a:nth-child(4) { display: none; } }

/* copy that depends on the Ring step (config.ring.on): the off wording shows until the config says on */
.r-on { display: none; }
body.ring-on .r-on { display: revert; }
body.ring-on .r-off { display: none; }

/* the showcase film (shows itself once assets/film/ringball.mp4 exists) */
.filmsec { min-height: 100vh; display: grid; place-items: center; padding-top: 100px; padding-bottom: 60px; }
.filmsec .fwrap { width: min(1080px, 100%); display: grid; gap: 18px; justify-items: center; }
.filmsec .fcard { width: 100%; background: #fff; border-radius: 22px; padding: 10px; box-shadow: var(--sh); }
.filmsec video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #E84125; }

/* the 3D snowball with the Helius ring is the logo now (the user: "régi logó" for the flat r) */
.lock .mk3d { width: 34px; height: 34px; border-radius: 50%; display: block; box-shadow: 0 2px 8px rgba(120, 20, 5, .25); }
footer .lock .mk3d { width: 32px; height: 32px; }
@media (max-width: 520px) { .lock .mk3d { width: 30px; height: 30px; } }

.filmsec[hidden] { display: none !important; }
