/* Gargoyle boat hub - v1 front end
   Design units: 1rem = 16px on the 1920x1080 kiosk viewport (4K @ scale 2).
   Sizes scale with the screen on wide displays; phones (<1000px) use a fixed 16px base.
   No backdrop-filter anywhere: Cog/WPE can be slow with it. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #cfe8ef;
  --ink-hi: #e6f6fa;
  --ink-mid: #a9d3dd;
  --ink-lo: #7fb6c4;
  --teal: #5fe0d4;
  --teal-2: #2bb3c0;
  --deep: #0b2a3a;
  --abyss: #04131d;
  --line: rgba(207, 232, 239, .16);
  --tile-bg: linear-gradient(160deg, rgba(24, 80, 98, .9), rgba(10, 44, 58, .94));
  --card-bg: rgba(9, 36, 50, .88);
  --radius: 1.75rem;
  --red: #ff4b4b;
  --green: #2fe37a;
  --white-light: #f4f4e8;
}

html {
  font-size: min(calc(100vw / 120), calc(100vh / 67.5));
  height: 100%;
  background: var(--abyss);
}

body {
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', 'Noto Sans', 'DejaVu Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--deep);
  /* kiosk hardening: no selection, no long-press callout, no double-tap zoom */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
}

img, svg { -webkit-user-drag: none; }
.ic { display: inline-block; flex-shrink: 0; }
.ic svg { width: 100%; height: 100%; display: block; }

button {
  font: inherit; color: inherit; background: none; border: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent; text-align: inherit;
  touch-action: manipulation;
}
button:active { transform: scale(.97); }
button:focus { outline: none; }
button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* ---------- layers ---------- */
#bg {
  position: fixed; inset: 0;
  background: var(--deep) url(../assets/ocean-bg.svg) 62% center / cover no-repeat;
}
#dim {
  position: fixed; inset: 0;
  background: linear-gradient(180deg, rgba(4, 19, 29, .6), rgba(4, 19, 29, .3) 40%, rgba(4, 19, 29, .65));
  opacity: 1; transition: opacity .6s ease;
}
body.is-page #dim { background: rgba(4, 19, 29, .72); }

#view {
  position: fixed; inset: 0;
  overflow-x: hidden; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 1; visibility: visible;
  transition: opacity .6s ease, visibility 0s linear 0s;
}
#idle {
  position: fixed; inset: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .8s ease, visibility 0s linear .8s;
  text-shadow: 0 .25rem 1.9rem rgba(0, 0, 0, .45);
}
body.is-idle #idle { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .8s ease, visibility 0s; }
body.is-idle #view { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .6s ease, visibility 0s linear .6s; }
body.is-idle #dim { opacity: 0; }
body.is-booting #view, body.is-booting #idle, body.is-booting #dim { transition: none; }

#example-mark {
  position: fixed; right: 1.4rem; bottom: .9rem; z-index: 50;
  font-size: .95rem; letter-spacing: .06em; color: rgba(207, 232, 239, .42);
  pointer-events: none;
}
#example-mark::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: #e8b04a; margin-right: .5rem; vertical-align: middle; opacity: .8; }

/* ---------- idle (ambient) ---------- */
.idle-center { position: absolute; left: 0; right: 0; top: 10.6rem; text-align: center; }
.bigclock { font-size: 14.4rem; font-weight: 200; letter-spacing: -.02em; line-height: 1; color: var(--ink-hi); font-variant-numeric: tabular-nums; }
.bigclock small { font-size: 4.4rem; font-weight: 300; margin-left: 1rem; color: #9cc8d3; }
.bigdate { font-size: 2.75rem; font-weight: 300; letter-spacing: .08em; margin-top: 1.1rem; color: var(--ink); }
.bigtemp { display: inline-flex; align-items: center; gap: .9rem; font-size: 2.4rem; font-weight: 300; margin-top: 1.6rem; color: var(--ink-mid); }
.bigtemp .ic { width: 2.5rem; height: 2.5rem; color: var(--teal); }
.navind {
  position: absolute; left: 2.5rem; bottom: 2.1rem; display: flex; align-items: center; gap: .75rem;
  font-size: 1.25rem; color: rgba(207, 232, 239, .7); padding: .65rem 1.15rem; border-radius: 999px;
  background: rgba(4, 19, 29, .5);
}
.navind .dot { width: .7rem; height: .7rem; }
.touchhint { position: absolute; left: 0; right: 0; bottom: 2.5rem; text-align: center; font-size: 1.25rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(207, 232, 239, .4); }

/* ---------- shared bits ---------- */
.dot { display: inline-block; width: .875rem; height: .875rem; border-radius: 50%; background: rgba(207, 232, 239, .18); }
.dot.red { background: var(--red); box-shadow: 0 0 .6rem var(--red); }
.dot.green { background: var(--green); box-shadow: 0 0 .6rem var(--green); }
.dot.white { background: var(--white-light); box-shadow: 0 0 .6rem #fff; }

.pill {
  display: inline-flex; align-items: center; gap: .75rem; font-size: 1.5rem; padding: .6rem 1.25rem;
  border-radius: 999px; background: rgba(4, 19, 29, .55); border: 1px solid rgba(207, 232, 239, .2); white-space: nowrap;
}
.pill .ic { width: 1.75rem; height: 1.75rem; color: var(--teal); }
.pill.offline .ic { color: #ff9b8a; }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; gap: 1.75rem; min-height: 5rem; text-shadow: 0 .125rem 1rem rgba(0, 0, 0, .5); }
.tb-clock { font-size: 4rem; font-weight: 300; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tb-date { font-size: 1.75rem; color: var(--ink-mid); white-space: nowrap; }
.tb-pills { margin-left: auto; display: flex; gap: 1rem; align-items: center; }

/* ---------- home ---------- */
.home { height: 100%; display: flex; flex-direction: column; padding: 2.5rem 3.5rem 3rem; gap: 2rem; }
.grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: 1fr 1fr; gap: 1.75rem; }
.t0 { grid-column: 1 / 4; } .t1 { grid-column: 4 / 7; } .t2 { grid-column: 1 / 3; } .t3 { grid-column: 3 / 5; } .t4 { grid-column: 5 / 7; }

.tile {
  border-radius: var(--radius); padding: 1.9rem 2.2rem; display: flex; flex-direction: column; position: relative; overflow: hidden;
  background: var(--tile-bg); border: 1px solid rgba(95, 224, 212, .2);
  box-shadow: 0 1.1rem 2.5rem rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .07);
  min-height: 4rem; transition: transform .12s ease, border-color .2s;
}
.tile::after { content: ""; position: absolute; right: -3.75rem; bottom: -3.75rem; width: 13.75rem; height: 13.75rem; border-radius: 50%; background: radial-gradient(circle, rgba(95, 224, 212, .14), transparent 70%); pointer-events: none; }
.tile:active { border-color: var(--teal); }
.tic { width: 4rem; height: 4rem; color: var(--teal); margin-bottom: 1.4rem; }
.ttl { font-size: 2.5rem; font-weight: 700; letter-spacing: .01em; margin-bottom: auto; color: var(--ink-hi); }
.lab { flex-shrink: 0; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-lo); margin-top: 1.25rem; }
.hint { flex-shrink: 0; line-height: 1.25; font-size: 1.9rem; font-weight: 600; color: var(--ink-hi); margin-top: .5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub { font-size: 1.2rem; color: var(--ink-lo); margin-top: .4rem; }
.prog { height: .5rem; border-radius: .25rem; background: rgba(207, 232, 239, .15); margin-top: 1rem; overflow: hidden; }
.prog span { display: block; height: 100%; border-radius: .25rem; background: linear-gradient(90deg, var(--teal-2), var(--teal)); }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.chips span { font-size: 1.15rem; padding: .5rem 1rem; border-radius: 999px; background: rgba(207, 232, 239, .08); border: 1px solid rgba(207, 232, 239, .15); }
.chips span.on { background: rgba(95, 224, 212, .2); border-color: var(--teal); color: #e6fffb; }
.navrow { display: flex; align-items: center; gap: .5rem; font-size: 1.2rem; color: var(--ink-mid); margin-top: 1rem; flex-wrap: wrap; }
.navrow .dot + span { margin-right: .9rem; }

.homebar { display: flex; align-items: center; gap: 1.5rem; min-height: 4.75rem; }
.alloff {
  display: flex; align-items: center; gap: 1rem; min-height: 4.75rem; padding: 0 2.1rem; border-radius: 1.4rem;
  background: rgba(70, 30, 30, .7); border: 1.5px solid rgba(255, 140, 120, .55); color: #ffd9d2; font-size: 1.6rem; font-weight: 600; white-space: nowrap;
}
.alloff .ic { width: 2rem; height: 2rem; }
.alloff.done { border-color: var(--teal); color: #e6fffb; background: rgba(20, 70, 70, .75); }
.status { display: flex; gap: 1.75rem; font-size: 1.25rem; color: var(--ink-lo); flex-wrap: wrap; }
.status b { color: var(--ink); font-weight: 600; }
.hidehint { margin-left: auto; display: flex; align-items: center; gap: .75rem; font-size: 1.3rem; color: rgba(207, 232, 239, .6); margin-right: 9rem; }
.ring { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: .16rem solid rgba(95, 224, 212, .25); border-top-color: var(--teal); border-right-color: var(--teal); }

/* ---------- sub-pages ---------- */
.page { min-height: 100%; display: flex; flex-direction: column; padding: 2.5rem 3.5rem 3.5rem; gap: 2rem; }
.page-top h1 { font-size: 3rem; font-weight: 700; color: var(--ink-hi); display: flex; align-items: center; gap: 1rem; white-space: nowrap; }
.page-top h1 .ic { width: 3rem; height: 3rem; color: var(--teal); }
.back {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 4.5rem; min-width: 4.5rem; padding: 0 1.6rem 0 1.1rem;
  border-radius: 1.25rem; background: rgba(9, 36, 50, .9); border: 1px solid rgba(95, 224, 212, .35); font-size: 1.6rem; font-weight: 600;
}
.back .ic { width: 2.2rem; height: 2.2rem; color: var(--teal); }
.page-top .tb-clock { font-size: 2.6rem; }
.page-body { flex: 1; display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; align-content: stretch; }
body[data-route="media"] .page-body { grid-template-rows: auto 1fr; }
.card.fill { display: flex; flex-direction: column; }
.card.fill .note { margin-top: auto; padding-top: 1.4rem; }
.card { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 2.2rem; box-shadow: 0 1rem 2.2rem rgba(0, 0, 0, .3); min-width: 0; }
.card h2 { font-size: 1.25rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-lo); font-weight: 600; margin-bottom: 1.4rem; }
.card .note { font-size: 1.15rem; color: var(--ink-lo); margin-top: 1.4rem; line-height: 1.45; }
.span2 { grid-column: 1 / -1; }

/* big choice buttons (scenes, nav modes, segments) */
.choices { display: grid; gap: 1rem; }
.choices.c3 { grid-template-columns: repeat(3, 1fr); }
.choices.c4 { grid-template-columns: repeat(4, 1fr); }
.choice {
  min-height: 5.5rem; padding: 1rem 1.25rem; border-radius: 1.25rem; background: rgba(207, 232, 239, .06); border: 1.5px solid rgba(207, 232, 239, .16);
  display: flex; flex-direction: column; justify-content: center; gap: .3rem; font-size: 1.6rem; font-weight: 600; color: var(--ink-hi);
}
.choice small { font-size: 1.05rem; font-weight: 400; color: var(--ink-lo); line-height: 1.25; }
.choice.on { background: rgba(95, 224, 212, .18); border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal) inset; }
.choice.on small { color: var(--ink-mid); }
.choice .row { display: flex; align-items: center; gap: .8rem; }
.swatch { width: 1.4rem; height: 1.4rem; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 .7rem currentColor; }
.scene-btn { min-height: 10rem; }
.scene-btn .row { font-size: 1.9rem; }
.scene-btn .swatch { width: 1.8rem; height: 1.8rem; }
.choice.off-btn.on { background: rgba(120, 140, 150, .2); border-color: #8aa3ad; box-shadow: none; }

/* zone sliders */
.zones { display: flex; flex-direction: column; gap: 2.6rem; margin-top: .6rem; }
.zone { display: grid; grid-template-columns: 8rem 1fr 5.5rem; align-items: center; gap: 1.4rem; }
.zone-name { font-size: 1.6rem; font-weight: 600; color: var(--ink-hi); }
.zone-val { font-size: 1.6rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-mid); }
.slider { --v: 50; --c: var(--teal); position: relative; height: 4.5rem; touch-action: none; cursor: pointer; }
.slider .track { position: absolute; left: 0; right: 0; top: 50%; height: 1.1rem; margin-top: -.55rem; border-radius: .6rem; background: rgba(207, 232, 239, .12); overflow: hidden; }
.slider .fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 1%); background: var(--c); opacity: .85; }
.slider .thumb {
  position: absolute; top: 50%; left: calc(var(--v) * 1%); width: 3.4rem; height: 3.4rem; margin: -1.7rem 0 0 -1.7rem;
  border-radius: 50%; background: var(--ink-hi); border: .25rem solid var(--c); box-shadow: 0 .3rem 1rem rgba(0, 0, 0, .45);
}
.slider.dragging .thumb { transform: scale(1.08); }

/* toggles */
.toggles { display: flex; flex-direction: column; gap: 1.4rem; }
.toggle { display: flex; align-items: center; justify-content: space-between; min-height: 7rem; padding: 0 1.6rem; border-radius: 1.25rem; background: rgba(207, 232, 239, .06); border: 1.5px solid rgba(207, 232, 239, .16); font-size: 1.7rem; font-weight: 600; width: 100%; }
.toggle .ic { width: 2.2rem; height: 2.2rem; color: var(--teal); margin-right: 1rem; }
.toggle .lbl { display: flex; align-items: center; }
.switch { width: 5.2rem; height: 2.9rem; border-radius: 999px; background: rgba(207, 232, 239, .16); position: relative; transition: background .2s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: .3rem; left: .3rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: #9db8c1; transition: transform .2s, background .2s; }
.toggle.on { border-color: var(--teal); background: rgba(95, 224, 212, .12); }
.toggle.on .switch { background: var(--teal-2); }
.toggle.on .switch::after { transform: translateX(2.3rem); background: #fff; }

/* boat diagram */
.navwrap { display: grid; grid-template-columns: 1fr 17rem; gap: 2rem; align-items: center; }
.boat { width: 100%; max-width: 17rem; justify-self: center; }
.boat .hull { fill: rgba(207, 232, 239, .08); stroke: rgba(207, 232, 239, .45); stroke-width: 2; }
.boat .lamp { fill: rgba(207, 232, 239, .15); }
.boat .lamp.on.red { fill: var(--red); filter: drop-shadow(0 0 6px var(--red)); }
.boat .lamp.on.green { fill: var(--green); filter: drop-shadow(0 0 6px var(--green)); }
.boat .lamp.on.white { fill: #fff; filter: drop-shadow(0 0 6px #fff); }
.boat text { fill: var(--ink-lo); font-size: 13px; font-family: inherit; }
.navwrap .choices { grid-template-columns: 1fr; gap: 1.4rem; }
.navwrap .choice { min-height: 8rem; font-size: 1.9rem; }
.navwrap .choice small { font-size: 1.2rem; }

/* climate */
.climate-now { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .6rem; }
.temp-big { font-size: 12rem; font-weight: 200; line-height: 1; color: var(--ink-hi); font-variant-numeric: tabular-nums; }
.temp-big sup { font-size: 3.5rem; vertical-align: top; position: relative; top: 1rem; }
.climate-sub { font-size: 1.5rem; color: var(--ink-mid); }
.target { display: flex; align-items: center; justify-content: center; gap: 2rem; margin-top: 1.6rem; }
.stepper { width: 6rem; height: 6rem; border-radius: 50%; background: rgba(95, 224, 212, .14); border: 2px solid rgba(95, 224, 212, .55); font-size: 3.4rem; font-weight: 300; color: var(--ink-hi); display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1; }
.target-val { min-width: 11rem; }
.target-val b { display: block; font-size: 4.5rem; font-weight: 600; color: var(--ink-hi); font-variant-numeric: tabular-nums; }
.target-val span { font-size: 1.15rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-lo); }
.is-off .target, .is-off .stepper { opacity: .45; }
.stack { display: flex; flex-direction: column; gap: 2rem; }
.stack .card { flex: 1; }
.stack .choice { min-height: 8rem; font-size: 1.9rem; }

/* media */
.tabs { display: inline-flex; gap: .6rem; padding: .4rem; border-radius: 1.4rem; background: rgba(4, 19, 29, .6); border: 1px solid var(--line); }
.tab { min-height: 4rem; min-width: 10rem; padding: 0 1.6rem; border-radius: 1.1rem; font-size: 1.5rem; font-weight: 600; text-align: center; color: var(--ink-mid); }
.tab.on { background: rgba(95, 224, 212, .2); color: var(--ink-hi); box-shadow: 0 0 0 1.5px var(--teal) inset; }
.media-head { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.media-head .note { margin: 0 0 0 auto; font-size: 1.15rem; color: var(--ink-lo); }
.mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 1.6rem; }
.mcard { border-radius: 1.25rem; overflow: hidden; background: rgba(207, 232, 239, .05); border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 4rem; }
.cover { height: 9.5rem; display: flex; align-items: center; justify-content: center; color: rgba(230, 246, 250, .55); }
.music .cover { height: 9.5rem; }
.cover .ic { width: 3rem; height: 3rem; }
.mcard .meta { padding: .8rem 1.1rem 1rem; }
.mcard .meta b { display: block; font-size: 1.35rem; color: var(--ink-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard .meta span { font-size: 1.05rem; color: var(--ink-lo); }
.mcard.playing { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal) inset; }
.nowbar { display: flex; align-items: center; gap: 1.4rem; }
.nowbar .np { flex: 1; min-width: 0; }
.nowbar .np b { font-size: 1.7rem; color: var(--ink-hi); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nowbar .np span { font-size: 1.2rem; color: var(--ink-lo); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctrl { width: 4.5rem; height: 4.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(207, 232, 239, .08); border: 1px solid var(--line); flex-shrink: 0; }
.ctrl.main { width: 5.5rem; height: 5.5rem; background: rgba(95, 224, 212, .2); border-color: var(--teal); }
.ctrl .ic { width: 2rem; height: 2rem; color: var(--ink-hi); }

/* map */
.map-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1.2rem; min-height: 40rem; }
.map-ph svg.lake { width: 32rem; max-width: 100%; height: auto; }
.map-ph h2 { margin: 0; font-size: 2.6rem; letter-spacing: 0; text-transform: none; color: var(--ink-hi); font-weight: 700; }
.map-ph p { font-size: 1.5rem; color: var(--ink-mid); max-width: 44rem; line-height: 1.4; }
.badge { display: inline-block; font-size: 1.1rem; letter-spacing: .14em; text-transform: uppercase; padding: .45rem 1rem; border-radius: 999px; background: rgba(232, 176, 74, .15); border: 1px solid rgba(232, 176, 74, .5); color: #f3d59a; }

/* ---------- phones / narrow screens ---------- */
@media (max-width: 999px) {
  html { font-size: 16px; }
  #idle { display: none; }
  .home, .page { height: auto; min-height: 100%; padding: max(1rem, env(safe-area-inset-top)) 1rem 3.5rem; gap: 1rem; }
  .topbar { flex-wrap: wrap; gap: .5rem 1rem; min-height: 0; }
  .tb-clock { font-size: 2.4rem; }
  .tb-date { font-size: 1.1rem; }
  .tb-pills { margin-left: 0; width: 100%; flex-wrap: wrap; gap: .5rem; }
  .pill { font-size: 1rem; padding: .45rem .9rem; gap: .5rem; }
  .pill .ic { width: 1.25rem; height: 1.25rem; }
  .grid { display: flex; flex-direction: column; gap: .9rem; }
  .tile { padding: 1.1rem 1.25rem; border-radius: 1.25rem; display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; align-items: center; }
  .tile > * { grid-column: 2; }
  .tic { grid-column: 1; grid-row: 1 / span 2; width: 2.6rem; height: 2.6rem; margin: 0; align-self: start; }
  .ttl { font-size: 1.5rem; margin: 0; }
  .lab { font-size: .8rem; margin-top: .35rem; }
  .hint { font-size: 1.15rem; margin-top: .15rem; }
  .chips, .navrow, .prog, .sub { margin-top: .5rem; }
  .chips span { font-size: .9rem; padding: .3rem .7rem; }
  .navrow { font-size: .95rem; }
  .homebar { flex-direction: column; align-items: stretch; gap: .9rem; }
  .alloff { justify-content: center; font-size: 1.25rem; min-height: 4rem; }
  .status { font-size: 1rem; gap: .5rem 1.25rem; justify-content: center; }
  .hidehint { display: none; }

  .page-top { flex-wrap: nowrap; }
  .page-top h1 { font-size: 1.6rem; }
  .page-top h1 .ic { width: 1.8rem; height: 1.8rem; }
  .page-top .tb-clock { font-size: 1.2rem; margin-left: auto; }
  .back { min-height: 4rem; font-size: 1.1rem; padding: 0 1rem 0 .7rem; }
  .back .ic { width: 1.6rem; height: 1.6rem; }
  .page-body { grid-template-columns: 1fr; gap: 1rem; align-content: start; }
  body[data-route="media"] .page-body { grid-template-rows: none; }
  .scene-btn .row, .navwrap .choice, .stack .choice { font-size: 1.15rem; }
  .scene-btn .swatch { width: 1.2rem; height: 1.2rem; }
  .navwrap .choice { min-height: 4.5rem; }
  .navwrap .choice small { font-size: .85rem; }
  .stack .choice { min-height: 4rem; }
  .zones { gap: 1rem; }
  .toggles { gap: .8rem; }
  .cover { height: 6rem; }
  .music .cover { height: 5rem; }
  .card { padding: 1.25rem; border-radius: 1.25rem; }
  .card h2 { font-size: .85rem; margin-bottom: 1rem; }
  .card .note { font-size: .95rem; }
  .choices.c3 { grid-template-columns: repeat(2, 1fr); }
  .choices.c4 { grid-template-columns: repeat(2, 1fr); }
  .choice { font-size: 1.15rem; min-height: 4rem; }
  .choice small { font-size: .85rem; }
  .scene-btn { min-height: 5rem; }
  .zone { grid-template-columns: 4.5rem 1fr 3.2rem; gap: .8rem; }
  .zone-name, .zone-val { font-size: 1.05rem; }
  .slider { height: 4rem; }
  .slider .thumb { width: 2.6rem; height: 2.6rem; margin: -1.3rem 0 0 -1.3rem; }
  .toggle { font-size: 1.2rem; min-height: 4.5rem; padding: 0 1rem; }
  .switch { width: 4.2rem; height: 2.4rem; }
  .switch::after { width: 1.8rem; height: 1.8rem; }
  .toggle.on .switch::after { transform: translateX(1.8rem); }
  .navwrap { grid-template-columns: 1fr 7.5rem; gap: 1rem; }
  .temp-big { font-size: 5.5rem; }
  .climate-now { min-height: 0; }
  .temp-big sup { font-size: 2rem; top: .5rem; }
  .climate-sub { font-size: 1.1rem; }
  .stepper { width: 4.5rem; height: 4.5rem; font-size: 2.4rem; }
  .target { gap: 1rem; }
  .target-val { min-width: 7rem; }
  .target-val b { font-size: 3rem; }
  .tab { min-width: 0; flex: 1; font-size: 1.1rem; }
  .tabs { display: flex; width: 100%; }
  .media-head .note { margin: 0; }
  .mgrid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .mcard .meta b { font-size: 1rem; }
  .mcard .meta span { font-size: .85rem; }
  .nowbar { flex-wrap: wrap; gap: .8rem; justify-content: center; }
  .nowbar .np { order: -1; flex-basis: 100%; }
  .nowbar .np b { font-size: 1.15rem; }
  .nowbar .np span { font-size: .95rem; }
  .page-top .tb-clock, .page-top h1 .ic { display: none; }
  .page-top h1 { overflow: hidden; text-overflow: ellipsis; }
  .ctrl { width: 4rem; height: 4rem; }
  .ctrl.main { width: 4.5rem; height: 4.5rem; }
  .map-ph { min-height: 28rem; }
  .map-ph h2 { font-size: 1.6rem; }
  .map-ph p { font-size: 1.05rem; }
  #example-mark { font-size: .8rem; bottom: .6rem; right: .8rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(4, 19, 29, .85); color: rgba(207, 232, 239, .7); }
}

/* wide-screen fill tweaks (kiosk) */
@media (min-width: 1000px) {
  .card.fill > .choices.c3 { flex: 1; grid-auto-rows: minmax(10rem, 14rem); align-content: start; }
  .card.fill > .zones { flex: 1; justify-content: space-evenly; }
  .stepper { width: 7rem; height: 7rem; font-size: 4rem; }
  .target-val b { font-size: 5.5rem; }
}
