/* ZenZone kiosk — one stylesheet for every screen.
   Dark by design: this lives on a stand in a kitchen, and the greens read as
   light rather than ink. Same palette, used as luminance instead of pigment. */
:root{
  --g1:#132a13; --g2:#2d4a2d; --g3:#69bf64; --g4:#a8dba4;
  --cr:#f1ece2; --cr2:#cfc9bd;
  --bg:#070b07; --bg2:#0d140d;
  --glass:rgba(168,219,164,.055);
  --edge:rgba(168,219,164,.16);
  --edge2:rgba(168,219,164,.34);
  --tx:#eceadf; --tm:#93a390;
  --glow:0 0 22px rgba(105,191,100,.42);
  --urgent:#ff8a5c; --urgent2:#ffb59a;
  color-scheme:dark;
}
*{box-sizing:border-box}
[hidden]{display:none!important}

html{background:var(--bg)}
html,body{margin:0;min-height:100%;color:var(--tx);
  font-family:'DM Sans',-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}

/* Ambient light. Two slow-moving pools of green behind everything, so the
   screen has depth and feels alive without anything competing for attention. */
body::before{content:"";position:fixed;inset:-25%;z-index:-2;pointer-events:none;
  background:
    radial-gradient(44% 38% at 18% 14%, rgba(105,191,100,.17), transparent 68%),
    radial-gradient(40% 36% at 86% 78%, rgba(45,74,45,.52), transparent 70%),
    radial-gradient(60% 50% at 50% 110%, rgba(105,191,100,.09), transparent 70%);
  animation:aurora 44s ease-in-out infinite alternate}
@keyframes aurora{
  0%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(2.5%,-2%,0) scale(1.07)}
  100%{transform:translate3d(-2%,2.5%,0) scale(1.03)}
}
/* A fine grain over the top. Flat dark surfaces band on a tablet screen;
   this breaks it up and makes the whole thing feel like a material. */
body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.16;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E")}

body{padding:max(22px,env(safe-area-inset-top)) 20px max(26px,env(safe-area-inset-bottom));
  min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
.wrap{max-width:1160px;margin:0 auto;position:relative;width:100%;
  flex:1 1 auto;display:flex;flex-direction:column}
/* Footer sits at the bottom of the screen rather than under the content.
   margin-top:auto absorbs the free space — but it also replaces the footer's
   own top margin, so when the content nearly fills the screen there is none
   left and the divider lands on the last row of cards. The guaranteed gap
   therefore belongs to the element above it. */
.wrap > footer{margin-top:auto}
.wrap > *:nth-last-child(2){margin-bottom:38px}

/* ── header ─────────────────────────────────────────────── */
header{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;
  flex-wrap:wrap;margin-bottom:26px}
.brand{font-family:'Cormorant Garamond',Georgia,serif;font-size:clamp(32px,5.2vw,50px);
  line-height:1;margin:0;font-weight:600;letter-spacing:-.015em;color:var(--cr)}
.brand span{background:linear-gradient(100deg,var(--g3),var(--g4));
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 0 16px rgba(105,191,100,.35))}
.greet{color:var(--tm);font-size:clamp(14px,1.7vw,17px);margin:9px 0 0;letter-spacing:.01em}
.clock{font-variant-numeric:tabular-nums;color:var(--tm);
  font-size:clamp(14px,1.7vw,17px);text-align:right;line-height:1.45}

/* ── hero ───────────────────────────────────────────────── */
.hero{position:relative;overflow:hidden;display:flex;align-items:center;
  gap:clamp(14px,2.4vw,28px);width:100%;text-align:left;border:1px solid var(--edge2);
  border-radius:26px;padding:clamp(24px,3.8vw,36px);cursor:pointer;color:var(--cr);
  font-family:inherit;margin-bottom:28px;
  background:linear-gradient(135deg,rgba(105,191,100,.14),rgba(19,42,19,.5) 55%,rgba(13,20,13,.7));
  box-shadow:0 18px 50px rgba(0,0,0,.5),inset 0 1px 0 rgba(168,219,164,.14);
  transition:transform .16s ease,box-shadow .16s ease}
.hero:active{transform:scale(.99)}
/* A light sweeping across the hero, slowly. */
.hero::after{content:"";position:absolute;top:-60%;left:-35%;width:45%;height:220%;
  background:linear-gradient(100deg,transparent,rgba(168,219,164,.12),transparent);
  transform:rotate(14deg);animation:sheen 9s ease-in-out infinite}
@keyframes sheen{0%,62%{left:-40%}100%{left:125%}}
.hero .leaf{position:relative;z-index:1;flex:none;
  width:clamp(56px,7.6vw,76px);height:clamp(56px,7.6vw,76px);border-radius:50%;
  display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,rgba(105,191,100,.3),rgba(105,191,100,.07));
  border:1px solid var(--edge2);box-shadow:var(--glow)}
.hero .leaf svg{width:54%;height:54%;stroke:var(--g4);fill:none;stroke-width:1.6;
  stroke-linecap:round;filter:drop-shadow(0 0 7px rgba(105,191,100,.75))}
.hero .txt{position:relative;z-index:1}
.hero h2{font-family:'Cormorant Garamond',Georgia,serif;font-weight:600;
  font-size:clamp(27px,3.9vw,40px);margin:0 0 6px;letter-spacing:-.01em}
.hero p{margin:0;color:var(--cr2);font-size:clamp(13px,1.8vw,17px);line-height:1.45}
.hero .go{position:relative;z-index:1;margin-left:auto;flex:none;font-size:30px;
  color:var(--g3);opacity:.75}

/* Drifting motes */
.motes{position:absolute;inset:0;z-index:0;pointer-events:none}
.motes i{position:absolute;display:block;border-radius:50%;background:var(--g4);
  box-shadow:0 0 10px rgba(168,219,164,.9);opacity:.5;animation:drift linear infinite}
@keyframes drift{
  0%{transform:translate3d(0,120%,0) scale(.5);opacity:0}
  14%{opacity:.6}
  86%{opacity:.4}
  100%{transform:translate3d(30px,-25%,0) scale(1.15);opacity:0}
}

/* ── sections ───────────────────────────────────────────── */
h3.sec{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--g3);
  margin:30px 0 14px;font-weight:700;display:flex;align-items:center;gap:12px;opacity:.85}
h3.sec::after{content:"";flex:1;height:1px;
  background:linear-gradient(90deg,var(--edge2),transparent)}

/* ── cards ──────────────────────────────────────────────── */
.main{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));
  align-content:start}
/* On a tall screen the four choices grow to use it; on a short one they stay
   compact. Keeps the kiosk from looking half-empty on a desk monitor. */
@media (min-height:720px){ a.big{min-height:min(26vh,250px)} }
.grid{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(248px,1fr))}

a.tile,div.tile,a.big{position:relative;overflow:hidden;display:flex;flex-direction:column;
  justify-content:flex-end;text-decoration:none;color:var(--tx);
  background:var(--glass);border:1px solid var(--edge);border-radius:20px;
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  box-shadow:0 10px 30px rgba(0,0,0,.34),inset 0 1px 0 rgba(168,219,164,.09);
  transition:transform .16s ease,border-color .22s ease,box-shadow .22s ease}
a.tile,div.tile{min-height:146px;padding:18px 19px 20px;gap:5px}
a.big{min-height:182px;padding:22px;gap:5px}
a.tile:active,a.big:active{transform:scale(.978)}
a.tile:hover,a.big:hover{border-color:var(--edge2);
  box-shadow:0 14px 40px rgba(0,0,0,.42),0 0 26px rgba(105,191,100,.14),inset 0 1px 0 rgba(168,219,164,.16)}

/* Icons glow rather than sit there in ink. This was the "black and weird" part. */
.ico{position:relative;z-index:3;width:27px;height:27px;margin-bottom:8px;
  stroke:var(--g3);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;
  filter:drop-shadow(0 0 8px rgba(105,191,100,.6))}
a.big .ico{width:32px;height:32px;margin-bottom:11px}

.tile .t,a.big .t{position:relative;z-index:3;font-weight:700;
  font-size:clamp(15px,1.9vw,17px);line-height:1.25;color:var(--cr)}
a.big .t{font-family:'Cormorant Garamond',Georgia,serif;font-weight:600;
  font-size:clamp(22px,2.9vw,29px);line-height:1.08;letter-spacing:-.01em}
.tile .d,a.big .d{position:relative;z-index:3;font-size:12.5px;color:var(--tm);
  line-height:1.4;margin-top:3px}
a.big .d{font-size:13.5px}

/* The animated motif now sits in the TOP-RIGHT corner and is clipped by the
   card, with a gradient scrim beneath the text. Previously it sat behind the
   words and made them hard to read — which was the real complaint. */
.art{position:absolute;top:-14px;right:-14px;width:108px;height:108px;z-index:1;
  pointer-events:none;opacity:.5}
a.big .art{width:132px;height:132px}
.art svg{width:100%;height:100%;stroke:var(--g3);fill:none;stroke-width:1.5;
  stroke-linecap:round;filter:drop-shadow(0 0 6px rgba(105,191,100,.5))}
/* Keeps the lower half of every card clean for the text. */
a.tile::after,div.tile::after,a.big::after{content:"";position:absolute;inset:0;z-index:2;
  pointer-events:none;background:linear-gradient(185deg,transparent 34%,rgba(7,11,7,.66) 78%)}
/* No motif, nothing to shield the text from. */
.tile.soon::after{background:none}

.tile.safety{border-color:rgba(255,138,92,.3);
  background:linear-gradient(170deg,rgba(255,138,92,.08),rgba(168,219,164,.03))}
.tile.safety .ico{stroke:var(--urgent);filter:drop-shadow(0 0 8px rgba(255,138,92,.55))}
.tile.safety .art svg{stroke:var(--urgent);filter:drop-shadow(0 0 6px rgba(255,138,92,.45))}

a.big.urgent{border-color:rgba(255,138,92,.4);
  background:linear-gradient(150deg,rgba(255,138,92,.13),rgba(60,24,14,.4) 60%,rgba(13,20,13,.6))}
a.big.urgent:hover{border-color:rgba(255,138,92,.65);
  box-shadow:0 14px 40px rgba(0,0,0,.42),0 0 28px rgba(255,138,92,.2)}
a.big.urgent .ico{stroke:var(--urgent);filter:drop-shadow(0 0 10px rgba(255,138,92,.7))}
a.big.urgent .t{color:var(--urgent2)}
a.big.urgent .art svg{stroke:var(--urgent);filter:drop-shadow(0 0 6px rgba(255,138,92,.45))}

.tile.soon{opacity:.72;box-shadow:none;border-style:dashed;cursor:default}
.tile.soon .d{font-style:italic}

/* ── motifs (unchanged behaviour, now luminous and out of the way) ── */
.m-door .pan{transform-origin:22px 50px;animation:swing 7s ease-in-out infinite}
@keyframes swing{0%,100%{transform:skewY(0)}50%{transform:skewY(-7deg)}}
.m-plan rect{opacity:.3;animation:lightup 6s ease-in-out infinite}
.m-plan rect:nth-child(2){animation-delay:1.2s}
.m-plan rect:nth-child(3){animation-delay:2.4s}
.m-plan rect:nth-child(4){animation-delay:3.6s}
@keyframes lightup{0%,70%,100%{opacity:.25}20%,45%{opacity:1}}
.m-book .ln{animation:scrollup 9s linear infinite}
.m-book .ln:nth-child(2){animation-delay:-3s}
.m-book .ln:nth-child(3){animation-delay:-6s}
@keyframes scrollup{0%{transform:translateY(16px);opacity:0}15%,75%{opacity:1}100%{transform:translateY(-16px);opacity:0}}
.m-clock .hand{transform-origin:48px 48px;animation:sweep 12s linear infinite}
@keyframes sweep{to{transform:rotate(360deg)}}
.m-steam path{animation:rise 4.5s ease-in-out infinite}
.m-steam path:nth-child(2){animation-delay:.9s}
.m-steam path:nth-child(3){animation-delay:1.8s}
@keyframes rise{0%{transform:translateY(6px);opacity:0}30%{opacity:.95}100%{transform:translateY(-12px);opacity:0}}
.m-ember circle{animation:ember 3.8s ease-out infinite}
.m-ember circle:nth-child(2){animation-delay:1.1s}
.m-ember circle:nth-child(3){animation-delay:2.2s}
@keyframes ember{0%{transform:translateY(0) scale(1);opacity:0}20%{opacity:1}100%{transform:translateY(-26px) scale(.4);opacity:0}}
.m-eq rect{transform-origin:center bottom;animation:bounce 1.4s ease-in-out infinite}
.m-eq rect:nth-child(2){animation-delay:.18s}
.m-eq rect:nth-child(3){animation-delay:.36s}
.m-eq rect:nth-child(4){animation-delay:.54s}
@keyframes bounce{0%,100%{transform:scaleY(.35)}50%{transform:scaleY(1)}}
.m-sun .rays{transform-origin:48px 48px;animation:sweep 26s linear infinite}
.m-pin .pin{animation:drop 5s ease-in-out infinite}
.m-pin .rip{transform-origin:48px 72px;animation:ripple 5s ease-out infinite}
@keyframes drop{0%,100%{transform:translateY(-5px)}50%{transform:translateY(0)}}
@keyframes ripple{0%,40%{transform:scale(.3);opacity:0}60%{opacity:.85}100%{transform:scale(1.5);opacity:0}}
.m-bub circle{animation:float 6s ease-in-out infinite}
.m-bub circle:nth-child(2){animation-delay:1.6s}
.m-bub circle:nth-child(3){animation-delay:3.2s}
@keyframes float{0%{transform:translateY(10px) scale(.7);opacity:0}25%{opacity:1}100%{transform:translateY(-24px) scale(1.05);opacity:0}}
.m-q .mark{transform-origin:48px 52px;animation:tilt 5s ease-in-out infinite}
@keyframes tilt{0%,100%{transform:rotate(-7deg)}50%{transform:rotate(7deg)}}
.m-flame .fl{transform-origin:48px 70px;animation:flicker 3.4s ease-in-out infinite}
@keyframes flicker{0%,100%{transform:scale(1) skewX(0)}35%{transform:scale(1.06) skewX(3deg)}70%{transform:scale(.96) skewX(-3deg)}}
.m-pulse .trace{stroke-dasharray:60 160;animation:trace 4s linear infinite}
@keyframes trace{to{stroke-dashoffset:-220}}
.m-rain line{animation:fall 1.9s linear infinite}
.m-rain line:nth-child(2){animation-delay:.5s}
.m-rain line:nth-child(3){animation-delay:1s}
.m-rain line:nth-child(4){animation-delay:1.4s}
@keyframes fall{0%{transform:translateY(-14px);opacity:0}25%{opacity:1}100%{transform:translateY(22px);opacity:0}}

/* Ice storm / boil-water: a crystal turning slowly, and one drip. Slow on
   purpose — this sits on a screen that runs all day, and the brief was to
   keep the ambient motion rather than cut it. */
.m-ice g.star{transform-origin:48px 46px;animation:turn 26s linear infinite}
.m-ice .drip{animation:drip 3.4s ease-in infinite}
@keyframes turn{to{transform:rotate(360deg)}}
@keyframes drip{0%,55%{transform:translateY(0);opacity:0}70%{opacity:1}100%{transform:translateY(16px);opacity:0}}
@media (prefers-reduced-motion:reduce){
  .m-ice g.star,.m-ice .drip{animation:none}
}

/* ── sub-pages ──────────────────────────────────────────── */
.back{display:inline-flex;align-items:center;gap:8px;color:var(--g3);text-decoration:none;
  font-size:14px;font-weight:600;margin-bottom:6px;letter-spacing:.02em;opacity:.9}
.back svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2.2}
.pagetitle{font-family:'Cormorant Garamond',Georgia,serif;font-size:clamp(30px,4.8vw,46px);
  margin:8px 0 4px;font-weight:600;color:var(--cr);letter-spacing:-.015em}
.lede{color:var(--tm);font-size:15.5px;margin:0 0 22px;max-width:46em;line-height:1.55}
.call{display:flex;align-items:center;gap:16px;border-radius:20px;padding:18px 20px;
  margin-bottom:18px;background:linear-gradient(140deg,rgba(255,138,92,.14),rgba(168,219,164,.03));
  border:1px solid rgba(255,138,92,.34);box-shadow:0 0 30px rgba(255,138,92,.12)}
.call .ico{stroke:var(--urgent);filter:drop-shadow(0 0 9px rgba(255,138,92,.65));margin:0}
.call .big-num{font-size:clamp(21px,3.1vw,28px);font-weight:700;letter-spacing:.015em;color:var(--urgent2)}
.call .lbl{font-size:13px;color:var(--tm);margin-top:2px}

footer{margin-top:36px;padding-top:20px;border-top:1px solid var(--edge);
  display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;
  color:var(--tm);font-size:13px}

/* An always-on display should not animate to an empty room, and motion
   makes some people unwell. Both stop everything. */
@media (prefers-reduced-motion:reduce){
  .art *,.motes i,.hero::after,body::before{animation:none!important}
}
body.rest .art *,body.rest .motes i,body.rest .hero::after,body.rest::before{animation-play-state:paused}

@media (max-width:520px){
  .grid{grid-template-columns:1fr 1fr}
  .tile .d{display:none}
  a.tile,div.tile{min-height:112px}
  .art{width:86px;height:86px}
}

/* ── brand ──────────────────────────────────────────────── */
.logo{flex:none;display:block;
  /* The mark is used as a MASK rather than as pixels, so it takes the colour
     of whatever page it is on. One asset, any accent — which is why the
     lotus turns amber on Emergency instead of staying stubbornly green.
     (The tile was stripped from the original JPEG to get this alpha.) */
  height:clamp(26px,3.1vw,36px);aspect-ratio:192/116;width:auto;
  background-color:var(--g3);
  -webkit-mask:url(/images/zenzone-mark.png) no-repeat center/contain;
  mask:url(/images/zenzone-mark.png) no-repeat center/contain;
  filter:drop-shadow(0 0 10px rgba(105,191,100,.45))}
/* Sits on the wordmark, not centred against the wordmark AND the greeting —
   which is what made it hang low. */
.brandrow{display:flex;align-items:center;gap:13px}
.brandrow .brand{line-height:.92}
.back .logo{height:17px;filter:drop-shadow(0 0 7px rgba(105,191,100,.4))}
/* Emergency is amber throughout — the mark follows. */
.wrap[data-accent="urgent"] .logo{background-color:var(--urgent);
  filter:drop-shadow(0 0 8px rgba(255,138,92,.5))}

/* ── sub-page heading ───────────────────────────────────── */
/* Each section carries one of the house illustrations, large and faint, so
   the pages are distinguishable at a glance without extra chrome. */
.phead{position:relative;overflow:hidden;border-radius:24px;padding:26px 28px 24px;
  margin-bottom:24px;border:1px solid var(--edge);
  background:linear-gradient(140deg,rgba(105,191,100,.1),rgba(13,20,13,.55) 62%);
  box-shadow:inset 0 1px 0 rgba(168,219,164,.1)}
.phead .mark{position:absolute;top:50%;right:-26px;transform:translateY(-50%);
  width:clamp(150px,21vw,230px);height:clamp(150px,21vw,230px);
  opacity:.17;pointer-events:none;
  -webkit-mask-image:linear-gradient(255deg,#000 25%,transparent 78%);
  mask-image:linear-gradient(255deg,#000 25%,transparent 78%)}
.phead > *{position:relative;z-index:1}
.phead .pagetitle{margin:10px 0 6px}
.phead .lede{margin:0;max-width:34em}
.phead.urgent{border-color:rgba(255,138,92,.34);
  background:linear-gradient(140deg,rgba(255,138,92,.13),rgba(30,14,10,.5) 62%)}
.phead.urgent .pagetitle{color:var(--urgent2)}
.phead.urgent .back{color:var(--urgent)}

/* A section accent line under each group heading, tinted per page. */
.wrap[data-accent="urgent"] h3.sec{color:var(--urgent)}
.wrap[data-accent="urgent"] h3.sec::after{
  background:linear-gradient(90deg,rgba(255,138,92,.45),transparent)}

/* The rotating example question in the hero. */
#eg{display:inline-block;transition:opacity .45s ease}
#eg.fade{opacity:0}
.hero p em{font-style:normal;color:var(--g4)}
@media (prefers-reduced-motion:reduce){#eg{transition:none}}

.copy{opacity:.55;letter-spacing:.01em}

/* ── take it with you ───────────────────────────────────── */
.takeaway{display:flex;align-items:center;gap:clamp(18px,3vw,32px);margin-top:30px;
  padding:clamp(18px,2.6vw,26px);border-radius:22px;border:1px solid var(--edge);
  background:linear-gradient(120deg,rgba(105,191,100,.09),rgba(13,20,13,.45) 70%);
  box-shadow:inset 0 1px 0 rgba(168,219,164,.08)}
.takeaway .qr{flex:none;width:clamp(96px,12.5vw,130px);height:clamp(96px,12.5vw,130px);
  padding:0;border-radius:12px;overflow:hidden;background:#52864e;
  box-shadow:0 8px 24px rgba(0,0,0,.5),0 0 0 1px rgba(168,219,164,.22)}
.takeaway .qr svg{width:100%;height:100%;display:block}
.takeaway h3{font-family:'Cormorant Garamond',Georgia,serif;font-weight:600;
  font-size:clamp(20px,2.6vw,27px);margin:0 0 6px;color:var(--cr);letter-spacing:-.01em}
.takeaway p{margin:0 0 9px;color:var(--tm);font-size:14px;line-height:1.5;max-width:40em}
.takeaway .site{display:inline-block;color:var(--g3);text-decoration:none;font-weight:700;
  font-size:14px;letter-spacing:.02em;border-bottom:1px solid rgba(105,191,100,.4);
  padding-bottom:1px}
@media (max-width:560px){
  .takeaway{flex-direction:column;align-items:flex-start;text-align:left}
}

/* The two-choice page sits between the opening screen and the guides, so its
   cards carry the example line and need room to breathe. */
a.big .d em{font-style:normal;color:var(--g4)}
a.big #eg{display:inline-block;transition:opacity .45s ease}
a.big #eg.fade{opacity:0}

/* "Your Stay / Ask Sage" is long for a card title — let it break at the
   slash rather than mid-word, and keep the slash quieter than the words. */
a.big .t{text-wrap:balance}

/* ── the in-kiosk reader (/kiosk/view/) ─────────────────── */
/* Guides used to open on the public website, which meant leaving the kiosk:
   no clock, no idle reset, and in a Home Screen install no back button. This
   screen shows the same documents as page images from our own origin, so the
   way back is always on screen. */

/* The header floats above the pages and never leaves. On page 110 of the
   house manual the way out is exactly where it was on page 1. */
.rhead{position:sticky;top:max(8px,env(safe-area-inset-top));z-index:6;
  border-radius:18px;margin-bottom:16px;
  background:rgba(13,20,13,.88);border:1px solid var(--edge);
  -webkit-backdrop-filter:blur(16px) saturate(1.25);backdrop-filter:blur(16px) saturate(1.25);
  box-shadow:0 12px 34px rgba(0,0,0,.5)}
.rbar{display:flex;align-items:center;gap:clamp(10px,2vw,18px);padding:12px 16px}
.rbar .back{margin:0;flex:none}
.rtitle{font-family:'Cormorant Garamond',Georgia,serif;font-weight:600;
  font-size:clamp(18px,2.6vw,26px);line-height:1.1;margin:0;color:var(--cr);
  flex:1 1 auto;min-width:0;text-align:right;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rcount{flex:none;font-variant-numeric:tabular-nums;color:var(--tm);
  font-size:13px;letter-spacing:.02em;min-width:5.5em;text-align:right}

.scrub{display:flex;align-items:center;gap:12px;padding:0 16px 13px}
.scrub input[type=range]{flex:1 1 auto;accent-color:var(--g3);height:26px;margin:0;
  background:transparent;cursor:pointer}
.scrublbl{flex:none;font-variant-numeric:tabular-nums;color:var(--g4);
  font-size:13px;font-weight:700;min-width:3ch;text-align:right}

.pages{display:flex;flex-direction:column;gap:14px}
.pg{border-radius:14px;overflow:hidden;border:1px solid var(--edge);
  background:var(--bg2);box-shadow:0 6px 20px rgba(0,0,0,.35)}
/* width/height are set on each <img> too; this keeps the rendered page fluid
   while the browser still reserves the right height before the bytes land. */
.pg img{display:block;width:100%;height:auto;aspect-ratio:935/1210;background:var(--bg2)}

/* The end of a document, and the one link in the kiosk that is meant to
   leave — so it opens separately and says what it is. */
.rfoot{display:flex;align-items:center;justify-content:space-between;gap:16px;
  flex-wrap:wrap;margin-top:18px;padding:16px 18px;border-radius:18px;
  background:var(--glass);border:1px solid var(--edge);color:var(--tm);font-size:14px}
.miss{margin:30px 0;padding:26px 24px;border-radius:20px;
  background:var(--glass);border:1px solid var(--edge)}
.miss h2{font-family:'Cormorant Garamond',Georgia,serif;font-weight:600;
  font-size:clamp(24px,3.6vw,32px);margin:0 0 8px;color:var(--cr)}
.miss p{margin:0 0 14px;color:var(--tm);font-size:15px;line-height:1.55;max-width:40em}
.rfoot .site,.miss .site{display:inline-block;color:var(--g3);text-decoration:none;
  font-weight:700;font-size:14px;border-bottom:1px solid var(--edge2);padding-bottom:2px}

@media (max-width:520px){
  .rtitle{display:none}
  .rbar{gap:10px;padding:10px 13px}
  .rcount{margin-left:auto}
}
