/* RatBrain · Holo Petri (全息培养皿) — design system
   Pearl background, holographic cyan–pink–lime gradients, frosted glass panels with measurement ticks. */

@font-face { font-family: "Sora"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../assets/fonts/sora-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../assets/fonts/sora-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../assets/fonts/geist-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../assets/fonts/geist-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --pearl: #F7F5FB;
  --pearl-2: #EFEBF7;
  --ink: #211A3A;
  --ink-2: #4A4366;
  --muted: #787290;
  --faint: #A19CB5;
  --hair: rgba(33, 26, 58, .10);
  --hair-2: rgba(33, 26, 58, .2);
  --cyan: #52E3F2;
  --cyan-d: #0E9FBA;
  --lilac: #B69CFF;
  --violet: #7A5CF0;
  --pink: #FF8FD8;
  --magenta: #DD3AAE;
  --lime: #C9FF3D;
  --lime-d: #6FAE00;
  --ok: #4F7A00;
  --warn: #B0457E;
  --stop: #C92A4A;
  --gold: #D59B0C;
  --holo: linear-gradient(115deg, #6FF3FF 0%, #B69CFF 34%, #FF8FD8 66%, #D4FF6A 100%);
  --holo-deep: linear-gradient(100deg, #F0469E 0%, #A958F6 22%, #4F7BFF 42%, #12BEDC 58%, #4F7BFF 74%, #A958F6 88%, #F0469E 100%);
  --r-xl: 30px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 11px;
  --shadow: 0 34px 70px -38px rgba(58, 36, 120, .34), 0 10px 24px -14px rgba(58, 36, 120, .14);
  --f-cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC";
  --f-display: "Sora", var(--f-cjk), system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Sora", var(--f-cjk), system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, var(--f-cjk), monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 60px;
  --tab-h: 0px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 86px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 15px/1.65 var(--f-body);
  color: var(--ink);
  background: var(--pearl);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: var(--tab-h);
}
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
svg use { pointer-events: none; }
.mono { font-family: var(--f-mono); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.ico { width: 15px; height: 15px; flex: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }
.noscript { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; margin: 0; padding: 12px 16px; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px -10px rgba(33,26,58,.4); }

/* ---------- atmosphere ---------- */
.atmos { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -10%, #FFFFFF 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #F9F7FD 0%, #F3F0FA 100%); }
.orb { position: absolute; border-radius: 50%; opacity: .55; will-change: transform; }
.o1 { width: 62vmax; height: 62vmax; left: -22vmax; top: -18vmax; background: radial-gradient(circle, rgba(111,243,255,.55), rgba(111,243,255,0) 62%); animation: drift1 26s ease-in-out infinite alternate; }
.o2 { width: 58vmax; height: 58vmax; right: -24vmax; top: -8vmax; background: radial-gradient(circle, rgba(255,143,216,.5), rgba(255,143,216,0) 62%); animation: drift2 30s ease-in-out infinite alternate; }
.o3 { width: 50vmax; height: 50vmax; left: 20vmax; bottom: -30vmax; background: radial-gradient(circle, rgba(212,255,106,.45), rgba(212,255,106,0) 62%); animation: drift3 34s ease-in-out infinite alternate; }
.o4 { width: 40vmax; height: 40vmax; right: 10vmax; bottom: 10vmax; background: radial-gradient(circle, rgba(182,156,255,.42), rgba(182,156,255,0) 62%); animation: drift1 38s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(8vmax, 6vmax) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-7vmax, 9vmax) scale(.94); } }
@keyframes drift3 { to { transform: translate(-6vmax, -8vmax) scale(1.1); } }

/* ---------- small shared bits ---------- */
.tag { display: inline-flex; align-items: center; font: 500 11px/1 var(--f-mono); font-style: normal; letter-spacing: .02em; color: #7F7896; padding: 4px 7px; border-radius: 7px; border: 1px dashed rgba(33,26,58,.28); background: rgba(255,255,255,.65); white-space: nowrap; vertical-align: middle; }
.dropmark { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--holo); box-shadow: 0 0 0 1px rgba(33,26,58,.25) inset; margin-right: 8px; vertical-align: 1px; animation: dripmark 3.2s ease-in infinite; }
@keyframes dripmark { 0%, 70% { transform: rotate(-45deg) translate(0,0); opacity: 1; } 85% { transform: rotate(-45deg) translate(-3px, 3px) scale(.9); opacity: 1; } 86% { opacity: 0; transform: rotate(-45deg) translate(0,0) scale(.3); } 100% { opacity: 1; transform: rotate(-45deg) translate(0,0) scale(1); } }
.sd { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #C9C4D8; margin-right: 7px; vertical-align: 1px; }
.sd-on { background: #8FE000; box-shadow: 0 0 0 3px rgba(143,224,0,.22), 0 0 10px rgba(143,224,0,.6); }
.sd-warn { background: #F2B413; box-shadow: 0 0 0 3px rgba(242,180,19,.22); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 11px; font: 600 13.5px/1 var(--f-display); background: rgba(33,26,58,.06); color: #5E5878; box-shadow: inset 0 0 0 1px rgba(33,26,58,.12); white-space: nowrap; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: #B7B1C9; flex: none; }
.pill.live { background: rgba(143,224,0,.13); color: #3F6B00; box-shadow: inset 0 0 0 1px rgba(111,174,0,.3); }
.pill.live i { background: #8FE000; box-shadow: 0 0 8px #8FE000; animation: blinkDot 1.6s ease-in-out infinite; }
.pill.recruit { background: rgba(182,156,255,.16); color: #5B3FC4; box-shadow: inset 0 0 0 1px rgba(122,92,240,.3); }
.pill.recruit i { background: var(--violet); box-shadow: 0 0 8px var(--lilac); animation: blinkDot 1.6s ease-in-out infinite; }
.pill.stop { background: rgba(201,42,74,.1); color: var(--stop); box-shadow: inset 0 0 0 1px rgba(201,42,74,.3); }
.pill.stop i { background: var(--stop); }
.pill.win { background: rgba(245,180,20,.14); color: #8A5A00; box-shadow: inset 0 0 0 1px rgba(213,155,12,.35); }
.pill.win i { background: #F2B413; box-shadow: 0 0 8px #F2B413; }
@keyframes blinkDot { 50% { opacity: .25; } }

/* ---------- buttons ---------- */
.btn { --h: 46px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 20px; border-radius: 14px; border: 0; cursor: pointer; font: 600 15px/1.15 var(--f-display); letter-spacing: .01em; text-decoration: none; white-space: nowrap; overflow: hidden; isolation: isolate; transition: transform .2s ease, box-shadow .2s ease, background-color .2s, color .2s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn:focus-visible, .chip:focus-visible, .stamp:focus-visible, .links a:focus-visible, summary:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.btn-sm { --h: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn-xs { --h: 30px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { --h: 54px; padding: 0 26px; font-size: 16px; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-ink { color: #fff; background: #211A3A; box-shadow: 0 14px 28px -14px rgba(33,26,58,.7), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-ink::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--holo); background-size: 200% 200%; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .9; animation: holoPan 6s linear infinite; z-index: -1; }
.btn-ink::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); animation: sheen 5.5s ease-in-out infinite; z-index: -1; }
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -14px rgba(90,60,200,.55), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-glass { color: var(--ink); background: rgba(255,255,255,.62); box-shadow: inset 0 0 0 1px rgba(33,26,58,.14), 0 10px 22px -16px rgba(33,26,58,.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.9); transform: translateY(-2px); }
.btn-danger { color: #fff; background: var(--stop); box-shadow: 0 14px 28px -14px rgba(201,42,74,.7); }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; color: #9A95AD; background: rgba(33,26,58,.05); box-shadow: inset 0 0 0 1px rgba(33,26,58,.1); transform: none; }
.btn[disabled]::before, .btn[disabled]::after, .btn[aria-disabled="true"]::before, .btn[aria-disabled="true"]::after { display: none; }
.btn.busy { cursor: progress; }
.btn.busy::after { content: ""; position: static; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; background: none; transform: none; animation: spin .8s linear infinite; display: inline-block; }
.btn-drop { width: 10px; height: 10px; flex: none; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--holo); }
@keyframes holoPan { to { background-position: 200% 0; } }
@keyframes sheen { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes spin { to { transform: rotate(360deg); } }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px rgba(33,26,58,.14); font: 500 13px/1 var(--f-mono); color: var(--ink-2); cursor: pointer; transition: background .2s, box-shadow .2s, color .2s; white-space: nowrap; touch-action: manipulation; }
.chip:hover { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(122,92,240,.45); }
.chip[disabled] { cursor: not-allowed; opacity: .5; }

/* pipette-drop micro-animation (spawned by JS inside buttons) */
.dropfx { position: absolute; top: 0; width: 0; height: 0; pointer-events: none; z-index: 2; }
.dropfx::before { content: ""; position: absolute; left: -5px; top: -14px; width: 10px; height: 10px; border-radius: 50% 50% 50% 0; background: var(--holo); box-shadow: 0 0 0 1px rgba(33,26,58,.3) inset; transform: rotate(-45deg); animation: dropFall .32s cubic-bezier(.5,0,1,.6) forwards; }
.dropfx::after { content: ""; position: absolute; left: 0; top: var(--y, 24px); width: 8px; height: 8px; border-radius: 50%; transform: translate(-50%,-50%) scale(0); border: 2px solid rgba(182,156,255,.95); box-shadow: 0 0 0 2px rgba(111,243,255,.5); opacity: 0; animation: dropRipple .7s .28s ease-out forwards; }
@keyframes dropFall { to { transform: translateY(calc(var(--y, 24px) + 10px)) rotate(-45deg) scale(.6); opacity: .2; } }
@keyframes dropRipple { 0% { opacity: 1; transform: translate(-50%,-50%) scale(.4); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(9); } }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 50; top: calc(env(safe-area-inset-top, 0px) + 12px); left: 50%; transform: translateX(-50%); width: calc(100% - 2 * clamp(12px, 3vw, 28px)); max-width: 1240px; height: var(--nav-h); display: flex; align-items: center; gap: 12px; padding: 0 10px 0 12px; border-radius: 20px; background: rgba(255,255,255,.58); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), 0 0 0 1px rgba(33,26,58,.07), 0 18px 40px -26px rgba(58,36,120,.4); transition: background .3s; }
.nav.scrolled { background: rgba(255,255,255,.82); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-av { position: relative; width: 38px; height: 38px; border-radius: 50%; padding: 2px; background: var(--holo); box-shadow: 0 4px 12px -4px rgba(120,80,220,.5); }
.brand-av img { width: 34px; height: 34px; border-radius: 50%; }
.brand-word { font: 700 17px/1 var(--f-display); letter-spacing: .12em; }
.links { display: flex; gap: 2px; margin-left: auto; }
.links a { position: relative; padding: 9px 11px; border-radius: 11px; text-decoration: none; font-size: 14.5px; color: var(--ink-2); transition: background .2s, color .2s; white-space: nowrap; }
.links a:hover { background: rgba(33,26,58,.05); color: var(--ink); }
.links .menu-x { display: none; }
.links a.on { color: var(--ink); background: rgba(255,255,255,.8); box-shadow: inset 0 0 0 1px rgba(33,26,58,.08); }
.links a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--holo); }
.nav-r { display: flex; align-items: center; gap: 8px; flex: none; }
.xlink { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--ink); background: rgba(255,255,255,.62); box-shadow: inset 0 0 0 1px rgba(33,26,58,.14); text-decoration: none; flex: none; transition: background .2s, transform .2s; }
.xlink svg { width: 16px; height: 16px; }
.xlink:hover { background: #fff; transform: translateY(-2px); }
.xlink:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.net { display: inline-flex; align-items: center; gap: 7px; font: 500 12.5px/1 var(--f-mono); color: var(--muted); padding: 0 4px; white-space: nowrap; }
.net i { width: 7px; height: 7px; border-radius: 50%; background: #E7B416; box-shadow: 0 0 0 3px rgba(231,180,22,.2); }
.net.bad { color: var(--warn); }
.net.bad i { background: var(--warn); box-shadow: 0 0 0 3px rgba(176,69,126,.2); }
.wbtn { max-width: 190px; }
.wbtn .wlabel { overflow: hidden; text-overflow: ellipsis; }
.wdot { display: none; width: 8px; height: 8px; border-radius: 50%; background: #8FE000; box-shadow: 0 0 8px #8FE000; flex: none; }
.wbtn.connected { color: var(--ink); background: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1px rgba(33,26,58,.14); }
.wbtn.connected::before, .wbtn.connected::after { display: none; }
.wbtn.connected .wdot { display: inline-block; }
.wbtn.connected .wlabel { font-family: var(--f-mono); font-weight: 500; }
.wbtn.wrongnet .wdot { background: #F2B413; box-shadow: 0 0 8px #F2B413; }
.buy[aria-disabled="true"] { pointer-events: auto; }
.menu { display: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(33,26,58,.06); cursor: pointer; position: relative; flex: none; }
.menu i { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s; }
.menu i:first-child { top: 15px; } .menu i:last-child { top: 23px; }
.menu[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
.menu[aria-expanded="true"] i:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- banners ---------- */
.banners { position: fixed; z-index: 45; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 12px + var(--nav-h) + 8px); width: calc(100% - 2 * clamp(12px, 3vw, 28px)); max-width: 1240px; display: grid; gap: 6px; pointer-events: none; }
.banner { pointer-events: auto; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 14px; padding: 10px 16px; border-radius: 14px; font-size: 14px; text-align: center; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.banner-stop { background: rgba(201,42,74,.92); color: #fff; box-shadow: 0 16px 30px -18px rgba(201,42,74,.8); }
.banner-net { background: rgba(255,248,225,.94); color: #6E4D00; box-shadow: inset 0 0 0 1px rgba(213,155,12,.35); }
.banner-err { background: rgba(255,255,255,.92); color: var(--warn); box-shadow: inset 0 0 0 1px rgba(176,69,126,.3); font-family: var(--f-mono); font-size: 13px; }

/* ---------- sections ---------- */
.sec { position: relative; padding-block: clamp(64px, 8vw, 110px) 0; }
.sec-head { position: relative; max-width: 780px; margin-bottom: clamp(24px, 3.2vw, 38px); }
.sec-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; }
.sec-head-row > div:first-child { max-width: 760px; }
.kicker { margin: 0 0 10px; font-size: 12.5px; color: var(--violet); display: flex; align-items: center; }
.sec-head h2 { margin: 0; font: 700 clamp(34px, 4.6vw, 56px)/1.05 var(--f-display); letter-spacing: -.02em; }
.lead { margin: 14px 0 0; font-size: 16px; color: var(--ink-2); max-width: 64ch; }
.has-art { position: relative; }
.sec-art { position: absolute; right: clamp(8px, 4vw, 70px); bottom: calc(100% - 18px); width: clamp(140px, 15vw, 200px); pointer-events: none; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 20px 24px rgba(58,36,120,.18)); z-index: 1; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.2%); } }

/* ---------- glass panel ---------- */
.panel { --c: rgba(33,26,58,.32); position: relative; border-radius: var(--r-xl); padding: clamp(18px, 2.2vw, 26px); background: linear-gradient(165deg, rgba(255,255,255,.84), rgba(255,255,255,.52)); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.95), 0 0 0 1px rgba(33,26,58,.07), var(--shadow); min-width: 0; }
.panel::before { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 9px; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(33,26,58,.22) 0 1px, transparent 1px 8px) 0 0 / 100% 5px no-repeat, repeating-linear-gradient(90deg, rgba(33,26,58,.34) 0 1px, transparent 1px 40px) 0 0 / 100% 9px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.panel::after { content: ""; position: absolute; inset: 10px; pointer-events: none; border-radius: 22px;
  background: linear-gradient(var(--c), var(--c)) 0 0 / 12px 1px no-repeat, linear-gradient(var(--c), var(--c)) 0 0 / 1px 12px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 12px 1px no-repeat, linear-gradient(var(--c), var(--c)) 100% 0 / 1px 12px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 12px 1px no-repeat, linear-gradient(var(--c), var(--c)) 0 100% / 1px 12px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 12px 1px no-repeat, linear-gradient(var(--c), var(--c)) 100% 100% / 1px 12px no-repeat; }
.p-head { position: relative; display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin-bottom: 14px; padding-top: 4px; }
.p-k { flex-basis: 100%; font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.p-head h3 { margin: 0; font: 600 20px/1.2 var(--f-display); letter-spacing: -.01em; }
.big { margin: 0; font: 600 clamp(38px, 4.4vw, 56px)/1 var(--f-mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.big small, .mid small { font: 500 .36em/1 var(--f-mono); margin-left: .35em; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.mid { margin: 4px 0 0; font: 600 clamp(22px, 2.3vw, 30px)/1.12 var(--f-mono); letter-spacing: -.02em; overflow-wrap: anywhere; }
.mid small { font-size: .5em; }
.is-empty { color: var(--faint) !important; font-family: var(--f-display) !important; font-weight: 600 !important; letter-spacing: 0 !important; }
.big .is-empty, .big.is-empty { font-size: .52em; }
.mid .is-empty { font-size: .7em; }
.is-err { color: var(--warn) !important; font-size: .5em; font-family: var(--f-mono) !important; letter-spacing: 0 !important; }
.why { margin: 8px 2px 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.why.warn { color: var(--warn); }
.why.warn::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; margin-right: 6px; vertical-align: 0; }
.why.ok { color: var(--ok); }
.why.ok::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #8FE000; margin-right: 6px; vertical-align: 0; box-shadow: 0 0 6px #8FE000; }
.why.stop { color: var(--stop); }
.empty-line { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.link-more { display: inline-block; margin-top: 10px; font-size: 13.5px; color: var(--violet); text-decoration: none; font-weight: 600; }
.link-more:hover { text-decoration: underline; }

/* ---------- bars & wells ---------- */
.pbar { margin-top: 18px; }
.pbar-track { position: relative; height: 22px; border-radius: 12px; background: rgba(33,26,58,.055); box-shadow: inset 0 1px 3px rgba(33,26,58,.15), inset 0 0 0 1px rgba(33,26,58,.06); overflow: hidden; }
.pbar-track::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(33,26,58,.22) calc(10% - 1px) 10%); -webkit-mask-image: linear-gradient(#000 0 30%, transparent 30% 70%, #000 70%); mask-image: linear-gradient(#000 0 30%, transparent 30% 70%, #000 70%); }
.pbar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); min-width: 0; border-radius: 12px; background: var(--holo); background-size: 200% 100%; animation: holoPan 7s linear infinite; box-shadow: 0 0 18px rgba(182,156,255,.55); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.pbar-fill.zero { box-shadow: none; }
.pbar-head { position: absolute; right: 3px; top: 3px; bottom: 3px; width: 16px; border-radius: 9px; background: rgba(255,255,255,.9); box-shadow: 0 0 0 1px rgba(33,26,58,.2); }
.pbar-fill.zero .pbar-head { display: none; }
.pbar-scale { display: flex; justify-content: space-between; margin-top: 7px; font-size: 11px; color: var(--muted); }
.pbar-sm { margin-top: 14px; }
.pbar-sm .pbar-track { height: 16px; }
.pbar-sm .pbar-head { width: 10px; top: 3px; bottom: 3px; }

.plate { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: clamp(5px, .9vw, 10px); padding: clamp(12px, 1.6vw, 18px); border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(239,235,247,.6)); box-shadow: inset 0 0 0 1px rgba(33,26,58,.1), inset 0 -3px 0 rgba(33,26,58,.04); }
.well { position: relative; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #FFFFFF 0%, #F1EDF9 55%, #DCD4EC 100%); box-shadow: inset 0 2px 4px rgba(33,26,58,.2), 0 1px 0 #fff; overflow: hidden; }
.well i { position: absolute; left: 16%; right: 16%; bottom: 16%; height: calc(68% * var(--f, 1)); border-radius: 0 0 99px 99px; transform-origin: 50% 100%; }
.well.on i, .well.part i { background: radial-gradient(circle at 40% 30%, #fff 0%, var(--wc) 55%); box-shadow: 0 0 10px var(--wc); }
.well.on i { top: 16%; border-radius: 50%; }
.well.part i { border-top: 1.5px solid rgba(255,255,255,.9); }
.well.pop i { animation: wellIn .7s cubic-bezier(.3,1.6,.5,1) both; animation-delay: var(--dl, 0s); }
.well.flash i { animation: wellFlash .9s ease-out; }
@keyframes wellIn { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wellFlash { 0% { filter: brightness(1.5) saturate(1.6); box-shadow: 0 0 22px 4px var(--wc); } 100% { filter: none; } }
.plate-cap { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.w-key { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #fff, #E4DDF2); box-shadow: inset 0 1px 2px rgba(33,26,58,.25); margin-left: 8px; flex: none; }
.w-key:first-child { margin-left: 0; }
.w-key.on { background: radial-gradient(circle at 40% 30%, #fff, #B69CFF 60%); box-shadow: 0 0 6px #B69CFF; }

/* ---------- inputs ---------- */
.f-l { display: block; margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.amt { position: relative; display: flex; align-items: center; min-width: 0; min-height: 56px; border-radius: 16px; background: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1px rgba(33,26,58,.16), inset 0 2px 4px rgba(33,26,58,.06); transition: box-shadow .2s; }
.amt:focus-within { box-shadow: inset 0 0 0 1.5px var(--violet), 0 0 0 4px rgba(182,156,255,.25); }
.amt input, .amt select { flex: 1 1 0; width: 0; min-width: 0; height: 100%; min-height: 56px; border: 0; background: transparent; padding: 0 16px; font: 600 22px/1 var(--f-mono); color: var(--ink); outline: none; }
.amt input::placeholder { color: #ABA6BD; font: 500 14px/1 var(--f-display); }
.amt-unit, .amt em { flex: none; padding: 0 16px 0 6px; font: 500 12.5px/1 var(--f-mono); font-style: normal; color: var(--muted); }
.amt-sm { min-height: 44px; border-radius: 13px; }
.amt-sm input, .amt-sm select { min-height: 44px; font-size: 16px; padding: 0 12px; }
.amt-sm .chip { margin-right: 6px; min-height: 30px; }
.amt select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.amt.bad { box-shadow: inset 0 0 0 1.5px var(--warn), 0 0 0 4px rgba(176,69,126,.12); }

/* ---------- footer ---------- */
.foot { margin-top: clamp(80px, 10vw, 130px); padding-block: 40px calc(env(safe-area-inset-bottom, 0px) + 40px); background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.72) 30%); border-top: 1px solid rgba(255,255,255,.9); position: relative; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--holo); opacity: .6; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px 40px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.foot-brand img { width: 108px; height: 108px; flex: none; }
.foot-brand .foot-logo { width: 96px; height: 96px; border-radius: 50%; padding: 3px; background: var(--holo); box-shadow: 0 14px 30px -14px rgba(120,80,220,.6); }
.foot-links .ico-x { width: 12px; height: 12px; }
.fw { margin: 0; font: 700 22px/1 var(--f-display); letter-spacing: .12em; }
.foot-brand .muted { margin: 8px 0 0; font-size: 13.5px; max-width: 32ch; }
.foot-links { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.foot-links a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 10px; font: 500 13px/1 var(--f-mono); text-decoration: none; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px rgba(33,26,58,.12); color: var(--ink-2); }
.foot-links a:hover { color: var(--ink); background: #fff; }
.foot-links a[aria-disabled="true"] { color: #A9A4BA; cursor: not-allowed; }
.foot-links .ico { width: 12px; height: 12px; }
.addrs { display: grid; gap: 10px; min-width: 0; }
.addr { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 14px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(33,26,58,.1); }
.a-l { font-size: 13px; color: var(--muted); }
.addr code { font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr code.pending { color: var(--faint); font-family: var(--f-display); }
.addr code a { color: inherit; text-decoration: none; }
.addr code a:hover { text-decoration: underline; }
.disclaimer { margin-top: 30px; padding: 20px 22px; border-radius: 18px; background: rgba(33,26,58,.035); box-shadow: inset 0 0 0 1px rgba(33,26,58,.08); }
.disclaimer p { margin: 0; font-size: 14px; color: var(--ink); line-height: 1.7; }
.disclaimer p + p { margin-top: 4px; }
.disclaimer .dyor { margin-top: 12px; font-size: 13px; letter-spacing: .01em; font-weight: 600; }
.fine { margin: 16px 0 0; font-size: 12px; color: #8E88A3; }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 70; right: clamp(12px, 3vw, 28px); bottom: calc(env(safe-area-inset-bottom, 0px) + var(--tab-h) + 16px); display: grid; gap: 8px; width: min(380px, calc(100% - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(33,26,58,.1), 0 20px 40px -20px rgba(58,36,120,.5); font-size: 13.5px; animation: toastIn .45s cubic-bezier(.2,.9,.3,1.2); }
.toast i { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--lilac); box-shadow: 0 0 8px var(--lilac); }
.toast.ok i { background: #8FE000; box-shadow: 0 0 8px #8FE000; }
.toast.err i { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.toast b { display: block; font-weight: 600; }
.toast span { color: var(--muted); overflow-wrap: anywhere; }
.toast a { color: var(--violet); }
.toast button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 2px; }
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ---------- bottom tab bar (mobile) ---------- */
.tabbar { display: none; }

/* ---------- reveal / off-screen pause ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }
.paused, .paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }
.page-hidden *, .page-hidden *::before, .page-hidden *::after { animation-play-state: paused !important; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .net { display: none; }
  .links a { padding: 9px 9px; font-size: 14px; }
}
@media (max-width: 1060px) {
  .links { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; gap: 2px; padding: 8px; border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 0 0 1px rgba(33,26,58,.08), 0 24px 40px -20px rgba(58,36,120,.4); }
  .links.open { display: flex; }
  .links a { padding: 13px 14px; font-size: 16px; }
  .links a.on::after { display: none; }
  .links .menu-x svg { width: 15px; height: 15px; margin-right: 8px; vertical-align: -2px; }
  .menu { display: block; }
  .nav-r { margin-left: auto; }
  .sec-art { display: none; }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --nav-h: 56px; --tab-h: calc(62px + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 78px); }
  .nav { border-radius: 18px; gap: 8px; padding: 0 8px 0 10px; }
  .brand-word { font-size: 15px; letter-spacing: .1em; }
  .brand-av { width: 34px; height: 34px; }
  .brand-av img { width: 30px; height: 30px; }
  .buy { display: none; }
  .wbtn { max-width: 150px; padding: 0 12px; }
  .xlink { display: none; }
  .links .menu-x { display: flex; align-items: center; border-top: 1px dashed var(--hair-2); margin-top: 4px; padding-top: 14px; }
  .tabbar { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: var(--tab-h); padding: 6px 8px env(safe-area-inset-bottom, 0px); background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 -1px 0 rgba(33,26,58,.08), 0 -14px 30px -24px rgba(58,36,120,.5); }
  .tabbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: var(--holo); opacity: .55; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 14px; text-decoration: none; font-size: 11.5px; color: var(--muted); -webkit-tap-highlight-color: transparent; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--ink); background: rgba(33,26,58,.05); }
  .tabbar a.on svg { color: var(--violet); }
  .addr { grid-template-columns: minmax(0, 1fr) auto; }
  .a-l { grid-column: 1 / -1; }
  .foot-brand img { width: 84px; height: 84px; }
  .foot-brand .foot-logo { width: 76px; height: 76px; }
  .xlink { width: 36px; height: 36px; border-radius: 11px; }
  .disclaimer { padding: 16px; }
  .disclaimer p { font-size: 13px; }
  .banners { top: calc(env(safe-area-inset-top, 0px) + 12px + var(--nav-h) + 6px); }
  .banner { font-size: 13px; padding: 9px 12px; }
}
@media (max-width: 380px) {
  .brand-word { display: none; }
}
@media (max-width: 340px) {
  .xlink { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .orb, .dropmark { animation: none !important; }
  .rv { opacity: 1; transform: none; }
}
