/* The landing page's main picture (site/_hero): an example page with the Chaffiti panel open, drawn in HTML.
   The desktop window is laid out at 1400 x 1034 like the old screenshot and the phone at 390 x 844 (plus bezel);
   hero.js scales both to fit. No inline styles (CSP), so every look is a class here. */
.hero-shot { margin: 48px 0 0; min-width: 0; } /* min-width: so the picker's row scrolls instead of widening the page */
.hx-desk { position: relative; }
.hx-mob { display: none; }
@media (max-width: 700px) {
  .hx-desk { display: none; }
  .hx-mob { display: block; }
}

/* ---------- desktop window ---------- */
.hx-scaler { width: 100%; aspect-ratio: 1400 / 1034; position: relative; }
.hx-win, .hx-phone, .bp-inner { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; line-height: normal; color: #1d1f24; text-align: left; }
.hx-win { position: absolute; left: 0; top: 0; width: 1400px; height: 1034px; transform-origin: 0 0; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.hx-win svg, .hx-phone svg, .bp-inner svg { display: block; }
.hx-bar { height: 80px; background: #f6f6f8; display: flex; align-items: center; padding: 0 28px; gap: 22px; color: #8a8f99; font-size: 15px; border-bottom: 1px solid #ececf0; }
.hx-lights { display: flex; gap: 10px; }
.hx-lights i { width: 15px; height: 15px; border-radius: 50%; display: block; background: #ff5f57; }
.hx-lights i:nth-child(2) { background: #febc2e; } .hx-lights i:nth-child(3) { background: #28c840; }
.hx-ic { width: 22px; height: 16px; border: 2px solid #b6bac2; border-radius: 4px; }
.hx-url { flex: 1; text-align: center; color: #3a3d44; font-size: 16px; }
.hx-chev { font-size: 22px; color: #b6bac2; }
.hx-content { position: absolute; top: 80px; left: 0; right: 0; bottom: 0; overflow: hidden; }

/* ---------- the Chaffiti panel (desktop) and sheet (phone) ---------- */
.hx-panel { position: absolute; top: 14px; right: 14px; bottom: 0; width: 418px; background: #fff; border-radius: 16px 16px 0 0;
  box-shadow: 0 0 0 1px #e6e7ec, 0 10px 30px rgba(20,22,28,.10); display: flex; flex-direction: column; font-size: 15px; }
.hx-ph { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.hx-logo { width: 26px; height: 26px; border-radius: 6px; background: linear-gradient(160deg,#3d7bf7,#1e4fd0); display: grid; place-items: center; }
.hx-logo svg { width: 16px; height: 16px; } .hx-logo path { fill: #fff; }
.hx-ph b { font-size: 17px; flex: 1; }
.hx-me { width: 26px; height: 26px; border-radius: 50%; background: #e1ecff; color: #2563eb; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.hx-dots, .hx-x { color: #555a64; font-size: 18px; margin-left: 10px; }
.hx-pcard { margin: 2px 12px 8px; border: 1px solid #e3e5ea; border-radius: 12px; padding: 9px 12px; display: flex; gap: 12px; align-items: center; background: #fbfbfc; }
.hx-thumb { width: 40px; height: 40px; border-radius: 7px; flex: none; }
.hx-th-home_listing { background: linear-gradient(135deg,#9fd0f5 50%,#7cb85e 50%); }
.hx-th-running_shoe { background: linear-gradient(90deg,#ff8a5c,#ffc15c); }
.hx-th-skincare { background: linear-gradient(160deg,#ffd27a,#c97a2b); }
.hx-th-book { background: linear-gradient(180deg,#f7c59f,#e98a6b 55%,#2f5d62); }
.hx-th-cabin { background: linear-gradient(180deg,#2b2d5c,#c06c84 60%,#f8b195); }
.hx-th-dog { background: linear-gradient(160deg,#e7b467,#c98a3c); }
.hx-th-park { background: linear-gradient(180deg,#ffcf8c,#ff9e7a 50%,#5b8fb0 51%); }
.hx-th-careers { background: linear-gradient(120deg,#0f4c81,#7c9cf5); }
.hx-th-sports { background: linear-gradient(135deg,#101522 55%,#e5383b 55%); }
.hx-th-market { background: linear-gradient(160deg,#d7ebe2,#0d7a5f); }
.hx-th-league { background: linear-gradient(180deg,#9fd49f,#1f7a3a); }
.hx-t { font-size: 14.5px; font-weight: 500; }
.hx-d { font-size: 13px; color: #6b7080; }
.hx-cv { margin-left: auto; color: #8a8f99; }
.hx-ch { display: flex; justify-content: space-between; padding: 12px 18px 6px; font-size: 13.5px; color: #555a64; font-weight: 500; border-top: 1px solid #eff0f3; }
.hx-list { flex: 1; overflow: hidden; padding: 4px 18px 0; }
.hx-c { display: flex; gap: 12px; padding: 12px 0 10px; }
.hx-av { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.hx-av0 { background: #fde2e7; color: #c2185b; } .hx-av1 { background: #dcfce7; color: #15803d; } .hx-av2 { background: #e0ecff; color: #1d4ed8; }
.hx-av3 { background: #fef3c7; color: #b45309; } .hx-av4 { background: #ede9fe; color: #6d28d9; } .hx-av5 { background: #cffafe; color: #0e7490; } .hx-av6 { background: #ffe4d5; color: #c2410c; }
.hx-r { padding-left: 40px; }
.hx-r .hx-av { width: 28px; height: 28px; font-size: 10.5px; }
.hx-n { font-weight: 600; font-size: 14.5px; }
.hx-n span { color: #8a8f99; font-weight: 400; font-size: 13px; }
.hx-c p { margin: 3px 0 9px; line-height: 1.5; font-size: 14.5px; }
.hx-mention { color: #2563eb; font-weight: 500; }
.hx-votes { display: flex; gap: 14px; align-items: center; color: #6b7080; font-size: 13.5px; }
.hx-votes svg { width: 16px; height: 16px; stroke: #6b7080; fill: none; stroke-width: 1.8; stroke-linejoin: round; }
.hx-hide { padding-left: 44px; color: #555a64; font-size: 13.5px; margin: 0 0 6px; }
.hx-compose { margin: 10px 12px 14px; border: 1px solid #e3e5ea; border-radius: 22px; padding: 12px 16px; color: #9a9fa9; display: flex; justify-content: space-between; align-items: center; }
.hx-compose i { width: 26px; height: 26px; border-radius: 50%; background: #eef0f3; display: grid; place-items: center; font-style: normal; color: #8a8f99; flex: none; margin-left: 8px; transition: background .2s, color .2s, transform .2s; }

/* the viewer posting (hero.js): Reply tapped, typing in the compose box, the new comment landing */
.hx-list { scroll-behavior: smooth; }
.hx-votes span.tap { color: #2563eb; font-weight: 600; }
.hx-c.target { background: #f4f7ff; border-radius: 10px; transition: background .3s; }
.hx-replying { margin: 0 14px -6px; padding: 0 6px; font-size: 12.5px; color: #2563eb; font-weight: 500; height: 16px; opacity: 0; transition: opacity .2s; }
.hx-replying.on { opacity: 1; }
.hx-compose { transition: border-color .2s, box-shadow .2s; }
.hx-compose.on { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.13); color: #1d1f24; }
.hx-compose.on .hx-ph { display: none; }
.hx-typed { flex: 1; line-height: 1.4; }
.hx-typed:empty { display: none; }
.hx-compose.on .hx-typed::after { content: ""; display: inline-block; width: 2px; height: 1.1em; background: #2563eb; vertical-align: -3px; margin-left: 1px; animation: hx-blink .9s step-end infinite; }
.hx-compose.ready i { background: #2563eb; color: #fff; transform: scale(1.12); }
.hx-c.mine .hx-av { background: #e1ecff; color: #2563eb; }
.hx-c.mine .hx-n em { font-style: normal; font-size: 11px; font-weight: 700; color: #2563eb; background: #e1ecff; border-radius: 5px; padding: 1px 6px; margin-left: 4px; vertical-align: 1px; }
.hx-c.mine, .hx-sheet .hx-c.mine.in { animation: hx-mine-in .45s ease-out, hx-mine-glow 3s ease-out; border-radius: 10px; }
@keyframes hx-mine-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes hx-mine-glow { 0%, 40% { background: #eaf1ff; } 100% { background: transparent; } }
@keyframes hx-blink { 50% { opacity: .25; } }

/* ---------- under and around the picture: the scene picker and the glass controls ---------- */
.hx-picker { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 64px auto 0; max-width: 860px; }
.hx-picker[hidden], .hx-ctl[hidden] { display: none; }
.hx-picker button { font: 500 13px var(--mono, ui-monospace, monospace); letter-spacing: .02em; color: var(--tx, #14161c); background: transparent;
  border: 1px solid var(--ln, rgba(20,22,28,.14)); border-radius: 99px; padding: 7px 13px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.hx-picker button:hover { border-color: var(--ac, #2563eb); color: var(--ac, #2563eb); }
.hx-picker button[aria-pressed="true"] { background: var(--ac, #2563eb); border-color: var(--ac, #2563eb); color: #fff; }
@media (max-width: 700px) {
  .hx-picker { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 22px -20px 0; padding: 2px 20px 6px; max-width: none; }
  .hx-picker::-webkit-scrollbar { display: none; }
  .hx-picker button { flex: none; }
}
/* the controls: the Chaffiti button's glass (a faint disc, soft shadow, rim light, a top sheen and blue light pooled at the bottom) */
/* Centered along the bottom of the window (wide screens), and under the phone (narrow ones). */
.hx-ctl { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 8; display: flex; gap: 10px; }
.hx-mob .hx-ctl { position: relative; left: auto; bottom: auto; transform: none; justify-content: center; margin-top: 18px; }
.hx-glass { position: relative; width: 44px; height: 44px; border: 0; padding: 0; border-radius: 50%; cursor: pointer; color: #17181c;
  display: grid; place-items: center; background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(1.2px) saturate(1.7) brightness(1.04); backdrop-filter: blur(1.2px) saturate(1.7) brightness(1.04);
  box-shadow: 0 4px 11px rgba(0,0,0,.2), 0 .6px 1.8px rgba(0,0,0,.14); transition: transform .42s cubic-bezier(.32,.72,0,1); }
.hx-glass::before { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(110% 70% at 32% 6%, rgba(255,255,255,.32), rgba(255,255,255,0) 46%), radial-gradient(70% 45% at 50% 100%, rgba(37,99,235,.6), rgba(37,99,235,0) 72%);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.3), inset 2px 2.4px 2.6px -1.3px rgba(255,255,255,.75), inset -2px -2.4px 3.2px -1.5px rgba(255,255,255,.4), inset 0 -2.2px 3.6px -1.2px rgba(110,160,255,.9); }
.hx-glass:hover { transform: scale(1.1); }
.hx-glass:active { transform: scale(.96); }
.hx-glass svg { position: relative; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 .6px rgba(255,255,255,.7)); }
.hx-glass .i-play { fill: currentColor; stroke-width: 1.6; }
.hx-glass .i-play, .is-paused .hx-glass .i-pause { display: none; }
.is-paused .hx-glass .i-play { display: block; }
/* paused: everything stops where it is */
.hero-shot.is-paused *, .hero-shot.is-paused *::before, .hero-shot.is-paused *::after { animation-play-state: paused !important; }

/* ---------- the desktop window opening Chaffiti (hero.js) ----------
   Without script, or with Reduce Motion, the window shows the final frame: the panel open beside the page.
   hero.js loops: the page loads at full width (.is-closed, .is-loading), the Chaffiti button arrives on the
   right edge halfway down while the window zooms in on it (.is-zoom) and it glows (.is-btn, .s-glow), the
   pointer clicks it, and then, as the window zooms back out and like the extension,
   the button shrinks away while the panel slides in from past the right edge and its contents rise in turn. */
.hx-page { transition: right .52s cubic-bezier(.32,.72,0,1), opacity .5s ease-out, transform .5s ease-out; }
.hx-desk.is-closed .hx-page { right: 0; }
.hx-desk.is-loading .hx-page { opacity: 0; transform: translateY(10px); transition: none; }
.hx-panel { transform-origin: right center; transition: transform .52s cubic-bezier(.32,.72,0,1), opacity .52s cubic-bezier(.32,.72,0,1); }
.hx-desk.is-closed .hx-panel { transform: translateX(calc(100% + 24px)) scale(.96); opacity: .4; transition: none; }
.hx-desk.is-rising .hx-panel > *, .hx-desk.is-rising .hx-panel .hx-list > * { animation: hx-rise .45s cubic-bezier(.32,.72,0,1) backwards; }
.hx-desk.is-rising .hx-panel > :nth-child(2) { animation-delay: .06s; }
.hx-desk.is-rising .hx-panel > :nth-child(3) { animation-delay: .12s; }
.hx-desk.is-rising .hx-panel .hx-list > :nth-child(1) { animation-delay: .18s; }
.hx-desk.is-rising .hx-panel .hx-list > :nth-child(2) { animation-delay: .23s; }
.hx-desk.is-rising .hx-panel .hx-list > :nth-child(3) { animation-delay: .28s; }
.hx-desk.is-rising .hx-panel .hx-list > :nth-child(4) { animation-delay: .33s; }
.hx-desk.is-rising .hx-panel .hx-list > :nth-child(n+5) { animation-delay: .38s; }
.hx-desk.is-rising .hx-panel > :nth-child(n+5) { animation-delay: .4s; }
@keyframes hx-rise { from { opacity: 0; transform: translateY(10px); } }
/* One note at a time: "the web you already use" while the page is on its own, "the conversation lives here" once
   the panel is open. The leaving note lifts and fades quickly; the arriving one waits a beat, settles down into place
   and its arrow draws itself in. */
.note.n0, .hx-desk.is-closed .note.n1 { opacity: 0; transform: translateY(-6px); transition: opacity .45s ease-in, transform .45s ease-in; }
.hx-desk.is-closed .note.n0 { opacity: 1; transform: none; transition: opacity .8s ease-out .35s, transform .9s cubic-bezier(.32,.72,0,1) .35s; }
.note.n1 { transition: opacity .8s ease-out .55s, transform .9s cubic-bezier(.32,.72,0,1) .55s; }
.note.n0 path, .note.n1 path { stroke-dasharray: 1; }
.note.n0 path, .hx-desk.is-closed .note.n1 path { stroke-dashoffset: 1; transition: stroke-dashoffset .3s ease-in; }
.hx-desk.is-closed .note.n0 path { stroke-dashoffset: 0; transition: stroke-dashoffset .7s ease-out .6s; }
.note.n1 path { stroke-dashoffset: 0; transition: stroke-dashoffset .7s ease-out .8s; }
/* the emphasis: the window zooms in on the button while it arrives and glows, and back out as the panel opens.
   It zooms from the page's right edge, halfway down, so the edge stays in view and the button moves in from it. */
.hx-zoom { position: absolute; inset: 0; transform-origin: 1400px 477px; transition: transform .9s cubic-bezier(.45,.05,.3,1); }
.hx-desk.is-zoom .hx-zoom { transform: scale(1.9); }
/* the page loading: a progress bar under the toolbar */
.hx-progress { position: absolute; left: 0; top: 77px; height: 3px; width: 0; background: #2563eb; border-radius: 0 2px 2px 0; opacity: 0; z-index: 3; }
.hx-desk.is-loading .hx-progress { opacity: 1; animation: hx-progress 1.1s cubic-bezier(.3,.7,.3,1) forwards; }
.hx-desk:not(.is-loading) .hx-progress { width: 100%; transition: opacity .4s; }
@keyframes hx-progress { from { width: 0; } 60% { width: 72%; } to { width: 100%; } }
/* the Chaffiti button on the desktop page: 44px across, 54px in from the right edge, halfway down */
.hx-content .hx-bub { left: 1291px; top: 444px; width: 66px; height: 66px; z-index: 4; transform: scale(0); opacity: 0; transition: none; }
.hx-content .hx-bub svg { width: 100%; height: 100%; overflow: visible; }
.hx-desk.is-btn .hx-bub { transform: none; opacity: 1; animation: hx-arrive .6s cubic-bezier(.32,.72,0,1) backwards; transition: transform .25s cubic-bezier(.32,.72,0,1); }
.hx-desk.is-btn .hx-bub.hover { transform: scale(1.1); }
.hx-desk.is-btn .hx-bub.out { animation: hx-btn-out .52s cubic-bezier(.5,0,.75,0) forwards; }
@keyframes hx-arrive { from { opacity: 0; transform: scale(.6); } }
@keyframes hx-btn-out { 0% { opacity: 1; transform: scale(1.1); } 22% { opacity: 1; transform: scale(.86, .99); } 100% { opacity: 0; transform: scale(.15); } }
/* the pointer and its click */
.hx-pointer { position: absolute; width: 26px; height: 34px; z-index: 6; opacity: 0; pointer-events: none; transition: left 1.1s cubic-bezier(.45,.05,.3,1), top 1.1s cubic-bezier(.45,.05,.3,1), opacity .3s; }
.hx-pointer.on { opacity: 1; }
.hx-pointer svg { width: 100%; height: 100%; }
.hx-click { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 2px solid rgba(37,99,235,.7); z-index: 5; opacity: 0; pointer-events: none; }
.hx-click.go { animation: hx-click .55s ease-out; }
@keyframes hx-click { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.3); } }

/* ---------- example pages: shared parts ---------- */
.hx-page { position: absolute; top: 0; bottom: 0; left: 0; right: 455px; overflow: hidden; background: var(--hx-bg, #fff); }
.hx-mpage { min-height: 1100px; background: var(--hx-bg, #fff); }
.hx-nav { display: flex; align-items: center; gap: 28px; padding: 18px 36px; border-bottom: 1px solid var(--hx-line, #eee); font-size: 15px; color: #444; }
.hx-nav b { color: var(--hx-brand); font-weight: 600; }
.hx-brand { font-weight: 800; font-size: 22px; color: var(--hx-brand, #111); margin-right: auto; letter-spacing: -.01em; }
.hx-pad { padding: 26px 36px; }
.hx-cols { display: flex; gap: 30px; padding: 30px 36px; }
.hx-col { flex: 1; }
.hx-art { flex: 1.2; height: 520px; border-radius: 16px; background: var(--hx-art); display: grid; place-items: center; }
.hx-eyebrow { font-size: 14px; color: var(--hx-accent); font-weight: 700; letter-spacing: .08em; }
.hx-title { font-size: 32px; font-weight: 800; margin: 6px 0 4px; }
.hx-title.hx-serif { font-family: Georgia, serif; font-weight: 400; font-size: 30px; }
.hx-sub { font-size: 15px; color: #555; }
.hx-rating { margin: 10px 0; font-size: 14px; color: #555; }
.hx-stars { color: #f5a623; letter-spacing: 1px; }
.hx-price { font-size: 24px; font-weight: 700; margin: 6px 0 16px; }
.hx-unit { font-size: 15px; color: #777; font-weight: 400; }
.hx-label { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.hx-btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px; background: var(--hx-btn); color: var(--hx-btn-tx, #fff); }
.hx-btn.ghost { background: #fff; border: 1px solid #ccc; color: #1d1f24; margin-left: 8px; }
.hx-btn.block { display: block; text-align: center; padding: 16px; margin-top: 20px; }
.hx-btn.pill { border-radius: 999px; }
.hx-h3 { margin: 24px 0 8px; font-size: 20px; font-weight: 700; }
.hx-p { line-height: 1.6; color: #333; font-size: 16px; margin: 0; }
.hx-chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--hx-chip, #f1f2f4); color: var(--hx-chip-tx, #333); font-size: 13px; margin: 0 6px 6px 0; }
.hx-fine { font-size: 14px; color: #6b6457; margin-top: 14px; text-align: center; }

/* ---------- themes ---------- */
.t-home { --hx-brand: #c2410c; --hx-btn: #c2410c; }
.t-shoe { --hx-brand: #111; --hx-btn: #111; --hx-accent: #c2410c; --hx-art: #f3f1ee; }
.t-skin { --hx-bg: #fffaf5; --hx-line: #f1e6da; --hx-brand: #111; --hx-btn: #3b2a1e; --hx-accent: #b5651d; --hx-chip: #fbeee0; --hx-art: linear-gradient(160deg,#ffe3c4,#ffd0b0); }
.t-book { --hx-bg: #fbf8f2; --hx-line: #ece5d8; --hx-brand: #111; --hx-btn: #2f5d62; --hx-chip: #e8f0e6; --hx-chip-tx: #2f5d3a; }
.t-cabin { --hx-brand: #2f6b47; --hx-btn: #2f6b47; }
.t-dog { --hx-bg: #fffdf8; --hx-brand: #b45309; --hx-btn: #b45309; --hx-art: linear-gradient(160deg,#cfe8f5,#a8d5a2); }
.t-park { --hx-btn: #efeee9; --hx-btn-tx: #1d1f24; }
.t-careers { --hx-brand: #0f4c81; --hx-btn: #0f4c81; --hx-accent: #0f4c81; --hx-chip: #e8f1fb; }
.t-sports { --hx-brand: #d6262f; --hx-btn: #d6262f; }
.t-market { --hx-brand: #0d7a5f; --hx-btn: #0d7a5f; --hx-chip: #e6f4ef; --hx-chip-tx: #0b5e49; }
.t-league { --hx-brand: #1f7a3a; --hx-btn: #1f7a3a; --hx-accent: #1f7a3a; --hx-chip: #e7f4ea; --hx-chip-tx: #1f5e33; }
.t-skin .hx-brand { font-weight: 600; font-family: Georgia, serif; letter-spacing: .04em; }
.t-book .hx-brand { font-family: Georgia, serif; font-weight: 700; }

/* ---------- each example's own bits ---------- */
.hl-photo svg { width: 100%; height: 420px; }
.hl-body { padding: 26px 36px; }
.hl-head { display: flex; align-items: baseline; gap: 18px; }
.hl-price { font-size: 34px; font-weight: 800; }
.hl-facts { font-size: 17px; color: #444; }
.hl-addr { font-size: 17px; margin: 6px 0 18px; }

.rs-shoe { width: 440px; }
.rs-swatches { display: flex; gap: 10px; margin-bottom: 20px; }
.rs-swatches i { width: 34px; height: 34px; border-radius: 50%; display: block; }
.sw-sun { background: linear-gradient(90deg,#ff8a5c,#ffc15c); outline: 2px solid #111; outline-offset: 3px; }
.sw-blue { background: #7aa7d9; } .sw-black { background: #222; } .sw-sage { background: #c9d8c5; }
.rs-sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rs-sizes span { border: 1px solid #ddd; border-radius: 8px; padding: 10px; text-align: center; }
.rs-sizes .on { border: 2px solid #111; padding: 9px; font-weight: 700; }

.sk-bottle { width: 300px; }
.t-skin .hx-art { flex: 1.1; height: 560px; border-radius: 18px; }
.t-skin .hx-p { color: #4a4038; margin: 4px 0 18px; }
.t-skin .hx-fine { color: #6b5a4c; text-align: left; }

.bk-cols { gap: 40px; padding: 36px; }
.bk-cover { flex: none; width: 330px; height: 500px; border-radius: 4px 10px 10px 4px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.35); overflow: hidden; }
.bk-svg { width: 100%; height: 100%; }
.t-book .hx-title { font-size: 34px; margin-top: 10px; }
.t-book .hx-sub { font-size: 17px; margin-bottom: 10px; }
.t-book .hx-price { font-size: 22px; font-weight: 600; margin: 16px 0; }
.bk-blurb { margin-top: 24px; color: #3d3a35; }
.bk-quote { font-style: italic; color: #6b6457; font-size: 15px; margin: 16px 0 0; }

.cb-head { padding: 22px 36px 0; }
.cb-title { font-size: 28px; font-weight: 700; }
.cb-meta { font-size: 15px; color: #444; margin: 6px 0 16px; }
.cb-photos { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; padding: 0 36px; height: 380px; }
.cb-photos svg { width: 100%; height: 380px; border-radius: 14px 0 0 14px; }
.cb-photos div { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; }
.cb-photos i { display: block; }
.cb-p1 { border-radius: 0 14px 0 0; background: linear-gradient(135deg,#d9b48f,#8a5a3c); }
.cb-p2 { border-radius: 0 0 14px 0; background: linear-gradient(135deg,#ff9a3c,#7a2e1a); }
.cb-foot { padding: 22px 36px; display: flex; gap: 30px; }
.cb-kind { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.t-cabin .hx-p { color: #444; font-size: 15.5px; }
.cb-book { width: 250px; border: 1px solid #ddd; border-radius: 14px; padding: 16px; box-shadow: 0 6px 16px rgba(0,0,0,.08); font-size: 20px; }
.cb-book span { font-size: 15px; color: #555; }
.cb-book .hx-btn { margin-top: 12px; padding: 12px; color: #fff; }

.dg-svg { width: 360px; }
.t-dog .hx-art { flex: 1.1; border-radius: 18px; }
.dg-avail { --hx-chip: #e9f6e6; --hx-chip-tx: #2f6b3a; }
.dg-name { font-size: 42px; margin: 8px 0 2px; }
.t-dog .hx-sub { font-size: 17px; margin-bottom: 18px; }
.dg-traits { margin-bottom: 12px; }
.t-dog .hx-p { color: #3d3a35; margin: 6px 0 18px; }

.np-top { background: #000; color: #fff; padding: 14px 36px; font-size: 15px; display: flex; gap: 28px; }
.np-top b { margin-right: auto; }
.np-top span { color: #ccc; }
.np-band { background: #5a6b3b; color: #fff; padding: 18px 36px; }
.np-name { font-size: 30px; font-family: Georgia, serif; }
.np-state { font-size: 15px; opacity: .85; }
.np-tabs { background: #efeee9; padding: 10px 36px; font-size: 14px; display: flex; gap: 26px; color: #333; }
.np-photo svg { width: 100%; height: 400px; }
.t-park .hx-pad { padding: 22px 36px; }
.np-welcome { font-size: 22px; font-family: Georgia, serif; margin-bottom: 8px; }

.cr-head { background: linear-gradient(120deg,#e8f1fb,#f5f0ff); padding: 40px 36px; }
.t-careers .hx-title { font-size: 36px; margin: 8px 0; }
.cr-meta { font-size: 16px; color: #444; margin-bottom: 20px; }
.t-careers .hx-pad { padding: 28px 36px; }
.t-careers .hx-h3:first-child { margin-top: 0; }
.cr-list { line-height: 1.8; color: #333; font-size: 16px; margin: 0 0 4px; padding-left: 22px; }

/* live game: hero.js runs the clock, bumps the score and adds plays */
.sp-board { background: #101522; color: #fff; padding: 26px 36px; display: flex; align-items: center; justify-content: space-between; }
.sp-team { display: flex; align-items: center; gap: 14px; }
.sp-team.away { flex-direction: row-reverse; text-align: right; }
.sp-logo { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.sp-hawks { background: #f2a541; color: #101522; } .sp-foxes { background: #2f7de1; color: #fff; }
.sp-name { font-size: 18px; font-weight: 700; white-space: nowrap; } .sp-rec { font-size: 13px; color: #9aa3b5; margin-top: 2px; }
.sp-score { position: relative; display: inline-block; font-size: 54px; font-weight: 800; font-variant-numeric: tabular-nums; margin: 0 14px; }
.sp-score.dim { color: #aab2c2; }
.sp-score.bump { animation: sp-bump .9s ease-out; }
@keyframes sp-bump { 0% { transform: none; } 22% { transform: translateY(-10%) scale(1.18); color: #ffd166; } 100% { transform: none; } }
.sp-plus { position: absolute; right: -6px; top: -6px; font-size: 18px; font-weight: 800; color: #ffd166; animation: sp-plus 1.4s ease-out forwards; pointer-events: none; }
.sp-row .sp-plus { font-size: 13px; right: -14px; }
@keyframes sp-plus { from { opacity: 0; transform: translateY(8px); } 20% { opacity: 1; } to { opacity: 0; transform: translateY(-22px); } }
.sp-mid { text-align: center; }
.sp-live { position: relative; display: inline-block; background: #e5383b; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .1em; padding: 4px 9px 4px 20px; border-radius: 5px; }
.sp-live::before { content: ""; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #fff; animation: hx-blink 1.2s ease-in-out infinite; }
.sp-clock { font-size: 16px; margin-top: 8px; color: #d7dbe4; white-space: nowrap; }
.sp-tabs { display: flex; gap: 28px; padding: 0 36px; border-bottom: 1px solid #eee; font-size: 15px; color: #555; }
.sp-tabs span, .sp-tabs b { padding: 15px 0 12px; }
.sp-tabs b { border-bottom: 3px solid #d6262f; color: #111; font-weight: 600; }
.sp-cols { gap: 40px; }
.sp-pbp > div { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid #f0f0f2; font-size: 15.5px; color: #333; }
.sp-pbp > div.new { animation: sp-row-in .5s ease-out, sp-row-glow 2.6s ease-out; }
@keyframes sp-row-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes sp-row-glow { from { background: #fff3cd; } to { background: transparent; } }
.sp-pbp time { width: 40px; color: #8a8f99; font-variant-numeric: tabular-nums; flex: none; }
.sp-pbp span { flex: 1; }
.sp-pbp em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.sp-side { width: 260px; flex: none; }
.sp-key { display: flex; gap: 16px; font-size: 13px; color: #555; margin: -2px 0 16px; }
.sp-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.sp-k1 { background: #f2a541; } .sp-k2 { background: #2f7de1; }
.sp-stat { margin-bottom: 18px; font-size: 14px; color: #333; }
.sp-stat > div:first-child { display: flex; justify-content: space-between; }
.sp-stat b { font-weight: 500; color: #6b7080; }
.sp-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin-top: 7px; background: #2f7de1; }
.sp-bar i { display: block; background: #f2a541; border-right: 2px solid #fff; }
.sp-w41 { width: 41%; } .sp-w48 { width: 48%; } .sp-w52 { width: 52%; } .sp-w56 { width: 56%; }

/* secondhand listing */
.mk-cols { gap: 34px; padding: 28px 36px 0; }
.mk-photo { flex: 1.15; height: 440px; border-radius: 14px; background: linear-gradient(180deg,#eef1ec,#e2e7e0); display: grid; place-items: center; position: relative; }
.mk-bike { width: 82%; }
.mk-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; }
.mk-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,.2); display: block; }
.mk-dots i.on { background: #0d7a5f; }
.mk-price { font-size: 32px; font-weight: 800; }
.mk-title { font-size: 22px; font-weight: 600; margin: 4px 0 6px; line-height: 1.25; }
.mk-meta { font-size: 14.5px; color: #6b7080; margin-bottom: 18px; }
.mk-seller { display: flex; gap: 12px; align-items: center; border: 1px solid #e6e8ec; border-radius: 12px; padding: 12px 14px; margin: 22px 0 18px; font-size: 13.5px; color: #555; line-height: 1.4; }
.mk-seller b { color: #1d1f24; font-size: 15px; }
.mk-sav { width: 40px; height: 40px; border-radius: 50%; background: #dbeee6; color: #0b5e49; font-weight: 700; display: grid; place-items: center; flex: none; }
.mk-desc { padding-top: 6px; }

/* rec league */
.lg-head { background: linear-gradient(120deg,#e7f4ea,#f3f8e6); padding: 34px 36px 30px; }
.lg-meta { font-size: 16px; color: #444; margin-bottom: 18px; }
.t-league .hx-title { margin: 8px 0 6px; }
.lg-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.lg-table th { text-align: left; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: #6b7080; font-weight: 600; padding: 0 10px 10px 0; border-bottom: 2px solid #e6e8ec; }
.lg-table td { padding: 13px 10px 13px 0; border-bottom: 1px solid #f0f0f2; color: #333; }
.lg-table td:first-child { color: #6b7080; font-variant-numeric: tabular-nums; width: 90px; }
.lg-table td:nth-child(2) { width: 90px; }
.lg-table .vs { color: #9aa0ab; width: 34px; }

/* ---------- phone ---------- */
.hx-mob { width: min(320px, 100%); margin: 0 auto; }
.hx-pscaler { width: 100%; aspect-ratio: 414 / 868; position: relative; }
.hx-phone { position: absolute; left: 0; top: 0; width: 414px; height: 868px; transform-origin: 0 0; border: 12px solid #111; border-radius: 64px; background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.hx-screen { position: absolute; inset: 0; overflow: hidden; }
.hx-island { position: absolute; top: 11px; left: 50%; width: 120px; height: 34px; margin-left: -60px; background: #000; border-radius: 20px; z-index: 9; }
.hx-status { position: absolute; top: 0; left: 0; right: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0 46px; font-weight: 600; font-size: 16px; z-index: 8; background: #fff; }
.hx-sig { display: flex; gap: 6px; align-items: center; }
.hx-sig svg { fill: #111; }
.hx-bat { width: 25px; height: 12px; border: 1.5px solid #222; border-radius: 4px; padding: 1px; }
.hx-bat i { display: block; height: 100%; width: 80%; background: #222; border-radius: 2px; }
.hx-mpage-wrap { position: absolute; top: 54px; left: 0; right: 0; transition: transform 1.3s cubic-bezier(.3,.7,.3,1), opacity .5s ease-out; }
.s-loading .hx-mpage-wrap { opacity: 0; transition: none; }
.s-scroll .hx-mpage-wrap { transform: translateY(-90px); }
.hx-mpage .hx-nav { padding: 14px 18px; gap: 0; }
.hx-mpage .hx-brand { font-size: 19px; }
.hx-burger { font-size: 20px; color: #333; }
.hx-mpage .hx-pad { padding: 16px 18px; }
.hx-mpage .hx-p { font-size: 15px; line-height: 1.55; margin: 10px 0; }
.hx-mpage .hx-btn { display: block; text-align: center; padding: 14px; margin: 14px 0 0; }
.hx-mpage .hx-title { font-size: 26px; }
.hx-mpage .hx-title.hx-serif { font-size: 24px; }
.hx-mpage .hx-eyebrow { font-size: 12px; }
.hx-mpage .hx-rating { margin: 6px 0; font-size: 13px; }
.hx-mpage .hx-price { font-size: 20px; margin: 8px 0; }
.hx-mpage .hx-h3 { font-size: 18px; margin: 20px 0 4px; }
.hx-mpage .rs-swatches { margin: 14px 0 4px; }
.hx-mpage .rs-swatches i { width: 30px; height: 30px; }
.hx-mhero .hx-art { height: 300px; border-radius: 0; }
.hx-mhero .hx-art svg { width: auto; height: 80%; max-width: 78%; }
.hx-mhero.wide svg { width: 100%; height: 250px; }
.hx-mhero.cover { display: grid; place-items: center; padding: 18px 0 4px; }
.hx-mhero .bk-cover { width: 170px; height: 258px; border-radius: 3px 8px 8px 3px; }
.hx-mpage .hl-price { font-size: 28px; }
.hx-mpage .hl-facts { font-size: 15px; margin: 2px 0; }
.hx-mpage .hl-addr { font-size: 15px; margin: 0; }
.bk-center { text-align: center; }
.bk-center .hx-p { text-align: left; }
.hx-mpage .cb-title { font-size: 22px; }
.hx-mpage .cb-meta { font-size: 14px; margin: 4px 0 10px; }
.hx-mpage .cb-kind { font-size: 16px; }
.cb-reserve { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #eee; padding-top: 12px; font-size: 18px; }
.hx-mpage .cb-reserve .hx-btn { margin: 0; padding: 12px 26px; }
.hx-mpage .dg-name { font-size: 32px; margin: 4px 0 2px; }
.hx-mpage.t-dog .hx-sub { font-size: 15px; margin-bottom: 10px; }
.hx-mpage .np-top { padding: 12px 18px; font-size: 14px; }
.hx-mpage .np-top span { color: #fff; }
.hx-mpage .np-band { padding: 14px 18px; }
.hx-mpage .np-name { font-size: 24px; }
.hx-mpage .np-welcome { font-size: 20px; }
.hx-mpage.t-park .hx-pad { padding: 16px 18px; }
.np-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hx-mpage .np-links .hx-btn { margin: 0; }
.hx-mpage .cr-head { padding: 26px 18px; }
.hx-mpage.t-careers .hx-title { font-size: 28px; line-height: 1.15; }
.hx-mpage .cr-meta { font-size: 14px; margin: 0; }
.hx-mpage.t-careers .hx-pad { padding: 16px 18px; }
.sp-board.m { display: block; padding: 16px 18px; }
.sp-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.sp-row .sp-logo { width: 36px; height: 36px; font-size: 13px; }
.sp-row .sp-name { flex: 1; font-size: 17px; }
.sp-row .sp-score { font-size: 30px; margin: 0; }
.sp-board.m .sp-mid { text-align: left; margin-top: 6px; }
.sp-board.m .sp-clock { display: inline; font-size: 14px; margin-left: 6px; }
.hx-mpage .sp-tabs { padding: 0 18px; gap: 20px; font-size: 14px; }
.hx-mpage .sp-pbp > div { font-size: 14.5px; padding: 10px 0; }
.mk-photo.m { height: 250px; border-radius: 0; flex: none; }
.hx-mpage .mk-price { font-size: 28px; }
.hx-mpage .mk-title { font-size: 19px; }
.hx-mpage .mk-meta { font-size: 13.5px; margin: 0; }
.hx-mpage .lg-head { padding: 20px 18px 18px; }
.hx-mpage .lg-meta { font-size: 14px; margin: 0; }
.lg-g { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid #f0f0f2; font-size: 14.5px; color: #333; line-height: 1.35; }
.lg-g time { width: 38px; color: #6b7080; flex: none; font-variant-numeric: tabular-nums; }
.lg-g span { display: block; color: #6b7080; font-size: 13px; }

/* Safari's bottom bar */
.hx-sbar { position: absolute; left: 0; right: 0; bottom: 0; height: 104px; background: linear-gradient(rgba(255,255,255,0), #fff 30%); z-index: 6; }
.hx-row { position: absolute; left: 14px; right: 14px; bottom: 34px; display: flex; gap: 8px; align-items: center; }
.hx-cb { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(0,0,0,.14); display: grid; place-items: center; color: #222; font-size: 20px; flex: none; }
.hx-pill { flex: 1; height: 48px; border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(0,0,0,.14); display: flex; align-items: center; gap: 10px; padding: 0 16px; font-size: 16px; color: #111; }
.hx-u { flex: 1; text-align: center; }
.hx-ext svg { width: 20px; height: 20px; } .hx-ext path { fill: #222; }

/* The Chaffiti button (site/hero/_button: the glass button from /hello), its glow, the tap, and the sheet it opens.
   44px across, 22px in from the right edge, halfway down: centred at (346, 430) on the 390 x 844 screen. */
.hx-bub { position: absolute; left: 313px; top: 397px; width: 66px; height: 66px; z-index: 5; transform: scale(0); transition: transform .45s cubic-bezier(.3,1.6,.5,1); }
.hx-phone .hx-bub svg, .bp-inner .hx-bub svg { width: 100%; height: 100%; overflow: visible; }
.s-bubble .hx-bub { transform: scale(1); }
.hx-bub .ios-glass { fill: #fff; fill-opacity: .06; }
.hx-bub .ios-glass-rim { fill: none; stroke: #fff; stroke-opacity: .3; stroke-width: .55; }
.hx-bub .ios-bubble { fill: none; stroke: #1d1d1f; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hx-bub .ios-spray, .hx-bub .ios-drip-end { fill: #2563eb; }
.hx-bub .ios-c, .hx-bub .ios-drip { fill: none; stroke: #2563eb; stroke-linecap: round; }
.hx-bub .ios-c { stroke-width: 2.3; }
.hx-bub .ios-drip { stroke-width: 1.7; }
.hx-bub .ios-c-glow { fill: none; stroke: #6b9bff; stroke-linecap: round; }
.hx-bub .ios-sweep-arc { fill: none; }
.hx-bub .ios-glow, .hx-bub .ios-c-glow { opacity: 0; }
.hx-bub .ios-sweep { transform-box: fill-box; transform-origin: center; }
/* the glow, as on /hello: a highlight sweeps twice around the rim with a blue bloom behind it, and the C glows once a lap */
.s-glow .hx-bub .ios-glow { animation: hx-glow 2.6s linear both; }
.s-glow .hx-bub .ios-sweep { animation: hx-sweep 2.6s cubic-bezier(.45,.05,.55,.95) both; }
.s-glow .hx-bub .ios-c-glow { animation: hx-c-glow 2.6s ease-in-out both; }
@keyframes hx-glow { 0% { opacity: 0; } 10%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hx-sweep { from { transform: rotate(-90deg); } to { transform: rotate(630deg); } }
@keyframes hx-c-glow { 0%, 50%, 100% { opacity: 0; } 25%, 75% { opacity: .85; } }
/* "The bubble, on every page": the same glow every seven seconds */
.bp-screen .hx-bub .ios-glow { animation: hx-glow-loop 7s linear infinite; }
.bp-screen .hx-bub .ios-sweep { animation: hx-sweep-loop 7s cubic-bezier(.45,.05,.55,.95) infinite; }
.bp-screen .hx-bub .ios-c-glow { animation: hx-c-glow-loop 7s ease-in-out infinite; }
@keyframes hx-glow-loop { 0%, 60% { opacity: 0; } 64%, 93% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes hx-sweep-loop { 0%, 60% { transform: rotate(-90deg); } 97%, 100% { transform: rotate(630deg); } }
@keyframes hx-c-glow-loop { 0%, 60%, 78.5%, 97%, 100% { opacity: 0; } 69%, 88% { opacity: .85; } }
.hx-tap { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(60,64,72,.35); border: 2px solid rgba(255,255,255,.8); z-index: 20; opacity: 0; pointer-events: none; }
.hx-tap.go { animation: hx-tap .55s ease-out; }
@keyframes hx-tap { 0% { opacity: 0; transform: scale(1.5); } 35% { opacity: 1; transform: scale(.9); } 100% { opacity: 0; transform: scale(1); } }
.hx-dim { position: absolute; inset: 0; background: rgba(0,0,0,.38); opacity: 0; transition: opacity .4s; z-index: 6; pointer-events: none; }
.s-sheet .hx-dim { opacity: 1; }
.s-sheet .hx-status { background: transparent; }
.hx-sheet { position: absolute; left: 0; right: 0; top: 62px; bottom: 0; background: #fff; border-radius: 18px 18px 0 0; z-index: 7; transform: translateY(102%); transition: transform .5s cubic-bezier(.25,.9,.3,1); display: flex; flex-direction: column; font-size: 15px; }
.s-sheet .hx-sheet { transform: none; }
.s-sheet .hx-sbar { z-index: 8; }
.hx-grab { width: 40px; height: 5px; border-radius: 3px; background: #d6d8de; margin: 8px auto 2px; }
.hx-sheet .hx-ph { padding: 8px 16px; }
.hx-sheet .hx-pcard { margin: 2px 12px 6px; }
.hx-sheet .hx-list { padding: 2px 16px 0; }
.hx-sheet .hx-c { opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s; padding: 10px 0 8px; }
.hx-sheet .hx-c.in { opacity: 1; transform: none; }
.hx-sheet .hx-r { padding-left: 34px; }
.hx-sheet .hx-c p { font-size: 15px; margin: 2px 0 7px; }
.hx-sheet .hx-compose { margin: 8px 12px 112px; }

/* ---------- "The bubble, on every page" (site/_bubble_phone): framed like the 640 x 1066 app screenshot beside it ---------- */
.bp-scaler { width: 100%; aspect-ratio: 640 / 1066; position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.bp-plate { position: absolute; left: 0; top: 0; width: 640px; height: 1066px; transform-origin: 0 0; background: linear-gradient(180deg, #dde6f8, #eef2fb); }
.bp-phone { position: absolute; left: 64px; top: 16px; width: 512px; height: 1100px; background: #fff; border-radius: 72px 72px 0 0; overflow: hidden;
  box-shadow: 0 0 0 1.5px rgba(30,50,100,.08), 0 10px 30px rgba(30,50,100,.10); }
.bp-inner { position: absolute; left: 0; top: 0; width: 390px; height: 800px; transform: scale(1.3128); transform-origin: 0 0; color: #1d1f24; line-height: normal; text-align: left; }
.bp-screen .hx-bub { top: 367px; }
.bp-screen .hx-row { bottom: 14px; }

@media (prefers-reduced-motion: reduce) {
  .hx-mpage-wrap, .hx-sheet, .hx-sheet .hx-c, .hx-dim, .hx-bub { transition: none; }
  .hx-tap.go, .hx-bub *, .sp-live::before, .hx-compose.on .hx-typed::after { animation: none !important; }
  .hx-page, .hx-panel, .hx-zoom, .note, .note path { transition: none !important; }
}
