/* Vine UI kit — Duolingo visual language, Vine's own assets.
   Flat filled shapes, no outlines on art, no gradients, 2px card borders,
   solid zero-blur offset shadows that compress on press and lift on hover. */

:root {
  /* BRAND (the founder, 28 Sep): #00BEFF is the primary ACCENT where the Duolingo green used to be
     (the main button, the path, progress, selected states, charts). Vine's own green (production's
     #1ECB58) stays for the brand, correct answers, gains and success. Duolingo's green is gone
     (tests/brand-colours.test.js). Measured: dark ink on #00BEFF 7.85:1; white on it 2.14:1, so
     NEVER white text on the accent; #00749C (accent-ink) is the accent as text on white, 5.28:1. */
  --k-accent: 0, 190, 255;
  --k-accent-shade: 0, 152, 204;
  --k-accent-ink: 0, 116, 156;
  --k-accent-light: 224, 246, 255;
  --k-accent-edge: 128, 220, 255;
  --k-green: 30, 203, 88;
  --k-green-dark: 14, 143, 95;
  --k-green-light: 227, 249, 234;
  /* Vine's deep green, the same in both themes: white text sits on it (5.37:1). */
  --k-green-deep: 11, 122, 80;
  --k-blue: 28, 176, 246;
  /* Blue TEXT (ink on white or on a blue tint). 14,111,163 = 5.50:1 on white, 4.83:1 on
     --k-blue-light; the old 24,153,214 was 3.20 / 2.81. Borders and fills use --k-blue. */
  --k-blue-dark: 14, 111, 163;
  --k-blue-light: 221, 244, 255;
  --k-yellow: 255, 200, 0;
  --k-yellow-dark: 231, 166, 1;
  --k-yellow-light: 255, 245, 211;
  --k-red: 255, 75, 75;
  --k-red-dark: 234, 43, 43;
  --k-red-light: 255, 223, 224;
  --k-purple: 206, 130, 255;
  --k-purple-dark: 165, 99, 211;
  --k-purple-light: 244, 228, 255;
  --k-orange: 255, 150, 0;
  --k-orange-dark: 205, 121, 0;
  --k-orange-light: 255, 236, 209;
  --k-pink: 255, 134, 208;
  --k-pink-dark: 219, 96, 172;
  --k-pink-light: 255, 228, 244;
  --k-teal: 0, 205, 156;
  --k-teal-dark: 0, 164, 124;
  --k-ink: 75, 75, 75;
  --k-ink-soft: 107, 107, 107; /* 5.3:1 on white, 4.8:1 on the pale green tint (117 was 4.6 on white but 4.1 to 4.3 on #f7f7f7 and the tints) */
  --k-line: 229, 229, 229;
  --k-snow: 255, 255, 255;
  --k-polar: 247, 247, 247;
  /* Theme-stable tokens. --k-snow is the page/surface color (dark in dark mode);
     --k-white is ALWAYS white: icons and text sitting on a colored fill. */
  --k-white: 255, 255, 255;
  --k-hare: 175, 175, 175;
  /* Grey for WORDS. --k-hare stays for borders, fills and locked states; as text it measured
     2.2:1 (light) and 2.75:1 (dark), under WCAG's 4.5:1. Same neutral family, text-safe. */
  --k-hare-text: 110, 110, 110;
  /* INK: brand colours for TEXT on light surfaces. The brand fills (the greens, #1cb0f6, #ff4b4b,
     #a563d3) measured 2.1 to 3.9:1 as text on white; WCAG AA needs 4.5:1. Same hues, darker,
     each checked on white, #f7f7f7 and the pale tints. Fills, icons and the logo keep the
     brand values. Dark mode keeps the brand values for text too: they pass on the dark surface. */
  --k-green-ink: 11, 122, 80;
  --k-blue-ink: 10, 111, 166;
  --k-red-ink: 198, 40, 40;
  --k-purple-ink: 138, 69, 191;
  /* Shadow/edge tones under colored fills: never change with the theme. The
     --k-*-dark tokens double as "ink on a tint" and brighten in dark mode. */
  --k-green-shade: 14, 143, 95;
  --k-blue-shade: 24, 153, 214;
  --k-yellow-shade: 231, 166, 1;
  --k-red-shade: 234, 43, 43;
  --k-purple-shade: 165, 99, 211;
  --k-orange-shade: 205, 121, 0;
  --k-pink-shade: 219, 96, 172;
  --k-teal-shade: 0, 164, 124;
  /* borders of correct / wrong answers */
  --k-green-edge: 142, 226, 169;
  --k-red-edge: 255, 178, 178;
  /* Label on the brand fills: the same dark ink in both themes (route A, chosen 27 Sep). White on
     these fills measured 1.5 to 3.3:1; this ink measures 5.1 to 10.8:1. One value, shared with
     dark mode below, so the two can't drift apart. */
  --k-on-color: 19, 31, 36;
}

/* ---------- dark theme (Duolingo dark palette) ----------
   Same values twice: forced with data-theme="dark", or following the system
   when no explicit choice ("auto") has been made. */
html[data-theme="dark"] {
  color-scheme: dark;
  --k-snow: 19, 31, 36;
  --k-polar: 32, 47, 54;
  --k-line: 55, 70, 79;
  --k-ink: 241, 247, 251;
  --k-ink-soft: 220, 230, 236;
  --k-hare: 82, 101, 109;
  --k-hare-text: 150, 168, 176;
  --k-green-ink: 30, 203, 88;
  --k-accent-ink: 0, 190, 255;
  --k-blue-ink: 28, 176, 246;
  --k-red-ink: 255, 75, 75;
  --k-purple-ink: 206, 130, 255;
  --k-on-color: 19, 31, 36;
  --k-green-dark: 90, 222, 135;
  --k-blue-dark: 73, 192, 248;
  --k-yellow-dark: 255, 200, 0;
  --k-red-dark: 255, 120, 120;
  --k-purple-dark: 216, 160, 255;
  --k-orange-dark: 255, 170, 60;
  --k-pink-dark: 255, 150, 215;
  --k-teal-dark: 0, 205, 156;
  --k-green-light: 18, 58, 38;
  --k-accent-light: 10, 52, 70;
  --k-blue-light: 19, 56, 76;
  --k-yellow-light: 62, 52, 18;
  --k-red-light: 70, 30, 36;
  --k-purple-light: 50, 38, 72;
  --k-orange-light: 66, 44, 16;
  --k-pink-light: 66, 30, 54;
  --k-green-edge: 14, 143, 95;
  --k-accent-edge: 0, 152, 204;
  --k-red-edge: 234, 43, 43;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --k-snow: 19, 31, 36;
    --k-polar: 32, 47, 54;
    --k-line: 55, 70, 79;
    --k-ink: 241, 247, 251;
    --k-ink-soft: 220, 230, 236;
    --k-hare: 82, 101, 109;
    --k-hare-text: 150, 168, 176;
    --k-green-ink: 30, 203, 88;
    --k-accent-ink: 0, 190, 255;
    --k-blue-ink: 28, 176, 246;
    --k-red-ink: 255, 75, 75;
    --k-purple-ink: 206, 130, 255;
    --k-on-color: 19, 31, 36;
    --k-green-dark: 90, 222, 135;
    --k-blue-dark: 73, 192, 248;
    --k-yellow-dark: 255, 200, 0;
    --k-red-dark: 255, 120, 120;
    --k-purple-dark: 216, 160, 255;
    --k-orange-dark: 255, 170, 60;
    --k-pink-dark: 255, 150, 215;
    --k-teal-dark: 0, 205, 156;
    --k-green-light: 18, 58, 38;
    --k-accent-light: 10, 52, 70;
    --k-blue-light: 19, 56, 76;
    --k-yellow-light: 62, 52, 18;
    --k-red-light: 70, 30, 36;
    --k-purple-light: 50, 38, 72;
    --k-orange-light: 66, 44, 16;
    --k-pink-light: 66, 30, 54;
    --k-green-edge: 14, 143, 95;
    --k-accent-edge: 0, 152, 204;
    --k-red-edge: 234, 43, 43;
  }
}

html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: rgb(var(--k-snow));
  color: rgb(var(--k-ink));
  font-family: "din-round", system-ui, sans-serif;
  overflow-x: hidden;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
}
img {
  max-width: 100%;
}
:focus-visible {
  outline: 3px solid rgb(var(--k-blue));
  outline-offset: 3px;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hidden {
  display: none !important;
}

/* ---------- icons + tiles ---------- */
.vi {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  flex-shrink: 0;
}
[data-icon] {
  display: inline-flex;
  align-items: center;
}
.vtile {
  --c: var(--k-green);
  --cd: var(--k-green-shade);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgb(var(--c));
  box-shadow: inset 0 -4px 0 rgb(var(--cd));
  /* The icon on the fill: the same ink as text on fills (route A). White measured 1.55 to 3.3:1
     on these fills, under the 3:1 WCAG 1.4.11 asks of an icon that carries meaning (the phone's
     bottom nav is icons only). */
  color: rgb(var(--k-on-color));
  font-size: 24px;
  padding-bottom: 3px;
}
.vtile.sm { width: 32px; height: 32px; border-radius: 9px; font-size: 18px; box-shadow: inset 0 -3px 0 rgb(var(--cd)); padding-bottom: 2px; }
.vtile.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 36px; box-shadow: inset 0 -5px 0 rgb(var(--cd)); padding-bottom: 4px; }
.vtile.xl { width: 88px; height: 88px; border-radius: 24px; font-size: 50px; box-shadow: inset 0 -6px 0 rgb(var(--cd)); padding-bottom: 5px; }
.vtile-green { --c: var(--k-green); --cd: var(--k-green-shade); }
.vtile-blue { --c: var(--k-blue); --cd: var(--k-blue-shade); }
.vtile-yellow { --c: var(--k-yellow); --cd: var(--k-yellow-shade); }
.vtile-red { --c: var(--k-red); --cd: var(--k-red-shade); }
.vtile-purple { --c: var(--k-purple); --cd: var(--k-purple-shade); }
.vtile-orange { --c: var(--k-orange); --cd: var(--k-orange-shade); }
.vtile-pink { --c: var(--k-pink); --cd: var(--k-pink-shade); }
.vtile-teal { --c: var(--k-teal); --cd: var(--k-teal-shade); }
.vtile-grey { --c: 175, 175, 175; --cd: 140, 140, 140; }
/* shop avatars: a Vine cast member, on the same tile */
/* The cast in a square tile: the face crop, whole and centred (never a cropped body). */
.vtile-cast { overflow: hidden; padding: 0; align-items: center; justify-content: center; }
.vtile-cast img { width: 82%; height: 82%; object-fit: contain; display: block; }
/* The drawn shop avatars, all 29 (js/ui.js SPROUT_ART): the cast's sizing, on the avatar's own colour.
   The icon underneath is hidden only while the drawing is there; if it fails, the icon shows. */
.vtile-sprout { overflow: hidden; padding: 0; }
.vtile-sprout img { width: 82%; height: 82%; object-fit: contain; display: block; }
.vtile-sprout img + svg { display: none; }

/* ---------- wordmark ---------- */
.vine-wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  text-decoration: none;
  color: rgb(var(--k-green));
  font-family: "feather-bold", sans-serif;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.vine-wordmark img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

/* ---------- buttons ---------- */
.kbtn {
  --c: var(--k-accent);
  --cd: var(--k-accent-shade);
  --fg: var(--k-on-color);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 16px;
  background: rgb(var(--c));
  color: rgb(var(--fg));
  box-shadow: 0 4px 0 rgb(var(--cd));
  font-family: "din-round-bold", sans-serif;
  font-size: 15px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease;
}
@media (hover: hover) {
  .kbtn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 rgb(var(--cd));
  filter: brightness(1.04);
}
}
.kbtn:active:not(:disabled),
.kbtn.is-pressed {
  transform: translateY(4px);
  box-shadow: 0 0 0 rgb(var(--cd));
}
.kbtn:disabled {
  --c: var(--k-line);
  --cd: var(--k-line);
  --fg: var(--k-hare);
  cursor: not-allowed;
  box-shadow: none;
}
.kbtn-lg {
  height: 52px;
  /* 300px wide where there's room; never wider than its container (a 300px floor pushed the
     button into the side gutters on small phones) */
  min-width: min(300px, 100%);
}
.kbtn-block {
  width: 100%;
}
.kbtn-blue { --c: var(--k-blue); --cd: var(--k-blue-shade); }
.kbtn-red { --c: var(--k-red); --cd: var(--k-red-shade); }
.kbtn-purple { --c: 60, 77, 255; --cd: 63, 34, 236; --fg: var(--k-white); }
.kbtn-white {
  --c: var(--k-snow);
  --cd: var(--k-line);
  --fg: var(--k-blue-dark); /* the blue text token: --k-blue as text on white was 2.3:1 */
  border: 2px solid rgb(var(--k-line));
}
/* sits on green/purple bands: stays white in both themes */
.kbtn-white-green { --c: var(--k-white); --cd: 200, 214, 222; --fg: var(--k-accent-ink); } /* on the accent band; name kept */
.kbtn-ghost {
  --c: var(--k-snow);
  --cd: var(--k-line);
  --fg: var(--k-hare);
  border: 2px solid rgb(var(--k-line));
}

/* ---------- cards, chips, bubbles ---------- */
.kcard {
  background: rgb(var(--k-snow));
  border: 2px solid rgb(var(--k-line));
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 0 rgb(var(--k-line));
}
.kchip {
  --c: var(--k-green);
  --cl: var(--k-green-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(var(--cl));
  color: rgb(var(--k-green-ink));
  font-family: "din-round-bold", sans-serif;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.kchip-blue { --cl: var(--k-blue-light); color: rgb(var(--k-blue-dark)); }
.kchip-yellow { --cl: var(--k-yellow-light); color: rgb(var(--k-yellow-dark)); }
.kchip-purple { --cl: var(--k-purple-light); color: rgb(var(--k-purple-ink)); }
.kchip-grey { --cl: var(--k-polar); color: rgb(var(--k-ink-soft)); }
.kchip-btn {
  min-height: 44px;
  border: 2px solid rgb(var(--k-line));
  background: rgb(var(--k-snow));
  box-shadow: 0 3px 0 rgb(var(--k-line));
  border-radius: 14px;
  padding: 10px 16px;
  font-family: "din-round-bold", sans-serif;
  font-size: 17px;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.kchip-btn:active {
  transform: translateY(3px);
  box-shadow: none;
}
.kchip-btn[aria-checked="true"],
.kchip-btn[aria-pressed="true"] {
  border-color: rgb(var(--k-blue));
  background: rgb(var(--k-blue-light));
  color: rgb(var(--k-blue-dark));
  box-shadow: 0 3px 0 rgb(var(--k-blue));
}
.kbubble {
  position: relative;
  border: 2px solid rgb(var(--k-line));
  border-radius: 16px;
  padding: 12px 18px;
  background: rgb(var(--k-snow));
  font-family: "din-round-medium", sans-serif;
  font-size: 18px;
  line-height: 1.4;
  color: rgb(var(--k-ink));
}
.kbubble::before,
.kbubble::after {
  content: "";
  position: absolute;
  left: -11px;
  top: 50%;
  translate: 0 -50%;
  border-style: solid;
  border-width: 9px 11px 9px 0;
  border-color: transparent rgb(var(--k-line)) transparent transparent;
}
.kbubble::after {
  left: -7px;
  border-width: 7px 9px 7px 0;
  border-color: transparent rgb(var(--k-snow)) transparent transparent;
}

/* ---------- options ---------- */
.kopt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 10px 16px;
  text-align: left;
  border: 2px solid rgb(var(--k-line));
  border-radius: 14px;
  background: rgb(var(--k-snow));
  box-shadow: 0 3px 0 rgb(var(--k-line));
  font-family: "din-round-medium", sans-serif;
  font-size: 17px;
  color: rgb(var(--k-ink));
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.15s ease;
}
@media (hover: hover) {
  .kopt:hover:not(:disabled) {
  background: rgb(var(--k-polar));
}
}
.kopt:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: none;
}
.kopt-n {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgb(var(--k-line));
  border-radius: 8px;
  font-family: "din-round-bold", sans-serif;
  font-size: 14px;
  color: rgb(var(--k-hare-text));
}
.kopt.is-selected { border-color: rgb(var(--k-blue)); background: rgb(var(--k-blue-light)); box-shadow: 0 3px 0 rgb(var(--k-blue)); color: rgb(var(--k-blue-dark)); }
.kopt.is-selected .kopt-n { border-color: rgb(var(--k-blue)); color: rgb(var(--k-blue-dark)); }
.kopt.is-correct { border-color: rgb(var(--k-green-edge)); background: rgb(var(--k-green-light)); box-shadow: 0 3px 0 rgb(var(--k-green-edge)); color: rgb(var(--k-green-ink)); }
.kopt.is-correct .kopt-n { border-color: rgb(var(--k-green-edge)); color: rgb(var(--k-green-ink)); }
.kopt.is-wrong { border-color: rgb(var(--k-red-edge)); background: rgb(var(--k-red-light)); box-shadow: 0 3px 0 rgb(var(--k-red-edge)); color: rgb(var(--k-red-dark)); }
.kopt.is-wrong .kopt-n { border-color: rgb(var(--k-red-edge)); color: rgb(var(--k-red-dark)); }
.kopt:disabled { cursor: default; }

/* ---------- range slider ---------- */
.krange {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  /* A 32px-tall box so a finger can grab it anywhere near the track; the track itself still
     looks 16px tall (drawn as a centred background). */
  height: 32px;
  border-radius: 10px;
  background: transparent;
  outline-offset: 6px;
  touch-action: pan-y;
  cursor: pointer;
}
/* the visible track: the same 16px rounded bar as before */
.krange::-webkit-slider-runnable-track {
  height: 16px;
  border-radius: 10px;
  background: rgb(var(--k-line));
}
.krange::-moz-range-track {
  height: 16px;
  border-radius: 10px;
  background: rgb(var(--k-line));
}
.krange::-webkit-slider-thumb {
  margin-top: -7px; /* centre the 30px thumb on the 16px track */
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgb(var(--k-blue));
  box-shadow: 0 3px 0 rgb(var(--k-blue-shade));
  border: 0;
}
.krange::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgb(var(--k-blue));
  box-shadow: 0 3px 0 rgb(var(--k-blue-shade));
  border: 0;
}

/* ---------- cast ---------- */
.vcast {
  display: inline-block;
  line-height: 0;
  transform-origin: 50% 100%;
}
.vcast img {
  display: block;
  height: 100%;
  width: auto;
  transform-origin: 50% 100%;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
/* The animal inside the slot the old figure had (js/ui.js CAST_SLOT): fitted, standing on the
   bottom edge, never wider than the slot. */
/* A slot can still give way in a tight row, as the old figures could (the picture shrinks with it). */
.vcast.has-slot { min-width: 0; }
.vcast.has-slot img,
.vcast.has-slot img[class] {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
}
.vface {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  line-height: 0;
  transform-origin: 50% 90%;
}
.vface img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.vconfetti {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 10px;
  height: 14px;
  pointer-events: none;
  z-index: 30;
}

/* Motion off (system setting OR the app's own setting): nothing moves,
   everything still shows in its final state. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
.vine-reduce-motion *,
.vine-reduce-motion *::before,
.vine-reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}
.vine-invisible { visibility: hidden !important; }

/* Under-13 page held closed until the server confirms a grown-up said yes (js/consent-gate.js). */
html.vine-gated body > * { visibility: hidden !important; }
/* The email gate (js/email-code.js): only its own screen shows until the address is confirmed. */
html.vine-ec-gated body > *:not(.ec-gate) { visibility: hidden !important; }
/* and the hidden page behind it doesn't scroll (6 Oct: a 15,709 px empty page on a phone); the gate scrolls itself. */
html.vine-ec-gated, html.vine-ec-gated body { overflow: hidden !important; height: 100%; }

/* ---------- notched phones and tablets ----------
   With viewport-fit=cover the page runs under the notch and the home bar; these keep content
   and every fixed bar clear of them. env() is 0 everywhere else, so nothing moves on a laptop. */
body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
/* each bar's own inset lives at the end of the file that styles it (lesson, auth, pages,
   landing), so a later padding shorthand there can't cancel it */

/* ---------- a grown-up's limit reached (js/child-sync.js) ----------
   One calm card over the page. No countdown, no red: the door is closed and says when it opens. */
.vine-limit {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgb(var(--k-snow));
  overflow-y: auto;
}
.vine-limit-card { max-width: 440px; width: 100%; text-align: center; }
.vine-limit-cast { height: 120px; width: auto; margin: 0 auto 8px; display: block; }
.vine-limit h1 { font-family: "din-round-bold", sans-serif; font-size: 24px; line-height: 1.25; margin: 0 0 10px; color: rgb(var(--k-ink)); }
.vine-limit h1:focus { outline: none; }
.vine-limit p { font-family: "din-round", sans-serif; font-size: 17px; line-height: 1.5; margin: 0 0 18px; color: rgb(var(--k-ink)); }
.vine-limit .kbtn { width: 100%; }
.vine-limit .vine-limit-note { margin: 14px 0 0; font-size: 15px; }
html.vine-limited { overflow: hidden; }

/* ---------- the privacy link every data-collecting screen carries (16 CFR 312.4(d)) ---------- */
.k-legal {
  box-sizing: border-box;
  margin: 16px auto 0;
  padding: 0 16px;
  max-width: 460px;
  font-family: "din-round", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  color: rgb(var(--k-ink));
}
.k-legal a {
  color: rgb(var(--k-ink));
  font-family: "din-round-bold", sans-serif;
  text-decoration: underline;
  text-decoration-color: rgb(var(--k-blue));
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.k-legal a:focus-visible { outline: 3px solid rgb(var(--k-blue)); outline-offset: 2px; }
.ls-legal { margin: -6px auto 12px; padding: 0 16px; font-size: 14px; }
.pd-legal { padding: 0 16px 28px; }
/* The "not saved" notice (js/vine-store.js syncNote): stays on the page until saving works again. */
.vine-sync-note { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 950; width: min(560px, calc(100% - 32px)); display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgb(var(--k-snow, 255 255 255)); color: rgb(var(--k-ink)); border: 2px solid rgb(var(--k-line)); box-shadow: 0 4px 0 rgb(var(--k-line)); }
.vine-sync-note p { margin: 0; flex: 1; font-size: 15px; line-height: 1.35; }
.vine-sync-note .kbtn { flex: none; white-space: nowrap; }
@media (max-width: 480px) { .vine-sync-note { flex-direction: column; align-items: stretch; text-align: left; } }
