/* Czech Island — shell UI: island stage, top bar, toolbar, journal, timeline, intro, lightbox, toast. */

/* ---------- island stage ---------- */
.island {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 40%, #DCE7EE 0%, var(--water) 55%, #B9CCD8 100%);
}
.island canvas { display: block; width: 100%; height: 100%; touch-action: none; }
html.no-js .island { display: none; }
.island-loading {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 14px; justify-items: center;
  transition: opacity .6s;
}
.island.is-ready .island-loading { opacity: 0; pointer-events: none; }
.il-ticket {
  font-family: var(--f-display); font-weight: 900; letter-spacing: .08em; font-size: 15px;
  padding: 10px 18px; background: var(--paper); border: var(--line); box-shadow: var(--shadow);
  animation: il-wobble 1.6s ease-in-out infinite;
}
.il-dots { display: flex; gap: 6px; }
.il-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 1px solid var(--ink); animation: il-dot 1s ease-in-out infinite; }
.il-dots i:nth-child(2) { animation-delay: .15s; } .il-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes il-wobble { 0%,100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-6px); } }
@keyframes il-dot { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
html.no-island .island { background: var(--paper) var(--paper-grain); }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; z-index: 30; top: calc(12px + var(--safe-t)); left: calc(12px + var(--safe-l)); right: calc(12px + var(--safe-r));
  display: flex; align-items: center; gap: 10px; pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.badge {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 4px 14px 4px 6px;
  background: var(--paper); border: var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
  color: var(--ink); text-decoration: none; transition: transform .25s var(--ease-spring);
}
.badge:hover { color: var(--ink); transform: rotate(-2deg) scale(1.03); }
.badge-mark { width: 32px; height: 32px; border-radius: 50%; border: var(--line); overflow: hidden; display: grid; grid-template-rows: 1fr 1fr; position: relative; flex: none; }
.badge-mark i:nth-child(1) { background: var(--paper); }
.badge-mark i:nth-child(2) { background: var(--red); }
.badge-mark i:nth-child(3) { position: absolute; left: 0; top: 0; bottom: 0; width: 58%; background: var(--blue); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.badge-txt { display: flex; flex-direction: column; line-height: 1.05; }
.badge-txt b { font-size: 14px; letter-spacing: .06em; }
.badge-txt small { font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: 12px; color: var(--red); }

.views {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-right: auto;
  background: var(--paper); border: var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); padding: 3px;
}
.vs-btn {
  position: relative; z-index: 1; min-width: 72px; min-height: 38px; display: grid; place-items: center; padding: 0 12px;
  font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; letter-spacing: .08em; border-radius: 999px;
  transition: color .3s;
}
.vs-btn:hover { color: var(--red); }
.vs-btn[aria-current="page"] { color: var(--paper); }
.vs-ink {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3);
  background: var(--ink); border-radius: 999px; transition: transform .45s var(--ease-spring);
}
body[data-view="list"] .vs-ink { transform: translateX(100%); }
body[data-view="days"] .vs-ink { transform: translateX(200%); }
.vs-ink::after { content: ''; position: absolute; right: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--red); }

/* ---------- toolbar ---------- */
.toolbar {
  position: fixed; z-index: 25; left: calc(12px + var(--safe-l)); top: calc(var(--top-h) + 28px + var(--safe-t));
  display: flex; flex-direction: column; gap: 10px;
}
.tb-group { position: relative; }
.tb {
  position: relative; width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--paper); border: var(--line); border-radius: 50%; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease-spring), background .2s, color .2s, box-shadow .2s;
}
.tb svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tb:hover { transform: translateY(-2px) rotate(-6deg); }
.tb:active { transform: translate(2px, 2px); box-shadow: none; }
.tb[aria-pressed="true"], .tb[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.tb#tb-pause[aria-pressed="true"] { background: var(--red); }
.tb-tip {
  position: absolute; left: calc(100% + 10px); top: 50%; transform: translate(-6px, -50%); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); font-size: 12px; padding: 3px 8px; border-radius: 3px; white-space: nowrap; transition: opacity .2s, transform .2s;
}
.tb:hover .tb-tip, .tb:focus-visible .tb-tip { opacity: 1; transform: translate(0, -50%); }
.live-dot { position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); border: 1.5px solid var(--paper); }
.tb-live[aria-pressed="true"] .live-dot { background: var(--red); animation: live 1.4s ease-in-out infinite; }
@keyframes live { 0%,100% { box-shadow: 0 0 0 0 rgba(215,20,26,.7); } 50% { box-shadow: 0 0 0 6px rgba(215,20,26,0); } }
.tod-pop {
  position: absolute; left: calc(100% + 10px); top: 0; z-index: 2; display: grid; gap: 2px; padding: 6px;
  background: var(--paper); border: var(--line); border-radius: 10px; box-shadow: var(--shadow); transform-origin: left top;
  animation: pop-in .3s var(--ease-spring);
}
.tod-pop button { min-height: 40px; min-width: 88px; padding: 0 14px; text-align: left; border-radius: 6px; font-size: 14px; font-weight: 700; }
.tod-pop button:hover { background: var(--paper-2); }
.tod-pop button[aria-checked="true"] { background: var(--red); color: var(--paper); }
@keyframes pop-in { from { opacity: 0; transform: scale(.7) rotate(-4deg); } to { opacity: 1; transform: none; } }

/* ---------- journal LIVE ---------- */
.journal {
  position: fixed; z-index: 20; left: calc(72px + var(--safe-l)); bottom: calc(20px + var(--safe-b));
  width: min(330px, calc(100vw - 100px)); margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column-reverse; gap: 8px; pointer-events: none;
}
body.tl-on .journal { bottom: calc(196px + var(--safe-b)); }
body.journal-off .journal { display: none; }
.jn {
  pointer-events: auto; position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: center;
  padding: 8px 12px 8px 14px; background: var(--paper); border: var(--line); border-radius: 3px; box-shadow: var(--shadow-sm);
  animation: jn-in .6s var(--ease-spring) both; transform-origin: left center; cursor: pointer; text-align: left;
}
.jn::before { /* perforation */
  content: ''; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 6px;
  background: radial-gradient(circle at 0 50%, var(--water) 2.5px, transparent 3px) 0 0 / 6px 9px repeat-y;
}
.jn.out { animation: jn-out .5s ease-in forwards; }
.jn:nth-last-child(n+4) { opacity: .55; }
.jn-ph { width: 46px; height: 46px; border: 1px solid var(--ink); background: var(--paper-2) center/cover; overflow: hidden; }
.jn-ph img { width: 100%; height: 100%; object-fit: cover; }
.jn-ph.no { display: grid; place-items: center; font-family: var(--f-display); font-weight: 900; color: var(--red); font-size: 20px; }
.jn-t { min-width: 0; line-height: 1.35; }
.jn-time { font-family: var(--f-display); font-weight: 900; font-size: 13px; color: var(--red); letter-spacing: .04em; }
.jn-time::after { content: ' LIVE'; font-size: 9px; vertical-align: 2px; color: var(--paper); background: var(--red); padding: 0 3px; margin-left: 4px; border-radius: 2px; letter-spacing: .1em; }
.jn-what { display: block; font-weight: 700; font-size: 14px; }
.jn-cap { display: block; font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes jn-in { 0% { opacity: 0; transform: translateX(-40px) rotate(-8deg) scale(.9); } 60% { opacity: 1; transform: translateX(4px) rotate(1.5deg); } 100% { transform: none; } }
@keyframes jn-out { to { opacity: 0; transform: translateX(-30px) rotate(-4deg); } }

/* ---------- timeline ---------- */
.timeline {
  position: fixed; z-index: 22; left: calc(72px + var(--safe-l)); bottom: calc(16px + var(--safe-b));
  width: min(720px, calc(100vw - 72px - 500px)); min-width: 420px;
  background: var(--paper); border: var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 10px 14px 10px; animation: tl-in .5s var(--ease-spring);
}
@keyframes tl-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.tl-head { display: flex; align-items: center; gap: 10px; }
.tl-play, .tl-speed {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: var(--line); display: grid; place-items: center;
  background: var(--red); color: var(--paper); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease-spring);
}
.tl-play:active, .tl-speed:active { transform: scale(.9); }
.tl-play svg { width: 20px; height: 20px; fill: currentColor; grid-area: 1/1; }
.tl-play svg:last-child, .tl-play.is-playing svg:first-child { display: none; }
.tl-play.is-playing svg:last-child { display: block; }
.tl-speed { background: var(--paper); color: var(--ink); font-family: var(--f-display); font-weight: 900; font-size: 14px; }
.tl-speed.fast { background: var(--ink); color: var(--paper); }
.tl-now { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.tl-stamp {
  flex: none; font-family: var(--f-display); font-weight: 900; color: var(--red); font-size: 13px; line-height: 1;
  border: 2px solid var(--red); border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; transform: rotate(-12deg);
  outline: 1px dashed var(--red); outline-offset: -6px;
}
.tl-stamp.thump { animation: thump .5s var(--ease-spring); }
@keyframes thump { 0% { transform: rotate(-12deg) scale(1.7); opacity: 0; } 60% { transform: rotate(-14deg) scale(.92); opacity: 1; } 100% { transform: rotate(-12deg) scale(1); } }
.tl-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.tl-title b { font-family: var(--f-display); font-weight: 900; }
.tl-go { flex: none; min-height: 44px; display: grid; place-items: center; padding: 0 12px; font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--red); }
.tl-track { position: relative; margin-top: 8px; }
.tl-track input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 30px; margin: 0; background: transparent; cursor: grab; touch-action: pan-y;
}
.tl-track input[type=range]:active { cursor: grabbing; }
.tl-track input[type=range]::-webkit-slider-runnable-track {
  height: 8px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 10px);
}
.tl-track input[type=range]::-moz-range-track { height: 8px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 10px); }
.tl-track input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 22px; margin-top: -9px; border: var(--line); border-radius: 6px 6px 3px 3px;
  background: linear-gradient(var(--red) 0 60%, var(--paper) 60% 70%, var(--red) 70%); box-shadow: var(--shadow-sm);
}
.tl-track input[type=range]::-moz-range-thumb { width: 30px; height: 22px; border: var(--line); border-radius: 6px 6px 3px 3px; background: linear-gradient(var(--red) 0 60%, var(--paper) 60% 70%, var(--red) 70%); }
.tl-ticks { display: grid; grid-template-columns: repeat(12, 1fr); font-family: var(--f-display); font-weight: 600; font-size: 11px; color: var(--ink-3); margin-top: -2px; }
.tl-ticks span { text-align: left; padding-left: 2px; border-left: 1px solid var(--ink-3); line-height: 1.2; }
.tl-ticks span.on { color: var(--red); border-color: var(--red); font-weight: 900; }
.tl-places { display: flex; gap: 6px; overflow-x: auto; margin-top: 6px; padding-bottom: 2px; scrollbar-width: none; overscroll-behavior-x: contain; }
.tl-places::-webkit-scrollbar { display: none; }
.tl-places a {
  flex: none; font-size: 12px; font-weight: 700; padding: 3px 10px; border: 1px solid var(--ink); border-radius: 999px; background: var(--paper);
  color: var(--ink); text-decoration: none; animation: chip-in .4s var(--ease-spring) both; animation-delay: calc(var(--i) * 40ms);
}
.tl-places a.now { background: var(--red); color: var(--paper); }
@keyframes chip-in { from { opacity: 0; transform: translateY(8px) scale(.9); } to { opacity: 1; transform: none; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 90; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; transition: opacity .3s, transform .4s var(--ease-spring);
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 80; background: rgba(28, 26, 25, .94); display: grid; grid-template-rows: auto 1fr auto;
  touch-action: none; animation: lb-in .3s ease both; color: var(--paper);
}
.lb.closing { animation: lb-out .25s ease forwards; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-out { to { opacity: 0; } }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: calc(8px + var(--safe-t)) 12px 4px; }
.lb-count { font-family: var(--f-display); font-weight: 900; letter-spacing: .1em; padding-left: 6px; }
.lb-close, .lb-nav { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--paper); border: 1.5px solid rgba(247,243,236,.5); }
.lb-close:hover, .lb-nav:hover { background: var(--red); border-color: var(--red); }
.lb-close svg, .lb-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lb-stage { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 0; }
.lb-img {
  max-width: min(94vw, 1200px); max-height: 100%; width: auto; height: auto; object-fit: contain; border: 6px solid var(--paper); box-shadow: 0 10px 40px rgba(0,0,0,.4);
  background: center/cover no-repeat; user-select: none; -webkit-user-drag: none; transition: transform .35s var(--ease-out), opacity .35s;
}
.lb-img.enter-l { animation: lb-slide-l .4s var(--ease-out); }
.lb-img.enter-r { animation: lb-slide-r .4s var(--ease-out); }
@keyframes lb-slide-l { from { opacity: 0; transform: translateX(-60px) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes lb-slide-r { from { opacity: 0; transform: translateX(60px) rotate(2deg); } to { opacity: 1; transform: none; } }
.lb-nav { position: absolute; top: 50%; margin-top: -24px; background: rgba(28,26,25,.4); }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-cap { padding: 10px 16px calc(14px + var(--safe-b)); text-align: center; font-size: 15px; max-width: 760px; margin: 0 auto; min-height: 3em; }
@media (max-width: 640px) { .lb-nav { display: none; } }

/* ---------- intro: the ticket ---------- */
.intro {
  position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(#F3EEE5, #E8E0D2); transition: background .8s;
}
.intro.descend { background: transparent; pointer-events: none; }
.cloud { position: absolute; width: 60vmax; height: 30vmax; border-radius: 50%; background: radial-gradient(closest-side, #fff, rgba(255,255,255,.85) 60%, rgba(255,255,255,0)); filter: blur(4px); transition: transform 1.6s var(--ease-out), opacity 1.6s; }
.cloud.c1 { left: -20vmax; top: -8vmax; } .cloud.c2 { right: -24vmax; top: 20vh; } .cloud.c3 { left: -10vmax; bottom: -12vmax; } .cloud.c4 { right: -14vmax; bottom: -10vmax; }
.intro.descend .c1 { transform: translate(-60vw, -40vh) scale(1.4); opacity: 0; }
.intro.descend .c2 { transform: translate(60vw, -20vh) scale(1.4); opacity: 0; }
.intro.descend .c3 { transform: translate(-60vw, 40vh) scale(1.4); opacity: 0; }
.intro.descend .c4 { transform: translate(60vw, 40vh) scale(1.4); opacity: 0; }
.ticket-wrap { position: relative; z-index: 2; filter: drop-shadow(6px 6px 0 var(--ink)); }
.ticket {
  position: relative; z-index: 2; width: min(360px, calc(100vw - 40px)); padding: 22px 26px 18px; background: var(--paper) var(--paper-grain);
  border: var(--line); animation: tk-in .9s var(--ease-spring) both; transform-origin: 50% 120%;
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 12px, #000 12.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 12px, #000 12.5px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 50%, transparent 12px, #000 12.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 12px, #000 12.5px) right / 51% 100% no-repeat;
}
@keyframes tk-in { from { opacity: 0; transform: translateY(80px) rotate(8deg) scale(.8); } to { opacity: 1; transform: rotate(-2deg); } }
.ticket.fly { animation: tk-fly 1s cubic-bezier(.5,-0.3,.7,.4) forwards; }
@keyframes tk-fly { to { opacity: 0; transform: translate(70vw, -80vh) rotate(38deg) scale(.6); } }
.tk-row { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .14em; font-weight: 700; color: var(--ink-2); }
.tk-route { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 6px; }
.tk-route b { font-family: var(--f-display); font-weight: 900; font-size: 30px; letter-spacing: .02em; line-height: 1; }
.tk-route b:last-child { color: var(--red); text-align: right; font-size: 24px; }
.tk-route i { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 10px); position: relative; }
.tk-route i::after { content: '✈'; position: absolute; left: 50%; top: -12px; font-style: normal; font-size: 16px; animation: tk-plane 2.4s ease-in-out infinite; }
@keyframes tk-plane { 0%,100% { transform: translateX(-30px); } 50% { transform: translateX(20px); } }
.tk-zh { font-size: 14px; color: var(--ink-2); margin: 0 0 14px; }
.tk-strip { display: flex; justify-content: space-between; align-items: center; border-top: 1.5px dashed var(--ink); padding-top: 12px; }
.tk-strip small { font-family: var(--f-display); font-weight: 600; letter-spacing: .1em; }
.tk-holes { position: absolute; right: 70px; top: 18px; display: flex; gap: 10px; }
.tk-holes span { width: 16px; height: 16px; border-radius: 50%; background: #E8E0D2; border: 1.5px solid var(--ink); transform: scale(0); }
.ticket.punched .tk-holes span { animation: punch .35s var(--ease-spring) forwards; }
.ticket.punched .tk-holes span:nth-child(2) { animation-delay: .22s; } .ticket.punched .tk-holes span:nth-child(3) { animation-delay: .44s; }
@keyframes punch { 0% { transform: scale(0); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
.ticket.punched { animation: tk-shake .5s .1s; }
@keyframes tk-shake { 0%,100% { transform: rotate(-2deg); } 30% { transform: rotate(-3.5deg) translateY(3px); } 60% { transform: rotate(-1deg) translateY(-1px); } }
.intro-actions { position: absolute; z-index: 3; bottom: calc(40px + var(--safe-b)); left: 0; right: 0; display: flex; justify-content: center; gap: 12px; }
.intro.descend .intro-actions { opacity: 0; transition: opacity .3s; }
.coach {
  position: fixed; z-index: 71; left: 50%; bottom: calc(110px + var(--safe-b)); width: min(360px, calc(100vw - 32px)); transform: translateX(-50%);
  background: var(--paper); border: var(--line); box-shadow: var(--shadow); border-radius: 10px; padding: 16px 18px 12px; animation: coach-in .5s var(--ease-spring);
}
@keyframes coach-in { from { opacity: 0; transform: translate(-50%, 30px) rotate(3deg); } to { opacity: 1; transform: translateX(-50%); } }
.coach.swap { animation: coach-swap .45s var(--ease-spring); }
@keyframes coach-swap { 0% { transform: translateX(-50%) rotateY(0); } 50% { transform: translateX(-50%) rotateY(90deg); } 100% { transform: translateX(-50%) rotateY(0); } }
.coach-n { font-family: var(--f-display); font-weight: 900; color: var(--red); font-size: 13px; letter-spacing: .14em; }
.coach h2 { font-size: 19px; margin: 2px 0 4px; }
.coach p { font-size: 14px; color: var(--ink-2); margin: 0 0 10px; }
.coach-foot { display: flex; align-items: center; justify-content: space-between; }
.coach-dots { display: flex; gap: 6px; }
.coach-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink); }
.coach-dots i.on { background: var(--red); }
.coach-foot .btn { min-height: 40px; padding: 6px 16px; }
.coach-skip { min-height: 44px; padding: 0 10px; font-size: 13px; color: var(--ink-3); }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  :root { --top-h: 52px; }
  .topbar { top: calc(8px + var(--safe-t)); left: calc(8px + var(--safe-l)); right: calc(8px + var(--safe-r)); gap: 6px; }
  .badge { padding-right: 10px; }
  .badge-txt b { font-size: 13px; }
  .badge-txt small { font-size: 11px; }
  .views { margin-left: auto; margin-right: 0; }
  .vs-btn { min-width: 0; padding: 0 10px; font-size: 13px; letter-spacing: .02em; min-height: 38px; }
  .toolbar { left: auto; right: calc(8px + var(--safe-r)); top: calc(var(--top-h) + 18px + var(--safe-t)); gap: 8px; }
  .tb { width: 44px; height: 44px; }
  .tb-tip { display: none; }
  .tod-pop { left: auto; right: calc(100% + 8px); transform-origin: right top; }
  .journal { left: calc(8px + var(--safe-l)); right: auto; top: calc(var(--top-h) + 18px + var(--safe-t)); bottom: auto; width: calc(100vw - 80px - var(--safe-l) - var(--safe-r)); flex-direction: column; }
  body.tl-on .journal { bottom: auto; }
  .jn:nth-child(n+3) { display: none; }
  .jn { grid-template-columns: 38px 1fr; padding: 6px 10px 6px 12px; }
  .jn-ph { width: 38px; height: 38px; }
  .timeline {
    left: calc(8px + var(--safe-l)); right: calc(8px + var(--safe-r)); width: auto; min-width: 0;
    bottom: calc(var(--peek) + 10px + var(--safe-b)); padding: 8px 10px; border-radius: 10px;
  }
  .tl-stamp { width: 42px; height: 42px; font-size: 12px; }
  .tl-title { font-size: 14px; }
  .tl-go { padding: 0 6px; }
  body.sheet-open .timeline { opacity: 0; pointer-events: none; transform: translateY(20px); transition: opacity .3s, transform .3s; }
}
@media (max-width: 380px) {
  .badge-txt small { display: none; }
  .vs-btn { padding: 0 8px; }
}

/* coach-mark highlight */
.coach-target { position: relative; z-index: 72; animation: coach-ring 1.4s ease-in-out infinite; border-radius: 999px; }
@keyframes coach-ring { 0%,100% { box-shadow: 0 0 0 0 rgba(215,20,26,.7), var(--shadow-sm); } 50% { box-shadow: 0 0 0 10px rgba(215,20,26,0), var(--shadow-sm); } }

/* hover chip over island (place name preview) */
.hover-chip {
  position: fixed; z-index: 24; pointer-events: none; transform: translate(-50%, -130%); padding: 3px 10px; font-size: 13px; font-weight: 700;
  background: var(--ink); color: var(--paper); border-radius: 3px; white-space: nowrap; opacity: 0; transition: opacity .15s;
}
.hover-chip.on { opacity: 1; }
