/* ui.css — one button system for every bonusplay.tv page (2026-10-23).
   dchan: "update bonusplay.tv to have the same ux-design through the entire
   website". Each page still carries its own inline <style>; this file is
   linked AFTER it on every page, so the rules here win and every button reads
   the same. Roles (semantic set, 2026-10-23):
     primary   .btn.primary                blue #2563EB fill, white text — the one main action (nav .cta: Discord blurple)
     secondary everything else             grey fill, line border, white text
     claim     .claim-pill                 site blue #2563EB fill (bonus-codes.html --claim; blurple 10-25 → 10-29)
     danger    .acc-btn.danger             red outline (account.html)
   Shape: 8px corners, 44px minimum height (touch target), 14px/700 text.
   Brand buttons (Google white, Discord blurple) keep their own colours. */

.btn, .acc-btn, .load-more, .copy, .alerts-ctl button,
.state .btn, .fam-empty .btn, .emailin button, nav .cta, .drawer .cta {
  border-radius: 8px;
  min-height: 44px;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color .12s, border-color .12s, color .12s;
}
.acc-btn, .load-more, .copy, .alerts-ctl button, .state .btn, .fam-empty .btn, .emailin button {
  font-family: inherit;
  font-size: 14px;
}

/* secondary: the default for any button that is not the page's main action */
/* not inside the chat engine's dialogs and sheets: the engine styles its own buttons there (2026-11-18 app audit R1 / D2) */
.btn:not(.primary):not(.google):not(.discord):not(:is(.m-dlg,.m-sheet) *), .acc-btn:not(.primary):not(.danger),
.load-more, .copy, .alerts-ctl button, .state .btn, .fam-empty .btn {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
}
@media (hover: hover) {
  .btn:not(.primary):not(.google):not(.discord):not(:is(.m-dlg,.m-sheet) *):hover, .acc-btn:not(.primary):not(.danger):hover,
  .load-more:hover, .copy:hover, .alerts-ctl button:hover, .state .btn:hover, .fam-empty .btn:hover {
    border-color: var(--ink-faint);
    color: var(--ink);
    text-decoration: none;
  }
}

/* primary: gold */
.btn.primary, .acc-btn.primary, .emailin button, nav .cta, .drawer .cta {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--bg);
}
@media (hover: hover) {
  .btn.primary:hover, .acc-btn.primary:hover, .emailin button:hover, nav .cta:hover, .drawer .cta:hover {
    filter: none;
    background-image: linear-gradient(rgba(255,255,255,.14), rgba(255,255,255,.14));
    text-decoration: none;
  }
}

/* one focus ring everywhere: 2px gold, 2px gap, keyboard only */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* page titles: the same size and weight on every content page */
main .sec-head h1, main > h1, .acc-in h1 {
  font-size: clamp(32px, 4vw, 42px);
  line-height: 1.05;
}

/* the same size on every page (page rules were 12.5–15px; body raises specificity over them) */
body nav .cta { font-size: 13px; }
body .btn { font-size: 15px; }
body .copy { border-radius: 8px; }
/* the account sign-in hero keeps its larger title (dchan, 2026-10-22: same size as degenhud.com/account) */
body .offer .copy { border-radius: 8px; }
/* .btn.small (home page sections) stays the compact 13px size on purpose */
/* the same breathing room under the nav on every page whose main opens with its title block */
body main > .sec-head { padding-top: 40px; }

/* ── colour roles, enforced (2026-10-23, dchan: "the button colors are still mix matched") ──
   success = sends you to play / claim on Stake: green, white text (Play Now, Join, Claim). */
body .join-btn:not([aria-disabled="true"]) {
  background: var(--green);
  border: 1px solid var(--green);
  color: #0e1115;   /* dark on the one success green #3fb950 (dchan 2026-11-14); white read at 2.5:1 */
  border-radius: 8px;
  min-height: 44px;
  filter: none;
}
@media (hover: hover) {
  body .join-btn:not([aria-disabled="true"]):hover {
    filter: none;
    background-image: linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.12));
    text-decoration: none;
  }
}
/* gold is the ONE main action: section links on the home page are secondary */
body .btn.primary.small {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
}
@media (hover: hover) { body .btn.primary.small:hover { background-image: none; border-color: var(--ink-faint); } }
/* one secondary look: grey fill + line border (the signed-out claim pill was see-through) */
body .claim-pill.lock { background: var(--surface-2); border-color: var(--line); color: var(--ink); }

/* ── PRIMARY IS BLUE (2026-10-23, dchan: "Primary, have it blue") ──
   Buttons: #2563eb with white text (5.2:1). Links and the focus ring use the
   lighter #60a5fa, which reads on the near-black page (darker blue does not).
   Gold #fcc803 stays the BRAND colour: logo, headings, eyebrows, section bars. */
:root { --primary: #2563eb; --primary-hi: #1d4ed8; --link: #58a6ff; --seg-thumb: #2d343f; }
/* Primary buttons are Discord's "Blurple" (2026-10-25, dchan: "update the other blue
   buttons to the same color" as Claim): #5865F2, hover #4752C4, white text (~4.3:1,
   bold labels; Discord's own buttons are the same). Links keep #60a5fa. */
/* Back to blue (2026-10-28, dchan: "its not burple, its blue … Keep 'Continue with Discord' burple"): primary buttons
   are #2563EB (hover #1D4ED8, white text 5.2:1); Discord's own buttons (Continue with Discord, the nav Sign In /
   Open App pill) keep blurple #5865F2, and Claim keeps --claim. */
html:root { --primary: #2563eb; --primary-hi: #1d4ed8; --on-primary: #fff; }   /* --on-primary: text on the shared engine's primary buttons */
body .btn.primary, body .acc-btn.primary, body .emailin button, body nav .cta, body .drawer .cta,
body button.primary, body .send, body .frame .empty .cta,
body .seg button[aria-pressed=true], body .filters button[aria-pressed="true"] {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #fff;
}
@media (hover: hover) {
  body .btn.primary:hover, body .acc-btn.primary:hover, body .emailin button:hover, body nav .cta:hover,
  body .drawer .cta:hover, body button.primary:hover, body .send:hover, body .frame .empty .cta:hover {
    background: var(--primary-hi);
    background-image: none;
    border-color: var(--primary-hi);
    color: #fff;
    filter: none;
  }
}
/* links in text read blue; the focus ring follows */
body main p a:not([class]), body main li a:not([class]), body .fine a, body .sec-sub a:not([class]), body .acc-err a { color: var(--link); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline-color: var(--link); }

/* ── TEXT IS NEVER GOLD (2026-10-23, dchan: "instead of yellow font, can we have
   typical website default font color for text") ── Body text, headings, labels,
   counters and codes read in the normal text colour; gold stays only on the
   logo and small decorative marks (dots, bars), and links are blue. */
body .tile-card .name, body .codes-cta .codes-count, body .codes-link b,
body .offer h2, body .offer h2 a, body .offer .display a, body .nopurchase, body .nopurchase span, body .offer .code, body span.code,
body .ct-card h2, body .acc-hero .eyebrow, body .eyebrow,
body .bonus-card .v.code, body .bonus-card .v.code span, body .bc-modal .ticket .v,
body .sec-head .eyebrow, body .fam-head h2 { color: var(--ink); }
body .bonus-card .v.code { font-weight: 600; }
/* higher-specificity page rules (.offer .nopurchase, the Watch sidebar counter) */
body .offer .nopurchase, body .offer .nopurchase span, body .side .codes a.codes-link b, body .side .codes b { color: var(--ink); }

/* ── top menu: two-row strip (2026-10-23, dchan: "update top menu using strip") ──
   Row 1 = brand + page links + account; row 2 = the category tabs, replacing the
   Category dropdown. Tabs system (ux-design): one row that never wraps — it
   scrolls sideways with a fade on the cut edge — and the focus ring is not the
   active colour. It stays visible on mobile, so the drawer no longer repeats it.
   The active tab is set by auth.js from the section in view (home page only).
   Off for now (dchan 2026-10-23: "remove the 2nd row menu for now") — the pages
   are back on the Category dropdown; these rules only apply when a .cats row exists. */
/* Section links (#platforms…) land below the 60px sticky top bar, not under it
   (2026-10-26, dchan: "not aligned correctly with the page start for Partners"). */
html { scroll-padding-top: 60px; }
html:has(nav .cats) { scroll-padding-top: 116px; }
nav .cats { border-top: 1px solid var(--line); }
nav .cats-row {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none;
}
nav .cats-row::-webkit-scrollbar { display: none; }
nav .cats-row a {
  flex: none; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 13.5px; color: var(--ink-dim); white-space: nowrap;
  text-decoration: underline 2px transparent; text-underline-offset: 6px; transition: color .12s, text-decoration-color .12s;
}
/* the underline sits right under the label (dchan 2026-10-23), not on the strip's bottom edge */
nav .cats-row a[aria-current="true"] { color: var(--ink); text-decoration-color: var(--accent); }
nav .cats-row a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 4px; }
@media (hover: hover) { nav .cats-row a:hover { color: var(--accent); } }
nav .cats-row.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
nav .cats-row.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px); mask-image: linear-gradient(90deg, transparent, #000 32px); }
nav .cats-row.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); }
@media (max-width: 720px) {
  nav .cats-row { padding: 0 16px; gap: 20px; }
}

/* ── professional pass (ux-audit 2026-10-23) ──
   One content width on every page: the home page was 1240px and the codes
   page 1120px, so the logo and menu jumped sideways between pages. */
body .wrap { max-width: 1200px; }
/* Footer links: the 12px touch padding was inline-block, which pushed the
   commas away ("Disclaimer ,") and broke the line height. Inline padding keeps
   the tap area without moving the text. */
body .fine a { display: inline; padding: 10px 0; }
/* Home page before the first video: bonus codes lead, empty video rows hide. */
body.novideo header, body.novideo #rows { display: none; }
body.novideo #codes { padding-top: 48px; padding-bottom: 48px; }
body.novideo #codes .codes-cta .btn.primary.small { background: var(--primary); border-color: var(--primary); color: #fff; font-size: 15px; padding: 0 24px; }
@media (hover: hover) { body.novideo #codes .codes-cta .btn.primary.small:hover { background: var(--primary-hi); border-color: var(--primary-hi); } }
body .codes-lede { margin: -4px 0 20px; color: var(--ink-dim); font-size: 15px; text-align: center; }

/* ── Top bar as tabs, like degenhud.com (2026-10-23, dchan: "ux-restyle it
   similar to degenhud.com"). Links run the full bar height so the current
   page's 2px underline sits on the bar's bottom line; 600 weight with a
   little tracking; muted idle, white on hover and when current. Gold, the
   brand colour, is the underline (degenhud uses its own brand colour there).
   Desktop only: phones keep the burger menu. */
@media (min-width: 800px) {
  body nav .links { align-self: stretch; gap: 0; }
  body nav .links a {
    height: 100%; min-height: 0; box-sizing: border-box; padding: 0 14px;
    font-size: 14px; font-weight: 600; letter-spacing: .04em;
    color: var(--ink-dim); border-bottom: 2px solid transparent; margin-bottom: -1px;
    transition: color .15s, border-color .15s; text-decoration: none;
  }
  body nav .links a[aria-current="page"], body nav .links a[aria-current="location"] { color: var(--ink); border-bottom-color: var(--accent); }
  /* One top bar on every page (2026-10-26, dchan: "logo is not aligned in the same
     spot as in homepage"): the pages' own styles set 26 or 28px and 1.65 or 1.7. */
  body > nav { line-height: 1.7; }
  body > nav .wrap { gap: 28px; }
  body nav .links a:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 2px; }
  body nav .links + * , body nav .links ~ .cta { margin-left: 10px; }
}
@media (min-width: 800px) and (hover: hover) {
  body nav .links a:hover { color: var(--ink); }
}

/* ── Site footer (2026-10-23, dchan: "update footer with new details") ──
   Four columns on desktop: brand line, Site, Legal, Help; then the
   independence disclaimer and © on a base row. Two columns on tablets, one
   on phones. Left-aligned, unlike the old centred block. Links are 44px
   tall for touch, with no gap before commas (no inline lists now). */
body footer.site-foot { text-align: left; padding: 56px 0 32px; border-top: 1px solid var(--line); }
body .foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
body .foot-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: .02em; text-decoration: none; }
body .foot-logo img { width: 28px; height: 28px; object-fit: contain; }
body .foot-brand p { margin: 12px 0 0; color: var(--ink-dim); font-size: 14px; line-height: 1.6; max-width: 30em; }
body .foot-col { display: flex; flex-direction: column; align-items: flex-start; }
body .foot-col h2 { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
body .foot-col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink-dim); font-size: 14px; text-decoration: none; }
body .foot-note { margin: 6px 0 0; color: var(--ink-faint); font-size: 12.5px; line-height: 1.5; }
body .foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; gap: 24px; justify-content: space-between; align-items: flex-start; }
body .foot-base p { margin: 0; color: var(--ink-faint); font-size: 12.5px; line-height: 1.6; max-width: 62em; }
body .foot-copy { flex: none; white-space: nowrap; }
@media (hover: hover) { body .foot-col a:hover, body .foot-logo:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } }
body .foot-col a:focus-visible, body .foot-logo:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 3px; }
@media (max-width: 880px) { body .foot-grid { grid-template-columns: 1fr 1fr; } body .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) {
  body .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  body .foot-col a { min-height: 44px; }
  body .foot-base { flex-direction: column; gap: 12px; }
}
/* The Site / Legal columns are <nav>s: undo the top bar's nav rules (sticky, blur, bottom border). */
body footer nav.foot-col { position: static; border: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; z-index: auto; height: auto; }

/* ── mobile bottom navigation (2026-10-24, dchan: "On mobile, can we have a bottom
   navigation bar instead") ──
   Under 800px the burger and the top Sign In give way to a five-tab bar: Home,
   Codes, Join, Account, More (More opens the existing drawer). ux-design
   Navigation patterns: 3–5 primary destinations, visible, in thumb reach.
   Fixed under every overlay (drawer 100, sheets 120). Active tab = gold icon
   and label plus aria-current, so the state is never colour alone. */
.tabbar { display: none; }
@media (max-width: 799px) {
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);   /* one row, any number of tabs (2026-10-30, dchan: "fits in a single row") */
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .tabbar a, .tabbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 56px; padding: 6px 2px 4px; background: none; border: 0; border-radius: 0;
    color: var(--ink-dim); font: inherit; font-size: 11px; font-weight: 600; line-height: 1.2;
    text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar .more svg { fill: currentColor; stroke-width: 1.2; }
  .tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  @media (max-width: 350px) { .tabbar a, .tabbar button { font-size: 10px; letter-spacing: -.02em; padding-left: 0; padding-right: 0; } .tabbar.app:not(.tb-mini) { grid-template-columns: repeat(var(--tabs, 4), minmax(44px, auto)); justify-content: space-between; } }   /* audit 2026-11-10 (A12): no cut labels at 320px, every tab still 44px wide */
  .tabbar [aria-current="page"], .tabbar .more[aria-expanded="true"] { color: var(--accent); }
  .tabbar a:active, .tabbar button:active { background: color-mix(in srgb, var(--ink) 6%, transparent); }
  .tabbar a:focus-visible, .tabbar button:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; border-radius: 8px; }
  @media (hover: hover) { .tabbar a:hover, .tabbar button:hover { color: var(--ink); text-decoration: none; } }
  /* the page scrolls clear of the bar */
  body:has(.tabbar) { padding-bottom: calc(57px + env(safe-area-inset-bottom, 0px)); }
  /* the bar replaces these on phones (auth.js injects the Sign In / account pill) */
  body:has(.tabbar) nav .burger, body:has(.tabbar) nav .cta,
  body:has(.tabbar) nav .acct-wrap, body:has(.tabbar) nav .acct-ph { display: none; }
}

/* Phones: the footer shows on the home page only (2026-10-24, dchan: "remove the
   footer from all pages except from home when using mobile view"). The tab bar's
   More menu carries the same links. index.html's body has class="home". */
@media (max-width: 799px) {
  body:has(.tabbar):not(.home) > footer.site-foot { display: none; }
}

/* No bottom nav on the desktop website (2026-11-15, dchan: "remove bottom nav from desktop view when not in app"): a
   narrow desktop window (mouse pointer) outside the app keeps the top bar (menu button, Sign In / account pill) and the
   footer; phones, tablets, the Home Screen app and app mode keep the bar. */
@media (max-width: 799px) and (hover: hover) and (pointer: fine) {
  html:not(.app-mode):not(.standalone) .tabbar { display: none !important; }
  html:not(.app-mode):not(.standalone) body:has(.tabbar) { padding-bottom: 0; }
  html:not(.app-mode):not(.standalone) body:has(.tabbar) nav .cta { display: inline-flex; }
  html:not(.app-mode):not(.standalone) body:has(.tabbar) nav .acct-wrap,
  html:not(.app-mode):not(.standalone) body:has(.tabbar) nav .acct-ph { display: block; }
  html:not(.app-mode):not(.standalone) body:has(.tabbar):not(.home) > footer.site-foot { display: block; }
}

/* Menu drawer (2026-10-24, dchan: "In more, can we remove the boarded and just have
   the x"): opening focuses the panel, not the ✕, so no focus ring is drawn on open.
   Tab still reaches the ✕ with its normal ring for keyboard users. */
.drawer:focus { outline: none; }

/* "Play Now" in Title Case, not PLAY NOW (2026-10-24, dchan: "Update button label to
   only uppercase first letter"). The pages' own .join-btn rules set uppercase. */
body .join-btn { text-transform: none; letter-spacing: .02em; }

/* Home Screen app: the bar is the same size as in the browser (the bigger size asked
   for 2026-10-24 was reverted the same day, dchan). viewport-fit=cover on the tab-bar pages makes
   env(safe-area-inset-*) real, so the bar clears the home indicator and landscape
   content clears the notch. */
body:has(.tabbar) { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }

/* ── tab bar, social-app style (2026-10-24, dchan: "bottom navigation bar similar to
   Facebook, instagram, Reddit") ──
   Active tab = FILLED icon in white plus a bold label (outline when inactive), not a
   colour change. Account shows the member's photo. A red dot on Codes marks a drop
   that landed since Codes was last opened. The bar slides away while scrolling down
   and returns on scroll up. Icons bounce on tap. */
@media (max-width: 799px) {
  .tabbar { transition: transform .2s ease-out; }
  .tabbar.tb-hide { transform: translateY(100%); transition-timing-function: ease-in; transition-duration: .15s; }
  .tabbar [aria-current="page"] { color: var(--ink); }
  .tabbar [aria-current="page"] span { font-weight: 700; }
  .tabbar [aria-current="page"] svg { fill: currentColor; }
  .tabbar [aria-current="page"] svg path + path { stroke: var(--bg); }   /* the ticket's perforation stays visible */
  .tabbar [aria-current="page"] svg rect + path { fill: var(--bg); stroke: var(--bg); }   /* Videos: the play arrow stays visible on the filled screen (dchan 2026-11-11: the selected icon was a plain white box) */
  .tabbar .more[aria-expanded="true"] { color: var(--ink); }
  .tabbar .ic { position: relative; display: block; line-height: 0; overflow: visible; max-width: none; }
  /* Matches the line icons (2026-10-26): they draw ~18px inside 22px. */
  .tabbar .tb-av { width: 19px; height: 19px; margin: 1.5px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 1px var(--line); }
  .tabbar span.tb-av { display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
  .tabbar [aria-current="page"] .tb-av { box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 2.5px var(--ink); }
  .tabbar .tb-dot { position: absolute; top: -2px; right: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--bg); }
  .tabbar .bounce { animation: tb-bounce .22s ease-out; }
  @keyframes tb-bounce { 0% { transform: scale(1); } 40% { transform: scale(.82); } 75% { transform: scale(1.08); } 100% { transform: scale(1); } }
}
@media (prefers-reduced-motion: reduce) {
  .tabbar, .tabbar.tb-hide { transition: none; }
  .tabbar .bounce { animation: none; }
}

/* ── menu: burger top left, drawer from the left (2026-10-24, dchan: "remove more and
   have it as a hamburger icon on the top left, slides to the right and close when
   tapping on main page again") ──
   The tab bar drops More (4 tabs). On phones the burger comes back, first in the top
   bar and borderless; the drawer enters from the left edge. Tapping the dimmed page
   closes it (each page's drawer handler already does). */
@media (max-width: 799px) {
  .tabbar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* Inbox tab (2026-10-25, shared chat): signed-in members get a fifth tab. */
  .tabbar:has(.inbox-tab) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  /* App mode (2026-10-26, auth.js .app): Channels · Codes · Inbox · Account — Home
     became Channels and Join steps out. The collapsed round button keeps its 1 column. */
  .tabbar.app:not(.tb-mini) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tabbar.app a[href="platforms.html"] { display: none; }
  /* No menu button in the app (dchan, 2026-10-26: "when an app remove the hamburger
     icon"): the tab bar is the navigation there; the logo takes the left edge. */
  html.app-mode body:has(.tabbar) nav .burger { display: none; }
  /* 2026-11-02: website pages keep the burger for signed-in members (slim bar = logo + menu); app pages stay without. */
  html.app-mode:not(.app-page) body:has(.tabbar) nav .burger { display: flex; }
  body:has(.tabbar) nav .burger { display: flex; order: -1; margin: 0 0 0 -10px; border: 0; background: none; }
  body:has(.tabbar) nav .wrap { gap: 8px; }
}
body .drawer-overlay .drawer { right: auto; left: 0; border-left: 0; border-right: 1px solid var(--line); }
/* the ✕ sits on the left, near where the burger was tapped */
body .drawer-overlay .drawer .close { align-self: flex-end; margin-right: -12px; }   /* top right (2026-10-29, dchan) */
.drawer-overlay:not([hidden]) { animation: dr-fade .2s ease-out; }
.drawer-overlay:not([hidden]) .drawer { animation: dr-in .26s cubic-bezier(.2, .8, .2, 1); }
@keyframes dr-in { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes dr-fade { from { background-color: rgba(0, 0, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  .drawer-overlay:not([hidden]), .drawer-overlay:not([hidden]) .drawer { animation: none; }
}

/* every page marks its own menu entry (index, bonus-codes and watch lacked the rule) */
.drawer a[aria-current="page"] { color: var(--accent); }

/* Restored 2026-10-28 (dchan: "Can I have my original bottom nav back"): the flat, edge-to-edge bar
   another session made earlier today is undone; this is the 10-26 floating capsule again. */
/* ── floating glass tab bar (2026-10-24, dchan sent iOS 26 "Liquid Glass" bars) ──
   A capsule floating above the page instead of a full-width strip: frosted
   translucent fill, hairline rim with a top highlight, soft shadow. The active tab
   sits on its own lighter pill; icons are white, filled when active. */
@media (max-width: 799px) {
  .tabbar {
    left: 12px; right: 12px; margin: 0 auto; max-width: 440px;
    /* Lower (2026-10-25, dchan: "closer to the bottom of display"): into the home-
       indicator area like iOS's own bars, still ~20px clear of the indicator line;
       6px from the edge on phones without one. Was 10px + the whole safe area. */
    /* 8px higher (2026-11-11, dchan: "move it up a slightly higher on screen"). */
    bottom: max(14px, calc(env(safe-area-inset-bottom, 0px) - 6px));
    padding: 5px; gap: 2px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(30, 30, 32, .62);
    -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .09);
  }
  .tabbar.tb-hide { transform: translateY(calc(100% + 24px + env(safe-area-inset-bottom, 0px))); }
  .tabbar a, .tabbar button { min-height: 54px; border-radius: 999px; color: rgba(240, 240, 240, .82); transition: background-color .15s ease-out, color .15s ease-out; }
  .tabbar [aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
  /* The selected pill as its own element (auth.js placePill), named for the cross-page slide. */
  .tabbar a, .tabbar button { position: relative; isolation: isolate; }
  .tabbar .tb-pill { position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); view-transition-name: tb-pill; }
  .tabbar [aria-current="page"]:has(> .tb-pill) { background: none; box-shadow: none; }
  .tabbar.tb-mini .tb-pill { display: none; }
  .tabbar a:active, .tabbar button:active { background: rgba(255, 255, 255, .10); }
  .tabbar a:focus-visible, .tabbar button:focus-visible { border-radius: 999px; outline-offset: -2px; }
  .tabbar [aria-current="page"] .tb-av { box-shadow: 0 0 0 1.5px rgba(30, 30, 32, .9), 0 0 0 2.5px #fff; }
  .tabbar .tb-dot { box-shadow: 0 0 0 2px rgba(30, 30, 32, .95); }
  body:has(.tabbar) { padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }   /* 74px since 2026-11-11: the bar is 56px tall without the names (was 66px) */
}

/* ── tab bar collapses to one round button while scrolling down (2026-10-24, dchan:
   "hide bar navigation and only show icon", iOS 26 Safari style) ──
   .tb-mini (set by auth.js) shrinks the capsule into a 56px glass circle at the
   bottom left holding only the current tab's icon (Home when the page has no tab).
   Scrolling up or tapping the circle opens the full bar again. */
@media (max-width: 799px) {
  .tabbar { transition: right .26s cubic-bezier(.2, .8, .2, 1), padding .26s ease-out, transform .2s ease-out, max-width .26s cubic-bezier(.2, .8, .2, 1); }
  /* Step one of the collapse (2026-10-25): smaller, icons only, labels fade out. */
  .tabbar a, .tabbar button { transition: background-color .15s ease-out, color .15s ease-out, min-height .22s ease-out; }
  .tabbar a > span:not(.ic), .tabbar button > span:not(.ic) { max-height: 16px; overflow: hidden; transition: opacity .16s ease-out, max-height .22s ease-out; }
  /* 2026-11-11 (dchan): in use again. Scrolling down gives this smaller bar, icons only; 44px tap height kept. */
  .tabbar.tb-small:not(.tb-mini) { max-width: 320px; padding: 3px; }
  .tabbar.tb-small:not(.tb-mini) a, .tabbar.tb-small:not(.tb-mini) button { min-height: 44px; padding-top: 0; padding-bottom: 0; gap: 0; }
  .tabbar.tb-small:not(.tb-mini) a > span:not(.ic), .tabbar.tb-small:not(.tb-mini) button > span:not(.ic) { opacity: 0; max-height: 0; }
  /* Smaller icons in the small bar (dchan 2026-11-11, picker "20px"): 22 to 20px, the same as the chat engine does for the app's bar (navglass.js). */
  .tabbar svg { transition: width .22s ease-out, height .22s ease-out; }
  .tabbar.tb-small:not(.tb-mini) svg { width: 20px; height: 20px; }
  /* No names under the icons (2026-11-11, dchan: "remove the text under the icons", bonusplay.tv phone site and home app only). The names
     stay in the page for screen readers. Every tab is 44px tall with the icon in the middle, so the selected shade is a wide capsule and
     never a tall oval. The class is written twice so these beat the chat engine's own !important tab height (navglass.js). */
  .tabbar.tabbar:not(.tb-mini):not(.mini) > a, .tabbar.tabbar:not(.tb-mini):not(.mini) > button { min-height: 44px !important; padding-top: 0; padding-bottom: 0; row-gap: 0 !important; }
  .tabbar.tabbar:not(.tb-mini):not(.mini) > a > span:not(.ic):not(.tabn):not(.tb-av), .tabbar.tabbar:not(.tb-mini):not(.mini) > button > span:not(.ic):not(.tabn):not(.tb-av) { opacity: 0; max-height: 0 !important; }
  .tabbar.tb-mini { right: calc(100% - 68px); margin-left: 0; padding: 0; grid-template-columns: 1fr; height: 56px; background: rgba(66, 66, 70, .82); }
  .tabbar.tb-mini > * { display: none; }
  .tabbar.tb-mini > .tb-show { display: flex; min-height: 54px; background: none; box-shadow: none; padding: 0; }
  .tabbar.tb-mini > .tb-show > span:not(.ic) { display: none; }
  .tabbar.tb-mini .ic svg { width: 26px; height: 26px; fill: currentColor; }
  .tabbar.tb-mini .tb-show { color: #fff; }
  .tabbar.tb-mini svg path + path { stroke: rgba(66, 66, 70, 1); }
  .tabbar.tb-mini .tb-av, .tabbar.tb-mini [aria-current="page"] .tb-av { width: 24px; height: 24px; box-shadow: none; }   /* collapsed: the avatar alone, no ring (dchan 2026-11-06) */
}
@media (prefers-reduced-motion: reduce) { .tabbar, .tabbar svg { transition: none; } }

/* Offer sentence: the parts that matter in white, the rest stays grey (2026-10-24,
   dchan: "have the font in white in the important wordings"). */
.offer .pitch b { color: #fff; font-weight: 600; }

/* "Affiliate link" under each Play Now button (2026-10-24, dchan: "add Affiliate link
   below Play Now button") — the disclosure where people click. */
.play .aff { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-faint); }

/* ── phone edges (2026-10-25, dchan: "move the container closest to the edge, and
   while using the home app no edge") ──
   Phone browser and Home Screen app: 12px gutters (app was 16px until 2026-11-11, dchan: all pages 12px). Home Screen app (display-mode
   standalone, or html.standalone from auth.js for older iOS): main containers run
   edge to edge like a native list — no side borders, square corners — while text
   keeps 12px from the glass and clears a notch held sideways. Carousel cards,
   callouts, menus and the floating bar keep their own shape. */
@media (max-width: 720px) {
  body .wrap { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
}
@media (max-width: 720px) and (display-mode: standalone) {
  body .wrap { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  body :is(.bonus-grid,.signin-note,.frame,.upnext,.acc-card,.sd-card,.w-card,.perk,.ct-card,.offer,.side) { margin-left: calc(-1 * max(12px, env(safe-area-inset-left))); margin-right: calc(-1 * max(12px, env(safe-area-inset-right))); border-radius: 0; border-left-width: 0; border-right-width: 0; }
  /* Account cards stack flush, one line per break (2026-10-25, dchan: "instead of multiple
     line dividers, can we just 1 for each break"); ~ skips cards that are hidden. */
  body .acc-card { margin-bottom: 0; } body .acc-card ~ .acc-card { border-top-width: 0; }
  body :is(.sd-card,.w-card) { margin-bottom: 0; } body .sd-card ~ .sd-card, body .w-card ~ .w-card { border-top-width: 0; }
}
@media (max-width: 720px) {
  html.standalone body .wrap { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  html.standalone body :is(.bonus-grid,.signin-note,.frame,.upnext,.acc-card,.sd-card,.w-card,.perk,.ct-card,.offer,.side) { margin-left: calc(-1 * max(12px, env(safe-area-inset-left))); margin-right: calc(-1 * max(12px, env(safe-area-inset-right))); border-radius: 0; border-left-width: 0; border-right-width: 0; }
  html.standalone body .acc-card { margin-bottom: 0; } html.standalone body .acc-card ~ .acc-card { border-top-width: 0; }
  /* Storage & Data and Wallet cards join the edge-to-edge stack too (dchan 2026-11-06: Notifications was wider than Storage & Data and Wallet in the app). */
  html.standalone body :is(.sd-card,.w-card) { margin-bottom: 0; } html.standalone body .sd-card ~ .sd-card, html.standalone body .w-card ~ .w-card { border-top-width: 0; }
}

/* No sideways page pan (2026-10-25, dchan: "on home app, prevent the entire page from
   swiping left or right when grabbing"): anything a few px too wide let the whole page
   slide under a finger. Sideways scrollers inside (rows, carousels, code text) still scroll. */
html, body { overflow-x: clip; overscroll-behavior-x: none; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }

/* ── iPhone-style large title (2026-10-25, dchan: "do we need the page title, since we
   have the bottom bar" → large title) ── Phones: the page's h1 sits left, smaller,
   close under the top bar; once it scrolls under the bar, the bar shows the page's
   name beside the logo in place of BONUSPLAY (auth.js .nav-ttl / html.ttl-up), like
   Mail and Settings. The h1 stays the page's heading for screen readers and search. */
.nav-ttl { display: none; }
@media (max-width: 720px) {
  body main > .sec-head { padding-top: 14px; align-items: flex-start; text-align: left; gap: 8px; margin-bottom: 4px; }
  body main .sec-head h1, body main > h1 { font-size: 28px; }
  body main > .sec-head + .updated { text-align: left; margin: 0 0 18px; }
  nav .brand { position: relative; transition: color .2s ease-out; }
  .nav-ttl { display: block; position: absolute; left: 42px; top: 50%; transform: translateY(-50%); white-space: nowrap;
    color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: 0; opacity: 0; pointer-events: none; transition: opacity .2s ease-out; }
  html.ttl-up nav .brand { color: transparent; }
  html.ttl-up .nav-ttl { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { nav .brand, .nav-ttl, .tabbar, .tabbar a, .tabbar button, .tabbar a > span:not(.ic), .tabbar button > span:not(.ic) { transition: none; } }

/* Magnification (2026-10-25, dchan: "like the Apple dock"): the open bar scales with
   the scroll — auth.js sets --tb-p from 0 (full) to 1 (just before it collapses):
   100% → 82%, from its bottom edge, labels fading out by 60% of the way. The round
   collapsed icon keeps its own size. The fixed .tb-small step this replaces is unused. */
@media (max-width: 799px) {
  .tabbar:not(.tb-mini) { scale: calc(1 - .18 * var(--tb-p, 0)); transform-origin: 50% 100%; }
  .tabbar:not(.tb-mini) a > span:not(.ic), .tabbar:not(.tb-mini) button > span:not(.ic) { opacity: calc(1 - 1.7 * var(--tb-p, 0)); }
}

/* Page titles in Title Case (2026-10-25, dchan: "have the titles match … first letter
   instead of all uppercase"): the h1 text is written in Title Case; this stops the
   display face's capitals so it matches the top-bar title (.nav-ttl). Section
   headings (BONUS DROP …) and the logo keep their capitals. */
main .sec-head h1, main > h1, .acc-in h1 { text-transform: none; letter-spacing: .01em; }

/* ── BonusPlay wordmark (2026-10-25, dchan picked "B": two-tone) ── "Bonus" in the
   page ink, "Play" in the brand yellow, bold system face, beside the money-bag mark.
   Replaces the all-caps BONUSPLAY; text everywhere now reads "BonusPlay". */
/* Wordmark face (2026-10-26, dchan picked "1": a heavy rounded face): Nunito Black,
   self-hosted and cut to the letters of "BonusPlay" (1.5 KB, SIL OFL), so the name
   looks the same on every device instead of SF / Segoe / Roboto. */
@font-face { font-family: "BP Wordmark"; src: url("/fonts/wordmark-supercarnival.ttf") format("truetype"); font-weight: 900; font-style: normal; font-display: block; }
body .brand .wm, body .foot-logo .wm { font-family: "BP Wordmark", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; text-transform: none; font-weight: 900; letter-spacing: 0; }
body nav .brand .wm, body header.top .brand .wm { font-size: 19px; }
.wm em { font-style: normal; color: var(--brand, #fcc803); transition: color .2s ease-out; }
@media (max-width: 720px) { html.ttl-up nav .brand .wm em { color: transparent; } }   /* the large-title swap hides both halves: phones only, where the swap exists (desktop showed just "Bonus" after a scroll, 2026-11-06) */

/* Play Now label centred (2026-10-25, dchan: "Play Now label in center middle of button"):
   the home page's buttons were inline-block with padding, which left the condensed
   label 4px high (11px over, 15px under). Every page now centres it the same way. */
body .join-btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1; min-height: 44px; padding-top: 0; padding-bottom: 0; }

/* Discord's success greens (2026-10-25, dchan: "use the same color palette for Discord
   success color"): #3fb950 for green buttons (Play Now, Join; hover #5cc76b) and
   #3fb950 for success marks (claimed stripe, alerts-on bell, "Copied"). Every page sets
   its own --green / --green-ink; html:root wins over them. */
html:root { --green: #3fb950; --green-ink: #3fb950; }
@media (hover: hover) {
  body .join-btn:not([aria-disabled="true"]):hover { background: #5cc76b; border-color: #5cc76b; background-image: none; }
}

/* Partner banners smaller (2026-10-25, dchan: "on partners can we reduce the image for
   both stake.us and stake"): a shorter panel (16:5, was 30:13) with the whole banner
   scaled down inside it — the logo shrinks, nothing is cropped; the navy around it is
   the panel's own --logo-navy. Home page and Join pages. */
body .offer .art { aspect-ratio: 4 / 1; object-fit: contain; background: #152137; }   /* 4:1 since 2026-10-25 (dchan: "reduce the height a bit more, keep the same ratio"); the logo keeps its shape */   /* the banners' own navy (#152137 / #162135), so the sides blend */

/* ── Condensed footer (2026-10-25, dchan: "can we condense the footer") ── was 881px
   tall on a phone, 420px on desktop. Desktop: the same four columns, less air.
   Phones: the column headings go and each group's links flow side by side in one
   row (40px targets), the tagline and the legal lines get smaller. Nothing removed. */
body footer.site-foot { padding: 32px 0 20px; }
body .foot-grid { gap: 20px 28px; }
body .foot-brand p { margin-top: 8px; font-size: 13px; line-height: 1.5; }
body .foot-col h2 { margin-bottom: 2px; }
body .foot-col a { min-height: 30px; font-size: 13.5px; }
body .foot-base { margin-top: 20px; padding-top: 14px; gap: 16px; }
body .foot-base p { font-size: 12px; line-height: 1.5; }
@media (max-width: 640px) {
  body footer.site-foot { padding: 20px 0 16px; }
  body .foot-grid { grid-template-columns: 1fr; gap: 10px; }
  body .foot-brand p { display: none; }   /* the logo is enough here; the tagline repeats the page */
  body .foot-col { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 18px; }
  body .foot-col h2 { display: none; }
  body .foot-col a { min-height: 40px; font-size: 13.5px; }
  body .foot-note { flex-basis: 100%; margin: 0; font-size: 12px; }
  body .foot-base { margin-top: 12px; padding-top: 12px; gap: 6px; }
  body .foot-base p { font-size: 11.5px; }
}

/* ── Phone footer, compact (2026-10-25, dchan picked "compact + fold the fine print") ──
   Logo; Site links left, Legal links right; the help links in one row with the
   1-800 line; then "Disclaimer & affiliate info ▸" (folded <details>) beside the ©.
   Desktop keeps the disclaimer open with no toggle. */
body .foot-fine summary { display: none; }
body .foot-fine p { margin: 0; }
@media (max-width: 640px) {
  body .foot-grid { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  body .foot-brand { grid-column: 1 / -1; margin-bottom: 6px; }
  body .foot-col { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; }
  body .foot-col a { min-height: 36px; }
  body .foot-grid > .foot-col:last-child { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 18px; margin-top: 4px; }
  /* the help row uses the same two columns as Site / Legal, so "Problem gambling help"
     lines up under the right column (dchan, 2026-10-26: "not aligned correctly") */
  body .foot-grid > .foot-col:last-child { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; justify-items: start; }
  body .foot-grid > .foot-col:last-child .foot-note { grid-column: 1 / -1; }
  body .foot-base { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; margin-top: 10px; padding-top: 4px; }
  body .foot-fine { flex: 1 1 auto; min-width: 0; }
  body .foot-fine[open] { flex-basis: 100%; }
  body .foot-fine summary { display: flex; align-items: center; gap: 6px; min-height: 40px; list-style: none; cursor: pointer; color: var(--ink-dim); font-size: 12.5px; }
  body .foot-fine summary::-webkit-details-marker { display: none; }
  body .foot-fine summary::after { content: "\203A"; font-size: 16px; line-height: 1; transition: transform .15s ease-out; }
  body .foot-fine[open] summary::after { transform: rotate(90deg); }
  body .foot-fine summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 3px; }
  body .foot-fine p { padding-bottom: 8px; }
}

/* ── Sliding tab pill between pages (2026-10-26, dchan: "on bottom nav, how can we have the
   sliding effect") ── Every page opts in to cross-document view transitions; the selected tab's
   pill (view-transition-name: tb-pill) glides from the old tab to the new one in 250ms while the
   rest swaps. Browsers without support, and Reduce Motion, change pages as before. */
@view-transition { navigation: auto; }
::view-transition-group(tb-pill) { animation-duration: .25s; animation-timing-function: ease-out; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .12s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* One Sign In button on bonusplay.tv, degenhud.com and boostbot.gg (2026-10-26,
   dchan: "all have the same Sign In button, using the primary discord button
   color"): a 34px pill in Discord blurple #5865F2 (hover #4752C4), white
   "Sign In", 13px/700 system font. Same values in all three sites. */
/* 2026-11-15, dchan: "Can we have the sign in button the primary blue color": blurple → --primary (#2563EB), hover --primary-hi. */
body nav .cta{height:34px;min-height:34px;min-width:0;padding:0 16px;border-radius:999px;border:1px solid var(--primary);background:var(--primary);background-image:none;color:#fff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:13px;font-weight:700;line-height:1;letter-spacing:0;text-transform:none;filter:none;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
@media (hover:hover){body nav .cta:hover{background:var(--primary-hi);border-color:var(--primary-hi);color:#fff;filter:none;background-image:none;text-decoration:none}}
/* Open App is a primary action, so it is blue like every primary button (2026-10-28, dchan: "The Open App button
   needs to be blue too"); the Sign In pill keeps Discord blurple. */
body nav .cta.open-app{background:var(--primary);border-color:var(--primary);color:#fff}
@media (hover:hover){body nav .cta.open-app:hover{background:var(--primary-hi);border-color:var(--primary-hi)}}

/* Sliding underline (2026-10-26, dchan: "slides from link to link", as on degenhud.com):
   tabink.js draws one line and moves it; the current link's own line steps aside.
   Desktop only, where the links are the bar. */
.tab-ink { display: none; }
@media (min-width: 800px) {
  body nav .links.has-ink { position: relative; }
  body nav .links.has-ink a { transition: color .15s; }
  body nav .links.has-ink a[aria-current="page"] { border-bottom-color: transparent; }
  .tab-ink { display: block; position: absolute; left: 0; top: 0; width: 0; height: 2px; background: var(--accent); opacity: 0; pointer-events: none; z-index: 1;
    transition: transform .5s cubic-bezier(.34,1.36,.64,1), width .5s cubic-bezier(.34,1.36,.64,1), opacity .15s ease-out; }
  .tab-ink.instant { transition: none; }
}
@media (prefers-reduced-motion: reduce) { .tab-ink { transition: none; } }

/* Top menu full width (2026-10-26, dchan: "match bonusplay.tv with the other 2"): logo at
   the left edge, links at the right, like degenhud.com and boostbot.gg. Only the bar; the
   page content keeps its 1200px frame. */
body > nav .wrap { max-width: none; }

/* Bigger logo (2026-10-26, dchan: same as boostbot.gg, "increase the size based on best
   practice"): a header mark is about 50–70% of the 60px bar, and an icon beside a
   wordmark about 1.2–1.4× the letters. Desktop 40px bag + 26px "BonusPlay"; phones
   34px + 22px so it never crowds the menu button. */
body nav .brand { gap: 12px; }
body nav .brand .mark { width: 40px; height: 40px; }
body nav .brand .wm { font-size: 26px; }
@media (max-width: 799px) {
  body nav .brand { gap: 10px; }
  body nav .brand .mark { width: 34px; height: 34px; }
  body nav .brand .wm { font-size: 22px; }
}

/* No top bar on phones or in the home app (2026-10-28, dchan: "there still isn't enough room to show the board
   using the expand split screen … remove the top bar all together from home app and mobile view" → "Everywhere on
   phones"). Only where the bottom tab bar takes over (≤799px, every page that has .tabbar; admin pages keep theirs),
   so a phone never ends up with no navigation. Help & Legal is in Account; the footer keeps the site links. */
/* 2026-10-29 (dchan: "Missing logo and text on top bar in mobile view. Also missing Open App" → "Phone browser only"):
   a phone browser has the top bar again (logo, BonusPlay, Open App / Sign In); only the home-screen app goes without. */
/* 2026-11-02 (dchan: "when logged in, should we not have the top bar?" → "Slim top bar on website pages"): a signed-in
   member is in the app view everywhere, but only the APP pages (html.app-page: Channels, Inbox, Codes, Account, Manage…)
   go bar-less, as in the home app; the website pages (Home, Join, Stake pages, Contact, legal) keep a slim bar — logo and
   burger, no Open App button — so a member always sees where they are and can reach the site menu. */
@media (max-width: 799px) {
  html.view-app.app-page body:has(> .tabbar) > nav { display: none !important; }
  html.view-app.app-page:has(body > .tabbar) { scroll-padding-top: 0; }
  html.view-app:not(.app-page) body:has(> .tabbar) > nav .cta { display: none !important; }
}
/* The home app on a phone is covered by the width rule; a tablet or desktop app keeps the bar (no tab bar there). */

/* Focus = coral, everywhere (dchan, 2026-10-29: "all focus input color as coral"; #e2401a, the HUD's focus edge): the
   field you're in, by click or Tab, wears a 1px coral line exactly on its edge (outline drawn inward, no layout shift).
   Text, number and date fields, selects and text areas; not checkboxes, radios, sliders, files or buttons. */
:root{--focus-line:#FF7F50}
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset]):not([type=color]):focus,select:focus,textarea:focus{outline:1px solid var(--focus-line,#FF7F50)!important;outline-offset:-1px!important;box-shadow:none!important}

/* Inside the /app shell's frame (2026-10-30): the shell draws the bars; --app-bar (app.js) is the room its floating bar needs. */
html.embed body > nav, html.embed .tabbar, html.embed .drawer-overlay, html.embed footer.site-foot { display: none !important; }
html.embed { scroll-padding-top: 0; }
html.embed .bc-stick{ top: 0 !important; }   /* no top bar in the frame to stick under */
@media (max-width: 799px) {
  html.embed body:not(.msgpage) { padding-bottom: var(--app-bar, 74px) !important; }
  /* Channels and Inbox lists run behind the bar like every other tab (dchan, 2026-11-02): the list's
     scroller pads at its end instead of the whole chat app stopping above the bar. */
  html.embed body.msgpage .m-lbody, html.embed body.msgpage .m-details { padding-bottom: calc(8px + var(--app-bar, 60px)); }
  html.embed body.msgpage.kb-open .m-lbody { padding-bottom: 8px; }
}
/* Framed pages in the home app stay put: no rubber band (dchan, 2026-11-01: "they need to be sticky"); auth.js swallows the drag too. */
html.embed, html.embed body { overscroll-behavior: none; }

/* App titles aligned (2026-11-05, dchan: "do the same here" as degenhud.com/app): every tab's title 24px in and 16px under
   the bar inside the home app frame (!important: each page's own <style> loads after ui.css). BonusPlay keeps its own title font and Title Case. ⌘K chip off the Account Search. */
html.embed .m-lhead { padding: 12px 24px 13px !important; }
/* Thinner app header on phones (dchan 2026-11-11, picker "Trim 12px"): 8px above the 44px title row (was 12; dchan 2026-11-11 "update top padding to 8px"), 8px to the pill track (was 14);
   one-row headers (Channels, Dashboard, Videos) take the second 6px off the bottom. Every tab's title centre sits at 30px. */
@media (max-width: 799px) {
  html.embed:root .m-lhead { padding-top: 8px !important; gap: 8px !important; }
  html.embed:root body.chpage .m-lhead { padding-bottom: 7px !important; }
  html.embed:root .m-app:has(.m-list[hidden]) .m-bhead { padding-top: 8px !important; padding-bottom: 7px !important; }
  html.embed:root .m-bhead .m-btitle { margin-top: 0 !important; }
  html.embed:root .bc-stick { padding-top: 8px !important; }
  html.embed:root .bc-stick .sec-head { padding-top: 0 !important; margin-bottom: 8px !important; }
  html.embed:root .bc-stick .sec-head > h1 { margin-top: 0 !important; }
  
  
  html.embed:root.lib-c .lib-head { padding-top: 8px !important; padding-bottom: 7px !important; }
}   /* 14px to the list incl. the 1px rule: the app header template (2026-11-06) */
html.embed .sec-head { padding-top: 4px !important; }
html.embed main.mgr { padding-top: 8px !important; padding-left: 24px !important; padding-right: 24px !important; }
html.embed .wrap.acc-in { padding-top: 12px !important; }


/* Line spacing in the app (2026-11-05, dchan: "set globally and save to ux-design"; ux-design patterns.md "Line spacing"):
   body text 1.5, small hints/meta 1.4, headings 1.2, inside the app frame. Public site + legal pages keep 1.65-1.7. */
html.embed body { line-height: 1.5; }
html.embed small, html.embed .hint, html.embed .fhint, html.embed .acc-hint, html.embed .ldim, html.embed .av-note, html.embed .r-muted { line-height: 1.4; }
html.embed h1, html.embed h2, html.embed h3, html.embed .display { line-height: 1.2; }

/* Footer base, centred (dchan 2026-11-06): the copyright line, then the independence + Disclaimer line, both centred
   at every width. Last in the file so it wins over the per-breakpoint row/column rules above. */
body .foot-base { flex-direction: column !important; align-items: center !important; justify-content: center !important; text-align: center; gap: 6px !important; }
body .foot-base p { margin-left: auto; margin-right: auto; text-wrap: balance; }   /* even lines, no lone last word */
body .foot-copy { white-space: normal; }

/* Hover is quieter than focus (dchan 2026-11-06, "is the yellow border best practice?"): yellow stays the keyboard
   :focus-visible ring only. Hover = a lighter grey edge, mouse devices only; a tap on a phone leaves no stuck border. */
@media (hover: hover) {
  body .tile-card:hover, body .offer .copy:hover, body .btn.ghost:hover { border-color: var(--ink-faint) !important; }
  body .offer .copy:hover, body .btn.ghost:hover { color: var(--ink) !important; }
}
@media (hover: none) {
  body .tile-card:hover, body .offer .copy:hover, body .btn.ghost:hover, body .vcard:hover { border-color: var(--line) !important; }
  body .offer .copy:hover, body .btn.ghost:hover { color: inherit !important; }
  body .vcard:hover { transform: none !important; }
}

/* Help & Legal inside the app (html.drill, 2026-11-06): the app tabs' header. A title row like Channels / Account (22px,
   left, 12px from the top, 44px tall on touch, 32px with a mouse), then "‹ Account" (Manage's "‹ Manage" look). */
html.drill body main > .sec-head { padding-top: 12px !important; margin: 0 !important; min-height: 44px; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; }
html.drill body .ct .ct-head { padding-top: 12px !important; margin-bottom: 14px; }
html.drill body main h1 { font-size: 22px !important; line-height: 1.1; letter-spacing: .01em; text-align: left; margin: 0; }
html.drill body .ct .ct-head h1 { min-height: 44px; display: flex; align-items: center; }
@media (pointer: fine) { html.drill body main > .sec-head, html.drill body .ct .ct-head h1 { min-height: 32px; } }
/* Back = a large chevron left of the title, iOS style (dchan 2026-11-06 "larger ‹ icon"): 44px touch / 32px mouse target, the title follows it. */
html.drill .drill-row { display: flex !important; flex-direction: row; align-items: center; justify-content: flex-start; gap: 2px; }
html.drill .ct .ct-head.drill-row { flex-wrap: wrap; }   /* Contact: back + title on one row, the intro paragraph on its own line below (dchan 2026-11-06 "top header is not aligned") */
html.drill .ct .ct-head.drill-row h1 { flex: 1; }
html.drill .ct .ct-head.drill-row > :not(.drill-back):not(h1) { flex-basis: 100%; margin-top: 14px; }
html.drill .drill-back { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 0 0 -12px; padding: 0; border-radius: 6px; color: var(--ink); text-decoration: none; }
html.drill .drill-back svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@media (hover:hover) and (pointer:fine) { html.drill .drill-back { width: 32px; height: 32px; min-height: 0; margin-left: -6px; } html.drill .drill-back svg { width: 24px; height: 24px; } html.drill .drill-back:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); } }
html.drill body main .updated { text-align: left; }
/* The app's type scale on Help & Legal pages, not the website's reading size (dchan 2026-11-06 "why are these pages font so much bigger"):
   body 13.5px/1.5 as the Account cards; section headings keep their 17px. */
html.drill body main :is(p,li,td,th,dd,blockquote,.callout):not(.updated):not(.err):not(.form-status) { font-size: 13.5px !important; line-height: 1.5 !important; }
/* Phones (website and app alike, dchan 2026-11-06 "correct bonusplay mobile and app view too"): the legal pages read at the
   app's 13.5px; desktop keeps the website's reading size. */
@media (max-width: 720px) { main.legal :is(p,li,td,th,dd,blockquote,.callout):not(.updated) { font-size: 13.5px; line-height: 1.5; } }

/* Account header Search: icon + label, icon only when the header is tight (dchan 2026-11-06: "Show icon and label, but if
   there is not enough space, just show icon"); same rule as degenhud.com. body raises it over the pages' own .acc-search. */



/* One button focus ring on both sites (dchan 2026-11-08: "both sites use the same button focus ring"): every keyboard-focus ring on a
   button, link or tab takes the focus colour (was the site accent: yellow on bonusplay.tv, red-orange on degenhud.com). Colour only:
   width, offset and the rings switched off on purpose stay as each rule set them. */
:is(button,summary,a,[role=button],[role=tab],[tabindex]:not([tabindex="-1"])):focus-visible{outline-color:var(--focus-line,#FF7F50)!important}

/* Footer Disclaimer link (2026-11-10 audit A2): underlined, so it is not told from the text by colour alone. */
.foot-indep a { text-decoration: underline; text-underline-offset: 2px; }

/* Header Search on phones is the bare icon: no border, no word (dchan 2026-11-11 "remove the borders" + picker "Icons Only, Drop
   The Words"). !important because each page styles .acc-search itself, some with stronger selectors. Desktop keeps the word. */


/* Desktop alignment (2026-11-11, dchan: "Two layouts"): the reading pages inside /app (Codes, Videos, Dashboard,
   Account, Wallet, Storage, Help) share one centred 1200px column, one left edge and one 44px title row at 12px.
   The room for the scrollbar is always kept, so a short page and a long page start at the same place; the bar
   itself is thin, as in chat and Manage. Bars hidden on purpose (scrollbar-width:none) stay hidden. */
@supports (scrollbar-width: thin) { :where(html.embed), :where(html.embed) * { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink-faint, #8b93a1) 55%, transparent) transparent; } }
@media (min-width: 721px) {
  html.embed.drill, html.embed.lib-c { scrollbar-gutter: stable; }
  html.embed.drill body main > .sec-head, html.embed.drill body .ct .ct-head h1 { min-height: 44px; }
}
@media (min-width: 800px) { html.embed .bc-stick .sec-head { padding-top: 0 !important; min-height: 44px; } }

/* Account pages, one title position (2026-11-11, dchan: "align the titles so they are all the same in /account page. Even if we
   have to reduce the size of refresh chip in /wallet page"). Measured in the app frame before this: the "Account" title sat at
   y 16.8 on Profile and Notifications, 18.8 on Wallet and Storage, 22.8 on Members and Roles (phone), and 14.8 against 42.8 on
   desktop; Members and Roles also started 8px further left on phones. Now the header band of Wallet, Storage, Members and Roles
   rests where Profile puts it at every width. */



/* Wallet, Balance card: the Refresh chip (32px, 44px on touch screens) made the title row taller, so "Balance" sat 5px (11px on
   phones) lower than every other card title. The chip is 32px everywhere now and hangs outside the row, so the row is as tall
   as the title alone. Its tap area stays 48px on touch screens (the ::before in the engine's wallet.css). */
html .w-card .w-balhead .w-btn { min-height: 32px; height: 32px; margin-block: calc((21.6px - 32px) / 2); }
/* Account header, the same rhythm as degenhud.com (2026-11-11, dchan: "Yes even out"). Measured in the app frame before this:
   on desktop the pill row sat at y 58 here against 54 there and the first card at 126 against 119; on phones the card sat at
   128 against 125; from 721 to 799px the title sat 4px higher here. Now: title row, 10px (8px on phones), pill row, 10px,
   the line, 8px, the first card, as there. */




/* 12px phone gutter on the Account pages, same as DegenHUD (dchan 2026-11-11). Title text stays at 24px.
   In the home app the cards still reach both screen edges, and Storage & Data, Members and Roles get the
   same 20px inner padding as Profile and Wallet (they had 16px from the shared engine rule). */
@media (max-width: 720px) {
  html.embed:root .acc-in, html.embed:root .w-app { padding-left: max(12px, env(safe-area-inset-left)) !important; padding-right: max(12px, env(safe-area-inset-right)) !important; }
  
  html.embed.standalone:root body :is(.acc-card,.sd-card,.w-card,.r-card) { margin-left: calc(-1 * max(12px, env(safe-area-inset-left))) !important; margin-right: calc(-1 * max(12px, env(safe-area-inset-right))) !important; }
  html.embed.standalone:root body .r-card:not(.r-shell) { padding-left: 20px !important; padding-right: 20px !important; }
}
/* BonusPlay has no yellow brand accent (dchan 2026-11-14: "never use yellow, it's restricted for warning"; picked neutral). --accent is a
   near-white ink in every page's :root; yellow lives only in --brand (the logo's "Play") and the warning tones. */
:root{--brand:#fcc803}

/* Header holds its shape from the first paint (2026-11-15, dchan: "the top menu aligns to the left then flashes to the right").
   The Sign In / Open App button and the phone two-row layout used to arrive with auth.js, after the page had shown, so the links
   slid 116px sideways on desktop and the header grew from 60 to 105px on phones. Now every page's HTML carries a hidden
   placeholder the size of Sign In (78 x 34, measured), auth.js swaps it for the real control, and the phone layout lives here. */
body nav .wrap > .acct-ph{flex:none;width:78px;min-width:0;height:34px;min-height:0;visibility:hidden}
@media (max-width:679px){
  html.view-web body nav .wrap:has(>.links){display:grid!important;grid-template-columns:1fr auto;grid-template-rows:61px 44px;grid-template-areas:"brand cta" "links links";height:auto!important;column-gap:var(--space-xs,8px);row-gap:0}
  html.view-web body nav .wrap>.brand{grid-area:brand;align-self:center}
  html.view-web body nav .wrap>.cta,html.view-web body nav .wrap>.acct-ph{grid-area:cta;align-self:center;margin-left:0!important}
  html.view-web body nav .wrap>.burger,html.view-web body nav .wrap>.pwa-btn{display:none!important}
  html.view-web body nav .wrap>.am{grid-area:cta;align-self:center;margin-left:0}
  html.view-web body nav .wrap>.links{grid-area:links;display:flex!important;align-items:stretch;height:44px;margin:0 -6px;padding:0;gap:0;overflow-x:auto;scrollbar-width:none;position:relative}
  html.view-web body nav .wrap>.links::-webkit-scrollbar{display:none}
  html.view-web body nav .wrap>.links>a{display:inline-flex!important;align-items:center;flex:none;height:44px;padding:0 6px!important;margin:0!important;font-size:var(--text-body,15px)!important;font-weight:600;white-space:nowrap}
}

/* Header height matches degenhud.com (2026-11-15, dchan: "fix bonusplay.tv so the top menu matches the height on degenhud.com"). degenhud's
   pages sit 8px below the top edge, so its bar ends at 69px; the same 8px gap above the bar here makes both read the same height.
   Sticky top:0 still applies, so once scrolled the bar sits at the top edge at 61px like degenhud's, and the sub-bars that stick at
   top:61px keep lining up. Website view only: the home-screen app (view-app) and framed pages (embed) keep their own header. */
html.view-web:not(.embed) body>nav{margin-top:8px}


/* Header switches to two rows only when it no longer fits, below 680px (2026-11-15, was 760px like degenhud.com; dchan: "has so much more room"; first, dchan: "Why does the menu bar get moved to the 2nd row,
   before it can no longer fit on the top bar like it does on degenhud.com"). It used to follow the site-wide 800px phone switch; the
   one-row header needs about 650px (measured), so from 680px to 799px the website now keeps the desktop header: the >=800px header rules again,
   and the per-page phone rules (links hidden, burger, 14px gap) undone. The rest of the phone layout still switches at 800px. */
@media (min-width:680px) and (max-width:799px){
  html.view-web body nav .links{display:flex}
  html.view-web body nav .burger{display:none}
  html.view-web body nav .wrap{gap:26px}
  html.view-web body nav .brand{gap:12px}
  html.view-web body nav .brand .mark{width:40px;height:40px}
  html.view-web body nav .brand .wm{font-size:26px}
  html.view-web body nav .links{align-self: stretch; gap: 0;}
  html.view-web body nav .links a{height: 100%; min-height: 0; box-sizing: border-box; padding: 0 14px; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--ink-dim); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; text-decoration: none;}
  html.view-web body nav .links a[aria-current="page"],html.view-web body nav .links a[aria-current="location"]{color: var(--ink); border-bottom-color: var(--accent);}
  html.view-web body > nav{line-height: 1.7;}
  html.view-web body > nav .wrap{gap: 28px;}
  html.view-web body nav .links a:focus-visible{outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 2px;}
  html.view-web body nav .links + *,html.view-web body nav .links ~ .cta{margin-left: 10px;}
  html.view-web body nav .links.has-ink{position: relative;}
  html.view-web body nav .links.has-ink a{transition: color .15s;}
  html.view-web body nav .links.has-ink a[aria-current="page"]{border-bottom-color: transparent;}
  html.view-web .tab-ink{display: block; position: absolute; left: 0; top: 0; width: 0; height: 2px; background: var(--accent); opacity: 0; pointer-events: none; z-index: 1; transition: transform .5s cubic-bezier(.34,1.36,.64,1), width .5s cubic-bezier(.34,1.36,.64,1), opacity .15s ease-out;}
  html.view-web .tab-ink.instant{transition: none;}
}

/* Logo and menu text the same size as degenhud.com's header (2026-11-15, dchan: "match the size of the logo and font size from
   degenhud.com on bonusplay.tv"). Measured on degenhud: icon 28px (24px when the menu is on two rows), name 24px, 9px between them;
   menu links 15px/600 with .06em letter spacing and 13px sides (.03em on two rows). Each site keeps its own art, font and colours.
   html:root raises these just above the 680-799px header block earlier in this file. */
html:root body nav .brand{gap:9px}
html:root body nav .brand .mark{width:28px;height:28px}
html:root body nav .brand .wm{font-size:24px}
@media (min-width:680px){html:root body nav .links a{font-size:15px;letter-spacing:.06em;padding:0 13px}}
@media (max-width:679px){html:root body nav .brand .mark{width:24px;height:24px}html:root body nav .links a{letter-spacing:.03em}}

/* ── Desktop footer restyle (2026-11-15, dchan "ux design restyle bonusplay.tv footer for desktop website") ──
   House rules: Title Case column labels (no all caps, no letter spacing), type on the 12 / 13 scale (was 12.5 / 13.5),
   spacing on 8 / 16 / 24 / 32, 36px link rows with a mouse, no focus ring on links. The brand sits left and the
   three link columns hug the right edge, so the empty 1.6fr gap beside the logo is gone. Phones (≤640px) keep the
   compact footer above. Component tokens on the root read the shared tokens with their old values as fallbacks. */
@media (min-width: 641px) {
  html body footer.site-foot {
    --ft-pad-top: var(--space-xl, 32px); --ft-pad-bottom: var(--space-lg, 24px);
    --ft-col-gap: 64px; --ft-row-gap: var(--space-lg, 24px);
    --ft-label: var(--text-caption, 12px); --ft-link: var(--text-small, 13px); --ft-fine: var(--text-caption, 12px);
    --ft-row-h: 36px;
    padding: var(--ft-pad-top) 0 var(--ft-pad-bottom);
  }
  html body .foot-grid { grid-template-columns: 1fr repeat(3, auto); gap: var(--ft-row-gap) var(--ft-col-gap); align-items: start; }
  html body .foot-col h2 { margin: 0 0 var(--space-2xs, 4px); font-size: var(--ft-label); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-faint); line-height: 1.4; }
  html body .foot-col a { min-height: var(--ft-row-h); font-size: var(--ft-link); }
  html body .foot-note { margin: var(--space-2xs, 4px) 0 0; font-size: var(--ft-fine); }
  html body .foot-base { margin-top: var(--space-lg, 24px); padding-top: var(--space-md, 16px); gap: var(--space-xs, 8px) !important; }
  html body .foot-base p { font-size: var(--ft-fine); line-height: 1.5; }
}
@media (min-width: 641px) and (max-width: 880px) {
  html body .foot-grid { grid-template-columns: repeat(3, auto); justify-content: space-between; }
  html body .foot-brand { grid-column: 1 / -1; }
}
/* No focus ring on footer links (house rule: only fields show focus). */
footer.site-foot a:focus, footer.site-foot a:focus-visible, footer.site-foot summary:focus-visible { outline: none !important; }
/* Signed out on phones (2026-11-15, dchan: "not logged in, remove bottom nav and have sign in button on top right where
   the account avatar would be"): html.bp-out (head script from bpMember, auth.js from /auth/me) drops the bottom bar and
   shows the top bar's Sign In, plus the footer for the legal links. Home-screen app too; /app's frames keep theirs. */
@media (max-width: 799px) {
  html.bp-out:not(.embed) .tabbar { display: none !important; }
  html.bp-out:not(.embed) body:has(.tabbar) { padding-bottom: 0; }
  html.bp-out:not(.embed) body:has(.tabbar) > nav { display: block !important; }
  html.bp-out:not(.embed) body:has(.tabbar) nav .wrap > .cta { display: inline-flex !important; }
  html.bp-out:not(.embed) body:has(.tabbar):not(.home) > footer.site-foot { display: block; }
}
/* Phones: no 8px gap above the top bar (2026-11-15, dchan: "when scrolling down, the top menu is sticky, but it always scroll ups
   few px"): the gap made the sticky bar slide up 8px before it stuck. It starts at the top edge now and never moves. Desktop keeps it. */
@media (max-width: 799px) { html.view-web:not(.embed) body>nav { margin-top: 0; } }
/* ── Phone footer, two even columns (2026-11-15, dchan picked "Two even columns") ── Site links left (Bonus Codes, Partners,
   Contact Us), Legal right (Disclaimer, Privacy Policy, Terms of Service): three rows each, so no hole above Contact Us. Then one
   centred line under a divider, "18+ (21+ where required) · Problem Gambling Help", then the centred fine print. CSS only: the
   columns become display:contents and each link is placed on the footer grid. Desktop (≥641px) keeps its labelled columns. */
@media (max-width: 640px) {
  /* restyle 2026-11-15: the phone values of the desktop footer's tokens (house scale: links 15 body, fine print 12 caption, 44px touch rows) */
  html body footer.site-foot { --ft-link: var(--text-body, 15px); --ft-fine: var(--text-caption, 12px); --ft-row-h: var(--size-tap, 44px); }
  html body .foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  html body .foot-grid > .foot-col, html body .foot-grid > .foot-col:last-child { display: contents; }
  html body .foot-grid > .foot-col a { min-height: var(--ft-row-h); font-size: var(--ft-link); }
  html body .foot-grid > .foot-col:nth-child(1) > a:nth-of-type(1) { grid-column: 1; grid-row: 2; }
  html body .foot-grid > .foot-col:nth-child(1) > a:nth-of-type(2) { grid-column: 1; grid-row: 3; }
  html body .foot-grid > .foot-col:nth-child(3) > a:nth-of-type(1) { grid-column: 1; grid-row: 4; }
  html body .foot-grid > .foot-col:nth-child(2) > a:nth-of-type(1) { grid-column: 2; grid-row: 2; }
  html body .foot-grid > .foot-col:nth-child(2) > a:nth-of-type(2) { grid-column: 2; grid-row: 3; }
  html body .foot-grid > .foot-col:nth-child(2) > a:nth-of-type(3) { grid-column: 2; grid-row: 4; }
  /* the 18+ line: note ends at the middle, the help link starts after it, so the pair reads as one centred line */
  html body .foot-grid > .foot-col:nth-child(3) > .foot-note { grid-column: 1; grid-row: 5; justify-self: end; align-self: center; margin: 0; padding-top: var(--space-md, 16px); font-size: var(--ft-fine); color: var(--ink-faint); white-space: nowrap; }
  html body .foot-grid > .foot-col:nth-child(3) > a:nth-of-type(2) { grid-column: 2; grid-row: 5; justify-self: start; align-self: center; margin-left: -16px; padding-top: var(--space-md, 16px); min-height: 0; font-size: var(--ft-fine); color: var(--ink-dim); white-space: nowrap; }
  html body .foot-grid > .foot-col:nth-child(3) > a:nth-of-type(2)::before { content: "\00B7"; margin: 0 6px; color: var(--ink-faint); }
  html body .foot-grid::after { content: ""; grid-column: 1 / -1; grid-row: 5; align-self: start; margin-top: 8px; border-top: 1px solid var(--line); }
  html body .foot-base { margin-top: var(--space-xs, 8px) !important; padding-top: var(--space-xs, 8px) !important; border-top: 0 !important; }
  html body .foot-base p { font-size: var(--ft-fine); }
}
/* Solid top bar (2026-11-15, dchan picked "Solid, both sites"): was 86% page colour + 12px blur, so content scrolling under it
   showed through. Now the page colour, no blur; degenhud.com matches. Main website only (html.view-web): /app and the home-screen app view keep theirs. */
html.view-web:not(.embed) body > nav { background: var(--bg, #0e1115) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; -webkit-transform: translateZ(0); transform: translateZ(0); }   /* own layer, as on degenhud.com (2026-11-15): without the blur iOS Safari can paint scrolling content over the sticky bar for a frame */
/* /app top bar = degenhud.com's /app bar (2026-11-15, dchan: "Can we have both sites have the same blur in /app pages"): 90% page
   colour + 12px blur (dchan: "Set both to 90%"; was 86%, no blur). App view only; the website bar stays solid (above). */
html.view-app:not(.embed) body > nav { background: rgba(14, 17, 22, .9) !important; -webkit-backdrop-filter: blur(12px) !important; backdrop-filter: blur(12px) !important; }
/* Phone menu underline (2026-11-15, dchan: "it's still missing the bottom menu strip based on ux-design"): the 2px neutral strip under
   the current page's link (Partners, Bonus Codes, Contact) shows on phones too, like desktop and degenhud.com. tabink.js already places it;
   the CSS hid it below 680px from when phones had only the hamburger menu. It slides on a tap even with Reduce Motion (house rule). */
@media (max-width: 679px) {
  html.view-web:not(.embed) body > nav .links .tab-ink { display: block; position: absolute; left: 0; top: 0; width: 0; height: 2px; background: var(--accent); opacity: 0; pointer-events: none; z-index: 1; transition: transform .5s cubic-bezier(.34,1.36,.64,1), width .5s cubic-bezier(.34,1.36,.64,1), opacity .15s ease-out; }
  html.view-web:not(.embed) body > nav .links .tab-ink.instant { transition: none; }
  html.view-web:not(.embed) body > nav .links a[aria-current="page"] { color: var(--ink); }
}
@media (max-width: 679px) and (prefers-reduced-motion: reduce) { html.view-web:not(.embed) body > nav .links .tab-ink:not(.instant) { transition: transform .5s cubic-bezier(.34,1.36,.64,1), width .5s cubic-bezier(.34,1.36,.64,1), opacity .15s ease-out !important; } }
/* No text underline on the top menu links (2026-11-15, dchan: "remove the under line underneath partners when tapping on it"): every page's
   a:hover{text-decoration:underline} stuck after a tap on phones (a tap counts as hover). The white strip is the only current-page mark. */
html body > nav .links a, html body > nav .links a:hover, html body > nav .links a:active, html body > nav .links a:focus { text-decoration: none !important; }
/* No logo in the footer (2026-11-15, dchan: "remove the image and text logo from footer"): the .foot-brand block is gone from every page.
   Desktop: the three link columns (Site, Legal, Help) sit together from the left, 64px apart, instead of hugging the right of the logo.
   Phones keep the two-column layout; its link placement counts Site = 1st, Legal = 2nd, Help = 3rd child now. */
/* Equal thirds (2026-11-15, dchan picked "Equal thirds"): Site, Legal and Help each start on a fixed third of the footer, from 641px up. */
@media (min-width: 641px) { html body .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; } }
/* Fine print without the extra space (2026-11-15, dchan: "remove all the extra space" on the independent-site line): no 62em cap and no
   balanced wrapping, so it runs on one line where it fits and wraps normally where it does not, instead of two short centred lines. */
html body .foot-base p { max-width: none; text-wrap: wrap; }
