@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Sora:wght@600;700;800&display=swap');

/* ============ tokens ============ */
:root {
  --bg: #0c0d0f;
  --panel: rgba(255, 255, 255, .042);
  --panel-2: rgba(255, 255, 255, .075);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .17);
  --text: #eceef1;
  --mute: #a2a8b3;
  --dim: #707682;
  --silver: linear-gradient(180deg, #f6f7f9 0%, #bcc0ca 100%);
  --ok: #86e3b2;
  --warn: #f3c874;
  --bad: #f19090;
  --r: 18px;
  --r-sm: 12px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --dock-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; min-height: 100dvh; color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.55; font-weight: 500; background: var(--bg);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(120, 126, 140, .22), transparent 62%),
    radial-gradient(760px 480px at 100% 6%, rgba(90, 95, 108, .20), transparent 60%),
    radial-gradient(900px 600px at 50% 120%, rgba(70, 74, 86, .22), transparent 60%),
    linear-gradient(180deg, #17181c 0%, #0e0f12 45%, #0a0b0d 100%);
}
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { max-width: 100%; display: block; }
code, pre { font-family: var(--mono); }
.hidden, [hidden] { display: none !important; }
::selection { background: rgba(255, 255, 255, .22); }
:focus-visible { outline: 2px solid rgba(255, 255, 255, .65); outline-offset: 2px; border-radius: 8px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i.sm { width: 16px; height: 16px; }
.i.lg { width: 26px; height: 26px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ============ header ============ */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 13, 15, .72); backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--line);
}
.top .wrap { height: 64px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: .02em; }
.brand b { font-weight: 800; color: var(--dim); }
.logo {
  width: 36px; height: 36px; border-radius: 11px; object-fit: contain; flex: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02));
  border: 1px solid var(--line-2); padding: 3px;
}
.nav { display: flex; gap: 4px; margin-left: 14px; }
.nav a {
  padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: var(--mute);
  display: flex; align-items: center; gap: 8px; transition: .18s;
}
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a.active { color: #fff; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--line); color: var(--mute); transition: .18s;
}
.icon-btn:hover { color: #fff; border-color: var(--line-2); background: var(--panel-2); transform: translateY(-1px); }
.icon-btn.wa:hover { color: #62e08e; }
.icon-btn.dc:hover { color: #9aa6ff; }

/* mobile dock */
.dock {
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom)); width: min(460px, 100% - 24px);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 6px;
  background: rgba(24, 25, 29, .84); backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--line-2); border-radius: 22px; box-shadow: 0 14px 40px rgba(0, 0, 0, .55);
}
.dock a {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 7px;
  border-radius: 16px; font-size: 10.5px; font-weight: 700; color: var(--dim); transition: .18s;
}
.dock a .i { width: 21px; height: 21px; }
.dock a.active { color: #fff; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }

/* ============ shared components ============ */
.btn {
  height: 42px; padding: 0 18px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; font-weight: 700; font-size: 13.5px; border: 1px solid var(--line-2); background: var(--panel);
  color: var(--text); transition: transform .15s, filter .15s, background .15s, border-color .15s; white-space: nowrap;
}
.btn:hover { background: var(--panel-2); border-color: rgba(255, 255, 255, .28); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--silver); color: #14151a; border-color: transparent; box-shadow: 0 6px 20px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .7); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.sm { height: 36px; padding: 0 13px; font-size: 12.5px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.done { background: rgba(134, 227, 178, .16); color: var(--ok); border-color: rgba(134, 227, 178, .4); box-shadow: none; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border: 1px solid transparent; white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.nokey, .badge.ok { color: var(--ok); background: rgba(134, 227, 178, .1); border-color: rgba(134, 227, 178, .26); }
.badge.key, .badge.warn { color: var(--warn); background: rgba(243, 200, 116, .1); border-color: rgba(243, 200, 116, .26); }
.badge.bad { color: var(--bad); background: rgba(241, 144, 144, .1); border-color: rgba(241, 144, 144, .26); }
.chip {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 8px; font-size: 11px; font-weight: 700;
  color: var(--mute); background: var(--panel); border: 1px solid var(--line); white-space: nowrap;
}

.card {
  position: relative; border-radius: var(--r); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .02));
  transition: transform .2s, border-color .2s, background .2s;
}
.card.hover:hover { transform: translateY(-3px); border-color: var(--line-2); background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); }

.eyebrow { font-size: 11px; letter-spacing: .16em; font-weight: 800; color: var(--dim); text-transform: uppercase; }

/* codebox */
.codebox { border: 1px solid var(--line-2); border-radius: 14px; background: #08090b; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.cb-head { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 14px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.dots i:nth-child(2) { background: rgba(255, 255, 255, .13); }
.dots i:nth-child(3) { background: rgba(255, 255, 255, .08); }
.cb-name { font-family: var(--mono); font-size: 11.5px; color: var(--dim); font-weight: 600; }
.cb-head .btn { margin-left: auto; }
.cb-body { margin: 0; padding: 12px 0; max-height: 300px; overflow: auto; counter-reset: ln; font-size: 12.5px; line-height: 1.75; color: #d5d8de; }
.ln { display: block; position: relative; padding: 0 16px 0 52px; white-space: pre-wrap; word-break: break-all; counter-increment: ln; }
.ln::before { content: counter(ln); position: absolute; left: 0; width: 34px; text-align: right; color: #4d525c; user-select: none; }
.t-str { color: #94dcb5; }
.t-kw { color: #bdb2f4; }
.t-fn { color: #8fc7f3; }
.t-num { color: #ecc67e; }
.t-cm { color: #6b717c; font-style: italic; }

.mini { display: flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .38); border: 1px solid var(--line); border-radius: 10px; padding: 3px 3px 3px 10px; min-width: 0; }
.mini code { flex: 1; min-width: 0; font-size: 11px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.mini button { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--mute); flex: none; transition: .15s; }
.mini button:hover { background: var(--panel-2); color: #fff; }
.mini button.done { color: var(--ok); }

/* inputs */
.field { position: relative; }
.field .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.input, .select {
  width: 100%; height: 46px; border-radius: 13px; padding: 0 14px; background: rgba(0, 0, 0, .3);
  border: 1px solid var(--line-2); color: var(--text); outline: none; transition: border-color .15s, background .15s;
}
.field .input { padding-left: 44px; }
.input:focus, .select:focus { border-color: rgba(255, 255, 255, .45); background: rgba(0, 0, 0, .42); }
.input::placeholder { color: var(--dim); }
.select { appearance: none; padding-right: 34px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.select option { background: #17181c; }

/* ============ pages ============ */
main { padding-top: 28px; }
.page { display: none; }
.page.active { display: block; animation: rise .4s cubic-bezier(.2, .7, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.page-head { margin-bottom: 20px; }
.page-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 4.2vw, 38px); letter-spacing: -.02em; margin: 6px 0 6px; }
.page-head p { color: var(--mute); max-width: 56ch; }

.sec { margin-top: 44px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(19px, 3vw, 24px); letter-spacing: -.01em; margin-top: 4px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--mute); padding: 6px 2px; }
.more:hover { color: #fff; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 28px 0 8px; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); font-size: 12px; font-weight: 700; color: var(--mute); }
.hero-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(134, 227, 178, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(134, 227, 178, 0); } 100% { box-shadow: 0 0 0 0 rgba(134, 227, 178, 0); } }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 6.4vw, 62px); line-height: 1.04; letter-spacing: -.035em; margin: 18px 0 16px; }
.hero h1 span { background: linear-gradient(180deg, #fff, #7d8391); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--mute); font-size: clamp(15px, 2vw, 17px); max-width: 48ch; }
.hero-cta { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.hero-cta .btn { height: 48px; padding: 0 22px; font-size: 14px; }
.hero-visual { position: relative; }
.hero-visual::before { content: ''; position: absolute; inset: -30px; background: radial-gradient(closest-side, rgba(170, 176, 190, .22), transparent); filter: blur(10px); z-index: -1; }
.hero-logo { width: 74px; height: 74px; border-radius: 22px; margin: 0 0 16px auto; padding: 8px; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 34px; }
.stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-family: var(--display); font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: 12px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }

/* grids */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .grid { gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .grid.dense { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* script card */
.sc { padding: 14px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; min-width: 0; }
.sc-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.game { font-size: 11px; font-weight: 800; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sc h3 { font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.25; letter-spacing: -.01em; display: flex; align-items: center; gap: 6px; }
.sc h3 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc h3 .i { color: var(--warn); fill: var(--warn); width: 14px; height: 14px; }
.sc .desc { font-size: 12.5px; line-height: 1.5; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 37px; }
.sc .btn { margin-top: auto; }
@media (min-width: 720px) { .sc { padding: 18px; gap: 12px; } .sc h3 { font-size: 17px; } .sc .desc { font-size: 13.5px; min-height: 40px; } }
@media (max-width: 400px) { .sc .badge { padding: 2px 7px 2px 6px; font-size: 9.5px; } .sc-top .game { font-size: 10px; } }

/* toolbar */
.toolbar { display: grid; gap: 10px; margin-bottom: 18px; }
.toolbar-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.toolbar-row.two { grid-template-columns: 1fr 128px; }
.toolbar-row.three { grid-template-columns: 1fr 1fr; }
.toolbar-row.three .field { grid-column: 1 / -1; }
@media (min-width: 720px) { .toolbar-row.two { grid-template-columns: 1fr 200px; } .toolbar-row.three { grid-template-columns: 1fr 180px 160px; } .toolbar-row.three .field { grid-column: auto; } }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; margin-inline: -16px; padding-inline: 16px; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .chips { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; } }
.fchip { height: 36px; padding: 0 15px; border-radius: 11px; font-weight: 700; font-size: 13px; color: var(--mute); background: var(--panel); border: 1px solid var(--line); white-space: nowrap; transition: .15s; flex: none; }
.fchip:hover { color: #fff; border-color: var(--line-2); }
.fchip.active { color: #14151a; background: var(--silver); border-color: transparent; }
.result-line { font-size: 12.5px; color: var(--dim); font-weight: 600; margin: -4px 0 14px; }

/* executor card */
.ex { overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.ex-thumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #24262c, #14151a); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.ex-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ex-thumb .initial { font-family: var(--display); font-weight: 800; font-size: 34px; color: rgba(255, 255, 255, .22); }
.ex-thumb .badge { position: absolute; top: 8px; left: 8px; backdrop-filter: blur(8px); background-color: rgba(10, 11, 13, .65); }
.ex-body { padding: 12px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.ex h3 { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex .meta { font-size: 11.5px; color: var(--dim); font-weight: 600; margin-top: -4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ex-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.ex-actions .btn.primary { flex: 1; min-width: 0; }
.ex-actions .icon-btn { width: 36px; height: 36px; border-radius: 10px; flex: none; }
@media (min-width: 720px) { .ex-body { padding: 16px; gap: 11px; } .ex h3 { font-size: 16px; } }

/* changelog */
.timeline { position: relative; display: grid; gap: 14px; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--line-2), transparent); }
.log { padding: 18px; position: relative; }
.log::before { content: ''; position: absolute; left: -22px; top: 24px; width: 11px; height: 11px; border-radius: 50%; background: #0c0d0f; border: 2px solid var(--mute); }
.log:first-child::before { background: var(--silver); border-color: transparent; box-shadow: 0 0 14px rgba(255, 255, 255, .5); }
.log-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.log-ver { font-family: var(--display); font-weight: 800; font-size: 18px; }
.log-top time { font-size: 12.5px; color: var(--dim); font-weight: 600; }
.log-line { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 14px; color: #cfd3da; }
.tag { flex: none; min-width: 66px; text-align: center; padding: 2px 8px; border-radius: 7px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; border: 1px solid; }
.tag.feature { color: #8fc7f3; border-color: rgba(143, 199, 243, .3); background: rgba(143, 199, 243, .08); }
.tag.fix { color: var(--ok); border-color: rgba(134, 227, 178, .3); background: rgba(134, 227, 178, .08); }
.tag.breaking { color: var(--bad); border-color: rgba(241, 144, 144, .3); background: rgba(241, 144, 144, .08); }

/* community */
.comm { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .comm { grid-template-columns: 1fr 1fr; } }
.comm-card { padding: 24px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; overflow: hidden; }
.comm-icon { width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; border: 1px solid var(--line-2); }
.comm-icon .i { width: 28px; height: 28px; }
.comm-icon.wa { color: #62e08e; background: radial-gradient(circle at 30% 20%, rgba(98, 224, 142, .22), rgba(98, 224, 142, .04)); }
.comm-icon.dc { color: #9aa6ff; background: radial-gradient(circle at 30% 20%, rgba(154, 166, 255, .24), rgba(154, 166, 255, .04)); }
.comm-card h2 { font-family: var(--display); font-weight: 700; font-size: 20px; }
.comm-card p { color: var(--mute); font-size: 14px; }
.comm-card .btn { margin-top: 6px; }
.devs { margin-top: 14px; padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.devs h2 { font-family: var(--display); font-size: 18px; margin-top: 4px; }
.dev-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.dev-tags span { padding: 8px 14px; border-radius: 11px; font-weight: 700; font-size: 13px; background: var(--panel); border: 1px solid var(--line); color: var(--text); }

.cta-band { margin-top: 44px; padding: 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--display); font-size: clamp(18px, 3vw, 22px); font-weight: 700; }
.cta-band p { color: var(--mute); font-size: 14px; margin-top: 4px; }
.cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* states */
.state { grid-column: 1 / -1; padding: 40px 20px; text-align: center; color: var(--mute); border: 1px dashed var(--line-2); border-radius: var(--r); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.state .i { width: 30px; height: 30px; color: var(--dim); }
.state h3 { font-family: var(--display); font-size: 16px; color: var(--text); }
.skel { border-radius: var(--r); min-height: 180px; border: 1px solid var(--line); background: linear-gradient(100deg, rgba(255, 255, 255, .03) 30%, rgba(255, 255, 255, .08) 50%, rgba(255, 255, 255, .03) 70%); background-size: 220% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -220% 0; } }

/* modal / bottom sheet */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.modal-bg { position: absolute; inset: 0; background: rgba(5, 6, 8, .66); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: fade .2s; }
.sheet {
  position: relative; width: 100%; max-height: 90dvh; overflow-y: auto; padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #1c1d22, #131418); border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: 24px 24px 0 0; animation: sheet .3s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -20px 60px rgba(0, 0, 0, .5);
}
.sheet::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: -8px auto 14px; }
@media (min-width: 720px) {
  .modal { align-items: center; padding: 24px; }
  .sheet { width: min(660px, 100%); border-radius: 24px; border-bottom: 1px solid var(--line-2); padding: 28px; animation: pop .25s cubic-bezier(.2, .8, .2, 1); }
  .sheet::before { display: none; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.sheet:focus { outline: none; }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); color: var(--mute); }
.sheet-close:hover { color: #fff; background: var(--panel-2); }
.sheet-tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; padding-right: 44px; }
.sheet h2 { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 4vw, 28px); letter-spacing: -.02em; padding-right: 40px; }
.sheet .sd { color: var(--mute); margin: 8px 0 18px; font-size: 14.5px; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.sheet-note { margin-top: 14px; font-size: 12px; color: var(--dim); display: flex; gap: 8px; align-items: flex-start; }
.sheet-note .i { width: 15px; height: 15px; margin-top: 1px; }

.foot { margin-top: 56px; padding: 26px 0 8px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12.5px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.toast {
  position: fixed; left: 50%; z-index: 200; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  bottom: calc(var(--dock-h) + 22px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 14px; background: rgba(30, 31, 36, .96); border: 1px solid var(--line-2);
  font-weight: 700; font-size: 13.5px; box-shadow: 0 14px 40px rgba(0, 0, 0, .55); transition: .25s; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .i { color: var(--ok); width: 18px; height: 18px; }
.toast.err .i { color: var(--bad); }

/* ============ responsive ============ */
@media (min-width: 820px) {
  .dock { display: none; }
  body { padding-bottom: 0; }
  .toast { bottom: 32px; }
}
@media (max-width: 819px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 0; padding-top: 10px; }
  .hero-visual { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 26px; }
  .top .wrap { height: 58px; }
  .cta-btns, .cta-btns .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.ex-thumb > * { grid-area: 1 / 1; }
.ex-thumb .badge { place-self: start; margin: 8px; }
.ex-actions .btn { text-decoration: none; }
