/* The clickable iPhone: a realistic frame with Paperwire's real screens inside,
   rebuilt from the app's SwiftUI (sizes in iPhone points, screen 393 × 852).
   Colours are the app's reading themes, set on .ip-screen by phone.js. */

.iphone { position: relative; width: var(--phone-w, 320px); max-width: 100%; flex: none; }
.iphone .ip-body {
  --sf: -apple-system, "SF Pro Text", "SF Pro", "Geist", system-ui, sans-serif;
  --ny: ui-serif, "New York", "Newsreader", Georgia, serif;
  position: absolute; left: 0; top: 0; width: 421px; height: 880px; transform-origin: 0 0;
  border-radius: 68px; padding: 4px;
  background: linear-gradient(145deg, #e6e2db 0%, #b9b3aa 22%, #8d877f 48%, #cbc6be 70%, #a29d95 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    inset 0 0 0 2px rgba(0, 0, 0, 0.18),
    0 2px 2px rgba(0, 0, 0, 0.12),
    0 40px 80px -30px rgba(40, 28, 16, 0.55),
    0 22px 40px -24px rgba(40, 28, 16, 0.45);
  font-family: var(--sf);
  -webkit-font-smoothing: antialiased;
  user-select: none; -webkit-user-select: none;
}
.ip-btn { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #8a847c, #d2cdc5 60%, #9b958d); }
.ip-btn.action { left: -3px; top: 152px; height: 34px; }
.ip-btn.vol-up { left: -3px; top: 216px; height: 64px; }
.ip-btn.vol-down { left: -3px; top: 292px; height: 64px; }
.ip-btn.power { right: -3px; top: 240px; height: 100px; }
.ip-btn.camera { right: -2px; top: 520px; height: 70px; width: 3px; opacity: 0.85; }
.ip-bezel { width: 100%; height: 100%; border-radius: 64px; padding: 10px; background: #050506; box-shadow: inset 0 0 0 1.5px #1c1c1f; }
.ip-screen {
  position: relative; width: 393px; height: 852px; border-radius: 54px; overflow: hidden; isolation: isolate;
  background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.3; text-align: left;
  transition: background-color 0.35s ease, color 0.35s ease;
}
.ip-screen *, .ip-screen *::before, .ip-screen *::after { box-sizing: border-box; }
/* Zero specificity, so every component's own button styles win. */
:where(.ip-screen button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
.ip-screen button:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
/* A soft glass glint across the screen, like light on a real iPhone. */
.ip-glint { position: absolute; inset: 0; z-index: 60; pointer-events: none; border-radius: 54px;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.05) 100%); }

.ip-island { position: absolute; z-index: 50; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; }
.ip-status { position: absolute; z-index: 40; left: 0; right: 0; top: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 32px 0 48px; pointer-events: none; }
.ip-status .t { font: 600 17px/1 var(--sf); letter-spacing: -0.2px; }
.ip-status .r { display: flex; align-items: center; gap: 6px; }
.ip-status svg { display: block; }
.ip-statusfade { position: absolute; z-index: 30; left: 0; right: 0; top: 0; height: 60px; pointer-events: none; background: linear-gradient(var(--bg) 55%, transparent); }
.ip-home { position: absolute; z-index: 50; left: 50%; bottom: 8px; width: 140px; height: 5px; margin-left: -70px; border-radius: 3px; background: var(--ink); opacity: 0.85; pointer-events: none; }

/* Pages: each tab has a stack; pushed pages slide in like UINavigationController. */
.ip-pages { position: absolute; inset: 0; }
.ip-page { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; background: var(--bg); scrollbar-width: none; overscroll-behavior: contain; }
.ip-page::-webkit-scrollbar { display: none; }
.ip-pad { padding: 58px 20px 140px; }
.ip-page.enter { animation: ip-in 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both; z-index: 2; box-shadow: -12px 0 30px rgba(0, 0, 0, 0.12); }
.ip-page.leave { animation: ip-out 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.ip-page.back-in { animation: ip-back-in 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.ip-page.back-out { animation: ip-back-out 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both; z-index: 2; }
@keyframes ip-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes ip-out { to { transform: translateX(-28%); filter: brightness(0.92); } }
@keyframes ip-back-in { from { transform: translateX(-28%); } to { transform: none; } }
@keyframes ip-back-out { to { transform: translateX(100%); } }

/* Shared bits */
.ip-row { display: flex; align-items: center; }
.ip-hdr { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 4px; }
.ip-title { font: 800 28px/1.1 var(--sf); letter-spacing: -0.4px; }
.ip-sub { margin-top: 3px; font-size: 12px; color: var(--ink2); }
.ip-circle { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--acc); }
.ip-glass { background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 0 0 0.5px color-mix(in srgb, var(--ink) 18%, transparent), 0 6px 18px rgba(0, 0, 0, 0.12); }
.ip-art { position: relative; display: grid; place-items: center; overflow: hidden; color: #fff; font: 700 1em/1 var(--ny); }
.ip-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.28), transparent 60%); }
.ip-art svg { position: relative; z-index: 1; }
.ip-kicker { font: 600 11px/1.3 var(--sf); letter-spacing: 1.1px; text-transform: uppercase; color: var(--ink2); }
.ip-sechead { font: 600 12px/1 var(--sf); letter-spacing: 1.4px; text-transform: uppercase; color: var(--acc); }
.ip-serif { font-family: var(--ny); }
.ip-card { background: var(--surface); border-radius: 20px; }
.ip-divider { height: 0.5px; background: var(--sep); }
.ip-chev { color: color-mix(in srgb, var(--ink) 30%, transparent); }
.ip-tap { transition: transform 0.15s ease, opacity 0.15s ease; }
.ip-tap:active { transform: scale(0.97); }

/* Today */
.ip-date { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ip-date b { font: 800 23px/1.1 var(--sf); letter-spacing: -0.3px; }
.ip-date span { font: 400 23px/1.1 var(--ny); color: var(--ink2); }
.ip-lead { display: block; width: 100%; margin-top: 20px; }
.ip-lead .ip-art { height: 172px; border-radius: 20px; font-size: 88px; }
.ip-lead .ip-kicker { margin-top: 12px; }
.ip-lead h3 { margin: 6px 0 0; font: 700 23px/1.18 var(--ny); letter-spacing: -0.2px; }
.ip-lead p { margin: 6px 0 0; font: 400 16px/1.4 var(--ny); color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ip-quick { margin-top: 20px; padding: 13px 16px 6px; }
.ip-quick-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ip-quick-h b { font: 700 18px/1.2 var(--ny); }
.ip-seg { display: flex; width: 118px; height: 32px; padding: 2px; border-radius: 16px; background: color-mix(in srgb, var(--ink) 9%, transparent); }
.ip-seg button { flex: 1; border-radius: 14px; font: 500 14px/1 var(--sf); text-align: center; }
.ip-seg button.on { background: var(--bg); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); font-weight: 600; }
.ip-qrow { display: flex; width: 100%; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 9px 0; }
.ip-qrow b { display: block; font: 600 17px/1.25 var(--ny); }
.ip-qrow small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink2); }
.ip-qrow em { font-style: normal; font-size: 13px; color: var(--ink2); white-space: nowrap; padding-top: 3px; }
.ip-section { margin-top: 26px; }
.ip-arow { display: flex; width: 100%; gap: 14px; align-items: flex-start; padding: 12px 0; }
.ip-arow .meta { flex: 1; min-width: 0; }
.ip-arow .feed { display: flex; align-items: center; gap: 6px; font: 600 12px/1.2 var(--sf); color: var(--ink2); }
.ip-arow .feed i { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }
.ip-arow b { display: block; margin-top: 5px; font: 600 17px/1.25 var(--ny); }
.ip-arow small { display: block; margin-top: 4px; font-size: 12px; color: var(--ink2); }
.ip-arow .ip-art { width: 64px; height: 64px; border-radius: 12px; font-size: 30px; flex: none; }
.ip-arow.read b { font-weight: 400; color: var(--ink2); }

/* Tab bar (iOS 26 glass capsule) */
.ip-tabbar { position: absolute; z-index: 35; left: 50%; bottom: 26px; width: 274px; height: 62px; margin-left: -137px; border-radius: 31px; display: flex; padding: 4px; }
.ip-tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 27px; font: 600 10px/1 var(--sf); color: var(--ink); transition: background-color 0.2s ease; }
.ip-tabbar button.on { color: var(--acc); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.ip-tabbar.hidden { transform: translateY(120px); }
.ip-tabbar, .ip-mini { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease; }

/* Mini player above the tab bar */
.ip-mini { position: absolute; z-index: 34; left: 16px; right: 16px; bottom: 98px; height: 58px; border-radius: 18px; display: flex; align-items: center; gap: 12px; padding: 0 10px; background: var(--surface); box-shadow: inset 0 0 0 0.5px var(--sep), 0 10px 24px rgba(0, 0, 0, 0.14); }
.ip-mini.hidden { transform: translateY(40px); opacity: 0; pointer-events: none; }
.ip-mini .ip-art { width: 40px; height: 40px; border-radius: 9px; font-size: 20px; flex: none; }
.ip-mini .mid { flex: 1; min-width: 0; }
.ip-mini b { display: block; font: 600 15px/1.2 var(--sf); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-mini .bar { height: 3px; margin-top: 6px; border-radius: 2px; background: var(--sep); overflow: hidden; }
.ip-mini .bar i { display: block; height: 100%; width: 0; background: var(--acc); }
.ip-mini .pp { width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink); }

/* Reader */
.ip-reader { padding: 108px 24px 150px; }
.ip-topbar { position: absolute; z-index: 32; left: 0; right: 0; top: 54px; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; pointer-events: none; }
.ip-topbar > * { pointer-events: auto; }
.ip-topbar .name { position: absolute; left: 70px; right: 70px; text-align: center; font: 600 16px/1 var(--sf); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.ip-topbar .grp { display: flex; gap: 8px; }
.ip-gbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.ip-art-kicker { font: 600 12px/1.3 var(--sf); letter-spacing: 1px; text-transform: uppercase; color: var(--acc); }
.ip-art-title { margin: 8px 0 0; font: 700 31px/1.12 var(--ny); letter-spacing: -0.4px; }
.ip-art-by { margin-top: 10px; font-size: 14px; color: var(--ink2); }
.ip-art-rule { height: 1px; margin: 20px 0 6px; background: var(--sep); }
.ip-body-text p, .ip-body-text h4, .ip-body-text blockquote { margin: 16px 0 0; font: 400 19px/1.62 var(--ny); }
.ip-body-text h4 { font-weight: 700; font-size: 22px; line-height: 1.3; margin-top: 26px; }
.ip-body-text blockquote { padding-left: 16px; border-left: 3px solid var(--acc); font-style: italic; }
.ip-body-text .w, .ip-body-text .g { border-radius: 0; transition: background-color 0.12s ease, box-shadow 0.12s ease; cursor: pointer; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ip-body-text .s { background: var(--block); box-shadow: 0 0.06em 0 0.06em var(--block), 0 -0.06em 0 0.06em var(--block); }
.ip-body-text .on { position: relative; border-radius: 0.18em; background: var(--word); box-shadow: 0 0 0 0.12em var(--word); }
.ip-body-text .mark { background: var(--block); box-shadow: 0 0.06em 0 0.06em var(--block), 0 -0.06em 0 0.06em var(--block); }
.ip-tools { position: absolute; z-index: 33; left: 16px; right: 16px; bottom: 30px; height: 56px; border-radius: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 18px; }
.ip-tools .aa { font: 600 17px/1 var(--sf); color: var(--acc); }
.ip-tools .prog { width: 140px; height: 4px; border-radius: 2px; background: var(--sep); overflow: hidden; }
.ip-tools .prog i { display: block; height: 100%; width: 0; background: var(--acc); }
.ip-listen { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: var(--onacc); }
.ip-offer { position: absolute; z-index: 33; left: 50%; bottom: 100px; transform: translateX(-50%); max-width: 330px; display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 26px; background: var(--acc); color: var(--onacc); font: 600 15px/1.2 var(--sf); white-space: nowrap; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2); animation: ip-rise 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.ip-offer span { overflow: hidden; text-overflow: ellipsis; }
@keyframes ip-rise { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* Listen */
.ip-player { margin-top: 18px; padding: 16px; border-radius: 22px; background: var(--surface); }
.ip-player .top { display: flex; gap: 12px; align-items: flex-start; }
.ip-player .ip-art { width: 52px; height: 52px; border-radius: 12px; font-size: 26px; flex: none; }
.ip-player .kick { font: 700 11px/1.3 var(--sf); letter-spacing: 1.1px; text-transform: uppercase; color: var(--acc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-player .ttl { margin-top: 3px; font: 700 20px/1.18 var(--ny); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ip-player .x { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink2); }
.ip-wire { position: relative; height: 18px; margin-top: 14px; }
.ip-wire::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: color-mix(in srgb, var(--ink) 16%, transparent); border-radius: 1px; }
.ip-wire .f { position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; width: 0; border-radius: 2px; background: var(--acc); }
.ip-wire .k { position: absolute; top: 50%; left: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--acc); }
.ip-wire .m { position: absolute; top: 50%; width: 1px; height: 8px; margin-top: -4px; background: color-mix(in srgb, var(--ink) 26%, transparent); }
.ip-wire .m.p { background: color-mix(in srgb, var(--acc) 60%, transparent); }
.ip-wire-l { display: flex; justify-content: space-between; margin-top: 5px; font: 400 12px/1.3 ui-monospace, "SF Mono", "Geist Mono", monospace; color: var(--ink2); }
.ip-transport { display: flex; align-items: center; margin-top: 10px; color: var(--acc); }
.ip-transport > * { flex: 1; display: grid; place-items: center; height: 54px; }
.ip-rate { padding: 5px 9px; border-radius: 14px; background: color-mix(in srgb, var(--acc) 12%, transparent); font: 700 15px/1 var(--sf); }
.ip-pbig { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: var(--onacc); box-shadow: 0 8px 18px color-mix(in srgb, var(--acc) 35%, transparent); }
.ip-chips { display: flex; gap: 8px; margin-top: 10px; }
.ip-chip { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 15px; background: color-mix(in srgb, var(--acc) 12%, transparent); color: var(--acc); font: 600 12px/1 var(--sf); }
.ip-chip.icon { width: 30px; padding: 0; justify-content: center; }
.ip-chip.push { margin-left: auto; }
.ip-mix { display: block; width: 100%; position: relative; height: 172px; margin-top: 20px; border-radius: 20px; overflow: hidden; color: #fff; text-align: left; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.45); }
.ip-mix .ip-art { position: absolute; inset: 0; }
.ip-mix::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.72)); }
.ip-mix .tag { position: absolute; z-index: 2; left: 12px; top: 12px; padding: 4px 8px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); font: 700 11px/1 var(--sf); letter-spacing: 1.3px; }
.ip-mix .txt { position: absolute; z-index: 2; left: 16px; right: 76px; bottom: 16px; }
.ip-mix .txt b { display: block; font: 700 30px/1.05 var(--ny); }
.ip-mix .txt small { display: block; margin-top: 5px; font: 600 12px/1.2 var(--sf); opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-mix .disc { position: absolute; z-index: 2; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--disc); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); }
.ip-tiles { display: flex; gap: 10px; margin-top: 20px; }
.ip-tile { flex: 1; min-height: 104px; padding: 12px; border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; text-align: left; }
.ip-tile .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.ip-tile b { margin-top: auto; font: 700 17px/1.2 var(--ny); }
.ip-tile small { margin-top: 2px; font-size: 12px; color: var(--ink2); }
.ip-shelf { margin-top: 22px; }
.ip-shelf h4 { margin: 0; font: 700 20px/1.2 var(--ny); }
.ip-shelf .s2 { margin-top: 2px; font-size: 12px; color: var(--ink2); }
.ip-scroller { display: flex; gap: 10px; margin: 10px -20px 0; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.ip-scroller::-webkit-scrollbar { display: none; }
.ip-st { flex: none; width: 128px; text-align: left; }
.ip-st .ip-art { width: 128px; height: 128px; border-radius: 16px; place-items: end start; padding: 10px; font: inherit; color: #fff; }
.ip-st .ip-art svg.bg { position: absolute; right: -14px; top: -10px; opacity: 0.22; z-index: 0; }
.ip-st .ip-art span { position: relative; z-index: 1; }
.ip-st .ip-art em { display: block; font: 700 11px/1 var(--sf); letter-spacing: 1.1px; font-style: normal; opacity: 0.85; }
.ip-st .ip-art strong { display: block; margin-top: 3px; font: 700 18px/1.1 var(--ny); }
.ip-st small { display: block; margin-top: 5px; font-size: 11px; color: var(--ink2); }
.ip-lang { flex: none; width: 156px; height: 76px; border-radius: 16px; padding: 12px; place-items: center start; text-align: left; }
.ip-lang strong { display: block; font: 700 20px/1.1 var(--ny); }
.ip-lang em { display: block; margin-top: 3px; font: 600 11px/1 var(--sf); font-style: normal; opacity: 0.9; }
.ip-src { flex: none; width: 90px; text-align: center; }
.ip-src .ip-art { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; font-size: 28px; }
.ip-src b { display: block; margin-top: 5px; font: 600 12px/1.2 var(--sf); }
.ip-src small { display: block; font-size: 11px; color: var(--ink2); }
.ip-next { margin-top: 24px; }
.ip-next h4 { margin: 0; font: 700 20px/1.2 var(--ny); }
.ip-next p { margin: 6px 0 0; font-size: 13px; color: var(--ink2); }
.ip-next .list { margin-top: 10px; padding: 4px 14px; border-radius: 18px; background: var(--surface); }
.ip-next .item { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.ip-next .item + .item { border-top: 0.5px solid var(--sep); }
.ip-next .item .ip-art { width: 40px; height: 40px; border-radius: 9px; font-size: 20px; flex: none; }
.ip-next .item b { display: block; font: 600 15px/1.25 var(--ny); }
.ip-next .item small { display: block; font-size: 12px; color: var(--ink2); }

/* Library */
.ip-list { margin-top: 20px; padding: 0 0 0 16px; border-radius: 22px; background: var(--surface); }
.ip-li { display: flex; width: 100%; align-items: center; gap: 14px; min-height: 52px; padding-right: 16px; }
.ip-li + .ip-li .lbl { border-top: 0.5px solid var(--sep); }
.ip-li .ico { width: 26px; display: grid; place-items: center; color: var(--acc); flex: none; }
.ip-li .lbl { flex: 1; display: flex; align-items: center; justify-content: space-between; align-self: stretch; font-size: 17px; gap: 8px; }
.ip-li .cnt { color: var(--ink2); }
.ip-cat { margin: 26px 0 0 12px; font: 600 17px/1 var(--sf); color: var(--ink2); }
.ip-plain .ip-li { min-height: 52px; }

/* Feed picker */
.ip-back { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 20px; font: 500 16px/1 var(--sf); color: var(--acc); }
.ip-pick h2 { margin: 16px 0 0; font: 700 32px/1.1 var(--ny); letter-spacing: -0.4px; }
.ip-pick > p { margin: 10px 0 0; font-size: 15px; line-height: 1.4; color: var(--ink2); }
.ip-search { display: flex; align-items: center; gap: 8px; height: 44px; margin-top: 18px; padding: 0 12px; border-radius: 12px; background: var(--surface); color: var(--ink2); font-size: 16px; }
.ip-langs { display: flex; gap: 8px; margin: 16px -20px 0; padding: 0 20px; overflow: hidden; }
.ip-langs span { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; display: grid; place-items: center; background: var(--surface); font: 600 14px/1 var(--sf); }
.ip-langs span.on { background: var(--acc); color: var(--onacc); }
.ip-pick h3 { margin: 22px 0 0; font: 700 19px/1.2 var(--ny); }
.ip-packs { display: flex; gap: 10px; margin: 10px -20px 0; padding: 0 20px 6px; overflow-x: auto; scrollbar-width: none; }
.ip-packs::-webkit-scrollbar { display: none; }
.ip-pack { position: relative; flex: none; width: 230px; height: 150px; border-radius: 18px; overflow: hidden; color: #fff; text-align: left; padding: 14px; display: flex; flex-direction: column; }
.ip-pack .ip-art { position: absolute; inset: 0; }
.ip-pack > *:not(.ip-art) { position: relative; z-index: 1; }
.ip-pack .hd { display: flex; justify-content: space-between; }
.ip-pack b { margin-top: auto; font: 700 17px/1.2 var(--ny); }
.ip-pack small { font-size: 12px; opacity: 0.88; line-height: 1.3; }
.ip-pack em { margin-top: 3px; font: 600 11px/1.2 var(--sf); font-style: normal; opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Over artwork, so the ring sits above it. */
.ip-pack.on::after { content: ""; position: absolute; z-index: 2; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.9); pointer-events: none; }
.ip-screen .ck { stroke: var(--onacc); }
.ip-pack .ck { stroke: var(--acc); }
.ip-topic { display: flex; align-items: center; gap: 8px; }
.ip-feeds { margin-top: 10px; border-radius: 16px; background: var(--surface); }
.ip-feed { display: flex; width: 100%; align-items: center; gap: 12px; padding: 10px 12px; text-align: left; }
.ip-feed + .ip-feed { border-top: 0.5px solid var(--sep); }
.ip-feed .ip-art { width: 40px; height: 40px; border-radius: 50%; font-size: 18px; flex: none; }
.ip-feed .meta { flex: 1; min-width: 0; }
.ip-feed b { display: block; font: 600 17px/1.2 var(--sf); }
.ip-feed small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-feed .add { color: var(--acc); width: 34px; display: grid; place-items: center; }
.ip-startbar { position: absolute; z-index: 33; left: 0; right: 0; bottom: 0; padding: 12px 20px 30px; border-radius: 0 0 54px 54px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ip-startbar button { width: 100%; height: 52px; border-radius: 26px; background: var(--acc); color: var(--onacc); text-align: center; font: 600 17px/1 var(--sf); }
.ip-startbar button:disabled { opacity: 0.45; }
.ip-toast { position: absolute; z-index: 45; left: 50%; top: 64px; transform: translateX(-50%); padding: 10px 16px; border-radius: 20px; background: var(--ink); color: var(--bg); font: 600 14px/1 var(--sf); white-space: nowrap; animation: ip-drop 0.3s ease both; }
@keyframes ip-drop { from { transform: translate(-50%, -12px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* A gentle pulse on the first thing to tap, until someone does. */
.ip-hint { position: relative; }
.ip-hint::before { content: ""; position: absolute; z-index: 5; width: 22px; height: 22px; right: 16px; top: 16px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); animation: ip-pulse 1.8s ease-out infinite; pointer-events: none; }
@keyframes ip-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); } 100% { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); } }

@media (prefers-reduced-motion: reduce) {
  .ip-page.enter, .ip-page.leave, .ip-page.back-in, .ip-page.back-out { animation-duration: 0.01s; }
  .ip-hint::before { animation: none; }
  .ip-offer, .ip-toast { animation: none; }
}
