@font-face{font-family:Golos;src:url("/golos-latin.woff2") format("woff2");font-weight:400 900;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+20AA}
@font-face{font-family:Golos;src:url("/golos-cyrillic.woff2") format("woff2");font-weight:400 900;font-display:swap;unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Manrope;src:url("/manrope-latin.woff2") format("woff2");font-weight:200 800;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+20AA}
@font-face{font-family:Manrope;src:url("/manrope-cyrillic.woff2") format("woff2");font-weight:200 800;font-display:swap;unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}

:root {
  --paper:#f4f6fc;
  --surface:#fff;
  --ink:#18223c;
  --muted:#53617d;
  --line:#e2e8f4;
  --primary:#2852e4;
  --primary-hover:#163bcc;
  --primary-soft:#edf1ff;
  --yes:#13714d;
  --yes-soft:#eaf8f0;
  --no:#a72d55;
  --no-soft:#fff0f4;
  --display:Manrope,system-ui,sans-serif;
  --body:Golos,system-ui,sans-serif;
  --gutter:12px;
  --gap:12px;
  --plot-height:180px;
  --radius:18px;
  --z-sticky:100;
  --z-nav:400;
  --z-toast:900;
  color:var(--ink);
  background:var(--paper);
  font:16px/1.5 var(--body);
  scrollbar-color:#b5c2e6 var(--paper);
  scrollbar-width:thin;
  scroll-padding-top:85px;
  scroll-padding-bottom:calc(80px + env(safe-area-inset-bottom));
}
*, *::before, *::after { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; min-width:0; padding-bottom:calc(66px + env(safe-area-inset-bottom)); }
body:has(dialog[open]) { overflow:hidden; }
a { color:inherit; text-decoration:none; }
button, select, input, textarea { font:inherit; }
button,select { cursor:pointer; }
button { color:inherit; }
button:disabled { cursor:default; }
:focus-visible { outline:3px solid #6b87ff; outline-offset:3px; }
h1,h2,p { margin:0; }
h1,h2 { font-family:var(--display); line-height:1.2; }
strong { font-weight:650; }
.wrap { max-width:1440px; margin-inline:auto; padding-inline:var(--gutter); }
.sr-only,.skip:not(:focus) { position:absolute; width:1px; height:1px; padding:0; clip-path:inset(50%); overflow:hidden; white-space:nowrap; }
.skip:focus { position:fixed; z-index:var(--z-toast); padding:10px 16px; background:var(--surface); }
.header { position:sticky; top:0; z-index:var(--z-sticky); background:var(--surface); border-bottom:1px solid var(--line); }
.header-inner { position:relative; display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:64px; }
.brand { display:inline-flex; align-items:center; gap:8px; font:800 22px/.95 var(--display); letter-spacing:-.07em; white-space:nowrap; }
.brand-tail { font-weight:700; }
.brand-mark { display:flex; align-items:flex-end; justify-content:center; gap:2px; flex:none; width:32px; height:32px; padding:8px 6px; border-radius:9px; background:var(--primary); box-shadow:0 3px 8px #2852e433; }
.brand-mark i { width:4px; height:6px; background:white; border-radius:1px; transform:skewY(-16deg); }
.brand-mark i:nth-child(2) { height:10px; }
.brand-mark i:nth-child(3) { height:16px; }
.desktop-nav { display:none; }
.header-actions { display:flex; align-items:center; gap:6px; }
.header-actions button { min-height:44px; white-space:nowrap; }
.wallet,.donate-button,.menu-button { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:0 9px; border:0; border-radius:10px; background:var(--primary-soft); color:#2042b1; font-size:.875rem; font-weight:680; font-variant-numeric:tabular-nums; }
.wallet-unit,.donate-button { display:none; }
.coin { display:inline-grid; place-items:center; width:21px; height:21px; border-radius:50%; background:#dbe4ff; font-weight:800; }
.menu-button { width:44px; padding:0; color:var(--ink); background:transparent; }
.menu-button span { width:18px; height:2px; background:currentColor; border-radius:2px; box-shadow:0 -5px,0 5px; }
.mobile-menu { position:absolute; z-index:var(--z-nav); top:calc(100% + 5px); right:var(--gutter); display:grid; min-width:154px; padding:6px; border:1px solid var(--line); border-radius:13px; background:var(--surface); box-shadow:0 12px 32px #2736531f; }
.mobile-menu a,.mobile-menu button { appearance:none; border:0; display:flex; align-items:center; padding:6px 10px; min-height:44px; background:transparent; font-size:.875rem; border-radius:8px; }
.mobile-menu a:hover,.mobile-menu button:hover { background:var(--primary-soft); }
.market-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:var(--gap); padding-top:20px; }
.event-intro { display:flex; align-items:center; min-width:0; gap:11px; margin:0 0 3px; }
.event-symbol { width:50px; height:50px; flex:none; align-self:flex-start; position:relative; display:grid; place-items:center; border-radius:15px; overflow:hidden; background:#dce5ff; isolation:isolate; }
.event-symbol::before { content:""; position:absolute; inset:0; background:repeating-linear-gradient(135deg, transparent 0 7px, #fff6 7px 8px); }
.note { display:grid; place-items:start center; padding-top:2px; width:28px; height:23px; border:2px solid #2e55dd; border-radius:5px; color:#2141af; background:#f0f3ff; transform:translate(1px,-6px) rotate(-12deg); font:800 11px/1 var(--display); }
.note span { display:grid; place-items:center; width:14px; height:14px; border-radius:50%; background:#dde5ff; }
.envelope { position:absolute; left:20%; top:47%; width:60%; height:36%; overflow:hidden; border-radius:4px; background:#2852e4; transform:rotate(8deg); box-shadow:1px 3px 5px #0e267737; }
.envelope::before { content:""; position:absolute; inset:-55% 15% 45%; border:1px solid #b4c5ff; transform:rotate(45deg); border-radius:3px; }
.event-head { min-width:0; }
.event-meta { display:flex; align-items:center; flex-wrap:wrap; gap:6px 9px; margin-bottom:5px; color:var(--muted); font-size:.75rem; font-weight:600; }
.market-status { display:inline-flex; align-items:center; gap:6px; color:var(--muted); }
.market-status[data-status="open"] { color:var(--yes); }
.market-status[data-status="resolved"] { color:#2042b1; }
.market-status i,.meta-dot,.chart-key i { background:currentColor; border-radius:50%; flex:none; }
.market-status i { width:7px; height:7px; }
.meta-dot { width:3px; height:3px; opacity:.45; }
h1 { font-size:1.125rem; font-weight:800; letter-spacing:-.034em; overflow-wrap:anywhere; }
.deadline { display:flex; align-items:center; gap:6px; margin-top:6px; color:var(--muted); font-size:.75rem; font-weight:530; }
.icon { display:inline-block; position:relative; width:16px; height:16px; flex:none; color:inherit; }
.icon-clock { width:14px; height:14px; border:1.6px solid currentColor; border-radius:50%; }
.icon-clock::after { content:""; position:absolute; left:5px; top:2px; width:3px; height:5px; border:solid currentColor; border-width:0 0 1.5px 1.5px; }
.icon-wallet { border:1.6px solid currentColor; height:13px; border-radius:3px; }
.icon-wallet::before { content:""; position:absolute; right:-1.6px; width:7px; height:6px; top:2px; border:1.5px solid currentColor; border-radius:2px; background:var(--surface); }
.icon-market::before { content:""; position:absolute; inset:0; background:currentColor; clip-path:polygon(0 76%,32% 45%,53% 59%,87% 12%,73% 12%,73% 0,100% 0,100% 29%,89% 29%,89% 21%,56% 77%,32% 62%,9% 86%); }
.panel { min-width:0; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); box-shadow:0 5px 20px #192b6010; }
.chart-panel { padding:15px 14px 8px; }
.chart-head { display:flex; align-items:flex-start; gap:8px; justify-content:space-between; padding-bottom:11px; }
.chart-head h2,.volume span { display:block; color:var(--muted); font-family:var(--body); font-size:.8125rem; font-weight:600; }
.probability { color:var(--primary); font:800 28px/1.04 var(--display); letter-spacing:-.06em; margin-top:4px; font-variant-numeric:tabular-nums; }
.probability span { font-size:.64em; margin-left:.09em; }
.volume { display:grid; justify-items:end; gap:3px; text-align:right; }
.volume strong { font:800 .98rem/1.4 var(--display); overflow-wrap:anywhere; }
.chart-plot { position:relative; height:var(--plot-height); border:1px solid #eaf0fd; border-radius:10px; overflow:hidden; background:linear-gradient(180deg,#f4f7ff,#fff); }
.chart-plot canvas { display:block; width:100%; height:100%; }
.chart-inspect { position:absolute; inset:6px auto auto 7px; padding:3px 6px; background:var(--surface); color:#2042b1; font-size:.75rem; border:1px solid var(--line); border-radius:6px; pointer-events:none; }
.chart-footer { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.chart-key { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:.75rem; font-weight:565; }
.chart-key i { width:7px; height:7px; color:var(--primary); }
.chart-explainer { font-size:.8125rem; color:var(--muted); border-top:1px solid var(--line); }
.chart-explainer summary { cursor:pointer; min-height:44px; padding-block:11px; font-weight:640; }
.chart-explainer p { margin-bottom:10px; max-width:72ch; }
.ranges { display:flex; gap:2px; }
.ranges button { min-height:44px; min-width:44px; border:0; padding:0 8px; border-radius:8px; background:transparent; color:var(--muted); font-size:.8125rem; font-weight:650; }
.ranges button[aria-pressed="true"] { color:#2042b1; }
.ranges button[aria-pressed="true"]::after { content:""; display:block; height:2px; margin-top:2px; border-radius:2px; background:#5575ef; }
.ticket { padding:15px; }
.ticket-heading { display:flex; justify-content:space-between; gap:7px; align-items:center; margin-bottom:10px; }
.ticket-heading h2,.rules h2 { font-size:1.14rem; font-weight:800; letter-spacing:-.025em; }
.unit-tag { display:none; align-items:center; gap:4px; padding:4px 7px; border-radius:6px; color:#425a98; background:var(--primary-soft); font-size:.6875rem; font-weight:670; white-space:nowrap; }
.unit-tag span { font-size:.8125rem; line-height:1; }
.trade-modes { display:flex; gap:6px; justify-content:space-between; align-items:center; border-bottom:1px solid var(--line); margin-bottom:12px; }
.actions { display:flex; gap:13px; }
.actions button { border:0; border-bottom:2px solid transparent; min-height:44px; padding:0 0 2px; background:transparent; color:var(--muted); font-size:.875rem; font-weight:650; }
.actions button[aria-pressed="true"] { color:var(--primary); border-bottom-color:var(--primary); }
.select-label { position:relative; }
.select-label::after,.chevron { display:inline-block; width:7px; height:7px; border:solid currentColor; border-width:0 1.5px 1.5px 0; }
.select-label::after { content:""; position:absolute; right:4px; top:17px; transform:rotate(45deg); pointer-events:none; }
.select-label select { display:block; min-height:44px; border:0; appearance:none; background:transparent; padding:0 17px 0 4px; color:var(--muted); font-size:.8125rem; font-weight:600; }
.outcomes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:15px; }
.outcome { display:flex; justify-content:space-between; align-items:center; gap:3px; padding:0 10px; min-height:50px; border:1px solid transparent; border-radius:10px; font-weight:700; color:var(--outcome-ink); background:var(--outcome-paper); }
.outcome strong { font-weight:720; font-variant-numeric:tabular-nums; }
.yes { --outcome-ink:var(--yes); --outcome-paper:var(--yes-soft); --outcome-line:#72b697; }
.no { --outcome-ink:var(--no); --outcome-paper:var(--no-soft); --outcome-line:#d78da6; }
.outcome[aria-pressed="true"] { border-color:var(--outcome-line); box-shadow:inset 0 0 0 1px var(--outcome-line); }
.amount-field { margin-bottom:9px; }
.amount-field label { display:block; font-size:.875rem; font-weight:650; }
.amount-label { display:flex; align-items:center; justify-content:space-between; gap:5px 8px; flex-wrap:wrap; }
.amount-label span { color:var(--muted); font-size:.75rem; }
.amount-box { display:flex; align-items:center; gap:8px; width:100%; border:1px solid #dbe3f3; border-radius:10px; background:#fafbff; padding-inline:11px; margin-top:5px; }
.amount-box:focus-within { border-color:var(--primary); outline:2px solid #d9e2ff; }
.amount-box input { width:100%; min-width:0; min-height:48px; background:transparent; border:0; color:var(--ink); font-size:1.125rem; font-weight:680; font-variant-numeric:tabular-nums; outline:none; }
.amount-box span { color:var(--muted); font-size:.875rem; font-weight:650; white-space:nowrap; }
.presets { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; }
.presets button { min-height:44px; border:1px solid var(--line); padding:0 3px; border-radius:8px; background:var(--surface); color:#445376; font-size:.8125rem; font-weight:640; }
.presets button:hover,.positions-link:hover { background:var(--primary-soft); }
.quote-line { display:flex; justify-content:space-between; align-items:baseline; gap:10px; min-height:42px; margin-top:14px; padding:9px 0; border-top:1px solid var(--line); color:var(--muted); font-size:.8125rem; }
.quote-line strong { color:var(--ink); font-size:1rem; text-align:right; }
.feedback { color:var(--muted); font-size:.8125rem; overflow-wrap:anywhere; }
.feedback:not(:empty) { padding-bottom:9px; }
.feedback[data-error="true"] { color:var(--no); }
[aria-invalid="true"] { color:var(--no); }
.primary,.secondary { min-height:44px; padding:0 14px; border:1px solid transparent; border-radius:9px; background:var(--primary); color:var(--surface); font-size:.875rem; font-weight:670; }
.primary:hover:not(:disabled) { background:var(--primary-hover); }
.primary:disabled { background:#e2e8fe; color:#4e5f95; }
.secondary { border-color:var(--line); color:var(--ink); background:var(--surface); }
.secondary:hover { background:var(--primary-soft); }
.trade-submit { width:100%; min-height:48px; }
.positions-link { width:100%; display:flex; align-items:center; gap:9px; min-height:44px; margin-top:10px; border:0; border-radius:8px; padding:0 7px; background:transparent; color:var(--muted); font-size:.8125rem; font-weight:650; }
.positions-link .chevron { margin-left:auto; transform:rotate(-45deg); }
.settlement { padding:14px; background:var(--primary-soft); border:1px solid #d8e2ff; border-radius:10px; color:#2d4584; overflow-wrap:anywhere; }
.settlement strong { display:block; color:#1b3996; margin-bottom:4px; }
.settlement-evidence { margin-top:7px; font-size:.875rem; }
.rules { padding:3px 2px 5px; }
.rules p { margin-top:7px; color:var(--muted); font-size:.9rem; max-width:80ch; }
.rules strong { color:var(--ink); }
.activity { overflow:visible; padding:0 12px; }
.tabs { display:flex; gap:0; border-bottom:1px solid var(--line); }
.tabs button { min-height:50px; max-width:100%; padding:4px 7px; border:0; border-bottom:2px solid transparent; background:none; color:var(--muted); font-weight:650; font-size:.75rem; overflow-wrap:anywhere; }
.tabs button[aria-selected="true"] { color:var(--primary); border-color:var(--primary); }
.tabs span { border-radius:10px; background:var(--primary-soft); padding:2px 5px; font-size:.6875rem; font-weight:680; }
.pane { padding:13px 0; }
.comment-form { display:grid; gap:8px; }
.comment-form textarea,.text-input { width:100%; min-height:62px; background:#fafbff; border:1px solid #dbe3f3; border-radius:9px; padding:10px 11px; color:var(--ink); font-size:.9rem; }
.resize-none { resize:none; }
.comment-actions { display:flex; justify-content:space-between; align-items:center; gap:8px; color:var(--muted); font-size:.75rem; }
.feed { display:grid; gap:0; margin:0; padding:0; list-style:none; }
.feed li { display:flex; align-items:flex-start; gap:9px; padding:12px 0; border-top:1px solid var(--line); }
.feed li:first-child { border-top:0; }
.feed .empty { color:var(--muted); font-size:.875rem; padding:12px 0; }
.avatar { flex:none; display:grid; place-items:center; width:31px; height:31px; border-radius:9px; background:var(--primary-soft); color:#2948a6; font-size:.7rem; font-weight:750; }
.entry { flex:1; min-width:0; font-size:.875rem; overflow-wrap:anywhere; }
.entry p { white-space:pre-wrap; }
.entry-header { display:flex; align-items:baseline; flex-wrap:wrap; gap:3px 8px; margin-bottom:2px; }
.entry-header time { color:var(--muted); font-size:.75rem; }
.entry-detail { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:5px 12px; color:var(--muted); }
.entry-detail .outcome-text { color:var(--outcome-ink); background:var(--outcome-paper); border-radius:6px; padding:2px 6px; }
.personal-summary { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:10px; }
.personal-summary span { padding:5px 8px; border-radius:6px; background:var(--primary-soft); color:#2f478c; font-size:.8125rem; }
.personal-heading { margin:12px 0 5px; font:800 1rem/1.2 var(--display); }
.cancel-order { align-self:center; flex:none; min-height:44px; }
.footer { display:flex; align-items:baseline; flex-wrap:wrap; gap:3px 10px; padding:8px 0 17px; color:var(--muted); font-size:.75rem; }
.footer span:first-child { color:var(--ink); font:800 .875rem/1.3 var(--display); }
.bottom-nav { position:fixed; z-index:var(--z-nav); inset:auto 0 0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); background:var(--surface); border-top:1px solid var(--line); padding:4px 5px calc(4px + env(safe-area-inset-bottom)); box-shadow:0 -4px 16px #2336670c; }
.bottom-nav a { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:50px; gap:4px; border-radius:8px; color:var(--muted); font-size:.75rem; font-weight:640; }
.bottom-nav .bottom-current { color:#2445b8; background:var(--primary-soft); }
dialog { width:min(400px,calc(100% - 26px)); max-height:calc(100% - 26px); overflow:auto; padding:23px; border:1px solid var(--line); border-radius:19px; color:var(--ink); background:var(--surface); box-shadow:0 24px 80px #14234e44; }
dialog::backdrop { background:#18254668; backdrop-filter:blur(2px); }
dialog h2 { font-size:1.35rem; font-weight:800; letter-spacing:-.035em; margin:10px 0 7px; }
dialog p { font-size:.9rem; color:var(--muted); }
dialog label { display:block; margin-top:15px; font-size:.875rem; font-weight:650; }
.dialog-symbol { display:grid; place-items:center; width:42px; height:42px; border-radius:12px; background:var(--primary-soft); color:var(--primary); font-size:1.45rem; font-weight:800; }
.text-input { margin-top:5px; min-height:46px; }
.dialog-actions { display:flex; flex-wrap:wrap; gap:7px; margin-top:15px; }
.dialog-actions button { flex:1 1 auto; }
.toast { position:fixed; z-index:var(--z-toast); right:var(--gutter); bottom:calc(72px + env(safe-area-inset-bottom)); max-width:min(350px,calc(100% - 2 * var(--gutter))); border-radius:10px; padding:11px 15px; background:var(--ink); color:var(--surface); box-shadow:0 5px 22px #192b602b; font-size:.875rem; }

@media (min-width:375px) {
  :root { --gutter:16px; --gap:16px; --plot-height:220px; }
  h1 { font-size:1.25rem; }
  .probability { font-size:32px; }
  .event-symbol { width:57px; height:57px; }
  .ticket,.chart-panel { padding-inline:17px; }
  .unit-tag { display:inline-flex; }
  .activity { padding-inline:15px; }
  .tabs { gap:5px; }
  .tabs button { padding-inline:7px; font-size:.8125rem; }
}
@media (min-width:480px) {
  .event-intro { gap:14px; }
  .header-inner { min-height:66px; }
  .wallet-unit { display:inline; }
  .wallet { padding-inline:11px; }
}
@media (min-width:640px) {
  :root { --gutter:20px; --gap:20px; --plot-height:240px; }
  body { padding-bottom:0; }
  h1 { font-size:1.375rem; }
  .bottom-nav { display:none; }
  .desktop-nav { display:flex; margin-right:auto; }
  .desktop-nav a,.donate-button { display:none; }
  .desktop-nav a:first-child { display:inline-flex; }
  .desktop-nav a { padding:9px 8px; align-items:center; border-radius:7px; min-height:44px; font-size:.875rem; color:var(--muted); font-weight:620; white-space:nowrap; }
  .desktop-nav .nav-current { color:#2445b8; background:var(--primary-soft); }
  .header-inner { gap:17px; }
  .market-layout { padding-top:27px; }
  .event-symbol { width:63px; height:63px; }
  .event-meta,.deadline { font-size:.8125rem; }
  .chart-panel { padding-top:18px; }
  .chart-panel,.ticket,.activity { padding-inline:21px; }
  .tabs button { padding-inline:10px; }
  .toast { bottom:var(--gutter); }
}
@media (min-width:768px) {
  :root { --gutter:24px; --gap:24px; --plot-height:280px; }
  h1 { font-size:1.5rem; }
  .desktop-nav a:nth-child(2),.donate-button { display:inline-flex; }
  .donate-button { background:transparent; color:#435884; }
  .donate-button:hover { background:var(--primary-soft); color:var(--primary); }
  .donate-button span { font-size:1.2rem; line-height:1; }
  .market-layout { padding-top:33px; }
  .event-intro { gap:17px; }
  .event-symbol { width:70px; height:70px; border-radius:19px; }
  .note { width:34px; height:30px; padding-top:4px; }
  .envelope { border-radius:5px; }
  .probability { font-size:44px; }
  .rules { padding:0 4px; }
}
@media (min-width:1024px) {
  :root { --ticket-width:320px; }
  h1 { font-size:1.625rem; }
  .header-inner { min-height:69px; gap:24px; }
  .desktop-nav { gap:5px; }
  .desktop-nav a { display:inline-flex; padding-inline:13px; }
  .desktop-nav a:hover { background:var(--primary-soft); }
  .menu-button,.mobile-menu { display:none !important; }
  .market-layout { grid-template-columns:minmax(0,1fr) var(--ticket-width); grid-template-areas:"intro intro" "chart ticket" "rules ticket" "activity ticket" "footer footer"; align-items:start; }
  .event-intro { grid-area:intro; }
  .chart-panel { grid-area:chart; }
  .ticket { grid-area:ticket; position:sticky; top:calc(70px + var(--gap)); }
  .rules { grid-area:rules; }
  .activity { grid-area:activity; }
  .footer { grid-area:footer; }
  .ticket-heading { flex-wrap:wrap; }
}
@media (min-width:1280px) {
  :root { --gutter:32px; --gap:32px; --plot-height:320px; --ticket-width:360px; }
  h1 { font-size:1.75rem; }
  .header-inner { min-height:73px; gap:31px; }
  .market-layout { padding-top:38px; }
  .ticket { top:calc(74px + var(--gap)); padding:21px 23px 15px; }
  .chart-panel,.activity { padding-inline:24px; }
  .chart-head { padding-bottom:14px; }
  .chart-panel { padding-top:22px; }
}
@media (min-width:1536px) { .market-layout { padding-top:45px; } }
@media (prefers-reduced-motion:no-preference) { html { scroll-behavior:smooth; } }
@media (forced-colors:active) { .outcome[aria-pressed="true"],.ranges button[aria-pressed="true"] { outline:2px solid Highlight; outline-offset:-3px; } }
