/* Lupa, the Dec 2026 design (docs/design/new-design-2026-12). Colours, fonts and corners come from the
   brand kit (brand/tokens.css, served as /brand/tokens.css). Phones: Home is a dark full-screen scroll,
   Explore and Saved are photo grids, a bottom bar. Computers: menu left, the find in the middle, topics right. */
:root {
  --bar: 76px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --night-shade: 42, 23, 16;
  --on-dark: #FFF8EF;
  --on-dark-2: #F5EDE2;
  --on-dark-3: rgba(245, 237, 226, 0.75);
  --glass: rgba(42, 23, 16, 0.55);
  --err: #B23A1A;
  --pat-wonder: url(/brand/patterns/lupa-pattern-wonder-light.svg);
  --pat-lens: url(/brand/patterns/lupa-pattern-lens-light.svg);
  --pat-trail: url(/brand/patterns/lupa-pattern-trail-light.svg);
  --btn-bg: var(--lupa-ember);
  --btn-ink: var(--lupa-paper);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --err: #FF9C7A;
    --pat-wonder: url(/brand/patterns/lupa-pattern-wonder-dark.svg);
    --pat-lens: url(/brand/patterns/lupa-pattern-lens-dark.svg);
    --pat-trail: url(/brand/patterns/lupa-pattern-trail-dark.svg);
    --btn-bg: var(--lupa-fox-glow);
    --btn-ink: var(--lupa-night);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--lupa-bg); color: var(--lupa-text); font-family: var(--lupa-font); font-size: var(--lupa-size-body); line-height: var(--lupa-line-body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
body.locked { overflow: hidden; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--lupa-accent-text); text-decoration: none; }
:focus-visible { outline: 3px solid var(--lupa-accent); outline-offset: 2px; border-radius: 8px; }
.ico { width: 24px; height: 24px; flex: none; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--lupa-text-soft); }
.small { font-size: var(--lupa-size-small); line-height: var(--lupa-line-small); }
.center { text-align: center; }
.label { font-size: var(--lupa-size-label); line-height: var(--lupa-line-label); font-weight: 800; letter-spacing: var(--lupa-label-spacing); text-transform: uppercase; color: var(--lupa-accent-text); }
.no-photo { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 70% 30%, #5a2d1c, var(--lupa-night) 70%); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 28px; border-radius: var(--lupa-radius-pill); background: var(--btn-bg); color: var(--btn-ink); font-size: 17px; font-weight: 800; }
.btn.wide { width: 100%; }
.btn.big { height: 56px; font-size: 18px; }
.btn:disabled { opacity: 0.6; cursor: default; }
.link-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px; font-size: 15px; font-weight: 700; color: var(--lupa-accent-text); }
.link-btn .ico { width: 20px; height: 20px; }
.round { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--lupa-surface); color: var(--lupa-text); flex: none; }
.round .ico { width: 22px; height: 22px; }
.lang-pill { display: inline-flex; gap: 2px; background: var(--lupa-surface); border-radius: var(--lupa-radius-pill); padding: 4px; }
.lang-pill button { font-size: 13px; font-weight: 800; padding: 8px 12px; border-radius: var(--lupa-radius-pill); color: var(--lupa-text-soft); }
.lang-pill button[aria-pressed="true"] { background: var(--lupa-peach); color: var(--lupa-bark); }

/* Fox (only on Lupa's own screens: welcome, empty, loading, sign in) */
.fox-ring { width: 180px; height: 180px; border-radius: 50%; background: var(--lupa-surface); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; flex: none; }
.fox-ring .fox { height: 94%; width: auto; display: block; }
.fox-ring.big { width: 220px; height: 220px; align-items: center; }
.fox-ring.big .fox { height: 77%; }
.fox-ring.huge { width: 260px; height: 260px; }
.fox-ring.huge .fox { height: 92%; }
.fox-ring.peek { align-items: center; }
.fox-ring.peek .fox { height: 78%; }
.state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 32px 36px; min-height: 60vh; }
.state h2 { font-size: 22px; line-height: 28px; font-weight: 800; margin-top: 10px; }
.state p { font-size: 16px; line-height: 24px; color: var(--lupa-text-soft); max-width: 320px; }
.state .btn { margin-top: 14px; }

/* ---------- Home: the endless scroll (phones) ---------- */
.home { position: fixed; inset: 0 0 calc(var(--bar) + var(--safe-b)) 0; background: var(--lupa-night); color: var(--on-dark); overflow: hidden; }
.home .state { min-height: 100%; }
.home .state p { color: var(--on-dark-3); }
.home .state h2 { color: var(--on-dark); }
.home .fox-ring { background: var(--lupa-bark); }
.feed { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; scrollbar-width: none; outline: none; }
.feed::-webkit-scrollbar { display: none; }
.slide { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.find { position: absolute; inset: 0; }
.media { position: absolute; inset: 0; background: var(--lupa-night); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.media img, .media .vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.media .vid { opacity: 0; transition: opacity var(--lupa-calm); }
.media .vid.in { opacity: 1; }
.shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(var(--night-shade), 0.75) 0, rgba(var(--night-shade), 0) 140px),
              linear-gradient(to top, rgba(var(--night-shade), 0.95) 0, rgba(var(--night-shade), 0.6) 236px, rgba(var(--night-shade), 0) 430px); }
.tease .shade { background: linear-gradient(to bottom, rgba(var(--night-shade), 0.75) 0, rgba(var(--night-shade), 0) 140px),
              linear-gradient(to top, rgba(var(--night-shade), 0.96) 0, rgba(var(--night-shade), 0.65) 258px, rgba(var(--night-shade), 0) 470px); }
.home-top { position: absolute; z-index: 5; top: calc(14px + var(--safe-t)); left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.home-logo { height: 34px; width: auto; display: block; }
.new-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--glass); border-radius: var(--lupa-radius-pill); padding: 7px 12px; font-size: 13px; line-height: 18px; font-weight: 800; color: var(--on-dark); }
.new-pill .ico { width: 16px; height: 16px; }
.info { position: absolute; left: 18px; right: 84px; bottom: 36px; display: flex; flex-direction: column; gap: 10px; }
.tease .info { right: 18px; gap: 12px; }
.tag { align-self: flex-start; font-size: 12px; line-height: 16px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lupa-bark); background: var(--lupa-peach); border-radius: var(--lupa-radius-pill); padding: 5px 10px; }
.f-title { font-size: 27px; line-height: 33px; font-weight: 800; }
.f-tease { font-size: 30px; line-height: 36px; font-weight: 800; }
.f-take { font-size: 16px; line-height: 24px; color: var(--on-dark-2); }
.story-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; line-height: 22px; font-weight: 800; color: var(--lupa-peach); }
.story-link .ico { width: 18px; height: 18px; }
.see-btn { align-self: flex-start; height: 52px; padding: 0 24px; border-radius: var(--lupa-radius-pill); background: var(--lupa-paper); color: var(--lupa-bark); display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; }
.see-btn .ico { width: 20px; height: 20px; }
.credit { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--on-dark-3); }
.credit a { color: inherit; text-decoration: none; }
.acts { position: absolute; right: 12px; bottom: 124px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.act { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; line-height: 14px; font-weight: 800; color: var(--on-dark); }
.act-i { width: 50px; height: 50px; border-radius: 50%; background: var(--glass); display: flex; align-items: center; justify-content: center; transition: transform var(--lupa-fast) var(--lupa-ease), color var(--lupa-fast); }
.act-i .ico { width: 26px; height: 26px; }
.act:active .act-i { transform: scale(0.9); }
.act.on[data-a="fav"] .act-i { color: var(--lupa-fox-glow); }
.act.on[data-a="wow"] .act-i { color: var(--lupa-peach); background: rgba(232, 121, 78, 0.45); }
.act.on[data-a="listen"] .act-i { color: var(--lupa-night); background: var(--lupa-peach); }
.swipe { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); color: rgba(245, 237, 226, 0.7); }
.swipe .ico { width: 22px; height: 22px; }
.next-btn { display: none; }
.snd { position: absolute; z-index: 4; top: calc(60px + var(--safe-t)); right: 14px; width: 44px; height: 44px; border-radius: 50%; background: var(--glass); color: var(--on-dark); display: flex; align-items: center; justify-content: center; }
.snd .ico { width: 22px; height: 22px; }
.cap { position: absolute; left: 24px; right: 24px; top: 34%; text-align: center; font-size: 26px; line-height: 32px; font-weight: 800; color: var(--on-dark); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55); pointer-events: none; opacity: 0; }
.cap.in { animation: capIn 0.25s var(--lupa-ease) forwards; }
@keyframes capIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Bottom bar (phones) ---------- */
.tabbar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: calc(var(--bar) + var(--safe-b)); padding-bottom: calc(6px + var(--safe-b)); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--lupa-surface); border-top: 1px solid var(--lupa-line); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--lupa-text-soft); }
.tab .ico { width: 26px; height: 26px; }
.tab[aria-current="page"] { color: var(--lupa-accent-text); font-weight: 800; }
body[data-view="home"] .tabbar { background: var(--lupa-night); border-top-color: transparent; }
body[data-view="home"] .tab { color: #D9C9B8; }
body[data-view="home"] .tab[aria-current="page"] { color: var(--lupa-fox-glow); }

/* ---------- Explore and Saved ---------- */
.side, .rail { display: none; }
.page-wrap { padding-bottom: calc(var(--bar) + var(--safe-b) + 24px); min-height: 100dvh; }
.page { min-height: calc(100dvh - var(--bar) - var(--safe-b)); display: flex; flex-direction: column; }
.page-top { padding: calc(20px + var(--safe-t)) 18px 14px; display: flex; flex-direction: column; gap: 14px; }
.page-top h1 { font-size: var(--lupa-size-title); line-height: var(--lupa-line-title); font-weight: 800; }
.pat-lens { background: var(--pat-lens) repeat; background-size: 320px 320px; }
.pat-trail { background: var(--lupa-bg) var(--pat-trail) repeat; background-size: 360px 360px; }
.pat-wonder { background: var(--lupa-bg) var(--pat-wonder) repeat; background-size: 360px 360px; }
.search { display: flex; align-items: center; gap: 10px; height: 52px; border-radius: var(--lupa-radius-pill); background: var(--lupa-surface); padding: 0 18px; color: var(--lupa-accent-text); box-shadow: inset 0 0 0 1px var(--lupa-line); }
.search .ico { width: 22px; height: 22px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font: 600 16px var(--lupa-font); color: var(--lupa-text); }
.search input::placeholder { color: var(--lupa-text-soft); }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--lupa-accent); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px; padding: 0 18px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; background: var(--lupa-surface); color: var(--lupa-text); font-size: 14px; line-height: 20px; font-weight: 700; border-radius: var(--lupa-radius-pill); padding: 10px 16px; }
.chip[aria-pressed="true"] { background: var(--lupa-text); color: var(--lupa-bg); font-weight: 800; }
.count { display: inline-flex; align-items: center; gap: 6px; font-size: var(--lupa-size-small); line-height: var(--lupa-line-small); font-weight: 600; color: var(--lupa-text-soft); }
.count .ico { width: 18px; height: 18px; color: var(--lupa-fox); }
.page-body { padding: 10px 16px 0; }
.page-body > .count { margin-bottom: 10px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; height: 230px; border-radius: var(--lupa-radius-lg); overflow: hidden; display: block; color: var(--on-dark); background: var(--lupa-bark); text-align: left; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--lupa-calm) var(--lupa-ease); }
.tile:hover img { transform: scale(1.03); }
.tile-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 12px; background: linear-gradient(to top, rgba(var(--night-shade), 0.85), rgba(var(--night-shade), 0)); font-size: 15px; line-height: 20px; font-weight: 800; }
.note { padding: 32px 16px; text-align: center; color: var(--lupa-text-soft); }
.saved-empty .state { flex: 1; min-height: 0; }
.account { margin: 24px 16px 0; padding: 18px; border-radius: var(--lupa-radius-lg); background: var(--lupa-surface); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.account h2 { font-size: var(--lupa-size-label); line-height: var(--lupa-line-label); font-weight: 800; letter-spacing: var(--lupa-label-spacing); text-transform: uppercase; color: var(--lupa-accent-text); }
.account .lang-pill { background: var(--lupa-bg); }
.account p { font-size: var(--lupa-size-small); line-height: var(--lupa-line-small); }
.account .link-btn { margin-left: -8px; }

/* ---------- Welcome and Sign in ---------- */
.gate { min-height: 100dvh; }
.welcome { display: flex; flex-direction: column; align-items: center; padding: calc(56px + var(--safe-t)) 28px calc(40px + var(--safe-b)); }
.welcome > * { max-width: 420px; }
.gate-mark { width: 56px; height: 56px; display: block; }
.gate-art { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px 0; }
.hello { font-size: var(--lupa-size-display); line-height: var(--lupa-line-display); font-weight: 800; text-align: center; }
.hello-b { font-size: var(--lupa-size-body); line-height: var(--lupa-line-body); text-align: center; color: var(--lupa-text-soft); margin-top: 10px; max-width: 290px; }
.lang-row { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }
.lang-row button { background: var(--lupa-surface); font-size: 15px; font-weight: 700; border-radius: var(--lupa-radius-pill); padding: 12px 16px; }
.lang-row button[aria-pressed="true"] { background: var(--lupa-peach); color: var(--lupa-bark); font-weight: 800; }
.welcome .btn { margin-top: 24px; }
.welcome .link-btn { margin-top: 14px; }
.signin { padding: calc(16px + var(--safe-t)) 24px calc(32px + var(--safe-b)); }
.gate-bar { display: flex; align-items: center; justify-content: space-between; max-width: 460px; margin: 0 auto; }
.gate-in { max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; }
.signin .gate-art { flex: none; padding: 28px 0 0; }
.signin h1 { margin-top: 24px; font-size: var(--lupa-size-title); line-height: var(--lupa-line-title); font-weight: 800; text-align: center; }
.signin .muted { margin-top: 6px; font-size: 16px; line-height: 24px; }
#auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 700; }
.field input { height: 52px; border-radius: var(--lupa-radius-md); border: 0; background: var(--lupa-surface); box-shadow: inset 0 0 0 1px var(--lupa-line); padding: 0 16px; font: 600 16px var(--lupa-font); color: var(--lupa-text); outline: none; }
.field input:focus { box-shadow: inset 0 0 0 2px var(--lupa-accent); }
.err { color: var(--err); font-size: 14px; line-height: 20px; font-weight: 700; min-height: 0; }
.err:empty { display: none; }
.signin .link-btn { align-self: center; margin-top: 12px; }

/* ---------- The whole story ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.story { position: absolute; inset: 0; background: var(--lupa-bg); overflow: hidden; }
.s-photo { position: absolute; top: 0; left: 0; right: 0; height: min(380px, 45dvh); background: var(--lupa-night); }
.s-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-close { position: absolute; z-index: 2; top: calc(16px + var(--safe-t)); right: 16px; background: var(--lupa-paper); color: var(--lupa-bark); box-shadow: var(--lupa-shadow-soft); }
.s-panel { position: absolute; top: calc(min(380px, 45dvh) - 36px); left: 0; right: 0; bottom: 0; background: var(--lupa-surface); border-radius: var(--lupa-radius-card) var(--lupa-radius-card) 0 0; padding: 22px 22px 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; }
.s-panel h1 { font-size: 24px; line-height: 30px; font-weight: 800; }
.s-key { display: flex; gap: 10px; align-items: flex-start; background: var(--lupa-bg); border-radius: var(--lupa-radius-md); padding: 12px 14px; color: var(--lupa-forest); }
.s-key .ico { width: 22px; height: 22px; margin-top: 1px; }
.s-key p { font-size: 16px; line-height: 23px; font-weight: 700; color: var(--lupa-text); }
.s-body, .s-deeper p:not(.label) { font-size: 16px; line-height: 25px; }
.s-deeper { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.s-panel .credit { font-size: 13px; line-height: 18px; color: var(--lupa-text-soft); }
.s-panel .credit a { color: var(--lupa-accent-text); text-decoration: none; }
.s-acts { position: sticky; bottom: 0; margin-top: auto; padding: 14px 0 calc(18px + var(--safe-b)); background: var(--lupa-surface); display: flex; align-items: center; gap: 8px; }
.round.soft { width: 48px; height: 48px; background: var(--lupa-bg); color: var(--lupa-fox); }
.round.soft .ico { width: 24px; height: 24px; }
.round.soft.on { background: var(--lupa-peach); color: var(--lupa-fox); }
.round.soft.on[data-a="listen"] { color: var(--lupa-bark); }
.pill { height: 48px; border-radius: var(--lupa-radius-pill); display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; font-size: 15px; font-weight: 800; flex: none; }
.pill .ico { width: 20px; height: 20px; }
.pill.soft { background: var(--lupa-bg); color: var(--lupa-accent-text); }
.pill.forest { margin-left: auto; padding: 0 18px 0 12px; background: var(--lupa-forest); color: var(--lupa-paper); font-size: 16px; gap: 8px; }
.pill.forest .ico { width: 22px; height: 22px; }

/* ---------- Small things ---------- */
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(var(--bar) + var(--safe-b) + 16px); transform: translate(-50%, 12px); max-width: calc(100% - 32px); background: var(--lupa-text); color: var(--lupa-bg); padding: 10px 16px; border-radius: var(--lupa-radius-md); font-size: 14px; line-height: 20px; font-weight: 700; box-shadow: var(--lupa-shadow-card); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.burst { position: fixed; z-index: 70; width: 96px; height: 96px; margin: -48px 0 0 -48px; pointer-events: none; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35)); animation: burst 0.9s cubic-bezier(.2, .8, .3, 1) forwards; }
.burst svg { width: 100%; height: 100%; }
.burst.heart { color: var(--lupa-fox-glow); }
.burst.sparkle { color: var(--lupa-peach); }
@keyframes burst { 0% { transform: scale(0.2); opacity: 0; } 15% { transform: scale(1.15); opacity: 1; } 30% { transform: scale(0.94); } 45% { transform: scale(1); } 75% { opacity: 1; } 100% { transform: scale(1) translateY(-26px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .burst { animation-duration: 0.01s; } .tile img, .act-i { transition: none; } }

/* ---------- Computers: menu left, the find in the middle, topics right ---------- */
@media (min-width: 1024px) {
  .app { display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; min-height: 100vh; }
  .tabbar { display: none !important; }
  .side { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; padding: 28px 18px; background: var(--lupa-surface); border-right: 1px solid var(--lupa-line); }
  .side-logo { display: block; margin: 0 0 24px 6px; align-self: flex-start; }
  .side-logo img { height: 44px; width: auto; display: block; }
  .side-link { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; border-radius: var(--lupa-radius-md); color: var(--lupa-text); font-size: 16px; font-weight: 700; }
  .side-link .ico { color: var(--lupa-text-soft); }
  .side-link:hover { background: var(--lupa-bg); }
  .side-link[aria-current="page"] { background: var(--lupa-peach); color: var(--lupa-bark); font-weight: 800; }
  .side-link[aria-current="page"] .ico { color: var(--lupa-ember); }
  .side-foot { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
  .side-foot .lang-pill { background: var(--lupa-bg); }
  .side-foot .link-btn { margin-left: -8px; }
  .rail { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; padding: 32px 28px 32px 0; }
  .topics { display: flex; flex-direction: column; gap: 10px; }
  .topic { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; color: var(--lupa-text); text-align: left; }
  .topic img, .topic .no-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 3px solid var(--lupa-fox); flex: none; }
  .topic:hover span { color: var(--lupa-accent-text); }
  .topic.on img { border-color: var(--lupa-forest); }
  .rail-fox { margin-top: auto; background: var(--lupa-surface); border-radius: var(--lupa-radius-lg); padding: 18px; display: flex; align-items: center; gap: 14px; }
  .rail-fox .fox { width: 88px; height: auto; flex: none; }
  .rail-fox p { font-size: 16px; line-height: 22px; font-weight: 800; }
  .main { min-width: 0; }

  /* Home on a computer: one find card at a time, scroll or press the arrow keys for the next */
  .home { position: relative; inset: auto; height: 100vh; background: var(--lupa-bg); color: var(--lupa-text); }
  .home .state p { color: var(--lupa-text-soft); }
  .home .state h2 { color: var(--lupa-text); }
  .home .fox-ring { background: var(--lupa-surface); }
  .home-top, .swipe, .shade { display: none; }
  .slide { display: flex; justify-content: center; align-items: center; padding: 32px 48px; }
  .find { position: relative; inset: auto; width: 480px; max-width: 100%; background: var(--lupa-surface); border-radius: var(--lupa-radius-card); box-shadow: var(--lupa-shadow-card); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .media { position: relative; inset: auto; grid-column: 1 / -1; height: min(440px, calc(100vh - 330px)); min-height: 240px; }
  .info, .tease .info { position: static; grid-column: 1 / -1; padding: 20px 24px 8px; gap: 6px; }
  .tag { background: none; padding: 0; color: var(--lupa-accent-text); }
  .f-title { font-size: 24px; line-height: 30px; }
  .f-tease { font-size: 28px; line-height: 34px; }
  .f-take { font-size: 17px; line-height: 26px; color: var(--lupa-text); }
  .story-link { color: var(--lupa-accent-text); margin-top: 4px; }
  .see-btn { background: var(--btn-bg); color: var(--btn-ink); margin: 8px 0 4px; }
  .credit { color: var(--lupa-text-soft); }
  .tease .info { padding-bottom: 24px; }
  .acts { position: static; flex-direction: row; gap: 4px; padding: 6px 18px 20px; }
  .act { color: var(--lupa-text-soft); }
  .act-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .act-i { width: 44px; height: 44px; background: transparent; color: var(--lupa-fox); }
  .act-i .ico { width: 24px; height: 24px; }
  .act:hover .act-i { background: var(--lupa-bg); }
  .act.on[data-a="fav"] .act-i { color: var(--lupa-fox); background: var(--lupa-peach); }
  .act.on[data-a="wow"] .act-i { color: var(--lupa-ember); background: var(--lupa-peach); }
  .act.on[data-a="listen"] .act-i { color: var(--lupa-bark); background: var(--lupa-peach); }
  .next-btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px 0 14px; margin: 0 24px 20px 0; border-radius: var(--lupa-radius-pill); background: var(--lupa-forest); color: var(--lupa-paper); font-size: 16px; font-weight: 800; }
  .next-btn .ico { width: 22px; height: 22px; }
  .snd { top: 14px; right: 14px; }
  .cap { top: 150px; }

  .page-wrap { padding: 0 32px 40px; min-height: 100vh; }
  .page { min-height: 100vh; max-width: 900px; margin: 0 auto; }
  .page-top { padding: 32px 24px 16px; border-radius: 0 0 var(--lupa-radius-lg) var(--lupa-radius-lg); }
  .page-body { padding: 10px 24px 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .account { display: none; }

  .sheet-wrap { background: rgba(var(--night-shade), 0.5); display: flex; align-items: center; justify-content: center; padding: 24px 300px 24px 240px; }
  .story { position: relative; inset: auto; width: 520px; max-width: 100%; height: min(860px, calc(100vh - 48px)); border-radius: var(--lupa-radius-card); box-shadow: var(--lupa-shadow-card); }
  .s-photo, .s-panel { --ph: min(360px, 42vh); }
  .s-photo { height: var(--ph); }
  .s-panel { top: calc(var(--ph) - 36px); }
  .s-close { top: 16px; }
  .s-acts { padding-bottom: 20px; }
  .toast { bottom: 32px; }
}
