:root {
  --red: #D9282F;
  --red-dark: #B01F25;
  --navy: #072539;
  --ink: #0F1921;
  --cream: #FFF9F2;
  --peach: #FFBC7D;
  --line: rgba(255, 249, 242, .14);
  --muted: rgba(255, 249, 242, .68);
  --head: 'Montserrat', system-ui, sans-serif;
  --body: 'Source Sans 3', system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { background: var(--ink); color: var(--cream); }
body { font-family: var(--body); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100dvh; }
body.playing { overflow: hidden; overscroll-behavior: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

/* ---------- buttons ---------- */
.btn { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--head); font-weight: 800; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: 16px 26px; border-radius: 2px; background: var(--red); color: #fff; transition: background .15s, transform .1s; }
.btn:hover { background: var(--red-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { background: rgba(255, 249, 242, .14); color: rgba(255, 249, 242, .5); cursor: progress; }
.btn.big { font-size: 1rem; padding: 20px 32px; }
.btn.small { font-size: .74rem; padding: 10px 16px; }
.btn.ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px var(--cream); }
.btn.ghost:hover { background: var(--cream); color: var(--ink); }
.btn:focus-visible, .link:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; }
.link { appearance: none; background: none; border: 0; cursor: pointer; font-family: var(--head); font-weight: 700; font-size: .9rem;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 249, 242, .4); padding: 4px 0; }
.link:hover { text-decoration-color: var(--cream); }
.row { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }

/* ---------- landing ---------- */
#landing { min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; }
h1 { overflow-wrap: anywhere; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px var(--gutter); }
.top img { height: clamp(40px, 6vw, 56px); width: auto; display: block; }
.top-link { font-family: var(--head); font-weight: 700; font-size: .8rem; letter-spacing: .04em; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.top-link:hover { color: var(--cream); border-color: var(--cream); }
.hero { flex: 1; padding: clamp(16px, 4vw, 60px) var(--gutter) clamp(40px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; }
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.hero-bot { justify-self: end; width: min(46vw, 230px); aspect-ratio: 1 / 1.05; margin: -8px -8px -40px 0; pointer-events: none; }
/* the canvas hangs well below its box so jetpack smoke can drift down behind the text */
.hero-bot { position: relative; z-index: 0; }
.hero-bot canvas { position: absolute; left: -10%; top: 0; width: 120%; height: 190%; display: block; }
.hero-copy { position: relative; z-index: 1; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: center; }
  .hero-bot { grid-column: 2; grid-row: 1; justify-self: center; width: min(100%, 460px); margin: 0; }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-copy h1 { font-size: clamp(3rem, 5.2vw, 6.4rem); }
}
.eyebrow { font-family: var(--head); font-weight: 700; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--peach); }
h1 { font-family: var(--head); font-weight: 900; text-transform: uppercase; line-height: .92; letter-spacing: -.02em; font-size: clamp(2rem, 9.6vw, 8.2rem); }
h1 .l { display: block; animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
h1 .l:nth-child(2) { animation-delay: .1s; }
h1 .l.soft { color: var(--peach); animation-delay: .2s; }
.smash { position: relative; display: inline-block; }
.smash::before { content: attr(data-t); position: absolute; inset: 0; color: var(--red); transform: translate(.045em, .03em); z-index: -1; animation: reg 1.3s .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }
@keyframes reg { 0% { transform: translate(.16em, .06em); } 35% { transform: translate(-.05em, .02em); } 100% { transform: translate(.045em, .03em); } }

form.go { max-width: 58rem; margin-top: 6px; }
.lbl { display: block; font-family: var(--head); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.urlrow { display: flex; gap: 0; flex-wrap: wrap; }
.field { flex: 1 1 min(18rem, 100%); display: flex; align-items: center; background: var(--cream); color: var(--ink); border-radius: 2px 0 0 2px; min-width: 0; }
.field span { padding-left: 20px; font-weight: 600; color: rgba(15, 25, 33, .5); }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 20px 20px 20px 4px; font-size: 1.2rem; font-weight: 600; color: var(--ink); outline: none; }
.urlrow .btn { border-radius: 0 2px 2px 0; }
/* the button sits flush against the white field, so draw its focus ring inside the button */
.urlrow .btn:focus-visible { outline: 3px solid var(--peach); outline-offset: -7px; }
.err { color: var(--peach); font-weight: 600; min-height: 1.6em; margin-top: 10px; }
.fine { color: var(--muted); font-size: .85rem; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 16px 28px; max-width: 64rem; color: var(--muted); }
.steps li { display: flex; gap: 12px; align-items: baseline; }
.steps b { font-family: var(--head); font-weight: 900; color: var(--red); font-size: 1.2rem; }
.steps strong { color: var(--cream); }
.foot { display: flex; justify-content: space-between; padding: 20px var(--gutter); border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
@media (max-width: 560px) {
  .field { border-radius: 2px 2px 0 0; }
  .urlrow .btn { width: 100%; border-radius: 0 0 2px 2px; }
}

/* ======================================================================
   SEO Boost
   ====================================================================== */
.hero-copy h1 { font-size: clamp(2rem, 8.4vw, 6.2rem); }
@media (min-width: 900px) { .hero-copy h1 { font-size: clamp(2.8rem, 4.8vw, 5.6rem); } }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.grid2 .wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.f .field { border-radius: 2px; }
.f .field input { padding: 16px 18px; font-size: 1.1rem; }
.f .field span + input { padding-left: 4px; }
.urlrow .field { border-radius: 2px 0 0 2px; }
.foot { flex-wrap: wrap; gap: 8px 20px; }

/* keyword picker */
.pick { display: grid; gap: 16px; max-width: 58rem; animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.pick h2 { font-family: var(--head); font-weight: 900; text-transform: uppercase; font-size: clamp(1.5rem, 4vw, 2.4rem); line-height: 1; }
.pick-note { color: var(--muted); }
.pick-note strong { color: var(--cream); }
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .chips { grid-template-columns: 1fr; } }
.chip.done { border-color: rgba(255, 188, 125, .5); }
.chip.done span::after { content: ' · checked'; color: var(--muted); }
.lbl-hint { margin-left: 8px; font-weight: 600; letter-spacing: .02em; text-transform: none; color: var(--peach); font-size: .78rem; }
.hint { margin-top: 6px; font-size: .82rem; color: var(--muted); }
.pickable { position: relative; }
.pickable input { padding-right: 46px !important; }
.caret { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 2px; background: transparent; color: rgba(15, 25, 33, .55); cursor: pointer; display: grid; place-items: center; }
.caret:hover { background: rgba(15, 25, 33, .08); color: var(--ink); }
.caret svg { width: 12px; height: 8px; }
.chip { appearance: none; cursor: pointer; text-align: left; display: grid; gap: 4px; padding: 16px 18px; border-radius: 3px;
  background: rgba(255, 249, 242, .06); border: 1px solid var(--line); transition: border-color .15s, background .15s, transform .1s; }
.chip:hover { border-color: var(--red); background: rgba(217, 40, 47, .12); }
.chip:active { transform: translateY(1px); }
.chip:focus-visible { outline: 3px solid var(--peach); outline-offset: 2px; }
.chip b { font-family: var(--head); font-weight: 800; font-size: 1.08rem; }
.chip b::before { content: '“'; color: var(--red); }
.chip b::after { content: '”'; color: var(--red); }
.chip span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--peach); font-weight: 700; }
.custom { margin-top: 6px; }
.pick .link { justify-self: start; color: var(--muted); }

/* loading */
#loading { position: fixed; inset: 0; z-index: 60; background: rgba(15, 25, 33, .96); display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; padding: 16px; }
#loadBot { width: min(70vw, 260px); height: min(70vw, 260px); }
#loadMsg { font-family: var(--head); font-weight: 800; font-size: clamp(1.1rem, 3.4vw, 1.5rem); text-transform: uppercase; letter-spacing: .02em; min-height: 2.4em; max-width: 30rem; }

/* ---------- the results page (light, in the familiar search style) ---------- */
body.in-scene { background: #fff; }
#scene { min-height: 100dvh; background: #fff; color: #202124; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.58; padding-bottom: 140px; }
.hud { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 8px clamp(10px, 3vw, 24px); background: var(--ink); color: var(--cream); font-family: var(--body); min-height: 56px; }
.hud-logo img { display: block; }
.hud-rank { display: flex; align-items: baseline; gap: 8px; }
.hud-lbl { font-family: var(--head); font-weight: 700; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hud-rank strong { font-family: var(--head); font-weight: 900; font-size: 1.6rem; line-height: 1; color: var(--cream); }
.hud-rank strong.bump { animation: bump .6s cubic-bezier(.2, 1.6, .4, 1); color: var(--peach); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.hud-page { font-size: .82rem; color: var(--muted); }
.hud-prog { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.hud-prog .bar { width: 90px; height: 6px; background: rgba(255, 249, 242, .14); border-radius: 3px; overflow: hidden; }
.hud-prog i { display: block; height: 100%; width: 0; background: var(--red); transition: width .5s; }
.hud-btns { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.iconbtn { appearance: none; border: 1px solid var(--line); background: transparent; color: var(--cream); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1rem; line-height: 1; }
.iconbtn:hover { background: rgba(255, 249, 242, .1); }
.iconbtn:focus-visible { outline: 3px solid var(--peach); outline-offset: 2px; }
#autoBtn { white-space: nowrap; }
@media (max-width: 600px) { .hud-prog, .hud-lbl { display: none !important; } .hud { gap: 10px; } .hud-btns { gap: 6px; } .iconbtn { width: 34px; height: 34px; } }

.serp { max-width: 740px; padding: 0 clamp(14px, 4vw, 20px) 0 clamp(14px, 12vw, 172px); box-sizing: content-box; }
@media (max-width: 900px) { .serp { padding-left: clamp(14px, 4vw, 40px); } }
.serp-top { padding: 18px 0 0; border-bottom: 1px solid #ebebeb; }
.sbox { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 18px; border-radius: 24px; box-shadow: 0 1px 6px rgba(32, 33, 36, .28); font-size: 16px; color: #202124; max-width: 690px; }
.sbox svg { width: 20px; height: 20px; fill: #9aa0a6; flex: none; }
.tabs { display: flex; gap: 22px; padding: 14px 4px 10px; font-size: 13px; color: #5f6368; overflow: hidden; }
.tabs b { color: #1a73e8; font-weight: 400; box-shadow: 0 13px 0 -10px #1a73e8; }
.serp-meta { color: #70757a; padding: 12px 0 8px; font-size: 13px; }
.badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: #fce8e6; color: #c5221f; }
.badge.live { background: #e6f4ea; color: #137333; }
.results { list-style: none; margin: 0; padding: 0; }
.res { position: relative; padding: 14px 0 16px; margin: 0; }
.res .rank { position: absolute; left: -46px; top: 18px; width: 30px; text-align: right; font: 700 13px/1 Arial, sans-serif; color: #bdc1c6; }
@media (max-width: 900px) { .res .rank { position: static; display: inline-block; width: auto; margin-bottom: 4px; } }
.res-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; min-width: 0; }
.res-head > div { min-width: 0; }
.fav { flex: none; width: 26px; height: 26px; border-radius: 50%; color: #fff; font: 700 13px/26px Arial, sans-serif; text-align: center; box-shadow: 0 0 0 1px #ecedef; }
.site { font-size: 14px; color: #202124; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb { font-size: 12px; color: #4d5156; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res h3 { margin: 0 0 3px; font-size: 20px; line-height: 1.3; font-weight: 400; }
.res h3 a { color: #1a0dab; text-decoration: none; }
.res h3 a:hover { text-decoration: underline; }
.res .desc { margin: 0; color: #4d5156; overflow-wrap: anywhere; }
.res.empty { color: #70757a; }
.pager { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; justify-content: center; padding: 26px 0 8px; font-size: 14px; color: #1a0dab; }
.pager b { color: #202124; font-weight: 700; }
.pager .pg-label { color: #70757a; margin-right: 6px; }
.serp-foot { color: #70757a; font-size: 12px; text-align: center; padding: 8px 0 24px; }

/* the player's listing */
.res.mine { margin: 6px -16px; padding: 16px 16px 14px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 2px var(--red), 0 8px 28px rgba(217, 40, 47, .18); display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; z-index: 2; }
.res.mine .rank { color: var(--red); font-size: 16px; }
.res.mine .res-body { min-width: 0; grid-column: 1; }
.res.mine .rank { grid-column: 1 / -1; }
.res.mine .bugs { grid-column: 1 / -1; }
.you { position: absolute; top: -10px; right: 12px; background: var(--red); color: #fff; font: 800 10px/1 Montserrat, Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; border-radius: 3px; }
.res.mine.spot { animation: spot 1.4s ease-out 2; }
@keyframes spot { 0% { box-shadow: 0 0 0 2px var(--red), 0 0 0 0 rgba(217,40,47,.5); } 100% { box-shadow: 0 0 0 2px var(--red), 0 0 0 26px rgba(217,40,47,0); } }
.fresh { animation: fresh 1.2s ease-out; }
@keyframes fresh { 0% { background: #fff3c4; } 100% { background: transparent; } }
.stars { color: #e37400; font-size: 13px; margin: 0 0 2px; }
.stars span { letter-spacing: 1px; }
.sitelinks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.sitelinks a { color: #1a0dab; font-size: 14px; }
.thumb { width: 92px; height: 92px; border-radius: 8px; overflow: hidden; background: #f1f3f4; align-self: center; grid-column: 2; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.blank { background: linear-gradient(135deg, #e8f0fe, #fce8e6); }
@media (max-width: 520px) { .thumb { width: 64px; height: 64px; } }
.res.mine.shine { box-shadow: 0 0 0 3px #F2C14E, 0 10px 40px rgba(242, 193, 78, .45); }
.res.mine.shine::after { content: ''; position: absolute; inset: 0; border-radius: 10px; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.85) 45%, transparent 60%); background-size: 250% 100%; animation: sheen 1.8s ease-in-out 3; }
@keyframes sheen { from { background-position: 130% 0; } to { background-position: -30% 0; } }

/* bugs: the problems crawling on the listing */
.bugs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bugs:empty { display: none; }
.bug { appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 18px; border: 1px solid #f3c5c3;
  background: #fef3f2; color: #a50e0e; font: 700 12.5px/1.2 Arial, sans-serif; animation: crawl 2.6s ease-in-out infinite; }
.bug:nth-child(2n) { animation-delay: -.9s; animation-duration: 3.1s; }
.bug:nth-child(3n) { animation-delay: -1.6s; }
.bug:hover { background: #fde2e0; border-color: var(--red); }
.bug:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
.bug.no { animation: nope .4s; }
.bug.nudge { animation: nudge 1s ease-in-out infinite; border-color: var(--red); }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 40, 47, .55); transform: scale(1); } 50% { box-shadow: 0 0 0 8px rgba(217, 40, 47, 0); transform: scale(1.08); } }
#autoBtn.pulse { animation: pulseBtn 1.1s ease-in-out infinite; }
@keyframes pulseBtn { 50% { box-shadow: 0 0 0 6px rgba(255, 188, 125, .6); background: var(--red-dark); } }
.more { display: grid; gap: 10px; padding: 18px; border-radius: 4px; background: rgba(217, 40, 47, .12); border: 1px solid rgba(217, 40, 47, .5); }
.more p { color: var(--muted); }
.bug.target { animation: none; background: #fde2e0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(217, 40, 47, .25); }
.bug.gone { animation: popout .35s forwards; pointer-events: none; }
.bug .ico { position: relative; width: 16px; height: 12px; border-radius: 50% 50% 45% 45%; background: var(--red); box-shadow: inset -3px 0 0 #8f1418; flex: none; }
.bug .ico::before, .bug .ico::after { content: ''; position: absolute; left: 1px; right: 1px; height: 2px; background: #5b0d10; top: 3px; box-shadow: 0 4px 0 #5b0d10; border-radius: 1px; }
.bug .ico::after { top: -3px; left: auto; right: -3px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); box-shadow: none; }
.bug .tl { font-weight: 400; color: #5f6368; }
@keyframes crawl { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(2px, -1px) rotate(-1deg); } 50% { transform: translate(-1px, 1px) rotate(1deg); } 75% { transform: translate(1px, 0) rotate(0); } }
@keyframes nope { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes popout { to { transform: scale(1.4); opacity: 0; } }

/* tools */
.toolbar { position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 35; display: flex; gap: 6px; padding: 8px;
  background: var(--ink); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); max-width: calc(100vw - 16px); overflow-x: auto; font-family: var(--body); }
.tool { appearance: none; cursor: pointer; flex: none; display: grid; justify-items: center; gap: 2px; width: 74px; padding: 6px 4px 7px; border-radius: 10px; border: 2px solid transparent; background: transparent; color: var(--cream); }
.tool canvas { width: 46px; height: 30px; }
.tool b { font-family: var(--head); font-weight: 800; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.tool small { font-size: .62rem; color: var(--muted); line-height: 1.1; text-align: center; }
.tool kbd { position: absolute; }
.tool:hover { background: rgba(255,249,242,.08); }
.tool[aria-pressed="true"] { border-color: var(--red); background: rgba(217,40,47,.2); }
.tool.hint { animation: hint .5s ease-in-out 4; border-color: var(--peach); }
.tool:focus-visible { outline: 3px solid var(--peach); outline-offset: 1px; }
@keyframes hint { 50% { transform: translateY(-6px); } }
@media (max-width: 600px) {
  .toolbar { gap: 0; padding: 4px; left: 6px; right: 6px; transform: none; justify-content: space-between; max-width: none; }
  .tool { width: calc((100vw - 20px) / 7); padding: 4px 0 5px; }
  .tool canvas { width: 38px; height: 25px; }
  .tool b { font-size: .56rem; letter-spacing: .02em; }
  .tool small { display: none; }
}

/* page-flip banner */
.flip { position: fixed; left: 50%; top: 42%; z-index: 40; transform: translate(-50%, -50%); pointer-events: none; font-family: var(--head); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.4rem, 9vw, 6rem); color: var(--red); text-shadow: 4px 4px 0 var(--ink); white-space: nowrap; opacity: 0; }
.flip.go { animation: flipIn 1.3s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes flipIn { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(-6deg); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1.08) rotate(2deg); } 75% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -80%) scale(1); } }

/* robot layer + speech bubble */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 45; }
.bubble { position: fixed; left: 0; top: 0; z-index: 46; max-width: min(340px, calc(100vw - 20px)); padding: 14px 16px; border-radius: 14px; background: var(--ink); color: var(--cream);
  font-family: var(--body); font-size: 1rem; line-height: 1.4; box-shadow: 0 10px 30px rgba(0,0,0,.35); border: 2px solid var(--red); }
.bubble.pop { animation: bub .3s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes bub { from { opacity: 0; scale: .8; } to { opacity: 1; scale: 1; } }
.bubble p { margin: 0; }
.bubble p strong { color: var(--peach); }
.b-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- end card ---------- */
dialog.end { margin: auto; width: min(60rem, calc(100% - 20px)); max-height: calc(100dvh - 20px); background: var(--ink); color: var(--cream); border: 1px solid var(--line); padding: 0; overflow: auto; }
dialog.end::backdrop { background: rgba(5, 13, 20, .82); }
dialog.end[open] { animation: rise .5s cubic-bezier(.2, .8, .2, 1); }
.end-in { position: relative; display: grid; gap: 18px; padding: clamp(20px, 4vw, 40px); }
.end h2 { font-family: var(--head); font-weight: 900; text-transform: uppercase; font-size: clamp(1.8rem, 5vw, 3.2rem); line-height: .98; }
.end h2 em { font-style: normal; color: var(--peach); }
.end-sub { color: var(--muted); max-width: 46rem; }
.end h3 { font-family: var(--head); font-weight: 900; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .02em; }
.ba { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 14px; }
.ba-lbl { font-family: var(--head); font-weight: 700; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ba-lbl.hot { color: var(--peach); }
.mini { background: #fff; color: #202124; border-radius: 8px; padding: 14px 16px; font-family: Arial, sans-serif; font-size: 13px; line-height: 1.5; }
.mini.after { box-shadow: 0 0 0 3px #F2C14E; }
.mini .crumb { margin-bottom: 2px; }
.mini h4 { margin: 0 0 2px; font-size: 17px; font-weight: 400; color: #1a0dab; }
.mini p { margin: 0; color: #4d5156; }
.found { list-style: none; display: grid; gap: 10px; }
.found li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.found .t { width: 30px; height: 22px; }
.found b { display: block; font-family: var(--head); font-weight: 800; }
.found span { color: var(--muted); font-size: .95rem; }
.cta { gap: 12px; }
.lead { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,249,242,.03); }
.lead p { color: var(--muted); }
.lead-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 10px; }
.lead label { display: grid; gap: 4px; font-size: .82rem; color: var(--muted); }
.lead input { width: 100%; padding: 10px 12px; background: rgba(255,249,242,.06); border: 1px solid var(--line); border-radius: 2px; }
.lead .btn { justify-self: start; }
.disclaimer { border-top: 1px solid var(--line); padding-top: 14px; }
.end-x { position: absolute; top: 14px; right: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.pickable input::-webkit-calendar-picker-indicator { display: none !important; opacity: 0; }
