/* Palms & Birds: one route, four worlds. Desktop art direction. */
@font-face {
  font-family: 'PB Archivo';
  src: url('assets/fonts/archivo-latin-tr.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
.pb-symbols { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.pb-icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.chapter-total,.nav-index,.product-insignia,.scene-signature { display: none; }

/* Supported app languages, shown under each product description */
.product-languages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 18px 0 22px; max-width: 360px; font-size: 11px; color: var(--pb-ink, #263b44); }
.product-languages span { padding: 4px 8px; border: 1px solid var(--pb-rule, #263b4430); border-radius: 3px; line-height: 1.2; }
.product-languages .product-languages-label { padding: 0 4px 0 0; border: 0; color: var(--pb-muted, #52636d); letter-spacing: .08em; text-transform: uppercase; font-size: 9px; }

/* Privacy and terms links under each product's store buttons and in the footer */
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; font-size: 11px; color: var(--pb-muted, #52636d); }
.legal-links a,.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.legal-links a:hover,.footer-legal a:hover { text-decoration-color: currentColor; }
.footer-legal { margin: 14px 0 0; font-size: 12px; color: #536468; }

@media (min-width: 761px) {
  :root { --pb-accent: #2b6264; --pb-ink: #202e30; --pb-muted: #506465; --pb-rule: #25474930; --pb-surface: #f7f4ea; }
  body { font-family: 'PB Archivo', 'Helvetica Neue', Arial, sans-serif; }
  .scene--intro { --pb-accent: #2b6264; --pb-ink: #202e30; --pb-muted: #506465; --pb-rule: #25474930; --pb-surface: #f7f4ea; }
  .scene--app { --pb-accent: #346c55; --pb-ink: #22382d; --pb-muted: #53644e; --pb-rule: #345d4838; --pb-surface: #f6f4e9; }
  .game--1 { --pb-accent: #77549b; --pb-ink: #33234d; --pb-muted: #645875; --pb-rule: #61448735; --pb-surface: #f3edfa; }
  .game--2 { --pb-accent: #e1bb81; --pb-ink: #f2eee5; --pb-muted: #c6c6c0; --pb-rule: #e1bb8150; --pb-surface: #1a242a; }
  .game--3 { --pb-accent: #c5bdff; --pb-ink: #f1effb; --pb-muted: #c4c4dc; --pb-rule: #c5bdff50; --pb-surface: #1d243e; }

  .site-header { height: 112px; }
  .brand img { width: 183px; }
  .site-header nav { font-size: 12px; font-weight: 500; gap: 32px; }
  .contact-link { position: relative; gap: 14px; border: 0; }
  .contact-link::after { content: ''; position: absolute; bottom: 4px; left: 0; width: 24px; height: 1px; background: currentColor; }
  .site-header a:focus-visible { outline-color: #2b6264; }

  .eyebrow { color: var(--pb-muted); font-size: 10px; letter-spacing: .15em; font-weight: 500; gap: 16px; margin-bottom: 24px; }
  .small-rule { width: 29px; height: 19px; background: none; border-top: 1px solid var(--pb-accent); transform: rotate(-22deg); position: relative; }
  .small-rule::after { content: ''; position: absolute; width: 19px; height: 1px; top: 5px; left: 0; background: var(--pb-accent); }
  .chapter-number { position: relative; color: var(--pb-accent) !important; font-size: 18px; letter-spacing: -.06em; font-weight: 550; font-variant-numeric: tabular-nums; padding: 7px 0; display: inline-flex; align-items: baseline; gap: 4px; }
  .chapter-number::before { content: ''; position: absolute; bottom: 0; left: 0; width: 16px; height: 1px; background: var(--pb-accent); }
  .chapter-total { display: inline; font-size: 9px; letter-spacing: 0; color: var(--pb-muted); font-weight: 400; margin-left: 1px; }
  .app-copy,.game-copy,.intro-copy { color: var(--pb-ink); }
  .product-name { font-size: 14px; font-weight: 500; letter-spacing: -.015em; gap: 10px; margin-bottom: 22px; }
  .product-name img { width: 29px; height: 29px; border-radius: 8px; box-shadow: none; }
  .product-insignia { display: inline-flex; width: 28px; height: 28px; color: var(--pb-accent); align-items: center; justify-content: center; }
  .product-insignia .pb-icon { width: 26px; height: 26px; stroke-width: 1.35; }
  h1 { font-weight: 420; font-size: clamp(56px,5.7vw,88px); letter-spacing: -.045em; line-height: 1.08; }
  h1 > span { color: var(--pb-accent); }
  .app-copy h2,.game-copy h2,.game--1 .game-copy h2,.game--2 .game-copy h2,.game--3 .game-copy h2 { font-family: inherit; font-weight: 430; font-size: clamp(40px,4.1vw,66px); letter-spacing: -.04em; line-height: 1.12; margin-bottom: 24px; }
  .app-copy h2 > span,.game-copy h2 > span { color: var(--pb-accent); display: inline; font-size: 1em; font-weight: inherit; }
  .game--1 .game-copy h2 { font-size: clamp(54px,5.4vw,84px); }
  .intro-description,.app-description,.game-description { color: var(--pb-muted); opacity: 1; font-size: 16px; line-height: 1.75; letter-spacing: -.015em; max-width: 370px; }
  .intro-description { font-size: 17px; }
  .game-copy .eyebrow { opacity: 1; }

  .round-link,.game-next { font-size: 12px; font-weight: 500; letter-spacing: -.01em; min-height: 48px; gap: 16px; border: 0; color: var(--pb-ink); }
  .round-icon,.game-next > span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--pb-rule); border-radius: 50%; color: var(--pb-accent); background: transparent; transition: background .18s,color .18s,border-color .18s; }
  .game-next > span { order: -1; }
  .game-next:hover > span,.round-link:hover .round-icon { background: var(--pb-accent); border-color: var(--pb-accent); color: var(--pb-surface); transform: none; }
  .scene a:focus-visible,.scene button:focus-visible { outline-color: var(--pb-accent); }
  .game-note,.game-back-number { display: none; }

  .demo-steps { max-width: 335px; position: relative; margin: 22px 0 24px; }
  .demo-steps::before { content: ''; position: absolute; top: 22px; bottom: 22px; left: 11px; width: 1px; background: var(--pb-rule); pointer-events: none; }
  .demo-steps button { position: relative; min-height: 42px; border: 0; gap: 12px; font-size: 12px; font-weight: 400; color: var(--pb-muted); padding: 4px 0; }
  .demo-steps button > span:first-child { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid var(--pb-rule); border-radius: 50%; font-size: 8px; color: var(--pb-muted); background: var(--pb-surface); flex: 0 0 auto; }
  .demo-steps button[aria-pressed=true] { font-weight: 500; color: var(--pb-ink); }
  .demo-steps button[aria-pressed=true] > span:first-child { color: var(--pb-surface); background: var(--pb-accent); border-color: var(--pb-accent); }
  .store-links { gap: 10px; }
  .store-links a,.store-links a:nth-child(2) { border: 1px solid var(--pb-rule); background: transparent; color: var(--pb-ink); padding: 11px 15px; border-radius: 3px; font-size: 11px; gap: 12px; transition: border-color .18s,background .18s; }
  .store-links a:hover { background: #f6f4e9b0; border-color: var(--pb-accent); }
  .store-links .pb-icon { width: 14px; height: 14px; }

  .recording-phone { isolation: isolate; background: #252e30; border: 1px solid #b5beb870; padding: 5px; border-radius: 31px; box-shadow: 0 14px 26px -15px #07131e70,0 0 0 1px #1a282950; }
  .recording-screen { border-radius: 25px; background: #182129; }
  .recording-phone::before,.recording-phone::after { content: ''; position: absolute; z-index: -1; width: 21px; height: 21px; opacity: .7; pointer-events: none; border-color: var(--pb-accent); border-style: solid; }
  .recording-phone::before { top: -12px; left: -12px; border-width: 1px 0 0 1px; border-radius: 8px 0 0 0; }
  .recording-phone::after { bottom: -12px; right: -12px; border-width: 0 1px 1px 0; border-radius: 0 0 8px 0; }
  .recording-controls { gap: 8px; }
  .recording-controls button { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; padding: 10px 15px; background: var(--pb-surface); color: var(--pb-ink); border: 1px solid var(--pb-rule); border-radius: 3px; font-size: 11px; font-weight: 500; box-shadow: 0 3px 12px #0000000a; }
  .recording-controls .pb-icon { width: 14px; height: 14px; color: var(--pb-accent); }
  .recording-controls button:hover { border-color: var(--pb-accent); }
  .preview-caption { color: var(--pb-muted); font-size: 8px; letter-spacing: .025em; }
  .recording-status { color: var(--pb-ink); }

  .scene-signature { display: flex; position: absolute; top: 44px; right: 5.6%; align-items: center; pointer-events: none; }
  /* The brand logo, tinted per scene so it also reads on the dark game scenes */
  .scene-signature .pb-logo { display: block; width: 104px; aspect-ratio: 999.91 / 292.08; background: var(--pb-ink); -webkit-mask: url(assets/logo.svg) center / contain no-repeat; mask: url(assets/logo.svg) center / contain no-repeat; }
  .scene--intro .scene-signature { top: auto; bottom: 105px; }

  .stage { --route-ink: #31464a; --route-muted: #536468; --route-accent: #2b6264; --route-line: #31464a30; --route-paper: #f3f1e7; }
  .stage[data-active=app] { --route-ink: #22382d; --route-muted: #52634e; --route-accent: #346c55; --route-line: #345d4838; }
  .stage[data-active=game-1] { --route-ink: #33234d; --route-muted: #655576; --route-accent: #77549b; --route-line: #61448735; }
  .stage[data-active=game-2] { --route-ink: #f2eee5; --route-muted: #c6c6c0; --route-accent: #e1bb81; --route-line: #e1bb8150; --route-paper: #1a242a; }
  .stage[data-active=game-3] { --route-ink: #f1effb; --route-muted: #c4c4dc; --route-accent: #c5bdff; --route-line: #c5bdff50; --route-paper: #1d243e; }
  .stage-footer { height: 74px; color: var(--route-ink) !important; border-color: var(--route-line) !important; }
  .stage-footer::before { background: linear-gradient(0deg,#f3f1e7ed,#f3f1e79c); }
  .scene-navigation { gap: clamp(18px,3.4vw,50px); }
  .scene-navigation a { gap: 9px; min-height: 48px; color: var(--route-muted) !important; }
  .scene-navigation a > span:not(.nav-index) { font-size: 11px; letter-spacing: -.015em; }
  .nav-index { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--route-line); font-size: 9px !important; font-variant-numeric: tabular-nums; }
  .scene-navigation a[aria-current] { color: var(--route-ink) !important; }
  .scene-navigation a[aria-current] .nav-index { color: var(--route-paper); background: var(--route-accent); border-color: var(--route-accent); }
  .scene-navigation a[aria-current]::after { display: none; }
  .scene-navigation a:hover .nav-index { border-color: var(--route-accent); }
  .motion-toggle { gap: 8px; font-size: 10px; font-weight: 400; color: var(--route-ink); }
  .motion-toggle > span:first-child { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--route-line); border-radius: 50%; font-size: 10px; }
  .scene-navigation a:focus-visible,.motion-toggle:focus-visible { outline-color: var(--route-accent); }
  html[data-motion=off] .stage-footer { --route-ink: #31464a; --route-muted: #536468; --route-accent: #2b6264; --route-line: #31464a30; --route-paper: #f3f1e7; }

  .site-footer { background: #f3f1e7; color: #31464a; padding-top: 44px; padding-bottom: 44px; }
  .footer-brand { font-size: 23px; font-weight: 550; }
  .footer-brand > span { font-size: 11px; margin-top: 12px; color: #536468; }

  @media (max-height: 760px) {
    .scene--app,.scene--game { padding-top: 64px; padding-bottom: 95px; }
    .app-copy .eyebrow,.game-copy .eyebrow { margin-bottom: 18px; }
    .app-copy h2,.game-copy h2,.game--1 .game-copy h2,.game--2 .game-copy h2,.game--3 .game-copy h2 { margin-bottom: 18px; }
    .app-description,.game-description { font-size: 15px; margin-bottom: 18px; }
    .demo-steps { margin-top: 14px; margin-bottom: 18px; }
    .product-name { margin-bottom: 18px; }
  }
  @media (max-width: 1050px) {
    .scene-navigation { gap: 18px; }
    .scene-navigation a { gap: 6px; }
    .scene-navigation a > span:not(.nav-index) { font-size: 10px; }
    .motion-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .app-copy h2,.game--2 .game-copy h2,.game--3 .game-copy h2 { font-size: 44px; }
  }
}
@media(min-width:761px){.game--1 .game-copy h2>span{margin-left:.10em}}

/* Desktop refinement: quiet type, shared alignment and unboxed metadata. */
@media (min-width: 761px) {
  .site-header { height: 104px; }
  .brand img { width: 160px; }
  .intro-copy,.is-enhanced .intro-copy {
    padding: clamp(170px,24svh,260px) 0 120px var(--gutter);
    max-width: min(680px,54vw);
  }
  .intro-copy h1 { margin-bottom: 28px; }
  .intro-copy h1 > span { color: inherit; }
  .eyebrow,.game-copy .eyebrow {
    font-size: 10px; font-weight: 450; letter-spacing: .09em;
    gap: 12px; margin-bottom: 28px;
  }
  .small-rule,.chapter-total,.product-insignia,
  .scene--intro .scene-signature { display: none; }
  .chapter-number { font-size: 10px; letter-spacing: 0; padding: 0; font-weight: 450; }
  .chapter-number::before { display: none; }
  .scene--app,.scene--game {
    grid-template-columns: 44% 30%; gap: 3%;
    padding: 100px var(--gutter) 112px;
  }
  .app-copy,.game-copy { max-width: 510px; }
  .product-name { font-size: 13px; margin-bottom: 20px; }
  .product-name img { width: 24px; height: 24px; border-radius: 6px; }
  .intro-description,.app-description,.game-description {
    font-size: 15px; font-weight: 400; line-height: 1.8;
    letter-spacing: 0; max-width: 350px; margin-bottom: 26px;
  }
  .round-link,.game-next { gap: 14px; font-size: 12px; font-weight: 450; }
  .round-icon,.game-next > span {
    width: 24px; height: 36px; border: 0; border-radius: 0;
  }
  .round-link .round-icon { order: 1; }
  .game-next > span { order: 1; }
  .round-link:hover .round-icon,.game-next:hover > span {
    background: transparent; color: var(--pb-accent);
  }
  .round-link:hover,.game-next:hover { text-decoration: underline; text-underline-offset: 5px; }
  .product-languages { gap: 3px 0; max-width: 365px; margin: 22px 0; font-size: 10px; line-height: 1.7; color: var(--pb-muted); }
  .product-languages span { border: 0; border-radius: 0; padding: 0; line-height: inherit; }
  .product-languages span:not(.product-languages-label):not(:last-child)::after { content: ' / '; white-space: pre; opacity: .5; }
  .product-languages .product-languages-label { width: 100%; margin-bottom: 4px; padding: 0; font-size: 9px; letter-spacing: .08em; }
  .demo-steps { margin: 20px 0; max-width: 320px; }
  .demo-steps::before { display: none; }
  .demo-steps button { min-height: 36px; gap: 14px; font-size: 11px; }
  .demo-steps button > span:first-child { border: 0; border-radius: 0; background: transparent; font-size: 9px; width: 16px; height: auto; }
  .demo-steps button[aria-pressed=true] > span:first-child { background: transparent; color: var(--pb-accent); }
  .demo-steps button[aria-pressed=true] { text-decoration: underline; text-underline-offset: 5px; }
  .store-links { gap: 24px; }
  .store-links a,.store-links a:nth-child(2) { padding: 6px 0; border: 0; border-bottom: 1px solid var(--pb-rule); border-radius: 0; gap: 10px; }
  .store-links a:hover { background: transparent; border-color: var(--pb-accent); }
  .store-links a > span:first-child { order: 1; }
  .recording-phone::before,.recording-phone::after { display: none; }
  .recording-controls button { background: transparent; border: 0; box-shadow: none; font-weight: 400; }
  .recording-controls button:hover { text-decoration: underline; text-underline-offset: 4px; }
  .preview-caption { font-size: 9px; }
  .scene-signature { right: var(--gutter); top: 38px; }
  .scene-signature .pb-logo { width: 110px; }
  .stage-footer { height: 68px; }
  .scene-navigation { gap: clamp(20px,3vw,44px); }
  .scene-navigation a { gap: 8px; }
  .nav-index { width: auto; height: auto; border: 0; border-radius: 0; font-size: 8px !important; opacity: .65; }
  .scene-navigation a[aria-current] .nav-index { background: transparent; color: inherit; opacity: 1; }
  .scene-navigation a[aria-current]::after { display: block; height: 1px; bottom: 0; background: var(--route-accent); }
  .scene-navigation a > span:not(.nav-index) { font-size: 11px; letter-spacing: 0; }
  .motion-toggle > span:first-child { border: 0; width: 20px; }
  .site-footer { padding-top: 48px; padding-bottom: 48px; }
  .footer-brand { font-size: 21px; font-weight: 450; letter-spacing: -.035em; }
}
@media (min-width: 761px) and (max-height: 760px) {
  .intro-copy,.is-enhanced .intro-copy { padding-top: 150px; }
  .scene--app,.scene--game { padding-top: 52px; padding-bottom: 88px; }
  .app-copy .eyebrow,.game-copy .eyebrow,.product-name { margin-bottom: 12px; }
  .app-copy h2,.game-copy h2,.game--1 .game-copy h2,.game--2 .game-copy h2,.game--3 .game-copy h2 { margin-bottom: 16px; }
  .app-description,.game-description { font-size: 14px; margin-bottom: 16px; }
  .demo-steps { margin: 12px 0; }
  .demo-steps button { min-height: 30px; }
  .product-languages { margin: 14px 0; }
}

/* Shared product hierarchy; each wordmark retains its original artwork. */
@font-face {
  font-family: 'Thronica Cinzel';
  src: url('assets/fonts/cinzel-variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
.desktop-wordmark { display: none; }
@media (min-width: 761px) {
  .desktop-wordmark { display: block; }
  .mobile-wordmark { display: none !important; }
  .scene--app,.scene--game { padding-top: clamp(80px,12svh,130px); }
  .app-copy,.game-copy { align-self: start; }
  .app-copy .eyebrow,.game-copy .eyebrow { margin-bottom: 16px; }
  .product-brand {
    display: flex; align-items: center; height: 64px;
    margin: 0 0 24px; max-width: 100%;
  }
  .product-brand img.desktop-wordmark {
    width: 260px; height: auto; max-height: 64px;
    object-fit: contain; object-position: left center;
    border-radius: 0; box-shadow: none;
  }
  .product-brand--weather img.desktop-wordmark { width: 265px; margin-left: -8px; }
  .product-brand--void img.desktop-wordmark { width: 260px; max-height: none; margin-left: -12px; }
  .product-brand--thronica {
    font-family: 'Thronica Cinzel', Georgia, serif;
    font-size: clamp(25px,2.4vw,32px); font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
    line-height: 1.2; color: #e8e6e0;
  }
  .app-copy h2,.game-copy h2,.game--1 .game-copy h2,.game--2 .game-copy h2,.game--3 .game-copy h2 {
    font-size: clamp(40px,4.1vw,66px); font-weight: 430;
    line-height: 1.12; letter-spacing: -.04em; margin: 0 0 24px;
  }
  .game--1 .game-copy h2 > span { margin-left: 0; }
  .app-description,.game-description { min-height: 81px; margin-bottom: 18px; }
  .demo-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; max-width: 390px; margin: 0 0 18px; }
  .demo-steps button { align-items: baseline; gap: 6px; font-size: 10px; line-height: 1.5; }
  .product-languages { margin: 0 0 20px; }
}
@media (min-width: 761px) and (max-height: 760px) {
  .scene--app,.scene--game { padding-top: 66px; }
  .product-brand { height: 58px; margin-bottom: 18px; }
  .app-copy h2,.game-copy h2,.game--1 .game-copy h2,.game--2 .game-copy h2,.game--3 .game-copy h2 { margin-bottom: 18px; }
  .app-description,.game-description { min-height: 76px; margin-bottom: 14px; }
  .demo-steps { margin-bottom: 14px; }
  .product-languages { margin-bottom: 16px; }
}

/* Persistent, text-only language selection. */
.site-header .language-switcher {
  position: fixed; z-index: 24; top: 34px; right: var(--gutter);
  display: flex; align-items: center; gap: 18px; color: #31464a;
  font-size: 10px; font-weight: 450; letter-spacing: .04em;
}
.language-switcher a { display: grid; place-items: center; min-width: 24px; min-height: 36px; position: relative; }
.language-switcher a[aria-current]::after { content: ''; position: absolute; bottom: 4px; left: 3px; right: 3px; height: 1px; background: currentColor; }
.language-switcher a:hover { text-decoration: underline; text-underline-offset: 7px; }
html[data-scene="game-2"] .language-switcher,html[data-scene="game-3"] .language-switcher { color: #f2eee5; }
@media (min-width: 761px) {
  .scene-signature { top: 88px; }
  .game-next > [data-i18n] {
    display: inline; width: auto; height: auto; border: 0; border-radius: 0;
    background: transparent; color: inherit; font-size: inherit; order: 0;
  }
  .game-next:hover > [data-i18n] { background: transparent; color: inherit; }
  html:not([lang="tr"]) .intro-copy,html:not([lang="tr"]).is-enhanced .intro-copy { max-width: min(730px,57vw); }
  html:not([lang="tr"]) .intro-copy h1 { font-size: clamp(48px,5.05vw,78px); }
  html[lang="es"] .intro-copy h1 { font-size: clamp(43px,4.5vw,70px); }
}
@media (max-width: 760px) {
  .site-header .language-switcher { top: 20px; gap: 7px; font-size: 9px; }
  .language-switcher a { min-width: 22px; min-height: 44px; }
  .game-next > [data-i18n] { font-size: inherit; }
}

/* Give every desktop recording the same larger device size, capped by screen height. */
@media (min-width: 761px) {
  .scene .product-stage { display: flex; }
  .scene .recording-phone {
    width: min(clamp(230px,20.4vw,300px),calc((100svh - 140px) * .4604 + 12px));
    max-height: none;
    flex-shrink: 0;
  }
}

/* Game download links share the app's store treatment. */
.scene--game .store-links { position: static; flex-direction: row; }
@media (max-width: 760px) {
  .scene--game .store-links a,.scene--game .store-links a:nth-child(2) {
    color: inherit; background: transparent; border: 1px solid currentColor;
    min-height: 44px;
  }
}

/* Quiet store branding and a clearer desktop reading order. */
.store-brand-icon { width: 20px; height: 20px; flex: 0 0 20px; }
@media (min-width: 761px) {
  .scene .store-links { gap: 28px; }
  .scene .store-links a,.scene .store-links a:nth-child(2) {
    min-height: 48px; padding: 10px 2px; gap: 10px;
    font-size: 14px; font-weight: 500; border-bottom-color: currentColor;
  }
  .scene .store-links a > span[aria-hidden] { order: 1; margin-left: 4px; opacity: .65; }
  .scene .store-links a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
  .app-description,.game-description { min-height: 0; margin-bottom: 24px; }
  .scene .product-languages { font-size: 12px; line-height: 1.8; max-width: 410px; margin-bottom: 18px; }
  .scene .product-languages .product-languages-label { font-size: 10px; margin-bottom: 5px; }
  .scene-navigation a > span:not(.nav-index) { font-size: 12px; }
  .scene-navigation a[aria-current] { font-weight: 550; }
  .scene-navigation a[aria-current]::after { height: 2px; }
  .scene .product-background,.scene .product-background-video { filter: saturate(.83); }
}

/* Preview chapters use descriptive labels without ordinal decoration. */
.demo-steps button > span[data-i18n]:first-child,
.demo-steps button[aria-pressed=true] > span[data-i18n]:first-child {
  width: auto; height: auto; border: 0; border-radius: 0;
  background: transparent; color: inherit; font-size: inherit;
}

/* A restrained studio signature closes the product journey. */
.site-footer { background: #f3f1e7; color: #31464a; border-top: 1px solid #31464a26; }
.site-footer .footer-brand { display: inline-block; }
.site-footer .footer-logo {
  display: block; width: 180px; aspect-ratio: 999.91 / 292.08;
  margin: 0; background: currentColor; color: inherit;
  -webkit-mask: url(assets/logo.svg) center / contain no-repeat;
  mask: url(assets/logo.svg) center / contain no-repeat;
}
.footer-identity p { margin: 18px 0 0; font-size: 13px; line-height: 1.6; color: #536468; }
.footer-contact p { margin: 0 0 10px; font-size: 12px; color: #536468; }
.footer-contact a { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; font-size: 17px; letter-spacing: -.02em; }
.footer-contact .pb-icon { width: 16px; height: 16px; }
.footer-contact a:hover { text-decoration: underline; text-underline-offset: 6px; }
.site-footer a:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
@media (min-width: 761px) {
  .site-footer { padding-top: 64px; padding-bottom: 64px; align-items: center; }
  .footer-contact { padding-right: 2px; }
}

/* Mobile cleanup: consistent controls, readable metadata and restored sentence breaks. */
@media (max-width: 760px) {
  .site-header .language-switcher > a:first-child { display: grid; }
  .app-description br:not(.desktop-break),.game-description br { display: inline; }
  .app-description .desktop-break { display: none; }

  .scene .product-languages { display: block; max-width: none; margin: 14px 0 16px; font-size: 11px; line-height: 1.6; color: inherit; opacity: .78; }
  .scene .product-languages span { display: inline; padding: 0; border: 0; border-radius: 0; }
  .scene .product-languages span:not(.product-languages-label):not(:last-child)::after { content: ', '; }
  .scene .product-languages .product-languages-label { display: block; margin-bottom: 2px; font-size: 9px; letter-spacing: .1em; color: inherit; opacity: .8; }

  .scene--app .demo-steps { display: flex; gap: 6px; margin: 4px 0 0; }
  .scene--app .demo-steps button {
    flex: 1 1 0; justify-content: center; align-items: center; min-height: 40px; padding: 6px 4px;
    border: 1px solid #192c3524; border-radius: 999px; background: #ffffff8c;
    font-size: 11px; line-height: 1.2; text-align: center; white-space: nowrap; color: #3d5560;
  }
  .scene--app .demo-steps button[aria-pressed=true] { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 500; }

  .scene .store-links { display: flex; flex-direction: row; gap: 8px; margin-top: 0; }
  .scene .store-links a,.scene .store-links a:nth-child(2),.scene--game .store-links a,.scene--game .store-links a:nth-child(2) {
    flex: 1 1 0; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 12px;
    border: 1px solid #192c3533; border-radius: 12px; background: #ffffffb3; color: var(--ink);
    font-size: 13px; font-weight: 500; white-space: nowrap;
  }
  .scene .store-links a > span[aria-hidden] { display: none; }
  .scene .store-links .store-brand-icon { width: 18px; height: 18px; flex-basis: 18px; }
  .game--2 .store-links a,.game--2 .store-links a:nth-child(2),.game--3 .store-links a,.game--3 .store-links a:nth-child(2) {
    border-color: #ffffff40; background: #ffffff14; color: #f2eee5;
  }
  .scene .legal-links { margin-top: 12px; }
  .game--2 .legal-links,.game--3 .legal-links { color: #f2eee5c0; }

  .game--1 .game-copy h2 { font-size: 40px; line-height: 1.02; }
  .game--1 .game-copy h2 > span { margin-left: 0; }
}
@media (max-width: 374px) {
  .scene .store-links a,.scene .store-links a:nth-child(2),.scene--game .store-links a,.scene--game .store-links a:nth-child(2) { gap: 6px; padding: 10px 8px; font-size: 12px; }
}

/* Simple view keeps a paper footer on every scene, so its ink text stays readable. */
html[data-motion="off"] .stage[data-active] .stage-footer::before { background: var(--paper); }

/* Mobile uses the same product wordmarks as desktop instead of plain text names. */
@media (max-width: 760px) {
  .scene .desktop-wordmark { display: block; }
  .scene .mobile-wordmark { display: none; }
  .scene .product-brand { display: flex; align-items: center; height: 44px; margin: 0 0 12px; }
  .scene .product-brand img.desktop-wordmark { width: auto; height: auto; max-width: 190px; max-height: 44px; object-fit: contain; object-position: left center; border-radius: 0; box-shadow: none; }
  .scene .product-brand--weather img.desktop-wordmark { max-width: 170px; margin-left: -5px; }
  .scene .product-brand--void img.desktop-wordmark { max-width: 150px; max-height: none; margin-left: -8px; }
  .scene .product-brand--hoop img.desktop-wordmark { max-width: 180px; }
  .scene .product-brand--thronica {
    font-family: 'Thronica Cinzel', Georgia, serif; font-size: 24px; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; color: #e8e6e0;
  }
}

/* Analytics consent: a quiet paper card above the scene menu, both choices equally weighted. */
.consent-banner {
  position: fixed; z-index: 40; right: var(--gutter); bottom: 92px;
  width: min(380px, calc(100vw - 2 * var(--gutter)));
  padding: 18px 18px 16px; border: 1px solid #31464a26; border-radius: 14px;
  background: #f7f4eaf5; color: #22382d; box-shadow: 0 18px 40px -22px #07131e66;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0 0 14px; font-size: 13px; line-height: 1.55; color: #31464a; }
.consent-actions { display: flex; align-items: center; gap: 8px; }
.consent-actions a { margin-right: auto; font-size: 12px; color: #536468; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #53646859; }
.consent-actions a:hover { text-decoration-color: currentColor; }
.consent-actions button {
  min-height: 40px; padding: 8px 16px; border: 1px solid #22382d; border-radius: 999px;
  background: transparent; color: #22382d; font-size: 12px; font-weight: 500;
}
.consent-actions [data-consent-choice="accepted"] { background: #22382d; color: #f7f4ea; }
.consent-actions button:hover { background: #22382d14; }
.consent-actions [data-consent-choice="accepted"]:hover { background: #31464a; }
.consent-banner :focus-visible { outline: 2px solid #2b6264; outline-offset: 3px; }
.consent-open { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.consent-open:hover { text-decoration-color: currentColor; }
@media (max-width: 760px) {
  .consent-banner { left: 16px; right: 16px; bottom: 86px; width: auto; padding: 16px; }
  .consent-banner p { font-size: 12px; margin-bottom: 12px; }
  .consent-actions button { min-height: 44px; padding: 8px 14px; }
}
