/* Loaf · Float's colours, played louder: deep Float navy, Float blue, white; Amulya; tactile pill buttons */
@font-face { font-family: Amulya; src: url(/assets/fonts/amulya-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Amulya; src: url(/assets/fonts/amulya-500.woff2) format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: Amulya; src: url(/assets/fonts/amulya-700.woff2) format('woff2'); font-weight: 700 900; font-display: swap; }
:root {
  --bg: #04102b; --bg2: #061638; --deep: #020a1d;
  --panel: #0a1c45; --panel2: #0e2457; --raise: #13306f;
  --blue: #3d8bff; --blue2: #2a6ff0; --blue3: #1d56c9; --sky: #8fbcff; --ice: #d9e8ff;
  --text: #f2f6ff; --muted: #9fb3d9; --faint: #6077a6; --line: rgba(143, 188, 255, .14);
  --good: #5fe3a8; --bad: #ff7a8a;
  --r: 30px; --r2: 20px;
  --font: Amulya, ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .9, .25, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: var(--font); font-weight: 500; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh;
  background: radial-gradient(1200px 700px at 50% -10%, #0d2e74 0%, rgba(13, 46, 116, 0) 70%), var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
::selection { background: var(--blue); color: #fff; }
.ico { flex: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- top corners + dock */
.top { position: fixed; z-index: 40; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px 26px; pointer-events: none; }
.top > * { pointer-events: auto; }
.top::before { content: ''; position: absolute; left: 0; right: 0; top: 0; bottom: -26px; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s; background: linear-gradient(180deg, rgba(4, 16, 43, .94) 0%, rgba(4, 16, 43, .8) 62%, rgba(4, 16, 43, 0) 100%); }
body.scrolled .top::before { opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.32rem; letter-spacing: -.02em; }
.brand .mark { width: 34px; height: 34px; color: #fff; filter: drop-shadow(0 4px 14px rgba(61, 139, 255, .45)); }
.tr { display: flex; align-items: center; gap: 10px; }
.wbtn { height: 42px; padding: 0 18px; border-radius: 999px; background: rgba(10, 28, 69, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; box-shadow: inset 0 0 0 1.5px rgba(143, 188, 255, .22); transition: background .2s, transform .2s var(--spring); }
.wbtn:hover { background: rgba(19, 48, 111, .9); }
.wbtn:active { transform: scale(.96); }
.wbtn img { width: 20px; height: 20px; border-radius: 6px; }
.tca { height: 42px; padding: 0 14px; border-radius: 999px; background: rgba(10, 28, 69, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; color: var(--muted); box-shadow: inset 0 0 0 1.5px rgba(143, 188, 255, .14); }
.tca b { color: var(--text); font-weight: 700; }
.tca svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.dock { position: fixed; z-index: 40; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 7px; border-radius: 26px; background: rgba(6, 18, 46, .82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 18px 50px rgba(0, 0, 0, .45), inset 0 0 0 1.5px rgba(143, 188, 255, .12); }
.dock a { height: 52px; min-width: 64px; padding: 0 12px; border-radius: 19px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--faint); font-size: .7rem; font-weight: 700; transition: color .2s, background .2s; }
.dock a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dock a:hover { color: var(--text); }
.dock a.on { color: #fff; background: rgba(61, 139, 255, .16); }
.dock a.plus { min-width: 56px; width: 56px; background: var(--blue); color: #fff; box-shadow: 0 4px 0 var(--blue3), 0 10px 26px rgba(61, 139, 255, .45); margin: 0 6px; transform: translateY(-2px); transition: transform .15s var(--ease), box-shadow .15s; }
.dock a.plus svg { width: 26px; height: 26px; stroke-width: 2.6; }
.dock a.plus:active { transform: translateY(2px); box-shadow: 0 0 0 var(--blue3), 0 6px 16px rgba(61, 139, 255, .4); }

/* ---------------------------------------------------------------- buttons */
.btn { --c: var(--blue); --e: var(--blue3); position: relative; height: 56px; padding: 0 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 1.06rem; letter-spacing: -.01em; background: var(--c); color: #fff; box-shadow: 0 5px 0 var(--e), 0 14px 34px rgba(61, 139, 255, .32); transform: translateY(-2px); transition: transform .14s var(--ease), box-shadow .14s var(--ease), filter .2s; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--e), 0 6px 18px rgba(61, 139, 255, .28); }
.btn.white { --c: #fff; --e: #b8cdf2; color: #0a1c45; box-shadow: 0 5px 0 var(--e), 0 14px 34px rgba(0, 0, 0, .25); }
.btn.ghost { --c: rgba(255, 255, 255, .06); --e: rgba(143, 188, 255, .18); color: var(--text); box-shadow: 0 5px 0 var(--e), inset 0 0 0 1.5px rgba(143, 188, 255, .22); }
.btn.sm { height: 44px; padding: 0 18px; font-size: .95rem; box-shadow: 0 4px 0 var(--e); }
.btn.sm:active { box-shadow: 0 0 0 var(--e); }
.btn.lg { height: 64px; padding: 0 34px; font-size: 1.14rem; }
.btn.w { width: 100%; }
.btn[disabled] { filter: grayscale(.6) brightness(.7); pointer-events: none; }
.btn .ico { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- home: the stage (sticky 3D layer behind hero + builder) */
.stagewrap { position: relative; }
.stagefix { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; z-index: 0; pointer-events: none; overflow: hidden; }
.stagefix canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stagefix::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 46%; z-index: -1; pointer-events: none; opacity: 0; background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 72%, rgba(4, 16, 43, 0) 100%); }
.giant { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); font-weight: 700; font-size: min(36vw, 64vh); line-height: .8; letter-spacing: -.06em; white-space: nowrap; color: transparent;
  background: linear-gradient(180deg, rgba(61, 139, 255, .30) 0%, rgba(61, 139, 255, .10) 55%, rgba(61, 139, 255, 0) 92%); -webkit-background-clip: text; background-clip: text; user-select: none; transition: opacity .2s linear; }
.halo { position: absolute; left: 50%; top: 46%; width: 92vh; height: 92vh; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(61, 139, 255, .28), rgba(61, 139, 255, .08) 55%, rgba(61, 139, 255, 0)); transition: opacity .2s linear; }
.motes { position: absolute; inset: 0; }
.motes i { position: absolute; bottom: -40px; width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .9), rgba(143, 188, 255, .35) 45%, rgba(61, 139, 255, 0) 72%); opacity: .55; animation: rise var(--d) linear infinite; animation-delay: var(--dl); filter: blur(var(--b)); }
@keyframes rise { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--dx), -115vh, 0); } }
.say { position: absolute; z-index: 2; left: 0; top: 0; max-width: 260px; padding: 12px 16px; border-radius: 20px 20px 20px 6px; background: #fff; color: #0a1c45; font-weight: 700; font-size: .95rem; line-height: 1.3; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(.85); transform-origin: 0 100%; transition: opacity .25s, transform .35s var(--spring); }
.say.on { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(1); }

.hero { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; padding: 0 22px calc(108px + env(safe-area-inset-bottom)); }
.hero-text { display: flex; flex-direction: column; align-items: center; }
.hero h1 { margin: 0; font-weight: 700; font-size: clamp(2.1rem, 3.9vw, 3.6rem); line-height: 1.03; letter-spacing: -.035em; max-width: 20ch; text-wrap: balance; text-shadow: 0 6px 40px rgba(2, 10, 29, .6); }
.hero h1 .bl { color: var(--sky); }
.hero .lead { margin: 14px auto 0; max-width: 620px; color: var(--muted); font-size: 1.12rem; text-wrap: pretty; }
.hero .cta { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.built { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; color: var(--faint); font-size: .88rem; font-weight: 700; }
.built img { width: 18px; height: 18px; }
.built b { color: var(--muted); }
.heroca { margin-top: 14px; height: 40px; max-width: 100%; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; background: rgba(10, 28, 69, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1.5px rgba(143, 188, 255, .18); color: var(--muted); font-size: .86rem; font-weight: 700; transition: background .2s; }
.heroca:hover { background: rgba(19, 48, 111, .9); }
.heroca b { color: var(--text); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.heroca .sh { display: none; }
.heroca svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 560px) { .heroca .full { display: none; } .heroca .sh { display: inline; } }

/* builder: chapters on the right, the character stays pinned on the left */
.build { position: relative; z-index: 1; }
.build-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 620px); gap: 40px; max-width: 1360px; margin: 0 auto; padding: 0 32px; }
.chapters { padding: 12vh 0 18vh; display: grid; gap: 22vh; }
.rail { position: sticky; top: 50%; align-self: start; }
.chap { position: relative; scroll-margin-top: 90px; }
.chap .tab { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 10px; border-radius: 16px 16px 0 0; background: var(--panel); color: var(--sky); font-weight: 700; font-size: .92rem; margin-left: 26px; }
.chap .tab .ico { width: 18px; height: 18px; }
.chap .tab i { font-style: normal; color: var(--faint); font-weight: 500; }
.card { position: relative; background: linear-gradient(180deg, var(--panel2), var(--panel) 46%); border-radius: var(--r); padding: 30px; box-shadow: 0 30px 80px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .07); }
.chap h2 { margin: 0; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 700; }
.chap .sub { margin: 10px 0 0; color: var(--muted); font-size: 1.04rem; max-width: 46ch; }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 14px 16px; border-radius: 18px; background: rgba(61, 139, 255, .1); color: var(--ice); font-size: .93rem; }
.note .ico { color: var(--sky); margin-top: 2px; }

/* brain lab */
.lab { margin-top: 26px; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 22px; align-items: stretch; }
.tube { position: relative; border-radius: 56px; background: #061331; box-shadow: inset 0 0 0 2px rgba(143, 188, 255, .16), inset 0 10px 30px rgba(0, 0, 0, .45); overflow: hidden; min-height: 330px; touch-action: none; user-select: none; }
.tube .lay { position: absolute; left: 0; right: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; transition: height .35s var(--ease), bottom .35s var(--ease); }
.tube.drag .lay { transition: none; }
.tube .lay b { font-size: .92rem; letter-spacing: -.01em; }
.tube .lay img { width: 22px; height: 22px; }
.tube .lay.sm b, .tube .lay.sm img { display: none; }
.tube .lay::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .18)); pointer-events: none; }
.tube .hd { position: absolute; left: 50%; width: 56px; height: 22px; margin: -11px 0 0 -28px; border-radius: 11px; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); cursor: ns-resize; z-index: 2; display: flex; align-items: center; justify-content: center; transition: bottom .35s var(--ease), transform .15s; }
.tube.drag .hd { transition: none; }
.tube .hd::before { content: ''; width: 22px; height: 3px; border-radius: 2px; background: #9fb3d9; box-shadow: 0 -5px 0 #c6d4ee, 0 5px 0 #c6d4ee; transform: scaleY(.7); }
.tube .hd:hover, .tube .hd.on { transform: scale(1.1); }
.mods { display: grid; gap: 10px; align-content: start; }
.mod { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-areas: 'lg nm pct' 'lg nm acts'; column-gap: 12px; row-gap: 2px; align-items: center; padding: 10px 12px 10px 10px; border-radius: 20px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1.5px rgba(143, 188, 255, .1); }
.mod .lg { grid-area: lg; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: #fff; }
.mod .lg.dk { background: #0b0d12; }
.mod .lg img { width: 26px; height: 26px; }
.mod .nm { grid-area: nm; min-width: 0; }
.mod .nm b { display: block; font-size: 1rem; line-height: 1.2; }
.mod .pct { grid-area: pct; font-weight: 700; font-size: 1.5rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; text-align: right; min-width: 64px; }
.mod .acts { grid-area: acts; display: flex; gap: 6px; justify-content: flex-end; }
.mini { height: 28px; padding: 0 11px; border-radius: 10px; font-size: .78rem; font-weight: 700; background: rgba(61, 139, 255, .14); color: var(--sky); transition: background .2s, color .2s; display: inline-flex; align-items: center; gap: 5px; }
.mini:hover { background: var(--blue); color: #fff; }
.mini.x { padding: 0 8px; background: rgba(255, 255, 255, .05); color: var(--faint); }
.mini.x:hover { background: rgba(255, 122, 138, .18); color: var(--bad); }
.mini .ico { width: 14px; height: 14px; }
.ver { position: relative; display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; height: 26px; padding: 0 10px; white-space: nowrap; max-width: 100%; border-radius: 9px; background: rgba(61, 139, 255, .1); color: var(--sky); font-size: .8rem; font-weight: 700; }
.ver::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.pop { position: absolute; z-index: 30; min-width: 190px; padding: 6px; border-radius: 16px; background: #fff; color: #0a1c45; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.pop button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 11px; font-weight: 700; font-size: .92rem; text-align: left; }
.pop button:hover { background: #eaf1ff; }
.pop button.on { color: var(--blue2); }
.pop button small { color: #6077a6; font-weight: 500; }
.tray { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tray span { color: var(--faint); font-size: .86rem; font-weight: 700; margin-right: 4px; }
.tray button { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #fff; box-shadow: 0 3px 0 #b8cdf2; transition: transform .2s var(--spring), opacity .2s; }
.tray button.dk { background: #0b0d12; box-shadow: 0 3px 0 #000, inset 0 0 0 1.5px rgba(255, 255, 255, .14); }
.tray button img { width: 24px; height: 24px; }
.tray button:hover { transform: translateY(-3px) rotate(-4deg); }
.tray button[disabled] { opacity: .3; pointer-events: none; }

/* personality */
.pers { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: start; }
.pad { position: relative; aspect-ratio: 1; border-radius: 28px; background: radial-gradient(circle at 50% 50%, rgba(61, 139, 255, .14), rgba(61, 139, 255, 0) 70%), #061331; box-shadow: inset 0 0 0 2px rgba(143, 188, 255, .14); touch-action: none; user-select: none; overflow: hidden; cursor: grab; }
.pad::before, .pad::after { content: ''; position: absolute; background: rgba(143, 188, 255, .14); }
.pad::before { left: 50%; top: 10%; bottom: 10%; width: 2px; margin-left: -1px; }
.pad::after { top: 50%; left: 10%; right: 10%; height: 2px; margin-top: -1px; }
.pad .q { position: absolute; font-size: .78rem; font-weight: 700; color: var(--faint); transition: color .2s; }
.pad .q.on { color: var(--sky); }
.pad .q.a { left: 14px; bottom: 12px; } .pad .q.b { right: 14px; bottom: 12px; } .pad .q.c { left: 14px; top: 12px; } .pad .q.d { right: 14px; top: 12px; }
.pad .ax { position: absolute; font-size: .72rem; color: var(--faint); font-weight: 700; }
.pad .ax.l { left: 50%; transform: translateX(-50%); bottom: 50%; margin-bottom: 8px; display: none; }
.knob { position: absolute; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .45), 0 0 0 8px rgba(61, 139, 255, .22); display: grid; place-items: center; transition: box-shadow .2s; }
.pad.drag .knob { box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 0 14px rgba(61, 139, 255, .25); }
.knob svg { width: 34px; height: 34px; color: #0a1c45; }
.axes { display: flex; justify-content: space-between; margin-top: 10px; color: var(--faint); font-size: .8rem; font-weight: 700; }
.temper b { display: block; font-size: 2rem; letter-spacing: -.03em; line-height: 1.05; }
.temper p { margin: 8px 0 0; color: var(--muted); }
.seg { display: inline-flex; padding: 5px; gap: 4px; border-radius: 16px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1.5px rgba(143, 188, 255, .1); }
.seg button { height: 38px; padding: 0 16px; border-radius: 12px; font-weight: 700; font-size: .92rem; color: var(--muted); transition: background .2s, color .2s; }
.seg button.on { background: var(--blue); color: #fff; box-shadow: 0 3px 0 var(--blue3); }
.lbl { display: block; margin: 20px 0 8px; font-size: .84rem; font-weight: 700; color: var(--faint); }
.logline { margin-top: 18px; display: flex; gap: 12px; align-items: flex-start; }
.logline .av { width: 40px; height: 40px; border-radius: 14px; background: #fff; display: grid; place-items: center; flex: none; }
.logline .av svg { width: 28px; height: 28px; color: #0a1c45; }
.logline p { margin: 0; padding: 12px 15px; border-radius: 6px 18px 18px 18px; background: rgba(255, 255, 255, .07); font-weight: 700; font-size: .98rem; line-height: 1.35; }
.logline small { display: block; color: var(--faint); font-weight: 500; font-size: .76rem; margin-bottom: 3px; }
.inp { width: 100%; height: 50px; padding: 0 16px; border-radius: 16px; border: 0; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1.5px rgba(143, 188, 255, .14); outline: none; font-weight: 700; transition: box-shadow .2s, background .2s; }
.inp:focus { box-shadow: inset 0 0 0 2px var(--blue); background: rgba(61, 139, 255, .06); }
.inp::placeholder { color: var(--faint); font-weight: 500; }
textarea.inp { height: auto; min-height: 130px; padding: 14px 16px; resize: vertical; line-height: 1.5; font-weight: 500; }

/* tasks: basic | advanced */
.tabs2 { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tabs2 .seg button { min-width: 116px; }
.tabs2 small { color: var(--faint); font-weight: 700; font-size: .84rem; }
.tasks { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.task { position: relative; padding: 14px 14px 12px; border-radius: 20px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1.5px rgba(143, 188, 255, .1); transition: background .25s, box-shadow .25s, transform .25s var(--spring); cursor: pointer; }
.task:hover { background: rgba(255, 255, 255, .06); }
.task.on { background: linear-gradient(180deg, rgba(61, 139, 255, .22), rgba(61, 139, 255, .1)); box-shadow: inset 0 0 0 2px rgba(61, 139, 255, .65); }
.task.pop1 { transform: scale(1.03); }
.task .th { display: flex; align-items: center; gap: 10px; }
.task .ti { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(61, 139, 255, .14); color: var(--sky); transition: background .25s, color .25s; }
.task.on .ti { background: var(--blue); color: #fff; }
.task .ti .ico { width: 19px; height: 19px; }
.task b { font-size: 1rem; flex: 1; }
.tick { width: 28px; height: 28px; border-radius: 9px; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 2px rgba(143, 188, 255, .25); transition: background .2s, box-shadow .2s; }
.tick .ico { width: 17px; height: 17px; color: #fff; transform: scale(0); transition: transform .3s var(--spring); }
.task.on .tick { background: #fff; box-shadow: none; }
.task.on .tick .ico { color: var(--blue2); transform: scale(1); }
.task p { margin: 8px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.35; }
.opts { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.opts em { font-style: normal; color: var(--faint); font-size: .76rem; font-weight: 700; margin-right: 2px; }
.opts button { height: 28px; padding: 0 10px; border-radius: 10px; font-size: .78rem; font-weight: 700; background: rgba(255, 255, 255, .05); color: var(--muted); transition: background .2s, color .2s; }
.opts button.on { background: #fff; color: #0a1c45; }
.opts input { height: 30px; width: 100%; border-radius: 10px; border: 0; padding: 0 10px; font-size: .8rem; background: rgba(255, 255, 255, .06); outline: none; box-shadow: inset 0 0 0 1.5px rgba(143, 188, 255, .14); }
.opts .split { flex-basis: 100%; height: 0; }
.limits { margin-top: 26px; padding: 22px; border-radius: 24px; background: #071637; box-shadow: inset 0 0 0 1.5px rgba(143, 188, 255, .12); }
.limits h3 { margin: 0; font-size: 1.24rem; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.limits h3 .ico { color: var(--sky); }
.limits > p { margin: 6px 0 4px; color: var(--muted); font-size: .92rem; }
.lim { margin-top: 16px; }
.lim .lh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .9rem; }
.lim .lh span { color: var(--muted); font-weight: 700; }
.lim .lh b { font-variant-numeric: tabular-nums; }
.range { position: relative; height: 34px; margin-top: 4px; touch-action: none; cursor: pointer; }
.range .tr0 { position: absolute; left: 0; right: 0; top: 50%; height: 10px; margin-top: -5px; border-radius: 5px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.range .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: linear-gradient(90deg, var(--blue2), var(--blue)); }
.range .th { position: absolute; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .4), 0 0 0 5px rgba(61, 139, 255, .25); transition: box-shadow .2s, transform .15s; }
.range:hover .th, .range.drag .th { transform: scale(1.1); box-shadow: 0 4px 12px rgba(0, 0, 0, .4), 0 0 0 8px rgba(61, 139, 255, .28); }
.range:focus-visible { outline: none; }
.range:focus-visible .th { box-shadow: 0 0 0 3px #fff, 0 0 0 7px var(--blue); }
.sw { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1.5px solid rgba(143, 188, 255, .1); cursor: pointer; }
.sw span { font-weight: 700; }
.sw small { display: block; color: var(--muted); font-weight: 500; font-size: .84rem; }
.tog { width: 54px; height: 32px; border-radius: 16px; background: rgba(255, 255, 255, .1); position: relative; flex: none; transition: background .25s; }
.tog::after { content: ''; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: transform .3s var(--spring); }
.sw.on .tog { background: var(--blue); }
.sw.on .tog::after { transform: translateX(22px); }
.adv { margin-top: 18px; }
.adv .ex { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.adv .ex button { height: 32px; padding: 0 12px; border-radius: 11px; background: rgba(61, 139, 255, .12); color: var(--sky); font-size: .8rem; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adv .ex button:hover { background: var(--blue); color: #fff; }
.cnt { text-align: right; font-size: .76rem; color: var(--faint); margin-top: 6px; font-weight: 700; }
.plan { margin-top: 18px; padding: 18px 18px 14px; border-radius: 22px; background: #fff; color: #0a1c45; position: relative; }
.plan::before { content: ''; position: absolute; left: 30px; top: -10px; width: 20px; height: 20px; background: #fff; transform: rotate(45deg); border-radius: 4px; }
.plan h4 { margin: 0 0 8px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.plan h4 svg { width: 26px; height: 26px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: .92rem; line-height: 1.35; animation: pin .35s var(--spring) both; }
.plan li .ico { width: 18px; height: 18px; color: var(--blue2); margin-top: 1px; }
.plan li.rule .ico { color: #7b5cff; }
@keyframes pin { from { opacity: 0; transform: translateY(6px); } }

/* go */
.agentcard { margin-top: 24px; padding: 22px; border-radius: 26px; background: linear-gradient(160deg, #1a4fc7 0%, #3d8bff 58%, #79b0ff 100%); color: #fff; box-shadow: 0 24px 60px rgba(29, 86, 201, .45); position: relative; overflow: hidden; }
.agentcard::after { content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0)); }
.agentcard .ah { display: flex; align-items: center; gap: 14px; }
.agentcard .av { width: 56px; height: 56px; border-radius: 18px; background: #fff; display: grid; place-items: center; flex: none; }
.agentcard .av svg { width: 40px; height: 40px; color: #0a1c45; }
.agentcard .ah b { font-size: 1.5rem; letter-spacing: -.02em; display: block; line-height: 1.1; }
.agentcard .ah small { opacity: .85; font-weight: 700; }
.minibar { margin-top: 16px; height: 14px; border-radius: 7px; overflow: hidden; display: flex; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
.minibar i { display: block; height: 100%; transition: width .35s var(--ease); }
.mlegend { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; font-weight: 700; }
.mlegend span { display: inline-flex; align-items: center; gap: 6px; }
.mlegend i { width: 10px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.agentcard .chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.agentcard .chips span { height: 28px; padding: 0 11px; border-radius: 10px; background: rgba(255, 255, 255, .18); display: inline-flex; align-items: center; font-size: .8rem; font-weight: 700; }
.agentcard .lims { margin-top: 12px; font-size: .86rem; opacity: .92; }
.gorow { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.gorow small { color: var(--muted); font-size: .86rem; }

/* ---------------------------------------------------------------- sections after the builder */
.sec { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 120px 32px 0; }
.sec > h2 { margin: 0; font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1; letter-spacing: -.04em; text-align: center; text-wrap: balance; }
.sec > .sub { margin: 14px auto 0; text-align: center; color: var(--muted); font-size: 1.1rem; max-width: 560px; }
.loopwrap { margin-top: 48px; position: relative; border-radius: 40px; background: linear-gradient(180deg, #0c2257, #071637); padding: 40px 34px 34px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.loopwrap svg.track { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.step { position: relative; padding: 20px 18px 18px; border-radius: 26px; background: rgba(4, 16, 43, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1.5px rgba(143, 188, 255, .12); transition: transform .4s var(--spring), box-shadow .4s, background .4s; }
.step.on { transform: translateY(-8px); background: rgba(13, 40, 98, .92); box-shadow: inset 0 0 0 2px rgba(61, 139, 255, .7), 0 20px 50px rgba(29, 86, 201, .35); }
.step .si { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; background: #fff; color: var(--blue2); box-shadow: 0 5px 0 #b8cdf2; }
.step .si .ico { width: 28px; height: 28px; }
.step b { display: block; margin-top: 16px; font-size: 1.3rem; letter-spacing: -.02em; }
.step p { margin: 6px 0 0; color: var(--muted); font-size: .94rem; line-height: 1.4; }
.loopfoot { position: relative; margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-weight: 700; font-size: .95rem; text-align: center; }
.loopfoot .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 5px rgba(95, 227, 168, .18); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

.fund { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; align-items: stretch; }
.fstep { position: relative; padding: 30px 26px; text-align: center; }
.fstep .orb { width: 112px; height: 112px; margin: 0 auto; border-radius: 36px; display: grid; place-items: center; background: linear-gradient(160deg, #fff, #dbe7ff); color: var(--blue2); box-shadow: 0 8px 0 #9fb8e6, 0 24px 50px rgba(0, 0, 0, .35); }
.fstep .orb img { width: 56px; height: 56px; }
.fstep .orb .ico { width: 54px; height: 54px; }
.fstep .orb.navy { background: linear-gradient(160deg, #123a92, #0a1c45); color: #fff; box-shadow: 0 8px 0 #061331, 0 24px 50px rgba(0, 0, 0, .35); }
.fstep .orb svg.lf { width: 66px; height: 66px; color: #0a1c45; }
.fstep b { display: block; margin-top: 22px; font-size: 1.3rem; letter-spacing: -.02em; }
.fstep p { margin: 6px auto 0; max-width: 30ch; color: var(--muted); }
.fstep:not(:last-child)::after { content: ''; position: absolute; top: 86px; right: -30px; width: 60px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 14'%3E%3Cpath d='M2 7c7-7 14-7 21 0s14 7 21 0 9-5 14-3' fill='none' stroke='%233d8bff' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; z-index: 2; }

.coinsec .grid { margin-top: 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.coin { position: relative; display: block; padding: 16px; border-radius: 24px; background: linear-gradient(180deg, var(--panel2), var(--panel)); box-shadow: 0 16px 40px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .06); transition: transform .3s var(--spring), box-shadow .3s; }
.coin:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(0, 0, 0, .4), inset 0 0 0 2px rgba(61, 139, 255, .45); }
.coin .ch { display: flex; gap: 12px; align-items: center; }
.coin .ci { width: 56px; height: 56px; border-radius: 18px; overflow: hidden; flex: none; background: #13306f; }
.coin .ci img { width: 100%; height: 100%; object-fit: cover; }
.coin .ch b { display: block; font-size: 1.1rem; line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin .ch small { color: var(--muted); font-weight: 700; }
.coin .mc { margin-left: auto; text-align: right; }
.coin .mc b { font-variant-numeric: tabular-nums; }
.coin .mc small { display: block; color: var(--faint); font-size: .74rem; }
.coin .minibar { height: 10px; margin-top: 14px; box-shadow: none; background: rgba(255, 255, 255, .06); }
.coin .cf { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .8rem; color: var(--muted); font-weight: 700; }
.coin .cf span { display: inline-flex; align-items: center; gap: 6px; }
.coin .cf img { width: 18px; height: 18px; border-radius: 6px; }
.badge { height: 24px; padding: 0 9px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; background: rgba(95, 227, 168, .14); color: var(--good); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.wait { background: rgba(143, 188, 255, .14); color: var(--sky); }
.coin.own { background: linear-gradient(160deg, #1a4fc7 0%, #3d8bff 70%); }
.coin.own .ch small, .coin.own .cf { color: rgba(255, 255, 255, .85); }
.empty { margin-top: 40px; padding: 46px 26px; border-radius: 34px; text-align: center; background: linear-gradient(180deg, #0c2257, #071637); }
.empty b { display: block; font-size: 1.5rem; letter-spacing: -.02em; }
.empty p { margin: 8px auto 22px; color: var(--muted); max-width: 44ch; }

.foot { position: relative; z-index: 1; max-width: 1240px; margin: 140px auto 0; padding: 40px 32px calc(130px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.foot .fb { display: flex; align-items: center; gap: 12px; }
.foot .fb svg { width: 44px; height: 44px; color: #fff; }
.foot .fb b { font-size: 1.6rem; letter-spacing: -.03em; display: block; line-height: 1; }
.foot .fb small { color: var(--faint); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.foot .fb small img { width: 14px; height: 14px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-weight: 700; }
.foot nav a:hover { color: #fff; }
.foot .risk { flex-basis: 100%; color: var(--faint); font-size: .82rem; }

/* ---------------------------------------------------------------- inner pages */
.page { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 104px 32px 0; }
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ph h1 { margin: 0; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1; letter-spacing: -.04em; }
.ph p { margin: 10px 0 0; color: var(--muted); font-size: 1.06rem; max-width: 52ch; }
.lpage { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.lform { display: grid; gap: 16px; }
.fcard { padding: 26px; border-radius: var(--r); background: linear-gradient(180deg, var(--panel2), var(--panel) 50%); box-shadow: 0 20px 50px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .06); }
.fcard h2 { margin: 0; font-size: 1.4rem; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.fcard h2 .ico { color: var(--sky); }
.fcard > p { margin: 4px 0 0; color: var(--muted); font-size: .94rem; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fg { margin-top: 16px; }
.fl { display: block; margin: 0 0 7px; font-size: .84rem; font-weight: 700; color: var(--muted); }
.drop { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 22px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 2px rgba(143, 188, 255, .14); cursor: pointer; transition: background .2s, box-shadow .2s; }
.drop:hover, .drop.over { background: rgba(61, 139, 255, .1); box-shadow: inset 0 0 0 2px var(--blue); }
.drop .dimg { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: rgba(61, 139, 255, .12); color: var(--sky); overflow: hidden; flex: none; }
.drop .dimg img { width: 100%; height: 100%; object-fit: cover; }
.drop .dimg svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.drop b { display: block; }
.drop small { color: var(--faint); font-size: .84rem; }
.drop .dbtn { margin-left: auto; height: 38px; padding: 0 16px; border-radius: 12px; background: #fff; color: #0a1c45; font-weight: 700; display: inline-flex; align-items: center; box-shadow: 0 3px 0 #b8cdf2; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.chips button { height: 34px; padding: 0 13px; border-radius: 12px; font-size: .84rem; font-weight: 700; color: var(--muted); background: rgba(255, 255, 255, .05); }
.chips button.on { background: #fff; color: #0a1c45; }
.assets { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; max-height: 340px; overflow: auto; padding: 2px; scrollbar-width: thin; scrollbar-color: #1d3a7a transparent; }
.asset { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .04); text-align: left; transition: background .2s, box-shadow .2s; }
.asset:hover { background: rgba(255, 255, 255, .07); }
.asset.on { background: rgba(61, 139, 255, .18); box-shadow: inset 0 0 0 2px var(--blue); }
.asset img, .asset .ini { width: 34px; height: 34px; border-radius: 11px; flex: none; object-fit: cover; }
.asset .at { font-weight: 700; display: block; line-height: 1.2; }
.asset .an { font-size: .74rem; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ini { display: inline-grid; place-items: center; border-radius: 11px; background: #13306f; color: var(--sky); font-weight: 700; font-size: .8rem; text-transform: uppercase; }
.fees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.fees button { padding: 14px 10px; border-radius: 18px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1.5px rgba(143, 188, 255, .12); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.fees button small { display: block; font-size: .76rem; color: var(--faint); letter-spacing: 0; }
.fees button.on { background: rgba(61, 139, 255, .18); box-shadow: inset 0 0 0 2px var(--blue); }
.err { color: var(--bad); font-weight: 700; font-size: .88rem; min-height: 0; margin-top: 8px; }
.err:empty { display: none; }
.side { position: sticky; top: 92px; display: grid; gap: 14px; }
.side .agentcard { margin-top: 0; }
.side .rev { padding: 20px; border-radius: var(--r); background: linear-gradient(180deg, var(--panel2), var(--panel)); box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.rev .rc { display: flex; align-items: center; gap: 12px; }
.rev .rc .ph0 { width: 56px; height: 56px; border-radius: 18px; background: #13306f; display: grid; place-items: center; color: var(--sky); font-weight: 700; overflow: hidden; flex: none; }
.rev .rc .ph0 img { width: 100%; height: 100%; object-fit: cover; }
.rev .rc b { display: block; font-size: 1.2rem; line-height: 1.15; }
.rev .rc small { color: var(--muted); }
.rows { margin: 14px 0 16px; display: grid; gap: 8px; font-size: .9rem; }
.rows div { display: flex; justify-content: space-between; gap: 10px; }
.rows span { color: var(--muted); }
.rows b { text-align: right; display: inline-flex; align-items: center; gap: 6px; }
.rows b img { width: 18px; height: 18px; border-radius: 6px; }
.edit { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; font-size: .86rem; margin-top: 14px; padding: 0 12px; height: 32px; border-radius: 11px; background: rgba(255, 255, 255, .2); position: relative; z-index: 1; }

/* launch progress modal */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(2, 8, 24, .66); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.modal { width: min(460px, 100%); max-height: 90vh; overflow: auto; padding: 28px; border-radius: 32px; background: linear-gradient(180deg, #10275f, #0a1c45); box-shadow: 0 40px 100px rgba(0, 0, 0, .55); transform: translateY(14px) scale(.97); transition: transform .35s var(--spring); }
.scrim.on .modal { transform: none; }
.modal h3 { margin: 0; font-size: 1.6rem; letter-spacing: -.03em; line-height: 1.1; }
.modal > p { color: var(--muted); margin: 8px 0 0; }
.wl { display: grid; gap: 8px; margin-top: 18px; }
.wl button, .wl a { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; border-radius: 18px; background: rgba(255, 255, 255, .06); font-weight: 700; text-align: left; transition: background .2s; }
.wl button:hover, .wl a:hover { background: rgba(61, 139, 255, .18); }
.wl img { width: 30px; height: 30px; border-radius: 9px; }
.wl small { margin-left: auto; color: var(--faint); font-weight: 500; }
.mx { margin-top: 14px; width: 100%; height: 48px; border-radius: 16px; font-weight: 700; color: var(--muted); background: rgba(255, 255, 255, .05); }
.mx:hover { color: #fff; }
.lsteps { margin-top: 20px; display: grid; gap: 10px; }
.lsteps div { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--faint); transition: color .2s; }
.lsteps i { width: 26px; height: 26px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px rgba(143, 188, 255, .25); position: relative; }
.lsteps .now { color: #fff; }
.lsteps .now i { box-shadow: inset 0 0 0 3px var(--blue); animation: spin 1s linear infinite; border-top-color: transparent; }
.lsteps .now i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: #fff; }
.lsteps .ok { color: var(--text); }
.lsteps .ok i { background: var(--good); box-shadow: none; }
.lsteps .ok i::after { content: ''; position: absolute; left: 9px; top: 5px; width: 6px; height: 11px; border-right: 3px solid #04102b; border-bottom: 3px solid #04102b; transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.done-coin { margin-top: 18px; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; background: rgba(255, 255, 255, .06); }
.done-coin img { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; }
.mbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.mbtns .btn { height: 50px; font-size: .98rem; }
.cp { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--muted); }
.cp svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 16px; background: #fff; color: #0a1c45; font-weight: 700; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--spring); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* coins list + coin page */
.xbar { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.xsearch { flex: 1; min-width: 240px; max-width: 460px; position: relative; }
.xsearch svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: none; stroke: var(--faint); stroke-width: 2; }
.xsearch .inp { padding-left: 46px; }
.cpage { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.chartc { padding: 18px; border-radius: var(--r); background: linear-gradient(180deg, var(--panel2), var(--panel)); }
.chartc canvas { width: 100%; height: 320px; display: block; }
.chead { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.chead .ci { width: 76px; height: 76px; border-radius: 24px; overflow: hidden; background: #13306f; flex: none; }
.chead .ci img { width: 100%; height: 100%; object-fit: cover; }
.chead h1 { margin: 0; font-size: 2.2rem; letter-spacing: -.03em; line-height: 1.05; }
.chead .meta { color: var(--muted); font-weight: 700; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chead .links { margin-left: auto; display: flex; gap: 8px; }
.chead .links a, .chead .links button { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); }
.chead .links svg { width: 18px; height: 18px; fill: currentColor; }
.stats { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stats > div { padding: 14px 16px; border-radius: 20px; background: rgba(255, 255, 255, .04); }
.stats span { display: block; color: var(--faint); font-size: .8rem; font-weight: 700; }
.stats b { font-size: 1.3rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.prog { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-top: 8px; }
.prog i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--blue2), var(--sky)); }
.doc { max-width: 760px; }
.doc h2 { margin: 40px 0 8px; font-size: 1.5rem; letter-spacing: -.02em; }
.doc p, .doc li { color: var(--muted); font-size: 1.02rem; }
.doc b { color: var(--text); }
.doc ul { padding-left: 20px; }

/* reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.rv.vis { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- phones */
@media (max-width: 980px) {
  .stagefix { z-index: 2; }
  .stagefix::after { opacity: var(--bp, 0); }
  .giant, .halo, .motes { z-index: -2; }
  .build-in { grid-template-columns: 1fr; padding: 0 16px; }
  .build-in > .spacer { display: none; }
  .chapters { padding: 46vh 0 14vh; gap: 12vh; }
  .lpage, .cpage { grid-template-columns: 1fr; }
  .side { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fund { grid-template-columns: 1fr; gap: 10px; }
  .fstep:not(:last-child)::after { top: auto; bottom: -12px; right: 50%; margin-right: -30px; transform: rotate(90deg); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .top { padding: 14px 16px; }
  .brand { font-size: 1.15rem; }
  .brand .mark { width: 30px; height: 30px; }
  .tca { display: none; }
  .wbtn { height: 40px; padding: 0 14px; }
  .hero { padding: 0 16px calc(108px + env(safe-area-inset-bottom)); }
  .hero .lead { font-size: 1rem; }
  .hero .cta .btn { height: 52px; padding: 0 22px; font-size: 1rem; }
  .card { padding: 22px 18px; border-radius: 26px; }
  .chap .tab { margin-left: 18px; }
  .lab { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  .tube { min-height: 300px; border-radius: 42px; }
  .mod { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; padding: 8px; }
  .mod .lg { width: 40px; height: 40px; border-radius: 13px; }
  .mod .pct { font-size: 1.2rem; min-width: 50px; }
  .mod { grid-template-areas: 'lg nm pct' 'acts acts acts'; row-gap: 8px; }
  .mod .acts { gap: 6px; justify-content: flex-start; }
  .mod .acts .mini { height: 26px; padding: 0 8px; }
  .ver { font-size: .74rem; padding: 0 8px; }
  .pers { grid-template-columns: 1fr; }
  .pad { max-width: 320px; width: 100%; margin: 0 auto; }
  .tasks { grid-template-columns: 1fr; }
  .tabs2 .seg button { min-width: 0; }
  .sec { padding: 90px 16px 0; }
  .loopwrap { padding: 22px 14px; border-radius: 30px; }
  .steps { grid-template-columns: 1fr; }
  .page { padding: 86px 16px 0; }
  .two, .three { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .dock a { min-width: 52px; padding: 0 8px; }
  .dock a.plus { min-width: 52px; width: 52px; }
  .foot { padding: 40px 16px calc(120px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .rv { opacity: 1; transform: none; } }
