/* Unwrapped: North Pole Tours, the Aurora concierge look (Keith, 2026-11-09), shared by the web controller (homebase) and www. */
@font-face { font-family: "Cinzel"; src: url("../fonts/Cinzel-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../fonts/Cinzel-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../fonts/BarlowSemiCondensed-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../fonts/BarlowSemiCondensed-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../fonts/BarlowSemiCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark;
  --night: #0b1716;
  --slate: #10201e;
  --ink: #eee8dc;
  --dim: #b9c4bf;
  --faint: rgba(238, 232, 220, .55);
  --gold: #d8b56a;
  --gold-hi: #f0d79a;
  --gold-lo: #a9843e;
  --ice: #9fd6e0;
  --ready: #5fd38a;
  --glass: rgba(18, 38, 36, .55);
  --line: rgba(216, 181, 106, .35);
  --serif: "Cinzel", Georgia, "Times New Roman", serif;
  --sans: "Barlow Semi Condensed", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --vh: 100vh;            /* set from the visual viewport by controller.js */
  --actions-h: 0px;       /* the height of the fixed footer that is showing */
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--night) url("../img/backdrop-phone.jpg") center top / cover no-repeat fixed;
  color: var(--ink); font: 400 18px/1.4 var(--sans); -webkit-font-smoothing: antialiased;
}
body.wide { background-image: url("../img/backdrop-display.jpg"); }
body::before { content: ""; position: fixed; inset: 0; background: linear-gradient(180deg, rgba(8,18,17,.25), rgba(8,18,17,.55) 45%, rgba(8,18,17,.8)); pointer-events: none; z-index: 0; }
main, header, footer { position: relative; z-index: 1; }

.brand { text-align: center; padding: 22px 16px 0; }
.brand .word { font: 700 30px/1 var(--serif); letter-spacing: .12em; color: var(--gold); }
.brand .sub { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; font: 500 12px/1 var(--sans); letter-spacing: .32em; color: var(--ink); }
.brand .count { margin: 8px auto 0; padding-bottom: 8px; font: 600 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--line); max-width: 420px; }
.brand .count b { color: var(--gold); font-size: 15px; letter-spacing: .1em; }
.brand .sub::before, .brand .sub::after { content: ""; width: 22px; height: 1px; background: var(--line); }

.screen { max-width: 460px; margin: 0 auto; padding: 14px 20px calc(24px + var(--actions-h)); display: flex; flex-direction: column; min-height: calc(var(--vh) - 96px); }
.screen.center { justify-content: center; }
h1 { font: 500 31px/1.12 var(--serif); color: var(--gold); text-align: center; margin: 16px 0 10px; letter-spacing: .01em; }
h2 { font: 500 25px/1.15 var(--serif); color: var(--gold); margin: 0 0 8px; text-align: center; }
p.lead { text-align: center; color: var(--ink); margin: 0 0 16px; font-size: 20px; line-height: 1.3; }
.mono { font-family: var(--mono); }
p.small, .small { font-size: 13px; color: var(--dim); }
.center-text { text-align: center; }
.chip { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font: 500 12px/1 var(--sans); letter-spacing: .28em; color: var(--ink); }
.rule { height: 1px; background: var(--line); margin: 18px 0; border: 0; }
.steps { display: flex; justify-content: center; gap: 10px; margin: 6px 0 2px; }
.steps i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--gold); }
.steps i.on { background: var(--gold); }

.btn { display: block; width: 100%; border: 0; border-radius: 12px; padding: 17px 22px; margin: 8px 0; font: 600 19px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-align: center; text-decoration: none; cursor: pointer; transition: transform .08s, filter .15s; }
.btn:active { transform: scale(.985); }
.btn.gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); color: #12201d; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.btn.line { background: rgba(10, 22, 20, .35); color: var(--gold-hi); border: 1px solid var(--gold); }
.btn.quiet { background: none; color: var(--dim); font-weight: 500; font-size: 16px; text-decoration: underline; text-underline-offset: 4px; text-transform: none; letter-spacing: 0; }
.btn[disabled] { filter: grayscale(.6) brightness(.7); cursor: default; }
.spacer { flex: 1; }

.field { margin: 8px 0 4px; }
.field label { display: block; font: 600 13px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.field input { width: 100%; padding: 16px 18px; border-radius: 10px; border: 1px solid rgba(238,232,220,.35); background: rgba(10, 24, 22, .55); color: var(--ink); font: 500 22px/1.2 var(--sans); outline: none; }
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216,181,106,.18); }
.error { color: #ffb4a6; text-align: center; min-height: 1.4em; font-size: 14px; margin: 6px 0; }

.panel { background: var(--glass); border: 1px solid rgba(238,232,220,.16); border-radius: 22px; padding: 22px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* camera */
.viewfinder { position: relative; width: 100%; aspect-ratio: 3/4; border-radius: 26px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.viewfinder video, .viewfinder img { width: 100%; height: 100%; object-fit: cover; display: block; }
.viewfinder video.mirror { transform: scaleX(-1); }
.viewfinder .oval { position: absolute; left: 14%; right: 14%; top: 9%; bottom: 17%; border: 2px solid var(--gold); border-radius: 50%; box-shadow: 0 0 0 999px rgba(0,0,0,.18); pointer-events: none; }
.viewfinder .hint { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); background: rgba(10,22,20,.6); border: 1px solid rgba(238,232,220,.25); border-radius: 999px; padding: 8px 18px; font-size: 14px; white-space: nowrap; }
.shutter-row { display: flex; align-items: center; justify-content: space-between; margin: 14px 8px 0; }
.round { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--gold); background: rgba(10,22,20,.4); color: var(--gold-hi); font-size: 22px; cursor: pointer; }
.shutter { width: 78px; height: 78px; border-radius: 50%; border: 4px solid rgba(240,215,154,.6); background: radial-gradient(circle at 40% 35%, var(--gold-hi), var(--gold) 60%, var(--gold-lo)); cursor: pointer; }

/* portraits and tickets */
.portrait-frame { width: 78%; margin: 6px auto 10px; aspect-ratio: 1; border-radius: 26px; overflow: hidden; border: 1px solid var(--gold); position: relative; background: rgba(10,22,20,.5); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shimmer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,230,160,.45) 50%, transparent 70%); animation: shimmer 1.8s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.progress { height: 3px; border-radius: 3px; background: rgba(238,232,220,.18); overflow: hidden; margin: 16px 10%; }
.progress b { display: block; height: 100%; width: 40%; background: var(--gold); animation: slide 1.6s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }

.ticket { position: relative; margin: 8px 6px; border-radius: 20px; overflow: hidden; border: 1px solid var(--gold); background: linear-gradient(180deg, rgba(30,52,50,.75), rgba(14,30,28,.9)); box-shadow: 0 10px 40px rgba(0,0,0,.45), 0 0 30px rgba(216,181,106,.12); }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 62%; width: 22px; height: 22px; border-radius: 50%; background: var(--night); border: 1px solid var(--gold); }
.ticket::before { left: -12px; } .ticket::after { right: -12px; }
.ticket img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.ticket .info { padding: 14px 18px 18px; text-align: center; }
.ticket .name { font: 700 34px/1 var(--serif); letter-spacing: .08em; color: var(--gold); text-transform: uppercase; margin: 4px 0 6px; }
.ticket .admit { font: 600 12px/1 var(--sans); letter-spacing: .28em; color: var(--ink); }
.ticket .meta { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; font: 600 13px/1.2 var(--sans); letter-spacing: .12em; }
.ticket .barcode { height: 30px; margin-top: 12px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 13px); opacity: .85; }

.guests { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 10px; margin: 8px 0; }
.guest { width: 84px; text-align: center; font-size: 14px; }
.guest .face { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 6px; overflow: hidden; border: 1px solid var(--gold); background: rgba(10,22,20,.5); }
.guest .face img { width: 100%; height: 100%; object-fit: cover; }
.guest.open .face { border: 1px dashed rgba(238,232,220,.45); background: none; display: grid; place-items: center; color: var(--faint); font-size: 26px; }
.guest .st { font-size: 12px; color: var(--dim); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ready); margin-right: 5px; vertical-align: 1px; }
.dot.wait { background: var(--gold); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.globe { width: 112px; height: 112px; margin: 6px auto 0; display: block; opacity: .9; }
[hidden] { display: none !important; }

/* on the call (E1-E5) */
.pill { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px auto 12px; padding: 10px 18px; width: max-content;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(10,22,20,.45); font: 500 16px/1 var(--sans); color: var(--ink); }
.pill .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); animation: pulse 1.6s ease-in-out infinite; }
.pill.live .dot { background: #5fd38a; animation: none; }
@keyframes pulse { 50% { opacity: .35; } }
.tour-ticket { transition: transform .35s; }
.tour-ticket.small { transform: scale(.72); transform-origin: top center; margin-bottom: -26%; }
.stamp { position: absolute; left: 8%; right: 8%; top: 38%; padding: 10px 0; text-align: center; transform: rotate(-11deg);
  font: 800 26px/1 var(--sans); letter-spacing: .04em; white-space: nowrap; color: #2f9a55; border: 4px solid #2f9a55; border-radius: 10px;
  background: rgba(240,236,226,.88); box-shadow: 0 4px 18px rgba(0,0,0,.3); animation: stamp .28s cubic-bezier(.2,1.6,.4,1); }
@keyframes stamp { from { transform: rotate(-11deg) scale(1.8); opacity: 0; } }
.code-boxes { display: flex; justify-content: center; gap: 12px; margin: 14px 0 4px; }
.code-boxes span { width: 58px; height: 70px; border-radius: 12px; border: 1px solid var(--gold); background: rgba(10,22,20,.45);
  font: 600 38px/70px var(--sans); color: var(--ink); text-align: center; }
.code-boxes.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.keys button { height: 76px; border-radius: 16px; border: 1px solid rgba(240,236,226,.22); background: rgba(14,32,32,.62); color: var(--ink);
  font: 500 32px/1 var(--sans); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.keys button small { font: 500 11px/1 var(--sans); letter-spacing: .2em; color: var(--dim); margin-top: 4px; min-height: 11px; }
.keys button:active, .keys button.hit { background: rgba(140,200,240,.55); color: #0c1a22; box-shadow: 0 0 18px rgba(140,200,240,.6); }
.keys .blank { visibility: hidden; }


/* ---- one pass of polish (2026-11-09): a fixed action footer, sizes from the visible height, the badge crossfade, the start dialog */
.screen { position: relative; }
.actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 28px 20px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(7,16,15,.97) 62%, rgba(7,16,15,0)); }
.actions > * { max-width: 420px; margin-left: auto; margin-right: auto; }
.actions .btn { margin: 7px auto; }
.actions p.small { margin: 4px auto 0; text-align: center; }
.brand .logo { display: block; width: min(72%, 280px); height: auto; margin: 0 auto; }

.fit.ticket { width: min(100%, calc((var(--vh) - var(--actions-h) - 190px) * .72)); margin-left: auto; margin-right: auto; }
.fit.portrait-frame { width: min(78%, calc((var(--vh) - var(--actions-h) - 250px) * .75)); aspect-ratio: 3/4; }
.fit.viewfinder { width: min(100%, calc((var(--vh) - var(--actions-h) - 170px) * .75)); margin-left: auto; margin-right: auto; }
.ticket .photo { position: relative; aspect-ratio: 1; overflow: hidden; }
.ticket .photo img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.ticket .photo img.fade { opacity: 0; transition: opacity 1.6s ease; }
.ticket .photo img.fade.on { opacity: 1; }
.ticket.mini { display: flex; align-items: center; margin: 4px 0 0; }
.ticket.mini .photo { width: 38%; flex: none; }
.ticket.mini .info { flex: 1; text-align: left; padding: 12px 16px; }
.ticket.mini .name { font-size: 26px; }
.ticket.mini::before, .ticket.mini::after { display: none; }
.tour-ticket.small { margin-bottom: -22%; }

.guest { font: 500 15px/1.2 var(--sans); }
.guest .st { font: 500 11px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; }

.loader { width: 96px; height: 96px; margin: 28px auto 0; position: relative; }
.loader i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(216,181,106,.22); border-top-color: var(--gold-hi); animation: spin 1.1s linear infinite; }
.loader::after { content: ""; position: absolute; inset: 34px; border-radius: 50%; background: radial-gradient(circle, var(--gold-hi), transparent 70%); animation: pulse 1.6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* the start dialog */
body.modal-open { overflow: hidden; }

/* the link overlay (Keith, 2026-11-12): over everything, blocks taps while the TV or this phone's connection is out */
.link-overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(6, 14, 13, .88);
  backdrop-filter: blur(6px); text-align: center; }
.link-overlay[hidden] { display: none; }
.link-card { max-width: 340px; }
.link-card h2 { margin: 18px 0 8px; }
.link-spin { width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; border: 3px solid rgba(216, 181, 106, .25); border-top-color: var(--gold, #d8b56a);
  animation: link-spin 1.1s linear infinite; }
@keyframes link-spin { to { transform: rotate(360deg); } }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(2,8,10,.86); overflow-y: auto; display: flex; padding: 18px 16px; }
.modal-card { margin: auto; width: 100%; max-width: 440px; border: 1px solid var(--gold); border-radius: 14px; padding: 22px 20px 12px; background: rgba(8,20,24,.98); box-shadow: 0 20px 80px rgba(0,0,0,.6); }
.modal-card .lead { font-size: 18px; }
.ack { display: flex; align-items: flex-start; gap: 14px; margin: 14px 0 6px; font: 500 18px/1.25 var(--sans); cursor: pointer; }
.ack input { position: absolute; opacity: 0; pointer-events: none; }
.ack .box { flex: none; width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--gold); background: rgba(2,8,10,.7); position: relative; margin-top: 1px; }
.ack input:checked + .box::after { content: ""; position: absolute; left: 8px; top: 2px; width: 8px; height: 16px; border: solid var(--gold-hi); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.ack input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(216,181,106,.35); }

/* Pip calls (controller, Keith 2026-11-10) */
.ring-screen h1 { margin-top: 18px; }
.ring-photo { position: relative; width: 132px; height: 132px; margin: 0 auto; }
.ring-photo img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold-hi); }
.ring-pulse { position: absolute; inset: 0; border-radius: 50%; background: rgba(240, 215, 154, .35); animation: ringpulse 2s ease-out infinite; }
.ring-pulse.two { animation-delay: 1s; }
@keyframes ringpulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.ring-answer { margin-top: 26px; min-width: 220px; background: linear-gradient(180deg, #5fd38a, #2f9e5a); color: #04210f; }

/* ---- the stables (2026-11-12; gdd/storyline E23-E30): the phone as a staff device */
.np { display: flex; flex-direction: column; gap: 14px; }
.np h1 { margin: 6px 0 2px; text-align: center; }
.np-kicker { font: 600 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--dim); text-align: center; }
.np-where { font: 700 30px/1.1 var(--serif); color: var(--gold-hi); text-align: center; margin: 0; letter-spacing: .06em; }
.np-alert { padding: 26px 18px; border-radius: 22px; border: 1px solid rgba(255, 120, 90, .55); background: rgba(60, 14, 10, .55);
  box-shadow: 0 0 0 0 rgba(255, 90, 60, .6); animation: np-alarm 1.2s ease-out infinite; }
@keyframes np-alarm { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 60, .55); } 100% { box-shadow: 0 0 0 22px rgba(255, 90, 60, 0); } }
.np-siren { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff4d6 0, #ffb36b 26%, #e2442b 60%, #5a0f08 100%); box-shadow: 0 0 26px rgba(255, 110, 70, .8);
  animation: np-siren 0.9s ease-in-out infinite alternate; }
@keyframes np-siren { from { filter: brightness(.75); } to { filter: brightness(1.25); } }
.np-book { padding: 22px 20px 18px; border-radius: 10px; color: #3a2a14; box-shadow: 0 10px 30px rgba(0, 0, 0, .45), inset 0 0 40px rgba(120, 80, 30, .35);
  background: radial-gradient(ellipse at 50% 40%, #f6ecd2 0, #ead8ae 60%, #cfb27a 100%); }
.np-book-title { font: 700 22px/1.15 var(--serif); text-align: center; color: #4a3010; }
.np-book-sub { font: italic 14px/1.2 Georgia, serif; text-align: center; color: #7a5a2a; margin-top: 4px; }
.np-rhyme { font: italic 20px/1.45 Georgia, serif; text-align: center; margin: 16px 0 12px; }
.np-glyphs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 6px 0 12px; }
.np-glyphs .glyph { width: 34px; height: 34px; color: #6a4a1c; }
.np-note { font: 15px/1.4 Georgia, serif; text-align: center; margin: 0; color: #5a4220; }
.np-round { font: 700 26px/1.1 var(--serif); text-align: center; color: var(--gold-hi); }
.np-tune { text-align: center; color: var(--dim); font-size: 16px; margin-top: -6px; min-height: 1.2em; }
.np-carousel { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 4px; touch-action: pan-y; }
.np-arrow { width: 44px; height: 88px; border: 0; border-radius: 14px; background: rgba(18, 38, 36, .55); color: var(--gold); font: 400 44px/1 var(--serif);
  -webkit-tap-highlight-color: transparent; }
.np-arrow[hidden] { display: none; }
.np-bell { position: relative; aspect-ratio: 1 / 1; border-radius: 26px; border: 1px solid var(--line); color: var(--gold);
  background: radial-gradient(circle at 50% 35%, rgba(216, 181, 106, .22) 0, rgba(18, 38, 36, .75) 70%); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  -webkit-tap-highlight-color: transparent; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  transition: transform .08s, box-shadow .25s, border-color .25s, opacity .3s; }
/* the bell itself, floating on a warm glow, its name below; alive (bellrig.js): three stacked pictures, the bell swaying about the
   hand and the clapper swinging between its back and its front, both turned by script every frame */
.np-bell.big { width: auto; aspect-ratio: auto; padding: 4px 0 10px; border: 0; border-radius: 40px; gap: 2px;
  background: radial-gradient(ellipse 60% 52% at 50% 64%, rgba(255, 196, 104, .20) 0, rgba(255, 180, 90, .06) 55%, transparent 75%); }
.np-rig { position: relative; height: min(40vh, 330px); max-width: 62vw; display: block; pointer-events: none; will-change: transform;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5)); transition: filter .25s; }
.np-rig .np-l { position: absolute; inset: 0; width: 100%; height: 100%; display: block; -webkit-user-drag: none; user-select: none; }
.np-bell.big.off { opacity: .8; }
.np-bell.big.hint { animation: none; box-shadow: none; }
.np-bell.big.hint .np-rig { animation: np-bellhint 1.1s ease-in-out infinite alternate; }
@keyframes np-bellhint { from { filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5)) drop-shadow(0 0 0 rgba(255, 210, 110, 0)); }
  to { filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5)) drop-shadow(0 0 16px rgba(255, 210, 110, .8)); } }
.np-bell.big.true { box-shadow: none; }
.np-bell.big.true .np-rig { filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5)) drop-shadow(0 0 22px rgba(255, 214, 120, .95)); }
.np-bell.big.sour { box-shadow: none; }
.np-bell.big.sour .np-rig { filter: drop-shadow(0 0 20px rgba(226, 68, 43, .9)); }
.np-bell.big .nm { margin-top: -6px; }
.np-bell .glyph { width: 56%; height: 56%; }
.np-bell .nm { color: var(--dim); }
.np-bell.hit { transform: scale(.93) rotate(-4deg); }
.np-bell.true { box-shadow: 0 0 0 3px rgba(255, 211, 110, .55), 0 0 40px rgba(255, 200, 90, .6); border-color: var(--gold-hi); color: #ffe39a; }
/* a hint, only after the family has been stuck a while (Keith: the fun is finding out who holds which bell) */
.np-bell.hint, .np-pick.hint { animation: np-hint 1.1s ease-in-out infinite alternate; }
@keyframes np-hint { from { box-shadow: 0 0 0 1px rgba(255, 211, 110, .25); } to { box-shadow: 0 0 0 4px rgba(255, 211, 110, .55), 0 0 26px rgba(255, 200, 90, .45); } }
.np-bell.sour { animation: np-sour .4s; border-color: #e2442b; box-shadow: 0 0 30px rgba(226, 68, 43, .6); }
@keyframes np-sour { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.np-bell[disabled] { opacity: .45; }
.np-bell.empty { visibility: hidden; }
.np-picks { display: flex; justify-content: center; gap: 10px; min-height: 52px; }
.np-pick { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line); color: var(--dim); background: rgba(18, 38, 36, .55);
  display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; padding: 0; }
.np-pick .glyph { width: 62%; height: 62%; }
.np-pick.on { color: var(--gold-hi); border-color: var(--gold-hi); background: rgba(216, 181, 106, .18); }
.np-bells.held .np-bell, .np-bells.held .np-pick { opacity: .4; filter: saturate(.4); }
.np-hint { text-align: center; color: var(--dim); margin: 2px 0 0; min-height: 2.6em; }
.np-shake { align-self: center; }
.np-rack { padding: 14px 14px 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); }
.np-rack.big { padding: 22px 16px; }
.np-rack-title { font: 600 13px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--dim); text-align: center; }
.np-orns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 12px 0 8px; min-height: 44px; }
.np-orn { position: relative; width: 40px; height: 40px; border-radius: 50%; margin-top: 6px;
  background: radial-gradient(circle at 38% 34%, #fff 0, #d6fff6 16%, #5fd6c4 44%, #1f6f78 74%, #10313a 100%); box-shadow: 0 0 14px rgba(120, 240, 220, .6); }
.np-orn::before { content: ""; position: absolute; left: 14px; top: -7px; width: 12px; height: 8px; border-radius: 3px 3px 0 0; background: linear-gradient(#f0d79a, #a9843e); }
.np-orn.gold { background: radial-gradient(circle at 38% 34%, #fff 0, #fff1c8 16%, #f1c25c 44%, #9a6a1c 74%, #3a250a 100%); box-shadow: 0 0 14px rgba(255, 200, 90, .6); }
.np-orn.new { animation: np-catch .9s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes np-catch { 0% { transform: translateY(-160px) scale(.3); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
.np-rack.big .np-orn { width: 54px; height: 54px; }
.np-rack.big .np-orn::before { left: 19px; width: 16px; }
.np-total { text-align: center; color: var(--gold-hi); font: 600 17px/1.2 var(--sans); }
.np-radio { padding: 24px 18px; border-radius: 22px; border: 1px solid rgba(159, 214, 224, .5); background: rgba(10, 30, 40, .6); text-align: center; }
.np-radio-icon { width: 58px; height: 58px; margin: 0 auto 8px; border-radius: 14px; background: linear-gradient(#2b3f46, #18262b); position: relative;
  box-shadow: 0 0 22px rgba(159, 214, 224, .45); animation: np-siren 0.7s ease-in-out infinite alternate; }
.np-radio-icon::before { content: ""; position: absolute; left: 12px; right: 12px; top: 12px; height: 14px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, #9fd6e0 0 3px, transparent 3px 6px); }
.np-radio-icon::after { content: ""; position: absolute; right: 10px; top: -14px; width: 4px; height: 16px; background: #9aa; border-radius: 2px; }
.np-transcript { font: italic 17px/1.45 Georgia, serif; color: var(--ink); margin: 12px 0 0; }

/* the Nutcracker Guard (2026-11-12): your turn's camera (the phone propped sideways), the steps, Skip */
.np-guard { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.np-guard h1 { margin: 0; }
.ng-cam { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #050a10; border: 2px solid var(--line); }
.ng-cam.ok { border-color: #4fd6a0; box-shadow: 0 0 18px rgba(79, 214, 160, .35); }
.ng-cam video, .ng-cam canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.ng-state { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .6); color: #fff; font-size: 14px; white-space: nowrap; }
.ng-cam.ok .ng-state { background: rgba(20, 110, 80, .8); }
.ng-howto { display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left; }
.ng-step { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); }
.ng-step b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #d6b262; color: #1a1206; }
/* turned sideways for the turn: the camera fills the screen */
@media (orientation: landscape) and (max-height: 520px) {
  .np-guard.live .ng-cam { position: fixed; inset: 0; width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; z-index: 50; }
  .np-guard.live .ng-howto, .np-guard.live h1, .np-guard.live #ng-msg { display: none; }
  .np-guard.live #ng-skip { position: fixed; right: 14px; top: 14px; z-index: 51; width: auto; }
}

/* ---- Pip's Drawing Challenge on the phone (Keith, 2026-11-12/13): the drawpad. The paper is 4:3 (the TV's drawings are too). */
.screen.dp { max-width: 520px; padding: 8px 12px calc(86px + env(safe-area-inset-bottom)); min-height: var(--vh); gap: 8px; }
.dp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dp-titles { min-width: 0; }
.dp-kicker { font: 600 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.dp h1 { font: 700 21px/1.15 var(--serif); margin: 4px 0 0; color: var(--ink); letter-spacing: .02em; }
.dp-rule { margin: 4px 0 0; font: 600 14px/1.2 var(--sans); color: var(--gold-hi); }
.dp-timer { position: relative; width: 52px; height: 52px; flex: none; }
.dp-timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dp-timer circle { fill: none; stroke-width: 3.5; }
.dp-timer .bg { stroke: rgba(238, 232, 220, .18); }
.dp-timer .fg { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 0; transition: stroke-dashoffset .25s linear, stroke .3s; }
.dp-timer.low .fg { stroke: #e0624f; }
.dp-timer b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 17px/1 var(--mono); color: var(--ink); }
.dp-paper { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 2px solid var(--gold); box-shadow: 0 8px 28px rgba(0, 0, 0, .45);
  background-color: #fff; background-image: linear-gradient(rgba(70, 110, 160, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(70, 110, 160, .16) 1px, transparent 1px);
  background-size: 100% 7.5%, 6.25% 100%; }                                /* white grid paper (Keith, 2026-11-13); the grid is only on screen, never in the exported drawing */
.dp-paper canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.dp-hint { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font: 500 18px/1 var(--sans); color: rgba(60, 45, 20, .35); transition: opacity .3s; }
.dp-hint.gone { opacity: 0; }
.dp-tools { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.dp-tools button, .dp-row button { background: rgba(10, 22, 20, .55); color: var(--dim); border: 1px solid var(--line); border-radius: 10px; font: 500 12px/1 var(--sans); cursor: pointer; }
.dp-tools button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 7px; min-height: 52px; }
.dp-tools svg { width: 22px; height: 22px; }
.dp-tools button.on { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #12201d; border-color: var(--gold); }
.dp-tools button[disabled] { opacity: .35; }
.dp-tools button.hide { display: none; }
.dp-opts { display: flex; flex-direction: column; gap: 8px; background: var(--glass); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.dp-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dp-row[hidden], .dp-seltip[hidden] { display: none; }
.dp-sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dp-sliders label { display: flex; flex-direction: column; gap: 4px; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); position: relative; }
.dp-sliders input[type=range] { width: 100%; accent-color: var(--gold); height: 28px; }
.dp-dot { position: absolute; right: 0; top: -2px; width: 22px; height: 22px; display: grid; place-items: center; }
.dp-dot::after { content: ""; width: var(--w, 10px); height: var(--w, 10px); max-width: 22px; max-height: 22px; border-radius: 50%; background: var(--c, #7a3b1c); opacity: var(--a, 1); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.dp-sliders b { position: absolute; right: 0; top: -2px; font: 500 12px/1 var(--mono); color: var(--ink); letter-spacing: 0; }
.dp-colors { justify-content: space-between; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.dp-colors button { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); padding: 0; background: var(--c); }
.dp-colors button.on { border-color: var(--gold-hi); box-shadow: 0 0 0 2px var(--night), 0 0 0 4px var(--gold); }
.dp-colors label { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px dashed var(--faint); display: grid; place-items: center; color: var(--faint); font: 600 16px/1 var(--sans); position: relative; overflow: hidden; }
.dp-colors label input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.dp-erase button, .dp-sel button { flex: 1; padding: 11px 6px; }
.dp-erase button.on { background: rgba(216, 181, 106, .25); color: var(--gold-hi); border-color: var(--gold); }
.dp-shapes { justify-content: space-between; flex-wrap: nowrap; }
.dp-shapes button { flex: 1; padding: 6px; display: grid; place-items: center; min-height: 44px; }
.dp-shapes button svg { width: 26px; height: 26px; }
.dp-shapes button.on { background: rgba(216, 181, 106, .25); color: var(--gold-hi); border-color: var(--gold); }
.dp-check { display: flex; align-items: center; gap: 8px; font: 500 15px/1 var(--sans); color: var(--dim); }
.dp-check input { width: 22px; height: 22px; accent-color: var(--gold); }
.dp-seltip { margin: 0; font: 400 13px/1.3 var(--sans); color: var(--faint); }
.dp .actions { padding-top: 12px; }
.dp .actions .btn { margin: 0 auto; }
/* sent: the paper lifts off toward the TV */
.dp-sent .dp-fly { position: relative; width: 190px; height: 170px; margin: 0 auto 12px; }
.dp-sheet { position: absolute; left: 25px; bottom: 0; width: 140px; height: 105px; background: #fff; border-radius: 4px; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); overflow: hidden; animation: dp-lift 1.5s cubic-bezier(.3, .1, .3, 1) both; }
.dp-sheet img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dp-glow { position: absolute; left: 10px; right: 10px; bottom: -6px; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(240, 215, 154, .7), transparent); animation: dp-pulse 1.5s ease-out both; }
@keyframes dp-lift { 0% { transform: translateY(0) rotate(0) scale(1); opacity: 1; } 60% { transform: translateY(-70px) rotate(-5deg) scale(.95); opacity: 1; } 100% { transform: translateY(-190px) rotate(8deg) scale(.5); opacity: 0; } }
@keyframes dp-pulse { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.dp-who { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.dp-who span { display: flex; flex-direction: column; align-items: center; gap: 5px; font: 500 13px/1 var(--sans); color: var(--dim); }
.dp-who i { width: 46px; height: 46px; border-radius: 50%; background: #1b2e2b center / cover; border: 2px solid var(--line); position: relative; }
.dp-who .sent i { border-color: var(--ready); }
.dp-who .sent i::after { content: "\2713"; position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--ready); color: #0b1716; font: 700 12px/18px var(--sans); text-align: center; }
