:root {
  --ink: #d8d3c8; --ink2: #9d988e; --ink3: #6f6b62; --hi: #f1ede4;
  --line: rgba(216, 211, 200, .14); --line2: rgba(216, 211, 200, .34);
  --red: #c8372b; --panel: rgba(8, 8, 8, .74);
  --serif: "Shippori Mincho B1", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "BIZ UDPGothic", "Yu Gothic", "YuGothic", "Hiragino Sans", "Meiryo", sans-serif;
  --mono: "Share Tech Mono", ui-monospace, "Consolas", "BIZ UDGothic", monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { overflow: hidden; background: #000; color: var(--ink); font: 15px/1.85 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--hi); outline-offset: 3px; }
[hidden] { display: none !important; }
.k { display: inline-block; min-width: 1.9em; padding: 0 5px; border: 1px solid var(--line2); border-radius: 2px; font-family: var(--mono); font-size: 11px; line-height: 17px; text-align: center; color: var(--ink2); }

.bg { position: fixed; inset: 0; overflow: hidden; background: #000; transition: filter .9s ease, transform .9s ease; }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.scene.on { opacity: 1; }
.scene img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.74) contrast(1.08) saturate(.7); transform: scale(1.05); }
.scene.on img { animation: drift 16s ease-out both; }
.scene.cam img { filter: brightness(.66) contrast(1.15) saturate(.5); transform: scale(1.03); }
.scene.cam.on img { animation: jitter 7s steps(1) infinite; }
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.14) translate(var(--dx, -1.6%), var(--dy, -1%)); } }
@keyframes jitter { 0%, 100% { transform: scale(1.03); } 61% { transform: scale(1.03) translate(2px, -1px); } 62% { transform: scale(1.03) translate(-1px, 1px); } 63% { transform: scale(1.03); } }
.scanlines, .flicker, .static, .grain, .vignette { position: absolute; inset: 0; pointer-events: none; }
.scanlines { opacity: 0; transition: opacity 1.2s; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .3) 0 1px, transparent 1px 3px); }
body.cam .scanlines { opacity: 1; }
.flicker { background: #000; opacity: 0; animation: flicker 9s steps(1) infinite; }
@keyframes flicker { 0%, 100% { opacity: 0; } 41% { opacity: .18; } 42% { opacity: 0; } 43.5% { opacity: .32; } 44% { opacity: 0; } 87% { opacity: .12; } 87.6% { opacity: 0; } }
.grain { inset: -50%; opacity: .1; background-image: var(--noise); background-size: 180px; mix-blend-mode: screen; animation: grain 1s steps(1) infinite; }
.static { opacity: 0; background-image: var(--noise); background-size: 260px; animation: grain .25s steps(1) infinite; transition: opacity .12s; }
body.zap .static { opacity: .5; }
@keyframes grain { 0% { transform: translate(0, 0); } 12% { transform: translate(-7%, 4%); } 25% { transform: translate(5%, -6%); } 37% { transform: translate(-3%, -9%); } 50% { transform: translate(8%, 3%); } 62% { transform: translate(-6%, 7%); } 75% { transform: translate(3%, 9%); } 87% { transform: translate(-9%, -2%); } }
.vignette { background:
  radial-gradient(ellipse at 55% 45%, transparent 30%, rgba(0, 0, 0, .5) 72%, rgba(0, 0, 0, .9) 100%),
  linear-gradient(90deg, rgba(0, 0, 0, .82) 0, rgba(0, 0, 0, .45) 38%, transparent 66%); }
body.in-screen .bg { filter: blur(7px) brightness(.42); transform: scale(1.04); }
body.glitch .bg { transform: translateX(7px); filter: saturate(0) contrast(1.6) brightness(.8); }
body.glitch .bg::after { content: ""; position: absolute; inset: 0; background: rgba(160, 20, 12, .35); mix-blend-mode: multiply; }

.title { position: fixed; inset: 0; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); grid-template-rows: minmax(0, 1fr) auto; gap: 24px 48px;
  padding: clamp(28px, 8vh, 96px) clamp(20px, 6vw, 104px) 22px; transition: opacity .5s ease, visibility 0s; }
body.in-screen .title { opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s; }
.title-main { align-self: center; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.logo { margin: 0; }
.logo img { width: min(520px, 100%); height: auto; filter: drop-shadow(0 0 22px rgba(0, 0, 0, .9)); }
.tagline { margin: 0 0 18px; font-family: var(--serif); font-size: 15px; letter-spacing: .22em; color: var(--ink2); }
.press { margin: 0; min-height: 40px; font-family: var(--serif); font-size: 16px; letter-spacing: .42em; color: var(--hi); animation: breathe 2.2s ease-in-out infinite; }
body.pressed .press { animation: blink .1s steps(1) infinite; }
@keyframes breathe { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }
body:not(.pressing) .title-main .press { display: none; }
body.pressing .menu, body.pressing .title-aside, body.pressing .title-foot .keys { opacity: 0; visibility: hidden; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; width: min(330px, 100%); }
.menu a, .menu button { display: flex; align-items: center; width: 100%; min-height: 42px; padding: 2px 16px; border: 1px solid transparent; background: none; cursor: pointer;
  font-family: var(--serif); font-size: 19px; letter-spacing: .14em; color: var(--ink2); text-align: left; text-decoration: none; text-shadow: 0 0 12px #000; transition: color .15s, border-color .15s, background-color .15s; }
.menu .sel { color: var(--hi); border-color: rgba(241, 237, 228, .72); background: rgba(255, 255, 255, .055); }
.menu .sep { margin-top: 12px; }
.menu .sep a { font-family: var(--mono); font-size: 14px; letter-spacing: .2em; }
.menu :focus-visible { outline: 0; }
body.reveal .menu li { animation: rise .5s ease both; }
body.reveal .menu li:nth-child(2) { animation-delay: .05s; } body.reveal .menu li:nth-child(3) { animation-delay: .1s; } body.reveal .menu li:nth-child(4) { animation-delay: .15s; }
body.reveal .menu li:nth-child(5) { animation-delay: .2s; } body.reveal .menu li:nth-child(6) { animation-delay: .25s; } body.reveal .menu li:nth-child(7) { animation-delay: .3s; } body.reveal .menu li:nth-child(8) { animation-delay: .35s; }
body.reveal .title-aside { animation: rise .8s .3s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.title-aside { align-self: end; display: flex; flex-direction: column; gap: 14px; min-width: 0; transition: opacity .4s; }
.feature { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line2); background: var(--panel); text-decoration: none; transition: border-color .2s, background-color .2s; }
.feature:hover { border-color: rgba(241, 237, 228, .72); background: rgba(16, 16, 16, .82); }
.feature-k { font-family: var(--mono); font-size: 12px; letter-spacing: .28em; color: var(--red); }
.feature-t { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: .08em; color: var(--hi); line-height: 1.3; }
.feature-s { font-size: 13px; line-height: 1.7; color: var(--ink2); }
.ticker { padding: 12px 18px 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .55); }
.ticker-h { margin: 0 0 4px; font-family: var(--mono); font-size: 12px; letter-spacing: .28em; color: var(--ink3); }
.ticker .news a { padding: 5px 0; font-size: 13px; }
.ticker .news .date { min-width: 0; }
.title-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-family: var(--mono); font-size: 12px; color: var(--ink3); }
.scene-cap { display: inline-flex; align-items: center; gap: 8px; color: var(--ink2); text-decoration: none; letter-spacing: .06em; }
.scene-cap i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: rec 1.4s steps(1) infinite; }
.scene-cap:hover { color: var(--hi); }
@keyframes rec { 50% { opacity: .2; } }
.title-foot .keys { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.title-foot .keys .k + * { margin-right: 8px; }

.hud { position: fixed; top: 14px; right: 16px; z-index: 30; display: flex; gap: 8px; }
.hud .lang, .hud .snd { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; min-width: 32px; padding: 0 10px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .45);
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--ink2); text-decoration: none; cursor: pointer; }
.hud .lang:hover, .hud .snd:hover { color: var(--hi); border-color: var(--hi); }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.bars i { width: 2px; background: currentColor; animation: bar 1s ease-in-out infinite; }
.bars i:nth-child(1) { height: 40%; } .bars i:nth-child(2) { height: 100%; animation-delay: -.3s; } .bars i:nth-child(3) { height: 65%; animation-delay: -.6s; } .bars i:nth-child(4) { height: 85%; animation-delay: -.15s; }
@keyframes bar { 50% { transform: scaleY(.35); } }
.bars i { transform-origin: bottom; }
.snd[aria-pressed="false"] .bars i { animation: none; transform: scaleY(.15); }
body.intro-on .hud { visibility: hidden; }

.screen { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .7)); }
.screen.enter { animation: screen-in .45s ease both; }
@keyframes screen-in { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: none; } }
.screen-h { display: flex; align-items: flex-end; gap: 22px; padding: 22px clamp(16px, 5vw, 64px) 16px; padding-right: 150px; border-bottom: 1px solid var(--line); }
.back { display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 38px; padding: 0 16px 0 10px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .4); cursor: pointer; font-family: var(--serif); letter-spacing: .12em; color: var(--ink); }
.back:hover { border-color: var(--hi); color: var(--hi); }
.screen-name { min-width: 0; }
.screen-k { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .32em; color: var(--red); }
.screen-t { margin: 0; font-family: var(--serif); font-size: clamp(24px, 3.6vw, 40px); font-weight: 600; line-height: 1.25; letter-spacing: .08em; color: #eee9df; overflow-wrap: anywhere; }
.screen-b { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; outline: 0; scrollbar-color: rgba(216, 211, 200, .3) transparent; }
.screen-f { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding: 8px clamp(16px, 5vw, 64px); border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--ink3); }
.screen-f .keys { display: inline-flex; align-items: center; gap: 6px; }
.screen-f .keys .k + * { margin-right: 8px; }

.page { container-type: inline-size; max-width: 1180px; margin: 0 auto; padding: 30px clamp(16px, 5vw, 64px) 72px; display: flex; flex-direction: column; gap: 28px; }
.page :is(h1, h2, h3, .display, .h1, .h2, .h3) { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.3; letter-spacing: .04em; color: #ece7dd; }
.page p, .page ul, .page ol, .page figure { margin: 0; }
.page .display { font-size: clamp(32px, 6cqi, 56px); letter-spacing: .06em; line-height: 1.15; }
.page .h1 { font-size: clamp(24px, 3.6cqi, 34px); }
.page .h2 { font-size: 21px; }
.page .h3 { font-size: 16px; }
.page .en { font-family: var(--serif); }
.page .lead { font-size: 17px; line-height: 1.8; color: var(--ink); }
.page .kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink3); }
.page .small { font-size: 13px; color: var(--ink2); }
.page .hint { font-family: var(--mono); font-size: 12px; color: var(--ink3); }
.page .num { font-family: var(--serif); font-size: clamp(40px, 6cqi, 60px); font-weight: 600; line-height: 1; color: #ece7dd; }
.page .num .h3 { font-size: 15px; font-weight: 400; color: var(--ink2); margin-left: 3px; }
.page a:not(.btn):not(.more):not(.slot):not([class*="photo"]) { text-decoration-color: var(--line2); text-underline-offset: 3px; }
.page a:not(.btn):not(.more):hover { color: var(--hi); text-decoration-color: var(--red); }

.panel { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--panel); }
.panel-h { display: flex; align-items: center; gap: 10px; min-height: 38px; margin: 0; padding: 6px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--mono) !important; font-size: 12px !important; font-weight: 400 !important; letter-spacing: .24em !important; text-transform: uppercase; color: var(--ink2) !important; }
.panel-h::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--red); }
.panel-h .meta { margin-left: auto; color: var(--ink3); letter-spacing: .12em; text-transform: none; }
.panel-b { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 22px; }
.panel-b.tight { padding: 14px; }
.panel-b.flush { padding: 0; }
.page .win { border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.page .win .body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; }
.page .body { display: flex; flex-direction: column; gap: 16px; padding: 22px; }

.page .cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px; align-items: start; }
.page .s4 { grid-column: span 4; } .page .s5 { grid-column: span 5; } .page .s6 { grid-column: span 6; } .page .s7 { grid-column: span 7; } .page .s8 { grid-column: span 8; } .page .s12 { grid-column: span 12; }
.page .auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.page .auto.wide { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.page .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.page .row.between { justify-content: space-between; }
.page .stack { display: flex; flex-direction: column; gap: 10px; }
@container (max-width: 760px) {
  .page .cols { grid-template-columns: minmax(0, 1fr); }
  .page .cols > * { grid-column: auto; }
}

.page .chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.page .chips li { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border: 1px solid var(--line2); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--ink2); }
.page .chips li.on { border-color: var(--hi); color: var(--hi); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 22px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .35); cursor: pointer;
  font-family: var(--serif); font-size: 15px; letter-spacing: .12em; color: var(--ink); text-decoration: none; transition: border-color .15s, background-color .15s, color .15s; }
.btn:hover { border-color: var(--hi); background: rgba(255, 255, 255, .07); color: var(--hi); }
.btn.solid { border-color: rgba(241, 237, 228, .7); color: var(--hi); box-shadow: inset 3px 0 0 var(--red); }
.page .more { align-self: flex-start; display: inline-flex; align-items: center; min-height: 30px; border-bottom: 1px solid var(--line2); font-family: var(--serif); letter-spacing: .08em; color: var(--ink); text-decoration: none; }
.page .more:hover { color: var(--hi); border-bottom-color: var(--red); }

.page .photo { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); background: #000; }
.page .photo img { display: block; width: 100%; height: auto; filter: grayscale(1) brightness(.82) contrast(1.12); transition: filter .9s ease; }
.page .photo:hover img, .page a:hover .photo img, .page a:focus-visible .photo img { filter: none; }
.page .photo.ratio img { aspect-ratio: 16 / 9; object-fit: cover; }
.page .photo .tag { position: absolute; left: 0; bottom: 0; padding: 3px 10px; background: rgba(0, 0, 0, .72); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--ink2); }
.page .photo.logo { padding: 20px; background: #eeebe3; }
.page .photo.logo.invert { background: #111; }
.page .photo.logo img { filter: none; }
@media (hover: none) { .page .photo img { filter: grayscale(.25) brightness(.9); } }

.page .spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.page .spec th, .page .spec td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.page .spec th { width: 34%; font-weight: 400; color: var(--ink2); }
.page .list { width: 100%; border-collapse: collapse; font-size: 14px; }
.page .list th { padding: 9px 14px; text-align: left; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .14em; color: var(--ink3); border-bottom: 1px solid var(--line2); }
.page .list td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.page .list tr.link:hover td { background: rgba(255, 255, 255, .05); }
.page .scroll { overflow-x: auto; }

.page .code { margin: 0; padding: 14px 18px; background: rgba(0, 0, 0, .6); border-bottom: 1px solid var(--line); color: #b9c3ad; font-family: var(--mono); font-size: 13px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.page .flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.page .flow .node { flex: 1 1 140px; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .35); }
.page .flow .node b { font-family: var(--serif); color: #ece7dd; }
.page .flow .node.on { border-color: rgba(200, 55, 43, .75); background: rgba(200, 55, 43, .07); }
.page .flow .arrow { display: grid; place-items: center; flex: 0 0 18px; color: var(--ink3); }
.page .field { display: flex; flex-direction: column; gap: 6px; }
.page .field label { font-size: 13px; color: var(--ink2); }
.page .field input, .page .field select, .page .field textarea { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line2); border-radius: 0; background: rgba(0, 0, 0, .55); font: inherit; font-size: 15px; color: var(--ink); }
.page .field select option { background: #111; }
.page .field textarea { min-height: 160px; resize: vertical; }
.page .field input:focus, .page .field select:focus, .page .field textarea:focus { outline: 0; border-color: var(--hi); }
.page .check { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.page .check input { width: 16px; height: 16px; accent-color: var(--red); }
.page ul:not([class]) li, .page .small li { margin: 2px 0; }

.page .tone { background-image: radial-gradient(rgba(216, 211, 200, .1) 1px, transparent 1.3px); background-size: 6px 6px; }
.page .checker { background-image: repeating-linear-gradient(45deg, rgba(216, 211, 200, .05) 0 8px, transparent 8px 16px); }
.page .placeholder { display: grid; place-items: center; aspect-ratio: 16 / 9; border: 1px dashed var(--line2); }
.page .placeholder span { padding: 6px 16px; border: 1px solid var(--line2); background: #000; font-family: var(--mono); font-size: 13px; letter-spacing: .3em; color: var(--ink2); }
.page .invert { background: #111; }
.news { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.news li a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 9px 10px; border-left: 2px solid transparent; color: var(--ink); text-decoration: none; }
.news li a:hover { background: rgba(255, 255, 255, .05); border-left-color: var(--red); color: var(--hi); }
.news li a > span:last-child { flex: 1 1 240px; min-width: 0; }
.news .date { min-width: 92px; font-family: var(--mono); font-size: 12.5px; color: var(--ink3); }
.news .cat { padding: 0 7px; border: 1px solid var(--line2); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--ink2); }

.page .select { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.page .slot { display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 18px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); text-decoration: none; transition: border-color .2s, background-color .2s; }
.page a.slot:hover { border-color: rgba(241, 237, 228, .7); background: rgba(18, 18, 18, .85); color: var(--ink); }
.page .slot-n { margin-top: 4px; font-family: var(--mono); font-size: 13px; letter-spacing: .3em; color: var(--red); }
.page .slot.locked { opacity: .55; }

.page .lost { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 10vh 0 4vh; text-align: center; }
.page .lost-t { font-size: clamp(30px, 6cqi, 58px); letter-spacing: .12em; color: var(--red); text-shadow: 0 0 24px rgba(200, 55, 43, .35); }
.page .lost .row { justify-content: center; }

.intro { position: fixed; inset: 0; z-index: 50; background: #000; transition: opacity .6s ease; }
.intro.out { opacity: 0; pointer-events: none; }
.splash { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; opacity: 0; }
.splash img { width: min(560px, 74vw); height: auto; }
.s2 img { width: min(440px, 64vw); }
.s2 p { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .4em; color: var(--ink3); }
.intro.play .s1 { animation: splash 2.1s .3s ease both; }
.intro.play .s2 { animation: splash 2.1s 2.5s ease both; }
@keyframes splash { 0% { opacity: 0; filter: blur(6px); } 28% { opacity: 1; filter: none; } 72% { opacity: 1; filter: none; } 100% { opacity: 0; filter: blur(3px); } }
.skip { position: absolute; right: 22px; bottom: 16px; margin: 0; font-family: var(--mono); font-size: 12px; color: #3d3b37; }

.dialog { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .62); }
.dialog-b { display: flex; flex-direction: column; align-items: center; gap: 22px; min-width: min(380px, 100%); padding: 30px 36px; border: 1px solid var(--line2); background: #0a0a0a; animation: screen-in .25s ease both; }
.dialog-b p { margin: 0; font-family: var(--serif); font-size: 19px; letter-spacing: .1em; color: var(--hi); }
.dialog-a { display: flex; gap: 10px; }
.dialog-a button { min-width: 110px; min-height: 40px; border: 1px solid var(--line2); background: none; cursor: pointer; font-family: var(--serif); letter-spacing: .14em; color: var(--ink2); }
.dialog-a button:hover, .dialog-a button:focus-visible { outline: 0; border-color: var(--hi); color: var(--hi); background: rgba(255, 255, 255, .06); }
.ending { position: fixed; inset: 0; z-index: 48; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #000; text-align: center; }
.ending-t { margin: 0; font-family: var(--serif); font-size: clamp(18px, 3vw, 28px); letter-spacing: .4em; color: var(--hi); animation: rise 2.4s ease both; }
.ending-s { margin: 0 0 40px; font-family: var(--mono); font-size: 12px; letter-spacing: .4em; color: var(--ink3); animation: rise 2.4s .8s ease both; }
.ending .press { min-height: 24px; }

.toast { position: fixed; left: 50%; bottom: 56px; z-index: 40; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 10px 20px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .86); font-family: var(--serif); letter-spacing: .08em; color: var(--hi); animation: rise .25s ease both; }
.veil { position: fixed; inset: 0; z-index: 60; background: #000; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
body.veiled .veil { opacity: 1; }

.nojs { position: fixed; inset: 0; z-index: 70; overflow: auto; padding: 32px; background: #000; color: var(--ink); }

@media (max-width: 760px) {
  .title { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; gap: 18px; padding: 72px 20px 16px; }
  .title-main { align-self: end; gap: 12px; }
  .tagline { font-size: 13px; letter-spacing: .14em; margin-bottom: 8px; }
  .menu ul { width: 100%; }
  .menu a, .menu button { min-height: 40px; font-size: 17px; }
  .ticker, .title-foot .keys, .screen-f .keys { display: none; }
  .feature { padding: 12px 14px; }
  .feature-t { font-size: 20px; }
  .vignette { background: radial-gradient(ellipse at 50% 40%, transparent 20%, rgba(0, 0, 0, .55) 65%, rgba(0, 0, 0, .92) 100%), linear-gradient(0deg, rgba(0, 0, 0, .85) 0, rgba(0, 0, 0, .3) 60%, transparent 100%); }
  .screen-h { flex-direction: column; align-items: flex-start; gap: 12px; padding: 64px 16px 14px; }
  .screen-f { padding: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene.on img, .scene.cam.on img, .grain, .static, .flicker, .bars i, .press, .scene-cap i { animation: none !important; }
  .screen.enter, body.reveal .menu li, body.reveal .title-aside { animation: none !important; }
}
