/* JK Zemun — overlay UI on top of the 3D scene. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: #cfdde6;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--sea); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.ico { flex: none; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#scene:focus { outline: none; }
#scene:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; touch-action: none; }
#fallback { position: fixed; inset: 0; background: center / cover no-repeat url("../media/ui/scene-fallback.jpg"), linear-gradient(160deg, #cfe0ea, #9fbfcc); display: none; }
body.no-webgl #fallback { display: block; }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: fixed; z-index: 30; top: 14px; left: 16px; right: 16px;
  display: flex; align-items: center; gap: 12px; pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand {
  display: flex; align-items: center; gap: 12px; padding: 7px 16px 7px 7px;
  background: var(--glass); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--navy); border: 1px solid rgba(255,255,255,.6);
}
.brand-mark { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; overflow: hidden; flex: none; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.brand { min-width: 0; }
.brand-text { line-height: 1.05; display: flex; flex-direction: column; min-width: 0; }
.brand-name, .brand-tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.brand-tag { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 3px; }

.nav {
  display: flex; align-items: center; gap: 2px; padding: 5px; margin-left: auto;
  background: var(--glass); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); border: 1px solid rgba(255,255,255,.6);
}
.nav button {
  border: 0; background: transparent; padding: 9px 13px; border-radius: var(--radius-pill);
  font-weight: 650; font-size: 13.5px; color: var(--navy-ink); white-space: nowrap; transition: background .2s, color .2s;
}
.nav button:hover { background: rgba(27, 25, 88, .07); }
.nav button[aria-current="true"] { background: var(--navy); color: #fff; }
.cta {
  border: 0; background: var(--orange); color: #fff; font-weight: 750; font-size: 13.5px; letter-spacing: .01em;
  padding: 12px 18px; border-radius: var(--radius-pill); box-shadow: 0 8px 22px rgba(215, 39, 31, .35);
  display: inline-flex; align-items: center; gap: 8px; transition: transform .2s var(--ease), background .2s;
}
.cta:hover { background: var(--orange-deep); transform: translateY(-1px); }
.lang {
  display: flex; padding: 4px; gap: 2px; background: var(--glass); border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.6);
}
.lang button { border: 0; background: transparent; font-weight: 750; font-size: 12px; padding: 8px 9px; border-radius: var(--radius-pill); color: var(--muted); letter-spacing: .04em; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.menu-btn { display: none; border: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--glass); box-shadow: var(--shadow-sm); place-items: center; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

/* ---------------------------------------------------------------- markers & labels */
#markers { position: fixed; inset: 0; z-index: 10; pointer-events: none; overflow: hidden; }
.marker {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); pointer-events: auto;
  display: flex; align-items: center; gap: 8px; padding: 5px 13px 5px 5px; border: 0;
  background: rgba(251, 250, 246, .94); color: var(--navy); border-radius: var(--radius-pill);
  box-shadow: 0 6px 18px rgba(15, 13, 51, .22); font-weight: 750; font-size: 12.5px; white-space: nowrap;
  transition: background .2s, color .2s, opacity .3s, padding .3s var(--ease);
  will-change: transform;
}
.marker::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 14px; margin-left: -1px;
  background: linear-gradient(rgba(251,250,246,.95), rgba(251,250,246,0));
}
.marker .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; transition: background .2s; }
.marker .dot .ico { width: 16px; height: 16px; }
.marker:hover, .marker.hot, .marker[aria-current="true"] { background: var(--navy); color: #fff; }
.marker:hover .dot, .marker.hot .dot, .marker[aria-current="true"] .dot { background: var(--orange); }
.marker.compact { padding-right: 5px; }
.marker.compact .label { display: none; }
.marker.hidden { opacity: 0; pointer-events: none; }
.marker .pulse { position: absolute; left: 5px; top: 5px; width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 0 rgba(215,39,31,.6); animation: pulse 2.4s infinite; pointer-events: none; }
/* the sailing race pin (scene config marker with action: 'race') */
.marker.race .dot { background: var(--orange); box-shadow: 0 0 0 3px rgba(215,39,31,.2); }
.marker.race:hover .dot, .marker.race.hot .dot { background: var(--orange-deep); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(215,39,31,.55); } 70% { box-shadow: 0 0 0 14px rgba(215,39,31,0); } 100% { box-shadow: 0 0 0 0 rgba(215,39,31,0); } }

.place {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap; pointer-events: none;
  font-family: var(--font-display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 12px;
  color: rgba(22, 20, 63, .78); text-shadow: 0 1px 0 rgba(255,255,255,.7), 0 0 12px rgba(255,255,255,.65); transition: opacity .4s;
}
.place.water { font-family: var(--font-body); font-style: italic; text-transform: none; letter-spacing: .5em; font-size: 17px; font-weight: 600; color: rgba(225, 240, 238, .92); text-shadow: 0 1px 6px rgba(0, 30, 30, .35); }
.place.beach { color: #7a5a1e; }
.place.landmark { pointer-events: auto; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.place.landmark::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(255,255,255,.8); }
.place.hidden { opacity: 0; }
body.night .place { color: rgba(240, 236, 220, .85); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
body.night .place.water { color: rgba(160, 190, 220, .7); }

.tooltip {
  position: fixed; z-index: 40; pointer-events: none; padding: 7px 11px; border-radius: 10px; background: var(--navy-deep); color: #fff;
  font-size: 12.5px; font-weight: 650; transform: translate(14px, 14px); opacity: 0; transition: opacity .15s;
}
.tooltip.show { opacity: 1; }

/* ---------------------------------------------------------------- bottom widgets */
.conditions {
  position: fixed; z-index: 20; left: 16px; bottom: 16px; width: 318px; border: 0; text-align: left;
  background: var(--glass); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-radius: 18px; box-shadow: var(--shadow); padding: 14px 16px; border: 1px solid rgba(255,255,255,.6);
  display: grid; grid-template-columns: 64px 1fr; gap: 4px 14px; align-items: center; transition: transform .3s var(--ease);
}
.conditions:hover { transform: translateY(-2px); }
.conditions .compass { grid-row: span 3; width: 64px; height: 64px; border-radius: 50%; position: relative; background: radial-gradient(circle at 50% 40%, #fff, #e9eef1); box-shadow: inset 0 0 0 1px var(--line); }
.conditions .compass span { position: absolute; font-size: 8.5px; font-weight: 800; color: var(--muted); }
.conditions .compass .n { top: 3px; left: 50%; transform: translateX(-50%); color: var(--red); }
.conditions .compass .arrow { position: absolute; inset: 9px; transition: transform 1.2s var(--ease); }
.conditions .kicker { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.conditions .kicker i { width: 7px; height: 7px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 3px rgba(47,191,113,.18); }
.conditions .kicker i.off { background: #c7a43b; box-shadow: 0 0 0 3px rgba(199,164,59,.2); }
.conditions .big { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--navy); line-height: 1; }
.conditions .big small { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--muted); margin-left: 3px; }
.conditions .sub { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.controls { position: fixed; z-index: 20; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; transition: right .45s var(--ease); }
.ctrl-group { display: flex; flex-direction: column; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid rgba(255,255,255,.6); }
.ctrl-group.row { flex-direction: row; }
.ctrl { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; color: var(--navy); transition: background .2s; position: relative; }
.ctrl:hover { background: rgba(27, 25, 88, .08); }
.ctrl[aria-pressed="true"] { background: var(--navy); color: #fff; }
.ctrl + .ctrl { border-top: 1px solid var(--line); }
.ctrl-group.row .ctrl + .ctrl { border-top: 0; border-left: 1px solid var(--line); }
.ctrl .north-needle { transition: transform .2s linear; }
.time-switch button { width: auto; padding: 0 12px; gap: 6px; display: inline-flex; align-items: center; font-weight: 700; font-size: 12px; }

.ticker {
  position: fixed; z-index: 20; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: min(520px, calc(100vw - 680px));
  display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border: 0; text-align: left;
  background: var(--glass-dark); color: #fff; border-radius: var(--radius-pill); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .3s var(--ease), opacity .3s;
}
.ticker:hover { transform: translateX(-50%) translateY(-2px); }
.ticker .tag { background: var(--orange); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: var(--radius-pill); flex: none; }
.ticker .txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 650; font-size: 13.5px; }
body.panel-open .ticker, body.panel-open .conditions { opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------------- panel */
.panel {
  position: fixed; z-index: 25; top: 84px; right: 16px; bottom: 16px; width: min(500px, calc(100vw - 32px));
  background: var(--glass-strong); backdrop-filter: blur(22px) saturate(1.25); -webkit-backdrop-filter: blur(22px) saturate(1.25);
  border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.7);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(calc(100% + 40px)); transition: transform .55s var(--ease); visibility: hidden;
}
.panel.open { transform: none; visibility: visible; }
body.panel-open .controls { right: 532px; }
.panel-head { display: flex; align-items: flex-start; gap: 12px; padding: 22px 22px 14px; border-bottom: 1px solid var(--line); }
.panel-head .kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-deep); display: flex; align-items: center; gap: 7px; }
.panel-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 25px; line-height: 1.12; margin: 7px 0 0; color: var(--navy); letter-spacing: -.01em; }
.panel-head .x { margin-left: auto; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(27,25,88,.06); display: grid; place-items: center; color: var(--navy); }
.panel-head .x:hover { background: rgba(27,25,88,.12); }
.panel-back { border: 0; background: none; padding: 0; color: var(--sea); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.panel-body { overflow-y: auto; padding: 18px 22px 30px; scroll-behavior: smooth; overscroll-behavior: contain; }
.panel-body::-webkit-scrollbar { width: 8px; }
.panel-body::-webkit-scrollbar-thumb { background: rgba(27,25,88,.18); border-radius: 8px; }
.handle { display: none; }

.lead { font-size: 16.5px; line-height: 1.55; color: var(--navy-ink); font-weight: 550; margin: 0 0 16px; }
.prose { font-size: 15px; line-height: 1.68; color: #24384d; }
.prose p { margin: 0 0 12px; }
.prose h3, .prose h4 { font-family: var(--font-display); color: var(--navy); font-weight: 650; margin: 22px 0 8px; font-size: 17px; }
.prose h4 { font-size: 15px; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 12px; }
.prose li { margin: 4px 0; }
.prose img { border-radius: 12px; margin: 12px 0; width: 100%; height: auto; }
.prose blockquote { margin: 14px 0; padding: 10px 16px; border-left: 3px solid var(--orange); background: rgba(215,39,31,.06); border-radius: 0 10px 10px 0; }
.prose a { font-weight: 650; }
.hero { border-radius: 16px; overflow: hidden; margin: 0 0 18px; aspect-ratio: 16 / 9; background: var(--sand); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 0 0 20px; }
.fact { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line); }
.fact b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--navy); font-weight: 700; }
.fact span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 4px; }
.btn { border: 0; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: var(--radius-pill); font-weight: 700; font-size: 13.5px; text-decoration: none; background: rgba(27,25,88,.07); color: var(--navy); transition: background .2s, transform .2s var(--ease); }
.btn:hover { background: rgba(27,25,88,.13); transform: translateY(-1px); }
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: #0d3d6b; }
.btn.orange { background: var(--orange); color: #fff; }

/* cards */
.cards { display: grid; gap: 12px; }
.card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 16px; background: #fff; border: 0; text-align: left; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s var(--ease); width: 100%; }
.card:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-sm); transform: translateY(-1px); }
.card .thumb { width: 96px; height: 76px; border-radius: 11px; overflow: hidden; background: linear-gradient(135deg, var(--sea-light), var(--sea)); display: grid; place-items: center; color: #fff; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .meta { font-size: 11.5px; font-weight: 750; color: var(--orange-deep); letter-spacing: .04em; text-transform: uppercase; }
.card h3 { margin: 4px 0 4px; font-size: 15px; line-height: 1.3; color: var(--navy); font-weight: 750; }
.card p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card.wide { grid-template-columns: 1fr; }
.more-btn { width: 100%; justify-content: center; margin-top: 14px; }

.article-meta { font-size: 12.5px; font-weight: 750; color: var(--orange-deep); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.photo-grid button { border: 0; padding: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--sand); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.photo-grid button:hover img { transform: scale(1.05); }
.albums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.album { border: 0; padding: 0; text-align: left; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s var(--ease), box-shadow .2s; }
.album:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.album .cover { aspect-ratio: 4/3; background: var(--sand); overflow: hidden; }
.album .cover img { width: 100%; height: 100%; object-fit: cover; }
.album .t { padding: 10px 12px 12px; }
.album .t b { display: block; font-size: 13.5px; color: var(--navy); line-height: 1.3; }
.album .t span { font-size: 12px; color: var(--muted); font-weight: 600; }

.docs { display: grid; gap: 8px; }
.doc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border-radius: 14px; text-decoration: none; color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.doc:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-sm); }
.doc .di { width: 40px; height: 40px; border-radius: 10px; background: rgba(215,39,31,.12); color: var(--orange-deep); display: grid; place-items: center; flex: none; }
.doc b { display: block; font-size: 14px; line-height: 1.3; }
.doc span { font-size: 12px; color: var(--muted); font-weight: 600; }
.doc .dl { margin-left: auto; color: var(--sea); }
.doc-cat { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }

.fleet-card { background: #fff; border-radius: 16px; padding: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.fleet-card h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 17px; color: var(--navy); }
.fleet-card .specs { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); font-weight: 650; margin-bottom: 8px; }
.fleet-card .specs span { display: inline-flex; gap: 5px; align-items: center; }
.fleet-card p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: #2e2c55; }

.regatta { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 12px; background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.regatta .date { background: var(--navy); color: #fff; border-radius: 12px; text-align: center; padding: 8px 4px; font-family: var(--font-display); line-height: 1.05; }
.regatta .date b { display: block; font-size: 20px; }
.regatta .date span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; }
.regatta h3 { margin: 2px 0 4px; font-size: 15px; color: var(--navy); }
.regatta p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chip { font-size: 11px; font-weight: 750; padding: 4px 8px; border-radius: var(--radius-pill); background: rgba(47,74,160,.1); color: var(--sea); }

/* weather page */
.wx-now { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; background: linear-gradient(135deg, var(--navy), #2b2884); color: #fff; border-radius: 20px; padding: 18px; margin-bottom: 16px; }
.wx-now .compass { width: 120px; height: 120px; border-radius: 50%; position: relative; background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.18), rgba(255,255,255,.04)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.wx-now .compass span { position: absolute; font-size: 10px; font-weight: 800; opacity: .8; }
.wx-now .compass .n { top: 6px; left: 50%; transform: translateX(-50%); color: #ff9b73; opacity: 1; }
.wx-now .compass .e { right: 8px; top: 50%; transform: translateY(-50%); }
.wx-now .compass .s { bottom: 6px; left: 50%; transform: translateX(-50%); }
.wx-now .compass .w { left: 8px; top: 50%; transform: translateY(-50%); }
.wx-now .compass .arrow { position: absolute; inset: 16px; transition: transform 1.2s var(--ease); }
.wx-now .speed { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1; }
.wx-now .speed small { font-size: 15px; font-family: var(--font-body); font-weight: 700; opacity: .75; margin-left: 4px; }
.wx-now .lvl { font-weight: 700; margin-top: 6px; }
.wx-now .alt { font-size: 13px; opacity: .78; margin-top: 4px; font-weight: 600; }
.wx-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.wx-cell { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line); display: flex; gap: 10px; align-items: center; }
.wx-cell .ico { color: var(--sea); }
.wx-cell b { display: block; font-size: 17px; color: var(--navy); font-family: var(--font-display); }
.wx-cell span { font-size: 12px; color: var(--muted); font-weight: 650; }
.wx-verdict { padding: 12px 14px; border-radius: 14px; background: rgba(47,191,113,.1); color: #1d6b43; font-weight: 700; font-size: 14px; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.wx-verdict.warn { background: rgba(215,39,31,.12); color: var(--orange-deep); }
.wx-chart { background: #fff; border-radius: 16px; padding: 14px 10px 8px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 16px; }
.wx-chart h4 { margin: 0 6px 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.wx-chart svg { width: 100%; height: auto; display: block; }
.play { background: rgba(27,25,88,.05); border-radius: 16px; padding: 14px 16px; }
.play h4 { margin: 0 0 4px; font-family: var(--font-display); color: var(--navy); font-size: 15px; }
.play p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.play label { display: grid; grid-template-columns: 120px 1fr 54px; align-items: center; gap: 10px; font-size: 13px; font-weight: 650; color: var(--navy-ink); margin: 8px 0; }
.play output { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
input[type="range"] { width: 100%; accent-color: var(--orange); }

/* forms */
.form { display: grid; gap: 12px; }
.form .types { display: flex; gap: 8px; flex-wrap: wrap; }
.form .types label { cursor: pointer; }
.form .types input { position: absolute; opacity: 0; pointer-events: none; }
.form .types span { display: inline-block; padding: 9px 14px; border-radius: var(--radius-pill); background: rgba(27,25,88,.07); font-weight: 700; font-size: 13px; color: var(--navy); transition: background .2s, color .2s; }
.form .types input:checked + span { background: var(--navy); color: #fff; }
.form .types input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12.5px; font-weight: 750; color: var(--navy-ink); }
.field > span em { font-style: normal; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); background: #fff; border-radius: 12px; padding: 11px 13px; font: inherit; font-size: 14.5px; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(47,74,160,.18); }
.field.check { grid-template-columns: 22px 1fr; align-items: start; }
/* spam trap: invisible to people, bots fill it in (the server drops such applications) */
.form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.field.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); }
.field.check span { font-weight: 600; color: var(--muted); }
.form-note { padding: 12px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 650; }
.form-note.info { background: rgba(47,74,160,.1); color: var(--sea); }
.form-note.ok { background: rgba(47,191,113,.12); color: #1d6b43; }
.form-note.err { background: rgba(214,64,47,.1); color: var(--red); }

.contact-list { display: grid; gap: 10px; margin-bottom: 16px; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); color: var(--navy); text-decoration: none; }
.contact-item .ico { color: var(--orange-deep); margin-top: 2px; }
.contact-item small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.contact-item b { font-size: 14.5px; }

/* ---------------------------------------------------------------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(4, 16, 30, .92); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 84vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); object-fit: contain; }
.lightbox .lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.lightbox .lb-btn:hover { background: rgba(255,255,255,.22); }
.lightbox .prev { left: 20px; } .lightbox .next { right: 20px; }
.lightbox .lb-close { top: 26px; right: 20px; transform: none; }
.lightbox .cap { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; font-weight: 600; opacity: .85; text-align: center; max-width: 80vw; }

/* ---------------------------------------------------------------- loader / intro */
.loader {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; text-align: center;
  background: radial-gradient(120% 90% at 50% 20%, #2b2884 0%, #1b1958 45%, #0f0d33 100%); color: #fff;
  transition: opacity 1s var(--ease), visibility 1s;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader .waves { position: absolute; inset: auto 0 0 0; height: 32vh; opacity: .3; pointer-events: none; }
.loader .inner { position: relative; padding: 24px; max-width: 560px; }
.loader .emblem { width: 92px; height: 92px; margin: 0 auto 22px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: 0 0 0 8px rgba(255,255,255,.08); }
.loader .emblem img { width: 100%; height: 100%; object-fit: contain; }
.loader h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 5vw, 46px); line-height: 1.06; margin: 0 0 10px; letter-spacing: -.01em; }
.loader p { margin: 0; opacity: .78; font-weight: 600; letter-spacing: .02em; }
.loader .bar { width: min(320px, 70vw); height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); margin: 28px auto 12px; overflow: hidden; }
.loader .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), #ffb4ae); border-radius: 4px; transition: width .4s var(--ease); }
.loader .step { font-size: 12.5px; opacity: .7; min-height: 18px; }
.loader .enter { margin-top: 22px; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); pointer-events: none; }
.loader.ready .enter { opacity: 1; transform: none; pointer-events: auto; }
.loader .langs { position: absolute; top: 20px; right: 20px; }
.hint {
  position: fixed; z-index: 21; left: 50%; top: 86px; transform: translateX(-50%); padding: 9px 16px; border-radius: var(--radius-pill);
  background: var(--glass-dark); color: #fff; font-size: 12.5px; font-weight: 650; box-shadow: var(--shadow); transition: opacity .6s; white-space: nowrap; pointer-events: none;
}
.hint.gone, body.panel-open .hint { opacity: 0; }

.tour-card {
  position: fixed; z-index: 22; left: 50%; bottom: 96px; transform: translateX(-50%); width: min(520px, calc(100vw - 32px));
  background: var(--glass-strong); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 16px 18px; display: none; border: 1px solid rgba(255,255,255,.7);
}
.tour-card.show { display: block; animation: rise .5s var(--ease); }
.tour-card .k { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-deep); }
.tour-card h3 { margin: 4px 0 6px; font-family: var(--font-display); color: var(--navy); font-size: 19px; }
.tour-card p { margin: 0; font-size: 14px; color: #2e2c55; line-height: 1.5; }
.tour-card .row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.tour-card .dots { display: flex; gap: 5px; }
.tour-card .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.tour-card .dots i.on { background: var(--orange); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

.toast { position: fixed; z-index: 90; left: 50%; top: 20px; transform: translate(-50%, -80px); background: var(--navy-deep); color: #fff; padding: 11px 18px; border-radius: var(--radius-pill); font-weight: 650; font-size: 13.5px; box-shadow: var(--shadow); transition: transform .4s var(--ease); }
.toast.show { transform: translate(-50%, 0); }

/* data attributions (OpenStreetMap ODbL, Open-Meteo CC BY 4.0) */
.credits { position: fixed; z-index: 19; left: 50%; bottom: 2px; transform: translateX(-50%); font-size: 10px; font-weight: 600; color: rgba(22,20,63,.55); white-space: nowrap; text-shadow: 0 0 6px rgba(255,255,255,.8); }
.credits a { color: inherit; text-decoration: none; }
.credits a:hover { text-decoration: underline; }
body.night .credits { color: rgba(240,236,220,.5); text-shadow: none; }

/* mobile menu sheet */
.mobile-menu { position: fixed; inset: 0; z-index: 50; background: rgba(15,13,51,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: none; }
.mobile-menu.open { display: block; }
.mobile-menu .sheet { position: absolute; left: 12px; right: 12px; top: 12px; background: var(--paper); border-radius: 22px; padding: 18px; box-shadow: var(--shadow-lg); animation: drop .35s var(--ease); max-height: calc(100dvh - 24px); overflow-y: auto; }
.mobile-menu .sheet .row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mobile-menu nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mobile-menu nav button { border: 0; background: #fff; border-radius: 14px; padding: 14px; text-align: left; display: flex; gap: 10px; align-items: center; font-weight: 750; color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.mobile-menu nav button .ico { color: var(--orange-deep); }
.mobile-menu .cta { width: 100%; justify-content: center; margin-top: 12px; padding: 15px; }
@keyframes drop { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* night tweaks */
body.night .marker { background: rgba(10, 30, 55, .9); color: #fff; }
body.night .marker::after { background: linear-gradient(rgba(10,30,55,.9), rgba(10,30,55,0)); }

/* draft banner */
.draft-banner { position: fixed; z-index: 95; top: 0; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font-weight: 750; font-size: 12px; padding: 5px 14px; border-radius: 0 0 10px 10px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .nav button { padding: 9px 9px; font-size: 13px; }
  .ticker { display: none; }
}
@media (max-width: 1020px) {
  .nav { display: none; }
  .menu-btn { display: grid; margin-left: auto; }
  .topbar .cta { display: none; }
}
@media (max-width: 760px) {
  .credits { left: auto; right: 62px; transform: none; font-size: 9px; bottom: 1px; }
  .topbar { top: 10px; left: 10px; right: 10px; gap: 8px; }
  .brand { padding: 5px 12px 5px 5px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 13.5px; }
  .brand-tag { font-size: 10.5px; }
  .lang button { padding: 7px 7px; font-size: 11px; }
  .menu-btn { width: 42px; height: 42px; }
  .conditions { left: 10px; bottom: 10px; width: auto; grid-template-columns: 46px auto; padding: 9px 12px 9px 9px; gap: 0 10px; }
  .conditions .compass { width: 46px; height: 46px; }
  .conditions .compass .arrow { inset: 6px; }
  .conditions .compass span { display: none; }
  .conditions .big { font-size: 19px; }
  .conditions .sub { display: none; }
  .controls { right: 10px; bottom: 10px; gap: 8px; }
  .ctrl { width: 40px; height: 40px; }
  .time-switch { display: none; }
  .hint { top: auto; bottom: 86px; white-space: normal; text-align: center; width: calc(100vw - 40px); }
  .panel {
    top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: 76dvh; border-radius: 24px 24px 0 0;
    transform: translateY(calc(100% + 20px));
  }
  .panel.open { transform: translateY(var(--sheet-drag, 0px)); }
  .panel.dragging { transition: none; }
  body.panel-open .controls { right: 10px; opacity: 0; pointer-events: none; }
  .handle { display: block; width: 44px; height: 5px; border-radius: 5px; background: rgba(27,25,88,.22); margin: 9px auto 0; flex: none; }
  .panel-head { padding: 12px 18px 12px; }
  .panel-head h2 { font-size: 21px; }
  .panel-body { padding: 14px 18px 30px; }
  .albums { grid-template-columns: 1fr 1fr; gap: 8px; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .wx-now { grid-template-columns: 96px 1fr; }
  .wx-now .compass { width: 96px; height: 96px; }
  .play label { grid-template-columns: 1fr; gap: 4px; }
  .marker { font-size: 11.5px; }
  .tour-card { bottom: 74px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
