/* Animated Adventure — a cartoon-movie morning: saturated sky, puffy clouds, striped hot-air balloons,
   a storybook lighthouse, and the trip name on a wooden signboard. Art lives in /img/themes/animated-adventure/. */
[data-trip-theme="animated-adventure"] {
  --aa-ink: #13285C;
  --aa-line: #1E2C66;          /* cartoon outline */
  --aa-title-line: #2152C9;    /* the title's blue outline */
  --aa-title-deep: #0F1F55;    /* the title's extruded shadow */
  --aa-yellow: #FFD21F;
  --aa-sky-top: #1A78DE;
  --aa-grass: #3E9E43;
  --aa-wood-dark: #6A3413;
  --aa-wood: url("/img/themes/animated-adventure/wood.svg") 0 0 / 640px 112px repeat, #A9672F;
  --aa-scene-y: 0px;           /* where the scene starts (phones push it down a little) */
  --aa-scene-h: 800px;

  --aa-o: var(--aa-title-line);
  --aa-d: var(--aa-title-deep);

  --t-bg: var(--aa-sky-top);
  --t-bg-image: none;
  --t-ink: var(--aa-ink);
  --t-muted: #3A4F7E;
  --t-surface: #FFFDF6;
  --t-surface-2: #EAF4FF;
  --t-border: #A9C2E6;
  --t-border-w: 3px;
  --t-primary: #2468DA;   --t-on-primary: #FFFFFF;
  --t-secondary: #16832F; --t-on-secondary: #FFFFFF;
  --t-accent: var(--aa-yellow); --t-on-accent: var(--aa-ink);
  --t-btn-border: #123C92;
  --t-link: #1D57C2;
  --t-focus: #0B1A4A;
  --t-warn-bg: #FFE066;   --t-warn-ink: #4A2A00;
  --t-shadow: 0 12px 22px rgba(10, 30, 80, .25);
  --t-shadow-btn: none;
  --t-radius-card: 18px;
  --t-radius-btn: 999px;
  --t-font-display: "Lilita One", "Fredoka", system-ui, sans-serif;
  --t-font-body: "Nunito Sans", system-ui, -apple-system, sans-serif;
  --t-font-num: "Lilita One", "Fredoka", system-ui, sans-serif;
  --t-title-size: clamp(2.2rem, 4.8cqi + .6rem, 5.1rem);
  --t-title-weight: 400;
  --t-title-ink: var(--aa-yellow);
  --t-title-shadow: 0 4px 0 var(--aa-title-line);
  --t-hero-bg:
    radial-gradient(circle at 20px 20px, #EDE3D2 0 3px, #5E3416 3.5px 5.5px, transparent 6px),
    radial-gradient(circle at calc(100% - 20px) 20px, #EDE3D2 0 3px, #5E3416 3.5px 5.5px, transparent 6px),
    radial-gradient(circle at 20px calc(100% - 20px), #EDE3D2 0 3px, #5E3416 3.5px 5.5px, transparent 6px),
    radial-gradient(circle at calc(100% - 20px) calc(100% - 20px), #EDE3D2 0 3px, #5E3416 3.5px 5.5px, transparent 6px),
    var(--aa-wood);
  --t-hero-ink: #FFF3DC;
  --t-hero-muted: #FFF3DC;
  --t-hero-border: var(--aa-wood-dark);
  --t-eyebrow-ink: #FFFFFF;
  --t-count-bg:
    radial-gradient(ellipse 80% 36% at 50% 106%, rgba(255, 112, 170, .7), rgba(255, 112, 170, 0) 72%),
    linear-gradient(180deg, #5AA8FF 0%, #2C74E6 46%, #1B4FC2 100%);
  --t-count-ink: #FFFFFF;
  --t-count-border: var(--aa-yellow);
  --t-card-bg: #FFFDF6;
  --t-card-ink: var(--aa-ink);
  --t-card-muted: #3A4F7E;
  --t-card-border: #A9C2E6;
  --t-card-head-ink: var(--aa-ink);
  --t-home-bg: radial-gradient(130% 150% at 50% 45%, #FFF8E6 42%, #F7E2B2 82%, #EBC889 100%);
  --t-home-ink: #22264A;
  --t-page-ink: #FFFFFF;
  --t-page-muted: #FFF3DC;
  --t-sheet-bg: #FFFDF6;
  --t-sheet-ink: var(--aa-ink);
  --btn-primary-bg: #2468DA;
  --choice-on-bg: #FFF4C2;
  --choice-on-border: #2468DA;
  --field-border: #8EA9D2;
}

/* ---------- the world: sky + balloons + village + hills, then meadow all the way down ---------- */
[data-trip-theme="animated-adventure"] .ts-backdrop {
  background:
    url("/img/themes/animated-adventure/scene.svg") 50% var(--aa-scene-y) / 100% var(--aa-scene-h) no-repeat,
    linear-gradient(180deg,
      var(--aa-sky-top) 0, var(--aa-sky-top) calc(var(--aa-scene-y) + 8px),
      var(--aa-grass) calc(var(--aa-scene-y) + 8px), var(--aa-grass) calc(var(--aa-scene-y) + var(--aa-scene-h)),
      #2F8A3E calc(var(--aa-scene-y) + var(--aa-scene-h) + 700px), #25753A 100%);
}
[data-trip-theme="animated-adventure"] .ts-backdrop::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--aa-scene-y) + var(--aa-scene-h));
  bottom: 0;
  background: url("/img/themes/animated-adventure/meadow.svg") 50% 0 / 360px 360px repeat;
}
/* one more balloon, drifting slowly over the left edge of the sky */
[data-trip-theme="animated-adventure"] .ts-backdrop::after {
  content: "";
  position: absolute;
  display: none;
  top: 236px;
  left: calc(50% + 652px);
  width: 76px;
  height: 100px;
  background: url("/img/themes/animated-adventure/balloon.svg") center / contain no-repeat;
  filter: hue-rotate(150deg) saturate(1.15);
  animation: aa-drift 16s ease-in-out infinite alternate;
}

/* ---------- masthead: lighthouse + wooden signboard on a post ---------- */
[data-trip-theme="animated-adventure"] .ts-wrap { padding-top: 30px; }
[data-trip-theme="animated-adventure"] .ts-hero { position: relative; align-items: end; }
[data-trip-theme="animated-adventure"] .ts-masthead { padding: 40px 10px 78px 150px; }
[data-trip-theme="animated-adventure"] .ts-deco { display: block; position: absolute; background-repeat: no-repeat; background-size: contain; }
[data-trip-theme="animated-adventure"] .ts-deco-1 {
  left: -4px;
  bottom: -10px;
  width: 152px;
  height: 428px;
  background-image: url("/img/themes/animated-adventure/tower.svg");
  background-position: center bottom;
}
[data-trip-theme="animated-adventure"] .ts-deco-2 {
  top: -14px;
  left: 31%;
  width: 66px;
  height: 87px;
  background-image: url("/img/themes/animated-adventure/balloon.svg");
  background-position: center;
  animation: aa-bob 7s ease-in-out infinite;
}
/* the post (behind the sign) and a bush at its foot */
[data-trip-theme="animated-adventure"] .ts-masthead::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: 6px;
  left: calc(150px + (100% - 160px) / 2 - 22px);
  width: 44px;
  height: 140px;
  background:
    radial-gradient(circle at 50% 18px, #FFE58A 0 4px, transparent 4.5px),
    radial-gradient(circle at 50% 46px, #FFE58A 0 4px, transparent 4.5px),
    linear-gradient(90deg, #2B66CC 0%, #5FA2FF 38%, #3A7DE6 60%, #1F4FB0 100%);
  border: 4px solid var(--aa-line);
  border-radius: 8px 8px 4px 4px;
}
[data-trip-theme="animated-adventure"] .ts-masthead::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: calc(150px + (100% - 160px) / 2 - 80px);
  width: 160px;
  height: 56px;
  background: url("/img/themes/animated-adventure/bush.svg") center bottom / contain no-repeat;
}
[data-trip-theme="animated-adventure"] .ts-frame {
  padding: 22px 38px 26px;
  border-width: 5px;
  border-radius: 16px;
  transform: rotate(-2.6deg);
  box-shadow:
    inset 0 3px 0 rgba(255, 222, 170, .45), inset 0 -6px 0 rgba(60, 25, 5, .35),
    0 0 0 4px var(--aa-line),
    7px 10px 0 4px var(--aa-title-deep),
    0 26px 34px rgba(8, 28, 80, .35);
}
[data-trip-theme="animated-adventure"] .ts-eyebrow {
  margin: 0 0 4px;
  font-family: var(--t-font-display);
  font-size: clamp(1.25rem, 1.6cqi + .5rem, 1.9rem);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.1;
  text-transform: none;
}
[data-trip-theme="animated-adventure"] .ts-title { letter-spacing: .01em; line-height: 1.08; padding-bottom: .12em; }
[data-trip-theme="animated-adventure"] .ts-dates {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 16px;
  font-size: 1.02rem;
  font-weight: 800;
  background: rgba(64, 26, 6, .55);
  border-radius: 999px;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .3), 0 1px 0 rgba(255, 220, 170, .35);
  text-shadow: 0 1px 0 #3A1806;
}

/* chunky cartoon outline (stacked text-shadows) for the title, eyebrow and countdown; set --aa-o / --aa-d per element */
[data-trip-theme="animated-adventure"] :is(.ts-title, .ts-eyebrow, .ts-count-n, .ts-count-l) {
  text-shadow:
    .07em 0 0 var(--aa-o), .065em .027em 0 var(--aa-o), .05em .05em 0 var(--aa-o), .027em .065em 0 var(--aa-o),
    0 .07em 0 var(--aa-o), -.027em .065em 0 var(--aa-o), -.05em .05em 0 var(--aa-o), -.065em .027em 0 var(--aa-o),
    -.07em 0 0 var(--aa-o), -.065em -.027em 0 var(--aa-o), -.05em -.05em 0 var(--aa-o), -.027em -.065em 0 var(--aa-o),
    0 -.07em 0 var(--aa-o), .027em -.065em 0 var(--aa-o), .05em -.05em 0 var(--aa-o), .065em -.027em 0 var(--aa-o),
    .06em .1em 0 var(--aa-d), 0 .13em 0 var(--aa-d), -.06em .1em 0 var(--aa-d), .07em .06em 0 var(--aa-d), -.07em .06em 0 var(--aa-d),
    0 .17em .1em rgba(0, 0, 0, .3);
}

/* ---------- countdown: blue badge on a little wooden board, with a pennant on top ---------- */
[data-trip-theme="animated-adventure"] .ts-side { width: 214px; gap: 16px; }
[data-trip-theme="animated-adventure"] .ts-count {
  position: relative;
  min-height: 124px;
  margin: 56px 18px 18px;
  border-width: 4px;
  border-radius: 22px;
  box-shadow:
    0 0 0 3px var(--aa-line),
    inset 0 3px 0 rgba(255, 255, 255, .45), inset 0 -4px 0 rgba(10, 30, 100, .35);
}
[data-trip-theme="animated-adventure"] .ts-count::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -20px -18px -18px;
  background: var(--aa-wood);
  border: 4px solid var(--aa-wood-dark);
  border-radius: 14px;
  box-shadow: 0 0 0 3px var(--aa-line), 5px 7px 0 3px var(--aa-title-deep), 0 16px 24px rgba(8, 28, 80, .3);
}
[data-trip-theme="animated-adventure"] .ts-count::after {
  content: "";
  position: absolute;
  z-index: -2;
  top: -62px;
  left: 50%;
  width: 54px;
  height: 48px;
  margin-left: -9px;
  background: url("/img/themes/animated-adventure/pennant.svg") left bottom / contain no-repeat;
  animation: aa-flap 3.5s ease-in-out infinite;
  transform-origin: 8px 100%;
}
[data-trip-theme="animated-adventure"] .ts-count-n {
  font-size: 4.3rem;
  font-weight: 400;
  line-height: .95;
  --aa-o: var(--aa-line);
  --aa-d: #0B1A4A;
}
[data-trip-theme="animated-adventure"] .ts-count-l {
  font-family: var(--t-font-display);
  font-size: 1.12rem;
  font-weight: 400;
  letter-spacing: .05em;
  color: #FFE04A;
  --aa-o: #7A1036;
  --aa-d: #4A0820;
}

/* ---------- glossy pill buttons: red, blue, green ---------- */
[data-trip-theme="animated-adventure"] .ts-actions { gap: 12px; }
[data-trip-theme="animated-adventure"] .ts-btn {
  --b-hi: #74B5FF; --b-mid: #2468DA; --b-lo: #1A4FB8; --b-edge: #123C92;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 48px;
  font-family: var(--t-font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: .03em;
  color: #FFFFFF;
  background: linear-gradient(180deg, var(--b-hi) 0%, var(--b-mid) 52%, var(--b-lo) 100%);
  border: 3px solid var(--b-edge);
  box-shadow: 0 0 0 2px var(--aa-line), 0 5px 0 2px var(--aa-line), 0 12px 16px rgba(8, 28, 80, .3);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35), 1px 0 0 var(--b-edge), -1px 0 0 var(--b-edge), 0 -1px 0 var(--b-edge), 0 1px 0 var(--b-edge);
}
[data-trip-theme="animated-adventure"] .ts-btn::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  z-index: -1;
  top: 3px;
  height: 40%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .05));
  pointer-events: none;
}
[data-trip-theme="animated-adventure"] .ts-btn > span { filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .3)); }
[data-trip-theme="animated-adventure"] .ts-btn-1 { --b-hi: #FA6E97; --b-mid: #DC2A5E; --b-lo: #B8174A; --b-edge: #8A0E38; }
[data-trip-theme="animated-adventure"] .ts-btn-2 { --b-hi: #74B5FF; --b-mid: #2468DA; --b-lo: #1A4FB8; --b-edge: #123C92; }
[data-trip-theme="animated-adventure"] .ts-btn-3 { --b-hi: #74DD6E; --b-mid: #16832F; --b-lo: #0F6A25; --b-edge: #0B5A1E; }
[data-trip-theme="animated-adventure"] .ts-btn:hover { transform: translateY(-2px); filter: brightness(1.07); }
[data-trip-theme="animated-adventure"] .ts-btn:active { transform: translateY(3px); box-shadow: 0 0 0 2px var(--aa-line), 0 2px 0 2px var(--aa-line); }

/* ---------- banner + setup nudge ---------- */
[data-trip-theme="animated-adventure"] .ts-banner {
  border: 3px solid var(--aa-line);
  border-radius: 999px;
  box-shadow: 0 5px 0 rgba(30, 44, 102, .45);
}
[data-trip-theme="animated-adventure"] .ts-nudge { border: 3px dashed #2468DA; box-shadow: var(--t-shadow); }
[data-trip-theme="animated-adventure"] .nudge-meter { border: 2px solid var(--aa-line); }
[data-trip-theme="animated-adventure"] .nudge-meter span { background: linear-gradient(90deg, #5ED35E, #FFD21F); }

/* ---------- day cards: cream cards with bright header bands that change per card ---------- */
[data-trip-theme="animated-adventure"] .ts-day-grid { gap: 14px; }
[data-trip-theme="animated-adventure"] .dc-li { --hc: #45B0FF; --hc-d: #1E78D0; }
[data-trip-theme="animated-adventure"] .dc-li:nth-child(7n + 2) { --hc: #FFB52E; --hc-d: #CF7A0A; }
[data-trip-theme="animated-adventure"] .dc-li:nth-child(7n + 3) { --hc: #FF80B5; --hc-d: #D2457F; }
[data-trip-theme="animated-adventure"] .dc-li:nth-child(7n + 4) { --hc: #66D058; --hc-d: #33962F; }
[data-trip-theme="animated-adventure"] .dc-li:nth-child(7n + 5) { --hc: #B590FF; --hc-d: #7A50D8; }
[data-trip-theme="animated-adventure"] .dc-li:nth-child(7n + 6) { --hc: #6C9CFF; --hc-d: #2F5FD0; }
[data-trip-theme="animated-adventure"] .dc-li:nth-child(7n) { --hc: #FFD43B; --hc-d: #C99A00; }
[data-trip-theme="animated-adventure"] .day-card {
  background: linear-gradient(180deg, #FFFFFF 0%, color-mix(in srgb, var(--hc) 18%, #FFFDF6) 100%);
  border: 3px solid var(--hc-d);
  border-radius: 16px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .7), 0 6px 0 1px color-mix(in srgb, var(--hc-d) 75%, #000), 0 16px 22px rgba(8, 28, 80, .3);
}
[data-trip-theme="animated-adventure"] .day-card:hover { transform: translateY(-5px) rotate(-1deg); }
[data-trip-theme="animated-adventure"] .day-card:hover .dc-icon { animation: aa-hop .6s ease; }
[data-trip-theme="animated-adventure"] .dc-head {
  gap: 0;
  padding: 8px 6px 7px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hc) 55%, #fff) 0%, var(--hc) 48%, var(--hc) 100%);
  border-bottom: 3px solid var(--hc-d);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08);
}
[data-trip-theme="animated-adventure"] .dc-dow,
[data-trip-theme="animated-adventure"] .dc-date {
  font-family: var(--t-font-display);
  font-weight: 400;
  font-size: 1.12rem;
  letter-spacing: .02em;
  line-height: 1.1;
  text-transform: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}
[data-trip-theme="animated-adventure"] .dc-date { font-size: 1.18rem; }
[data-trip-theme="animated-adventure"] .dc-body { padding: 14px 8px 4px; }
[data-trip-theme="animated-adventure"] .dc-icon { font-size: 3.1rem; filter: drop-shadow(0 4px 0 rgba(20, 40, 100, .18)); }
[data-trip-theme="animated-adventure"] .dc-title { font-weight: 400; font-size: 1.2rem; letter-spacing: .01em; line-height: 1.1; }
[data-trip-theme="animated-adventure"] .dc-sub { font-weight: 700; color: #3A4F7E; }
[data-trip-theme="animated-adventure"] .wx { background: #FFFFFF; border: 2px solid color-mix(in srgb, var(--hc) 55%, #fff); }
[data-trip-theme="animated-adventure"] .dc-plans { color: #3A4F7E; }
[data-trip-theme="animated-adventure"] .dc-warn { border: 2px solid #B98500; }

/* ---------- info cards ---------- */
[data-trip-theme="animated-adventure"] .ts-info { gap: 22px; margin-top: 36px; }
[data-trip-theme="animated-adventure"] .info-card {
  --ic: #45B0FF; --ic-d: #1E78D0;
  padding-top: 24px;
  background: linear-gradient(var(--ic) 0 12px, transparent 12px) top / 100% 12px no-repeat, #FFFDF6;
  border: 3px solid var(--ic-d);
  box-shadow: 0 6px 0 1px color-mix(in srgb, var(--ic-d) 75%, #000), 0 16px 24px rgba(8, 28, 80, .28);
}
[data-trip-theme="animated-adventure"] .info-card:nth-child(3n) { --ic: #66D058; --ic-d: #33962F; }
[data-trip-theme="animated-adventure"] .info-card:nth-child(3n + 1) { --ic: #B590FF; --ic-d: #7A50D8; }
[data-trip-theme="animated-adventure"] .ic-title { font-weight: 400; font-size: 1.5rem; letter-spacing: .01em; }
[data-trip-theme="animated-adventure"] .leg-head { font-family: "Fredoka", var(--t-font-body); font-weight: 600; font-size: 1.05rem; }
[data-trip-theme="animated-adventure"] .leg + .leg { border-top: 2px dashed #A9C2E6; }
[data-trip-theme="animated-adventure"] .pc-chip { background: #FFFFFF; border: 2px solid #BFD6F6; box-shadow: 0 3px 0 #BFD6F6; }
[data-trip-theme="animated-adventure"] .pc-emoji { background: #EAF4FF; }
[data-trip-theme="animated-adventure"] .pc-name { font-family: "Fredoka", var(--t-font-body); font-weight: 600; }

/* home base: a parchment notice with a cartoon cottage, map buttons in blue / green / red */
[data-trip-theme="animated-adventure"] .home-card {
  gap: 24px;
  background: var(--t-home-bg);
  padding: 20px 24px;
  border: 4px solid #9A5A26;
  border-radius: 14px;
  box-shadow:
    inset 0 0 0 3px #FFF4D8, inset 0 0 0 5px #D9A35F,
    0 0 0 3px var(--aa-line), 6px 9px 0 3px var(--aa-title-deep), 0 22px 30px rgba(8, 28, 80, .3);
}
[data-trip-theme="animated-adventure"] .home-card .ic-art {
  width: 228px;
  height: 144px;
  margin: -40px -4px -26px -18px;
  font-size: 0;
  background: url("/img/themes/animated-adventure/cottage.svg") center bottom / contain no-repeat;
  border-radius: 0;
  filter: drop-shadow(0 6px 0 rgba(30, 44, 102, .2));
}
[data-trip-theme="animated-adventure"] .home-card .ic-kicker { font-weight: 800; color: #7A3E12; opacity: 1; }
[data-trip-theme="animated-adventure"] .home-card .ic-title { font-size: 1.85rem; color: var(--aa-ink); }
[data-trip-theme="animated-adventure"] .home-card .ic-line { font-weight: 600; }
[data-trip-theme="animated-adventure"] .home-card .reveal { background: #FFF; border-color: #9A5A26; }
[data-trip-theme="animated-adventure"] .ic-links { gap: 14px; min-width: 200px; }
[data-trip-theme="animated-adventure"] .ic-links .ts-btn { font-size: 1.05rem; }
[data-trip-theme="animated-adventure"] .ic-links .ts-btn:nth-child(2) { --b-hi: #74DD6E; --b-mid: #16832F; --b-lo: #0F6A25; --b-edge: #0B5A1E; }
[data-trip-theme="animated-adventure"] .ic-links .ts-btn:nth-child(3) { --b-hi: #FA6E97; --b-mid: #DC2A5E; --b-lo: #B8174A; --b-edge: #8A0E38; }

/* footer on a little wooden plank so it reads on the meadow */
[data-trip-theme="animated-adventure"] .ts-footer { display: flex; justify-content: center; }
[data-trip-theme="animated-adventure"] .ts-footer p {
  margin: 0;
  padding: 10px 22px;
  color: #FFF3DC;
  background: linear-gradient(rgba(60, 24, 4, .5), rgba(60, 24, 4, .5)), var(--aa-wood);
  border: 3px solid var(--aa-wood-dark);
  border-radius: 12px;
  box-shadow: 0 0 0 3px var(--aa-line), 0 6px 0 3px var(--aa-title-deep);
  text-shadow: 0 1px 0 #3A1806;
}
[data-trip-theme="animated-adventure"] .ts-footer a { color: #FFE04A; }

/* ---------- themed dialogs ---------- */
[data-trip-theme="animated-adventure"] .sheet-inner {
  border: 4px solid var(--aa-line);
  border-radius: 26px;
  box-shadow: 0 10px 0 rgba(15, 31, 85, .55), 0 30px 70px rgba(0, 0, 0, .35);
}
[data-trip-theme="animated-adventure"] .sheet-head {
  background:
    url("/img/themes/animated-adventure/balloon.svg") right 62px center / auto 74% no-repeat,
    linear-gradient(180deg, #2F86EA 0%, #1D63D2 100%);
  border-bottom: 4px solid var(--aa-yellow);
}
[data-trip-theme="animated-adventure"] .sheet-title {
  font-weight: 400;
  padding-right: 48px;
  font-size: 1.55rem;
  letter-spacing: .02em;
  color: #FFFFFF;
  --aa-o: var(--aa-line);
  --aa-d: #0B1A4A;
  text-shadow: 0 2px 0 var(--aa-line), 1px 0 0 var(--aa-line), -1px 0 0 var(--aa-line), 0 -1px 0 var(--aa-line);
}
[data-trip-theme="animated-adventure"] .sheet-x { color: #FFFFFF; }
[data-trip-theme="animated-adventure"] .sheet-x:hover { background: rgba(255, 255, 255, .2); }
[data-trip-theme="animated-adventure"] .ds-chip,
[data-trip-theme="animated-adventure"] .day-sheet .wx { border: 2px solid #BFD6F6; background: #FFFFFF; }
[data-trip-theme="animated-adventure"] .tl-item {
  background: #FFFFFF;
  border: 2px solid #CFE0F7;
  border-left: 9px solid var(--accent);
  border-radius: 16px;
  box-shadow: 0 4px 0 #CFE0F7;
}
[data-trip-theme="animated-adventure"] .tl-title { font-family: "Fredoka", var(--t-font-body); font-weight: 600; font-size: 1.08rem; }
[data-trip-theme="animated-adventure"] .tl-edit { border: 2px solid #A9C2E6; border-radius: 999px; background: #EAF4FF; }
[data-trip-theme="animated-adventure"] .tl-hop { color: #1D57C2; }
[data-trip-theme="animated-adventure"] .ds-add-h { font-family: var(--t-font-display); font-weight: 400; font-size: 1.2rem; letter-spacing: .02em; }
[data-trip-theme="animated-adventure"] .ds-add-btn {
  font-family: "Fredoka", var(--t-font-body);
  font-weight: 600;
  background: #FFFFFF;
  border: 2px solid #A9C2E6;
  border-radius: 999px;
  box-shadow: 0 3px 0 #A9C2E6;
}
[data-trip-theme="animated-adventure"] .ds-add-btn:hover { border-color: #2468DA; box-shadow: 0 3px 0 #2468DA; }
[data-trip-theme="animated-adventure"] .ds-empty { border: 2px dashed #A9C2E6; }

/* the drifting balloon only shows when there is open sky beside the content */
@container trip (min-width: 1500px) {
  [data-trip-theme="animated-adventure"] .ts-backdrop::after { display: block; }
}

/* ---------- tablet: sign takes the full width, badge + buttons in a row below ---------- */
@container trip (max-width: 899px) {
  [data-trip-theme="animated-adventure"] .ts-side { width: auto; gap: 14px 26px; }
  [data-trip-theme="animated-adventure"] .ts-count { margin: 58px 16px 16px; min-width: 170px; }
  [data-trip-theme="animated-adventure"] .ts-actions { max-width: 420px; }
}

/* ---------- phone: one column; the tower peeks over the sign, cards turn into rows ---------- */
@container trip (max-width: 599px) {
  [data-trip-theme="animated-adventure"] {
    --aa-scene-y: 120px;
    --aa-scene-h: 600px;
    --t-title-size: clamp(2rem, 8.6cqi, 2.6rem);
  }
  [data-trip-theme="animated-adventure"] .ts-wrap { padding-top: 12px; }
  [data-trip-theme="animated-adventure"] .ts-masthead { padding: 86px 4px 62px; }
  [data-trip-theme="animated-adventure"] .ts-deco-1 { left: -2px; top: 0; bottom: auto; width: 84px; height: 237px; }
  [data-trip-theme="animated-adventure"] .ts-deco-2 { top: 10px; left: auto; right: 22px; width: 48px; height: 63px; }
  [data-trip-theme="animated-adventure"] .ts-masthead::after { left: calc(50% - 17px); width: 34px; height: 96px; bottom: 6px; }
  [data-trip-theme="animated-adventure"] .ts-masthead::before { left: calc(50% - 50px); width: 100px; height: 35px; bottom: -4px; }
  /* clouds drifting behind the sign */
  [data-trip-theme="animated-adventure"] .ts-hero::before,
  [data-trip-theme="animated-adventure"] .ts-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 22px;
    left: 70px;
    width: 120px;
    height: 60px;
    background: url("/img/themes/animated-adventure/cloud.svg") center / contain no-repeat;
    animation: aa-drift 18s ease-in-out infinite alternate;
  }
  [data-trip-theme="animated-adventure"] .ts-hero::after { top: 4px; left: auto; right: -30px; width: 150px; height: 75px; animation-duration: 22s; animation-direction: alternate-reverse; }
  [data-trip-theme="animated-adventure"] .ts-frame {
    padding: 16px 14px 18px;
    transform: rotate(-1.5deg);
    box-shadow:
      inset 0 3px 0 rgba(255, 222, 170, .45), inset 0 -5px 0 rgba(60, 25, 5, .35),
      0 0 0 3px var(--aa-line), 4px 7px 0 3px var(--aa-title-deep), 0 16px 24px rgba(8, 28, 80, .35);
  }
  [data-trip-theme="animated-adventure"] .ts-eyebrow { font-size: 1.15rem; }
  [data-trip-theme="animated-adventure"] .ts-dates { font-size: .92rem; padding: 4px 12px; }
  [data-trip-theme="animated-adventure"] .ts-side { gap: 12px; }
  [data-trip-theme="animated-adventure"] .ts-count { margin: 52px 14px 10px; min-height: 0; padding: 8px 18px; }
  [data-trip-theme="animated-adventure"] .ts-count::after { top: -58px; width: 46px; height: 42px; }
  [data-trip-theme="animated-adventure"] .ts-count-n { font-size: 2.6rem; }
  [data-trip-theme="animated-adventure"] .ts-actions { gap: 10px; }
  [data-trip-theme="animated-adventure"] .ts-actions .ts-btn { font-size: 1rem; padding: 8px 14px; }
  [data-trip-theme="animated-adventure"] .ts-banner { border-radius: 18px; }
  [data-trip-theme="animated-adventure"] .ts-day-grid { gap: 14px; }
  [data-trip-theme="animated-adventure"] .day-card:hover { transform: none; }
  [data-trip-theme="animated-adventure"] .dc-head {
    width: 76px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--hc) 60%, #fff) 0%, var(--hc) 60%);
    border-bottom: 0;
    border-right: 3px solid var(--hc-d);
  }
  [data-trip-theme="animated-adventure"] .dc-dow { font-size: 1.02rem; }
  [data-trip-theme="animated-adventure"] .dc-date { font-size: 1.04rem; white-space: nowrap; }
  [data-trip-theme="animated-adventure"] .dc-icon { font-size: 2.2rem; }
  [data-trip-theme="animated-adventure"] .dc-title { font-size: 1.1rem; }
  [data-trip-theme="animated-adventure"] .day-card { background: linear-gradient(90deg, #FFFFFF 0%, color-mix(in srgb, var(--hc) 16%, #FFFDF6) 100%); }
  [data-trip-theme="animated-adventure"] .home-card { padding: 18px 16px; }
  [data-trip-theme="animated-adventure"] .home-card .ic-art { width: 112px; height: 74px; margin: -30px -6px -4px -10px; }
  [data-trip-theme="animated-adventure"] .home-card .ic-title { font-size: 1.45rem; }
  [data-trip-theme="animated-adventure"] .ic-links { min-width: 0; gap: 12px; }
  [data-trip-theme="animated-adventure"] .ic-links .ts-btn { padding: 8px 10px; font-size: .98rem; white-space: nowrap; }
  [data-trip-theme="animated-adventure"] .ts-footer p { padding: 10px 14px; }
}


/* ---------- resort postcard frame: white mat, cartoon outline ---------- */
[data-trip-theme="animated-adventure"] .home-card {
  --resort-frame: 4px solid #FFFFFF;
  --resort-shadow: 0 0 0 3px var(--aa-line), 0 7px 0 3px rgba(30, 44, 102, .22);
  --resort-radius: 18px;
}

/* ---------- print: drop the board, pennant and wooden footer; keep every word dark on white ---------- */
@media print {
  [data-trip-theme="animated-adventure"] .ts-count::before,
  [data-trip-theme="animated-adventure"] .ts-count::after,
  [data-trip-theme="animated-adventure"] .ts-btn::after { display: none !important; }
  [data-trip-theme="animated-adventure"] .ts-count-l,
  [data-trip-theme="animated-adventure"] .ts-dates,
  [data-trip-theme="animated-adventure"] .ts-footer p,
  [data-trip-theme="animated-adventure"] .ts-footer a { color: #000 !important; background: none !important; border: 0 !important; padding: 0 !important; }
  [data-trip-theme="animated-adventure"] .home-card { border: 1px solid #999 !important; }
}

@keyframes aa-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes aa-drift { from { transform: translate(0, 0); } to { transform: translate(40px, -24px); } }
@keyframes aa-flap { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-3deg); } }
@keyframes aa-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-8px) scale(1.06); } 70% { transform: translateY(2px); } }
