/* Mobile first. One centred content column (header, main and footer share it); cards keep a sensible fixed width. High contrast, neutral palette: colour is reserved for urgency and the room badges. */
/* Palette. Dark: a blue-black base with slate surfaces; text is a soft grey-blue, headings a lighter tint, pure-ish white only for figures.
   Steel blue marks the active tab and links, brand green marks the logo and a short rule under section titles, amber/red are for urgency only. */
:root {
  --bg: #0a0e14; --bar: #0d131b; --panel: #121a24; --panel-2: #1a2431; --btn: #17212d; --line: #2a3a4d;
  --text: #c8d3df; --muted: #8a9bb0; --head: #e3ebf5; --strong: #f4f8fc;
  --link: #7fb0ff; --tab: #274468; --tab-line: #4a74ad; --tab-ink: #eaf2ff;
  --logo: #3dff85; --brand: #3dff85; --warn: #ffc247; --hot: #ff6b6b; --radius: 10px; --col: 1120px;
  --acr: #e0213f; --n888: #7fff00; --party: #ff7a2f; --ipoker: #f7b500;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6f9; --bar: #ffffff; --panel: #ffffff; --panel-2: #eaeff5; --btn: #e6ecf3; --line: #c3cfdc;
    --text: #1f2a37; --muted: #566678; --head: #0f1a28; --strong: #0b1420;
    --link: #1d5fc4; --tab: #d3e2f6; --tab-line: #6f93c4; --tab-ink: #10294a;
    --logo: #0a8a3f; --brand: #0a8a3f; --warn: #8a5300; --hot: #b3261e;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; padding-bottom: env(safe-area-inset-bottom); }
a { color: var(--link); }
button, select { font: inherit; }
.wrap { width: 100%; max-width: var(--col); margin: 0 auto; padding: 0 clamp(14px, 3vw, 24px); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }

/* header / footer sit inside the same column */
.top { position: sticky; top: 0; z-index: 5; background: var(--bar); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand b { font-weight: 800; color: var(--brand); }
main.wrap { padding-top: 14px; padding-bottom: 8px; }
.foot { margin-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; padding-top: 14px; padding-bottom: 28px; }
.foot p { margin: 6px 0; }

.summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 12px; }
.summary div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; min-width: 0; }
.summary b { display: block; color: var(--strong); font-size: 18px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.summary span { color: var(--muted); font-size: 12px; }

.controls { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; padding: 2px 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--btn); color: var(--text); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.chip img { width: 16px; height: 16px; object-fit: contain; }
.chip:hover { border-color: var(--tab-line); }
.chip[aria-pressed="true"] { background: var(--tab); color: var(--tab-ink); border-color: var(--tab-line); font-weight: 700; }
.sort select { background: var(--btn); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; font-size: 13px; max-width: 160px; }

/* Titles get their own row; amounts never compete with names for width. */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); align-items: start; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: grid; position: relative; overflow: hidden;
  grid-template-columns: 38px minmax(0, 1fr); column-gap: 10px; row-gap: 10px; align-items: start;
  grid-template-areas: "logo name" "meta meta" "ov ov" "foot foot"; }
.card.soon { border-color: var(--warn); }
.card.hot { border-color: var(--hot); }
.card.covered { opacity: .65; }
.logo { grid-area: logo; align-self: start; width: 38px; height: 38px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--muted); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.logo img { width: 24px; height: 24px; object-fit: contain; display: block; }
.logo.n-acr { border-left-color: var(--acr); } .logo.n-888 { border-left-color: var(--n888); } .logo.n-partypoker { border-left-color: var(--party); } .logo.n-ipoker { border-left-color: var(--ipoker); }
.name { grid-area: name; min-width: 0; font-weight: 700; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.ov { grid-area: ov; min-width: 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--strong); font-weight: 800; font-size: 25px; line-height: 1.2; letter-spacing: -.02em; overflow-wrap: anywhere; }
.card .ov small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.meta { grid-area: meta; margin-top: 2px; color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.meta b { color: var(--text); font-weight: 600; }
.meta b.meta-net, .meta b:last-child { color: var(--muted); font-weight: 500; }
.per { display: none; }
.foot-row { grid-area: foot; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 12px; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line); }
.foot-row > span { min-width: 0; overflow-wrap: anywhere; }
.foot-row > span:last-child { margin-left: auto; }
.clock { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text); }
.soon .clock { color: var(--warn); } .hot .clock { color: var(--hot); }
.tag { font-size: 10.5px; border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; margin-left: 4px; }
.bar { display: none; }

.empty, .status { color: var(--muted); font-size: 13px; text-align: center; margin: 16px 0; }

/* recent overlays: a compact list inside a scroll area */
.recent { margin: 26px 0 8px; }
.recent-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; }
.recent h2, .faq h2 { font-size: 1.15rem; margin: 0; letter-spacing: -.01em; }
.recent-head .muted { font-size: 13px; }
.recent-scroll { margin-top: 8px; max-height: min(62vh, 460px); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); scrollbar-width: thin; scrollbar-color: var(--muted) var(--panel-2); }
.recent-scroll::-webkit-scrollbar { width: 12px; } .recent-scroll::-webkit-scrollbar-track { background: var(--panel-2); } .recent-scroll::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 8px; border: 3px solid var(--panel-2); }
.recent-scroll:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.recent-list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.rrow { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 9px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; }
.rrow .logo { grid-area: auto; grid-column: 1; grid-row: 1 / span 2; width: 32px; height: 32px; align-self: center; }
.rrow .rname { grid-column: 2 / -1; grid-row: 1; } .rrow .rsub { grid-column: 2 / -1; grid-row: 2; }
.rrow .logo img { width: 20px; height: 20px; }
.rname { min-width: 0; font-weight: 600; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.rsub { min-width: 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.ramt { grid-row: 3; grid-column: 2 / -1; margin-top: 6px; color: var(--strong); font-weight: 800; font-size: 18px; overflow-wrap: anywhere; }
.ramt small { display: inline; margin-left: 8px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.rstate { font-weight: 700; color: var(--text); }
.rstate.open { color: var(--warn); }

.faq { margin: 28px 0 8px; }
.faq-grid { display: grid; gap: 10px; margin-top: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 340px)); justify-content: start; }
.faq-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; align-content: start; grid-template-columns: auto 1fr; column-gap: 10px; align-items: start; }
.faq-ico { grid-row: 1 / span 2; font-size: 24px; line-height: 1.1; }
.faq-card h3 { margin: 0 0 4px; font-size: 15px; }
.faq-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.faq-card p b { color: var(--text); font-weight: 700; }

@media (min-width: 720px) {
  body { font-size: 16px; }
  .summary { gap: 10px; grid-template-columns: repeat(4, 1fr); } .summary b { font-size: 21px; }
  .card { padding: 11px 14px; }
  .ov { font-size: 27px; }
  .rrow { padding: 10px 12px; grid-template-columns: 34px minmax(0, 1fr) auto; }
  .recent h2, .faq h2 { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: no-preference) { .card { transition: border-color .2s; } }

/* footer links and the plain text pages */
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }
.foot-links a { color: var(--text); font-weight: 600; text-decoration: none; font-size: 13.5px; }
.foot-links a:hover { text-decoration: underline; }
.page { padding-top: 20px; padding-bottom: 8px; }
.page h1 { color: var(--strong); font-size: 1.6rem; margin: 0 0 8px; letter-spacing: -.02em; }
.page .lede { font-size: 1.05rem; color: var(--muted); margin: 0 0 18px; }
.page h2 { font-size: 1.15rem; margin: 22px 0 6px; }
.page p, .page li { color: var(--text); line-height: 1.6; }
.page ul { padding-left: 1.2em; }
.page li { margin: 4px 0; }
.page .muted { color: var(--muted); }
.foot-credit { margin-top: 12px !important; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); }
.foot-credit a { color: var(--text); font-weight: 600; }

/* top navigation: section jump links, scrollable on narrow screens */
html { scroll-behavior: smooth; }
#overlays, #recent, #faq { scroll-margin-top: 64px; }
.top-in { gap: 14px; }
.topnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: auto; min-width: 0; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { flex: none; color: var(--text); text-decoration: none; font-size: 13.5px; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.topnav a:hover, .topnav a:focus-visible { background: var(--tab); color: var(--tab-ink); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* skip link and the mobile menu (hamburger) */
.skip { position: absolute; left: 8px; top: -60px; z-index: 20; background: var(--tab); color: var(--tab-ink); border: 1px solid var(--tab-line); padding: 8px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.navtoggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--tab-line); border-radius: 10px; background: var(--tab); cursor: pointer; position: relative; flex: none; }
.navtoggle span, .navtoggle span::before, .navtoggle span::after { content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--tab-ink); border-radius: 2px; transition: transform .2s, top .2s, opacity .2s; }
.navtoggle span { top: 21px; } .navtoggle span::before { top: -7px; left: 0; right: 0; } .navtoggle span::after { top: 7px; left: 0; right: 0; }
.nav-open .navtoggle span { background: transparent; }
.nav-open .navtoggle span::before { top: 0; transform: rotate(45deg); } .nav-open .navtoggle span::after { top: 0; transform: rotate(-45deg); }
@media (max-width: 720px) {
  .navtoggle { display: block; }
  .brand span { display: inline; }
  .topnav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; overflow: visible; margin: 0; padding: 6px clamp(14px, 3vw, 24px) 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav-open .topnav { display: flex; }
  .topnav a { padding: 13px 4px; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .topnav a:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .navtoggle span, .navtoggle span::before, .navtoggle span::after { transition: none; } }

/* headings and card titles use the heading tint; section titles get a short brand-green rule */
.recent h2, .faq h2, .page h2, .page h1, .faq-card h3, .name, .rname { color: var(--head); }
.page h1 { color: var(--strong); }
.faq h2::after, .page h1::after { content: ""; display: block; width: 34px; height: 3px; border-radius: 2px; background: var(--brand); margin-top: 7px; }
.recent-head { align-items: baseline; position: relative; padding-bottom: 12px; }
.recent-head::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 2px; background: var(--brand); }
.card:hover, .rrow:hover, .faq-card:hover { border-color: var(--tab-line); }
.summary div { background: var(--panel); }
.foot { background: var(--bar); }
