.duel-entries > div { min-width: 0; }
.duel-entries label + label { margin-top: .75rem; }
#duel-result:not(:empty) { margin-top: 1rem; padding: .8rem 1rem; background: #fff3c9; border-left: 3px solid var(--gold); border-radius: .2rem; }
.match-story { grid-column: 1/-1; display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden; border: 1px solid var(--line); background: white; border-radius: .7rem; }
.match-photo { display: block; position: relative; min-height: 16rem; padding: 0; background: var(--ink); }
.match-photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.match-copy { padding: clamp(1.35rem, 3.2vw, 3.4rem); min-width: 0; }
.match-copy h2, .film-library h2 { font-size: clamp(2.15rem, 4vw, 4.1rem); margin: .55rem 0 .75rem; }
.match-copy h2 small { text-transform: none; font-size: .45em; color: var(--muted); }
.match-copy > p:not(.kicker) { color: var(--muted); }
.finish-times { margin: 1.2rem 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .6rem; padding-block: .85rem; border-block: 1px solid var(--line); }
.finish-times span, .finish-times strong { display: block; }
.finish-times span { font-size: .83rem; color: var(--muted); }
.finish-times strong { font-family: var(--display); font-size: clamp(1.4rem, 2.5vw, 2.2rem); font-variant-numeric: tabular-nums; }
.story-links { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.detail-content .match-story { margin-top: 2rem; }
@media(max-width:700px) { .match-story { grid-template-columns: 1fr; } .match-photo { aspect-ratio: 16/9; min-height: 0; } }

.store-links { margin-top: 1.4rem; }
.store-row, .feature-film-links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.store-row a { display: inline-flex; align-items: center; justify-content: center; position: relative; border-radius: .38rem; height: 44px; }
.store-row img { display: block; width: auto; height: 44px; }
/* The official Google PNG includes 41 transparent pixels around the badge. */
.store-row a:has(.play-badge) { width: 148px; overflow: hidden; }
.store-row .play-badge { height: 65.5px; max-width: none; flex: none; }
.badge-clip { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; overflow: hidden; }
.foot-brand { min-width: 0; }
.foot-brand .store-links { margin-top: 1rem; }
.foot-brand .store-links p { max-width: 27rem; }
.foot-inner { align-items: start; gap: 1.5rem; }
.case-section { margin-bottom: clamp(2.5rem,5vw,5rem); }
@media(max-width:850px) { .foot-inner { grid-template-columns: 1fr; flex-wrap: wrap; } }
.store-links p { margin: .55rem 0 0; font-size: .79rem; line-height: 1.5; color: var(--muted); }
.hero .store-links p { color: #e1e4eb; }
.guide-lead { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); align-items: center; gap: clamp(1.5rem,5vw,5rem); }
.guide-lead picture { display: block; }
.guide-lead img { display: block; width: 100%; height: auto; border-radius: .65rem; }
.guide-intro { color: var(--muted); max-width: 40rem; }
.guide-lead .film-link, .feature-film-links, #timer-film { margin-top: 1.15rem; }
.feature-film-links .film-link { margin: 0; }
.film-library { padding-bottom: clamp(2.4rem,5vw,4.7rem); }
.film-library h2 { margin-top: 0; margin-bottom: 1rem; }
.film-library .card-cover { aspect-ratio: 16/9; }
.film-library .card-info p { margin-bottom: 1.2rem; }
.film-library .card-link { align-self: flex-start; margin-top: auto; }
.library-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; margin-bottom: 1rem; }
.library-head h2 { margin: 0; }
.library-head a { font-weight: 700; text-decoration: underline; text-underline-offset: .22em; padding-block: .5rem; }
.app-preview .preview-art img { height: 84%; top: 8%; }
.preview-art .back-phone { left: 18%; transform: rotate(-7deg); }
.preview-art #preview-phone { left: 48%; transform: rotate(6deg); }
#film-chapter { max-width: 100%; width: 100%; border: 1px solid var(--line); border-radius: .4rem; background: white; color: var(--ink); margin-top: .8rem; padding: .6rem; font: inherit; }
#film[data-kind="story"] { width: min(64rem, 94vw); }
#film[data-kind="story"] video { aspect-ratio: 16/9; object-fit: contain; }
#film.portrait-film video { aspect-ratio: 9/16; width: auto; height: auto; max-height: 65dvh; max-width: 100%; margin-inline: auto; }
.context-film { grid-column: 1/-1; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); align-items: center; gap: clamp(1.25rem,3vw,3rem); margin-block: 1.5rem; }
.context-film .card-cover { aspect-ratio: 16/9; border-radius: .65rem; }
.context-film h2 { font-size: clamp(1.7rem,3vw,3.2rem); margin-block: 0 .6rem; }
.context-film p { color: var(--muted); line-height: 1.6; }
@media(max-width:700px) { .context-film { grid-template-columns: 1fr; } }
.demo-device video { object-fit: contain; }
.detail-art img { transform: none; max-width: 100%; align-self: center; object-fit: contain; }
@media(max-width:650px) {
  .guide-lead { grid-template-columns: 1fr; }
  .guide-lead img { max-height: 16rem; object-fit: cover; object-position: center 63%; }
  .feature-film-links { gap: .4rem .8rem; }
  .feature-film-links .btn, .feature-film-links .film-link { max-width: 100%; white-space: normal; text-align: start; }
  #film-tabs button { text-align: start; }
  .detail-art { align-items: center; }
  .detail-art img { width: 100%; height: auto; }
  .store-row { gap: .5rem; }
  .store-row a, .store-row img { height: 40px; }
  .store-row a:has(.play-badge) { width: 134px; }
  .store-row .play-badge { height: 59.52px; }
  .feature-strip .wrap { flex-wrap: wrap; justify-content: center; gap: 0 1rem; padding-block: .35rem; }
  .feature-strip a { min-height: 2.75rem; white-space: normal; }
  .tool-fields input, .tool-fields select, .fields input, #preset, #hero-stage { font-size: 1rem; }
  .demo-controls button { min-width: 44px; min-height: 44px; }
}
.hero-wash {
  background: radial-gradient(ellipse at 93% 5%, #303136 0%, #171d2b 34%, transparent 64%), linear-gradient(125deg,#0b1020,#101729);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.12fr);
  gap: clamp(1.7rem,4vw,4.4rem);
  padding-block: clamp(2.4rem,4.5vw,5rem);
}
.hero-demo, .zoom-dialog .hero-demo {
  display: grid; grid-template-columns: minmax(0,1fr); align-content: start; gap: 0;
  width: 100%; max-width: none; margin: 0; border: 1px solid #495061;
  border-radius: .75rem; background: #101725; overflow: hidden;
  box-shadow: 0 1.4rem 3.2rem #03061166;
}
.hero-demo .demo-device, .zoom-dialog .demo-device {
  width: 100%; max-width: none; height: auto; aspect-ratio: 16/9;
  border: 0; border-radius: 0; box-shadow: none; background: #0b1020;
}
.hero-demo .demo-panel {
  display: grid; grid-template-columns: minmax(0,1fr) auto;
  gap: .3rem .8rem; width: 100%; padding: .85rem 1rem .5rem;
  box-shadow: none; border: 0; border-top: 1px solid #414754; border-radius: 0;
}
.demo-heading { grid-column: 1; grid-row: 1; }
#hero-time { grid-column: 2; grid-row: 1; }
#hero-stage {
  grid-column: 1/-1; grid-row: 2; width: max-content; max-width: 100%; min-height: 2rem;
  appearance: none; -webkit-appearance: none; color-scheme: dark; color: #fff;
  padding: .25rem 1.8rem .25rem .4rem; border: 1px solid #576075; border-radius: .25rem;
  background-color: #131929;
  background-image: linear-gradient(45deg, transparent 50%, #f5bb18 50%), linear-gradient(135deg, #f5bb18 50%, transparent 50%);
  background-size: 5px 5px; background-repeat: no-repeat;
  background-position: calc(100% - 13px) 52%, calc(100% - 8px) 52%;
}
#hero-caption { grid-column: 1/-1; grid-row: 3; margin: 0; color: #d3dae7; font-size: .88rem; line-height: 1.45; min-height: 2.9em; }
.demo-controls { grid-column: 1/-1; grid-row: 4; width: 100%; gap: .25rem; }
.demo-controls button { width: 44px; height: 44px; }
.zoom-dialog .hero-demo { width: min(100%, calc((100dvh - 13rem) * 1.77), 78rem); }
.zoom-dialog .demo-panel { max-width: none; }
.page-lead .story-links { margin-top: .9rem; }
@media(min-width:651px) and (max-width:880px) {
  .hero-inner { grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); gap: 1.5rem; }
}
@media(max-width:650px) {
  .hero-inner { grid-template-columns: 1fr; gap: 1.75rem; padding-block: 2rem; }
  .hero-demo .demo-device { aspect-ratio: 9/16; width: min(100%, 29dvh + 8rem); margin-inline: auto; }
  .hero-demo .demo-panel { padding: .75rem .85rem .35rem; }
  .hero-demo .demo-heading { grid-column: 1; grid-row: 1; }
  .zoom-dialog .hero-demo { width: min(100%, 28rem); }
  .zoom-dialog .demo-device { width: auto; height: min(64dvh, calc(100dvh - 13rem)); justify-self: center; }
}
@media(orientation:landscape) and (max-height:520px) {
  .zoom-dialog .hero-demo { width: min(100%,70rem); grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); }
  .zoom-dialog .demo-device { max-height: 86dvh; }
  .zoom-dialog .demo-panel { align-self: center; }
}

.site-footer {
  color: #eef1f7;
  background: radial-gradient(ellipse at 9% 0%, #222b3c, transparent 53%), #101623;
  border: 0;
  padding: 0;
}
@media (max-width: 650px) and (max-height: 700px) {
  .site-header { position: relative; }
  html { scroll-padding-top: .5rem; }
}
.footer-grid {
  position: relative; display: grid;
  grid-template-columns: minmax(0,1.65fr) minmax(0,.8fr) minmax(0,.85fr);
  gap: clamp(2rem,6vw,6.5rem); padding-block: clamp(2.6rem,6vw,5.25rem);
}
.footer-grid::before {
  content: ""; height: 3px; width: 4.5rem; position: absolute; top: 0; left: 0; background: var(--gold);
}
.footer-brand { min-width: 0; }
.site-footer .wordmark { font-family: var(--display); font-size: clamp(2.15rem,3.8vw,3.45rem); letter-spacing: -.055em; gap: .65rem; line-height: 1.05; color: white; }
.site-footer .wordmark img { width: 1.04em; height: 1.04em; border-radius: .19em; }
.footer-intro { max-width: 32ch; color: #d3dae7; margin: 1rem 0 1.35rem; font-size: 1rem; line-height: 1.5; }
.site-footer .store-links { margin: 0; }
.site-footer .store-links p { max-width: 39ch; color: #b6c0d0; line-height: 1.45; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.footer-column h2 { margin: .35rem 0 .75rem; font-size: 1.25rem; font-stretch: 87%; text-transform: none; color: var(--gold); letter-spacing: -.015em; }
.footer-column a, .footer-base a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; color: #e2e7ef; }
.footer-column a { font-size: .99rem; font-weight: 570; line-height: 1.4; }
.site-footer a:hover, .footer-column a[aria-current="page"], .footer-base a[aria-current="page"] { color: #ffd05c; }
.site-footer a:focus-visible { outline: 2px solid #ffd05c; outline-offset: 3px; border-radius: .22rem; }
.footer-base { border-top: 1px solid #475064; display: flex; align-items: center; gap: 1.5rem; padding-block: .8rem; }
.footer-base small { color: #b5c0d0; font-size: .85rem; }
.footer-base nav { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.footer-base a { font-size: .88rem; font-weight: 600; }
.footer-top { margin-inline-start: auto; gap: .6rem; }
.up-arrow { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border: 1px solid #69768a; border-radius: 50%; font-size: 1.05rem; }
@media(max-width:700px) {
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.85rem 1rem; }
  .footer-brand { grid-column: 1/-1; }
  .footer-intro { max-width: 35ch; }
  .footer-base { flex-wrap: wrap; gap: .1rem 1.25rem; }
  .footer-base small { flex-basis: 100%; padding-block: .4rem; }
}
@media(max-width:650px) {
  .hero-demo .demo-device { width: 100%; }
  .zoom-dialog[open] { padding: max(.4rem,env(safe-area-inset-top)) max(.4rem,env(safe-area-inset-right)) max(.4rem,env(safe-area-inset-bottom)) max(.4rem,env(safe-area-inset-left)); }
  .zoom-dialog .hero-demo { width: min(100%,36rem); height: 100%; min-height: 0; grid-template-rows: minmax(0,1fr) auto; align-content: stretch; }
  .zoom-dialog .hero-demo .demo-device { width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; }
  .zoom-dialog .demo-panel { padding: .4rem .6rem .15rem; }
  .zoom-dialog .demo-heading { display: none; }
  .zoom-dialog #hero-stage { grid-column: 1; grid-row: 1; }
  .zoom-dialog #hero-caption { grid-row: 2; min-height: 2.8em; }
  .zoom-dialog .demo-controls { grid-row: 3; }
}
