/* qyper: shared base. Green Heaven: painted HL-green skies, lowercase statements, glass UI. */
@font-face { font-family: 'Familjen Grotesk'; src: url(../fonts/FamiljenGrotesk-latin.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Fira Code'; src: url(../fonts/FiraCode-latin.woff2) format('woff2'); font-weight: 400 600; font-display: swap; }

:root {
  --ground: #020a08; --ink: #03140f; --deep: #062a23; --green: #0f4a3f;
  --mint: #97fce4; --pearl: #e9fff8; --mute: rgba(233, 255, 248, .6); --faint: rgba(233, 255, 248, .38);
  --up: #97fce4; --dn: #ed7088;
  --glass: rgba(3, 18, 15, .56); --line: rgba(166, 230, 212, .16); --line2: rgba(166, 230, 212, .09);
  --r: 18px; --sans: 'Familjen Grotesk', ui-sans-serif, system-ui, sans-serif; --mono: 'Fira Code', ui-monospace, monospace;
  --ease: cubic-bezier(.22, .8, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ground); color: var(--pearl); -webkit-text-size-adjust: 100%; }
body { font: 500 15px/1.5 var(--sans); letter-spacing: -.005em; background: var(--ground); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
img { display: block; }
[hidden] { display: none !important; }
::selection { background: rgba(151, 252, 228, .28); color: #fff; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.up { color: var(--up); } .dn { color: var(--dn); }

/* film grain over everything: painterly, never animated per frame */
.grain { position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.2 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* lockup */
.lock { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 21px; letter-spacing: -.04em; color: #fff; line-height: 1; }
.lock .mk { width: 26px; height: 26px; background: currentColor; --mk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='currentColor'%3E%3Cg transform='translate(6 1)'%3E%3Cpath fill-rule='evenodd' d='M44 11a33 33 0 1 0 0 66a33 33 0 1 0 0-66zm0 14a19 19 0 1 1 0 38a19 19 0 1 1 0-38z'/%3E%3Crect x='63' y='44' width='14' height='43' rx='7'/%3E%3Ccircle cx='51' cy='37' r='5.5'/%3E%3C/g%3E%3C/svg%3E"); -webkit-mask: var(--mk) center/contain no-repeat; mask: var(--mk) center/contain no-repeat; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, opacity .25s; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn.solid { background: var(--mint); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(151, 252, 228, .55); }
.btn.solid:hover { background: #b6fdec; }
.btn.ghost { background: rgba(233, 255, 248, .07); color: var(--pearl); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: rgba(233, 255, 248, .12); }
.btn.sm { height: 36px; padding: 0 15px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn .arr { width: 14px; height: 14px; }

/* glass card */
.glass { background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(233, 255, 248, .05); }

/* segmented + slider (shared by the hero ticket and the terminal) */
.seg { display: flex; padding: 4px; gap: 4px; border-radius: 999px; background: rgba(233, 255, 248, .06); }
.seg button { flex: 1; height: 34px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--mute); transition: background .25s, color .25s; }
.seg button.on { background: rgba(233, 255, 248, .12); color: var(--pearl); }
.seg.side button.on[data-s="long"] { background: var(--mint); color: var(--ink); }
.seg.side button.on[data-s="short"] { background: var(--dn); color: var(--ink); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--mint) var(--f, 25%), rgba(233, 255, 248, .12) var(--f, 25%)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(233, 255, 248, .12); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--mint); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--pearl); box-shadow: 0 0 0 4px rgba(151, 252, 228, .18), 0 2px 8px rgba(0, 0, 0, .5); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--pearl); box-shadow: 0 0 0 4px rgba(151, 252, 228, .18); }
input[type=range]:focus-visible { outline: none; }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(151, 252, 228, .35); }

/* toasts */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 36px)); }
.toast { padding: 13px 16px; border-radius: 14px; font-size: 14px; background: rgba(3, 18, 15, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 20px 50px -20px #000; animation: tin .45s var(--ease) both; }
.toast.bad { border-color: rgba(237, 112, 136, .4); }
.toast.out { opacity: 0; transform: translateY(6px); transition: .35s; }
@keyframes tin { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* wallet modal (wallet.js) */
.modal { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 20px; background: rgba(1, 6, 5, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal.on { display: grid; animation: fin .3s var(--ease); }
@keyframes fin { from { opacity: 0; } }
.mbox { width: min(400px, 100%); padding: 26px; border-radius: 22px; background: rgba(4, 22, 18, .94); border: 1px solid var(--line); box-shadow: 0 40px 100px -30px #000; }
.mbox h3 { font-size: 22px; font-weight: 600; letter-spacing: -.03em; text-transform: lowercase; }
.mbox p { margin: 6px 0 18px; color: var(--mute); font-size: 14px; }
.wl { display: grid; gap: 8px; }
.wl button { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px; border-radius: 14px; background: rgba(233, 255, 248, .05); border: 1px solid var(--line2); font-weight: 600; text-align: left; transition: background .2s, border-color .2s; }
.wl button:hover, .wl button:focus-visible { background: rgba(151, 252, 228, .09); border-color: rgba(151, 252, 228, .3); outline: none; }
.wl img { width: 28px; height: 28px; border-radius: 8px; }
.wl .none, .wl p { color: var(--mute); font-size: 14px; }
.mx { margin-top: 14px; width: 100%; }

:focus-visible { outline: 2px solid rgba(151, 252, 228, .6); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* opened from file:// (modules blocked): say how to start it */
.filenote { display: none; }
html:not(.js) .filenote { display: block; position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 99; width: min(560px, calc(100vw - 24px)); padding: 12px 16px; border-radius: 14px; font-size: 14px; text-align: center; color: var(--ink); background: var(--mint); box-shadow: 0 20px 50px -20px #000; }
