/* Millie's House: one storybook look for the home page and every house.
   Layout: a single centered column (max 1080px) with a sticky name bar; the home page runs hero → life path → episodes,
   a house page runs scene → film → objects → path to the next house. Light palette by choice (it matches the brand art). */
:root {
  --cream: #fbf1df;        /* brand background (YouTube banner) */
  --cream-deep: #fff1cf;
  --paper: #fffdf6;
  --mustard: #f2b33d;      /* Millie's fur */
  --fur-soft: #fdeecb;
  --brown: #5a3226;        /* ink */
  --brown-soft: #85604f;
  --rust: #b5532a;         /* @handle colour on the banner */
  --coral: #e8665a;        /* her bow, the one accent */
  --line: #ead3a6;
  --shadow: 0 10px 30px rgba(90, 50, 38, 0.14);
  --font-display: "Fredoka", "Nunito", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='%23e7d3ad'%3E%3Cellipse cx='20' cy='27' rx='9' ry='7.5'/%3E%3Cellipse cx='9' cy='16' rx='4' ry='5'/%3E%3Cellipse cx='16' cy='9' rx='4' ry='5'/%3E%3Cellipse cx='24' cy='9' rx='4' ry='5'/%3E%3Cellipse cx='31' cy='16' rx='4' ry='5'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--cream); color: var(--brown); font: 400 1rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: 8px; }

/* ---------- name bar ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: rgba(251, 241, 223, 0.94); z-index: 31; }
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: rgba(251, 241, 223, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid rgba(234, 211, 166, 0.7); }
.bar .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.25rem/1 var(--font-display); }
.brand img { width: 40px; height: 40px; border-radius: 12px; }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.bar nav a.nav { text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; }
.bar nav a.nav:hover { background: var(--fur-soft); }
.social { display: inline-flex; gap: 6px; }
.social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--line); }
.social a:hover { border-color: var(--mustard); }
.social svg { width: 18px; height: 18px; fill: var(--brown); }
@media (max-width: 640px) { .bar nav a.nav { display: none; } .brand span { font-size: 1.1rem; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; border: 2px solid var(--brown); background: transparent; color: var(--brown); }
.btn.primary { background: var(--coral); border-color: var(--coral); color: #fffdf6; box-shadow: 0 4px 0 #c2483d; }
.btn.primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #c2483d; }
.btn.soft { border-color: var(--line); background: var(--paper); }
.btn:hover { filter: brightness(1.03); }

/* ---------- home: hero ---------- */
.hero { position: relative; padding-block: 56px 40px; background-image: var(--paw), var(--paw), var(--paw), var(--paw), var(--paw); background-repeat: no-repeat; background-size: 46px, 34px, 40px, 30px, 52px; background-position: 6% 18%, 13% 70%, 88% 14%, 94% 62%, 62% 92%; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); letter-spacing: -0.01em; }
.hero .tag { margin: 10px 0 0; font-size: clamp(1.05rem, 2.6vw, 1.3rem); color: var(--brown-soft); }
.hero .handle { margin: 6px 0 0; font: 600 1.1rem/1.3 var(--font-display); color: var(--rust); }
.hero .intro { margin: 22px 0 0; max-width: 34em; font-size: 1.08rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .logo { justify-self: center; width: min(360px, 80%); height: auto; aspect-ratio: 1; border-radius: 48px; animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-1deg); } }
@media (max-width: 760px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } .hero .logo { order: -1; width: 200px; } .hero .intro { margin-inline: auto; } .hero .actions { justify-content: center; } }

.section { padding-block: 48px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); }
.section-head p { margin: 0; color: var(--brown-soft); max-width: 36em; }

/* ---------- home: life path (a paw-print trail between houses) ---------- */
.road { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.road::before { content: ""; position: absolute; top: 20px; bottom: 20px; left: 50%; width: 30px; margin-left: -15px; background-image: var(--paw); background-size: 26px 26px; background-repeat: repeat-y; background-position: center top; opacity: 0.9; }
.stop { position: relative; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; }
.stop .marker { grid-column: 2; justify-self: center; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 3px solid var(--line); font: 600 1.1rem/1 var(--font-display); color: var(--brown-soft); position: relative; z-index: 1; }
.stop.open .marker { background: var(--mustard); border-color: #fffdf6; color: var(--brown); box-shadow: 0 4px 12px rgba(90, 50, 38, 0.25); }
.stop .card { grid-column: 3; }
.stop:nth-child(even) .card { grid-column: 1; grid-row: 1; }
.card { background: var(--paper); border: 2px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 4px 14px rgba(90, 50, 38, 0.06); }
.stop.open .card { box-shadow: var(--shadow); }
.card .thumb { aspect-ratio: 3 / 2; width: 100%; height: auto; object-fit: cover; background: var(--fur-soft); }
.card .body { padding: 16px 18px 18px; }
.card .stage { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust); }
.card h3 { font-size: 1.45rem; margin-top: 4px; }
.card p { margin: 6px 0 0; color: var(--brown-soft); }
.card .go { margin-top: 14px; }
.pill { display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px; background: var(--fur-soft); border: 1.5px solid var(--line); color: var(--brown-soft); }
.stop.soon .card { background: transparent; border-style: dashed; box-shadow: none; }
.stop.soon .card .body { padding-block: 14px; }
.stop.soon h3 { font-size: 1.2rem; color: var(--brown-soft); }
.stop.soon .pill { margin-top: 10px; }
@media (max-width: 760px) {
  .road::before { left: 26px; }
  .stop { grid-template-columns: 52px 1fr; gap: 14px; }
  .stop .marker { grid-column: 1; }
  .stop .card, .stop:nth-child(even) .card { grid-column: 2; grid-row: 1; }
}

/* ---------- home: episodes ---------- */
.episodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.ep { display: flex; flex-direction: column; background: var(--paper); border: 2px solid var(--line); border-radius: 22px; overflow: hidden; }
.ep .poster { position: relative; aspect-ratio: 4 / 5; background: var(--fur-soft) center / cover no-repeat; display: grid; place-items: center; }
.ep .poster img.mark { width: 46%; opacity: 0.95; }
.ep .poster .when { position: absolute; left: 12px; top: 12px; }
.ep .body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ep .kind { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust); }
.ep h3 { font-size: 1.25rem; }
.ep p { margin: 0; color: var(--brown-soft); font-size: 0.95rem; }
.ep .links { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.ep .links a { font-weight: 800; font-size: 0.92rem; }
.when.live { background: var(--coral); border-color: var(--coral); color: #fffdf6; }

/* ---------- house page ---------- */
.house-head { padding-block: 34px 18px; text-align: center; }
.house-head .pill { margin-bottom: 12px; }
.house-head h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.house-head p { margin: 10px auto 0; max-width: 36em; color: var(--brown-soft); font-size: 1.08rem; }
.house-main { max-width: 900px; margin: 0 auto; }
.scene-wrap { position: relative; border-radius: 26px; padding: 8px; background: linear-gradient(180deg, #fffdf6, var(--cream-deep)); border: 2px solid var(--line); box-shadow: var(--shadow); }
.scene { position: relative; border-radius: 18px; overflow: hidden; line-height: 0; }
.scene img { width: 100%; height: auto; }
.hotspot { position: absolute; width: 60px; height: 60px; margin: -30px 0 0 -30px; padding: 0; border: 0; background: transparent; cursor: pointer; z-index: 2; -webkit-tap-highlight-color: transparent; }
.hotspot .dot { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--mustard); border: 3px solid #fffdf6; box-shadow: 0 2px 8px rgba(90, 50, 38, 0.35); transition: transform 0.15s ease; }
.hotspot .dot::after { content: ""; position: absolute; inset: -11px; border-radius: 50%; border: 2px solid rgba(242, 179, 61, 0.8); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(0.55); opacity: 0.9; } 70%, 100% { transform: scale(1.15); opacity: 0; } }
.hotspot .chip { position: absolute; left: 50%; bottom: calc(50% + 16px); transform: translateX(-50%); white-space: nowrap; font: 800 0.8rem/1 var(--font-body); color: var(--brown); background: rgba(255, 253, 246, 0.95); border: 1.5px solid var(--mustard); border-radius: 999px; padding: 6px 10px; box-shadow: 0 3px 10px rgba(90, 50, 38, 0.18); pointer-events: none; }
.hotspot.chip-left .chip { left: auto; right: calc(50% + 14px); bottom: auto; top: 50%; transform: translateY(-50%); }
.hotspot:hover .dot, .hotspot:focus-visible .dot { transform: scale(1.25); }
.hotspot.read .dot::after { animation: none; opacity: 0; }
.hotspot.read .chip::after { content: " ✓"; color: #b97e14; }
@media (max-width: 520px) { .hotspot .chip { font-size: 0.7rem; padding: 5px 8px; } }
.scene-hint { margin: 12px 4px 0; text-align: center; font-size: 0.9rem; color: var(--brown-soft); }

.film { margin-top: 26px; display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: center; background: var(--paper); border: 2px solid var(--line); border-radius: 22px; padding: 14px; }
.film img { width: 140px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; }
.film .kind { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust); }
.film h2 { font-size: 1.5rem; margin-top: 4px; }
.film p { margin: 6px 0 12px; color: var(--brown-soft); }
.credit { font-size: 0.8rem; color: var(--brown-soft); }
@media (max-width: 520px) { .film { grid-template-columns: 96px 1fr; } .film img { width: 96px; } }

.objects { margin-top: 34px; }
.objects-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.objects h2 { font-size: 1.6rem; }
.found { font-size: 0.92rem; color: var(--brown-soft); font-variant-numeric: tabular-nums; }
.found b { color: var(--brown); }
.object-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .object-list { grid-template-columns: 1fr 1fr; } .object-list li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.object-btn { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 13px 16px; min-height: 62px; background: var(--paper); border: 2px solid var(--line); border-radius: 18px; color: var(--brown); cursor: pointer; font: inherit; }
.object-btn:hover { border-color: var(--mustard); }
.object-btn .num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--fur-soft); border: 2px solid var(--mustard); display: grid; place-items: center; font-weight: 800; }
.object-btn .meta { flex: 1; min-width: 0; }
.object-btn .name { display: block; font-weight: 800; font-size: 1.05rem; line-height: 1.3; }
.object-btn .tagline { display: block; font-size: 0.85rem; color: var(--brown-soft); }
.object-btn .done { display: none; font-size: 0.8rem; font-weight: 800; color: #b97e14; }
.object-btn .arrow { color: var(--mustard); font-weight: 800; font-size: 1.2rem; }
.object-btn.read { border-color: var(--mustard); background: #fffaf0; }
.object-btn.read .done { display: block; }
.object-btn.read .arrow { display: none; }
.film-pill { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--coral); color: #fffdf6; font-size: 0.7rem; font-weight: 800; vertical-align: 2px; }

.path { margin-top: 46px; padding: 26px; border-radius: 26px; background: var(--fur-soft); border: 2px solid var(--line); }
.path h2 { font-size: 1.5rem; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.door { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--paper); border: 2px solid var(--line); text-decoration: none; min-height: 84px; }
.door.next { flex-direction: row-reverse; text-align: right; }
.door img { width: 84px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; flex: none; }
.door .dir { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust); }
.door .n { display: block; font: 600 1.15rem/1.2 var(--font-display); }
.door.soon { border-style: dashed; background: transparent; color: var(--brown-soft); }
a.door:hover { border-color: var(--mustard); }
.mini { list-style: none; margin: 20px 0 0; padding: 0; display: flex; justify-content: space-between; position: relative; }
.mini::before { content: ""; position: absolute; left: 10px; right: 10px; top: 9px; border-top: 3px dotted var(--line); }
.mini li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; font-size: 0.72rem; font-weight: 800; color: var(--brown-soft); text-align: center; }
.mini li span.d { width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 3px solid var(--line); }
.mini li.open span.d { background: var(--mustard); border-color: #fffdf6; }
.mini li.here span.d { background: var(--coral); border-color: #fffdf6; box-shadow: 0 0 0 4px rgba(232, 102, 90, 0.25); }
.mini a { text-decoration: none; display: contents; }
@media (max-width: 560px) { .doors { grid-template-columns: 1fr; } .door.next { flex-direction: row; text-align: left; } .mini li em { display: none; } }

/* ---------- story sheet ---------- */
.overlay { position: fixed; inset: 0; background: rgba(90, 50, 38, 0.45); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 40; }
.overlay.open { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--paper); border-radius: 26px 26px 0 0; border-top: 3px solid var(--mustard); box-shadow: 0 -12px 40px rgba(90, 50, 38, 0.25);
  padding-top: 14px; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px));
  transform: translateY(105%); visibility: hidden; transition: transform 0.3s cubic-bezier(0.32, 0.72, 0.35, 1), visibility 0s linear 0.32s; max-height: 88vh; overflow-y: auto; }
.sheet.open { transform: none; visibility: visible; transition: transform 0.3s cubic-bezier(0.32, 0.72, 0.35, 1), visibility 0s; }
@media (min-width: 760px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(560px, calc(100vw - 48px)); border-radius: 26px; border: 3px solid var(--mustard); transform: translate(-50%, -46%) scale(0.97); opacity: 0; pointer-events: none; transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s linear 0.27s; max-height: 86vh; }
  .sheet.open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s; }
  .sheet .grab { display: none; }
}
.grab { width: 44px; height: 5px; border-radius: 999px; background: var(--line); margin: 0 auto 14px; }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; }
.sheet-head > div { flex: 1; min-width: 0; }
.ep-tag { display: inline-block; font-size: 0.8rem; font-weight: 800; color: var(--brown); background: var(--fur-soft); border: 1.5px solid var(--mustard); border-radius: 999px; padding: 4px 11px; line-height: 1.35; }
.sheet h3 { margin-top: 10px; font-size: 1.7rem; }
.close-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: var(--cream); color: var(--brown); font-size: 1.2rem; cursor: pointer; }
.sheet video, .sheet iframe { display: block; margin-top: 14px; width: 100%; aspect-ratio: 9 / 16; max-height: 60vh; border: 0; border-radius: 16px; background: #241610; }
.sheet .credit { margin-top: 8px; }
.sheet .story { margin: 14px 0 0; font-size: 1.06rem; line-height: 1.85; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.sheet-actions .btn { flex: 1 1 160px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--brown); color: #fffdf6; padding: 10px 16px; border-radius: 999px; font-weight: 700; opacity: 0; transition: opacity 0.2s ease, transform 0.2s ease; z-index: 60; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.locked { overflow: hidden; }

/* ---------- footer ---------- */
.foot { margin-top: 56px; padding-block: 34px calc(34px + env(safe-area-inset-bottom, 0px)); border-top: 2px dashed var(--line); color: var(--brown-soft); font-size: 0.9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.foot p { margin: 0; }
.foot .credits { flex-basis: 100%; font-size: 0.8rem; }

@media (prefers-reduced-motion: reduce) {
  .hotspot .dot::after, .hero .logo { animation: none; }
  .sheet, .overlay, .toast { transition: none; }
}

/* ---------- trips between houses: airmail postcards on the trail ---------- */
.stop.trip .marker { width: 42px; height: 42px; background: var(--paper); border-color: var(--coral); }
.postcard { position: relative; background: #fffdf8; border: 0; padding: 7px; box-shadow: 0 6px 18px rgba(90, 50, 38, 0.12);
  background-image: repeating-linear-gradient(135deg, #e8665a 0 12px, #fffdf8 12px 20px, #4f7fc0 20px 32px, #fffdf8 32px 40px); }
.postcard .body { background: #fffdf8; border-radius: 14px; }
.postcard::after { content: ""; position: absolute; right: 18px; top: 18px; width: 38px; height: 46px; border: 2px dashed var(--line); border-radius: 4px;
  background: var(--paw) center / 26px no-repeat; transform: rotate(4deg); }
.stop.trip:nth-child(odd) .postcard { transform: rotate(-1.2deg); }
.stop.trip:nth-child(even) .postcard { transform: rotate(1.2deg); }
.postcard .stage { color: #4f7fc0; }
.postcard h3 { padding-right: 52px; }
.mini li.trip span.d { width: 14px; height: 14px; margin-top: 3px; border-style: dashed; border-color: var(--coral); }

/* ---------- phones ---------- */
.hotspot .dot::before { content: none; }
@media (max-width: 600px) {
  /* the scene is small on a phone: numbered dots instead of crowded labels */
  .hotspot .chip { display: none; }
  .hotspot .dot { width: 26px; height: 26px; margin: -13px 0 0 -13px; display: grid; place-items: center; }
  .hotspot .dot::before { content: attr(data-n); font: 800 0.8rem/1 var(--font-body); color: var(--brown); }
  .hotspot.read .dot::before { content: "✓"; }
  .episodes { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ep { border-radius: 18px; }
  .ep .poster { aspect-ratio: 3 / 4; }
  .ep .poster .when { left: 8px; top: 8px; font-size: 0.68rem; padding: 3px 8px; }
  .ep .body { padding: 10px 12px 14px; }
  .ep h3 { font-size: 1.02rem; }
  .ep p { font-size: 0.85rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .ep .links a { font-size: 0.85rem; }
  .section { padding-block: 36px; }
  .hero { padding-block: 32px 24px; }
}
.hotspot.chip-right .chip { left: calc(50% + 14px); right: auto; bottom: auto; top: 50%; transform: translateY(-50%); }
.hotspot.chip-below .chip { bottom: auto; top: calc(50% + 16px); }

/* ---------- life map ---------- */
.map-vp { position: relative; height: clamp(340px, 62vh, 560px); border-radius: 26px; overflow: hidden; background: #f4ead6; border: 2px solid var(--line); box-shadow: var(--shadow); touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.map-vp:active { cursor: grabbing; }
.map-layer { position: absolute; left: 0; top: 0; transform-origin: 0 0; --inv: 1; }
.map-layer > img:first-child { display: block; width: 100%; height: 100%; max-width: none; pointer-events: none; }
#mapRoutes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
#mapRoutes path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
#mapRoutes .home-route { stroke: var(--brown); stroke-width: 3; stroke-dasharray: 2 9; }
#mapRoutes .trip-route { stroke: var(--coral); stroke-width: 2; stroke-dasharray: 1 7; opacity: 0.8; }
.map-millie { position: absolute; left: 0; top: 0; width: 34px; height: auto; max-width: none; transform-origin: 50% 100%; pointer-events: none; filter: drop-shadow(0 3px 3px rgba(90, 50, 38, 0.3)); z-index: 3; }
.pin { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; transform: translate(-50%, -100%) scale(var(--inv)); transform-origin: 50% 100%; z-index: 2; }
.pin-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--mustard); border: 3px solid #fffdf6; box-shadow: 0 3px 10px rgba(90, 50, 38, 0.35); }
.pin-icon svg { width: 20px; height: 20px; fill: var(--brown); }
.pin.trip .pin-icon { width: 32px; height: 32px; background: #fffdf6; border-color: var(--coral); }
.pin.trip .pin-icon svg { fill: var(--coral); stroke: var(--brown); stroke-width: 1; }
.pin.home.soon .pin-icon { background: #fffdf6; border: 3px dashed var(--brown-soft); }
.pin.home.soon .pin-icon svg { fill: var(--brown-soft); }
.pin-label { order: -1; white-space: nowrap; font: 800 0.8rem/1 var(--font-body); color: var(--brown); background: rgba(255, 253, 246, 0.95); border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 9px; box-shadow: 0 2px 8px rgba(90, 50, 38, 0.15); }
.pin.open .pin-label { border-color: var(--mustard); }
.pin.active .pin-icon { box-shadow: 0 0 0 5px rgba(232, 102, 90, 0.35), 0 3px 10px rgba(90, 50, 38, 0.35); }
.pin:focus-visible { outline: none; }
.pin:focus-visible .pin-icon { outline: 3px solid var(--rust); outline-offset: 3px; }
.map-ui { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; z-index: 4; }
.map-ui button { min-width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--line); background: var(--paper); color: var(--brown); font: 800 1.1rem/1 var(--font-body); cursor: pointer; box-shadow: 0 2px 8px rgba(90, 50, 38, 0.12); }
.map-ui .wide-btn { padding: 0 12px; font-size: 0.85rem; }
.map-card { position: absolute; left: 12px; bottom: 12px; z-index: 5; width: min(360px, calc(100% - 24px)); max-height: calc(100% - 76px); overflow-y: auto; background: var(--paper); border: 2px solid var(--mustard); border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow); cursor: auto; }
.map-card .close-btn { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; font-size: 1rem; }
.map-card .kicker { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust); }
.map-card h3 { font-size: 1.4rem; margin-top: 4px; padding-right: 40px; }
.map-card p { margin: 6px 0 10px; color: var(--brown-soft); font-size: 0.95rem; }
.map-houses { display: grid; gap: 8px; }
.map-house { display: flex; gap: 10px; align-items: center; text-decoration: none; padding: 8px; border-radius: 14px; border: 2px solid var(--line); background: #fffaf0; }
.map-house:hover { border-color: var(--mustard); }
.map-house img { width: 72px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.map-house b { display: block; font-size: 1rem; }
.map-house span span { font-size: 0.85rem; font-weight: 800; color: var(--coral); }
@media (max-width: 600px) { .map-vp { height: 430px; border-radius: 20px; } .map-card { left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 58%; padding: 12px 14px; } .map-card h3 { font-size: 1.15rem; } .map-card p { font-size: 0.88rem; margin: 4px 0 8px; } .map-house { padding: 6px; } .map-house img { width: 56px; } .map-ui { top: 8px; right: 8px; } }

/* ---------- films before release ---------- */
.premiere { margin: 4px 0 12px; font-weight: 800; color: var(--rust); }
.premiere-card { margin-top: 14px; aspect-ratio: 9 / 16; max-height: 52vh; border-radius: 16px; background: #241610 center / cover no-repeat; display: flex; align-items: flex-end; overflow: hidden; }
.premiere-card > div { width: 100%; padding: 16px; background: linear-gradient(transparent, rgba(36, 22, 16, 0.85) 40%); color: #fffdf6; display: flex; flex-direction: column; gap: 4px; }
.premiere-card b { font: 600 1.3rem/1.2 var(--font-display); }
.premiere-card .follow a { color: #ffd98f; font-weight: 800; }
.path-sub { margin: 4px 0 0; font-weight: 700; }
.map-hint { position: absolute; left: 12px; bottom: 12px; z-index: 4; pointer-events: none; font-size: 0.85rem; font-weight: 800; color: var(--brown); background: rgba(255, 253, 246, 0.94); border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 12px; transition: opacity 0.4s ease; }
.map-hint.gone { opacity: 0; }

/* ---------- preview builds only (hidden on the live domain) ---------- */
.env-banner { position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 35; max-width: calc(100% - 24px);
  padding: 8px 14px; border-radius: 999px; font: 800 0.82rem/1.3 var(--font-body); color: #fffdf6;
  background: repeating-linear-gradient(135deg, #b5532a 0 14px, #c8643a 14px 28px); box-shadow: 0 6px 18px rgba(90, 50, 38, 0.3); }
.env-banner a { color: #ffe3a6; }
@media (max-width: 600px) { .map-card.top { top: 56px; bottom: auto; } }
.story-photo { margin: 16px auto 4px; width: fit-content; max-width: 78%; padding: 10px 10px 12px; background: #fffefb; border-radius: 6px; box-shadow: 0 8px 22px rgba(90, 50, 38, 0.22); transform: rotate(-1.6deg); }
.story-photo img { display: block; max-height: 46vh; width: auto; border-radius: 2px; }
.story-photo figcaption { margin-top: 8px; text-align: center; font: 600 0.95rem/1.2 var(--font-display); color: var(--brown-soft); }
.ep .links a[hidden] { display: none; }
