/* ==========================================================
   CODEX SETUP — Design tokens
   ========================================================== */
:root{
  --bg-base:        #f7f5f0;
  --bg-deep:         #efece4;
  --ink:             #1b1a17;
  --ink-soft:        #4c4a44;
  --muted:           #86816f;
  --line:            #ded9cc;
  --line-soft:       #e9e5da;
  --accent:          #2f5d50;
  --accent-soft:     #dde7e2;
  --accent-ink:      #ffffff;
  --error:           #a23b2e;
  --error-soft:      #f2e0dc;
  --surface:         #fffdf9;

  --serif: 'Fraunces', Georgia, 'Songti SC', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --ease-out: cubic-bezier(.16,.9,.28,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --dur-s: 260ms;
  --dur-m: 520ms;
  --dur-l: 900ms;
}

*,*::before,*::after{ box-sizing:border-box; }

html,body{
  height:100%;
  margin:0;
  overflow:hidden;
}

body{
  background: var(--bg-base);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  position:relative;
}

.sr-only{
  position:absolute; width:1px; height:1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; padding:0; margin:-1px;
}

button{ font-family: inherit; }

/* ==========================================================
   Ambient background
   ========================================================== */
.ambient{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(60vw 60vw at var(--lx,50%) var(--ly,20%), rgba(47,93,80,.08), transparent 60%),
    radial-gradient(80vw 60vw at 15% 100%, rgba(216,213,204,.55), transparent 60%),
    var(--bg-base);
  transition: background var(--dur-l) var(--ease-in-out);
}

.grain{
  position:fixed; inset:-100px; z-index:1; pointer-events:none; opacity:.035; mix-blend-mode:multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================
   Stage / scenes
   ========================================================== */
.stage{
  position:relative; z-index:2;
  height:100vh; height:100dvh;
  width:100%;
}

.scene{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  padding: 8vh 6vw;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform: translateY(14px) scale(.99);
  transition: opacity var(--dur-m) var(--ease-out), transform var(--dur-m) var(--ease-out), visibility 0s linear var(--dur-m);
}

.scene.is-active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform: translateY(0) scale(1);
  transition: opacity var(--dur-m) var(--ease-out), transform var(--dur-m) var(--ease-out);
}

.scene.is-leaving-back{
  transform: translateY(-10px) scale(1.01);
}
.scene.is-entering-back{
  transform: translateY(14px) scale(.99);
}

.scene-inner{
  width:100%;
  max-width: 640px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 22px;
}

.wordmark{
  font-family: var(--sans);
  font-weight:600;
  letter-spacing:.28em;
  font-size:12px;
  color: var(--muted);
  margin:0;
}

.scene-title{
  font-family: var(--serif);
  font-weight:440;
  font-optical-sizing:auto;
  font-size: clamp(26px, 4.4vw, 40px);
  line-height:1.2;
  margin:0;
  color: var(--ink);
  max-width: 18ch;
}

.center-title{ margin-inline:auto; }

.scene-sub{
  font-size:15px;
  color: var(--ink-soft);
  margin:-8px 0 0;
  max-width: 42ch;
}

.muted{ color: var(--muted); }

/* ==========================================================
   Activation
   ========================================================== */
.activation-inner{ gap:16px; }

.activation-form{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  margin-top:10px;
}

.license-input{
  width: min(360px, 100%);
  text-align:center;
  font-family: var(--sans);
  font-size:16px;
  letter-spacing:.06em;
  padding: 16px 18px;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  outline:none;
  transition: border-color var(--dur-s) var(--ease-out), box-shadow var(--dur-s) var(--ease-out);
}
.license-input::placeholder{ color:#b8b3a4; letter-spacing:.06em; }
.license-input:focus-visible{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.license-input.is-error{
  border-color: var(--error);
  animation: shake .38s var(--ease-in-out);
}
@keyframes shake{
  0%,100%{ transform:translateX(0); }
  25%{ transform:translateX(-6px); }
  75%{ transform:translateX(6px); }
}

.btn-primary{
  position:relative;
  min-width: 200px;
  padding: 15px 30px;
  border-radius: 3px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color:#fdfcf9;
  font-size:14px;
  font-weight:500;
  letter-spacing:.03em;
  cursor:pointer;
  transition: transform var(--dur-s) var(--ease-out), background var(--dur-s), opacity var(--dur-s);
}
.btn-primary:hover{ transform: translateY(-1px); }
.btn-primary:active{ transform: translateY(0); }
.btn-primary:disabled{ opacity:.6; cursor:default; }
.btn-primary:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }

.btn-label{ transition: opacity var(--dur-s) var(--ease-out); }
.btn-spinner{
  position:absolute; inset:0; margin:auto; width:16px; height:16px;
  border-radius:50%;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  opacity:0;
  animation: spin .8s linear infinite;
}
.btn-primary.is-loading .btn-label{ opacity:0; }
.btn-primary.is-loading .btn-spinner{ opacity:1; }
@keyframes spin{ to{ transform: rotate(360deg); } }

.activation-feedback{
  min-height:18px;
  font-size:13px;
  margin:0;
  color: var(--error);
  opacity:0;
  transform: translateY(-4px);
  transition: opacity var(--dur-s) var(--ease-out), transform var(--dur-s) var(--ease-out);
}
.activation-feedback.is-visible{ opacity:1; transform:translateY(0); }
.activation-feedback.is-success{ color: var(--accent); }

.activation-links{
  margin-top: 6px;
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:13px;
  color: var(--muted);
}
.activation-links p{ margin:0; }
.help-line{ margin-top:2px; }

.link{
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset:3px;
  transition: text-decoration-color var(--dur-s);
}
.link:hover{ text-decoration-color: var(--ink); }

.qq-copy{
  position:relative;
  background:none; border:none; padding:0; margin:0;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset:3px;
  cursor:pointer;
  font-size:13px;
}
.qq-copy:hover{ text-decoration-color: var(--ink); }
.copy-flag{
  position:absolute; left:50%; top:-26px; transform: translate(-50%,4px);
  background: var(--ink); color:#fff; font-size:11px; padding:3px 8px; border-radius:3px;
  opacity:0; pointer-events:none;
  transition: opacity var(--dur-s) var(--ease-out), transform var(--dur-s) var(--ease-out);
  white-space:nowrap;
}
.qq-copy.is-copied .copy-flag{ opacity:1; transform: translate(-50%,0); }

/* activation retreat animation */
.activation-inner.is-retreating{
  animation: retreat var(--dur-l) var(--ease-in-out) forwards;
}
@keyframes retreat{
  to{ transform: scale(.9); opacity:0; }
}

/* ==========================================================
   Activation / Landing — scroll-enabled scene (V3)
   ========================================================== */
.scene--scroll{
  align-items: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.scene--scroll .scene-inner{
  min-height: auto;
}

.landing-hero{
  width:100%;
  min-height: 82dvh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:16px;
}

.landing-headline{ max-width:16ch; }

.landing-sub{
  font-size:15px;
  color: var(--ink-soft);
  max-width:38ch;
  margin:-6px 0 0;
  line-height:1.6;
}

.landing-tags{
  font-size:11.5px;
  letter-spacing:.14em;
  color: var(--muted);
  margin:0;
}

.trust-line{
  font-size:12px;
  color: var(--muted);
  max-width:46ch;
  margin:0;
  line-height:1.6;
}

.scroll-hint{
  margin-top:6px;
  background:none;
  border:none;
  font-size:12px;
  color: var(--muted);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:4px;
  animation: hint-bounce 2.6s ease-in-out infinite;
}
.scroll-hint:hover{ color: var(--ink-soft); }
.scroll-hint:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
@keyframes hint-bounce{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(4px); }
}

.landing-detail{
  width:100%;
  max-width:600px;
  margin: 6vh auto 4vh;
  padding-top:40px;
  border-top:1px solid var(--line-soft);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:36px;
}

.detail-title{
  font-family: var(--serif);
  font-weight:440;
  font-size: clamp(19px, 2.6vw, 25px);
  text-align:center;
  max-width:20ch;
  margin:0;
}

.detail-steps{
  list-style:none;
  margin:0; padding:0;
  width:100%;
  display:flex;
  flex-direction:column;
  gap:24px;
}
.detail-steps li{
  display:flex;
  gap:16px;
  align-items:flex-start;
  text-align:left;
  opacity:0;
  transform: translateY(14px);
  transition: opacity var(--dur-m) var(--ease-out), transform var(--dur-m) var(--ease-out);
}
.detail-steps li.is-visible{ opacity:1; transform:translateY(0); }
.detail-num{
  font-family: var(--serif);
  font-size:19px;
  color: var(--accent);
  min-width:32px;
  flex-shrink:0;
}
.detail-steps li strong{
  display:block;
  font-size:14.5px;
  font-weight:600;
  color: var(--ink);
}
.detail-steps li p{
  margin:4px 0 0;
  font-size:13px;
  color: var(--ink-soft);
  line-height:1.65;
}

.capability-line{
  width:100%;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  border-top:1px solid var(--line-soft);
  padding-top:24px;
}
.capability-line span{
  flex:1 1 140px;
  display:flex;
  flex-direction:column;
  gap:4px;
  align-items:center;
  padding:0 14px;
  border-left:1px solid var(--line-soft);
  text-align:center;
}
.capability-line span:first-child{ border-left:none; }
.capability-line strong{
  font-size:12px;
  letter-spacing:.06em;
  color: var(--ink);
}
.capability-line small{
  font-size:11px;
  color: var(--muted);
}

@media (max-width:560px){
  .capability-line span{
    flex:1 1 45%;
    border-left:none;
    border-top:1px solid var(--line-soft);
    padding-top:14px;
    margin-top:14px;
  }
  .capability-line span:nth-child(-n+2){
    border-top:none;
    margin-top:0;
    padding-top:0;
  }
}

@media (max-width:420px){
  .landing-hero{ gap:13px; min-height:80dvh; }
  .landing-sub{ font-size:14px; }
  .landing-detail{ margin-top:4vh; gap:30px; }
}

/* ==========================================================
   Split choice (OS / Provider)
   ========================================================== */
.split-choice{
  width:100%;
  display:flex;
  align-items:stretch;
  justify-content:center;
  gap:0;
  --focus: 0; /* -1 left focus, 1 right focus */
}

.split-divider{
  width:1px;
  background: var(--line);
  margin: 10px 0;
  transition: opacity var(--dur-m) var(--ease-out);
}

.choice-panel{
  position:relative;
  flex:1 1 0;
  min-width:0;
  background:transparent;
  border:none;
  padding: 48px 28px;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  transition: transform var(--dur-m) var(--ease-out), opacity var(--dur-m) var(--ease-out), filter var(--dur-m) var(--ease-out);
}

.choice-panel::before{
  content:"";
  position:absolute; inset: 6px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: border-color var(--dur-s) var(--ease-out), background var(--dur-s) var(--ease-out);
}

.choice-panel:hover::before,
.choice-panel:focus-visible::before{
  border-color: var(--line);
  background: rgba(255,255,255,.5);
}

.choice-panel:focus-visible{ outline:none; }
.choice-panel:focus-visible::before{ border-color: var(--accent); }

.choice-name{
  font-family: var(--serif);
  font-size: clamp(22px, 3.2vw, 30px);
  letter-spacing:.02em;
  font-weight:440;
}

.choice-sub{
  font-size:13px;
  color: var(--muted);
}

.choice-detail{
  font-size:12.5px;
  color: var(--ink-soft);
  line-height:1.7;
  max-height:0;
  opacity:0;
  overflow:hidden;
  transition: max-height var(--dur-m) var(--ease-out), opacity var(--dur-m) var(--ease-out), margin var(--dur-m) var(--ease-out);
  margin-top:0;
}
.choice-panel:hover .choice-detail,
.choice-panel:focus-visible .choice-detail{
  max-height:120px;
  opacity:1;
  margin-top:6px;
}

.coming-soon{
  margin-top:2px;
  font-size:10.5px;
  letter-spacing:.16em;
  color: var(--muted);
}

/* hover emphasis / recede — driven by JS via data-hover on container */
#os-choice[data-hover="windows"] .choice-panel[data-value="windows"],
#provider-choice[data-hover="deepseek"] .choice-panel[data-value="deepseek"],
#os-choice[data-hover="macos"] .choice-panel[data-value="macos"],
#provider-choice[data-hover="chatgpt"] .choice-panel[data-value="chatgpt"]{
  transform: scale(1.035);
}
#os-choice[data-hover="windows"] .choice-panel[data-value="macos"],
#provider-choice[data-hover="deepseek"] .choice-panel[data-value="chatgpt"],
#os-choice[data-hover="macos"] .choice-panel[data-value="windows"],
#provider-choice[data-hover="chatgpt"] .choice-panel[data-value="deepseek"]{
  transform: scale(.97);
  opacity:.6;
  filter: saturate(.85);
}

/* selection transition: split apart */
.split-choice.is-resolving .choice-panel[data-selected="true"]{
  animation: choice-picked var(--dur-l) var(--ease-in-out) forwards;
}
.split-choice.is-resolving .choice-panel[data-selected="false"]{
  animation: choice-dismissed var(--dur-m) var(--ease-in-out) forwards;
}
@keyframes choice-picked{
  0%{ transform: scale(1.035); }
  100%{ transform: translateY(-8px) scale(.9); opacity:0; }
}
@keyframes choice-dismissed{
  100%{ opacity:0; transform: scale(.94); }
}

/* ==========================================================
   Stack choice (Network / Blocked)
   ========================================================== */
.stack-choice{
  width:100%;
  max-width:420px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.choice-row{
  padding:18px 22px;
  border-radius:3px;
  border:1px solid var(--line);
  background: var(--surface);
  font-size:15px;
  color: var(--ink);
  cursor:pointer;
  text-align:left;
  transition: border-color var(--dur-s) var(--ease-out), transform var(--dur-s) var(--ease-out), background var(--dur-s) var(--ease-out);
}
.choice-row:hover{
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateX(2px);
}
.choice-row:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
}
.choice-row.is-selected{
  border-color: var(--accent);
  background: var(--accent-soft);
}

.link-quiet{
  margin-top:4px;
  background:none;
  border:none;
  color: var(--muted);
  font-size:12.5px;
  text-decoration:underline;
  text-decoration-color: var(--line-soft);
  cursor:pointer;
}
.link-quiet:hover{ color: var(--ink-soft); }

/* ==========================================================
   Network checking
   ========================================================== */
.checking-inner{ gap:28px; }

.check-list{
  list-style:none;
  padding:0; margin:0;
  width:100%; max-width:420px;
  display:flex; flex-direction:column;
  border-top:1px solid var(--line-soft);
}

.check-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 4px;
  border-bottom:1px solid var(--line-soft);
  font-size:14px;
  opacity:0;
  transform: translateY(6px);
}
.check-row.is-visible{
  opacity:1; transform:translateY(0);
  transition: opacity var(--dur-m) var(--ease-out), transform var(--dur-m) var(--ease-out);
}

.check-name{ color: var(--ink-soft); }

.check-scan{
  flex:1;
  height:1px;
  margin:0 14px;
  background: linear-gradient(90deg, transparent, var(--line) 30%, var(--line) 70%, transparent);
  position:relative;
  overflow:hidden;
}
.check-row.is-scanning .check-scan::after{
  content:"";
  position:absolute; top:0; bottom:0; left:-30%; width:30%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scan 1.1s linear infinite;
}
@keyframes scan{
  to{ left:100%; }
}

.check-status{
  min-width:64px;
  text-align:right;
  font-size:13px;
  font-weight:500;
  color: var(--muted);
}
.check-status.ok{ color: var(--accent); }
.check-status.fail{ color: var(--error); }

.check-result{
  display:flex; flex-direction:column; align-items:center; gap:16px;
  opacity:0; transform: translateY(8px);
}
.check-result.is-visible{
  opacity:1; transform:translateY(0);
  transition: opacity var(--dur-m) var(--ease-out), transform var(--dur-m) var(--ease-out);
}
.check-recommend{ font-size:15px; margin:0; }

.row-actions{ display:flex; gap:12px; flex-wrap:wrap; justify-content:center; }

.btn-ghost{
  padding:14px 26px;
  border-radius:3px;
  border:1px solid var(--line);
  background:transparent;
  color: var(--ink-soft);
  font-size:14px;
  cursor:pointer;
  transition: border-color var(--dur-s), color var(--dur-s), transform var(--dur-s);
}
.btn-ghost:hover{ border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.btn-ghost:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }

/* ==========================================================
   Recommendation
   ========================================================== */
.ready-eyebrow{
  font-size:13px;
  color: var(--muted);
  margin:0;
}

.summary-list{
  list-style:none; margin:8px 0 0; padding:0;
  display:flex; flex-direction:column; gap:6px;
  font-size:14px;
  color: var(--ink-soft);
}
.summary-list li{ display:flex; gap:8px; justify-content:center; }
.summary-list .tick{ color: var(--accent); }

.reco-desc{ font-size:14.5px; color: var(--ink-soft); max-width:44ch; margin:6px 0 0; line-height:1.7; }
.reco-note{ font-size:12.5px; color: var(--muted); max-width:44ch; margin:0; }
.reco-eta{ font-size:12.5px; color: var(--muted); margin:0; }

.btn-large{
  margin-top:10px;
  min-width:220px;
  padding:17px 34px;
  background: var(--accent);
  border-color: var(--accent);
}
.btn-large:hover{ background:#284f44; border-color:#284f44; }

/* ==========================================================
   Download
   ========================================================== */
.progress-track{
  width:min(420px,100%);
  height:2px;
  background: var(--line-soft);
  border-radius:2px;
  overflow:hidden;
}
.progress-fill{
  height:100%; width:0%;
  background: var(--accent);
  transition: width .25s var(--ease-out);
}
.progress-label{
  font-size:13px; color: var(--muted); margin:0;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================
   Success
   ========================================================== */
.success-mark{
  width:56px; height:56px; border-radius:50%;
  background: var(--accent-soft);
  color: var(--accent);
  display:flex; align-items:center; justify-content:center;
  font-size:22px;
  transform: scale(.6);
  opacity:0;
  animation: pop var(--dur-m) var(--ease-out) forwards;
}
@keyframes pop{ to{ transform:scale(1); opacity:1; } }

/* ==========================================================
   History bar
   ========================================================== */
.history-bar{
  position:fixed;
  top:26px; left:50%;
  transform: translateX(-50%);
  z-index:4;
  display:flex;
  gap:8px;
  align-items:center;
  font-size:12px;
  color: var(--muted);
  opacity:0;
  transition: opacity var(--dur-m) var(--ease-out);
  max-width:88vw;
  flex-wrap:wrap;
  justify-content:center;
}
.history-bar.is-visible{ opacity:1; }
.history-bar button{
  background:none; border:none; padding:2px 4px;
  color: var(--ink-soft);
  cursor:pointer;
  border-bottom:1px solid transparent;
}
.history-bar button:hover{ border-color: var(--line); }
.history-bar button:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.history-sep{ color: var(--line); }

/* ==========================================================
   Record / music toggle
   ========================================================== */
.record{
  position:fixed; top:20px; right:22px; z-index:5;
  width:44px; height:44px;
  background:none; border:none; padding:0; cursor:pointer;
  border-radius:50%;
  transition: transform var(--dur-s) var(--ease-out);
}
.record:hover{ transform: scale(1.08); }
.record:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; border-radius:50%; }

.record svg{ display:block; }
.record-body{ fill: var(--ink); }
.record-groove{ fill:none; stroke: rgba(255,255,255,.16); stroke-width:1; }
.record-label{ fill: var(--bg-base); }
.record-hole{ fill: var(--ink); }

.record svg{
  transition: transform 6s linear;
  transform-origin: center;
}
.record.is-playing svg{
  animation: spin-record 6s linear infinite;
}
@keyframes spin-record{ to{ transform: rotate(360deg); } }

.record-tip{
  position:absolute; top:50%; right:52px; transform: translateY(-50%);
  background: var(--ink); color:#fff; font-size:11px; padding:4px 9px; border-radius:3px;
  white-space:nowrap;
  opacity:0; pointer-events:none;
  transition: opacity var(--dur-s) var(--ease-out);
}
.record:hover .record-tip,
.record:focus-visible .record-tip{ opacity:1; }

/* ==========================================================
   Toast
   ========================================================== */
.toast{
  position:fixed; bottom:28px; left:50%; transform: translate(-50%,10px);
  background: var(--ink); color:#fdfcf9;
  padding:10px 18px; border-radius:3px; font-size:13px;
  opacity:0; pointer-events:none; z-index:6;
  transition: opacity var(--dur-s) var(--ease-out), transform var(--dur-s) var(--ease-out);
}
.toast.is-visible{ opacity:1; transform: translate(-50%,0); }

/* ==========================================================
   Help corner
   ========================================================== */
.help-corner{
  position:fixed; bottom:20px; right:22px; z-index:4;
  font-size:12px; color: var(--muted);
  display:flex; gap:6px; align-items:center;
}
.help-corner .qq-copy{ font-size:12px; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 720px){
  .split-choice{ flex-direction:column; }
  .split-divider{ width:auto; height:1px; margin:0 24px; }
  .choice-panel{ padding:34px 20px; }
  .record{ top:14px; right:14px; }
  .help-corner{ right:14px; bottom:14px; font-size:11px; }
  .history-bar{ top:16px; }
  .scene{ padding: 7vh 6vw; }
}

@media (max-width: 420px){
  .scene-title{ font-size: clamp(22px, 6vw, 28px); }
  .btn-primary{ width:100%; }
  .license-input{ width:100%; }
}

/* ==========================================================
   Reduced motion
   ========================================================== */
@media (prefers-reduced-motion: reduce){
  *{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior:auto !important;
  }
  .record.is-playing svg{ animation:none; }
}
