/* The playful "sticker" look across the whole app (Nov 2026, the owner's choice after "Your take" and the
   Bud chat): ink outlines with a solid offset shadow on cards and buttons, bolder headings, bright accents.
   Loaded last. Most surfaces pick it up through the shared shadow tokens, so one change reaches them all;
   the rest is set here by name. Screens with their own sticker styles: css/take.css, css/welcome.css. */

:root {
  --ink-line: #111640;
  --sh-card: 0 0 0 2px var(--ink-line), 3px 3px 0 var(--ink-line);
  --sh-raise: 0 0 0 2.5px var(--ink-line), 4px 4px 0 var(--ink-line);
  --sh-solid: 0 0 0 2.5px var(--ink-line), 3px 3px 0 var(--ink-line);
  --sh-press: 0 0 0 2px var(--ink-line), 1px 1px 0 var(--ink-line);
  --pl-sun: #ffd65a; --pl-sunwash: #fff4cf; --pl-wash: #e4f8fa; --pl-blush: #ffe3df; --pl-lilac: #ece7ff; --pl-good: #dff7f3; --pl-coral: #f4594b;
}

/* Buttons: chunky, outlined, they press in. */
.btn { font-weight: 800; transition: transform 90ms ease-out, box-shadow 90ms ease-out, background-color 160ms ease; }
.btn-primary { --sh-card: 0 0 0 2.5px var(--ink-line), 3px 3px 0 var(--ink-line); box-shadow: var(--sh-card); background: var(--teal-dark); }
.btn-secondary, .btn-ghost { box-shadow: 0 0 0 2px var(--ink-line), 3px 3px 0 var(--ink-line); }
.btn-secondary:hover, .btn-ghost:hover { box-shadow: 0 0 0 2px var(--ink-line), 4px 4px 0 var(--ink-line); }
.btn-primary:active, .btn-secondary:active, .btn-ghost:active { transform: translate(2px, 2px); box-shadow: 0 0 0 2px var(--ink-line), 1px 1px 0 var(--ink-line); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { transform: translate(-1px, -1px); box-shadow: 0 0 0 2.5px var(--ink-line), 4px 4px 0 var(--ink-line); }
}

/* Headings and labels */
.page-title, .ob-title { font-weight: 800; letter-spacing: -0.025em; }
.eyebrow { color: var(--coral-text); font-weight: 800; }
.card-title { font-weight: 800; }

/* The tab bar: the current tab gets a sunny sticker. */
.tab.is-on .ic { background: var(--pl-sun); box-shadow: 0 0 0 2px var(--ink-line); }
.tab.is-on .ic .ic-fill { fill: var(--pl-coral); }
@media (min-width: 900px) {
  .tab.is-on { background: var(--pl-sunwash); }
}

/* Home: the stat tiles get a colour each; today's card stands out. */
.stat-grid li:nth-child(1) .stat-icon { color: #b8860b; }
.stat-grid li:nth-child(1) .stat-tile { background: var(--pl-sunwash); }
.stat-grid li:nth-child(2) .stat-tile { background: var(--pl-wash); }
.stat-grid li:nth-child(3) .stat-tile { background: var(--pl-blush); }
.stat-grid li:nth-child(4) .stat-tile { background: var(--pl-lilac); }
.today { background: linear-gradient(160deg, #fff 0%, #fff 55%, var(--pl-wash) 100%); }

/* Lists of rows (Others, ways, settings): rows sit inside one outlined card. */
.way-rows { box-shadow: var(--sh-raise); border-radius: 22px; }

/* Chips and small pills */
.ul-chip, .px-chip { box-shadow: 0 0 0 2px var(--ink-line); }
.px-chip[aria-pressed="true"] { background: var(--ink-line); color: #fff; }

/* Toasts: a dark sticker. */
.app-toast { box-shadow: 0 0 0 2.5px var(--ink-line), 3px 3px 0 rgba(17, 22, 64, 0.35); }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* The upgrade card in the side rail (desktop only). */
.rail-up { display: none; }
@media (min-width: 960px) {
  .rail-up:not([hidden]) {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: auto; padding: 12px; border-radius: 16px;
    background: var(--teal-deeper, #0b7f8a); color: #fff; text-decoration: none; border: 2.5px solid var(--ink-line, #111640); box-shadow: 3px 3px 0 var(--ink-line, #111640);
    transition: transform 90ms ease-out, box-shadow 90ms ease-out;
  }
  .rail-up:not([hidden]) + .rail-me { margin-top: 0; }
  .rail-up:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink-line, #111640); }
  .rail-up b { font: 800 1rem/1.2 var(--font-head); color: #fff; }
  .rail-up small { font-size: 0.8rem; line-height: 1.3; color: #fff; opacity: 0.92; }
  .rail-up-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 6px; border-radius: 99px; background: #ffd65a; color: #111640; font: 800 0.72rem/1 var(--font-head); margin-bottom: 4px; }
  .rail-up-badge .ic { width: 15px; height: 15px; }
  .rail-up-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 38px; margin-top: 6px; border-radius: 12px; background: #ffd65a; color: #111640; font: 800 0.9rem/1 var(--font-head); border: 2px solid #111640; }
  .rail-up-btn .ic { width: 16px; height: 16px; }
}
/* A short window keeps the menu itself on screen. */
@media (min-width: 960px) and (max-height: 600px) { .rail-up:not([hidden]) { display: none; } .rail-up + .rail-me { margin-top: auto; } }
.songs-more { margin-top: 14px; }
