/* The same pass, progress and scenes adapt to the space available. */
@media (min-width: 741px) and (max-width: 959px) {
  .experience{grid-template-columns:1fr;gap:28px;max-width:640px;margin:auto}
  .intro{padding-top:40px}.intro-copy{max-width:250px}
  .stage{height:360px}.journey-panel{padding-top:0}
  .masthead .top-meta{display:none}
}

@media (min-width: 960px) {
  .masthead{height:88px;max-width:1504px;margin-inline:auto;width:90%;gap:22px}
  .wordmark{font-size:24px;gap:12px}.wordmark>.brand-symbol{width:38px}
  .masthead .sound-toggle{font-size:11px;padding:11px 14px}
  .masthead #about{font-size:11px}
  main{max-width:1640px;padding-inline:5%}
  .intro{padding:46px 0 12px;align-items:center}
  .intro .eyebrow{font-size:10px;margin-bottom:16px}
  h1{font-size:clamp(38px,3.5vw,56px);line-height:1.4;letter-spacing:-1.5px}
  .intro-copy{font-size:13px;line-height:2.2;margin:0;max-width:390px}
  .experience{grid-template-columns:minmax(0,1.35fr) minmax(340px,.85fr);gap:clamp(36px,5vw,90px);padding:12px 0 46px}
  .stage{height:clamp(460px,60svh,680px);perspective:1500px}
  .stage .card-wrap{width:min(92%,720px)}
  .card-top{top:8%;left:6%;right:6%}.card-bottom{bottom:8%;left:6%;right:6%}
  .card-brand{font-size:clamp(13px,1.1vw,18px);gap:8px}.card-brand>.brand-symbol{width:22px}
  .card-type{font-size:9px}.member-name{font-size:clamp(15px,1.3vw,21px)}
  .card-code{font-size:9px}.micro-label{font-size:9px}.compass-direction{font-size:8px}
  .object-caption{font-size:12px;gap:24px}.caption-line{width:44px}
  .ambient-video-toggle{font-size:10px;padding:11px 14px;bottom:6px;right:3%}
  .journey-panel{padding-top:0}
  .journey-header h2{font-size:clamp(19px,1.65vw,26px)}
  .journey-header .eyebrow{font-size:10px}.counter>span:first-child{font-size:42px}
  .progress-track{margin-top:22px;height:3px}
  .collection-heading{margin-top:25px;font-size:10px}
  .guardian-row{gap:10px}.guardian-slot{padding:12px 4px}
  .guardian-slot>.emblem-crop{width:62px;height:62px}
  .guardian-slot>span:not(.emblem-crop){font-size:11px;margin-top:7px}
  .guardian-slot.owned small{font-size:9px}
  .next-legend{font-size:11px;min-height:32px;line-height:1.8}
  .quick-step{min-height:48px;font-size:11px}
  .current-step{padding:18px 0 15px}.current-step h3{font-size:17px}
  #achieve{min-height:62px;font-size:14px}.feedback{font-size:11px;min-height:20px}
  .footnote{padding:20px 0}.footnote p:first-child{font-size:10px}
  footer{max-width:1504px;width:90%;margin:auto;padding:22px 0}
  .guardian-ambient{height:min(80svh,850px)}

  /* A widescreen opening, using the supplied phoenix artwork. */
  #welcome-gate{padding:clamp(36px,5svh,64px) 7%;background:#0b0816}
  /* The 1365x2048 cover fits the viewport height; its crest stays in view. */
  #welcome-gate .welcome-art{inset:0 0 0 32%;background-image:linear-gradient(90deg,#0b0816 0%,#0b0816b3 18%,#0b081600 48%),linear-gradient(0deg,#0b081680,transparent 30%),url('../media/phoenix-cover-original.png');background-position:100% 50%,center,100% 50%;background-size:calc(100svh * .666504) 100%,cover,auto 100%}
  #welcome-gate>.eyebrow{font-size:11px;letter-spacing:3px}
  .welcome-message{width:60%;padding:30px 0}
  #welcome-gate .welcome-kicker{font-size:10px!important;letter-spacing:4px;margin-bottom:26px!important}
  #welcome-gate #welcome-heading{font-size:clamp(62px,7.4vw,112px);line-height:1.08;letter-spacing:.025em;margin-bottom:30px}
  #welcome-gate .welcome-jp{font-size:19px!important;letter-spacing:.09em}
  #welcome-gate .welcome-sub{font-size:13px!important;letter-spacing:.08em}
  .welcome-actions{width:min(34vw,390px)}
  .welcome-actions #begin-story{min-height:70px;font-size:27px}
  .welcome-actions>p{font-size:10px!important;margin-top:15px}
  .welcome-actions>.text-button{font-size:11px;min-height:40px}

  /* Preserve every part of the 16:9 film; controls float above its safe edges. */
  #reward-dialog[open]{padding:0;gap:0;justify-content:center;background:#050409}
  #reward-dialog:not(.guardian-scene) .reward-screen{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;margin:0;background-color:#050409;border:0;border-radius:0;box-shadow:none}
  #reward-dialog:not(.guardian-scene) .reward-screen video{width:100%;height:100%;object-fit:contain}
  #reward-dialog .reward-header{position:absolute;inset:0 0 auto;width:100%;z-index:2;text-align:left;padding:30px 4% 65px;background:linear-gradient(#050409d9,transparent);pointer-events:none}
  #reward-dialog .reward-header .eyebrow{font-size:10px;margin-bottom:12px}
  #reward-dialog .reward-header h2{font-size:24px;margin:0}
  #reward-dialog.welcome-scene .reward-header h2{font-size:30px}
  #reward-dialog .growth-level{font-size:11px;margin-top:12px!important}
  #reward-dialog .reward-bottom{position:absolute;inset:auto 0 0;width:100%;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:55px 4% 24px;background:linear-gradient(transparent,#050409ed)}
  #reward-dialog .reward-footer{display:flex;flex-direction:row;align-items:center;gap:30px;flex:1;min-width:0}
  #reward-dialog #video-status{font-size:12px!important;margin:0;flex:1;text-align:left}
  #reward-dialog #video-sound,#reward-dialog #skip-reward{font-size:12px;min-height:44px;white-space:nowrap;padding:8px 14px;border:1px solid #ffffff30;border-radius:3px;background:#0c081759}
  #reward-dialog .video-play{z-index:4}

  #receipt-dialog>.eyebrow{font-size:11px;letter-spacing:4px;margin-bottom:30px}
  .receipt-stage{height:clamp(290px,44svh,490px);perspective:1600px}
  .receipt-stage .card-wrap{width:min(66vw,680px);max-width:680px}
  #receipt-dialog h2{font-size:30px}
  #receipt-dialog .receipt-message>p:last-child{font-size:13px}
  #receipt-continue{font-size:12px;margin-top:30px}
  #emblem-dialog{max-width:700px;padding:34px 60px}
  #emblem-dialog .emblem-art{width:min(390px,43svh)}
  #emblem-dialog h2{font-size:30px}#emblem-dialog #emblem-copy{font-size:13px}
  #emblem-dialog .primary-button{max-width:440px;margin-inline:auto}
}

@media (min-width: 960px) and (max-height: 660px) {
  #welcome-gate{padding-block:24px}.welcome-message{padding:12px 0}
  #welcome-gate #welcome-heading{font-size:clamp(48px,6vw,76px);margin-bottom:16px}
  .welcome-actions #begin-story{min-height:54px}
  .receipt-stage{height:43svh}.receipt-stage .card-wrap{width:min(56vw,550px)}
  #receipt-dialog>.eyebrow{margin-bottom:12px}#receipt-dialog h2{font-size:23px}
  #receipt-continue{margin-top:14px}
}
