/* The wall panels - shared look.

   Drawn to match the Home Assistant dashboards they replace: Mushroom-style
   frosted tiles with a coloured icon disc, dark ink on the meadow photo, the
   same chips, clock and weather card. Everything is laid out at the screen's
   real size inside #stage and the stage is scaled to the window, so a laptop
   or a Home Assistant preview shows exactly what the wall shows.

   No backdrop-filter anywhere: blur behind 40 tiles made the kitchen Pi
   sluggish when it was tried on the old dashboard (8/19). */

@font-face { font-family: "Roboto"; font-weight: 300; src: url("fonts/roboto-300.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 400; src: url("fonts/roboto-400.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500; src: url("fonts/roboto-500.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; src: url("fonts/roboto-700.woff2") format("woff2"); }

:root {
  --ink: #1f2a37;
  --ink-2: #45556b;
  --chip-ink: #33485e;
  --green: #2ecc71;
  --red: #eb5757;
  --grey: #7f8fa6;
  --amber: #f2994a;
  --blue: #1a8fe3;
  --light-on: 255, 152, 0;       /* Mushroom's light colour, as r,g,b */
  --off: 111, 111, 111;
  --glass: rgba(255, 255, 255, .26);
  --glass-line: rgba(255, 255, 255, .22);
  --tile: rgba(255, 255, 255, .20);
  --radius: 16px;
  --tile-radius: 14px;
  --shadow: 0 6px 20px rgba(0, 0, 0, .10);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #9db4cd; }
body {
  font-family: "Roboto", "Noto Sans", sans-serif; color: var(--ink);
  -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; }

#stage {
  position: absolute; top: 0; left: 50%; transform-origin: top center;
  overflow: hidden;
  background: #9db4cd url("/meadow-wall.jpg") center / cover no-repeat;
}

svg.mdi { width: 24px; height: 24px; fill: currentColor; display: block; flex: none; }

.hidden { display: none !important; }

/* ---------- glass ---------- */
.glass {
  background: var(--glass); border: 1px solid var(--glass-line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ---------- the Mushroom tile ----------
   .tile.v = vertical (icon on top), .tile.h = horizontal (icon left). The
   icon sits in a disc tinted with its own colour (--c, as r,g,b). */
.tile {
  --c: var(--off); --icon: 40px;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-width: 0;
  background: var(--tile); border: 1px solid var(--glass-line); border-radius: var(--tile-radius);
  box-shadow: var(--shadow); color: var(--ink); text-align: left; cursor: pointer;
  transition: transform .08s ease, background .2s;
}
.tile:active { transform: scale(.93); background: rgba(255, 255, 255, .45); }
.tile.v { flex-direction: column; justify-content: center; text-align: center; gap: 8px; }
.tile .shape {
  width: var(--icon); height: var(--icon); border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--c), .2); color: rgb(var(--c));
}
.tile .shape svg.mdi { width: calc(var(--icon) * .55); height: calc(var(--icon) * .55); }
.tile .txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tile .pri { font-size: 14px; font-weight: 500; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .sec { font-size: 12px; color: var(--ink-2); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* working on it: the tile stays solid (fading it made it look like it
   vanished on the pale background) and its outline pulses in its colour */
.tile.busy { opacity: 1; animation: busy .9s ease-in-out infinite alternate; }
@keyframes busy { from { box-shadow: 0 0 0 2px rgba(var(--c), .35), var(--shadow); }
                  to { box-shadow: 0 0 0 5px rgba(var(--c), .75), var(--shadow); } }
.tile.flash { animation: flash .8s ease-out; }
@keyframes flash { 0% { background: rgba(255,255,255,.95); box-shadow: 0 0 0 4px rgba(var(--c), .7), var(--shadow); }
                   100% { background: var(--tile); box-shadow: 0 0 0 0 rgba(var(--c), 0), var(--shadow); } }
.tile.noact { cursor: default; }
.tile.noact:active { transform: none; background: var(--tile); }

/* the icon on a light that is on glows */
.tile.on .shape { box-shadow: 0 0 0 0 rgba(var(--c), .0); }

/* ---------- chips ---------- */
.chips { display: flex; align-items: center; gap: 7px; }
.chip {
  height: 40px; min-width: 40px; border-radius: 20px; border: 0; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(255, 255, 255, .14); color: var(--chip-ink); cursor: pointer;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: transform .15s, background .15s;
}
.chip.round { padding: 0; width: 40px; }
.chip svg.mdi { width: 20px; height: 20px; }
.chip.on { background: rgba(255, 255, 255, .70); transform: scale(1.14); }

/* ---------- clock ---------- */
.clock .time { font-weight: 400; line-height: 1; letter-spacing: -.5px; }
.clock .date { font-weight: 400; }

/* ---------- section titles (Mushroom title card subtitle) ---------- */
.subtitle { font-size: 16px; color: var(--ink-2); padding: 4px 12px 2px; font-weight: 400; }

/* ---------- alert banners ---------- */
.banner {
  display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: var(--radius);
  color: #fff; cursor: pointer;
}
.banner .shape { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; }
.banner svg.mdi { width: 30px; height: 30px; }
.banner .pri { font-size: 15px; font-weight: 500; }
.banner .sec { font-size: 12.5px; opacity: .9; margin-top: 2px; }
.banner.red { background: rgba(214, 69, 69, .94); }
.banner.amber { background: rgba(240, 153, 74, .94); }
.banner.green { background: rgba(74, 124, 89, .94); }

/* ---------- embedded hub pages ---------- */
iframe.hubframe { border: 0; width: 100%; display: block; background: transparent; }

/* ---------- cameras ---------- */
.cam { position: relative; border-radius: var(--tile-radius); overflow: hidden; background: rgba(0,0,0,.25); }
.cam img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam.stale::after {
  content: "camera offline"; position: absolute; inset: auto 8px 8px auto; font-size: 12px;
  background: rgba(0,0,0,.55); color: #fff; padding: 2px 8px; border-radius: 10px;
}

/* ---------- media player (mini-media-player look) ---------- */
.player { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 12px 16px; position: relative; overflow: hidden; }
.player .art {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .0; transition: opacity .4s;
}
.player.has-art .art { opacity: 1; }
.player.has-art { color: #fff; }
.player.has-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,30,.88) 35%, rgba(10,10,30,.55)); z-index: 1; }
.player > .row { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; min-width: 0; }
.player .ico { color: var(--blue); }
.player .name { font-size: 15px; min-width: 0; flex: 1; overflow: hidden; }
.player .name .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .name .s { font-size: 12.5px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .btn { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: inherit; }
.player .btn:active { background: rgba(127,127,127,.25); }
.player.off .ctl { opacity: .45; }

/* sliders - one look for volumes and levels */
.slider { position: relative; flex: 1; height: 40px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.slider .track { position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: rgba(127, 140, 160, .45); }
.slider .fill { position: absolute; left: 0; height: 4px; border-radius: 2px; background: #03a9f4; }
.slider .knob { position: absolute; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #03a9f4; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.slider.bar { height: 40px; }
.slider.bar .track { height: 36px; border-radius: 10px; background: rgba(var(--c), .25); }
.slider.bar .fill { height: 36px; border-radius: 10px; background: rgb(var(--c)); }
.slider.bar .knob { width: 4px; height: 20px; margin-left: -10px; border-radius: 2px; background: #fff; box-shadow: none; }

/* dropdown tiles (sound mode / input) */
.picker { position: relative; flex: 1; }
.picker select {
  width: 100%; height: 44px; border-radius: 10px; border: 0; padding: 14px 12px 0;
  background: rgba(255,255,255,.35); color: var(--ink); font: inherit; font-size: 14px; appearance: none;
}
.picker label { position: absolute; left: 12px; top: 4px; font-size: 11px; color: var(--ink-2); pointer-events: none; }
.picker svg.mdi { position: absolute; right: 10px; top: 12px; width: 20px; height: 20px; pointer-events: none; }

/* ---------- to-do lists (Home Assistant to-do card look) ---------- */
.todo { padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow: hidden; }
.todo h3 { margin: 0 0 14px 16px; font-size: 24px; font-weight: 400; }
.todo form { display: flex; align-items: center; background: rgba(255,255,255,.75); border-bottom: 1px solid rgba(0,0,0,.4); border-radius: 4px 4px 0 0; margin-bottom: 14px; }
.todo input { flex: 1; min-width: 0; border: 0; background: transparent; height: 54px; padding: 0 16px; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.todo form button { width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink-2); }
.todo ul { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.todo li { display: flex; align-items: center; gap: 10px; height: 28px; font-size: 17px; cursor: pointer; }
.todo li .box { width: 18px; height: 18px; border: 2px solid rgba(0,0,0,.45); border-radius: 2px; flex: none; }
.todo li.done { opacity: .45; text-decoration: line-through; }
.todo li.done .box { background: var(--ink-2); border-color: var(--ink-2); }
.todo .more { font-size: 13px; color: var(--ink-2); padding-left: 28px; }

/* ---------- weather (clock-weather-card look) ---------- */
.wx { padding: 14px 14px 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.wx .today { display: flex; align-items: center; }
.wx .today .left { width: 35%; display: flex; justify-content: center; }
.wx .today .left img { width: 100%; max-width: 110px; }
.wx .today .right { width: 65%; display: flex; flex-direction: column; align-items: center; }
.wx .today .cond { align-self: flex-end; font-size: 14px; }
.wx .today .temp { font-size: 56px; line-height: 64px; white-space: nowrap; }
.wx .rows { display: flex; flex-direction: column; gap: 4px; }
.wx .row { display: grid; grid-template-columns: 34px 24px 46px 1fr 46px; align-items: center; gap: 6px; font-size: 14px; }
.wx .row img { width: 24px; height: 24px; }
.wx .row .hi { text-align: right; }
.wx .bar { position: relative; height: 24px; border-radius: 12px; overflow: hidden; }
.wx .bar .bg { position: absolute; inset: 0; background: rgba(255,255,255,.6); opacity: .45; }
.wx .bar .range { position: absolute; top: 0; bottom: 0; border-radius: 12px; min-width: 24px; }
.wx .bar .now { position: absolute; top: 0; bottom: 0; width: 24px; border-radius: 50%; background: var(--ink); opacity: .75; box-shadow: inset 0 0 0 2px #fff; }

/* ---------- screensaver ---------- */
#saver { position: absolute; inset: 0; z-index: 50; background: #000; }
#saver img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 2s; }
#saver img.show { opacity: 1; }
#saver .bar { position: absolute; left: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.7); width: 0; }

/* ---------- link status: a quiet dot, never a blank screen ---------- */
#linkdot {
  position: absolute; z-index: 60; width: 12px; height: 12px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 2px rgba(255,255,255,.7); display: none;
}
#linkdot.bad { display: block; }

/* tap feedback for errors */
#toast {
  position: absolute; z-index: 70; left: 50%; transform: translateX(-50%); bottom: 24px;
  background: rgba(30, 30, 30, .88); color: #fff; padding: 10px 18px; border-radius: 22px;
  font-size: 15px; opacity: 0; transition: opacity .3s; pointer-events: none;
}
#toast.show { opacity: 1; }

/* fan card: name row, then the speed bar */
.tile.fanbox { flex-direction: column; align-items: stretch; gap: 8px; }
.tile.fanbox > .tile { height: 44px; flex: none; }
.tile.fanbox > .slider { flex: none; }

/* ---------- weather page ---------- */
.wx.tap { cursor: pointer; }
.wpage { display: flex; flex-direction: column; gap: 10px; }
.wp-now { display: flex; align-items: center; gap: 24px; padding: 14px 24px; }
.wp-now img { width: 150px; height: 150px; }
.wp-temp { font-size: 96px; line-height: 1; font-weight: 300; }
.wp-cond { font-size: 26px; color: var(--ink-2); margin-top: 6px; }
.wp-facts { margin-left: auto; display: grid; grid-template-columns: repeat(2, auto); gap: 8px 28px; font-size: 18px; }
.wp-facts div { display: flex; flex-direction: column; }
.wp-facts span { font-size: 13px; color: var(--ink-2); }
.radar { position: relative; overflow: hidden; padding: 0; flex: none; background: #dfe6ec; }
.rd-layer, .rd-frame { position: absolute; inset: 0; }
.rd-layer img, .rd-frame img { position: absolute; }
.rd-frame { opacity: 0; transition: opacity .25s; }
.rd-frame.on { opacity: .75; }
.rd-home { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
           background: #eb5757; box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(0,0,0,.4); }
.rd-stamp { position: absolute; left: 14px; top: 12px; background: rgba(255,255,255,.88); padding: 6px 14px; border-radius: 16px; font-size: 18px; font-weight: 500; }
.rd-zoom { position: absolute; right: 12px; top: 10px; display: flex; gap: 6px; }
.rd-zoom button { border: 0; border-radius: 16px; padding: 8px 16px; font-size: 16px; background: rgba(255,255,255,.75); cursor: pointer; }
.rd-zoom button.on { background: #1f2a37; color: #fff; }
.rd-credit { position: absolute; right: 8px; bottom: 6px; font-size: 11px; background: rgba(255,255,255,.7); padding: 2px 6px; border-radius: 6px; }
.wp-hours { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.wp-hour { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; font-size: 15px;
           background: var(--tile); border: 1px solid var(--glass-line); border-radius: 12px; }
.wp-hour img { width: 34px; height: 34px; }
.wp-hour .t { color: var(--ink-2); font-size: 13px; }
.wp-hour .r { font-size: 12px; color: #1a6fc4; min-height: 14px; }
.wp-days { display: flex; flex-direction: column; gap: 6px; padding: 10px 18px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); }
.wp-days .row { display: grid; grid-template-columns: 130px 34px 60px 50px 1fr 50px; align-items: center; gap: 10px; font-size: 18px; }
.wp-days .row img { width: 32px; height: 32px; }
.wp-days .rain { font-size: 14px; color: #1a6fc4; }
.wp-days .hi { text-align: right; }
.wp-days .bar { position: relative; height: 22px; border-radius: 11px; overflow: hidden; }
.wp-days .bar .bg { position: absolute; inset: 0; background: rgba(255,255,255,.6); opacity: .45; }
.wp-days .bar .range { position: absolute; top: 0; bottom: 0; border-radius: 11px; min-width: 22px; }

/* ================= animation & touch ================= */
#stage { touch-action: none; }
.view { will-change: auto; }

/* tiles: icon pops when its state changes; lights glow; open doors ring */
.tile { position: relative; overflow: hidden; }
.tile .shape { position: relative; transition: background .4s, color .4s, box-shadow .4s; }
.tile .shape.pop svg.mdi { animation: pop .45s ease-out; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
.tile.light.on .shape { box-shadow: 0 0 14px 3px rgba(var(--c), .45); }
.tile.alarm .shape::after {     /* pulses three times when it opens, then the red says it */
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgb(var(--c));
  animation: ring 2.2s ease-out 3; opacity: 0;
}
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
.tile.moving .shape svg.mdi { animation: lift 1s ease-in-out infinite alternate; }
@keyframes lift { from { transform: translateY(3px); } to { transform: translateY(-3px); } }

/* dimmable lights: brightness bar along the bottom; it follows a slide */
.tile.dimmable::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 0;
  background: rgb(var(--c)); border-radius: 0 3px 3px 0; opacity: 0; transition: width .25s, opacity .3s;
}
.tile.dimmable.on::after, .tile.dimmable.dragging::after { width: var(--b, 0%); opacity: .9; }
.tile.dragging { background: rgba(255, 255, 255, .42); transition: none; }
.tile.dragging::after { transition: none; height: 8px; }

/* cameras: a small "expand" mark, tap for full screen */
.cam { cursor: pointer; }
.cam-expand { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 8px;
              background: rgba(0, 0, 0, .35); color: #fff; display: flex; align-items: center; justify-content: center; }
.cam-expand svg.mdi { width: 18px; height: 18px; }

/* full-screen camera (tap a camera, or the driveway alert) */
#campop {
  position: absolute; inset: 0; z-index: 55; background: rgba(15, 20, 28, .86);
  display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 0 20px; color: #fff;
  animation: fadein .25s ease-out;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
#campop .pop-head { display: flex; align-items: center; gap: 12px; font-size: 30px; font-weight: 500; }
#campop .pop-head svg.mdi { width: 38px; height: 38px; color: #8fb0ff; }
#campop.alert .pop-head svg.mdi { color: #f2994a; }
#campop .pop-time { margin-left: auto; font-size: 24px; opacity: .8; font-weight: 400; }
#campop .pop-cam { border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; max-height: 75%; }
#campop .pop-cam img { width: 100%; height: 100%; object-fit: contain; display: block; }
#campop .pop-bar { height: 5px; width: 100%; border-radius: 3px; background: #8fb0ff; }
#campop.alert .pop-bar { background: #f2994a; }
#campop .pop-hint { text-align: center; font-size: 18px; opacity: .7; }

/* weather sky - behind the card's own content */
.wx, .wp-now { position: relative; overflow: hidden; }
.wx > :not(.sky), .wp-now > :not(.sky) { position: relative; z-index: 1; }
.sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit; }
.sky i { position: absolute; display: block; }
.sky .sun { right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
            background: radial-gradient(circle, rgba(255, 214, 102, .55), rgba(255, 214, 102, 0) 70%);
            animation: sunglow 6s ease-in-out infinite alternate; }
@keyframes sunglow { from { transform: scale(.9); opacity: .7; } to { transform: scale(1.1); opacity: 1; } }
.sky[data-kind^="night"] { background: linear-gradient(180deg, rgba(30, 40, 80, .28), rgba(30, 40, 80, 0)); }
.sky .star { width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 4px #fff;
             animation: twinkle 3s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .15; } to { opacity: .9; } }
.sky .cloud { left: -45%; width: 60%; height: 34%; border-radius: 50%;
              background: radial-gradient(ellipse at 50% 60%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 68%);
              animation: drift linear infinite; }
.sky[data-kind="rain"] .cloud, .sky[data-kind="storm"] .cloud { background: radial-gradient(ellipse at 50% 60%, rgba(120, 130, 150, .45), rgba(120, 130, 150, 0) 68%); }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(260%); } }
.sky .rain { left: 0; right: 0; top: -100%; height: 200%; opacity: .35;
             background: repeating-linear-gradient(105deg, transparent 0 14px, rgba(60, 110, 180, .7) 14px 15px, transparent 15px 30px);
             animation: rainfall .7s linear infinite; }
@keyframes rainfall { from { transform: translateY(0); } to { transform: translateY(50%); } }
.sky .snow { left: 0; right: 0; top: -100%; height: 200%; opacity: .7;
             background-image: radial-gradient(circle, #fff 1.5px, transparent 2px), radial-gradient(circle, #fff 1px, transparent 1.5px);
             background-size: 40px 40px, 25px 25px; background-position: 0 0, 12px 18px;
             animation: rainfall 9s linear infinite; }
/* lightning - its own keyframe name: sharing "flash" with the tile's tap
   flash made every confirmed tap turn the tile invisible */
.sky .flash { inset: 0; background: rgba(255, 255, 255, .7); opacity: 0; animation: lightning 9s infinite; }
@keyframes lightning { 0%, 90%, 94%, 100% { opacity: 0; } 91% { opacity: .8; } 92.5% { opacity: .2; } 93% { opacity: .6; } }
.sky .fogband { left: -50%; width: 200%; height: 30%; top: 30%;
                background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.45), rgba(255,255,255,0));
                animation: fogdrift 30s ease-in-out infinite alternate; }
.sky .fogband.b2 { top: 62%; animation-duration: 42s; }
@keyframes fogdrift { from { transform: translateX(-15%); } to { transform: translateX(15%); } }

/* sun & moon arc (weather page) */
.arc { position: relative; height: 190px; padding: 10px 20px 0; flex: none; }
.arc svg { width: 100%; height: 150px; display: block; }
.arc .arc-glow { animation: sunglow 4s ease-in-out infinite alternate; transform-origin: center; transform-box: fill-box; }
.arc-l, .arc-r { position: absolute; bottom: 8px; display: flex; flex-direction: column; font-size: 20px; }
.arc-l { left: 22px; } .arc-r { right: 22px; text-align: right; }
.arc-l span, .arc-r span { font-size: 13px; color: var(--ink-2); }
.arc-c { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 17px; color: var(--ink-2); }

/* slideshow: slow pan and zoom (Ken Burns) */
#saver img, .k-show img { transform-origin: center; }
@keyframes kb1 { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -2%); } }
@keyframes kb2 { from { transform: scale(1.14) translate(2%, 1%); } to { transform: scale(1.02) translate(0, 0); } }
@keyframes kb3 { from { transform: scale(1.04) translate(-2%, 1%); } to { transform: scale(1.15) translate(2%, -1%); } }
@keyframes kb4 { from { transform: scale(1.15) translate(-1%, -2%); } to { transform: scale(1.03) translate(1%, 2%); } }
.saver-corner { position: absolute; left: 28px; bottom: 26px; z-index: 2; color: #fff;
                text-shadow: 0 2px 10px rgba(0, 0, 0, .7); pointer-events: none; }
.saver-corner .t { font-size: 84px; font-weight: 300; line-height: 1; }
.saver-corner .d { font-size: 26px; display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.saver-corner img { width: 34px; height: 34px; }

/* pictures are never dragged (that swallowed swipes that started on a camera) */
img { -webkit-user-drag: none; user-select: none; }
.cam img, #campop img, #saver img, .k-show img { pointer-events: none; }

/* the tap ripple */
.ripple { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
          background: radial-gradient(circle, rgba(var(--c), .55) 0%, rgba(var(--c), .25) 45%, rgba(var(--c), 0) 70%);
          transform: scale(0); animation: ripple .6s ease-out forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.tile > .shape, .tile > .txt { position: relative; z-index: 1; }
