/* Public marketing compositions follow both viewport axes; long content keeps its natural height. */
html { --panel-height: 100dvh; --panel-space: clamp(32px, 6svh, 80px); scroll-padding-bottom: 0; }
html[data-page=home] .hero { height: var(--panel-height); }
html[data-page=home] section { padding-block: var(--panel-space); }
html[data-page=home] .pcard { position: relative; top: auto; min-height: min(560px, calc(var(--panel-height) - 120px)); }
html[data-page=home] .pcard .txt { gap: clamp(12px, 2svh, 18px); padding: clamp(24px, 4svh, 56px); }
html[data-page=home] .pgrid, html[data-page=home] .stack { margin-top: clamp(24px, 4svh, 56px); }
html[data-page=home] .contact { min-height: var(--panel-height); display: grid; align-content: center; }
html[data-page=bearball] section { padding-block: var(--panel-space); }
html[data-page=bearball] .hero { min-height: var(--panel-height); padding-top: clamp(88px, 14svh, 150px); display: grid; align-content: end; }
html[data-page=bearball] .stage { height: clamp(300px, calc(var(--panel-height) - 150px), 620px); }
html[data-page=bearball] .hero .logo { width: min(420px, 80%, 44svh); margin-bottom: clamp(12px, 3svh, 22px); }
html[data-page=bearball] .sec-head { margin-bottom: clamp(24px, 4svh, 52px); }
html[data-page=bearball] .final { min-height: var(--panel-height); display: grid; align-content: center; }
/* Scale artwork, never scale interactive quiz text or hide its controls. */
@media(min-width:861px) {
  html[data-page=home] .pcard .vis { min-height: 0; }
  html[data-page=bearball] .hero .wrap > div:first-child { padding-bottom: clamp(24px, 5svh, 90px); }
}
@media(max-width:860px) {
  html[data-page=home] .pcard .vis { height: clamp(180px, 30svh, 380px); min-height: 0; }
  html[data-page=home] .pcard .txt { padding: 24px; }
  html[data-page=bearball] .hero { align-content: start; }
  html[data-page=bearball] .hero .wrap { gap: 0; }
  html[data-page=bearball] .hero .wrap > div:first-child { padding-bottom: 20px; }
  html[data-page=bearball] .hero .logo { width: min(280px, 70%, 24svh); }
  html[data-page=bearball] .hero p { margin-bottom: 16px; }
  html[data-page=bearball] .stage { height: clamp(180px, 30svh, 400px); margin-top: 20px; }
  html[data-page=bearball] .stage .kv { width: auto; height: 110%; max-width: 90%; }
}
/* Luvoca retains its existing photography and typography. */
html[data-site=luvoca] .hero { height: calc(var(--panel-height) - 78px); min-height: 460px; max-height: none; }
html[data-site=luvoca] .hero-copy { padding-block: clamp(24px, 5svh, 44px); }
html[data-site=luvoca] :is(.campaign,.members,.archive,.learn,.play-section,.news,.fandom) { padding-block: var(--panel-space); }
html[data-site=luvoca] .section-top { margin-bottom: clamp(20px, 4svh, 45px); }
html[data-site=luvoca] .campaign-photo { height: clamp(280px, calc(var(--panel-height) - 240px), 600px); }
html[data-site=luvoca] .fandom { min-height: 75svh; display: flex; flex-direction: column; justify-content: center; }
@media(min-width:761px) {
  html[data-site=luvoca] .member-grid .portrait { height: clamp(240px, calc(var(--panel-height) - 320px), 600px); aspect-ratio: auto; }
  html[data-site=luvoca] .learn .play-inline { width: min(100%, 420px, 52svh); }
}
@media(max-width:760px) {
  html[data-site=luvoca] .hero { height: calc(var(--panel-height) - 67px); min-height: 430px; }
  html[data-site=luvoca] .hero-copy { padding-inline: 22px; }
  html[data-site=luvoca] .campaign-photo { height: clamp(240px, 45svh, 480px); aspect-ratio: auto; }
  html[data-site=luvoca] .member-grid .portrait, html[data-site=luvoca] .archive-image { height: min(72svh, 620px); aspect-ratio: auto; }
  html[data-site=luvoca] .hero-actions { flex-wrap: wrap; }
}
@media(max-width:760px) {
  /* Keep the existing fixed fan-club button clear of the hero actions. */
  html[data-site=luvoca] .hero-copy { padding-bottom: max(90px, calc(env(safe-area-inset-bottom) + 76px)); }
}
@media(min-width:600px) and (max-height:600px) {
  html[data-page=bearball] .hero .wrap { grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; }
  html[data-page=bearball] .hero .logo { width: 110px; margin-block: 0 10px; }
  html[data-page=bearball] .hero h1 { font-size: 24px; margin-bottom: 8px; }
  html[data-page=bearball] .hero p { font-size: 14px; margin-bottom: 10px; }
  html[data-page=bearball] .hero .wrap > div:first-child { padding-bottom: 12px; }
  html[data-page=bearball] .hero .store { width: 145px; height: 44px; }
  html[data-page=bearball] .hero .app-btn { padding: 10px; margin-top: 8px; }
  html[data-page=bearball] .stage { height: calc(var(--panel-height) - 110px); margin-top: 0; }
  html[data-site=luvoca] .hero { min-height: 0; }
  html[data-site=luvoca] .hero-copy { padding-block: 16px; }
  html[data-site=luvoca] .hero h1 { font-size: 72px; margin-bottom: 12px; }
  html[data-site=luvoca] .hero-korean { margin-bottom: 10px; }
}

/* A visible company exit on every viewport, independent of the product menu. */
html[data-site=luvoca] .company-return { padding-inline: 5vw; border-bottom: 1px solid var(--line); }
html[data-site=luvoca] .company-return a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; }
html[data-site=luvoca] .company-return a:hover { color: #8094ff; }
html[data-site=luvoca] .hero { height: calc(var(--panel-height) - 123px); }
@media(max-width:760px) {
  html[data-site=luvoca] .company-return { padding-inline: 16px; }
  html[data-site=luvoca] .hero { height: calc(var(--panel-height) - 112px); }
}
@media(min-width:600px) and (max-height:600px) {
  html[data-site=luvoca] .hero { min-height: 312px; }
}

/* Native page snapping works with touch momentum, wheel and keyboard scrolling. */
html[data-page=home], html[data-page=bearball], html[data-site=luvoca] {
  scroll-snap-type: y mandatory;
  scroll-padding-top: 0;
  scroll-behavior: smooth;
}
html[data-page=home] :is(.hero, body > section, .product-panel, body > footer),
html[data-page=bearball] :is(.hero, body > section, body > footer),
html[data-site=luvoca] :is(.opening-panel, main > section, footer) {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: 0;
}
html[data-page=home] .marquee { scroll-snap-align: none; }
html[data-page=home] body > section,
html[data-page=bearball] body > section,
html[data-site=luvoca] main > section {
  min-height: var(--panel-height);
  display: grid;
  align-content: center;
}
html[data-page=home] .pcard { min-height: var(--panel-height); }
html[data-site=luvoca] .opening-panel { min-height: var(--panel-height); }
/* Tall sections stay in document flow: their middle remains scrollable. */
@media(max-width:860px) {
  html[data-page=home] .pcard .vis { height: clamp(150px, 25svh, 320px); }
  html[data-page=home] .pcard .txt { padding-block: 24px 36px; }
}
@media(max-width:760px) {
  html[data-site=luvoca] .campaign-photo { height: clamp(200px, 32svh, 380px); }
  html[data-site=luvoca] .member-grid .portrait { height: min(56svh, 560px); }
  html[data-site=luvoca] .member-grid { gap: 0; }
  html[data-site=luvoca] .member + .member {
    min-height: var(--panel-height); display: flex; flex-direction: column; justify-content: center;
    scroll-snap-align: start; scroll-snap-stop: always; padding-block: 32px 80px;
  }
  html[data-site=luvoca] .member > .portrait { width: 100%; }
  html[data-site=luvoca] .member-name, html[data-site=luvoca] .member-meta { width: 100%; }
  html[data-site=luvoca] .archive-item + .archive-item { scroll-snap-align: start; scroll-snap-stop: always; }
  html[data-site=luvoca] .archive-image { height: min(70svh, 620px); }
  html[data-site=luvoca] .members, html[data-site=luvoca] .archive { padding-bottom: 80px; }
}
@media(prefers-reduced-motion:reduce) {
  html[data-page=home], html[data-page=bearball], html[data-site=luvoca] { scroll-snap-type: none; scroll-behavior: auto; }
}

html[data-site=luvoca] main > section > .wrap { width: 100%; }
/* Product introduction and each product are separate full-screen stops. */
html[data-page=home] .products { padding-block: 0; }
html[data-page=home] .products .stack { margin-top: 0; gap: 0; }
html[data-page=home] body > section,
html[data-page=bearball] body > section,
html[data-site=luvoca] main > section { grid-template-columns: minmax(0, 1fr); }
html[data-page=home] body > section > *,
html[data-page=bearball] body > section > *,
html[data-site=luvoca] main > section > * { min-width: 0; }
@media(max-width:600px) and (min-height:500px) {
  html[data-page=bearball] .hero { height: var(--panel-height); display: flex; flex-direction: column; }
  html[data-page=bearball] .hero .wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  html[data-page=bearball] .hero .wrap > div:first-child { width: 100%; padding-bottom: 12px; }
  html[data-page=bearball] .hero .logo { width: min(220px, 20svh); margin-block: 0 12px; }
  html[data-page=bearball] .hero h1 { font-size: 24px; margin-bottom: 12px; }
  html[data-page=bearball] .hero p { font-size: 14px; line-height: 1.55; margin-bottom: 12px; }
  html[data-page=bearball] .hero .stores { flex-wrap: nowrap; }
  html[data-page=bearball] .hero .store { width: calc(50% - 5px); min-width: 0; padding-inline: 10px; font-size: 14px; }
  html[data-page=bearball] .hero .app-btn { padding-block: 12px; margin-top: 10px; }
  html[data-page=bearball] .hero .stage { width: 100%; flex: 1; height: auto; min-height: 100px; margin-top: 12px; }
}

/* Snap the surrounding panel; preserve the card's content and artwork proportions. */
html[data-page=home] .product-panel { min-height: var(--panel-height); display: flex; align-items: center; padding-block: 88px 24px; }
html[data-page=home] .product-panel .pcard { width: 100%; min-height: min(560px, calc(var(--panel-height) - 112px)); scroll-snap-align: none; }
html[data-page=home] .product-panel .pcard .txt { gap: 14px; padding: clamp(24px, 3vw, 44px); }
html[data-page=home] .product-panel .pcard .go { margin-top: 16px; }
html[data-page=home] .product-panel .pcard .txt { justify-content: center; }
html[data-page=home] .bear .vis .kv { width: auto; height: min(76%, 380px); max-width: 90%; bottom: 0; }
html[data-page=home] .bear .vis .bubble { top: 8%; }
@media(max-width:860px) {
  html[data-page=home] .product-panel .pcard { min-height: 0; }
  html[data-page=home] .product-panel .pcard .vis { height: clamp(180px, 28svh, 280px); }
  html[data-page=home] .product-panel .pcard .txt { padding: 20px; gap: 12px; }
  html[data-page=home] .product-panel .pcard .plogo { height: 44px; }
  html[data-page=home] .product-panel .pcard h3 { font-size: 44px; }
  html[data-page=home] .product-panel .pcard ul { font-size: 14px; gap: 8px; }
  html[data-page=home] .bear .vis .kv { height: 84%; left: 70%; max-width: 60%; }
  html[data-page=home] .bear .vis .bubble { left: 28%; top: 20%; font-size: 14px; padding: 10px 12px; }
}

/* Keep the complete opening composition inside the currently visible browser area. */
html[data-page=bearball] .hero {
  height: var(--panel-height); min-height: 0; padding: 88px 0 20px;
  display: flex; flex-direction: column; justify-content: center;
}
html[data-page=bearball] .hero .wrap {
  width: 100%; flex: 1; min-height: 0; align-items: center;
}
html[data-page=bearball] .hero .wrap > .hero-text { padding-bottom: 0; }
html[data-page=bearball] .hero .logo { width: min(360px, 70%, 32dvh); margin: 0 auto 16px; }
html[data-page=bearball] .hero h1 { font-size: clamp(24px, 7.5cqi, 48px); }
html[data-page=bearball] .hero p { font-size: clamp(14px, 1.4vw, 18px); margin-bottom: 20px; }
html[data-page=bearball] .hero .stage { height: 100%; min-height: 0; max-height: 600px; margin-top: 0; }
html[data-page=bearball] .hero .stage .kv {
  height: min(100%, calc(var(--panel-height) - 220px)); width: auto; max-width: 100%; bottom: 0;
}
html[data-page=bearball] .hero .stage .bubble { top: 0; }
@media(max-width:860px) and (min-height:601px) {
  html[data-page=bearball] .hero { padding-top: 80px; padding-bottom: 12px; }
  html[data-page=bearball] .hero .wrap { display: flex; flex-direction: column; gap: 12px; }
  html[data-page=bearball] .hero .hero-text { flex: none; width: 100%; }
  html[data-page=bearball] .hero .logo { width: min(240px, 18dvh); margin-bottom: 10px; }
  html[data-page=bearball] .hero h1 { font-size: clamp(22px, 6.8cqi, 32px); margin-bottom: 10px; }
  html[data-page=bearball] .hero p { font-size: 14px; line-height: 1.5; margin-bottom: 12px; }
  html[data-page=bearball] .hero .stage { flex: 1; width: 100%; min-height: 0; }
  html[data-page=bearball] .hero .stage .kv { height: calc(100% - 54px); max-height: 340px; }
  html[data-page=bearball] .hero .stage .bubble { font-size: 13px; padding: 8px 16px; }
  html[data-page=bearball] .hero .app-btn { padding-block: 12px; margin-top: 10px; }
}
@media(max-width:599px) and (max-height:600px) {
  html[data-page=bearball] .hero { padding: 72px 0 8px; }
  html[data-page=bearball] .hero .wrap { display: flex; flex-direction: column; gap: 8px; }
  html[data-page=bearball] .hero .hero-text { flex: none; width: 100%; }
  html[data-page=bearball] .hero .logo { width: 100px; margin-bottom: 8px; }
  html[data-page=bearball] .hero h1 { font-size: 22px; margin-bottom: 8px; }
  html[data-page=bearball] .hero p { font-size: 14px; line-height: 1.45; margin-bottom: 10px; }
  html[data-page=bearball] .hero .app-btn { padding-block: 10px; margin-top: 8px; }
  html[data-page=bearball] .hero .stage { flex: 1; width: 100%; min-height: 0; }
  html[data-page=bearball] .hero .stage .kv { height: 100%; max-width: 55%; left: 73%; }
  html[data-page=bearball] .hero .stage .bubble { left: 28%; top: 15%; font-size: 12px; padding: 8px; }
}
@media(min-width:600px) and (max-height:600px) {
  html[data-page=bearball] .hero { padding-top: 72px; padding-bottom: 8px; }
  html[data-page=bearball] .hero .logo { width: 100px; margin-bottom: 8px; }
  html[data-page=bearball] .hero h1 { font-size: 24px; margin-bottom: 8px; }
  html[data-page=bearball] .hero p { font-size: 14px; line-height: 1.45; margin-bottom: 10px; }
  html[data-page=bearball] .hero .app-btn { padding-block: 10px; margin-top: 8px; }
}
@media(min-width:601px) and (max-width:860px) and (min-height:601px) {
  html[data-page=bearball] .hero .stage { max-height: none; }
  html[data-page=bearball] .hero .stage .kv { max-height: none; }
}
html[data-page=bearball] .hero .wrap { width: min(var(--wrap), calc(100% - 32px)); }
@media(max-width:360px) {
  html[data-page=bearball] .hero { padding-top: 128px; }
}
html[data-page=bearball] .hero .cloud { opacity: .5; }

/* Every lower composition uses a visible screen; repeated content uses swipeable cards. */
html { --panel-space: clamp(20px, 4dvh, 48px); }
html[data-page=home] body > section,
html[data-page=bearball] body > section,
html[data-site=luvoca] main > section { min-height: var(--panel-height); }
html[data-page=bearball] .sec-head { margin-bottom: 20px; }
html[data-page=bearball] .sec-head h2 { font-size: clamp(26px, 3.6vw, 44px); margin-block: 8px 12px; }
html[data-page=bearball] .sec-head p { font-size: 15px; }
html[data-page=bearball] .try-grid { width: min(100%, 360px); }
html[data-page=bearball] .phone { height: clamp(360px, calc(var(--panel-height) - 200px), 600px); aspect-ratio: auto; border-radius: 30px; padding: 8px; }
html[data-page=bearball] .screen { border-radius: 24px; }
html[data-page=bearball] .island { display: none; }
html[data-page=bearball] .qbar { padding: 16px 14px 0; }
html[data-page=bearball] .peek { height: clamp(32px, 7dvh, 70px); flex: none; margin-top: 8px; }
html[data-page=bearball] .hintcard { margin-inline: 12px; padding: 10px 12px; }
html[data-page=bearball] .sentence { padding: 14px 14px 0; }
html[data-page=bearball] .chips { padding: 14px 12px 0; }
html[data-page=bearball] .voice { padding-block: 10px; }
html[data-page=bearball] .rv-tabs { margin-top: 12px; }
html[data-page=bearball] .rv-list { overflow-y: auto; min-height: 0; }
html[data-page=bearball] .algo-grid { gap: 24px; }
html[data-page=bearball] .level-art { height: min(60dvh, 500px); aspect-ratio: auto; }
html[data-page=bearball] .level-grid { gap: 20px; }
html[data-page=bearball] .feats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 8px 4px 20px; margin: 0; }
html[data-page=bearball] .feat { flex: 0 0 calc((100% - 32px) / 3); min-width: 0; scroll-snap-align: start; padding: 20px; }
html[data-page=bearball] .feat .kv { height: clamp(90px, 20dvh, 170px); }
html[data-page=bearball] .final .hang { width: min(180px, 24dvh); height: min(180px, 24dvh); margin: 0 auto; }
html[data-page=bearball] .final h2 { font-size: clamp(32px, 6vw, 64px); }
html[data-page=home] .pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
html[data-page=home] .pitem { min-width: 0; padding: 24px; }
html[data-page=home] .contact .kv { width: min(140px, 20dvh); }
html[data-page=home] .product-panel { min-height: var(--panel-height); padding-block: 24px; }
html[data-page=home] .product-panel .pcard { min-height: min(560px, calc(var(--panel-height) - 48px)); }
@media(max-width:900px) {
  html[data-page=bearball] .feat { flex-basis: 88%; }
  /* Phones: the three principles stack as compact rows, no sideways scroll. */
  html[data-page=home] .pgrid { grid-template-columns: 1fr; gap: 12px; }
  html[data-page=home] .pitem { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  html[data-page=home] .pitem img { grid-row: 1 / span 2; }
  html[data-page=home] .pitem h4 { font-size: 18px; margin-bottom: 6px; }
  html[data-page=bearball] .algo { padding-block: 0; align-content: start; }
  html[data-page=bearball] .algo > .wrap { display: contents; }
  html[data-page=bearball] .algo .sec-head { padding: 24px 16px 0; margin-bottom: 16px; }
  html[data-page=bearball] .algo-grid { display: contents; }
  html[data-page=bearball] .algo-points { width: min(680px, calc(100% - 32px)); margin: 0 auto 24px; gap: 10px; }
  html[data-page=bearball] .algo-point { padding: 12px; gap: 10px; }
  html[data-page=bearball] .algo-phone { min-height: var(--panel-height); max-width: none; display: grid; place-items: center; padding: 24px; scroll-snap-align: start; scroll-snap-stop: always; }
  html[data-page=bearball] .algo-phone .phone { width: min(100%, 360px); height: calc(var(--panel-height) - 64px); max-height: 680px; }
  html[data-page=bearball] .level-grid { grid-template-columns: minmax(0, 1fr); }
  html[data-page=bearball] .level-art { height: clamp(100px, 24dvh, 240px); }
  html[data-page=bearball] .level-art .num { font-size: clamp(64px, 14dvh, 130px); }
  html[data-page=bearball] .level-art .kv { width: min(28%, 140px); right: 18%; }
  html[data-page=bearball] .level-copy h3 { font-size: 26px; margin-bottom: 8px; }
  html[data-page=bearball] .level-copy p { font-size: 14px; margin-block: 8px; }
  html[data-page=bearball] .range { margin-top: 12px; }
  html[data-page=bearball] .level-desc { margin-top: 10px; min-height: 0; padding: 12px; font-size: 14px; }
  html[data-page=home] .product-panel .pcard { min-height: 0; }
  html[data-page=home] .product-panel .pcard .vis { height: clamp(130px, 25dvh, 240px); }
  html[data-page=home] .product-panel .pcard .txt { padding: 16px; gap: 10px; }
  html[data-page=home] .product-panel .pcard h3 { font-size: 36px; }
  html[data-page=home] .product-panel .pcard .go { margin-top: 6px; }
}
/* Luvoca: keep artwork and actions together, browse collections horizontally. */
html[data-site=luvoca] .section-top { margin-bottom: 20px; }
html[data-site=luvoca] .campaign-photo { height: clamp(180px, calc(var(--panel-height) - 220px), 520px); }
html[data-site=luvoca] .member-grid .portrait { height: clamp(180px, calc(var(--panel-height) - 310px), 560px); }
html[data-site=luvoca] .archive-image { height: clamp(160px, calc(var(--panel-height) - 260px), 520px); aspect-ratio: auto; }
html[data-site=luvoca] .archive-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; padding-bottom: 16px; }
html[data-site=luvoca] .archive-item { flex: 0 0 calc((100% - 40px) / 3); min-width: 0; scroll-snap-align: start; }
html[data-site=luvoca] .archive-item:first-child { grid-row: auto; }
html[data-site=luvoca] .archive-heading { margin-bottom: 20px; }
html[data-site=luvoca] .members-head { margin-bottom: 20px; }
html[data-site=luvoca] .learn .play-sample { height: clamp(160px, calc(var(--panel-height) - 260px), 480px); aspect-ratio: auto; }
@media(max-width:760px) {
  html[data-site=luvoca] .member-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 12px; }
  html[data-site=luvoca] .member-grid .member { flex: 0 0 88%; min-width: 0; min-height: 0; padding: 0; display: block; scroll-snap-align: start; }
  html[data-site=luvoca] .archive-item { flex-basis: 88%; }
  html[data-site=luvoca] .campaign-photo { height: clamp(140px, 32dvh, 340px); }
  html[data-site=luvoca] .campaign-layout { gap: 20px; }
  html[data-site=luvoca] .campaign-copy h2 { font-size: 52px; margin-block: 10px; }
  html[data-site=luvoca] .campaign-copy p { margin-block: 8px; }
  html[data-site=luvoca] .campaign-foot { margin-top: 10px; }
  html[data-site=luvoca] .members h2 { font-size: 54px; }
  html[data-site=luvoca] .archive h2 { font-size: 52px; }
  html[data-site=luvoca] .members, html[data-site=luvoca] .archive { padding-bottom: var(--panel-space); }
  html[data-site=luvoca] .member-grid .portrait { height: calc(var(--panel-height) - 280px); }
  html[data-site=luvoca] .learn .learn-layout { gap: 20px; }
  html[data-site=luvoca] .learn .play-inline { max-width: none; }
  html[data-site=luvoca] .learn .play-sample { height: clamp(160px, 30dvh, 320px); }
}
@media(max-width:760px) {
  html[data-site=luvoca] .learn { padding-block: 0; align-content: start; }
  html[data-site=luvoca] .learn > .wrap, html[data-site=luvoca] .learn-layout { display: contents; }
  html[data-site=luvoca] .learn .section-top { height: 64px; padding: 20px 5vw; margin: 0; }
  html[data-site=luvoca] .learn-copy { display: flex; flex-direction: column; justify-content: center; gap: 20px; min-height: calc(var(--panel-height) - 64px); padding: 20px 5vw; }
  html[data-site=luvoca] .learn-copy > * { order: initial; }
  html[data-site=luvoca] .learn .learn-steps { margin: 0; }
  html[data-site=luvoca] .learn .play-inline { height: var(--panel-height); width: 100%; display: flex; flex-direction: column; border-radius: 0; padding: 24px 5vw; scroll-snap-align: start; scroll-snap-stop: always; }
  html[data-site=luvoca] .learn .play-sample { flex: 1; min-height: 100px; height: auto; }
  html[data-site=luvoca] .learn .inline-members, html[data-site=luvoca] .learn .inline-choices, html[data-site=luvoca] .learn .inline-continue { flex: none; }
}
html[data-page=bearball] .algo .phone { height: clamp(360px, calc(var(--panel-height) - 250px), 560px); }
html[data-site=luvoca] main > .fandom { min-height: var(--panel-height); }
html[data-site=luvoca] .learn .play-sample { max-height: calc(var(--panel-height) - 320px); }
html[data-site=luvoca] .archive-grid .archive-item { padding-top: 0; }
html[data-site=luvoca] .archive-grid .archive-item .archive-image { height: clamp(140px, calc(var(--panel-height) - 340px), 460px); aspect-ratio: auto; }
html[data-site=luvoca] .archive-caption { flex-wrap: wrap; gap: 8px; }
@media(max-width:900px) {
  html[data-page=bearball] .algo > .wrap { display: grid; grid-template-rows: auto minmax(0,1fr) var(--panel-height); width: 100%; height: 200dvh; }
  html[data-page=bearball] .algo-points { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; align-items: center; padding: 12px 4px; }
  html[data-page=bearball] .algo-point { flex: 0 0 92%; scroll-snap-align: start; }
  html[data-page=bearball] .algo-phone .phone { height: calc(var(--panel-height) - 64px); max-height: 680px; }
  html[data-page=home] body > section:has(.pgrid) .sec-head h2 { font-size: 28px; }
  html[data-page=home] .pitem { padding: 20px; }
  html[data-page=home] .pitem img { width: 56px; height: 56px; margin-bottom: 0; }
  html[data-page=bearball] .feat .kv { height: clamp(80px, 16dvh, 140px); }
}
@media(max-width:760px) {
  html[data-site=luvoca] .campaign-photo { height: clamp(120px, 25dvh, 260px); }
  html[data-site=luvoca] .campaign-copy h2 { font-size: 40px; }
  html[data-site=luvoca] .campaign-layout { gap: 12px; }
  html[data-site=luvoca] .campaign-foot { flex-wrap: wrap; gap: 6px; }
  html[data-site=luvoca] .member-grid .portrait { height: calc(var(--panel-height) - 340px); }
  html[data-site=luvoca] .member-hint { margin-top: 16px; }
  html[data-site=luvoca] .learn .play-sample { max-height: none; }
}
@media(max-width:360px) {
  html[data-site=luvoca] .archive h2 { font-size: 40px; }
  html[data-site=luvoca] .archive-heading { gap: 12px; }
  html[data-site=luvoca] .archive-grid .archive-item .archive-image { height: calc(var(--panel-height) - 390px); }
}
html[data-site=luvoca] .fandom .pixel-float { position: static; width: auto; max-width: 100%; margin-top: 20px; transform: none; }
@media(min-width:901px) {
  html[data-page=bearball] .algo .phone { height: clamp(340px, calc(var(--panel-height) - 280px), 530px); }
}
@media(max-width:360px) {
  html[data-page=home] .product-panel .pcard .vis { height: 110px; }
  html[data-page=home] .product-panel .pcard .txt { padding: 12px; }
  html[data-page=home] .product-panel .pcard .plogo { height: 36px; }
  html[data-page=bearball] .level-art { height: 100px; }
  html[data-page=bearball] .feat .kv { height: 65px; }
}
html[data-page=home] .footer, html[data-page=bearball] .footer { min-height: var(--panel-height); padding-block: 24px; display: grid; align-content: center; }
html[data-page=home] .footer-top, html[data-page=bearball] .footer-top { gap: 12px; padding-bottom: 20px; margin-bottom: 20px; }
html[data-page=home] .footer-grid, html[data-page=bearball] .footer-grid { gap: 16px; }
html[data-page=home] .footer .copy, html[data-page=bearball] .footer .copy { margin-top: 20px; }
html[data-site=luvoca] footer { min-height: var(--panel-height); padding-block: 24px; display: grid; align-content: center; }
html[data-site=luvoca] .footer-bottom { flex-wrap: wrap; margin-top: 20px; }
@media(max-width:360px) {
  html[data-site=luvoca] footer { padding-block: 16px; }
  html[data-site=luvoca] .footer-note { margin-top: 8px; }
}

/* Luvoca shares the company/product navigation pattern. */
html[data-site=luvoca] nav.site-nav {
  position: fixed; inset: 14px 0 auto; z-index: 50; height: auto;
  padding: 0; background: transparent; border: 0; display: flex; justify-content: center;
  transition: transform .35s ease; pointer-events: none;
}
html[data-site=luvoca] .site-nav-inner {
  width: min(1180px, calc(100% - 24px)); display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 18px; border: 1px solid transparent; border-radius: 999px; pointer-events: auto;
}
html[data-site=luvoca] .site-nav.scrolled .site-nav-inner { background: #101113eb; border-color: #ffffff29; backdrop-filter: blur(16px); }
html[data-site=luvoca] .site-nav.hidden { transform: translateY(-130%); }
html[data-site=luvoca] .site-nav .brand { min-height: 44px; flex: none; }
html[data-site=luvoca] .site-nav .brand img { width: auto; height: 22px; object-fit: contain; }
html[data-site=luvoca] .site-nav .nav-links { margin-left: auto; gap: 2px; letter-spacing: 0; }
html[data-site=luvoca] .site-nav .link { min-height: 44px; padding: 9px 14px; font-size: 14px; font-weight: 600; border-radius: 999px; }
html[data-site=luvoca] .site-nav .link:hover, html[data-site=luvoca] .site-nav .link[aria-current=page] { background: #ffffff24; color: #fff; }
html[data-site=luvoca] .site-nav .lang-pick { margin: 0; }
html[data-site=luvoca] .opening-panel { min-height: var(--panel-height); padding-top: 88px; }
html[data-site=luvoca] .hero { height: calc(var(--panel-height) - 88px); min-height: 0; }
@media(max-width:640px) {
  html[data-site=luvoca] .site-nav-inner { padding-left: 10px; gap: 4px; }
  html[data-site=luvoca] .site-nav .brand img { height: 17px; }
  html[data-site=luvoca] .site-nav .link { padding-inline: 8px; font-size: 13px; }
  html[data-site=luvoca] .site-nav .hide-sm { display: none; }
  html[data-site=luvoca] .site-nav .lang-pick select { width: 72px; padding-left: 20px; padding-right: 0; }
}
/* Compact decoration before reducing any readable text or touch target. */
@media(max-width:900px) {
  html[data-page=bearball] .algo > .wrap { height: calc(2 * var(--panel-height)); }
}
@media(max-width:360px) {
  html { --panel-space: 12px; }
  html[data-page=home] .product-panel .pcard .vis { height: 64px; }
  html[data-page=home] .product-panel .pcard .txt { padding: 10px; gap: 8px; }
  html[data-page=home] body > section:has(.pgrid) .sec-head h2 { font-size: 24px; }
  html[data-page=home] body > section:has(.pgrid) .sec-head p { font-size: 15px; }
  html[data-page=home] .pitem { padding: 16px; column-gap: 12px; grid-template-columns: 44px minmax(0, 1fr); }
  html[data-page=home] .pitem img { width: 44px; height: 44px; }
  html[data-page=bearball] .try .sec-head { margin-bottom: 12px; }
  html[data-page=bearball] .sec-head h2 { font-size: 24px; }
  html[data-page=bearball] .try .phone { height: calc(var(--panel-height) - 140px); min-height: 320px; }
  html[data-page=bearball] .try .voice svg { display: none; }
  html[data-page=bearball] .try .voice { padding-block: 6px; }
  html[data-page=bearball] .level-art { height: 64px; }
  html[data-page=bearball] .level-art .num { font-size: 60px; }
  html[data-page=bearball] .level-copy h3 { font-size: 24px; }
  html[data-page=bearball] .feat { flex-basis: 100%; padding: 16px; }
  html[data-page=bearball] .feat .kv { height: 48px; }
  html[data-page=home] .footer, html[data-page=bearball] .footer { padding-block: 16px; }
  html[data-page=home] .footer-top, html[data-page=bearball] .footer-top { padding-bottom: 12px; margin-bottom: 12px; }
  html[data-page=home] .footer-logo, html[data-page=bearball] .footer-logo { width: 120px; }
  html[data-page=home] .footer .copy, html[data-page=bearball] .footer .copy { margin-top: 12px; }
  html[data-site=luvoca] .campaign-photo { height: 120px; }
  html[data-site=luvoca] .campaign-copy h2 { font-size: 36px; }
}
@media(max-width:760px) {
  html[data-site=luvoca] .campaign .section-top { margin-bottom: 12px; }
  html[data-site=luvoca] .campaign-layout { gap: 10px; }
  html[data-page=bearball] .feat .kv { max-height: 15dvh; }
}
html[data-site=luvoca] .company-details { margin-top: 20px; }
html[data-site=luvoca] .company-details summary { min-height: 44px; display: list-item; align-content: center; cursor: pointer; font-size: 14px; color: #c9cad0; }
html[data-site=luvoca] .company-details .footer-biz { margin-top: 8px; }

@media(max-width:760px) {
  html[data-page=home] .product-panel .pcard .vis { height: min(130px, 20dvh); }
  html[data-site=luvoca] .campaign-photo { height: clamp(100px, 20dvh, 180px); }
}
@media(max-width:360px) {
  html[data-page=home] .product-panel .pcard .vis { height: 48px; }
  html[data-page=home] body > section:has(.pgrid) .pgrid { margin-top: 12px; }
  html[data-page=home] .footer-grid, html[data-page=bearball] .footer-grid { gap: 8px; }
  html[data-page=home] .footer h4, html[data-page=bearball] .footer h4 { margin-bottom: 8px; }
  html[data-page=home] .footer-top, html[data-page=bearball] .footer-top { padding-bottom: 8px; margin-bottom: 8px; }
  html[data-site=luvoca] .campaign-photo { height: 100px; }
}

@media(max-width:360px) { html[data-page=home] .footer, html[data-page=bearball] .footer { padding-block: 12px; } }

/* Keep overlay actions clear by fitting content inside each full-height panel. */
html[data-page=bearball] .try { padding-bottom: 88px; }
html[data-page=bearball] .try .phone { height: clamp(320px, calc(var(--panel-height) - 288px), 600px); }
@media(max-width:900px) {
  html[data-page=bearball] .algo-phone { padding-bottom: 88px; }
  html[data-page=bearball] .algo-phone .phone { height: calc(var(--panel-height) - 152px); }
}
@media(max-width:760px) {
  html[data-site=luvoca] .learn .play-inline { padding-bottom: 88px; }
}
@media(max-width:360px) {
  html[data-page=bearball] .try .phone { height: calc(var(--panel-height) - 228px); }
}
@media(min-width:901px) {
  html[data-page=bearball] .algo .phone { height: clamp(300px, calc(var(--panel-height) - 360px), 466px); }
}
@media(min-width:761px) {
  html[data-site=luvoca] .learn { padding-bottom: 88px; }
  html[data-site=luvoca] .learn .play-sample { height: clamp(160px, calc(var(--panel-height) - 400px), 400px); max-height: calc(var(--panel-height) - 400px); }
}

/* Product cards stack on top of each other while scrolling, as before the viewport rework.
   Panel wrappers stay in the markup but no longer box each card, so sticky works across the stack. */
html[data-page=home] .product-panel { display: contents; }
html[data-page=home] .products .stack { display: grid; gap: 24px; padding-block: clamp(80px, 12svh, 112px) clamp(24px, 6svh, 64px); }
html[data-page=home] .products .stack .pcard { position: sticky; top: calc(clamp(68px, 10svh, 92px) + var(--i) * 16px); scroll-snap-align: none; box-shadow: 0 -10px 40px rgba(0,0,0,.08); }
@media (prefers-reduced-motion: reduce) { html[data-page=home] .products .stack .pcard { position: relative; top: auto; } }
/* While the product stack fills the screen, pause page snapping so every card can settle onto the deck. */
html[data-page=home].free-scroll { scroll-snap-type: none; }

/* 2026-11-15 mobile review. Panels keep the live viewport height (100dvh) so each stop fills the screen. */
@media(max-width:900px) {
  /* Home: product artwork keeps its whole composition. */
  html[data-page=home] .product-panel .pcard .vis { height: clamp(150px, 24svh, 220px); }
  html[data-page=home] .product-panel .pcard.camp .vis { height: auto; padding: 20px 24px; }
  html[data-page=home] .camp .dash { padding: 16px 18px; }
  html[data-page=home] .camp .dash h5 { margin-bottom: 6px; }
  html[data-page=home] .camp .dash .row { margin: 8px 0; grid-template-columns: 72px 1fr; }
  html[data-page=home] .camp .dash .kv { width: 96px; right: -14px; bottom: -36px; }

  /* Bearball try-it: Kevvie stays visible above the question, which moves down with its choices. */
  html[data-page=bearball] .try .phone { height: clamp(440px, calc(var(--panel-height) - 230px), 560px); }
  html[data-page=bearball] .try .peek { height: clamp(104px, calc(var(--panel-height) - 600px), 150px); margin-top: 4px; }
  html[data-page=bearball] .try .peek .kv { width: auto; height: 165%; aspect-ratio: 1; top: -4px; }
  html[data-page=bearball] .try .sentence { padding-top: 18px; }

  /* Level path: the artwork is the subject, not a thumbnail. */
  html[data-page=bearball] .level-art { height: clamp(200px, calc(var(--panel-height) - 470px), 380px); }
  html[data-page=bearball] .level-art .num { font-size: clamp(96px, 16svh, 150px); }
  html[data-page=bearball] .level-art .kv { width: min(32%, 150px); right: 14%; }

  /* Why Bearball: heading and the current card sit centered; every card is ready before it is swiped in. */
  html[data-page=bearball] section:has(> .wrap > .feats) { padding-block: clamp(24px, 10dvh, 88px); }
  html[data-page=bearball] .feats { scroll-padding-inline: 0; padding-inline: 6%; margin-inline: -16px; }
  html[data-page=bearball] .feat { flex-basis: 88%; scroll-snap-align: center; scroll-snap-stop: always; }
  html[data-page=bearball] .feats .reveal { opacity: 1; transform: none; }
  html[data-page=bearball] .feat .kv { height: clamp(100px, calc(var(--panel-height) - 560px), 180px); max-height: none; }
  html[data-page=bearball] .sec-head h2 { text-wrap: balance; word-break: keep-all; }

  /* Luvoca IN FOCUS: the whole portrait video is visible, centered under its member tabs. */
  html[data-site=luvoca] .campaign-photo {
    height: auto; aspect-ratio: 9 / 16; margin-inline: auto;
    width: min(100%, calc((var(--panel-height) - 230px) * 9 / 16));
  }
  html[data-site=luvoca] .campaign-photo .image-number { left: 14px; bottom: 14px; white-space: nowrap; }
}
@media(max-width:360px) {
  html[data-page=bearball] .try .phone { height: clamp(420px, calc(var(--panel-height) - 200px), 560px); }
  html[data-page=bearball] .level-art { height: clamp(160px, calc(var(--panel-height) - 470px), 300px); }
}
/* 320px phones: logo, product links and the language switch stay on one row above the hero copy. */
@media(max-width:360px) {
  html:is([data-page=home], [data-page=bearball]) .nav-inner { flex-wrap: nowrap; padding-left: 12px; }
  html:is([data-page=home], [data-page=bearball]) .brand img { height: 15px; }
  html:is([data-page=home], [data-page=bearball]) .nav a.link { padding-inline: 6px; }
}
/* Desktop IN FOCUS: the 9:16 video column is sized from the screen height, so the whole frame stays visible. */
@media(min-width:901px) {
  html[data-site=luvoca] .campaign-layout {
    --focus-w: clamp(200px, calc((var(--panel-height) - 300px) * 9 / 16), 380px);
    grid-template-columns: var(--focus-w) minmax(0, 1fr); gap: clamp(48px, 8vw, 140px);
  }
  html[data-site=luvoca] .campaign-photo { width: 100%; height: auto; aspect-ratio: 9 / 16; }
  html[data-site=luvoca] .campaign-foot { flex-wrap: wrap; gap: 4px 16px; }
  html[data-site=luvoca] .campaign-photo .image-number { left: 14px; bottom: 14px; white-space: nowrap; }
}
/* Short phones (iPhone SE): every single-screen panel stays within one screen. */
@media(max-width:900px) and (max-height:700px) {
  html[data-page=home] .pitem { padding: 14px 16px; }
}
@media(max-width:760px) and (max-height:700px) {
  html[data-site=luvoca] .archive-grid .archive-item .archive-image { height: clamp(140px, calc(var(--panel-height) - 360px), 460px); }
}

/* 2026-11-17 iPhone pass: on phones every snap stop is exactly one screen and clears the fixed nav and dock. */
@media(max-width:900px) {
  /* Home: one product card per screen instead of the free-scrolling sticky stack. */
  html[data-page=home] .products { display: block; min-height: 0; padding-block: 0; scroll-snap-align: none; }
  html[data-page=home] .products .stack { display: block; padding-block: 0; margin: 0; }
  html[data-page=home] .product-panel {
    display: flex; align-items: center; box-sizing: border-box; min-height: var(--panel-height);
    padding-block: 88px 24px; scroll-snap-align: start; scroll-snap-stop: always;
  }
  html[data-page=home] .products .stack .pcard { position: relative; top: auto; width: 100%; }
  html[data-page=home] .product-panel .pcard .vis { height: clamp(64px, calc(var(--panel-height) - 540px), 220px); }
  html[data-page=home] .product-panel .pcard.camp .vis { height: auto; max-height: none; }

  /* Bearball review: heading and points centered on the first screen, the phone on the second. */
  html[data-page=bearball] .algo > .wrap {
    display: grid; height: calc(2 * var(--panel-height));
    grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1fr) var(--panel-height);
  }
  html[data-page=bearball] .algo .sec-head { grid-row: 2; padding-top: 0; margin-bottom: 16px; }
  html[data-page=bearball] .algo-points { grid-row: 3; align-self: start; margin-bottom: 0; }
  html[data-page=bearball] .algo-phone { grid-row: 5; box-sizing: border-box; min-height: var(--panel-height); padding: 88px 24px 88px; }
  html[data-page=bearball] .algo-phone .phone { height: calc(var(--panel-height) - 196px); max-height: 640px; }
}
@media(max-width:760px) {
  /* Luvoca IN FOCUS: the whole 9:16 video and the album copy share one screen, so it is a single stop. */
  html[data-site=luvoca] .campaign-photo { width: min(100%, calc((var(--panel-height) - 396px) * 9 / 16)); }
  html[data-site=luvoca] .campaign .section-top { margin-bottom: 8px; }
  html[data-site=luvoca] .campaign-copy h2 { margin-block: 6px; }
  /* The album labels under the tabs repeat the copy beside them; the space keeps the archive link clear of the floating action. */
  html[data-site=luvoca] .campaign-foot { display: none; }
  html[data-site=luvoca] .campaign { padding-bottom: 88px; }
  html[data-site=luvoca] .campaign-photo .image-number { white-space: normal; right: 10px; left: 10px; bottom: 10px; font-size: 10px; line-height: 1.3; }
  /* Member and archive captions stay above the floating action. */
  html[data-site=luvoca] .member-grid .portrait { height: calc(var(--panel-height) - 400px); }
  html[data-site=luvoca] .archive-grid .archive-item .archive-image { height: clamp(140px, calc(var(--panel-height) - 400px), 460px); }
}
@media(max-width:360px) { html[data-site=luvoca] .campaign-photo .image-number { display: none; } }
/* Two-screen sections: each screen is its own stop, and the tall section itself never snaps (no free-scroll zone). */
.algo-stop { display: none; }
@media(max-width:900px) {
  html[data-page=bearball] .algo { scroll-snap-align: none; }
  html[data-page=bearball] .algo-stop { display: block; grid-row: 1 / 5; grid-column: 1; pointer-events: none; scroll-snap-align: start; scroll-snap-stop: always; }
}
@media(max-width:760px) {
  html[data-site=luvoca] .learn { scroll-snap-align: none; }
  html[data-site=luvoca] .learn .section-top { scroll-snap-align: start; scroll-snap-stop: always; }
}
/* The demo word list inside the phone frame must not capture the page swipe on phones. */
@media(max-width:900px) { html[data-page=bearball] .algo-phone .rv-list { overflow: hidden; } }
/* Keep the review section in a single column; the stop marker overlaps the first screen. */
@media(max-width:900px) {
  html[data-page=bearball] .algo > .wrap { grid-template-columns: minmax(0, 1fr); }
  html[data-page=bearball] .algo .sec-head, html[data-page=bearball] .algo-points, html[data-page=bearball] .algo-phone { grid-column: 1; }
}
/* Luvoca phones: notice, fandom and footer are one closing stop instead of three near-empty screens. */
@media(max-width:760px) {
  html[data-site=luvoca] main > .news { min-height: 0; padding-block: 88px 24px; align-content: start; }
  html[data-site=luvoca] main > .fandom { min-height: 0; scroll-snap-align: none; padding-block: 32px 40px; }
  html[data-site=luvoca] .fandom-inner { margin-top: 20px; }
  html[data-site=luvoca] .fandom h2 { font-size: 22vw; }
  html[data-site=luvoca] footer { min-height: 0; scroll-snap-align: none; padding-block: 32px 112px; }
}

/* Photo rails share a top edge even when captions wrap to different heights.
   Preserve the top of the original portraits when the viewport crops their lower half. */
html[data-site=luvoca] :is(.member-grid, .archive-grid) { align-items: flex-start; }
html[data-site=luvoca] .member-grid .member,
html[data-site=luvoca] .archive-grid .archive-item {
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
}
html[data-site=luvoca] .member-grid .portrait,
html[data-site=luvoca] .archive-grid .archive-image { flex: none; width: 100%; }
html[data-site=luvoca] .archive-grid .archive-image img { object-position: top center; }
@media(max-width:760px) {
  html[data-site=luvoca] .member-grid .portrait,
  html[data-site=luvoca] .archive-grid .archive-item .archive-image {
    height: clamp(160px, calc(var(--panel-height) - 400px), 460px); aspect-ratio: auto;
  }
}
