/* The drawn last stretch with its towns (towns.py, towns.js). Mock, 2026-11-22. Everything is tw- prefixed.
   Needs --ember, --ink, --white, --bone, --quiet, --green, --sans, --serif from the page. */
.tw-frame { position: relative; aspect-ratio: 16 / 9; background: #ECE9E2; overflow: hidden; --tw-tag: #4E3F38; }
.tw-frame > img, .tw-frame > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tw-rd { fill: none; stroke: var(--ember); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.6s cubic-bezier(.4, 0, .2, 1) .2s; }
.tw-on .tw-rd { stroke-dashoffset: 0; }
.tw-rd2 { fill: none; stroke: var(--ember); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .8s 2.2s; }
.tw-on .tw-rd2 { opacity: .6; }
.tw-ovl text { paint-order: stroke; stroke: rgba(243, 241, 236, .94); stroke-width: 4.5px; stroke-linejoin: round; fill: var(--ink); }
.tw-ovl .tw-t { font: italic 400 30px/1 var(--serif); }   /* the drawing shows at ~2/3 size on the page */
.tw-ovl .tw-sub { font: 500 15px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; fill: var(--quiet); }
.tw-ovl .tw-ln-t { font: 500 17px/1 var(--sans); }
.tw-ovl .tw-edge .tw-ln-t { font-size: 14px; }
.tw-ln { fill: none; stroke: var(--ember); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tw-hole { fill: var(--white); }
.tw-tag-bg { fill: #4E3F38; }
.tw-tag-ic { fill: var(--white); }
.tw-tag-ic .tw-ln { stroke: var(--white); }
.tw-tag-ic .tw-hole { fill: #4E3F38; }
/* the logo under the cottages is simply there, never animated */
.tw-pv-ground { fill: rgba(243, 241, 236, .8); filter: blur(5px); }     /* a little paper under the logo */
.tw-pv--phone { display: none; }
.tw-co { opacity: 1; }      /* the places are always there, not revealed on scroll */
.tw-dark text { fill: var(--white); stroke: rgba(47, 74, 61, .92); }
.tw-dark .tw-sub { fill: rgba(243, 241, 236, .72); }

/* the floating tag on each town: Mooser's dark pin with a plus, bobbing */
.tw-btn { position: absolute; width: 42px; height: 48px; padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
  transform: translate(-50%, -100%); }
.tw-btn { animation: tw-bob 2.6s ease-in-out infinite; animation-delay: calc(3s + var(--i) * .4s); }
/* an ember tag with a white edge and a white plus: the one thing on the drawing you can press */
.tw-btn svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 8px rgba(22, 23, 20, .4)); }
.tw-btn-tag { fill: var(--ember); stroke: var(--white); stroke-width: 2.2; stroke-linejoin: round; transition: fill .2s; }
.tw-btn-plus { fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; }
.tw-btn::before { content: ""; position: absolute; left: 50%; top: 18px; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%;
  border: 2.5px solid var(--white); box-shadow: 0 0 0 1px rgba(217, 135, 62, .5); opacity: 0;
  animation: tw-ring 2.4s ease-out infinite; animation-delay: calc(3s + var(--i) * .4s); }
/* the town's name and "See it close up" beside the tag open it too */
.tw-btn::after { content: ""; position: absolute; top: -6px; width: 270px; height: 64px; }
.tw-btn--start::after { left: 100%; } .tw-btn--end::after { right: 100%; }
.tw-btn:hover .tw-btn-tag, .tw-btn:focus-visible .tw-btn-tag { fill: #B8692A; }
.tw-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.tw-card { fill: rgba(251, 250, 247, .94); stroke: rgba(22, 23, 20, .12); stroke-width: 1; filter: drop-shadow(0 3px 6px rgba(22, 23, 20, .18)); }
.tw-lab text { stroke: none; }                 /* on the card the halo is not needed */
.tw-dark .tw-card { fill: rgba(31, 50, 41, .92); stroke: rgba(243, 241, 236, .2); }
.tw-ovl .tw-hint { font: 600 17px/1 var(--sans); letter-spacing: .02em; fill: #A8571F; }
@keyframes tw-bob { 0%, 100% { transform: translate(-50%, -100%); } 50% { transform: translate(-50%, calc(-100% - 6px)); } }
@keyframes tw-ring { 0% { opacity: .8; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.7); } }

.tw-key { display: none; list-style: none; margin: 14px 0 0; padding: 0; }
.tw-key li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(22, 23, 20, .1); font-size: .92rem; }
.tw-key b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: .8rem; }
.tw-key em { font-style: normal; color: var(--quiet); font-size: .8rem; }
.tw-kbtn { display: block; margin-top: 6px; padding: 6px 12px; border: 1px solid var(--ink); border-radius: 999px; background: none;
  font: 500 .82rem/1 var(--sans); color: var(--ink); cursor: pointer; }

/* the close-up */
dialog.tw-town { width: min(1180px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 6px;
  background: var(--bone); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(22, 23, 20, .55); overflow: auto; }
dialog.tw-town::backdrop { background: rgba(22, 23, 20, .55); }
dialog.tw-town[open] { animation: tw-pop .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes tw-pop { from { opacity: 0; transform: scale(.96) translateY(10px); } }
.tw-dhead { display: flex; align-items: baseline; gap: 14px; padding: 16px 20px 12px; }
.tw-dhead h2 { margin: 0; font: italic 400 30px/1 var(--serif); letter-spacing: 0; }
.tw-dhead p { margin: 0; color: var(--quiet); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.tw-dclose { margin-left: auto; width: 40px; height: 40px; border: 1px solid rgba(22, 23, 20, .25); border-radius: 50%; background: var(--white);
  font: 400 24px/1 var(--sans); color: var(--ink); cursor: pointer; }
.tw-cframe { position: relative; aspect-ratio: 16 / 9; background: #ECE9E2; }
.tw-cframe img, .tw-cframe svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tw-crd { fill: none; stroke: var(--ember); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.tw-crd2 { stroke-width: 3; opacity: .6; }
.tw-ctag .tw-tag-n { display: none; font: 600 18px/1 var(--sans); fill: var(--white); stroke: none; }
.tw-clab .tw-t { font-size: 20px; }   /* the close-ups show near full size: keep them as they were */
.tw-clab .tw-ln-t { font-size: 13.5px; }
.tw-clist { list-style: none; margin: 0; padding: 12px 20px 4px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 4px 22px; }
.tw-clist li { display: grid; grid-template-columns: 24px 18px 1fr; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(22, 23, 20, .1); font-size: .9rem; }
.tw-clist b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 4px; background: #4E3F38; color: var(--white); font-size: .75rem; }
.tw-clist em { font-style: normal; color: var(--quiet); }
.tw-kic { width: 16px; height: 16px; fill: var(--ember); }
.tw-dnote { margin: 4px 20px 18px; font-size: .76rem; color: var(--quiet); }

@media (max-width: 860px) {
  .tw-co, .tw-edge, .tw-pv--desk { display: none; } .tw-pv--phone { display: inline; } .tw-rd { stroke-width: 6; } .tw-key { display: block; }
  .tw-btn { width: 34px; height: 39px; }
  .tw-btn::after { display: none; }
  .tw-clab { display: none; } .tw-ctag .tw-tag-ic { display: none; } .tw-ctag .tw-tag-n { display: inline; }
  .tw-ctag { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(1.9); }
  .tw-dhead { padding: 12px 14px 8px; } .tw-dhead h2 { font-size: 24px; } .tw-clist { padding: 10px 14px 4px; } .tw-dnote { margin: 4px 14px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tw-rd { transition: none; stroke-dashoffset: 0; } .tw-co, .tw-btn, .tw-rd2 { transition: none; opacity: 1; }
  .tw-on .tw-btn, .tw-btn::before { animation: none; } dialog.tw-town[open] { animation: none; }
}
