:root {
  color-scheme: dark;
  --ink: #f4eddd;
  --muted: #a8aeb9;
  --blue: #41c5ff;
  --blue-deep: #096bc2;
  --red: #ff4d2e;
  --ember: #ff9b45;
  --copper: #c98648;
  --night: #05080d;
  --panel: #0a111a;
  --panel-2: #0e1824;
  --line: rgba(158, 190, 221, .17);
  --line-hot: rgba(255, 94, 52, .38);
  --shadow-blue: 0 0 60px rgba(29, 153, 255, .13);
  --shadow-red: 0 0 60px rgba(255, 68, 30, .13);
  --companion-preview-background: #09131d;
  --companion-preview-border: rgba(80, 194, 255, .6);
  --companion-preview-color: #f4eddd;
  --companion-preview-muted: #a8aeb9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body { margin: 0; color: var(--ink); background: var(--night); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
a { color: inherit; }

.site-header {
  position: fixed;
  z-index: 40;
  inset: 0 0 auto;
  height: 66px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 3vw;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 13, .88);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 750; font-size: .85rem; letter-spacing: .04em; }
.brand__mark { display: grid; place-items: center; width: 34px; aspect-ratio: 1; border: 1px solid var(--line-hot); color: var(--ember); font: 800 .62rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; transform: rotate(-3deg); }
.site-header nav { display: flex; gap: 1.8rem; }
.site-header nav a, .hub-link { color: var(--muted); text-decoration: none; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.site-header nav a:hover, .hub-link:hover { color: var(--ink); }
.hub-link { justify-self: end; }

.hero { position: relative; min-height: 850px; display: grid; grid-template-columns: 1fr .4fr; align-items: end; overflow: hidden; padding: 9rem 5vw 5rem; border-bottom: 1px solid var(--line); }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.9) contrast(1.04) brightness(.72); }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,6,10,.98) 0%, rgba(3,6,10,.92) 29%, rgba(3,6,10,.45) 62%, rgba(3,6,10,.15) 100%), linear-gradient(0deg, #05080d 0%, transparent 38%); }
.hero__content { position: relative; z-index: 2; max-width: 830px; }
.eyebrow { margin: 0 0 1rem; color: var(--blue); font: 700 .67rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 780px; font: 600 clamp(4.3rem, 8.4vw, 9rem)/.83 Georgia, "Times New Roman", serif; letter-spacing: -.07em; text-wrap: balance; }
.hero h1 em { color: var(--red); font-weight: 500; }
.hero__lede { max-width: 650px; margin: 2.2rem 0; color: #c8cbd0; font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.7; }
.hero__actions { display: flex; align-items: center; gap: .8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .85rem 1.2rem; border: 1px solid transparent; cursor: pointer; text-decoration: none; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.button--hot { color: #fff; border-color: var(--red); background: linear-gradient(135deg, #ff3c23, #a91c11); box-shadow: 0 12px 35px rgba(255, 60, 35, .2); }
.button--hot:hover { background: linear-gradient(135deg, #ff5e3f, #c52718); }
.button--ghost { color: var(--ink); border-color: var(--line); background: rgba(6, 12, 19, .72); }
.button--ghost:hover { border-color: rgba(65,197,255,.5); color: var(--blue); }
.hero__boundary { display: flex; gap: .9rem; max-width: 680px; margin: 2.2rem 0 0; padding-top: 1.3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .77rem; line-height: 1.55; }
.hero__boundary span { flex: 0 0 auto; color: var(--ember); font: 800 .64rem/1.6 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.hero__commander { position: relative; z-index: 2; justify-self: end; align-self: end; }
.hero__commander button { width: min(320px, 28vw); padding: 1.5rem; text-align: left; color: var(--ink); border: 1px solid rgba(65,197,255,.28); background: linear-gradient(145deg, rgba(6,17,28,.9), rgba(20,10,9,.88)); box-shadow: var(--shadow-blue); cursor: pointer; transform: rotate(1.2deg); }
.hero__commander button:hover { border-color: var(--blue); transform: rotate(0deg) translateY(-3px); }
.hero__commander span, .hero__commander small { display: block; }
.hero__commander span { color: var(--blue); font: 700 .62rem/1 ui-monospace, monospace; letter-spacing: .17em; text-transform: uppercase; }
.hero__commander strong { display: block; margin: 1rem 0 2.6rem; font: 600 clamp(1.7rem, 3vw, 3.4rem)/.95 Georgia, serif; letter-spacing: -.05em; }
.hero__commander small { color: var(--muted); line-height: 1.45; }

.metrics { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); background: #070c12; }
.metrics div { min-height: 140px; display: flex; flex-direction: column; justify-content: center; padding: 2rem 3vw; border-right: 1px solid var(--line); }
.metrics div:last-child { border-right: 0; }
.metrics strong { color: var(--ink); font: 500 clamp(2.3rem, 4vw, 4.5rem)/.85 Georgia, serif; }
.metrics span { margin-top: .7rem; color: var(--muted); font: 700 .64rem/1 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }

.section { position: relative; padding: 7rem 5vw; border-bottom: 1px solid var(--line); overflow: hidden; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .65fr); gap: 7vw; align-items: end; margin-bottom: 3.5rem; }
.section-head h2 { max-width: 850px; margin: 0; font: 550 clamp(3rem, 6.7vw, 7.4rem)/.87 Georgia, serif; letter-spacing: -.065em; text-wrap: balance; }
.section-head > p { margin: 0; color: var(--muted); line-height: 1.7; }

.stack-section { background: radial-gradient(circle at 82% 30%, rgba(12,113,201,.15), transparent 33%), #070b11; }
.stack-console { display: grid; grid-template-columns: .9fr 1.1fr; border: 1px solid var(--line); background: rgba(7, 14, 22, .9); box-shadow: var(--shadow-blue); }
.stack-controls { display: grid; align-content: center; gap: 1.1rem; padding: clamp(2rem, 4vw, 4.5rem); border-right: 1px solid var(--line); }
.stack-controls label { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; color: var(--muted); font-size: .82rem; }
.stack-controls output { color: var(--ink); font: 600 2rem/1 Georgia, serif; }
input[type="range"] { width: 100%; accent-color: var(--blue); margin: 0 0 1.2rem; }
.stack-output { position: relative; min-height: 430px; display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 5.5rem); overflow: hidden; }
.stack-output::before { content: ""; position: absolute; width: 360px; aspect-ratio: 1; right: -90px; top: -90px; border: 1px solid rgba(65,197,255,.18); border-radius: 50%; box-shadow: inset 0 0 70px rgba(65,197,255,.07), 0 0 70px rgba(65,197,255,.08); }
.formula { position: relative; margin: 0 0 2rem; color: var(--muted); font: 650 .8rem/1.5 ui-monospace, monospace; }
.formula strong { color: var(--blue); }
.result-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.result-grid div { display: flex; flex-direction: column; padding: 1.6rem; background: #09121c; }
.result-grid span { color: var(--ink); font: 500 clamp(4rem, 8vw, 8rem)/.8 Georgia, serif; letter-spacing: -.07em; }
.result-grid div:last-child span { color: var(--red); }
.result-grid small { margin-top: 1rem; color: var(--muted); font: 700 .62rem/1 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
#stack-explanation { position: relative; color: var(--muted); line-height: 1.6; }
.stack-trace { position: relative; display: flex; gap: .7rem; align-items: center; margin-top: 1.5rem; }
.stack-trace i { padding: .55rem .7rem; color: var(--blue); border: 1px solid rgba(65,197,255,.25); font: 700 .58rem/1 ui-monospace, monospace; letter-spacing: .14em; font-style: normal; }
.stack-trace i:last-child { color: var(--ember); border-color: rgba(255,77,46,.3); }
.stack-trace b { color: var(--muted); font-weight: 400; }
.auton-callout { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; margin-top: 1.2rem; padding: 2rem; border: 1px solid var(--line-hot); background: linear-gradient(90deg, rgba(255,77,46,.09), rgba(9,18,28,.55)); box-shadow: var(--shadow-red); }
.auton-callout__index { color: var(--red); font: 500 3rem/1 Georgia, serif; }
.auton-callout h3 { margin: 0 0 .7rem; font: 550 clamp(1.4rem, 2.5vw, 2.5rem)/1 Georgia, serif; }
.auton-callout p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.55; }
.auton-callout strong { color: var(--ink); }
.card-link { align-self: center; padding: .8rem 0; color: var(--blue); border: 0; border-bottom: 1px solid rgba(65,197,255,.35); background: transparent; cursor: pointer; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }

.ignition { background: linear-gradient(180deg, #0b0a0d, #07090e); }
.ignition-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.ignition-grid article { min-height: 350px; display: flex; flex-direction: column; padding: 2rem; background: linear-gradient(145deg, #0f1822, #0b0b10); }
.ignition-grid article:nth-child(even) { background: linear-gradient(145deg, #15100f, #0b0b10); }
.ignition-grid span { color: var(--blue); font: 700 .59rem/1 ui-monospace, monospace; letter-spacing: .13em; text-transform: uppercase; }
.ignition-grid article:nth-child(even) span { color: var(--ember); }
.ignition-grid h3 { margin: auto 0 1rem; font: 550 clamp(1.7rem, 2.7vw, 3rem)/.95 Georgia, serif; letter-spacing: -.03em; }
.ignition-grid p { min-height: 6.6em; margin: 0; color: var(--muted); line-height: 1.55; }
.ignition-grid button { align-self: start; margin-top: 1.5rem; padding: .6rem 0; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.intuition-line { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: 1.2rem; padding: 1.5rem; border: 1px solid var(--line); background: #080d14; }
.intuition-line > span { margin-right: .3rem; color: var(--muted); font: 700 .61rem/1 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.intuition-line button { padding: .55rem .75rem; color: var(--ink); border: 1px solid rgba(65,197,255,.22); background: rgba(65,197,255,.06); cursor: pointer; }
.intuition-line p { flex-basis: 100%; margin: .5rem 0 0; color: var(--muted); font-size: .82rem; }

.copy-combat { background: radial-gradient(circle at 20% 60%, rgba(255,77,46,.13), transparent 32%), #07090e; }
.copy-grid { display: grid; grid-template-columns: 1.2fr 1fr .9fr; gap: 1.2rem; }
.copy-card { position: relative; min-height: 390px; display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; border: 1px solid var(--line); overflow: hidden; background: #0b121a; }
.copy-card::before { content: ""; position: absolute; inset: 0; opacity: .5; background: repeating-radial-gradient(circle at 80% 18%, transparent 0 17px, rgba(65,197,255,.12) 18px 19px); }
.copy-card--helm::before { background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(255,77,46,.10) 19px 20px); }
.copy-card--saka::before { background: linear-gradient(145deg, transparent, rgba(143,94,255,.13)); }
.copy-card > * { position: relative; }
.copy-card small { color: var(--blue); font: 700 .61rem/1 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .13em; }
.copy-card h3 { margin: .8rem 0 1rem; font: 550 clamp(2rem, 4vw, 4rem)/.9 Georgia, serif; letter-spacing: -.05em; }
.copy-card p { margin: 0; color: var(--muted); line-height: 1.6; }

.deployment { background: #080d13; }
.deployment-grid { display: grid; grid-template-columns: .55fr 1fr; border: 1px solid var(--line); }
.deployment-rail { display: grid; border-right: 1px solid var(--line); }
.deploy-tab { padding: 1.2rem 1.4rem; text-align: left; color: var(--muted); border: 0; border-bottom: 1px solid var(--line); background: #080d13; cursor: pointer; }
.deploy-tab:last-child { border-bottom: 0; }
.deploy-tab:hover { color: var(--ink); }
.deploy-tab.active { color: #071018; background: var(--blue); }
.deployment-stage { min-height: 420px; display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 6vw, 6rem); background: radial-gradient(circle at 90% 20%, rgba(255,77,46,.13), transparent 34%); }
.deployment-stage h3 { margin: .5rem 0 1.5rem; font: 550 clamp(3rem, 6vw, 6.4rem)/.85 Georgia, serif; letter-spacing: -.06em; }
.deployment-stage > p:not(.eyebrow) { max-width: 700px; color: var(--muted); font-size: 1.03rem; line-height: 1.7; }
.deployment-stage .card-link { align-self: flex-start; margin-top: 1.5rem; }

.protocol { background: linear-gradient(180deg, #0a0e14, #0d0808); }
.protocol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0; padding: 1px; list-style: none; background: var(--line); }
.protocol-grid li { min-height: 290px; padding: 1.8rem; background: #090f16; }
.protocol-grid li:nth-child(even) { background: #100d0e; }
.protocol-grid span { color: var(--red); font: 600 2rem/1 Georgia, serif; }
.protocol-grid h3 { margin: 4.5rem 0 .7rem; font: 550 2rem/1 Georgia, serif; }
.protocol-grid p { color: var(--muted); line-height: 1.58; }
.protocol blockquote { margin: 1.2rem 0 0; padding: clamp(2rem, 4vw, 4rem); border: 1px solid var(--line-hot); border-left: 5px solid var(--red); background: rgba(255,77,46,.06); font: 500 clamp(1.2rem, 2.3vw, 2rem)/1.5 Georgia, serif; }
.protocol blockquote span { display: block; margin-bottom: 1rem; color: var(--ember); font: 700 .61rem/1 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .14em; }

.hand-lab { background: radial-gradient(circle at 80% 45%, rgba(65,197,255,.10), transparent 35%), #070b10; }
.hand-console { padding: 1.2rem; border: 1px solid var(--line); background: #090f16; }
.hand-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 1.2rem; }
.hand-toolbar p { color: var(--muted); }
.hand-toolbar p.keep { color: #8ee6b0; }
.hand-toolbar p.mulligan { color: #ff927c; }
.hand-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .65rem; min-height: 260px; }
.hand-card { display: flex; flex-direction: column; min-width: 0; padding: .7rem; color: var(--ink); text-align: left; border: 1px solid var(--line); background: #0c151f; cursor: pointer; }
.hand-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.hand-card img { width: 100%; aspect-ratio: .716; object-fit: cover; border-radius: 5px; background: #05080d; }
.hand-card strong { margin-top: .65rem; font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hand-card small { margin-top: .3rem; color: var(--muted); font-size: .65rem; }

.catalog { background: #080b10; }
.catalog-tools { display: grid; grid-template-columns: 1fr 260px; gap: 1rem; }
.catalog-tools input, .catalog-tools select { min-height: 48px; padding: .8rem 1rem; color: var(--ink); border: 1px solid var(--line); background: #0a1119; }
.catalog-count { margin: 1.2rem 0; color: var(--muted); font: 700 .62rem/1 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.card-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.deck-card { min-width: 0; padding: 0; color: var(--ink); text-align: left; border: 1px solid var(--line); background: #0b1219; cursor: pointer; overflow: hidden; }
.deck-card[hidden] { display: none; }
.deck-card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.deck-card img { width: 100%; aspect-ratio: 1.26; object-fit: cover; background: #05080d; }
.deck-card > span { display: block; padding: .8rem; }
.deck-card strong, .deck-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deck-card strong { font-size: .82rem; }
.deck-card small { margin-top: .4rem; color: var(--muted); font-size: .67rem; }

.decklist { background: #07090d; }
.decklist .section-head { align-items: center; }
.decklist .section-head .button { justify-self: end; }
.deck-columns { columns: 4; column-gap: 2.5rem; padding: 2rem; border: 1px solid var(--line); background: #090e14; }
.deck-role { break-inside: avoid; margin: 0 0 1.8rem; }
.deck-role h3 { margin: 0 0 .7rem; padding-bottom: .55rem; color: var(--blue); border-bottom: 1px solid var(--line); font: 700 .62rem/1 ui-monospace, monospace; letter-spacing: .13em; text-transform: uppercase; }
.deck-role button { display: block; width: 100%; padding: .28rem 0; color: var(--muted); text-align: left; border: 0; background: transparent; cursor: pointer; font-size: .77rem; }
.deck-role button:hover { color: var(--ink); }

.card-dialog { width: min(920px, calc(100vw - 2rem)); padding: 0; color: var(--ink); border: 1px solid rgba(65,197,255,.35); background: #09111a; box-shadow: 0 30px 100px rgba(0,0,0,.65); }
.card-dialog::backdrop { background: rgba(1,3,6,.82); backdrop-filter: blur(7px); }
.dialog-close { position: absolute; z-index: 2; right: .8rem; top: .8rem; width: 38px; aspect-ratio: 1; color: var(--ink); border: 1px solid var(--line); background: rgba(5,8,13,.8); cursor: pointer; font-size: 1.5rem; }
.dialog-layout { display: grid; grid-template-columns: 330px 1fr; }
.dialog-layout > img { width: 100%; height: 100%; min-height: 470px; object-fit: cover; background: #05080d; }
.dialog-layout > div { display: flex; flex-direction: column; justify-content: center; padding: 3rem; }
.dialog-layout h2 { margin: 0 0 1rem; font: 550 clamp(2.5rem, 5vw, 5rem)/.88 Georgia, serif; letter-spacing: -.055em; }
#dialog-type { color: var(--blue); font-size: .8rem; }
#dialog-oracle { white-space: pre-line; color: var(--muted); line-height: 1.7; }
#dialog-link { align-self: flex-start; margin-top: 1rem; color: var(--ember); text-decoration: none; border-bottom: 1px solid var(--line-hot); }

footer { min-height: 150px; display: grid; grid-template-columns: 1fr auto auto; gap: 2rem; align-items: center; padding: 2rem 5vw; color: var(--muted); background: #04070b; font-size: .75rem; }
footer strong, footer span { display: block; }
footer strong { color: var(--ink); margin-bottom: .4rem; }
footer a { color: var(--ink); }
footer small { font-family: ui-monospace, monospace; }

@media (max-width: 1120px) {
  .site-header nav a:nth-child(2), .site-header nav a:nth-child(3) { display: none; }
  .hero { grid-template-columns: 1fr .32fr; }
  .hero h1 { font-size: clamp(4.2rem, 9.5vw, 8rem); }
  .ignition-grid { grid-template-columns: repeat(2, 1fr); }
  .protocol-grid { grid-template-columns: repeat(2, 1fr); }
  .hand-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .deck-columns { columns: 3; }
}

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; padding: 0 1rem; }
  .site-header nav { display: none; }
  .brand > span:last-child { display: none; }
  .hero { min-height: 780px; grid-template-columns: 1fr; padding: 7.5rem 1.2rem 3rem; }
  .hero__art { object-position: 66% center; }
  .hero__veil { background: linear-gradient(90deg, rgba(3,6,10,.96), rgba(3,6,10,.55)), linear-gradient(0deg, #05080d 0%, transparent 55%); }
  .hero h1 { font-size: clamp(3.6rem, 18vw, 6.5rem); }
  .hero__commander { display: none; }
  .hero__actions { align-items: stretch; flex-direction: column; max-width: 310px; }
  .hero__boundary { flex-direction: column; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics div { min-height: 110px; }
  .metrics div:last-child { grid-column: 1 / -1; }
  .section { padding: 5rem 1.2rem; }
  .section-head { grid-template-columns: 1fr; gap: 1.4rem; margin-bottom: 2.5rem; }
  .section-head h2 { font-size: clamp(3.2rem, 15vw, 5.4rem); }
  .stack-console { grid-template-columns: 1fr; }
  .stack-controls { border-right: 0; border-bottom: 1px solid var(--line); padding: 1.5rem; }
  .stack-output { min-height: 370px; padding: 1.5rem; }
  .result-grid span { font-size: 4rem; }
  .auton-callout { grid-template-columns: auto 1fr; gap: 1rem; }
  .auton-callout .card-link { grid-column: 1 / -1; justify-self: start; }
  .ignition-grid, .copy-grid, .protocol-grid { grid-template-columns: 1fr; }
  .ignition-grid article { min-height: 300px; }
  .copy-card { min-height: 320px; }
  .deployment-grid { grid-template-columns: 1fr; }
  .deployment-rail { border-right: 0; border-bottom: 1px solid var(--line); }
  .deployment-stage { min-height: 370px; padding: 2rem 1.5rem; }
  .hand-toolbar { align-items: stretch; flex-direction: column; }
  .hand-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-tools { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .decklist .section-head .button { justify-self: stretch; }
  .deck-columns { columns: 1; padding: 1.2rem; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-layout > img { width: min(280px, 100%); min-height: 0; margin: 1.2rem auto 0; border-radius: 10px; }
  .dialog-layout > div { padding: 2rem 1.3rem; }
  footer { grid-template-columns: 1fr; gap: 1rem; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
