/* Visual system matches himanshugupta.art: flat dark surfaces, Manrope, Geist Mono for small data, moss accent. */
:root {
  --bg: #0B0F12;
  --surface: #11171B;
  --raised: #182026;
  --line: #222C33;
  --fg: #E5E7EB;
  --mut: #9AA3AB;
  --moss: #4A6B5D;
  --moss-hi: #557A6B;
  --moss-text: #8DB3A1;
  --ink: var(--fg);
  --muted: var(--mut);
  --card: var(--surface);
  --accent: var(--moss);
  --accent-ink: #ffffff;
  --serif: "Manrope", system-ui, sans-serif;
  --sans: "Manrope", system-ui, "Nirmala UI", "Noto Sans Devanagari", sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/24px var(--sans);
  min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
a { color: var(--moss-text); }
[hidden] { display: none !important; }
main { flex: 1; width: 100%; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 16px; }

/* ---------- header and footer ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1200px; margin: 0 auto; width: 100%; padding: 20px 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font: 600 14px/20px var(--sans); }
.brand .mark { width: 28px; height: 28px; }
.brand .mark .hex { stroke: var(--moss-text); }
.nav nav { display: flex; gap: 20px; }
.nav nav a { color: var(--mut); text-decoration: none; font: 600 14px/20px var(--sans); }
.nav nav a:hover, .nav nav a:focus-visible { color: var(--fg); }
@media (max-width: 560px) { .nav nav { display: none; } }

.footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 32px 24px 48px; }
.credits { max-width: 720px; margin: 0 auto; padding: 0 24px; color: var(--mut); font-size: 13px; line-height: 20px; }
.credits h2 { font: 600 14px/20px var(--sans); color: var(--fg); margin: 0 0 12px; }
.credits ul { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 6px; }
.credits p { margin: 0; }

/* ---------- landing ---------- */
.landing { max-width: 720px; margin: 0 auto; padding: 48px 24px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font: 600 12px/16px var(--sans); color: var(--moss-text); margin: 0 0 12px; }
h1 { font: 600 clamp(34px, 7vw, 56px)/1.05 var(--serif); margin: 0 0 16px; letter-spacing: -.02em; text-wrap: balance; }
.lede { color: var(--mut); margin: 0 0 32px; max-width: 58ch; }
.drop {
  display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center;
  padding: 40px 16px; border: 1px dashed var(--line); border-radius: 16px; background: var(--surface);
  cursor: pointer; text-align: center; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.drop span { color: var(--mut); font-size: 14px; }
.drop:hover, .drop:focus-visible, .drop.over { border-color: var(--moss-hi); background: var(--raised); outline: none; }
.row { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.status { min-height: 1.5em; color: var(--mut); font-size: 14px; margin: 12px 0 0; }
.status.err { color: #e58b80; }
.how { margin-top: 20px; color: var(--mut); font-size: 14px; line-height: 22px; }
.how summary { cursor: pointer; color: var(--fg); font-weight: 600; }
.how ol { padding-left: 20px; display: grid; gap: 8px; }
.how code { font-family: var(--mono); font-size: 12px; background: var(--surface); padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); }
.how b { color: var(--fg); font-weight: 600; }

.btn {
  font: 600 14px/20px var(--sans); padding: 10px 18px; border-radius: 9999px; border: 1px solid var(--moss);
  background: var(--moss); color: #fff; cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover:not(:disabled) { background: var(--moss-hi); border-color: var(--moss-hi); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover:not(:disabled) { background: var(--raised); border-color: var(--line); }
.btn.small { padding: 6px 14px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: default; }
.btn:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--moss-text); outline-offset: 2px; }

/* ---------- viewer ---------- */
.viewer { max-width: 720px; margin: 0 auto; padding: 16px 24px 0; display: flex; flex-direction: column; align-items: center; }
.bar { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.field { display: flex; align-items: center; gap: 8px; }
.field label { font-size: 13px; color: var(--mut); }
select { font: 500 14px var(--sans); padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); }
.deck { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.5); border: 1px solid var(--line); }
.scaler { width: 360px; height: 640px; transform-origin: top left; position: relative; background: #000; }
.controls { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }

.progress { position: absolute; z-index: 5; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; pointer-events: none; }
.progress i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); }
.progress i.done { background: rgba(255,255,255,.95); }
.tap { position: absolute; top: 0; bottom: 0; z-index: 4; width: 34%; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tap.prev { left: 0; }
.tap.next { right: 0; width: 66%; }
.tap:focus-visible { outline: 2px solid rgba(255,255,255,.7); outline-offset: -4px; }

.cta { max-width: 440px; margin: 20px 0 0; text-align: center; font-size: 14px; color: var(--mut); }
.skipbox { width: 100%; max-width: 440px; margin-top: 8px; font-size: 13px; line-height: 20px; color: var(--mut); }
.skipbox summary { cursor: pointer; color: var(--fg); font-weight: 600; }
.skipbox ul { padding-left: 18px; margin: 8px 0; display: grid; gap: 8px; }
.skipbox .names { font-size: 12px; opacity: .85; }
.skipbox p { margin: 6px 0 0; }
.paste textarea { width: 100%; margin-top: 8px; padding: 10px; font: 14px/1.4 var(--sans); border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); resize: vertical; }

/* ---------- story cards ---------- */
/* Instagram covers roughly the top and bottom 14% of a Story, so keep everything inside that margin */
.slide {
  position: absolute; inset: 0; display: flex; visibility: hidden; flex-direction: column; will-change: transform; transition: transform .42s var(--ease); padding: 90px 28px 90px;
  color: #fff; overflow: hidden; font-family: var(--sans);
}
.slide .k { text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 600; opacity: .8; margin: 0 0 10px; }
.slide h2 { font: 800 34px/1.05 var(--serif); margin: 0; letter-spacing: -.02em; }
.slide .big { font: 800 112px/0.95 var(--serif); letter-spacing: -.04em; margin: 8px 0 6px; }
.slide .big.md { font-size: 84px; }
.slide .big .unit { font-size: 32px; letter-spacing: -.01em; font-weight: 600; }
.slide .sub { font-size: 16px; line-height: 1.35; opacity: .92; margin: 0; max-width: 28ch; }
.slide .foot { margin-top: auto; font-size: 11px; opacity: .65; }
.slide .spacer { flex: 1; }
.slide.active .big, .slide.active h2, .slide.active .pop { animation: rise .55s cubic-bezier(.2,.8,.2,1) both; }
.slide.active .pop:nth-child(2) { animation-delay: .08s; }
.slide.active .pop:nth-child(3) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .slide.active .big, .slide.active h2, .slide.active .pop { animation: none; } }

.t-forest { background: linear-gradient(160deg, #0d3b2e, #1f7a5a 70%, #3aa57d); }
.t-dusk   { background: linear-gradient(160deg, #2b1a4a, #5a2d82 60%, #c0578a); }
.t-sun    { background: linear-gradient(160deg, #7a2d0e, #d9622b 60%, #f2a541); }
.t-sky    { background: linear-gradient(160deg, #0b2a4f, #1c63a8 60%, #5fb3e6); }
.t-berry  { background: linear-gradient(160deg, #4a0f2a, #a3224f 65%, #e06a7d); }
.t-night  { background: linear-gradient(160deg, #0a0f1f, #1b2750 70%, #34508f); }
.t-moss   { background: linear-gradient(160deg, #263a12, #5b7f1f 65%, #a2c04a); }

.mosaic { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; align-content: start; margin: 14px -6px 0; }
.mosaic.cols4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mosaic.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mosaic img { width: 100%; min-width: 0; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.mosaic img:nth-child(3n) { transform: rotate(-5deg); }
.mosaic img:nth-child(3n+1) { transform: rotate(4deg); }
.hero-st { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.pair { display: flex; align-items: flex-end; justify-content: space-around; gap: 8px; height: 240px; margin-top: 8px; }
.pair figure { margin: 0; text-align: center; font-size: 12px; line-height: 1.25; }
.pair img { display: block; margin: 0 auto 6px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); border-radius: 12px; padding: 8px 12px; font-size: 13px; line-height: 1.25; }
.chip b { display: block; font: 800 22px/1.1 var(--serif); }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 190px; margin-top: 18px; }
.bars div { flex: 1; text-align: center; font-size: 10px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.bars span { display: block; background: rgba(255,255,255,.45); border-radius: 4px 4px 0 0; margin-bottom: 4px; min-height: 3px; }
.bars .peak span { background: #fff; }
.list { list-style: none; margin: 14px 0 0; padding: 0; font-size: 14px; display: grid; gap: 6px; }
.list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 6px; }
.list li span:last-child { opacity: .8; white-space: nowrap; }
.persona { font: 800 40px/1.02 var(--serif); margin: 6px 0 10px; letter-spacing: -.02em; }
.mark { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 11px; opacity: .8; }




/* ---------- glass dialog ---------- */
dialog.glass {
  width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 20px; margin: auto; color: var(--fg);
  border: 1px solid rgba(255,255,255,.16); border-radius: 24px;
  background: rgba(24,32,38,.94);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden; flex-direction: column;
}
dialog.glass[open] { display: flex; animation: glassIn .28s var(--ease) both; }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  dialog.glass { background: rgba(24,32,38,.58); -webkit-backdrop-filter: blur(26px) saturate(150%); backdrop-filter: blur(26px) saturate(150%); }
}
dialog.glass::backdrop { background: rgba(5,8,10,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@keyframes glassIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog.glass[open] { animation: none; } }

.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dlg-head h2 { font: 600 20px/28px var(--sans); margin: 0; }
.dlg-sub { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--mut); }
.x { width: 32px; height: 32px; border-radius: 9999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: var(--fg); font-size: 20px; line-height: 1; cursor: pointer; }
.x:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.x:disabled { opacity: .4; cursor: default; }
.dlg-bar { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 10px; font-size: 13px; color: var(--mut); }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 14px 10px; overflow-y: auto; padding: 4px 2px 8px; min-height: 0; max-height: 46vh; }
.pick { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; opacity: .6; transition: opacity .15s var(--ease); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick.on { opacity: 1; }
.thumb { position: relative; width: 80px; height: 142px; border-radius: 12px; overflow: hidden; border: 2px solid rgba(255,255,255,.14); background: #000; flex: none; transition: border-color .15s var(--ease), transform .15s var(--ease); }
.pick:hover .thumb { transform: translateY(-2px); }
.pick.on .thumb { border-color: var(--moss-text); }
.pick:has(input:focus-visible) .thumb { outline: 2px solid var(--moss-text); outline-offset: 2px; }
.thumb-in { position: absolute; left: 0; top: 0; width: 360px; height: 640px; transform: scale(.2222); transform-origin: top left; pointer-events: none; }
.thumb-in .slide, .thumb-in .slide * { animation: none !important; }
.thumb-in .slide { display: flex; visibility: visible; transform: none !important; transition: none; }
.tick { position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; border-radius: 9999px; border: 1.5px solid rgba(255,255,255,.7); background: rgba(0,0,0,.35); display: grid; place-items: center; }
.pick.on .tick { background: var(--moss-hi); border-color: #fff; }
.pick.on .tick::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.cap { font-size: 12px; line-height: 16px; color: var(--fg); text-align: center; max-width: 88px; }

dialog .hint { margin: 10px 0 0; }
.dlg-status { min-height: 20px; margin: 8px 0 0; font-size: 13px; line-height: 20px; color: var(--moss-text); }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
@media (max-width: 420px) { .dlg-actions .btn { flex: 1; } }
.link { background: none; border: 0; padding: 0; font: 600 13px var(--sans); color: var(--moss-text); cursor: pointer; text-decoration: underline; }
.link:disabled { opacity: .5; cursor: default; }
.hint { margin: 0; font-size: 12px; line-height: 18px; color: var(--mut); }
.thumbs { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.28) transparent; }

/* ---------- edge arrows: half visible tabs that hint you can swipe or tap through the cards ---------- */
.tap .chev {
  position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 9999px;
  display: grid; place-items: center; color: #fff; pointer-events: none;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.34);
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .tap .chev { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
.tap.prev .chev { left: -24px; padding-left: 24px; }
.tap.next .chev { right: -24px; padding-right: 24px; }
.tap:hover .chev, .tap:focus-visible .chev { transform: translateX(10px); }
.tap.next:hover .chev, .tap.next:focus-visible .chev { transform: translateX(-10px); }
.tap.end { cursor: default; }
.tap.end .chev { opacity: 0; }
.deck.nudge .tap.next .chev { animation: nudge 1.1s var(--ease) .8s 2; }
@keyframes nudge { 0%, 100% { transform: none; } 40% { transform: translateX(-14px); } }
@media (prefers-reduced-motion: reduce) { .deck.nudge .tap.next .chev { animation: none; } .tap .chev { transition: none; } }

/* ---------- tappable birds and their speech bubble ---------- */
.slide img[data-b] { position: relative; z-index: 6; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.slide img[data-b].picked { filter: drop-shadow(0 0 8px rgba(255,255,255,.95)); }
.slide img[data-b]:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 8px; }
.thumb-in .slide img { pointer-events: none; }
.tip { margin: 10px 0 0; font-size: 12px; line-height: 16px; color: var(--mut); text-align: center; }

.bubble {
  position: absolute; z-index: 7; width: 220px; padding: 10px 12px 11px; border-radius: 16px; color: #fff;
  background: rgba(14,20,25,.94); border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 10px 30px rgba(0,0,0,.45); font: 400 12px/16px var(--sans); text-align: left;
  animation: bubbleIn .22s var(--ease) both; transform-origin: var(--tx, 50%) 100%;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .bubble { background: rgba(14,20,25,.78); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
}
.bubble.below { transform-origin: var(--tx, 50%) 0; }
.bubble::after {
  content: ""; position: absolute; left: var(--tx, 50%); bottom: -6px; width: 12px; height: 12px; margin-left: -6px;
  background: inherit; border: inherit; border-width: 0 1px 1px 0; transform: rotate(45deg); border-radius: 0 0 3px 0;
}
.bubble.below::after { bottom: auto; top: -6px; border-width: 1px 0 0 1px; border-radius: 3px 0 0 0; }
.bubble p { margin: 0; }
.bubble .bn { font: 800 15px/19px var(--sans); }
.bubble .bs { color: rgba(255,255,255,.7); font-size: 11px; line-height: 15px; margin-bottom: 7px; }
.bubble .bl { display: flex; gap: 8px; padding: 3px 0; border-top: 1px solid rgba(255,255,255,.12); }
.bubble .bl > span:first-child { flex: none; width: 60px; color: rgba(255,255,255,.62); white-space: nowrap; }
.bubble .bl .v { min-width: 0; }
.bubble .bl .v.st { display: inline-flex; align-items: center; gap: 7px; }
.bubble .bl b.yes { color: #9ee6c0; font-weight: 600; }
.bubble .bf { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.78); font-size: 11px; }
.dot { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 9999px; margin: 0; background: #8a949c; }
.dot.iu-LC { background: #5fd08f; } .dot.iu-NT { background: #c6d85a; } .dot.iu-VU { background: #f2c14e; }
.dot.iu-EN { background: #f08a3c; } .dot.iu-CR { background: #ee5a4d; } .dot.iu-EW, .dot.iu-EX { background: #b34ad0; }
@keyframes bubbleIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; } }

/* ---------- one page summary card: three layouts ---------- */
.namebox { width: 100%; max-width: 440px; margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.namebox label { font-size: 13px; color: var(--mut); flex: none; }
.namebox label span { opacity: .7; }
.namebox input { flex: 1; min-width: 0; padding: 8px 12px; font: 500 14px var(--sans); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.namebox input:focus-visible { outline: 2px solid var(--moss-text); outline-offset: 2px; }

.slide.sum { padding: 84px 24px 84px; }
.sum .sum-h { text-transform: uppercase; letter-spacing: .14em; font-size: 9.5px; font-weight: 600; opacity: .72; margin: 0 0 6px; }
.sum .k { margin-bottom: 8px; }

/* A */
.sumA .a-hero { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.sumA .a-hero b { font: 800 66px/0.9 var(--serif); letter-spacing: -.04em; }
.sumA .a-hero span { font-size: 14px; line-height: 18px; max-width: 110px; opacity: .95; }
.sumA .a-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.sumA .a-tiles div { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.24); border-radius: 10px; padding: 7px 7px 6px; }
.sumA .a-tiles b { display: block; font: 800 16px/1.1 var(--serif); }
.sumA .a-tiles span { display: block; font-size: 9.5px; line-height: 12px; opacity: .85; }
.sumA .wr { display: grid; grid-template-columns: 104px minmax(0, 1fr) 26px; gap: 8px; align-items: center; font-size: 11px; line-height: 14px; margin-bottom: 5px; }
.sumA .wn { white-space: nowrap; overflow: hidden; }
.sumA .bar { display: block; height: 6px; background: rgba(255,255,255,.18); border-radius: 3px; overflow: hidden; }
.sumA .bar i { display: block; height: 100%; background: #fff; border-radius: 3px; }
.sumA .wc { text-align: right; opacity: .88; }
.sumA .a-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 8px -3px 6px; }
.sumA .a-strip img { width: 100%; min-width: 0; aspect-ratio: 1; object-fit: contain; }
.sumA .a-facts { font-size: 10.5px; line-height: 15px; opacity: .92; margin: 0; }
.sumA .a-facts b { font-weight: 600; opacity: .8; }



.sum .sum-title { margin: 0 0 10px; font: 800 21px/25px var(--serif); letter-spacing: -.015em; }
/* tighten the summary cards so nothing overflows the safe area */
.slide.sum { padding: 76px 24px 76px; }
.sumA .a-strip { margin: 6px -3px 4px; }
.sumA .a-facts { line-height: 14px; }

/* footer note on the summary card: small, pinned to the bottom */
.slide.sum { padding-bottom: 56px; }
.sum-foot { position: absolute; left: 24px; right: 24px; bottom: 24px; font-size: 8.5px; line-height: 12px; opacity: .85; text-align: left; }
.sum-foot p { margin: 0; }
.sum-foot p + p { margin-top: 2px; opacity: .8; }
.sum-foot b { font-weight: 600; }

/* use the room the pinned footer freed up */
.sumA .a-hero { margin: 4px 0 14px; }
.sumA .a-hero b { font-size: 84px; }
.sumA .a-hero span { font-size: 15px; line-height: 19px; max-width: 120px; }
.sumA .a-tiles { gap: 8px; margin: 4px 0 20px; }
.sumA .a-tiles div { padding: 9px 8px 8px; border-radius: 12px; }
.sumA .a-tiles b { font-size: 19px; }
.sumA .a-tiles span { font-size: 10.5px; line-height: 13px; }
.sumA .sum-h { font-size: 10px; margin-bottom: 8px; }
.sumA .wr { grid-template-columns: 112px minmax(0, 1fr) 30px; margin-bottom: 9px; font-size: 12px; line-height: 15px; }
.sumA .bar { height: 7px; }
.sumA .a-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 14px -3px 12px; }
.sumA .a-facts { font-size: 12px; line-height: 18px; margin-top: 4px; }
.sumA .a-hero b { font-size: 76px; }
.sumA .a-tiles { margin-bottom: 16px; }
.sumA .a-strip { margin: 10px -3px 8px; }

/* the cue under the card */
.cue-row { height: 46px; margin-top: 14px; display: flex; justify-content: center; align-items: center; }
.cue { visibility: hidden; display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 9999px; border: 1px solid var(--moss-hi); background: var(--moss); color: #fff; font: 600 14px/20px var(--sans); cursor: pointer; }
.cue.on { visibility: visible; }
.cue:hover { background: var(--moss-hi); }
.cue:focus-visible { outline: 2px solid var(--moss-text); outline-offset: 2px; }
.cue.first { animation: cuePulse 2.6s var(--ease) infinite; }
@keyframes cuePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(141,179,161,.0); } 50% { box-shadow: 0 0 0 7px rgba(141,179,161,.22); } }
@media (prefers-reduced-motion: reduce) { .cue.first { animation: none; } }

/* swiping: cards sit side by side, the one in view is "vis" */
.slide.vis { visibility: visible; }
#slides.dragging .slide { transition: none; }
.scaler { touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.scaler:active { cursor: grabbing; }
.slide img { -webkit-user-drag: none; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* the edge buttons are now only a visual cue (and keyboard targets); real taps are read from the card */
.tap { pointer-events: none; }
.scaler:hover .tap.prev .chev { transform: translateX(8px); }
.scaler:hover .tap.next .chev { transform: translateX(-8px); }

/* tap target is the bird, not its box (see hitSticker) */
.slide img[data-b] { cursor: inherit; }
.slide img[data-b].hov { filter: drop-shadow(0 0 5px rgba(255,255,255,.6)); }

/* wall of every new bird (see wallHtml) */
.wallbox { flex: 1 1 0; min-height: 48px; margin: 10px 0 8px; overflow: hidden; }
.wall { display: grid; justify-content: center; align-content: start; }
.wall img { display: block; object-fit: contain; }
.wall .w { display: block; background-repeat: no-repeat; background-image: url(/wrapped/data/atlas.webp); background-size: var(--bs); cursor: inherit; }
.wall .w.hov { filter: brightness(1.35); }
.wall .w.picked { outline: 1.5px solid #fff; outline-offset: 0; position: relative; z-index: 1; }
.slide .mark { padding-top: 12px; }

.skipbox .lifetip { margin: 6px 0 0; font-size: 12px; line-height: 18px; color: var(--mut); }

/* a selected or focused bird glows along its own outline, never in a square box */
.slide img[data-b], .wall .w { outline: none; }
.slide img[data-b]:focus, .slide img[data-b]:focus-visible { outline: none; border-radius: 0; }
.slide img[data-b]:focus-visible { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px rgba(255,255,255,.85)); }
.wall .w.picked { outline: none; filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 3px rgba(255,255,255,.9)) brightness(1.15); }
.tap:focus-visible { outline: none; }

.skipbox .lifetip { margin: 10px 0 0; padding: 10px 12px; font-size: 13px; line-height: 19px; color: var(--mut); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.skipbox .lifetip b { color: var(--fg); font-weight: 600; }
