
/* ══════════════════════════════════════════════════════════════
   FONTS
   ══════════════════════════════════════════════════════════════ */
@font-face{font-family:'Nunito';src:url('./fonts/Nunito-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:'Nunito';src:url('./fonts/Nunito-SemiBold.ttf') format('truetype');font-weight:600;font-display:swap}
@font-face{font-family:'League Spartan';src:url('./fonts/LeagueSpartan-Bold.otf') format('opentype');font-weight:700;font-display:swap}

/* ══════════════════════════════════════════════════════════════
   TOKENS  —  square-ish, flat, ruled.  Cloudflare console style.
   ══════════════════════════════════════════════════════════════ */
:root{
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: 'Nunito', system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: 'League Spartan', 'Nunito', system-ui, sans-serif;

  --accent:#1fb978;
  --accent-soft:#2ad68d;
  --gold:#f5b721;
  --violet:#8b7cf6;
  --teal:#2fb3c4;
  --coral:#f0714f;
  --blue:#4d8dff;

  /* small radii — this is the main visual correction */
  --r:6px; --r-lg:8px;

  --sidebar-w:236px;
  --rail-w:312px;
  --pad:20px;
}

html[data-theme="dark"]{
  --bg:#0b0e13;
  --bg-outer:#06090d;
  --panel:#11151c;
  --panel-2:#161b23;
  --panel-3:#1c222b;
  --line:#242c37;
  --line-2:#1b222b;
  --text:#e7ecf2;
  --text-2:#9fadbd;
  --muted:#6a7787;
  --globe-dot:#2b3644;
  --globe-lit:#2ad68d;
  --on-accent:#04140c;
  --shadow:none;
}
html[data-theme="light"]{
  --bg:#f2f3f5;
  --bg-outer:#e3e6ea;
  --panel:#ffffff;
  --panel-2:#f7f8fa;
  --panel-3:#eff1f4;
  --line:#dfe3e8;
  --line-2:#e9ecf0;
  --text:#1f2429;
  --text-2:#57616c;
  --muted:#8a939e;
  --globe-dot:#c4ced9;
  --globe-lit:#12a869;
  --on-accent:#ffffff;
  --shadow:0 1px 2px rgba(20,28,40,.05);
  --accent:#0d9c62;
}

/* ══════════════════════════════════════════════════════════════
   BASE
   ══════════════════════════════════════════════════════════════ */
*{box-sizing:border-box}
/* an author display rule beats the UA [hidden] rule, so make it explicit */
[hidden]{display:none !important}
html,body{margin:0;padding:0}
body{background:var(--bg-outer);color:var(--text);font-family:var(--sans);font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
input{font:inherit}
::-webkit-scrollbar{width:11px;height:11px}
::-webkit-scrollbar-thumb{background:var(--line);border-radius:6px;border:3px solid var(--bg)}
::-webkit-scrollbar-track{background:transparent}

/* ══════════════════════════════════════════════════════════════
   SHELL
   ══════════════════════════════════════════════════════════════ */
.shell{display:flex;min-height:100vh;background:var(--bg)}

/* ── SIDEBAR ─────────────────────────────────────────────────
   Plain rows, grey section labels, no pills or glow.          */
.sidebar{
  width:var(--sidebar-w);flex:0 0 var(--sidebar-w);
  position:sticky;top:0;height:100vh;display:flex;flex-direction:column;
  padding:16px 10px 14px;border-right:1px solid var(--line);background:var(--panel);
}
.brand{display:flex;align-items:center;gap:9px;padding:4px 8px 16px}
.brand-text{font-family:var(--display);font-weight:700;font-size:16px;letter-spacing:.2px}

.nav-label{font-family:var(--mono);font-size:9.5px;letter-spacing:1.4px;text-transform:uppercase;color:var(--muted);padding:0 10px;margin:14px 0 6px}
.nav{display:flex;flex-direction:column;gap:1px}
.nav-item{
  display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:var(--r);
  color:var(--text-2);font-size:13.5px;font-weight:600
}
.nav-item:hover{background:var(--panel-2);color:var(--text)}
.nav-item.active{background:var(--panel-3);color:var(--text)}
/* dark-mode row in the sidebar footer */
.nav-item.toggle{width:100%;text-align:left}
.switch{margin-left:auto;width:30px;height:17px;border-radius:99px;background:var(--panel-3);border:1px solid var(--line);position:relative;flex:0 0 30px;transition:background .18s,border-color .18s}
.switch i{position:absolute;top:2px;left:2px;width:11px;height:11px;border-radius:50%;background:var(--muted);transition:transform .18s,background .18s}
.nav-item.toggle.on .switch{background:var(--accent);border-color:var(--accent)}
.nav-item.toggle.on .switch i{transform:translateX(13px);background:#fff}
.nav-item .ico{width:16px;height:16px;flex:0 0 16px;opacity:.85}
.nav-item .ico svg{width:100%;height:100%;display:block}
.nav-item .count{margin-left:auto;font-family:var(--mono);font-size:10.5px;color:var(--muted)}
.nav-spacer{flex:1;min-height:12px}
/* pinned to the very bottom of the sidebar, whatever the nav above it is */
.side-foot{margin-top:auto;padding-top:8px}

/* ── MAIN ─────────────────────────────────────────────────── */
.main{flex:1;min-width:0;display:flex;flex-direction:column}

.topbar{
  position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:10px;
  padding:11px var(--pad);border-bottom:1px solid var(--line);background:var(--panel)
}
.burger{display:none;width:32px;height:32px;border-radius:var(--r);border:1px solid var(--line);place-items:center}
.burger svg{width:16px;height:16px}
.top-title{font-size:13.5px;font-weight:600;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-brand{display:none;align-items:center;gap:8px;min-width:0}
.top-brand .brand-text{font-size:15px;white-space:nowrap}
.top-right{margin-left:auto;display:flex;align-items:center;gap:8px}
.icon-btn{width:32px;height:32px;border-radius:var(--r);display:grid;place-items:center;border:1px solid var(--line);background:var(--panel-2);color:var(--text-2)}
.icon-btn:hover{background:var(--panel-3);color:var(--text)}
.icon-btn svg{width:15px;height:15px}
.btn{
  display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border-radius:var(--r);
  font-size:13px;font-weight:600;border:1px solid var(--line);background:var(--panel-2);white-space:nowrap
}
.btn:hover{background:var(--panel-3)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.btn.primary:hover{background:var(--accent-soft)}
.btn svg{width:14px;height:14px}
.btn.block{width:100%;justify-content:center}

.content{padding:var(--pad);display:grid;grid-template-columns:minmax(0,1fr) var(--rail-w);gap:18px;align-items:start}
.left{display:flex;flex-direction:column;gap:18px;min-width:0}
.rail{display:flex;flex-direction:column;gap:14px;min-width:0}

/* ══════════════════════════════════════════════════════════════
   PANEL PRIMITIVE  —  1px border, 6px radius, ruled header
   ══════════════════════════════════════════════════════════════ */
.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow)}
.panel-head{display:flex;align-items:center;gap:9px;padding:11px 14px;border-bottom:1px solid var(--line)}
.panel-head h3{margin:0;font-size:13.5px;font-weight:600}
.panel-head .sub{margin-left:auto;font-family:var(--mono);font-size:10.5px;color:var(--muted)}
.panel-body{padding:14px}
.panel-foot{padding:11px 14px;border-top:1px solid var(--line)}

.dot-live{width:6px;height:6px;border-radius:50%;background:var(--accent);flex:0 0 6px;animation:ping 2.2s ease-out infinite}
@keyframes ping{0%{box-shadow:0 0 0 0 rgba(31,185,120,.55)}70%{box-shadow:0 0 0 7px transparent}100%{box-shadow:0 0 0 0 transparent}}

/* ══════════════════════════════════════════════════════════════
   RIGHT RAIL
   ══════════════════════════════════════════════════════════════ */
/* notifications — one clickable row */
.notif{display:flex;align-items:center;gap:12px;padding:13px 14px;transition:border-color .15s}
.notif:hover{border-color:var(--accent)}
.notif-bell{position:relative;width:34px;height:34px;flex:0 0 34px;border-radius:var(--r);display:grid;place-items:center;background:var(--panel-3);border:1px solid var(--line);color:var(--text-2)}
.notif:hover .notif-bell{color:var(--accent)}
.notif-bell svg{width:17px;height:17px}
.notif-bell .badge{
  position:absolute;top:-5px;right:-5px;min-width:16px;height:16px;padding:0 4px;
  border-radius:99px;background:var(--accent);color:var(--on-accent);
  font-family:var(--mono);font-size:9.5px;font-weight:600;font-style:normal;
  display:grid;place-items:center;border:2px solid var(--panel)
}
.notif-body{flex:1;min-width:0}
.notif-body b{display:block;font-size:13.5px;font-weight:600}
.notif-body span{display:block;font-size:11.8px;color:var(--muted)}
.notif-arr{color:var(--muted);flex:0 0 auto;transition:transform .15s}
.notif-arr svg{width:14px;height:14px;display:block}
.notif:hover .notif-arr{transform:translateX(3px);color:var(--accent)}

/* ad board — drop a network snippet or your own creative into #adSlot */
.ad-slot{
  min-height:250px;margin:14px;border-radius:var(--r);
  border:1px dashed var(--line);background:var(--panel-2);
  display:grid;place-items:center;overflow:hidden
}
.ad-slot > *{max-width:100%}
.ad-ph{display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--muted);font-size:12px}
.ad-ph svg{width:30px;height:30px}
.ad-ph small{font-family:var(--mono);font-size:10px;letter-spacing:1px}

.help-list{display:flex;flex-direction:column}
.help-row{display:flex;gap:11px;align-items:center;padding:11px 14px;border-bottom:1px solid var(--line-2)}
.help-row:last-child{border-bottom:0}
.help-row:hover{background:var(--panel-2)}
.help-ico{width:28px;height:28px;flex:0 0 28px;border-radius:var(--r);display:grid;place-items:center;background:var(--panel-3);border:1px solid var(--line);color:var(--blue)}
.help-ico svg{width:15px;height:15px}
.help-txt h5{margin:0;font-size:12.8px;font-weight:600}
.help-txt p{margin:0;font-size:11.5px;color:var(--muted);line-height:1.4}
.help-row .arr{margin-left:auto;color:var(--muted)}
.help-row .arr svg{width:13px;height:13px;display:block}

.support .panel-body{display:flex;flex-direction:column;align-items:center;text-align:center;gap:11px;padding:16px 14px}
.agent{
  width:54px;height:54px;border-radius:50%;display:grid;place-items:center;
  background:var(--panel-3);border:1px solid var(--line);color:var(--accent)
}
.agent svg{width:28px;height:28px}
.support .panel-body p{margin:0;font-size:12.4px;color:var(--text-2);line-height:1.5}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
/* margin-top:auto pins it to the bottom of the screen on short pages
   (.main is a full-height column); on long pages it follows the content. */
.foot{margin-top:auto;display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;padding:16px var(--pad) 26px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.foot a:hover{color:var(--text)}
.foot .end{margin-left:auto;font-family:var(--mono);font-size:11px}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — shell only.
   A page's own breakpoints belong in that page's stylesheet.
   ══════════════════════════════════════════════════════════════ */
@media (max-width:1300px){
  .content{grid-template-columns:1fr}
  .rail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
}
@media (max-width:860px){
  :root{--pad:14px}
  .burger{display:grid}
  .sidebar{position:fixed;z-index:60;left:0;top:0;transform:translateX(-100%);transition:transform .22s ease}
  body.nav-open .sidebar{transform:none}
  .scrim{position:fixed;inset:0;z-index:55;background:rgba(0,0,0,.5);opacity:0;pointer-events:none;transition:opacity .22s}
  body.nav-open .scrim{opacity:1;pointer-events:auto}
  .top-title{display:none}
  .top-brand{display:flex}
}
@media (max-width:680px){
  .rail{grid-template-columns:1fr}
}
@media (max-width:520px){
  .top-right .btn{padding:7px 10px;font-size:12.5px}
  .top-brand .brand-text{font-size:14px}
}
@media (max-width:400px){
  .top-brand .brand-text{display:none}
}
@media (prefers-reduced-motion:reduce){*{animation:none !important;transition:none !important}}


/* ══════════════════════════════════════════════════════════════
   SIGN-IN — shared, because the top bar is on every page
   ══════════════════════════════════════════════════════════════ */
.coin-pill{
  display:inline-flex;align-items:center;gap:7px;
  padding:5px 12px;border:1px solid var(--line);border-radius:99px;
  background:var(--panel-2);font-size:13.5px
}
.coin-pill .coin-ico{width:18px;height:18px;display:block;flex:0 0 18px}
.coin-pill b{font-weight:600}
.top-right .who{
  display:inline-flex;flex-direction:column;line-height:1.25;
  font-size:13px;color:var(--text);margin:0 4px
}
.top-right .who small{font-size:10.5px;color:var(--muted)}

/* ── which app the login goes to ───────────────────────────
   Shown up front rather than guessed, because the two apps are
   separate accounts with separate coin balances and being put in
   the wrong one is confusing in a way that is hard to undo. */
.app-row{
  display:flex;align-items:center;gap:11px;margin:0 0 12px;
  padding:9px 11px;border:1px solid var(--line);border-radius:var(--r);
  background:var(--panel-2)
}
.app-row-ico{width:32px;height:32px;border-radius:8px;flex:0 0 32px;object-fit:cover}
.app-row-t{display:flex;flex-direction:column;line-height:1.3;min-width:0;flex:1}
.app-row-t b{font-size:13.5px;font-weight:600}
.app-row-t small{font-size:11.5px;color:var(--muted)}
.app-row .btn{flex:0 0 auto}

.app-choose{
  margin:-6px 0 12px;padding:10px;border:1px solid var(--line);
  border-radius:var(--r);background:var(--panel-2)
}
.app-choose-t{font-size:12px;color:var(--text-2);margin-bottom:8px}
.app-opt{
  display:flex;align-items:center;gap:11px;width:100%;
  padding:9px 10px;margin-bottom:6px;text-align:left;
  background:var(--panel);border:1px solid var(--line);
  border-radius:var(--r);color:var(--text);cursor:pointer
}
.app-opt:last-child{margin-bottom:0}
.app-opt:hover{border-color:var(--accent)}
.app-opt.on{border-color:var(--accent)}
.app-opt img{width:30px;height:30px;border-radius:7px;flex:0 0 30px;object-fit:cover}
.app-opt span{display:flex;flex-direction:column;line-height:1.3;min-width:0;flex:1}
.app-opt b{font-size:13px;font-weight:600}
.app-opt small{font-size:11.5px;color:var(--muted)}
.app-opt .tick{
  flex:0 0 auto;color:var(--accent);font-size:14px;
  opacity:0;transition:opacity .15s
}
.app-opt.on .tick{opacity:1}

.app-pick{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.app-pick .btn{flex:1 1 auto}

/* Logging out is destructive enough to look it, without shouting. */
.btn.danger{
  background:#7f1d1d;border-color:#7f1d1d;color:#fff
}
.btn.danger:hover{background:#991b1b;border-color:#991b1b;color:#fff}

.fld{display:block;margin-bottom:10px}
.fld span{display:block;font-size:12px;color:var(--text-2);margin-bottom:4px}
.fld input{
  width:100%;background:var(--panel-2);border:1px solid var(--line);
  border-radius:var(--r);color:var(--text);padding:9px 11px;font:inherit;font-size:13.5px
}
.fld input:focus{outline:none;border-color:var(--accent)}

.remember{
  display:flex;align-items:center;gap:8px;margin:2px 0 4px;
  font-size:12.8px;color:var(--text-2);cursor:pointer
}
.remember input{width:auto;margin:0;cursor:pointer}

.req-msg{margin:8px 0 0;font-size:12.5px;line-height:1.5;min-height:1px}
.req-msg.good{color:var(--accent)}
.req-msg.bad{color:#e07b7b}

@media (max-width:560px){
  .top-right .who{display:none}
  .coin-pill{padding:4px 9px;font-size:12.5px}
}


/* The sign-in dialog can open on any page, so the modal it uses
   has to be styled everywhere — not only where a page happens to
   ship its own. */
.overlay{
  position:fixed;inset:0;z-index:90;
  background:rgba(8,11,15,.55);
  -webkit-backdrop-filter:blur(7px) saturate(.9);
          backdrop-filter:blur(7px) saturate(.9);
  display:grid;place-items:center;padding:20px;
  opacity:0;pointer-events:none;transition:opacity .18s
}
.overlay.open{opacity:1;pointer-events:auto}
.modal{
  width:min(440px,100%);background:var(--panel);border:1px solid var(--line);
  border-radius:var(--r-lg);transform:translateY(8px);transition:transform .18s
}
.modal-head{display:flex;align-items:center;gap:10px;padding:13px 16px;border-bottom:1px solid var(--line)}
.modal-head h3{margin:0;font-size:14.5px;font-weight:600}
.modal-head .x{margin-left:auto;width:28px;height:28px;border-radius:var(--r);display:grid;place-items:center;color:var(--muted)}
.modal-body{padding:16px}
.note{
  display:flex;gap:9px;align-items:flex-start;margin-top:14px;padding:10px 12px;border-radius:var(--r);
  background:var(--panel-2);border:1px solid var(--line);font-size:12px;color:var(--text-2);line-height:1.45
}
.note svg{width:14px;height:14px;flex:0 0 14px;margin-top:2px;color:var(--muted)}

/* ── the way out of the login box ──────────────────────────
   Someone with no account cannot use that form at all, so the
   alternative gets a divider and a real button rather than a
   grey line of text under everything else. */
.or{
  display:flex;align-items:center;gap:12px;
  margin:18px 0 12px;color:var(--muted);
  font-family:var(--mono);font-size:10px;letter-spacing:1.2px;text-transform:uppercase
}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}

.btn.block.ghost{
  background:transparent;border:1px solid var(--line);color:var(--text);
  transition:border-color .15s,color .15s,background .15s
}
.btn.block.ghost:hover{border-color:var(--accent);color:var(--accent)}

.new-note{
  margin:9px 2px 0;font-size:11.5px;line-height:1.5;color:var(--muted);text-align:center
}

/* ── sponsored card ───────────────────────────────────────── */
.sponsor{
  /* no box of its own: the dotted ad slot around it is the frame */
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  width:100%;min-height:180px;padding:22px 18px;text-align:center;
  background:none;border:0;color:var(--text)
}
.sponsor:hover b{color:var(--accent)}
.sponsor b{font-size:15px;font-weight:650}
.sponsor span{font-size:12.5px;line-height:1.5;color:var(--text-2);max-width:26ch}
.sponsor .sponsor-go{
  margin-top:6px;padding:7px 14px;border-radius:8px;font-size:12.5px;font-weight:650;
  background:var(--accent);color:var(--on-accent,#04120b);max-width:none
}/* page rails set display:block on panels; hidden must still hide */
.panel[hidden]{display:none !important}

/* ── notifications: bell, panel, toast ───────────────────── */

.np{
  position:fixed;top:62px;right:16px;z-index:80;width:380px;max-width:calc(100vw - 24px);
  max-height:min(560px, calc(100vh - 80px));display:flex;flex-direction:column;
  background:var(--panel);border:1px solid var(--line);border-radius:14px;
  box-shadow:0 18px 50px -12px rgba(0,0,0,.45);overflow:hidden
}
.np-head{display:flex;align-items:center;gap:10px;padding:13px 14px;border-bottom:1px solid var(--line)}
.np-head b{font-size:14.5px;font-weight:650}
.np-all{margin-left:auto;font-size:12px;font-weight:600;color:var(--accent);padding:4px 6px;border-radius:6px}
.np-all:hover{background:var(--panel-2)}
.np-x{width:28px;height:28px;border-radius:7px;display:grid;place-items:center;color:var(--muted)}
.np-all[hidden] + .np-x{margin-left:auto}
.np-x:hover{background:var(--panel-2);color:var(--text)}
.np-x svg{width:14px;height:14px}
.np-list{overflow-y:auto}
.np-empty{padding:34px 22px;text-align:center;font-size:13px;line-height:1.55;color:var(--muted)}

.np-item{display:flex;gap:11px;padding:13px 14px;cursor:pointer;
  border-top:1px solid var(--line-2,var(--line));transition:background .15s}
.np-item:first-child{border-top:0}
.np-item:hover{background:var(--panel-2)}
.np-item.new{background:color-mix(in srgb, var(--accent) 6%, transparent)}
.np-ico{width:30px;height:30px;flex:0 0 30px;border-radius:8px;display:grid;place-items:center;
  background:var(--panel-2);color:var(--accent)}
.np-ico svg{width:16px;height:16px}
.k-offer .np-ico{color:var(--gold,#e3b341)}
.k-warning .np-ico{color:#e5484d}
.np-main{flex:1;min-width:0}
.np-t{font-size:13.5px;font-weight:600;line-height:1.35}
.np-item:not(.new) .np-t{font-weight:500;color:var(--text-2)}
.np-pin{display:inline-block;margin-right:6px;padding:1px 6px;border-radius:5px;vertical-align:1px;
  font-size:9.5px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;
  background:var(--panel-3);color:var(--muted)}
.np-when{margin-top:2px;font-size:11.5px;color:var(--muted)}
.np-body{display:none;margin-top:8px;font-size:13px;line-height:1.6;color:var(--text-2)}
.np-item.open .np-body{display:block}
.np-go{display:table;margin-top:10px;padding:6px 12px;border-radius:8px;
  font-size:12.5px;font-weight:650;background:var(--accent);color:var(--on-accent,#04120b)}
.np-dot{width:8px;height:8px;flex:0 0 8px;margin-top:6px;border-radius:50%;background:transparent}
.np-item.new .np-dot{background:var(--accent)}

.np-toast{
  position:fixed;right:16px;bottom:16px;z-index:85;width:340px;max-width:calc(100vw - 32px);
  display:flex;align-items:center;gap:11px;padding:12px 12px 12px 14px;
  background:var(--panel);border:1px solid var(--line);border-left:3px solid var(--accent);
  border-radius:12px;box-shadow:0 14px 40px -10px rgba(0,0,0,.5);animation:npIn .3s ease-out
}
.np-toast.k-warning{border-left-color:#e5484d}
.np-toast.k-offer{border-left-color:var(--gold,#e3b341)}
.np-toast small{display:block;font-size:11px;color:var(--muted)}
.np-toast b{display:block;font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.np-view{padding:6px 11px;border-radius:8px;font-size:12px;font-weight:650;background:var(--accent);color:var(--on-accent,#04120b)}
.np-tx{width:26px;height:26px;border-radius:7px;font-size:18px;line-height:1;color:var(--muted)}
.np-tx:hover{background:var(--panel-2);color:var(--text)}
@keyframes npIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

@media (max-width:640px){
  /* a sheet across the top on phones */
  .np{top:56px;left:8px;right:8px;width:auto;max-width:none;max-height:calc(100vh - 70px)}
  .np-toast{left:12px;right:12px;bottom:12px;width:auto}
  @media (prefers-reduced-motion:reduce){ .np-toast{animation:none} }/* a picture fills the ad slot edge to edge */
.sponsor.has-img{padding:0;min-height:0;display:block;border-radius:8px;overflow:hidden}
.sponsor.has-img img{display:block;width:100%;height:auto;max-height:320px;object-fit:cover}

/* ── cookie choice (app.js) ───────────────────────────────── */
.foot-btn{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}
.foot-btn:hover{color:var(--text)}
.cookiebar{position:fixed;left:16px;right:16px;bottom:16px;z-index:95;max-width:720px;margin:0 auto;
  display:flex;align-items:center;gap:14px 18px;flex-wrap:wrap;padding:14px 16px;
  background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 50px -18px rgba(0,0,0,.55)}
.cookiebar[hidden]{display:none}
.cookiebar .cb-t{flex:1 1 320px;min-width:0;font-size:13px;line-height:1.55;color:var(--text-2)}
.cookiebar .cb-t b{color:var(--text)}
.cookiebar .cb-t > b{display:block;font-size:14px;margin-bottom:2px}
.cookiebar .cb-t a{color:var(--accent)}
.cookiebar .cb-act{display:flex;gap:8px;flex:0 0 auto}
@media (max-width:560px){ .cookiebar{left:10px;right:10px;bottom:10px} .cookiebar .cb-act{width:100%} .cookiebar .cb-act .btn{flex:1;justify-content:center} }

/* the rules shown where people pay (wallet, sign-up, proxy buy pages) */
.pay-rules{margin:10px 0 4px;padding:11px 14px;border-radius:12px;font-size:12.8px;line-height:1.6;color:var(--text-2);
  background:color-mix(in srgb, var(--gold,#f5b721) 8%, var(--panel));border:1px solid color-mix(in srgb, var(--gold,#f5b721) 40%, var(--line))}
.pay-rules b{color:var(--text)}
.pay-rules a{color:var(--accent)}
.cfg-legal{margin:8px 0 0;font-size:12px;color:var(--muted);text-align:center}
.cfg-legal a{color:var(--accent)}
