/* Iron Claw Fitness "Mirror" theme (docs/brand.md, "Mirror theme"), loaded after brand.css so it wins.
 *
 * Taken from the supplied Mirror.png poster ("Even the Devil Needs a Personal Trainer!") and Playlist.png:
 * - near-black rooms lit by red neon and warm candle/gilt light;
 * - heavy italic capitals for IRON CLAW FITNESS, white over claw-red;
 * - three diagonal claw slashes as the mark of the brand;
 * - torn red brush-stroke banners carrying the punchlines;
 * - gilt (the mirror's frame) used thinly, for frames and rules.
 *
 * Display face: Montserrat 800/900 italic (SIL OFL 1.1, licence in public/assets/brand/fonts/OFL-Montserrat.txt), Latin and
 * Cyrillic subsets only. Chinese falls back to the system's own bold face.
 */
@font-face { font-family: "Claw Display"; src: url("/public/assets/brand/fonts/montserrat-latin-800-italic.woff2") format("woff2");
  font-weight: 800; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Claw Display"; src: url("/public/assets/brand/fonts/montserrat-latin-900-italic.woff2") format("woff2");
  font-weight: 900; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Claw Display"; src: url("/public/assets/brand/fonts/montserrat-cyrillic-800-italic.woff2") format("woff2");
  font-weight: 800; font-style: italic; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Claw Display"; src: url("/public/assets/brand/fonts/montserrat-cyrillic-900-italic.woff2") format("woff2");
  font-weight: 900; font-style: italic; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --claw-black: #0a0a0b;        /* the room */
  --claw-coal: #141416;         /* panels */
  --claw-ash: #1e1e22;          /* raised panels, inputs */
  --claw-line: #2c2c31;         /* hairlines on black */
  --claw-red: #e3141c;          /* the claw, the neon */
  --claw-red-deep: #a50e14;     /* pressed, brush shadow */
  --claw-red-glow: rgba(255, 36, 44, 0.55);
  --claw-gilt: #c9a25a;         /* the mirror's frame, thin lines only */
  --claw-white: #f6f3ee;
  --claw-mute: #a7a2a0;         /* secondary text on black (contrast 7.5:1) */
  --claw-font-display: "Claw Display", "Montserrat", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  /* three diagonal claw slashes, the poster's mark */
  --claw-slashes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 48'%3E%3Cg fill='%23e3141c'%3E%3Cpath d='M30 0h7L13 48H8z'/%3E%3Cpath d='M42 2h7L25 46h-5z'/%3E%3Cpath d='M54 4h6L37 44h-5z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---- shared Mirror pieces: eyebrow, heavy italic title, neon script, brush banner ---- */
.claw-eyebrow { margin: 0 0 8px; color: var(--claw-mute); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.claw-title {
  margin: 0; font-family: var(--claw-font-display); font-style: italic; font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 1.02; color: var(--claw-white);
}
.claw-title em { font-style: italic; color: var(--claw-red); text-shadow: 0 0 18px var(--claw-red-glow); }
.claw-script {
  margin: 10px 0 0; color: #ff3b41; font-style: italic; font-weight: 600; font-size: 20px;
  text-shadow: 0 0 6px var(--claw-red-glow), 0 0 22px var(--claw-red-glow);
}
.claw-banner {
  display: inline-block; padding: 8px 22px; color: var(--claw-white); font-style: italic; font-weight: 800;
  background: linear-gradient(100deg, transparent 0 1.5%, var(--claw-red) 3% 97%, transparent 98.5%);
  clip-path: polygon(1% 12%, 6% 0, 40% 6%, 72% 0, 99% 8%, 100% 80%, 95% 100%, 55% 92%, 22% 100%, 0 88%);
}

/* ==== The whole site in the Mirror look ====
 * claw-dark.css (generated, loaded just before this file) has already turned the light working pages dark. This part sets the
 * theme's own colours and type: the variables every stylesheet reads, the lockup, buttons, titles, hero, sidebar and footer.
 * The old "Summit & Constellation" art stays in the markup (tests and the medallion rely on it) but is re-coloured or hidden. */
:root {
  color-scheme: dark;                         /* native controls, scrollbars and date pickers in dark */
  /* styles.css tokens */
  --primary: #e3141c;
  --primary-alt: #ff2a31;
  --accent: #e3141c;
  --primary-soft: rgba(227, 20, 28, 0.14);
  --background: var(--claw-black);
  --surface: var(--claw-coal);
  --surface-dark: var(--claw-black);
  --sidebar: #070707;
  --text: #f1ede8;
  --muted: var(--claw-mute);
  --border: var(--claw-line);
  --success: #2fbf62;
  --warning: #f0a020;
  --danger: #ff4b51;
  --info: #4c8dff;
  --teal: #2ab3a3;
  --card-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
  --modal-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  /* brand.css tokens: the night sky becomes the room, gold becomes the claw red, the frame a red hairline */
  --brand-night: var(--claw-black);
  --brand-deep: var(--claw-coal);
  --brand-dusk: var(--claw-ash);
  --brand-gold: var(--claw-red);
  --brand-gold-bright: #ff3b41;
  --brand-gold-soft: rgba(227, 20, 28, 0.38);
  --brand-ember: var(--claw-red);
  --brand-parchment: var(--claw-white);
  --brand-font-display: var(--claw-font-display);
  --brand-frame: 1px solid rgba(227, 20, 28, 0.38);
}
html, body { background: var(--claw-black); color: var(--text); }
::selection { background: rgba(227, 20, 28, 0.55); color: #fff; }
:focus-visible { outline-color: rgba(255, 59, 65, 0.8); }
a { color: inherit; }
select option { background: var(--claw-ash); color: var(--text); }
input, select, textarea { color: var(--text); }
::placeholder { color: #8b8684; opacity: 1; }
.constellation-field { display: none; }      /* the old star field: no place in the Mirror room */

/* ---- the lockup: IRON CLAW in white, FITNESS in red, heavy italic capitals ---- */
.brand-name { font-family: var(--claw-font-display); font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; color: var(--claw-white); }
.brand-word-red { color: var(--claw-red); }
.marketing-brand .brand-slogan, .sidebar-brand .brand-slogan, .auth-visual .brand-slogan, .marketing-footer .brand-slogan, .brand-slogan { color: var(--claw-mute); letter-spacing: 0.1em; }
.brand-mark { box-shadow: 0 0 0 1px rgba(227, 20, 28, 0.5), 0 0 16px rgba(227, 20, 28, 0.35); }

/* ---- buttons: red neon for the main action, a dark frame for the second ---- */
.btn-primary,
:is(.marketing-page, .pricing-page, .checkout-page, .auth-page) .marketing-header .btn-primary,
.marketing-page .btn-primary, .auth-page .btn-primary {
  color: #fff; background: linear-gradient(180deg, #f2232b, var(--claw-red) 60%, var(--claw-red-deep)); border-color: var(--claw-red);
  box-shadow: 0 6px 22px rgba(227, 20, 28, 0.35); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.btn-primary:hover:not(:disabled),
:is(.marketing-page, .pricing-page, .checkout-page, .auth-page) .marketing-header .btn-primary:hover,
.marketing-page .btn-primary:hover, .auth-page .btn-primary:hover { background: #ff2a31; box-shadow: 0 0 26px var(--claw-red-glow); }
.btn-secondary, .marketing-header .btn-secondary, .marketing-page .hero .btn-secondary {
  color: var(--claw-white); background: rgba(255, 255, 255, 0.03); border-color: #3a3a41;
}
.btn-secondary:hover:not(:disabled), .marketing-header .btn-secondary:hover, .marketing-page .hero .btn-secondary:hover {
  color: #fff; border-color: var(--claw-red); box-shadow: 0 0 14px rgba(227, 20, 28, 0.3);
}
.btn-ghost, .btn { color: inherit; }
.btn-danger { background: #c3121a; color: #fff; }
.nav-text.inline, .card a:not(.btn), .form-note a, .safety-note a { color: #ff5a5f; }

/* ---- titles: heavy italic capitals with the three claw slashes and a red rule ---- */
.page-header h1, .pricing-header h1, .checkout-header h1 {
  font-family: var(--claw-font-display); font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; color: var(--claw-white);
}
.page-header h1::after, .pricing-header h1::after {
  width: 150px; height: 14px; margin-top: 10px;
  background: var(--claw-slashes) no-repeat 0 50% / 18px 14px, linear-gradient(90deg, var(--claw-red), transparent) no-repeat 26px 50% / 124px 2px;
}
.card h2, .pricing-card h2, .pricing-card h3, .auth-card h1, .auth-card h2 {
  font-family: var(--claw-font-display); font-style: italic; font-weight: 800; letter-spacing: 0; color: var(--claw-white);
}
.card, .stat-card, .schedule-card, .pricing-card, .meal-card, .goal-card, .feature-item { border-color: var(--claw-line); }
.card { background: linear-gradient(180deg, #17171a, var(--claw-coal)); }
.stat-icon, .feature-item .feature-icon { color: #fff; background: radial-gradient(circle at 35% 30%, #ff3b41, var(--claw-red-deep)); box-shadow: 0 0 14px rgba(227, 20, 28, 0.35); }
.goal-card:hover, .goal-card.active { border-color: var(--claw-red); box-shadow: 0 0 0 1px var(--claw-red), 0 8px 26px rgba(227, 20, 28, 0.2); }
.goal-card.active .stat-icon { color: #fff; background: var(--claw-red); }
.pricing-card.featured { border-color: var(--claw-red); box-shadow: 0 0 0 1px var(--claw-red), 0 0 34px rgba(227, 20, 28, 0.25); }
.payment-method.active, .substitution-option:hover, .chip-static, .week-meal:hover { background: rgba(227, 20, 28, 0.12); }
.line-chart .area { fill: rgba(227, 20, 28, 0.18); }
.pricing-page, .checkout-page { background: var(--claw-black); }

/* ---- the marketing header, sidebar and phone bar: the darkest black, red underline ---- */
.marketing-header, :is(.pricing-page, .checkout-page) .marketing-header { background: rgba(8, 8, 9, 0.94); border-bottom: 1px solid rgba(227, 20, 28, 0.45); }
.marketing-nav .nav-text { color: rgba(246, 243, 238, 0.82); }
.marketing-nav .nav-text:hover { color: #fff; text-shadow: 0 0 10px var(--claw-red-glow); }
.language-switch-header, .sidebar .language-switch { border-color: #3a3a41; }
.language-option[aria-pressed="true"], .language-switch-header .language-option[aria-pressed="true"], .sidebar .language-option[aria-pressed="true"] { background: var(--claw-red); color: #fff; }
.sidebar { background: linear-gradient(180deg, #0b0b0c, #070707 70%), #070707; border-right: 1px solid rgba(227, 20, 28, 0.35); }
.sidebar-brand .brand-name { color: var(--claw-white); }
.nav-link { color: rgba(246, 243, 238, 0.74); }
.nav-link:hover { color: #fff; background: rgba(227, 20, 28, 0.08); }
.nav-link.active { color: #fff; background: linear-gradient(90deg, rgba(227, 20, 28, 0.28), transparent); box-shadow: inset 3px 0 0 var(--claw-red); }
.nav-link.active .icon { color: #ff3b41; filter: drop-shadow(0 0 4px var(--claw-red-glow)); }
.sidebar .avatar { background: var(--claw-ash); color: #ff3b41; box-shadow: 0 0 0 1px var(--claw-red); }
@media (max-width: 900px) {
  .mobile-topbar { background: rgba(8, 8, 9, 0.96); border-bottom: 1px solid rgba(227, 20, 28, 0.45); color: var(--claw-white); }
  .mobile-topbar .icon-button { color: #ff3b41; background: transparent; border-color: #3a3a41; }
  .mobile-bottom-nav { background: #0b0b0c; border-top: 1px solid rgba(227, 20, 28, 0.35); }
  .bottom-nav-link.active { color: #ff3b41; }
}

/* ---- hero: a dark room, red neon from the left, candle-gilt from the mirror ---- */
.hero {
  background:
    radial-gradient(ellipse at 78% 35%, rgba(201, 162, 90, 0.16), transparent 45%),
    radial-gradient(ellipse at 0% 100%, rgba(227, 20, 28, 0.28), transparent 50%),
    linear-gradient(180deg, #0b0b0c, #0a0a0b 70%, #120809);
  border-bottom: 1px solid rgba(227, 20, 28, 0.45);
}
.hero h1 { font-family: var(--claw-font-display); font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em;
  color: var(--claw-white); text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6); }
.hero h1 .brand-word-red { color: var(--claw-red); text-shadow: 0 0 22px var(--claw-red-glow); }
.hero h1::before { content: ""; display: block; width: 74px; height: 58px; margin-bottom: 8px; background: var(--claw-slashes) no-repeat 0 0 / contain;
  filter: drop-shadow(0 0 10px var(--claw-red-glow)); }
.hero-kicker { color: var(--claw-mute); }
.hero-kicker::before { background: linear-gradient(90deg, transparent, var(--claw-red)); }
.hero-tagline { margin: 16px 0 4px; font-size: clamp(17px, 2.1vw, 22px); background: none; color: #1a0f08; padding: 9px 24px;
  /* the poster's cream brush stroke with dark italic type */
  background: linear-gradient(100deg, transparent 0 1%, #efe3cc 2.5% 97.5%, transparent 99%); }
.hero-slogan { font-family: var(--claw-font-display); font-style: italic; font-weight: 800; letter-spacing: 0.06em; color: var(--claw-white);
  border: 1px solid #3a3a41; border-left: 3px solid var(--claw-red); outline: none; background: rgba(0, 0, 0, 0.35); }
.hero-subhead { color: rgba(246, 243, 238, 0.86); }
.invitation-sign { font-family: var(--claw-font-display); font-style: italic; font-weight: 800; color: #fff; border: 1px solid var(--claw-red);
  border-left: 4px solid var(--claw-red); background: rgba(227, 20, 28, 0.16); }
.invitation-sign::before { content: ""; width: 16px; height: 13px; background: var(--claw-slashes) no-repeat center / contain; }
.invitation-sign-link::after { color: #fff; }
.invitation-sign-link:hover, .invitation-sign-link:focus-visible { background: rgba(227, 20, 28, 0.32); border-color: #ff3b41; box-shadow: 0 0 18px var(--claw-red-glow); }
.hero-stat { background: rgba(20, 20, 22, 0.8); border: 1px solid var(--claw-line); border-top: 2px solid var(--claw-red); }
.hero-stat::after { display: none; }
.hero-stat strong { font-family: var(--claw-font-display); font-style: italic; font-weight: 900; color: #fff; }
.hero-stat span { color: var(--claw-mute); }
/* The gilt mirror: the Mirror scene in an arched, carved-gold frame. */
.hero-visual { width: min(100%, 420px); padding-bottom: 96px; }
.hero-medallion { width: 220px; }  /* smaller than the old 300 px, so the mirror's story (belly vs. reflection) stays visible */
.hero-summit.hero-mirror {
  aspect-ratio: 782 / 822; padding: 9px; border: 0; outline: 0; border-radius: 210px 210px 12px 12px;
  background: linear-gradient(140deg, #6b4c1c, #f1d48c 18%, #8a6526 38%, #e9c77d 58%, #7a5a24 78%, #f4dc9c);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 60px rgba(201, 162, 90, 0.22), 0 0 90px rgba(227, 20, 28, 0.14), 0 30px 60px rgba(0, 0, 0, 0.6);
}
.hero-summit.hero-mirror img { border-radius: 202px 202px 6px 6px; object-position: 40% 0; box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6); }
.medallion-ring .ring, .medallion-ring .figure { stroke: var(--claw-red); }
.medallion-ring .node { fill: #ff3b41; filter: drop-shadow(0 0 3px var(--claw-red-glow)); }
.hero-medallion .hero-figure { border-color: var(--claw-red); background: var(--claw-black);
  box-shadow: 0 0 0 6px rgba(10, 10, 11, 0.9), 0 0 40px var(--claw-red-glow), 0 20px 40px rgba(0, 0, 0, 0.6); }
.medallion-runner, .medallion-dog { filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 5px var(--claw-red-glow)); }
.medallion-runner line, .medallion-dog line, .medallion-dog .dog-tail { stroke: #fff; }
.medallion-runner .runner-head, .medallion-dog .dog-trunk, .medallion-dog .dog-head { fill: #fff; }
.medallion-runner .back line, .medallion-dog .far line { stroke: #d8d3cf; }
.medallion-dog .dog-ear { fill: #d8d3cf; }

/* ---- front-page sections ---- */
.marketing-page { background: var(--claw-black); color: var(--claw-white); }
.marketing-page .feature-strip { background: var(--claw-black); }
.marketing-page .feature-item { background: linear-gradient(180deg, #17171a, #111113); border: 1px solid var(--claw-line); border-bottom: 2px solid var(--claw-red); }
.marketing-page .feature-item h3, .marketing-page .feature-item strong { font-family: var(--claw-font-display); font-style: italic; font-weight: 800; color: #fff; }
.promo-video-section, .brand-way { background: radial-gradient(ellipse at 50% 0%, rgba(227, 20, 28, 0.14), transparent 60%), var(--claw-black); border-color: rgba(227, 20, 28, 0.35); }
.promo-video-inner h2, .brand-way h2, .brand-way-item h3, .brand-way-close p {
  font-family: var(--claw-font-display); font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; color: var(--claw-white);
}
.brand-way-item h3 { font-weight: 800; }
.brand-eyebrow { color: #ff3b41; }
.promo-video-frame { border-color: var(--claw-red); box-shadow: 0 0 0 1px rgba(227, 20, 28, 0.4), 0 0 50px rgba(227, 20, 28, 0.25), 0 30px 60px rgba(0, 0, 0, 0.6); }
.way-emblem .ring, .way-emblem .line { stroke: var(--claw-red); }
.way-emblem .node { fill: #ff3b41; }
.brand-way-item p { color: var(--claw-mute); }
/* The closing punchline on a torn red brush stroke, as at the foot of the Mirror poster. */
.claw-closing { padding: 34px 16px 40px; text-align: center; background: var(--claw-black); }
.claw-closing .claw-banner { max-width: 1040px; margin: 0; font-size: clamp(16px, 2.2vw, 24px); line-height: 1.3; padding: 14px 34px; }
.marketing-footer { background: #070707; border-top: 1px solid rgba(227, 20, 28, 0.45); }
.footer-link { color: var(--claw-white); }
.footer-link:hover, .footer-link:focus-visible { color: #ff3b41; }

/* ---- sign-in and sign-up: the Mirror scene behind the welcome ---- */
.auth-page { background: var(--claw-black); }
.auth-visual {
  background-image: linear-gradient(180deg, rgba(10, 10, 11, 0.1) 30%, rgba(10, 10, 11, 0.92) 85%),
    image-set(url("/public/assets/brand/mirror-scene.webp") type("image/webp"), url("/public/assets/brand/mirror-scene.jpg") type("image/jpeg"));
  background-size: cover; background-position: 40% 18%;
}
.auth-visual h1 { font-family: var(--claw-font-display); font-style: italic; font-weight: 900; text-transform: uppercase; color: #fff; }
.auth-card { background: linear-gradient(180deg, #17171a, var(--claw-coal)); border: 1px solid var(--claw-line); border-top: 3px solid var(--claw-red);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 24px 60px rgba(0, 0, 0, 0.7); color: var(--text); }

/* ---- advert slots: a plain coal box, so a paid banner never looks like part of the brand ---- */
.ad-slot { background: var(--claw-coal); border: 1px solid var(--claw-line); color: var(--text); }
.ad-label { color: var(--claw-mute); }
.ad-cta { color: #ff5a5f; }
.ad-pause { color: var(--claw-mute); }
.ad-pause:hover, .ad-pause:focus-visible { color: #fff; }

/* ---- Share menu: a charcoal panel with a red edge ---- */
.share-popover { background: var(--claw-coal); border: 1px solid var(--claw-line); border-top: 2px solid var(--claw-red); box-shadow: var(--modal-shadow); }
.share-option { color: var(--text); }
.share-option:hover, .share-option:focus-visible { background: rgba(227, 20, 28, 0.12); }
.share-menu > summary, .share-menu-header > summary { color: var(--claw-white); border-color: #3a3a41; }

/* The floating Share button on pages without a header to hold one (share-ui.js ensureFloating): bottom-right, opening upwards.
   Above the phone's bottom menu when that is shown. */
.share-floating { position: fixed; right: 18px; bottom: 18px; z-index: 70; }
.share-floating[hidden] { display: none; }
.share-floating > .share-menu > summary { background: var(--claw-coal); color: #fff; border-color: var(--claw-red);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 6px 22px rgba(0, 0, 0, 0.6), 0 0 16px rgba(227, 20, 28, 0.3); padding: 9px 14px; }
.share-floating .share-popover { top: auto; bottom: calc(100% + 8px); right: 0; left: auto; }
@media (max-width: 900px) { body:has(.mobile-bottom-nav) .share-floating { bottom: 84px; } }

/* ---- phones: the site header's menu and the member top bar ----
   The site header's ☰ menu (app.js siteMenu) shows only where the link row is hidden (below 900 px). */
.site-menu { display: none; position: relative; }
.site-menu > summary { list-style: none; display: grid; place-items: center; width: 40px; height: 40px; cursor: pointer;
  color: #fff; background: transparent; border: 1px solid #3a3a41; border-radius: 10px; }
.site-menu > summary::-webkit-details-marker { display: none; }
.site-menu[open] > summary { border-color: var(--claw-red); box-shadow: 0 0 14px rgba(227, 20, 28, 0.35); }
.site-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; min-width: 210px; padding: 6px; display: flex;
  flex-direction: column; gap: 2px; background: var(--claw-coal); border: 1px solid var(--claw-line); border-top: 2px solid var(--claw-red);
  border-radius: 12px; box-shadow: var(--modal-shadow); }
.site-menu-link { padding: 11px 14px; border: 0; border-radius: 8px; background: none; color: var(--claw-white); font: inherit;
  font-weight: 700; text-align: left; cursor: pointer; }
.site-menu-link:hover, .site-menu-link:focus-visible { background: rgba(227, 20, 28, 0.14); color: #fff; outline: none; }
@media (max-width: 900px) { .site-menu { display: block; } }
@media (max-width: 680px) {
  .marketing-actions { flex-wrap: nowrap; gap: 8px; }
  .marketing-header-inner { flex-wrap: nowrap; }
  .marketing-brand { min-width: 0; flex: 1 1 auto; overflow: hidden; }
  .marketing-brand .brand-name { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .share-menu-header > summary span { display: none; }  /* Share as an icon only: room for the menu button */
  .share-menu-header > summary { padding: 8px 10px; }
}
@media (max-width: 400px) {
  .marketing-brand .brand-text { display: none; }   /* the crab logo alone on the narrowest phones */
  .language-switch-header > summary { padding: 4px 8px; }
}

/* The member area's phone top bar (app.js renderAppShell): it must always fit. The name gives way first; on the narrowest
   phones only the crab logo stays. */
@media (max-width: 900px) {
  .mobile-topbar { gap: 8px; padding: 0 12px; }
  .mobile-topbar > .icon-button { flex: none; }
  .mobile-topbar .marketing-brand { flex: 1 1 auto; min-width: 0; overflow: hidden; justify-content: flex-start; }
  .mobile-topbar .brand-text { min-width: 0; }
  .mobile-topbar .brand-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .mobile-topbar .language-menu { flex: none; }
}
@media (max-width: 420px) { .mobile-topbar .brand-text { display: none; } }

/* ---- notices ---- */
.safety-note { background: rgba(240, 160, 32, 0.08); border-color: rgba(240, 160, 32, 0.45); color: #e9e2d8; }
.safety-note strong { color: #fff; }

/* ==== Playlist page (playlist-ui.js, docs/playlist.md) ==== */
.playlist-page { min-height: 100vh; color: var(--claw-white);
  background: radial-gradient(1100px 520px at 85% -10%, rgba(227, 20, 28, 0.22), transparent 60%),
              radial-gradient(800px 600px at -10% 30%, rgba(201, 162, 90, 0.08), transparent 60%), var(--claw-black); }
.playlist-page.in-app { min-height: 0; margin: -4px; border-radius: var(--radius-lg, 16px); overflow: hidden; }
.playlist-page-inner { max-width: 1080px; margin: 0 auto; padding: 48px 20px 64px; }
.playlist-hero { position: relative; padding-left: 82px; margin-bottom: 26px; }
.playlist-hero::before { content: ""; position: absolute; left: 0; top: 6px; width: 64px; height: 52px; background: var(--claw-slashes) no-repeat center / contain;
  filter: drop-shadow(0 0 8px var(--claw-red-glow)); }
.playlist-share { position: absolute; top: 0; right: 0; z-index: 2; }
.playlist-hero .claw-title { font-size: clamp(30px, 5vw, 54px); }
.playlist-lead { max-width: 720px; margin: 16px 0 0; color: var(--claw-mute); font-size: 15px; }

.streamer-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.streamer-choice {
  padding: 9px 16px; border: 1px solid var(--claw-line); border-radius: 999px; background: var(--claw-coal); color: var(--claw-white);
  font-weight: 700; letter-spacing: 0.02em; transition: border-color .15s, box-shadow .15s, background .15s;
}
.streamer-choice:hover { border-color: var(--claw-red); }
.streamer-choice:focus-visible { outline: 2px solid var(--claw-white); outline-offset: 2px; }
.streamer-choice.is-active { background: var(--claw-red); border-color: var(--claw-red); box-shadow: 0 0 18px var(--claw-red-glow); }

.playlist-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; column-rule: 1px solid rgba(227, 20, 28, 0.25);
  border-top: 1px solid rgba(227, 20, 28, 0.6); }  /* columns, not grid: 1-21 down the left, 22-42 down the right, as on the poster */
.playlist-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 4px;
  border-bottom: 1px solid var(--claw-line); break-inside: avoid; }
.playlist-row:hover { background: rgba(227, 20, 28, 0.06); }
.playlist-row.is-featured { border: 1px solid var(--claw-red); border-radius: 10px; box-shadow: 0 0 14px var(--claw-red-glow), inset 0 0 10px rgba(227, 20, 28, 0.15); margin: 3px 0; }
.playlist-num { color: var(--claw-red); font-family: var(--claw-font-display); font-style: italic; font-weight: 900; font-size: 18px; text-align: right; }
.playlist-song { display: flex; flex-direction: column; min-width: 0; }
.playlist-artist { font-weight: 800; color: var(--claw-white); }
.playlist-track { color: #d8d3cf; font-size: 13px; overflow-wrap: anywhere; }
.playlist-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.playlist-play {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; background: var(--claw-red); color: #fff;
  font-weight: 800; font-size: 13px; white-space: nowrap; box-shadow: 0 0 12px rgba(227, 20, 28, 0.35);
}
.playlist-play svg { width: 13px; height: 13px; fill: currentColor; }
.playlist-play:hover, .playlist-play:focus-visible { background: #ff2a31; box-shadow: 0 0 20px var(--claw-red-glow); outline: none; }
.playlist-others { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.playlist-alt { color: var(--claw-mute); font-size: 11px; text-decoration: underline; text-decoration-color: rgba(167, 162, 160, 0.4); text-underline-offset: 2px; }
.playlist-alt:hover, .playlist-alt:focus-visible { color: var(--claw-white); }

@media (max-width: 820px) {
  .playlist-list { columns: 1; }
  .playlist-hero { padding-left: 0; padding-top: 58px; }
  .playlist-hero::before { width: 54px; height: 44px; top: 0; }
  .playlist-page-inner { padding: 28px 14px 48px; }
  /* the other services drop to their own line under the song, so the title keeps the full width */
  .playlist-actions { display: contents; }
  .playlist-play { grid-column: 3; grid-row: 1; }
  .playlist-others { grid-column: 2 / 4; grid-row: 2; justify-content: flex-start; }
  .playlist-num { grid-row: 1 / 3; }
}

/* ==== Christmas look on the front page (app.js christmasOn and friends; docs/brand.md, "Christmas look") ====
   Lights across the top of the hero, falling snow and a drift, a garland on the gilt mirror, a Santa hat on the crab and a
   green-and-gold greeting. Everything is decoration: aria-hidden, no pointer events. With "reduce motion" nothing moves: the
   snow is left out and the lights glow steadily. */
.hero.is-christmas { background:
    radial-gradient(ellipse at 78% 35%, rgba(201, 162, 90, 0.18), transparent 45%),
    radial-gradient(ellipse at 0% 100%, rgba(227, 20, 28, 0.26), transparent 50%),
    radial-gradient(ellipse at 40% 110%, rgba(47, 209, 107, 0.10), transparent 45%),
    linear-gradient(180deg, #0b0d10, #0a0a0b 70%, #0d0a0a); }
.xmas-lights { position: absolute; top: 0; left: 0; width: 100%; height: 56px; z-index: 3; pointer-events: none; overflow: visible; }
.xmas-wire { fill: none; stroke: #1c1f1c; stroke-width: 2; vector-effect: non-scaling-stroke; }
.xmas-bulb rect { fill: #3b3d3b; }
.xmas-bulb ellipse { fill: var(--c); filter: drop-shadow(0 0 4px var(--c)) drop-shadow(0 0 9px var(--c)); }
.xmas-snow { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.xmas-snow i { position: absolute; top: -12px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: #fff;
  opacity: var(--o); filter: blur(0.4px); box-shadow: 0 0 6px rgba(255, 255, 255, 0.7); }
.xmas-drift { position: absolute; left: 0; bottom: -1px; width: 100%; height: 34px; z-index: 2; pointer-events: none; }
.xmas-drift path { fill: #eef3f8; filter: drop-shadow(0 -2px 6px rgba(255, 255, 255, 0.35)); }
.xmas-greeting {
  display: inline-block; margin: 10px 0 2px; padding: 8px 22px 8px 40px; position: relative;
  font-family: var(--claw-font-display); font-style: italic; font-weight: 800; font-size: clamp(15px, 1.8vw, 19px); color: #fff8e6;
  background: linear-gradient(100deg, transparent 0 1%, #0f6b3a 2.5% 97.5%, transparent 99%);
  clip-path: polygon(1% 12%, 6% 0, 40% 6%, 72% 0, 99% 8%, 100% 80%, 95% 100%, 55% 92%, 22% 100%, 0 88%);
  box-shadow: inset 0 -2px 0 #ffcf4a; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.xmas-greeting::before { content: "\2744"; position: absolute; left: 16px; top: 50%; transform: translateY(-52%); color: #ffcf4a; }
.xmas-garland { position: absolute; left: -4%; top: -16px; width: 108%; height: auto; z-index: 1; pointer-events: none; overflow: visible;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.55)); }
.pine-rope { fill: none; stroke: #0f3f21; stroke-width: 9; stroke-linecap: round; }
.xmas-pine line { stroke-width: 2; stroke-linecap: round; }
.xmas-pine .pine-a { stroke: #1d6b3a; }
.xmas-pine .pine-b { stroke: #2a8a4b; }
.xmas-string { stroke: #c9a25a; stroke-width: 1; }
.xmas-bauble { stroke: rgba(0, 0, 0, 0.35); stroke-width: 1; }
.xmas-shine { fill: rgba(255, 255, 255, 0.75); }
.xmas-twinkle { fill: #ffe9a6; filter: drop-shadow(0 0 3px #ffcf4a); }
.xmas-bow path, .xmas-bow circle { fill: #d4121a; stroke: #8e0a10; stroke-width: 1; }
.xmas-hat { position: absolute; top: 2%; left: 10%; width: 40%; z-index: 3; transform: rotate(-18deg); pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.55)); }
.xmas-hat .hat-red { fill: #d4121a; }
.xmas-hat .hat-shade { fill: #9e0c12; opacity: 0.7; }
.xmas-hat .hat-fur { fill: #f7f5f0; }
@media (prefers-reduced-motion: no-preference) {
  .xmas-snow i { animation: xmas-fall var(--d) linear var(--delay) infinite; }
  .xmas-bulb ellipse, .xmas-twinkle { animation: xmas-twinkle 2.6s ease-in-out var(--delay) infinite; }
}
@media (prefers-reduced-motion: reduce) { .xmas-snow { display: none; } }
@keyframes xmas-fall { from { transform: translate(0, 0); } to { transform: translate(var(--drift), 900px); } }
@keyframes xmas-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (max-width: 680px) { .xmas-lights { height: 40px; } .xmas-greeting { font-size: 14px; } }
