/* Togvia site chrome (header, navigation, flags) and the World search screen.
   Loaded after the older stylesheets; uses the same tokens as home.css. */
@font-face{font-family:'Twemoji Country Flags';src:url(../fonts/twemoji-country-flags.woff2) format('woff2');unicode-range:U+1F1E6-1F1FF,U+1F3F4,U+E0062-E007F;font-display:swap}
:root{--tv-pine:#102138;--tv-forest:#1e334f;--tv-sand:#8fe3db;--tv-bronze:#0d8783;--tv-stone:#f3f4f6;--tv-ink:#0c1a2c;--tv-mist:#5f666f;--tv-line:#e4e6e7;
  --tv-serif:'Twemoji Country Flags','Newsreader',Georgia,'Times New Roman',serif;--tv-sans:'Twemoji Country Flags','Instrument Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}
/* Flags everywhere (Windows has no flag emoji): the flag font only covers flag characters. */
body,button,input,select,textarea{font-family:var(--tv-sans)}
.hm{--hm-sans:var(--tv-sans)}

/* Header: brand on the left, search / saved / menu on the right (approved mockup). */
.app>header{background:var(--tv-pine);padding:12px 16px;min-height:70px}
.app>header .mark{width:44px;height:44px;border-radius:50%;border:1.5px solid #5bd9cc;color:#63dbcf;font-size:20px}
.app>header .brandname{font-family:var(--tv-sans);font-weight:700;font-size:22px;letter-spacing:.24em;text-transform:uppercase}
.app>header .brandsub{font-size:10.5px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:#dadee2;margin-top:3px}
.app>header .header-right{gap:10px}
.app>header .round-ico{width:46px;height:46px;border:0;border-radius:50%;background:rgba(6,15,26,.42);color:#fff;display:grid;place-items:center;font-size:24px;cursor:pointer}
.app>header .round-ico svg{width:24px;height:24px}
.app>header .round-ico:hover{background:rgba(6,15,26,.6)}
/* Phones: on Home the header floats over the photo. */
@media (max-width:1099px){
  body:has(#screen-home.active) .app>header,body:has(#screen-nearby.active) .app>header{position:absolute;top:0;left:0;right:0;z-index:5;background:transparent}
}
@media (max-width:400px){.app>header .brandsub{font-size:9px;letter-spacing:.12em}.app>header .round-ico{width:42px;height:42px}.app>header .brandname{font-size:20px}.app>header .header-right{gap:8px}}
@media (max-width:350px){.app>header .brandsub{display:none}}

/* Menu sheet: every section, including those not in the bottom bar. */
.tv-menu-scrim{position:fixed;inset:0;background:rgba(5,13,23,.45);z-index:60}
.tv-menu{position:fixed;top:0;right:0;bottom:0;width:min(340px,88vw);z-index:61;background:#fff;box-shadow:-20px 0 50px rgba(5,13,23,.25);padding:18px 14px 24px;overflow-y:auto;display:flex;flex-direction:column;gap:2px}
.tv-menu[hidden],.tv-menu-scrim[hidden]{display:none}
.tv-menu-head{display:flex;align-items:center;justify-content:space-between;padding:4px 8px 12px}
.tv-menu-head b{font-family:var(--tv-serif);font-size:24px;font-weight:600;color:var(--tv-ink)}
.tv-menu-head button{width:42px;height:42px;border:0;border-radius:50%;background:#f0f2f3;font-size:18px;cursor:pointer}
.tv-menu>button,.tv-menu>a{display:flex;align-items:center;gap:14px;min-height:52px;padding:0 12px;border:0;border-radius:12px;background:none;color:var(--tv-ink);font:600 16px var(--tv-sans);text-align:left;text-decoration:none;cursor:pointer}
.tv-menu>button:hover,.tv-menu>a:hover{background:#f1f3f5}
.tv-menu>button span,.tv-menu>a span{width:26px;text-align:center;font-size:19px}
.tv-menu-foot{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:auto;padding:18px 12px 0;border-top:1px solid var(--tv-line)}
.tv-menu-foot a{color:var(--tv-mist);font-size:14px}

/* Bottom bar (phones): Home, Explore, Plan, Trips, Profile. Today, Around me, Places and Saved are in the menu. */
body .bottom-nav{display:flex!important;align-items:flex-end;justify-content:space-around;background:#0d1c30!important;border-radius:22px 22px 0 0!important;box-shadow:0 -10px 30px rgba(5,13,23,.25)!important;padding:8px 6px calc(8px + env(safe-area-inset-bottom))!important;border:0!important}
body .bottom-nav [data-go="nearby"],body .bottom-nav [data-go="discover"],body .bottom-nav [data-go="today"],body .bottom-nav [data-go="saved"]{display:none!important}
body .bottom-nav .nav-button{flex:1 1 0;display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;padding:6px 2px;border:0;background:transparent!important;color:#cfd5da;font:500 13px var(--tv-sans);letter-spacing:0;text-decoration:none;position:relative}
body .bottom-nav [data-go="home"]{order:1}body .bottom-nav [data-go="world"]{order:2}body .bottom-nav [data-go="plan"]{order:3}body .bottom-nav [data-go="trips"]{order:4}body .bottom-nav .nav-profile{order:5}
body .bottom-nav .nav-button>span{font-size:0;width:25px;height:25px;background:currentColor;-webkit-mask:var(--tv-ic) center/contain no-repeat;mask:var(--tv-ic) center/contain no-repeat}
body .bottom-nav [data-go="home"]{--tv-ic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2011%2012%204l8%207v8a1%201%200%200%201-1%201h-4v-6H9v6H5a1%201%200%200%201-1-1z%22/%3E%3C/svg%3E")}
body .bottom-nav [data-go="world"]{--tv-ic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2211%22%20cy%3D%2211%22%20r%3D%227%22/%3E%3Cpath%20d%3D%22m20%2020-3.5-3.5%22/%3E%3C/svg%3E")}
body .bottom-nav [data-go="trips"]{--tv-ic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m9%204-5%202v14l5-2%206%202%205-2V4l-5%202z%22/%3E%3Cpath%20d%3D%22M9%204v14M15%206v14%22/%3E%3C/svg%3E")}
body .bottom-nav .nav-profile{--tv-ic:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.9%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%224%22/%3E%3Cpath%20d%3D%22M4%2021a8%208%200%200%201%2016%200%22/%3E%3C/svg%3E")}
body .bottom-nav .nav-button.active{color:#63dbcf}
body .bottom-nav .nav-button.active::before{content:'';position:absolute;top:-8px;left:30%;right:30%;height:3px;border-radius:0 0 3px 3px;background:#63dbcf}
/* Plan: the raised gold button in the middle. */
body .bottom-nav [data-go="plan"]>span{width:58px;height:58px;margin-top:-30px;border-radius:50%;-webkit-mask:none;mask:none;background:linear-gradient(160deg,#89e3da,#30c9ba);box-shadow:0 8px 20px rgba(48,201,186,.45),0 0 0 5px #0d1c30;position:relative}
body .bottom-nav [data-go="plan"]>span::before,body .bottom-nav [data-go="plan"]>span::after{content:'';position:absolute;left:50%;top:50%;width:24px;height:3px;border-radius:2px;background:#fff;transform:translate(-50%,-50%)}
body .bottom-nav [data-go="plan"]>span::after{transform:translate(-50%,-50%) rotate(90deg)}
body .bottom-nav [data-go="plan"].active::before{display:none}
body .bottom-nav #tripNavCount{margin:-58px 0 0 40px!important}

/* Desktop: one fixed top bar — brand, the five sections, then search / saved / menu. */
@media (min-width:1100px){
  body{padding-top:0!important}
  body .app{padding-top:72px;border-top-left-radius:0;border-top-right-radius:0}
  body .app>header{position:fixed;top:0;left:50%;transform:translateX(-50%);width:min(1180px,100%);z-index:17;height:72px;min-height:0;padding:0 24px;border-radius:0}
  body .bottom-nav{position:fixed;top:0;bottom:auto!important;left:50%;transform:translateX(-50%);width:auto;max-width:none;height:72px;padding:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;align-items:center;gap:4px;z-index:19}
  body .bottom-nav .nav-button{flex:0 0 auto;flex-direction:row;gap:8px;height:42px;padding:0 14px;border-radius:999px;font-size:15px;color:#d8dde2}
  body .bottom-nav .nav-button>span{width:19px;height:19px}
  body .bottom-nav .nav-button:hover{color:#fff;background:rgba(255,255,255,.08)!important}
  body .bottom-nav .nav-button.active{color:#63dbcf;background:rgba(255,255,255,.08)!important}
  body .bottom-nav .nav-button.active::before{display:none}
  body .bottom-nav [data-go="plan"]>span{width:24px;height:24px;margin:0;box-shadow:none}
  body .bottom-nav [data-go="plan"]>span::before,body .bottom-nav [data-go="plan"]>span::after{width:12px;height:2px}
  body .bottom-nav #tripNavCount{margin:-22px 0 0 18px!important}
  body .app>header .brandsub{display:none}
}

/* World search */
.wd-hero{height:clamp(300px,42vh,380px)}
.wd-hero .hm-hero-copy{bottom:58px}
.wd-hero h1{font-size:clamp(40px,10vw,56px)}
.wd-modes{display:flex;gap:6px;margin-top:12px}
.wd-modes button{height:38px;padding:0 15px;border-radius:999px;border:1.5px solid var(--tv-line);background:#fff;color:var(--tv-ink);font-size:14px;font-weight:600;cursor:pointer}
.wd-modes button.on{background:var(--tv-pine);border-color:var(--tv-pine);color:#fff}
.wd-section{padding-top:28px}
.wd-status{font-size:14px;color:var(--tv-mist);margin:0 0 18px;background:none;border:0;padding:0}
.wd-status:empty{display:none}
.wd-count{font-size:13px;color:var(--tv-mist);white-space:nowrap}
.wd .hm-section-head{flex-wrap:wrap}
.wd-sources{font-size:12px;color:var(--tv-mist);margin:22px 0 30px}
.wd-sources a{color:inherit}
.wd .world-heading{margin:0 0 16px}

/* Country and city tiles: one look for every destination. A deep pine card; when the photo engine finds
   a licensed photo it fills the card behind a dark gradient, so the name always reads. Flag at the top,
   name and country at the bottom, then the actions. */
.wd-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.wd-grid .world-tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;text-align:left;min-height:190px;padding:14px;border-radius:16px;border:0;background:linear-gradient(160deg,var(--tv-forest),var(--tv-pine));color:#fff;box-shadow:0 10px 24px -18px rgba(8,20,36,.55);overflow:hidden;cursor:pointer;isolation:isolate}
.wd-grid .world-tile.city{min-height:250px;cursor:default}
.wd-grid .world-tile::before{display:none}
.wd-grid .world-tile::after{content:"";display:block;position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(0deg,rgba(5,14,25,.9) 0%,rgba(5,14,25,.55) 38%,rgba(5,14,25,.08) 72%,rgba(5,14,25,.25) 100%)}
.wd-grid .world-tile .cover-img{z-index:0;transition:transform .6s ease,opacity .35s ease}
.wd-grid .world-tile>:not(.cover-img){position:relative;z-index:2}
.wd-grid .world-tile:hover .cover-img{transform:scale(1.04)}
.wd-grid .world-tile:focus-visible{outline:3px solid var(--tv-sand);outline-offset:2px}
.wd-grid .world-flag{position:absolute!important;top:12px;left:12px;font-size:24px;line-height:1;margin:0;background:none;width:auto;height:auto;color:inherit;filter:drop-shadow(0 1px 2px rgba(0,0,0,.35))}
.wd-grid .world-tile h3{font-family:var(--tv-serif);font-weight:500;font-size:22px;line-height:1.1;margin:0 0 3px;color:#fff;letter-spacing:-.01em;text-shadow:0 1px 12px rgba(0,0,0,.35)}
.wd-grid .world-tile p{font-size:12.5px;line-height:1.4;color:rgba(255,255,255,.82);margin:0}
.wd-grid .world-tile .action{margin-top:8px;font-size:13px;font-weight:600;color:var(--tv-sand)}
/* Cities: the place, its country, one clear main action, then two quiet links. */
.wd-grid .world-tile.city [data-discover]:not(.city-discover){display:none}
.wd-grid .world-tile.city button{position:static;box-shadow:none}
.wd-grid .world-tile.city .city-discover{order:5;display:block!important;width:100%;margin-top:12px;height:40px;border:0!important;border-radius:11px!important;background:var(--tv-sand)!important;color:var(--tv-pine)!important;font-size:13.5px!important;font-weight:700;cursor:pointer;text-align:center;padding:0 10px!important;line-height:40px}
.wd-grid .world-tile.city .city-discover:hover{background:#a5eae3!important}
.wd-grid .world-tile.city .city-map,.wd-grid .world-tile.city .city-surprise{order:6;display:inline-block;border:0;border-radius:0;background:none;padding:9px 0 0;margin:0;font-size:12.5px;font-weight:600;color:rgba(255,255,255,.9);cursor:pointer;text-align:left;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.wd-grid .world-tile.city .city-map{order:7}
.wd-grid .world-tile.city .city-links{order:6;display:flex;gap:14px;flex-wrap:wrap}
@media (min-width:760px){
  .wd-hero{height:380px}
  .wd-hero .hm-hero-copy{bottom:96px}
  .wd-search{grid-template-columns:minmax(0,1fr) auto}
  .wd-modes{grid-column:2;margin:0;align-self:end;padding-bottom:7px}
  .wd-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
}

/* Places hero: the city's photograph when one is known, behind a gradient that keeps the title readable. */
#screen-discover .destination-hero .cover-img{z-index:0}
#screen-discover .destination-hero.v13-has-photo .destination-sun,#screen-discover .destination-hero.v13-has-photo .mountain-layer{display:none}
#screen-discover .destination-hero.v13-has-photo::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(6,15,26,.82) 0%,rgba(6,15,26,.5) 45%,rgba(6,15,26,.1) 100%),linear-gradient(0deg,rgba(6,15,26,.55),transparent 55%)}
#screen-discover .destination-hero .destination-content{position:relative;z-index:2}
#v9RescueBtn{display:none}
@media (min-width:1100px){#screen-discover .destination-hero{height:440px}}
#screen-discover .destination-hero.v13-has-photo .destination-content{position:absolute;left:0;right:0;bottom:0;background:none;padding-bottom:34px}
#screen-discover .destination-hero.v13-has-photo .back-to-world{position:absolute;top:18px}
@media (min-width:1100px){#screen-discover .destination-hero.v13-has-photo .destination-content{padding-bottom:52px}}

/* World search: landmarks, regions and neighbourhoods above the town cards. */
.wd-places{margin:4px 0 26px}
.wd-places .world-heading{margin:0 0 10px}
.wd-place{display:flex;align-items:center;gap:13px;width:100%;text-align:left;background:#fff;border:1px solid var(--tv-line);border-radius:14px;padding:12px 14px;margin-bottom:8px;color:var(--tv-ink);cursor:pointer;transition:border-color .15s,box-shadow .15s}
.wd-place:hover,.wd-place:focus-visible{border-color:var(--tv-sand);box-shadow:0 6px 18px #10213814}
.wd-place>span:nth-child(2){flex:1;min-width:0}
.wd-place b{display:block;font-size:16px;font-weight:600}
.wd-place small{display:block;color:var(--tv-mist);font-size:13px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wd-place-ico{width:40px;height:40px;border-radius:12px;background:var(--tv-stone);display:grid;place-items:center;font-size:20px;flex:none}
.wd-place>span:last-child{color:var(--tv-mist);font-size:22px}

/* Site footer (includes/footer.php): lake panorama with the logo, a curved edge into the footer, then the
   logo, the information links and the tagline, above a quiet rule with a mountain mark. */
.tv-site-footer{--tvf-cream:#f2f4f5;--tvf-line:#d4d8db;--tvf-gut:20px;position:relative;max-width:none;margin:0;padding:0;text-align:left;font-size:inherit;line-height:1.5;color:var(--tv-ink);background:var(--tvf-cream)}
.tvf-banner{position:relative;height:clamp(200px,30vw,430px);overflow:hidden;background:#24384a;isolation:isolate}
.tvf-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 80%;z-index:-2}
.tvf-banner::after{content:'';position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse 40% 50% at 50% 42%,rgba(6,18,28,.32),rgba(6,18,28,0) 75%),linear-gradient(180deg,rgba(6,18,28,.18),rgba(6,18,28,0) 35%)}
.tvf-banner-logo{position:absolute;left:50%;top:42%;width:clamp(140px,15vw,230px);height:auto;transform:translate(-50%,-50%);filter:drop-shadow(0 4px 18px rgba(0,0,0,.45))}
.tvf-wave{position:absolute;left:0;bottom:-1px;width:100%;height:clamp(30px,5vw,74px);fill:var(--tvf-cream)}
.tvf-main{display:grid;justify-items:center;gap:16px;padding:14px var(--tvf-gut) 6px;text-align:center}
.tvf-logo{display:block;border-radius:8px}
.tvf-logo img{display:block;height:38px;width:auto}
.tv-site-footer .tv-footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 24px;margin:0}
.tv-site-footer .tv-footer-links a{position:relative;padding:6px 0;color:#1f2d3a;font-size:15px;font-weight:500;text-decoration:none}
.tv-site-footer .tv-footer-links a::after{content:'';position:absolute;left:0;right:0;bottom:2px;height:1.5px;border-radius:2px;background:#4ad4c6;transform:scaleX(0);transform-origin:left;transition:transform .3s cubic-bezier(.2,.7,.2,1)}
.tv-site-footer .tv-footer-links a:hover::after,.tv-site-footer .tv-footer-links a:focus-visible::after{transform:scaleX(1)}
.tv-site-footer a:focus-visible{outline:3px solid #4ad4c6;outline-offset:3px}
.tvf-tagline{margin:0;font-family:var(--tv-serif);font-size:16px;font-style:italic;color:var(--tv-mist)}
.tvf-rule{display:flex;align-items:center;gap:14px;padding:16px var(--tvf-gut) 26px;color:#82d0c8}
.tvf-rule::before,.tvf-rule::after{content:'';flex:1;height:1px;background:var(--tvf-line)}
.tvf-rule svg{width:42px;height:16px;flex:none}
@media (min-width:860px){
  .tv-site-footer{--tvf-gut:max(40px,calc((100vw - 1240px) / 2))}
  .tvf-main{grid-template-columns:1fr auto 1fr;align-items:center;gap:0;padding:26px var(--tvf-gut) 4px;text-align:left}
  .tvf-logo{justify-self:start}
  .tvf-logo img{height:42px}
  .tv-site-footer .tv-footer-links{padding:8px clamp(28px,4vw,64px);border-left:1px solid var(--tvf-line);border-right:1px solid var(--tvf-line);flex-wrap:nowrap}
  .tvf-tagline{justify-self:end}
  .tvf-rule{padding:20px 40px 30px}
}
@media (min-width:860px) and (max-width:1023px){.tv-site-footer .tv-footer-links{flex-wrap:wrap;gap:4px 18px}}
@media (min-width:1024px){.app:has(>.tv-site-footer){padding-bottom:0}}

/* Place loader (assets/js/place-loader.js): glass popup over a blurred screen while places load for a destination.
   The header and bottom bar stay above it, so navigation keeps working. */
.tvl{position:fixed;inset:0;z-index:16;display:grid;place-items:center;padding:96px 16px 110px;opacity:0;transition:opacity .35s ease}
.tvl.on{opacity:1}
.tvl[hidden]{display:none}
body.tvl-open .app>header,body.tvl-open .bottom-nav{z-index:17}
.tvl-scrim{position:absolute;inset:0;background:rgba(7,16,29,.38);backdrop-filter:blur(10px) saturate(1.1);-webkit-backdrop-filter:blur(10px) saturate(1.1)}
.tvl-card{position:relative;width:min(1080px,100%);min-height:min(560px,calc(100dvh - 210px));display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;isolation:isolate;border-radius:28px;color:#fff;text-align:center;
  border:1px solid rgba(255,255,255,.45);box-shadow:0 0 0 1px rgba(255,255,255,.08) inset,0 40px 90px -30px rgba(0,0,0,.7);transform:translateY(16px) scale(.97);transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.tvl.on .tvl-card{transform:none}
.tvl-bg{position:absolute;inset:0;z-index:-1;background:radial-gradient(80% 70% at 50% 30%,#46566a 0%,#1b304c 45%,#091525 100%)}
.tvl-bg::before{content:'';position:absolute;inset:6% 4% auto;aspect-ratio:1200/450;background:url(../images/home2/world-dots.svg) center/contain no-repeat;filter:brightness(0) invert(1);opacity:.14}
.tvl-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;animation:tvl-drift 18s ease-in-out infinite alternate}
.tvl-photo[hidden]{display:none}
.tvl-bg::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(6,16,29,.15) 0%,rgba(6,16,29,.2) 35%,rgba(6,16,29,.72) 62%,rgba(6,16,29,.9) 100%)}
@keyframes tvl-drift{from{transform:scale(1.04)}to{transform:scale(1.14) translate(-1.5%,-1%)}}
.tvl-close{position:absolute;top:14px;right:14px;z-index:3;width:38px;height:38px;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(6,16,29,.35);color:#fff;font-size:15px;cursor:pointer;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.tvl-close:hover{background:rgba(6,16,29,.6)}
.tvl-scene{position:relative;flex:1;min-height:170px;color:#7fe3e8}
.tvl-route{position:absolute;left:4%;right:4%;top:38%;width:92%;height:34%;opacity:.8;stroke-dashoffset:0;animation:tvl-dash 2.2s linear infinite}
@keyframes tvl-dash{to{stroke-dashoffset:-56}}
.tvl-pin{position:absolute;left:50%;top:14%;width:96px;height:96px;margin-left:-48px;display:grid;place-items:center}
.tvl-pin svg{position:relative;z-index:1;width:44px;height:58px;filter:drop-shadow(0 8px 14px rgba(0,0,0,.4));animation:tvl-hop 2.4s ease-in-out infinite}
.tvl-pin i{position:absolute;inset:0;border-radius:50%;border:1.5px solid rgba(127,227,232,.75);background:radial-gradient(circle,rgba(127,227,232,.28),rgba(127,227,232,0) 70%);animation:tvl-ring 2.4s ease-out infinite}
.tvl-pin i:nth-child(2){animation-delay:.8s}.tvl-pin i:nth-child(3){animation-delay:1.6s}
@keyframes tvl-ring{from{transform:scale(.35);opacity:1}to{transform:scale(1.9);opacity:0}}
@keyframes tvl-hop{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
.tvl-node{position:absolute;display:grid;place-items:center;width:58px;height:58px;border-radius:16px;border:2px solid rgba(255,255,255,.9);background:rgba(255,255,255,.16);color:#fff;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 14px 26px -12px rgba(0,0,0,.55);animation:tvl-float 4.5s ease-in-out infinite}
.tvl-node svg{width:26px;height:26px}
.tvl-node.n1{left:12%;top:40%}.tvl-node.n2{left:30%;top:56%;animation-delay:-1.2s}.tvl-node.n3{right:30%;top:52%;animation-delay:-2.1s}.tvl-node.n4{right:12%;top:36%;animation-delay:-3s}
@keyframes tvl-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
.tvl-dot{position:absolute;width:12px;height:12px;border-radius:50%;background:#bff6f8;box-shadow:0 0 0 5px rgba(127,227,232,.25),0 0 18px 4px rgba(127,227,232,.7);animation:tvl-glow 1.8s ease-in-out infinite}
.tvl-dot.d1{left:22%;top:50%}.tvl-dot.d2{left:61%;top:60%;animation-delay:.6s}.tvl-dot.d3{right:22%;top:44%;animation-delay:1.2s}
@keyframes tvl-glow{0%,100%{opacity:.5;transform:scale(.8)}50%{opacity:1;transform:scale(1.15)}}
.tvl-copy{position:relative;padding:0 24px 30px}
.tvl-title{font-family:var(--tv-serif);font-weight:600;font-size:clamp(28px,4.4vw,48px);line-height:1.08;letter-spacing:-.02em;margin:0;text-shadow:0 4px 24px rgba(0,0,0,.45)}
.tvl-title span{display:block}
.tvl-sub{max-width:34em;margin:12px auto 0;font-size:clamp(14.5px,1.6vw,18px);line-height:1.5;color:#eaeff3;text-shadow:0 1px 10px rgba(0,0,0,.5)}
.tvl-bar{position:relative;width:min(520px,86%);height:12px;margin:22px auto 0;border-radius:999px;background:rgba(255,255,255,.2);overflow:hidden;box-shadow:0 0 0 1px rgba(255,255,255,.12) inset}
.tvl-bar i{position:absolute;top:0;bottom:0;left:0;width:42%;border-radius:999px;background:linear-gradient(90deg,#2fd0c4,#46b5c8 60%,#9be8ec);box-shadow:0 0 16px rgba(70,208,200,.75);animation:tvl-run 1.8s cubic-bezier(.55,.1,.45,.9) infinite}
@keyframes tvl-run{from{transform:translateX(-105%)}to{transform:translateX(245%)}}
.tvl-steps{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:640px;margin:22px auto 0;padding:0}
.tvl-steps li{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:14.5px;line-height:1.3;color:rgba(255,255,255,.72);animation:tvl-step 6.4s ease-in-out infinite}
.tvl-steps li:nth-child(2){animation-delay:1.6s}.tvl-steps li:nth-child(3){animation-delay:3.2s}.tvl-steps li:nth-child(4){animation-delay:4.8s}
.tvl-steps svg{width:30px;height:30px}
@keyframes tvl-step{0%,30%,100%{color:rgba(255,255,255,.72);transform:none}10%,20%{color:#fff;transform:translateY(-3px);text-shadow:0 0 14px rgba(127,227,232,.9)}}
@media (max-width:640px){
  .tvl{padding:84px 12px 100px}
  .tvl-card{min-height:min(520px,calc(100dvh - 190px));border-radius:22px}
  .tvl-scene{min-height:150px}
  .tvl-pin{top:8%;width:78px;height:78px;margin-left:-39px}
  .tvl-pin svg{width:36px;height:48px}
  .tvl-node{width:44px;height:44px;border-radius:12px}.tvl-node svg{width:20px;height:20px}
  .tvl-node.n1{left:6%;top:44%}.tvl-node.n2{left:24%;top:66%}.tvl-node.n3{right:24%;top:62%}.tvl-node.n4{right:6%;top:40%}
  .tvl-copy{padding:0 16px 22px}
  .tvl-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 8px}
  .tvl-steps li{font-size:13px;gap:5px}.tvl-steps svg{width:24px;height:24px}
}
@media (prefers-reduced-motion:reduce){.tvl *,.tvl{animation:none!important;transition:none!important}}
