:root {
  --bg: #0f0f12;
  --panel: #1b1b21;
  --text: #f4f1ea;
  --muted: #a8a49b;
  --accent: #f7931a;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: system-ui, sans-serif; }
button, input { font: inherit; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }

/* TV */
.stage { position: fixed; inset: 0; background: #000; display: none; align-items: center; justify-content: center; }
.stage.on { display: flex; }
.stage img, .stage video { max-width: 100%; max-height: 100%; }
.stage iframe { width: 100%; height: 100%; border: 0; }

/* Phone */
.phone { max-width: 480px; margin: 0 auto; padding: 24px 16px; }
.phone h1 { font-size: 26px; margin: 0 0 8px; }
.phone .card { background: var(--panel); border-radius: 16px; padding: 18px; margin-top: 16px; }
.phone input[type=text], .phone input[inputmode] { width: 100%; padding: 14px; border-radius: 12px; border: 1px solid #333; background: #111; color: var(--text); font-size: 20px; }
.phone .code-input { letter-spacing: 6px; text-align: center; font-size: 28px; }
.phone button { width: 100%; padding: 14px; border: 0; border-radius: 12px; background: var(--accent); color: #111; font-weight: 700; margin-top: 10px; }
.phone button.secondary { background: #2a2a31; color: var(--text); }
.phone label.button { display: block; text-align: center; padding: 14px; border-radius: 12px; font-weight: 700; margin-top: 10px; cursor: pointer; }
.phone label.button.secondary, .phone a.button.secondary { background: #2a2a31; color: var(--text); }
.phone a.button { display: block; text-align: center; padding: 12px; border-radius: 12px; font-weight: 700; margin: 0 0 10px; text-decoration: none; }
.phone .view-pick img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-top: 8px; display: block; }
.phone .view-pick .row2 button { margin-top: 10px; }
.phone .msg { min-height: 1.4em; margin-top: 10px; }
.hidden { display: none !important; }
.stage .yt, .stage .yt iframe { width: 100%; height: 100%; border: 0; }
.phone .remote { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.phone .remote button { margin-top: 0; font-size: 22px; }
.phone .status { display: flex; align-items: center; gap: 8px; }
.phone .dot { width: 10px; height: 10px; border-radius: 50%; background: #4caf50; }
.phone .dot.off { background: #e0a030; }

/* Movie night (TV) */
.movie { position: fixed; inset: 0; background: var(--bg); padding: 5vh 5vw; display: flex; flex-direction: column; gap: 3vh; }
.movie header { display: flex; justify-content: space-between; align-items: baseline; font-size: 2vw; font-weight: 700; }
.movie header .muted { font-size: 1.4vw; font-weight: 400; }
.movie #movieBody { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 3vh; }
.movie h2 { font-size: 3.6vw; margin: 0; line-height: 1.1; }
.movie p { font-size: 1.7vw; margin: 0; max-width: 70vw; }
.movie footer { font-size: 1.4vw; }
.movie .wishes { font-size: 1.8vw; margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 1vh; }
.movie .chips { display: flex; flex-wrap: wrap; gap: .8vw; }
.movie .chip { border: 1px solid var(--accent); color: var(--accent); border-radius: 99px; padding: .4vw 1.2vw; font-size: 1.5vw; }
.movie .picks { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5vw; }
.movie .pick { background: var(--panel); border: .3vw solid transparent; border-radius: 1.2vw; padding: 1.2vw; display: flex; flex-direction: column; gap: 1vh; min-height: 0; transition: transform .15s; }
.movie .pick.focus { border-color: #ffd24a; transform: scale(1.04); box-shadow: 0 0 0 .2vw #0d0b12, 0 0 0 .5vw #ffd24a, 0 0 3vw .9vw rgba(255, 201, 74, .42); position: relative; z-index: 2;}
.movie .pick img, .movie .pick .poster { flex: 1; min-height: 0; width: 100%; object-fit: cover; border-radius: .8vw; }
.movie .pick .poster { background: linear-gradient(160deg, #3b2a18, #1b1b21); display: flex; align-items: center; justify-content: center; text-align: center; padding: 1vw; font-size: 2vw; font-weight: 700; }
.movie .pick .t { font-size: 1.8vw; font-weight: 700; }
.movie .pick .why { font-size: 1.3vw; color: var(--muted); line-height: 1.35; }
.movie .pick .meta { display: flex; justify-content: space-between; font-size: 1.3vw; }
.movie .pick .svc { color: var(--accent); font-weight: 700; }
.movie .spinner { width: 4vw; height: 4vw; border: .5vw solid var(--panel); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .movie .spinner { animation: none; } .movie .pick { transition: none; } }
.toast { position: fixed; left: 50%; bottom: 6vh; transform: translateX(-50%); background: var(--panel); border: 2px solid var(--accent); border-radius: 1vw; padding: 1.5vh 2vw; font-size: 1.7vw; max-width: 80vw; z-index: 5; }

/* Movie night (phone) */
.phone .wish-list { margin: 8px 0 0; padding-left: 1.2em; }
.phone .wish-list .mine { color: var(--accent); }
.phone .vote { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #2a2a31; }
.phone .vote:first-child { border-top: 0; }
.phone .vote .info { flex: 1; min-width: 0; }
.phone .vote .info b { display: block; }
.phone .vote .info small { color: var(--muted); }
.phone .vote button { width: auto; margin-top: 0; padding: 10px 14px; }
.phone .vote button.on { background: var(--accent); color: #111; }
.phone .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone .chipline { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* Quiet mode (TV) */
.quiet { position: fixed; inset: 0; background: #000; z-index: 4; cursor: none; }
.quiet canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Real footage behind each sound, dimmed so it soothes instead of glares; dimmer still behind Bible verses. */
.quiet video { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Fire TV draws a playing <video> fine on its own (like the photo and video slideshow) but can
   hide it under full-screen layers: a canvas, a faded shade, a blended grain. So while footage
   plays, nothing covers it but text. The dimming is baked into the files (fetch-visuals.sh). */
.quiet.video-on canvas, .quiet.video-on .quiet-grain { visibility: hidden; }
/* Black between scenes: closes quickly, opens slowly, then is removed so nothing sits over the video. */
.quiet-curtain { position: absolute; inset: 0; background: #000; opacity: 1; transition: opacity .7s ease-in; }
.quiet-curtain.open { opacity: 0; transition: opacity 1.6s ease-out; }
.quiet-curtain.gone { display: none; }
.quiet.video-on.breathing canvas { visibility: visible; }
.quiet-dim { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity 1s linear; }
.quiet-breath { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-size: 3vw; color: #ffd9b0; letter-spacing: .1vw; }
.quiet-info { position: absolute; left: 5vw; bottom: 5vh; font-size: 1.6vw; color: #e8d5bf; opacity: 0; transition: opacity 2s; }
.quiet-info .muted { font-size: 1.2vw; margin-top: .6vh; }
.quiet.show .quiet-info { opacity: .85; }
.quiet.asleep .quiet-info, .quiet.asleep .quiet-breath, .quiet.asleep canvas, .quiet.asleep video, .quiet.asleep .quiet-verse { display: none; }
/* Quiet Bible: one verse at a time, large and warm, fading in and out */
.quiet-verse { position: absolute; left: 12vw; right: 12vw; top: 44%; transform: translateY(-50%); text-align: center; color: #f3dfc4; opacity: 0; transition: opacity 1.5s ease; }
.quiet-verse.in { opacity: .92; }
.quiet-verse p { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 3.1vw; line-height: 1.45; text-wrap: balance; }
.quiet-verse div { margin-top: 3vh; font-size: 1.4vw; color: #c9a77f; letter-spacing: .08vw; }
.quiet.breathing .quiet-verse { display: none; }
@media (prefers-reduced-motion: reduce) { .quiet-dim, .quiet-info, .quiet-verse { transition: none; } }

/* Quiet mode (phone) */
.phone .seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.phone .seg.timers { grid-template-columns: repeat(6, 1fr); }
.phone .seg button { margin-top: 0; padding: 12px 4px; }
.phone .seg button.on { background: var(--accent); color: #111; }
.phone .label { margin-top: 12px; font-size: 14px; }
.phone .seg.three { grid-template-columns: repeat(3, 1fr); }
.phone .bibleOpts.hidden { display: none; }

/* Playback time bar (TV) */
.osd { position: fixed; left: 4vw; right: 4vw; bottom: 5vh; z-index: 10; background: rgba(15, 15, 18, .82); border-radius: 1.2vw; padding: 2vh 2vw; display: flex; flex-direction: column; gap: 1.2vh; }
.osd-row { display: flex; justify-content: space-between; gap: 2vw; font-size: 1.9vw; font-weight: 700; font-variant-numeric: tabular-nums; }
.osd-bar { height: 1vh; background: #2a2a31; border-radius: 99px; overflow: hidden; }
.osd-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.osd-hint { font-size: 1.3vw; }

/* Phone: file inputs stay in the layout (some iPhone versions misbehave with display:none) */
.visually-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.phone .row2 button { margin-top: 0; }
.phone .card .row2 { margin-top: 10px; }
.phone button.link { background: none; color: var(--muted); font-weight: 400; text-decoration: underline; padding: 8px; margin-top: 6px; }

/* Host page */
.host textarea { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid #333; background: #111; color: var(--text); font: inherit; margin-top: 8px; }
.host .thread { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.host .bubble { padding: 10px 12px; border-radius: 12px; background: #24242b; max-width: 90%; }
.host .bubble span { display: block; font-size: 13px; margin-bottom: 2px; }
.host .bubble.host { align-self: flex-end; background: #3a2a14; }

/* Concierge: phone answers */
.phone .answers { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.phone .qa { background: #24242b; border-radius: 12px; padding: 10px 12px; }
.phone .qa .muted { font-size: 14px; margin-bottom: 4px; }

/* Phone app: tabs along the bottom, the "say it" box first */
.phone { padding-bottom: 96px; }
.phone .status.top { font-size: 14px; color: var(--muted); }
.phone .tabs { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: #16161b; border-top: 1px solid #2a2a31; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); z-index: 5; }
.phone .tabs button { background: none; color: var(--muted); margin: 0; padding: 6px 0; font-weight: 600; font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 2px; border-radius: 10px; }
.phone .tabs button span { font-size: 22px; }
.phone .tabs button.on { color: var(--accent); background: #22222a; }
.phone .say textarea { width: 100%; margin-top: 10px; padding: 14px; border-radius: 12px; border: 1px solid #333; background: #111; color: var(--text); font: inherit; font-size: 20px; resize: none; }
.phone .sayrow { display: grid; grid-template-columns: 72px 1fr; gap: 8px; margin-top: 10px; }
.phone .sayrow button { margin-top: 0; }
.phone .say .mic { font-size: 28px; padding: 8px; background: #2a2a31; }
.phone .say .mic.live { background: #c0392b; }
.phone .say .hint { font-size: 14px; margin-top: 8px; }
.phone .heard { margin-top: 12px; background: #24242b; border-radius: 12px; padding: 10px 12px; }
.phone .heard .muted { font-size: 14px; margin-bottom: 4px; }
.phone .heard.bad { border-left: 3px solid #e0a030; }
/* Phone D-pad: a round pad like the Fire TV remote's ring, with OK in the middle */
/* An orange ring with a dark OK in the middle, like a Fire TV remote app. Each arrow owns a whole
   quarter of the ring, so a thumb anywhere on that side hits it, the way a real D-pad rocks. */
.phone .dpad { position: relative; width: min(340px, 88vw); aspect-ratio: 1; margin: 16px auto 8px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 45%, #c95a1f 0, #e2722a 55%, #b44d18 100%); box-shadow: 0 8px 28px rgba(226, 114, 42, .25), inset 0 1px 0 rgba(255, 255, 255, .15); user-select: none; -webkit-user-select: none; }
.phone .dpad button { position: absolute; inset: 0; margin: 0; padding: 0; width: 100%; height: 100%; border-radius: 0; border: 0; background: transparent; color: #fff4ea; touch-action: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; transition: background .08s; }
.phone .dpad button svg { position: absolute; width: 11%; height: 11%; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.phone .dpad button:active, .phone .dpad button.held { background: rgba(0, 0, 0, .16); }
.phone .dpad .up { clip-path: polygon(50% 50%, 0 0, 100% 0); }
.phone .dpad .down { clip-path: polygon(50% 50%, 100% 100%, 0 100%); }
.phone .dpad .left { clip-path: polygon(50% 50%, 0 100%, 0 0); }
.phone .dpad .right { clip-path: polygon(50% 50%, 100% 0, 100% 100%); }
.phone .dpad .up svg { left: 44.5%; top: 10%; }
.phone .dpad .down svg { left: 44.5%; bottom: 10%; }
.phone .dpad .left svg { left: 10%; top: 44.5%; }
.phone .dpad .right svg { right: 10%; top: 44.5%; }
.phone .dpad .ok { inset: auto; left: 30%; top: 30%; width: 40%; height: 40%; border-radius: 50%; z-index: 1; background: #26262b; color: #c9c9cf; font-weight: 600; font-size: 22px; letter-spacing: .04em; box-shadow: 0 0 0 5px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .06); }
.phone .dpad .ok:active, .phone .dpad .ok.held { background: #1c1c20; }
.phone .remote button { font-size: 18px; touch-action: manipulation; }
.phone .remote button.on { background: var(--accent); color: #111; }
.phone .progress { height: 8px; background: #2a2a31; border-radius: 99px; overflow: hidden; margin-top: 12px; }
.phone .progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
/* File pickers are labels wrapping their input, styled like buttons */
.phone label.btn { display: block; text-align: center; padding: 14px; border-radius: 12px; background: var(--accent); color: #111; font-weight: 700; cursor: pointer; }
.phone label.link { display: block; text-align: center; color: var(--muted); text-decoration: underline; padding: 8px; margin-top: 6px; cursor: pointer; }

/* Calm feed (TV): today's shelf, a grid browsed with the remote */
.calm { z-index: 3; }
.calm .calm-rule { font-size: 1.4vw; margin-top: -2vh; }
.calm #calmBody { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 2vh; }
.calm .shelf { flex: 1; min-height: 0; overflow: hidden; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: min-content; gap: 2vw; align-content: start; }
.calm .vid { background: var(--panel); border: .3vw solid transparent; border-radius: 1vw; padding: .8vw; transition: transform .15s; }
.calm .vid.focus { border-color: #ffd24a; transform: scale(1.04); box-shadow: 0 0 0 .2vw #0d0b12, 0 0 0 .5vw #ffd24a, 0 0 3vw .9vw rgba(255, 201, 74, .42); position: relative; z-index: 2;}
.calm .vid.watched { opacity: .5; }
.calm .thumb { position: relative; aspect-ratio: 16 / 9; border-radius: .6vw; overflow: hidden; background: #000; }
.calm .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.calm .len, .calm .seen { position: absolute; bottom: .4vw; padding: .1vw .5vw; border-radius: .4vw; background: rgba(0,0,0,.75); font-size: 1.1vw; }
.calm .len { right: .4vw; }
.calm .seen { left: .4vw; color: var(--accent); }
.calm .vid .t { font-size: 1.3vw; font-weight: 700; margin-top: .6vw; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.calm .vid .ch { font-size: 1.1vw; color: var(--muted); margin-top: .3vw; }
.calm .calm-why { font-size: 1.5vw; }

/* Calm feed (phone) */
.phone .calm-channels { list-style: none; padding: 0; margin: 10px 0 0; }
.phone .calm-channels li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #2a2a31; }
.phone .calm-channels button { width: auto; margin: 0; padding: 6px 12px; }
.phone textarea { width: 100%; box-sizing: border-box; padding: 12px; border-radius: 12px; border: 1px solid #333; background: #111; color: var(--text); font: inherit; margin-top: 8px; }
.phone .chipline.err { color: #ff8a80; }
.stage .next-note { color: var(--muted); font-size: 2vw; }
.quiet-grain { position: absolute; inset: 0; opacity: .035; mix-blend-mode: screen; pointer-events: none; }

.phone .calm-howto { font-size: 13px; margin-top: 6px; }
.phone .calm-howto a { color: var(--accent); }
.phone .seg.two { grid-template-columns: repeat(2, 1fr); }
/* Subscriptions picker: a full-screen sheet with big rows, search and bulk ticks. */
body.sheet-open { overflow: hidden; }
.phone .calm-sheet { position: fixed; inset: 0; z-index: 20; background: var(--bg); display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }
.phone .calm-sheet .sheet-top { padding: 16px 16px 8px; border-bottom: 1px solid #2a2a31; }
.phone .calm-sheet .sheet-title { font-size: 18px; margin-bottom: 10px; }
.phone .calm-sheet .sheet-title .muted { font-size: 14px; display: block; margin-top: 2px; }
.phone .calm-sheet input[type=search] { width: 100%; box-sizing: border-box; padding: 14px; border-radius: 12px; border: 1px solid #333; background: #111; color: var(--text); font-size: 18px; }
.phone .calm-sheet .seg { margin-top: 10px; }
.phone .calm-sheet .seg button { padding: 10px 4px; }
.phone .calm-sheet .row2 button { margin-top: 8px; padding: 10px; }
.phone .calm-sheet .sheet-bottom { padding: 8px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #2a2a31; }
.phone .calm-sheet .sheet-bottom .chipline { margin-top: 0; }
.phone .calm-sheet button:disabled { opacity: .45; }
.phone .calm-picks { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; list-style: none; margin: 0; padding: 0 16px; }
.phone .calm-picks li { border-bottom: 1px solid #2a2a31; }
.phone .calm-picks label { display: flex; gap: 14px; align-items: center; width: 100%; padding: 14px 0; font-size: 17px; cursor: pointer; }
.phone .calm-picks label span { min-width: 0; }
.phone .calm-picks label small { display: block; font-size: 13px; margin-top: 2px; }
.phone .calm-picks input { width: 24px; height: 24px; flex: none; accent-color: var(--accent); margin: 0; }
.phone .calm-picks li.group { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 0; padding: 16px 0 4px; }
.phone .calm-picks li.empty { padding: 24px 0; border: 0; text-align: center; }

/* Calm feed: hand-tuning tucked away, and the three-tap Tune sheet. */
.phone .calm-hand { margin-top: 14px; }
.phone .calm-hand summary { cursor: pointer; padding: 8px 0; font-size: 15px; }
.phone .calm-tune .sheet-top { padding: 28px 20px 16px; border-bottom: 0; }
.phone .calm-tune .tune-step { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; min-height: 1em; }
.phone .calm-tune .tune-title { display: block; font-size: 26px; line-height: 1.2; margin: 8px 0 6px; }
.phone .calm-tune .tune-body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 20px 16px; }
.phone .calm-tune .sheet-bottom { border-top: 0; }
.phone .calm-tune .row2.one { grid-template-columns: 1fr; }
.phone .tune-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.phone .tune-chips button { width: auto; margin: 0; padding: 12px 16px; border-radius: 99px; font-weight: 600; font-size: 16px; }
.phone .tune-chips button.on, .phone .tune-thumbs button.on { background: var(--accent); color: #111; }
.phone .tune-thumbs { list-style: none; margin: 0; padding: 0; }
.phone .tune-thumbs li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #2a2a31; font-size: 17px; font-weight: 600; }
.phone .tune-thumbs li span { flex: 1; min-width: 0; }
.phone .tune-thumbs button { width: 56px; margin: 0; padding: 10px 0; font-size: 22px; }
.phone .tune-done { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 20px; font-size: 15px; line-height: 1.7; }
.phone .tune-wait { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 12vh; text-align: center; }
.phone .tune-wait .spin { width: 44px; height: 44px; border: 4px solid var(--panel); border-top-color: var(--accent); border-radius: 50%; animation: spin 1.4s linear infinite; }
@media (prefers-reduced-motion: reduce) { .phone .tune-wait .spin { animation: none; } }
.phone button.linkish { background: none; color: var(--muted); font-weight: 400; font-size: 14px; padding: 8px; text-decoration: underline; }

/* Launch animation (tv.html): the splash sun slides left, its glow rises and the wordmark writes in. */
/* Smooth on a $20 stick: every moving part is its own GPU layer and only animates transform/opacity,
   so the compositor runs it without the page's main thread. Nothing inside the SVG moves (SVG internals
   repaint on the main thread every frame), the glow only fades (scaling a big gradient re-rasters it),
   and the show waits until the welcome screen underneath has finished loading (see tv.html). */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #0f0f12; pointer-events: none; will-change: opacity; contain: strict; }
.intro-lockup { display: flex; align-items: center; gap: 28px; transform: translate3d(var(--shift, 0px), 0, 0); will-change: transform, opacity; }
.intro-sun { position: relative; width: 120px; height: 120px; flex: none; will-change: transform; }
.intro-sun svg { position: relative; display: block; }
.intro-glow { position: absolute; inset: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(247,147,26,.5) 0%, rgba(232,84,28,.18) 38%, rgba(247,147,26,0) 66%); opacity: 0; will-change: opacity; }
.intro-word { font-size: 92px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; color: #f4f1ea; white-space: nowrap; }
.intro-word span { display: inline-block; opacity: 0; transform: translate3d(0, .32em, 0); will-change: transform, opacity; }
.intro.play .intro-lockup { animation: introSlide 1.05s cubic-bezier(.65,0,.35,1) .3s forwards, introLift .7s cubic-bezier(.4,0,.2,1) 2.2s forwards; }
.intro.play .intro-sun { animation: introPulse 1.2s cubic-bezier(.2,.8,.2,1) 0s both; }
.intro.play .intro-glow { animation: introGlow 2.2s cubic-bezier(.2,.8,.2,1) 0s forwards; }
.intro.play .intro-word span { animation: introLetter .7s cubic-bezier(.16,1,.3,1) forwards; }
.intro.play { animation: introOut .6s cubic-bezier(.4,0,.2,1) 2.35s forwards; }
@keyframes introSlide { to { transform: translate3d(0, 0, 0); } }
@keyframes introLift { from { transform: translate3d(0, 0, 0); opacity: 1; } to { transform: translate3d(0, -14px, 0); opacity: 0; } }
@keyframes introPulse { 0% { transform: scale(1); } 35% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes introGlow { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: .6; } }
@keyframes introLetter { to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes introOut { to { opacity: 0; } }
/* While the logo plays, the hidden welcome screen holds still (drifting clouds, twinkling stars, the
   weather ticker), so the stick's GPU only has the logo to draw. It all starts as the logo lifts. */
html.intro-on .sky *, html.intro-on .gx, html.intro-on .gx * { animation-play-state: paused !important; }

/* Concierge: the welcome screen's WiFi code and key hints */
.g-qr svg { display: block; width: 100%; height: auto; }

/* Concierge: the TV's house guide (▲) */
.guide-page { position: fixed; inset: 0; background: var(--bg); padding: 5vh 5vw 4vh; display: flex; flex-direction: column; gap: 2.5vh; z-index: 3; }
.guide-page header { display: flex; justify-content: space-between; align-items: baseline; font-size: 2.6vw; font-weight: 700; }
.guide-page header .muted { font-size: 1.6vw; font-weight: 400; }
.guide-page footer { font-size: 1.3vw; }
.guide-body { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2vw; align-items: start; scrollbar-width: none; }
.guide-body::-webkit-scrollbar { display: none; }
.g-block { background: var(--panel); border-radius: 1.2vw; padding: 1.6vh 1.6vw; margin-bottom: 2vw; font-size: 1.45vw; line-height: 1.4; }
.g-block h3 { margin: 0 0 .8vh; font-size: 1.7vw; color: var(--accent); }
.g-block p { margin: 0; }
.g-block ul { margin: 0; padding-left: 1.3em; }
.g-block li { margin-bottom: .5vh; }
.g-block.g-wifi { display: flex; gap: 1.4vw; align-items: center; }
.g-qr { background: #fff; border-radius: .6vw; padding: .5vw; width: 9vw; flex: none; }
.small { font-size: .85em; }

/* Concierge: a card in the corner, from "Show on TV" on a phone */
.stay-card { position: fixed; right: 3vw; bottom: 5vh; width: 34vw; background: var(--panel); border: .2vw solid var(--accent); border-radius: 1.4vw; padding: 2vh 1.8vw; font-size: 1.7vw; line-height: 1.4; z-index: 6; box-shadow: 0 1vw 4vw rgba(0,0,0,.6); }
.stay-card .card-answer { margin-top: .6vh; }
.stay-card ul { margin: .6vh 0 0; padding-left: 1.3em; }
.stay-card .card-wifi { display: flex; gap: 1.4vw; align-items: center; }
.stay-card .card-wifi b { display: block; font-size: 2vw; margin-bottom: .6vh; }

/* Concierge: the phone's Stay tab */
.phone .stay-hero h2 { margin: 2px 0 4px; font-size: 24px; }
.phone .stay-when { color: var(--accent); font-weight: 600; }
.phone .stay-wx { margin-top: 10px; padding-top: 10px; border-top: 1px solid #2a2a31; }
.phone .stay-wx .muted { margin-top: 2px; }
.phone .wifi-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 18px; }
.phone .wifi-row b { user-select: all; -webkit-user-select: all; word-break: break-all; text-align: right; }
.phone .quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.phone .quick button.chip { width: auto; margin: 0; padding: 8px 12px; border-radius: 99px; background: #24242b; color: var(--text); font-weight: 500; font-size: 14px; }
.phone .guide details { border-top: 1px solid #2a2a31; padding: 4px 0; }
.phone .guide details:first-child { border-top: 0; }
.phone .guide summary { padding: 10px 0; font-weight: 600; cursor: pointer; }
.phone .guide details p, .phone .guide details ul { margin: 0 0 10px; color: var(--text); line-height: 1.45; }
.phone .guide details ul { padding-left: 1.3em; }
.phone button.small { padding: 10px; margin: 0 0 10px; }
.phone .around { list-style: none; margin: 8px 0 0; padding: 0; }
.phone .around li { flex-wrap: wrap; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #2a2a31; }
.phone .around li:first-child { border-top: 0; }
.phone .around .muted { font-size: 14px; }
.phone .around a.map { flex: none; color: #111; background: var(--accent); border-radius: 10px; padding: 8px 12px; font-weight: 700; text-decoration: none; font-size: 14px; }
.phone .quick button.chip.on { background: var(--accent); color: #111; font-weight: 700; }
.phone #hostLine a { color: var(--accent); font-weight: 700; }
.phone .emergency { margin-top: 10px; font-size: 15px; color: var(--muted); line-height: 1.45; }
.phone .emergency b { color: #ff8a7a; }
.phone .qa button.linkish { width: auto; margin: 4px 0 0; padding: 4px 0; }

/* Host page: house notes editor */
.host form .label { margin-top: 16px; }
.host .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.host input[type=text], .host select { width: 100%; box-sizing: border-box; padding: 12px; border-radius: 12px; border: 1px solid #333; background: #111; color: var(--text); font: inherit; margin-top: 8px; }
.host label.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; font-size: 15px; line-height: 1.4; }
.host label.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.host .edit-row { background: #24242b; border-radius: 12px; padding: 4px 10px 6px; margin-top: 8px; }
.host .edit-row button.linkish { width: auto; margin: 4px 0 0; padding: 4px 0; }

.host .find-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.host .find-row button.find { width: auto; margin-top: 8px; padding: 12px 16px; }
.host .pinned { font-size: 13px; margin-top: 6px; color: var(--muted, #9a9aa6); }
.host .pinned:empty { display: none; }
.host .pinned .ok { color: #7fd6a0; font-weight: 600; }
.host .pinned a { color: inherit; }
.host .found { margin-top: 6px; }
.host .found:empty { display: none; }
.host .found .muted { font-size: 13px; }
.host .found .credit { margin-top: 6px; font-size: 12px; }
.host button.found-place { display: block; width: 100%; text-align: left; margin-top: 6px; padding: 10px 12px; border-radius: 12px; border: 1px solid #3a3a44; background: #17171c; color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.host button.found-place:hover, .host button.found-place:focus-visible { border-color: #f7931a; }
.host .found-place .kind { font-size: 12px; opacity: .65; margin-left: 4px; }
.host .found-place .where, .host .found-place .far { display: block; font-size: 13px; opacity: .8; margin-top: 2px; font-weight: 400; }
.host .found-place .far { color: #f5c96b; opacity: 1; }
.host .found-place .far.warn { color: #ff8a8a; }

/* Phone: a spot sent from the TV's What's around. */
.phone .pick-status { margin-top: 6px; font-size: 13px; }
.phone .pick-status .flag { color: #f5c96b; margin-top: 4px; }
.phone .pick-status .flag.closed { color: #ff8a8a; }
.phone .around li .went { flex-basis: 100%; margin-top: 0; }
.phone .went { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.phone .went .muted { font-size: 13px; margin-right: 2px; }
.phone button.went-btn { width: auto; margin: 0; padding: 6px 10px; border-radius: 99px; background: #24242b; color: var(--text); font-weight: 600; font-size: 13px; }
.phone button.went-btn.on { background: var(--accent); color: #15100a; }
.phone button.went-btn.warn { background: #6b2323; color: #fff; }
.phone .around .loved { color: #ff8a8a; font-size: 13px; font-weight: 600; margin-top: 2px; }
.phone .sent-place { border: 1px solid var(--accent); display: flex; flex-direction: column; gap: 6px; }
.phone .sent-place b { font-size: 20px; }
.phone .sent-actions, .phone .dir-apps { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.phone .dir-apps { flex-basis: 100%; margin-top: 0; }
.phone .sent-place > button.linkish { align-self: flex-start; padding: 4px 0; width: auto; margin: 0; }
/* Directions: one button per map app; the first is the one most phones will want. */
.phone a.app { padding: 10px 14px; border-radius: 12px; font-weight: 700; text-decoration: none; font-size: 15px; background: #2a2a31; color: var(--text); }
.phone a.app.main { background: var(--accent); color: #15100a; }
.phone a.app.plain { background: none; color: var(--muted); font-weight: 400; font-size: 14px; padding: 10px 6px; text-decoration: underline; }

/* Host page: Tailor this TV */
.host .seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.host .seg label { position: relative; }
.host .seg input { position: absolute; opacity: 0; }
.host .seg span { display: block; text-align: center; padding: 10px 6px; border-radius: 10px; background: #2a2a31; font-size: 15px; cursor: pointer; }
.host .seg input:checked + span { background: var(--accent); color: #1a0d00; font-weight: 700; }
.host .tailored { margin-top: 14px; padding-top: 12px; border-top: 1px solid #2e2e36; font-size: 15px; line-height: 1.45; }
.host .tailored .sum { font-size: 16px; margin-bottom: 8px; }
.host .tailored .row { margin-top: 8px; }
.host .tailored .pill { display: inline-block; padding: 3px 10px; margin: 3px 4px 0 0; border-radius: 99px; background: #2a2a31; font-size: 14px; }
.host .tailored .pill.first { background: var(--accent); color: #1a0d00; font-weight: 600; }
.host .tailored .who { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #1c1c22; }

/* Host setup: who's setting up, then one step per screen (host-setup.js) */
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
.host h2.q { font-family: Fraunces, Georgia, serif; font-size: 26px; line-height: 1.15; margin: 18px 0 6px; font-weight: 600; }
.host button.linkish { width: auto; background: none; color: var(--muted); font-weight: 500; padding: 8px 0; margin-top: 6px; }
.host button.role { display: flex; gap: 12px; align-items: center; text-align: left; background: var(--panel); color: var(--text); border: 1.5px solid #2c2c34; border-radius: 16px; padding: 14px; margin-top: 12px; font-weight: 400; }
.host button.role.on, .host button.role:focus-visible { border-color: var(--accent); }
.host button.role .ic { font-size: 28px; width: 38px; text-align: center; flex: none; }
.host button.role b { display: block; font-size: 18px; }
.host button.role .muted { display: block; font-size: 14px; margin-top: 2px; }
.host .wiz-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.host .wiz-top button.linkish { margin: 0; }
.host .dots { display: flex; gap: 4px; flex: 1; justify-content: center; }
.host .dots i { width: 18px; height: 4px; border-radius: 2px; background: #333; }
.host .dots i.on { background: var(--accent); }
.host #steps .step:not(.cur) { display: none; }
.host #steps .step { margin-top: 8px; }
.host #steps.all .step + .step { border-top: 1px solid #2c2c34; padding-top: 10px; }
.host .wiz-foot { margin-top: 18px; }
.host .wiz-foot button.linkish { display: block; margin: 6px auto 0; }
.host #saveHouse { display: none; }
.host button.set-row { display: flex; justify-content: space-between; gap: 12px; background: none; color: var(--text); font-weight: 400; border-radius: 0; padding: 12px 0; margin: 0; border-top: 1px solid #2c2c34; text-align: left; }
.host button.set-row:first-child { border-top: 0; }
.host .set-row .st { color: var(--muted); font-size: 14px; text-align: right; }
.host .set-row .st.g { color: #7fd6a0; }
.host .set-row .st.y { color: #e0a030; }
.host .set-row .st::after { content: ' ›'; color: var(--muted); }
.host .setup-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }
.host #overview .more:not(:empty) { margin-top: 8px; font-size: 14px; }
.host .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.host button.chip { width: auto; margin: 0; padding: 8px 12px; border-radius: 99px; background: none; border: 1px solid #3a3a42; color: var(--text); font-weight: 500; font-size: 15px; }
.host button.chip.on { border-color: var(--accent); color: var(--accent); }
.host .small-note { font-size: 13px; margin-top: 8px; }
.host .room-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 8px 0; border-top: 1px solid #2c2c34; }
.host .room-row:first-child { border-top: 0; }
.host .room-row input[type=text] { margin-top: 0; padding: 10px; font-size: 17px; }
.host .room-row.saved input { border-color: #7fd6a0; }
.host .room-st { font-size: 13px; white-space: nowrap; }
.host .room-st.g { color: #7fd6a0; }
.host .room-st.y { color: #e0a030; }
.host .room-model { grid-column: 1 / -1; font-size: 12px; }
.host .room-model .warn { color: #ff8a8a; font-weight: 600; }
/* Host sign-in and the Account card */
.phone input.key-input { width: 100%; padding: 14px; border-radius: 12px; border: 1px solid #333; background: #111; color: var(--text); font-size: 18px; margin-top: 10px; }
.phone .pk { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid #2a2a31; }
.phone .pk:first-child { border-top: 0; }
.phone button.small { width: auto; padding: 8px 12px; margin: 0; font-weight: 600; }
.host .done-card { border: 1.5px solid #2c2c34; }
.host .done-card.fresh { border-color: #7fd6a0; }
.host .done-card > b { font-size: 18px; }
.host .done-card .next-line { margin-top: 10px; line-height: 1.4; }
.host .done-card .next-line button { width: auto; margin: 0; padding: 8px 12px; }
.host .done-card .next-line button.linkish { display: inline; padding: 0; text-align: left; text-decoration: underline; }
.host .done-card .next-line > .muted:empty { display: none; }
