:root {
  color-scheme: dark;
  --bg: #0a0c0d;
  --surface: #171a1c;
  --surface-raised: #202427;
  --line: #343a3e;
  --text: #fafafa;
  --muted: #bdc1c4;
  --yellow: #ffda32;
  --yellow-hover: #ffe56d;
  --yellow-ink: #12130b;
  --error: #ffb1ac;
  --success: #b9e6ce;
  --radius: 16px;
  --radius-small: 8px;
  --font: Arial, Helvetica, sans-serif;
  --page-width: 1280px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --type-body: 16px;
  --type-small: 14px;
  --type-title: clamp(32px, 4vw, 52px);
  --type-hero: clamp(40px, 5vw, 72px);
  --duration: 200ms;
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #62686c var(--bg); scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--text); font: var(--type-body)/1.6 var(--font); }
body.dialog-open { overflow: hidden; }
button, input { font: inherit; }
button, a, label.file-zone { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, a { cursor: pointer; }
button { color: inherit; }
a { color: inherit; text-underline-offset: 4px; }
button:disabled { cursor: not-allowed; }
img { display: block; max-width: 100%; height: auto; }
button, a, input { outline-offset: 5px; }
:focus-visible { outline: 3px solid var(--yellow); }
h1:focus, h2:focus { outline: none; }
::selection { color: var(--yellow-ink); background: var(--yellow); }
h1, h2, h3, p, figure, ol { margin: 0; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; overflow-wrap: anywhere; }
h1 { font-size: var(--type-title); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(24px, 2.8vw, 36px); font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 20px; line-height: 1.25; }
p { max-width: 66ch; }
button svg, a svg { pointer-events: none; }
.od-icon { --od-icon-size: 20px; stroke-width: 1.8; vertical-align: middle; }
.container { width: min(var(--page-width), calc(100% - 96px)); margin-inline: auto; }
.muted { color: var(--muted); }
.yellow { color: var(--yellow); }
.small { font-size: var(--type-small); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 30; padding: 12px 24px; color: var(--yellow-ink); background: var(--yellow); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 12px; padding: 8px 0; border: 0; background: transparent; text-decoration: none; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; color: var(--yellow); border: 1px solid var(--line); border-radius: 8px; }
.brand-mark .od-icon { --od-icon-size: 24px; }
.header-right { display: flex; align-items: center; gap: 32px; }
.header-help { border: 0; padding: 12px 0; background: transparent; font-size: 14px; text-decoration: none; }
.demo-tag { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #635921; padding: 6px 12px; color: var(--yellow); border-radius: 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.demo-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 16px 24px; border: 1px solid transparent; border-radius: var(--radius-small); background: var(--surface-raised); color: var(--text); font-size: 16px; line-height: 1.4; font-weight: 700; text-align: center; text-decoration: none; transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease); }
.btn.primary { background: var(--yellow); color: var(--yellow-ink); }
.btn.secondary { background: var(--surface-raised); color: var(--text); border-color: #52595e; }
.btn:disabled { background: #252a2e; color: #a1a7ab; border-color: #353c40; }
.btn.full { width: 100%; }
.btn.text { background: transparent; color: var(--text); padding: 12px 0; min-height: 48px; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 0; background: none; padding: 8px 0; color: var(--muted); text-decoration: none; font-size: 14px; }
.back .od-icon { --od-icon-size: 16px; }
.hero { display: grid; grid-template-columns: .95fr 1.25fr; gap: 64px; align-items: center; padding-block: 64px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero h1 { font-size: var(--type-hero); line-height: 1.04; letter-spacing: -.04em; }
.hero h1 span { display: block; }
.hero-copy > p { color: var(--muted); max-width: 38ch; font-size: 18px; }
.hero-price { display: flex; align-items: center; gap: 16px; }
.hero-price strong { font-size: 24px; line-height: 1; white-space: nowrap; }
.hero-price .od-field { font-size: 12px; line-height: 1.5; }
.hero-photo { border-radius: var(--radius); background: var(--surface); }
.hero-photo img { width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
.hero-caption { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 20px; }
.hero-caption strong { font-size: 14px; }
.hero-caption .small { font-size: 12px; }
.hero-caption .od-icon { color: var(--yellow); }
.catalog-section { padding-block: 32px 64px; scroll-margin-top: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.section-heading p { font-size: 14px; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.category-card { display: flex; flex-direction: column; padding: 0; text-align: left; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color var(--duration) var(--ease); }
.category-card img { width: 100%; border-radius: 15px 15px 0 0; }
.category-card .card-caption { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 12px; padding: 16px; width: 100%; }
.category-card strong { font-size: 16px; line-height: 1.4; }
.category-card .od-field { gap: 4px; }
.category-card .count { font-size: 12px; color: var(--muted); }
.category-card .od-icon { margin-top: 2px; color: var(--yellow); }
.how-section { padding-block: 48px 64px; border-top: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.how-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); list-style: none; padding: 0; gap: 32px; counter-reset: how; }
.how-steps li { counter-increment: how; display: flex; flex-direction: column; gap: 8px; }
.how-steps li::before { content: '0' counter(how); color: var(--yellow); font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.how-steps strong { font-size: 16px; line-height: 1.4; }
.how-steps p { font-size: 14px; color: var(--muted); }
.flow-top { padding-top: 24px; }
.flow-nav { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; }
.progress-steps { display: flex; gap: 24px; list-style: none; padding: 0; color: #a3aaae; font-size: 12px; }
.progress-steps li { display: flex; align-items: center; gap: 8px; }
.progress-steps .step-number { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid #52595e; font-size: 11px; font-weight: 700; flex: none; }
.progress-steps [aria-current=step] { color: var(--text); }
.progress-steps [aria-current=step] .step-number { background: var(--yellow); color: var(--yellow-ink); border-color: var(--yellow); }
.progress-steps .completed .step-number { color: var(--yellow); border-color: #635921; }
.screen-heading { margin-bottom: 32px; }
.screen-heading p { margin-top: 16px; color: var(--muted); }
.catalog-view { padding-bottom: 64px; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.category-tab { border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: 12px 20px; min-height: 48px; border-radius: 8px; font-size: 14px; }
.category-tab[aria-pressed=true] { background: var(--yellow); color: var(--yellow-ink); border-color: var(--yellow); font-weight: 700; }
.scenes-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 24px; }
.scene-card { display: flex; flex-direction: column; width: 100%; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-align: left; transition: border-color var(--duration) var(--ease); }
.scene-card img { width: 100%; border-radius: 15px 15px 0 0; }
.scene-card .card-body { display: flex; flex-direction: column; gap: 12px; padding: 20px; width: 100%; }
.scene-card .card-body strong { font-size: 20px; line-height: 1.3; }
.scene-card .card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; }
.scene-card .card-bottom .od-icon { color: var(--yellow); }
.scene-world { position: relative; isolation: isolate; padding-bottom: 64px; }
.world-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: min(100%,900px); z-index: -1; pointer-events: none; background-size: cover; background-position: center; opacity: .14; filter: blur(16px); }
.scene-heading { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 32px; text-align: center; }
.scene-heading h1 { width: min(100%,560px); }
.scene-heading .title-art { width: 100%; max-height: 120px; object-fit: contain; }
.scene-heading p { color: var(--muted); max-width: 56ch; }
.detail-grid, .checkout-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(300px,1fr); gap: 48px; align-items: center; }
.result-photo { display: flex; flex-direction: column; gap: 12px; align-items: center; min-width: 0; }
.result-photo img { width: 100%; border: 1px solid #51585b; border-radius: var(--radius); background: var(--surface); }
.result-photo.portrait img { width: min(100%,360px); }
.result-photo figcaption { color: var(--muted); font-size: 12px; text-align: center; }
.choice-panel { display: flex; flex-direction: column; gap: 24px; }
.choice-panel h2 { font-size: 24px; }
.variant-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.variant-button { min-width: 64px; min-height: 56px; padding: 12px 20px; border: 1px solid #62686c; background: #30363a; color: var(--text); border-radius: 8px; font-size: 20px; font-weight: 700; }
.variant-button[aria-pressed=true] { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-ink); }
.choice-label { display: block; margin-bottom: 12px; font-weight: 700; }
.choice-hint { font-size: 14px; color: var(--muted); margin-top: 12px; }
.price-block { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-block strong { font-size: 32px; line-height: 1; white-space: nowrap; }
.price-block .od-field { font-size: 14px; }
.price-block .price-note { color: var(--muted); font-size: 12px; }
.order-note { font-size: 14px; color: var(--muted); }
.form-content { padding-bottom: 64px; }
.upload-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(300px,1fr); gap: 48px; align-items: start; }
.upload-area { min-width: 0; }
.file-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; width: 100%; min-height: 368px; padding: 32px; border: 1px dashed #62686c; border-radius: var(--radius); background: var(--surface); text-align: center; cursor: pointer; }
.file-zone.dragging { background: #29291b; border-color: var(--yellow); }
.file-zone:focus-within { outline: 3px solid var(--yellow); outline-offset: 4px; }
.upload-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--surface-raised); color: var(--yellow); }
.upload-icon .od-icon { --od-icon-size: 32px; }
.file-zone strong { font-size: 24px; line-height: 1.3; }
.file-zone p { color: var(--muted); font-size: 14px; }
.photo-preview { display: flex; flex-direction: column; align-items: center; gap: 16px; background: var(--surface); padding: 24px; border-radius: var(--radius); }
.photo-preview img { max-height: 480px; width: auto; max-width: 100%; object-fit: contain; border-radius: 8px; }
.photo-preview .photo-name { max-width: 100%; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; text-align: center; }
.upload-actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; }
.local-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 20px; color: var(--muted); font-size: 14px; }
.local-note .od-icon { margin-top: 2px; flex: none; }
.upload-aside { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.mini-scene { display: grid; grid-template-columns: 88px minmax(0,1fr); align-items: center; gap: 16px; }
.mini-scene img { border-radius: 8px; width: 88px; }
.mini-scene strong { line-height: 1.35; font-size: 16px; }
.mini-scene .muted { font-size: 12px; }
.upload-aside .price-block { margin-top: 24px; }
.upload-aside > p { margin-top: 24px; color: var(--muted); font-size: 14px; }
.error-message { color: var(--error); margin-top: 16px; }
.order-photos { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 24px; }
.order-photos figure { display: grid; gap: 12px; min-width: 0; }
.order-photos figure > img { width: 100%; border-radius: 12px; }
.order-photos figcaption { color: var(--muted); font-size: 14px; }
.order-photos .source-photo { max-height: 400px; object-fit: contain; background: var(--surface); }
.order-panel { display: grid; gap: 24px; }
.order-panel > h2 { font-size: 24px; }
.order-panel .scene-name { font-size: 24px; line-height: 1.3; }
.checkout-grid { align-items: start; }
.payment-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,1fr); gap: 64px; align-items: center; max-width: 960px; margin: 0 auto 64px; }
.qr-panel { display: grid; justify-items: center; gap: 20px; padding: 32px; background: var(--surface); border-radius: var(--radius); text-align: center; }
.qr-placeholder { display: block; width: min(100%,248px); height: auto; border-radius: 12px; }
.qr-panel strong { font-size: 16px; }
.payment-status { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--yellow); }
.status-dot { width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 50%; }
.payment-info { display: flex; flex-direction: column; gap: 24px; }
.payment-info h2 { font-size: 24px; }
.payment-info .actions { display: grid; gap: 8px; }
.payment-info .actions .btn.primary { padding-inline: 12px; }
.payment-note { color: var(--muted); font-size: 14px; }
.state-view { max-width: 640px; margin-inline: auto; text-align: center; padding: 32px 0 80px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.state-symbol { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; color: var(--yellow); background: var(--surface-raised); }
.state-symbol .od-icon { --od-icon-size: 32px; }
.state-symbol.error { color: var(--error); }
.state-view p { color: var(--muted); max-width: 46ch; }
.state-view .actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.processing-image { width: min(100%,380px); border-radius: 12px; opacity: .68; }
.processing-image.portrait { width: min(100%,180px); }
.waiting-track { display: block; width: 160px; height: 4px; border-radius: 4px; overflow: hidden; background: var(--line); }
.waiting-track::after { content: ''; display: block; width: 64px; height: 100%; border-radius: 4px; background: var(--yellow); animation: waiting 1600ms ease-in-out infinite alternate; }
@keyframes waiting { from { transform: translateX(0); } to { transform: translateX(96px); } }
.result-layout { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(280px,1fr); gap: 48px; align-items: center; padding-bottom: 64px; }
.result-layout .result-photo.portrait img { width: min(100%,400px); }
.result-layout .result-photo figcaption { font-size: 14px; line-height: 1.5; max-width: 52ch; }
.result-info { display: flex; flex-direction: column; gap: 24px; }
.result-info h2 { font-size: 28px; }
.result-info p { color: var(--muted); font-size: 14px; }
.result-info .actions { display: grid; gap: 12px; }
.result-status { display: flex; align-items: center; gap: 8px; color: var(--success); font-size: 14px; }
.result-status .od-icon { --od-icon-size: 18px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 16px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; padding-block: 32px; align-items: start; }
.footer-wordmark { display: grid; gap: 8px; }
.footer-wordmark strong { font-size: 18px; }
.footer-wordmark p { font-size: 12px; color: var(--muted); }
.footer-links { display: flex; gap: 8px 24px; flex-wrap: wrap; justify-content: flex-end; max-width: 650px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 12px; text-decoration: none; }
.legal-dialog { color: var(--text); background: var(--surface); width: min(560px,calc(100% - 32px)); max-height: calc(100dvh - 64px); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.legal-dialog::backdrop { background: rgb(0 0 0 / .8); }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 24px; }
.dialog-heading h2 { font-size: 28px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); color: var(--text); }
.legal-dialog p { color: var(--muted); }
.legal-dialog .btn { margin-top: 24px; }
@media (hover: hover) {
  .btn.primary:hover:not(:disabled) { color: var(--yellow-ink); background: var(--yellow-hover); }
  .btn.secondary:hover:not(:disabled), .icon-button:hover { color: var(--text); background: #333a3f; border-color: #889195; }
  .btn.text:hover, .back:hover, .header-help:hover, .footer-links a:hover { color: var(--yellow); }
  .category-card:hover, .scene-card:hover { border-color: var(--yellow); }
  .variant-button:hover:not([aria-pressed=true]), .category-tab:hover:not([aria-pressed=true]) { color: var(--text); border-color: var(--text); }
}
@media (min-width: 1440px) { .hero { padding-block: 80px; } }
@media (max-width: 1023px) {
  .container { width: calc(100% - 64px); }
  .hero { gap: 32px; }
  .hero h1 { font-size: clamp(36px,5vw,56px); }
  .hero-copy > p { font-size: 16px; }
  .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
  .how-grid { grid-template-columns: 1fr; gap: 32px; }
  .detail-grid, .checkout-grid, .upload-grid, .result-layout { gap: 32px; grid-template-columns: minmax(0,1.25fr) minmax(260px,1fr); }
  .progress-steps { gap: 16px; }
  .payment-layout { gap: 32px; }
  .scenes-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 767px) {
  .container { width: calc(100% - 32px); }
  .header-inner { min-height: 72px; gap: 8px; }
  .brand { font-size: 21px; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-mark .od-icon { --od-icon-size: 20px; }
  .header-help { display: none; }
  .header-right { gap: 8px; }
  .demo-tag { font-size: 11px; padding: 6px 8px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 32px; }
  .hero-copy { gap: 20px; }
  .hero h1 { font-size: clamp(40px,10.4vw,64px); }
  .hero-copy > p { max-width: 44ch; }
  .hero .btn { width: 100%; }
  .hero-caption { padding: 16px; }
  .hero-caption strong { font-size: 14px; }
  .hero-caption .small { font-size: 11px; }
  .section-heading { display: block; margin-bottom: 20px; }
  .section-heading p { margin-top: 8px; }
  .catalog-section { padding-block: 32px 40px; }
  .category-grid { gap: 12px; }
  .category-card { border-radius: 12px; }
  .category-card img { border-radius: 11px 11px 0 0; }
  .category-card .card-caption { padding: 12px; gap: 8px; }
  .category-card strong { font-size: 14px; }
  .category-card .od-icon { --od-icon-size: 16px; }
  .category-card .count { font-size: 11px; }
  .how-section { padding-block: 32px 40px; }
  .how-steps { grid-template-columns: 1fr; gap: 24px; }
  .how-steps li { display: grid; grid-template-columns: 24px 1fr; gap: 4px 16px; }
  .how-steps li::before { grid-row: span 2; margin: 2px 0 0; }
  .how-steps li p { grid-column: 2; }
  .flow-top { padding-top: 16px; }
  .flow-nav { flex-direction: column; align-items: stretch; gap: 16px; margin-bottom: 24px; }
  .flow-nav > .back { align-self: flex-start; }
  .progress-steps { justify-content: space-between; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .progress-steps li { flex-direction: column; gap: 4px; font-size: 11px; }
  .screen-heading { margin-bottom: 24px; }
  .screen-heading p { margin-top: 12px; }
  .category-tabs { gap: 8px; margin-bottom: 24px; }
  .category-tab { padding: 12px; font-size: 12px; }
  .scenes-grid { grid-template-columns: 1fr; gap: 24px; }
  .catalog-view, .scene-world, .form-content { padding-bottom: 40px; }
  .detail-grid, .checkout-grid, .upload-grid, .result-layout, .payment-layout { grid-template-columns: 1fr; gap: 32px; }
  .scene-heading { gap: 16px; margin-bottom: 24px; }
  .scene-heading h1 { width: min(100%,400px); }
  .scene-heading .title-art { max-height: 96px; }
  .scene-heading p { font-size: 16px; }
  .result-photo.portrait img { width: min(100%,272px); }
  .choice-panel { gap: 24px; }
  .choice-panel > .btn { width: 100%; }
  .price-block { padding-block: 20px; }
  .price-block strong { font-size: 28px; }
  .file-zone { min-height: 304px; padding: 24px 16px; }
  .file-zone strong { font-size: 22px; }
  .upload-actions { flex-direction: column; }
  .photo-preview { padding: 16px; }
  .photo-preview img { max-height: 420px; }
  .upload-aside { padding: 20px; }
  .order-photos { gap: 16px; }
  .order-photos figcaption { font-size: 12px; }
  .payment-layout { margin-bottom: 40px; }
  .qr-panel { padding: 24px; }
  .qr-placeholder { width: min(100%,216px); }
  .payment-info { gap: 20px; }
  .payment-info .actions .btn.primary { font-size: 16px; }
  .state-view { padding-block: 8px 48px; gap: 24px; }
  .state-view h1 { font-size: 32px; }
  .state-view .actions { width: 100%; flex-direction: column; }
  .state-view .btn { width: 100%; }
  .result-layout { padding-bottom: 40px; }
  .result-layout .result-photo.portrait img { width: min(100%,300px); }
  .result-info { gap: 20px; }
  .footer-inner { padding-block: 24px; gap: 16px; }
  .footer-links { display: grid; grid-template-columns: 1fr; gap: 0; }
  .footer-links a { font-size: 14px; }
  .legal-dialog { padding: 24px; }
  .dialog-heading h2 { font-size: 24px; }
}
@media (max-width: 374px) {
  .hero h1 { font-size: 36px; }
  .hero-caption { gap: 8px; }
  .hero-caption .small { max-width: 14ch; }
  .category-grid { grid-template-columns: 1fr; }
  .demo-tag { letter-spacing: 0; }
  .brand { font-size: 19px; }
  .category-tab { padding: 12px 8px; }
  .payment-info .actions .btn.primary { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .waiting-track::after { width: 100%; opacity: .65; }
}

.demo-tag.real-mode { color: #a7e8bf; border-color: #3e8055; }
.disable-real { color: var(--muted); background: transparent; border: 0; padding: 8px; font-size: 12px; cursor: pointer; }
.header-right { flex-wrap: wrap; }
.brand { flex-shrink: 0; white-space: nowrap; }
.header-right { min-width: 0; justify-content: flex-end; gap: 8px 20px; }

/* Quiet mode indicator; it is not an action control. */
.demo-tag { width: 8px; height: 8px; min-width: 8px; padding: 0; border: 0; border-radius: 50%; background: #747b7d; }
.demo-tag::before { content: none; }
.demo-tag.real-mode { color: inherit; border: 0; background: #63b887; }
