/* seneng.lol's brand layer for the shared shell (T-071): colours, fonts, shadows and the lockup. Linked after
   shell.css. Same custom-property names as hidup.lol's brand.css; the values differ only where docs/ux/T-071-ux.md
   section 2.3 says so: the accent is seneng green. seneng.lol follows the device light/dark setting (P-004).
   The last block recolours the few shell rules that put ink on --accent (green needs white there); it sets colours only. */
:root {
  --md0: #F8E4E1; --md0-on: #8A2820;
  --md1: #F9E8E5; --md1-on: #A5372F;
  --md2: #F9ECE9; --md2-on: #B5483D;
  --md3: #F8EFEC; --md3-on: #BF5E53;
  --md4: #F4F0EE; --md4-on: #C7746A;
  --md5: #EDEFF3; --md5-on: #7F8697;
  --md6: #E9F3EE; --md6-on: #58977A;
  --md7: #E4F1EA; --md7-on: #4C8C6A;
  --md8: #DEEEE5; --md8-on: #3C7C5B;
  --md9: #D8EBDF; --md9-on: #2D6D4E;
  --md10: #D1E7D9; --md10-on: #1F5C40;
  --land: #E4E7EC;
  --land-on: #9CC7AE;
  --coast: #FFFFFF;
}
:root {
  --bg: #F6F7F9;
  --bg-2: #ECEEF2;
  --card: #FFFFFF;
  --fill: #E6F1EA;          /* selected tabs, chips and buttons */
  --fill-edge: #BDD6C7;
  --ink: #282D3B;
  --ink-soft: #596071;
  --edge: #E3E6EC;
  --drop: rgba(40, 45, 59, .10);
  --display: "Fredoka", "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --line: 1.5px;
  --r: 18px;
  --r-sm: 12px;

  --accent: #2D6A4A;
  --card-fill: #367A58;     /* the score card (P-056c, founder: a bit lighter than --accent); white on it 5.15:1 */
  --accent-ink: #FFFFFF;    /* text and ring on --accent */
  --accent-text: #245A3E;   /* the lockup's ".lol", links */
  --accent-tint: #E6F1EA;   /* the active nav entry, the selected tile */
  --spectrum: var(--accent);   /* the 4 px top stripe: solid green, not hidup's mood spectrum */
  --coral: var(--accent-text); /* link hover, error text, map bubbles */
  --grape: #282D3B;            /* the selected map bubble */
  --sun: var(--accent);        /* the map-rank bar */
  --hl: #E6F1EA;
  --tint-k: #F8E8E6;  --tint-h: #ECEFF3;  --tint-s: #E6F1EA;          /* chip backgrounds */
  --chip-k: #8A2D25;  --chip-h: #4A5163;  --chip-s: #1F5A3D;          /* chip text */
  --hairline: rgba(40, 45, 59, .12);
  --serif: "Lora", Georgia, serif;
  --body: "Nunito Sans", "Nunito", "Segoe UI", system-ui, sans-serif;
  --ink-2: #4A5163;         /* text on --track (6.88:1) */
  --track: #ECEFF3;
  --ctl: #C3C9D5;
  --ctl-strong: #6F7789;
  --wash: #E7EAF0;
  --hover: #F0F2F6;
  --err: #B42318;
  --focus: #2B6CB0;        /* keyboard focus ring: 5.42:1 on the card */

  --on-dark: #FFFFFF;
  --white: #FFFFFF;
  --cta-bg: var(--accent);  /* the Post button, the "+" and the Play buttons */
  --cta-ink: #FFFFFF;
  --cta-hover: #245A3E;
  --cta-off: #E2E5EB;
  --shadow: 0 8px 24px rgba(40, 45, 59, .12);
  --backdrop: rgba(16, 19, 25, .55);
  --ad-bg: #FAF1D6;  --ad-ink: #282D3B;  --ad-shadow: 0 4px 12px rgba(0, 0, 0, .35);  --ad-on: #FFFFFF;

  --sw-kesel: #A5372F;  --sw-hidup: #E3B93E;  --sw-seneng: #2D6A4A;   /* the switcher swatches, same in all three brands */
  color-scheme: light;
}

/* Dark mode (P-004): follows the system setting only, no toggle. Same token names as above; later in the file than the
   :root block so it wins over it and over seneng-base.css's own dark block. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --md0: #3E2321; --md1: #3B2523; --md2: #382624; --md3: #352725; --md4: #2F2829; --md5: #262B36;
    --md6: #22302C; --md7: #213429; --md8: #20382B; --md9: #1F3C2D; --md10: #1E402F;
    /* dark mood edges, 3.57:1 to 11.21:1 on --card */
    --md0-on: #F08478; --md1-on: #E5786C; --md2-on: #D56C61; --md3-on: #C2625A; --md4-on: #AE5A53; --md5-on: #7A8294;
    --md6-on: #5A8F72; --md7-on: #69A482; --md8-on: #7BB895; --md9-on: #8FCBA8; --md10-on: #A6DEBB;
    --bg: #101319; --bg-2: #1F242E; --card: #181C24; --fill: #1C3528; --fill-edge: #2F5A44;
    --ink: #ECEEF3; --ink-soft: #A5ADBD; --edge: #2A303C; --drop: rgba(0, 0, 0, .4);
    --accent-text: #86D0A4; --accent-tint: #1C3528; --hl: #1C3528; --grape: #ECEEF3;
    --hairline: rgba(236, 238, 243, .12);
    --tint-k: #4A2623; --tint-h: #2A303D; --tint-s: #1F3D2E;
    --chip-k: #FFB4AA; --chip-h: #C3C9D6; --chip-s: #A8DDBE;
    --ink-2: #C3C9D6; --track: #222834; --ctl: #333A48; --ctl-strong: #8B94A6; --wash: #262C38; --hover: #1F2530;
    --err: #FF9E94; --focus: #7DB4F0; --white: #262C38; --on-dark: #101319;
    --cta-hover: #245A3E; --cta-off: #272D39;
    --shadow: 0 8px 24px rgba(0, 0, 0, .5); --backdrop: rgba(0, 0, 0, .7);
    --land: #232833; --land-on: #3F7A55; --coast: #3A4252;
    color-scheme: dark;
  }
}

/* ---------- brand: seneng.lol (the lockup colours; its layout is in shell.css) ---------- */
.brand .sen { font-family: "Caveat Brush", cursive; font-weight: 400; font-size: 24.2px; letter-spacing: 0; color: var(--ink); }
.brand .lol { font-family: "Caveat Brush", cursive; font-weight: 400; font-size: 24.2px; letter-spacing: 0; color: var(--accent-text); }

/* ---------- ink-on-accent places in shell.css, recoloured for green (white on #2D6A4A is 6.42:1) ---------- */
.plus { background: var(--cta-bg); color: var(--cta-ink); }
.plus:hover, .fab:hover { background: var(--cta-hover); }
.gprompt p { color: var(--accent-ink); }
.gbanner, .gbanner :focus-visible { color: var(--accent-ink); outline-color: var(--accent-ink); }   /* P-056c: the score card's fill is the accent */
.gprompt .gp-btn { background: var(--white); color: var(--ink); border-color: var(--white); }
.promo.p1, .promo.p1:hover { color: var(--accent-ink); }
.promo.p1 .promo-go { background: var(--white); color: var(--ink); }
.promo.p2 .promo-go { color: var(--accent-ink); }
.gprompt :focus-visible, .promo.p1:focus-visible { outline-color: var(--accent-ink); }

/* ---------- pill row scroll cue (AC32), kept in the brand layer so the shared shell stays T-070's ---------- */
/* Right-edge fade as the scroll cue; 24px of extra end padding keeps the last pill clear of it at scroll end. */
.feedfilters .pills {
  scroll-snap-type: x proximity;
  padding-right: 27px;
  -webkit-mask-image: linear-gradient(90deg, black calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, black calc(100% - 24px), transparent);
}
.pill { scroll-snap-align: start; }
/* No fade once nothing more is hidden: app.js sets .at-end when the row is scrolled to its end or fits. */
.feedfilters .pills.at-end { -webkit-mask-image: none; mask-image: none; }
