/* THE AURA AUDIT v2 — the Bureau counter at night. The 3D scene is the stage; the DOM is paper, brass and ink on top. */
:root {
  --bg: #07050c; --cream: #fff3e0; --ink: #1d1410; --ink2: rgba(42,26,16,.66); --vio: #b46bff; --gold: #ffc25a; --red: #b3261e;
  --paper: #efe5cd;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "AppleMyungjo", Georgia, serif;
  --plate: "Avenir Next Condensed", "Avenir Next", "Arial Narrow", "Helvetica Neue", "Hiragino Sans", "Apple SD Gothic Neo", Thonburi, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --washi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .16 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  --fibers: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='f' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.035 .09' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .98 0 0 0 0 .92 0 0 0 -2.6 1.3'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23f)'/%3E%3C/svg%3E");
  --safeT: env(safe-area-inset-top, 0px); --safeB: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--cream); background: var(--bg); overflow-x: hidden;
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, "Hiragino Sans", "Apple SD Gothic Neo", Thonburi, sans-serif; -webkit-tap-highlight-color: transparent; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button, a { font-family: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* the 3D stage behind everything, plus a legibility shade that changes with the step */
.stage { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; }
.shade { position: fixed; inset: 0; z-index: 1; pointer-events: none; transition: opacity .6s ease, background .6s ease;
  background: linear-gradient(180deg, rgba(7,5,12,.82) 0, rgba(7,5,12,0) 17%, rgba(7,5,12,0) 52%, rgba(7,5,12,.72) 64%, rgba(7,5,12,.96) 82%); }
body[data-step="report"] .shade { background: linear-gradient(180deg, rgba(7,5,12,.7) 0, rgba(7,5,12,0) 14%, rgba(7,5,12,0) 70%, rgba(7,5,12,.85) 100%); }
body[data-step="judge"] .shade { background: linear-gradient(180deg, rgba(7,5,12,.55) 0, rgba(7,5,12,0) 12%, rgba(7,5,12,0) 72%, rgba(7,5,12,.9) 100%); }
body[data-step="receipt"] .shade { background: radial-gradient(90% 60% at 50% 40%, rgba(7,5,12,.35), rgba(7,5,12,.88)); }
body[data-step="notice"] .shade { background: linear-gradient(180deg, rgba(7,5,12,.7) 0, rgba(7,5,12,0) 14%, rgba(7,5,12,0) 46%, rgba(7,5,12,.8) 58%, rgba(7,5,12,.97) 78%); }

/* top bar: back · the Bureau's mark · three step pips (行 報 印) · the "i" sheet */
.top { position: fixed; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safeT)) 14px 8px; pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.brand__seal { font: 900 11px/1 var(--serif); color: #fff3e6; background: var(--red); padding: 5px 4px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 2px 8px rgba(0,0,0,.5); }
.brand b { font: 800 11px/1 var(--mono); letter-spacing: .28em; color: rgba(255,226,180,.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pips { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pips li { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; font: 900 14px/1 var(--serif); color: rgba(255,226,180,.45);
  border: 1px solid rgba(255,194,90,.25); background: rgba(20,10,4,.35); transition: all .4s ease; }
.pips li.on { color: #2a1404; border-color: transparent; background: linear-gradient(180deg, #ffeab8, #d9a64e 55%, #8a5c1c); box-shadow: 0 0 16px rgba(255,180,80,.45); }
.pips li.done { color: #fff3e6; border-color: transparent; background: var(--red); transform: rotate(-6deg); }
.ico { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer; color: #2a1404; font: 900 19px/1 var(--serif);
  background: radial-gradient(circle at 38% 30%, #fff1c8, #e0b264 45%, #8a5c1c 100%); box-shadow: inset 0 -2px 0 rgba(80,40,6,.5), 0 3px 0 #4a2c0a, 0 5px 14px rgba(0,0,0,.6); transition: transform .08s, box-shadow .08s; }
.ico:active { transform: translateY(3px); box-shadow: inset 0 -1px 0 rgba(80,40,6,.5), 0 0 0 #4a2c0a, 0 2px 6px rgba(0,0,0,.6); }
.ico--i { font: italic 900 20px/1 Georgia, serif; }

/* panels: one per step, cross-faded (never a hard swap) */
.panel { position: relative; z-index: 2; min-height: 100vh; min-height: 100dvh; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column;
  padding: calc(64px + var(--safeT)) 18px calc(18px + var(--safeB)); }
.panel.in { animation: pIn .55s cubic-bezier(.2,.7,.2,1) both; }
.panel.out { position: fixed; inset: 0; margin: 0 auto; animation: pOut .38s ease both; pointer-events: none; }
@keyframes pIn { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } }
@keyframes pOut { to { opacity: 0; transform: translateY(-10px); filter: blur(3px); } }
.dock { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }

/* 1 · asks */
.hero { text-align: center; }
.hero h1 { margin: 0; font: 900 clamp(32px, 9.4vw, 42px)/1.0 var(--serif); letter-spacing: -.005em; color: #fff4e2; text-wrap: balance;
  text-shadow: 0 0 26px rgba(180,107,255,.75), 0 2px 0 #000, 0 0 2px #000; }
.hero p { margin: 8px auto 0; max-width: 30ch; font: 600 15px/1.3 inherit; color: #eadcff; text-shadow: 0 1px 8px #000, 0 0 3px #000, 0 0 14px rgba(7,5,12,.9); text-wrap: balance; }
.hits { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.hit { position: absolute; pointer-events: auto; border: 0; padding: 0; background: transparent; border-radius: 10px; cursor: pointer; }
.hit:focus-visible { outline: 3px solid var(--gold); }
.nami { display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 10px; padding: 4px 6px 4px 4px; border-radius: 999px; background: rgba(12,6,20,.55); box-shadow: 0 0 0 1px rgba(255,226,180,.18); }
.nami img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; box-shadow: 0 0 0 2px rgba(255,255,255,.55), 0 0 14px rgba(255,90,150,.45); }
.nami b { font: 700 13px/1.2 inherit; color: rgba(255,236,220,.85); letter-spacing: .02em; }
.nami time { font: 800 11px/1 var(--mono); letter-spacing: .14em; color: var(--gold); padding: 5px 7px; border: 1px solid rgba(255,194,90,.35); border-radius: 4px; }
.askbig { min-height: 92px; display: flex; flex-direction: column; justify-content: flex-end; }
.askbig b { display: block; font: 800 var(--fs, 27px)/1.12 var(--serif); color: #fff6e8; text-wrap: balance; text-shadow: 0 2px 10px #000;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.askbig small { display: block; margin-top: 6px; font: italic 500 15px/1.25 inherit; color: rgba(255,226,190,.78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.askbig.swap b, .askbig.swap small { animation: swap .4s ease both; }
@keyframes swap { from { opacity: 0; transform: translateX(14px); } }
.minor { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* the brass plate: the one primary action per screen, at thumb height. It presses down. */
.plate { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 66px; padding: 10px 46px; border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(180deg, #fff0c4 0%, #ecc173 26%, #c8913f 58%, #94621f 88%, #7a4e16 100%);
  color: #2a1404; font: 800 21px/1.1 var(--plate); letter-spacing: .1em; text-transform: uppercase; text-align: center;
  text-shadow: 0 1px 0 rgba(255,244,210,.75), 0 -1px 0 rgba(90,50,10,.3);
  box-shadow: inset 0 1px 0 rgba(255,252,230,.95), inset 0 -2px 0 rgba(90,50,10,.55), inset 0 0 0 1px rgba(120,70,20,.4), 0 6px 0 #4a2c0a, 0 9px 24px rgba(0,0,0,.65), 0 0 42px rgba(255,170,70,.22);
  transition: transform .07s ease, box-shadow .07s ease, filter .3s; }
.plate::before, .plate::after { content: ''; position: absolute; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%;
  background: linear-gradient(45deg, transparent 44%, rgba(60,30,6,.75) 45% 56%, transparent 57%), radial-gradient(circle at 35% 30%, #fff3d0, #b88a40 60%, #6a4412);
  box-shadow: 0 1px 0 rgba(255,240,200,.6), inset 0 0 0 1px rgba(60,30,6,.4); }
.plate::before { left: 14px; } .plate::after { right: 14px; transform: rotate(70deg); }
.plate:active, .plate.pressed { transform: translateY(5px); box-shadow: inset 0 1px 0 rgba(255,252,230,.7), inset 0 2px 6px rgba(90,50,10,.45), inset 0 0 0 1px rgba(120,70,20,.4), 0 1px 0 #4a2c0a, 0 3px 10px rgba(0,0,0,.6); }
.plate:disabled { filter: saturate(.25) brightness(.62); cursor: default; }
.plate i { font: 900 15px/1 var(--serif); font-style: normal; letter-spacing: 0; color: #fff3e6; background: var(--red); padding: 5px 6px; border-radius: 3px; text-shadow: none; box-shadow: 0 1px 0 rgba(255,255,255,.3) inset; }
.plate--sm { min-height: 52px; font-size: 17px; }
.plate--quiet { min-height: 56px; font-size: 17px; background: linear-gradient(180deg, #4a3a5a, #2a1f36 60%, #1a1224); color: #f0e6ff; text-shadow: 0 1px 0 #000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(200,170,255,.18), 0 5px 0 #0c0812, 0 8px 20px rgba(0,0,0,.6); }
.plate--care { text-transform: none; letter-spacing: .01em; background: linear-gradient(180deg, #fff8ec, #f1dcc0); color: #3a1e0c; text-shadow: none; flex-direction: column; gap: 3px; min-height: 74px; font: 800 20px/1.15 inherit; }
.plate--care::before, .plate--care::after { display: none; }
.plate--care small { font-weight: 600; font-size: 13px; opacity: .72; }
.lnk { border: 0; background: none; padding: 8px 2px; color: rgba(236,224,255,.82); font: 600 14px/1.25 inherit; text-decoration: underline; text-decoration-color: rgba(236,224,255,.3); text-underline-offset: 4px; cursor: pointer; text-align: left; }
.lnk--gold { color: var(--gold); text-decoration-color: rgba(255,194,90,.35); font-weight: 800; }
.lnk--big { align-self: center; font-size: 16px; font-weight: 700; text-align: center; }

/* 2 · the report: washi on the counter, ink in the field, a fuse for a counter */
.sheet { position: relative; margin-top: 4px; padding: 16px 16px 14px; color: var(--ink); border-radius: 3px; transform: rotate(-.5deg);
  background-color: var(--paper); background-image: radial-gradient(120% 80% at 18% 0%, rgba(255,214,150,.38), transparent 60%), linear-gradient(rgba(246,238,219,.6), rgba(233,220,189,.6)), var(--fibers), var(--washi), linear-gradient(172deg, #f8f0dd, #e7d8b5);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 0 0 1px rgba(120,80,30,.25), 0 26px 40px -12px rgba(0,0,0,.8), 0 4px 10px rgba(0,0,0,.4); }
.sheet.fold { animation: fold .62s cubic-bezier(.6,0,.4,1) forwards; transform-origin: 50% 0; }
@keyframes fold { 40% { transform: rotate(-.5deg) scaleY(.5); } 70% { transform: scale(.4, .08) translateY(200px); opacity: 1; border-radius: 40px; } 100% { transform: scale(.1, .05) translate(1400px, -300px); opacity: 0; border-radius: 60px; } }
.sheet__head { display: flex; justify-content: space-between; gap: 10px; font: 800 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #6a4416; padding-bottom: 12px; border-bottom: 1px dashed rgba(90,60,20,.35); }
.sheet__ask { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.sheet__ask small { display: block; font: 800 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #8a5c1c; margin-bottom: 5px; }
.sheet__ask b { display: block; font: 800 19px/1.2 var(--serif); }
.kb { flex: 0 0 auto; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; font: 900 28px/1 var(--serif); color: #fff6e8;
  background: radial-gradient(circle at 40% 35%, #c58cff, #7b2bd6 60%, #3c0f78); box-shadow: 0 0 0 2px #d9a63a, 0 0 0 4px rgba(90,50,10,.3), 0 0 16px rgba(160,80,255,.55); }
.sheet__notyet { margin: 10px 0 0; font: italic 500 13.5px/1.3 inherit; color: var(--ink2); }
.ink { display: block; margin-top: 10px; }
textarea { display: block; width: 100%; resize: none; border: 0; padding: 4px 2px; font: 500 20px/32px var(--serif); color: #1a100a; caret-color: var(--red); outline: none;
  background: repeating-linear-gradient(180deg, transparent 0 31px, rgba(120,80,30,.22) 31px 32px); background-attachment: local; min-height: 132px;
  text-shadow: 0 0 .7px rgba(26,16,10,.55); }
textarea::placeholder { color: rgba(60,40,20,.42); font-style: italic; text-shadow: none; }
textarea:focus { background-color: rgba(255,250,236,.35); }
.fuse { --k: 1; position: relative; height: 12px; margin: 4px 0 2px; }
.fuse__rope, .fuse__ash { position: absolute; top: 5px; height: 3px; border-radius: 2px; }
.fuse__rope { left: 0; width: calc(var(--k) * 100%); background: repeating-linear-gradient(90deg, #7a4a1c 0 5px, #b07a3a 5px 8px); box-shadow: 0 1px 0 rgba(255,255,255,.4); transition: width .25s ease; }
.fuse__ash { right: 0; width: calc((1 - var(--k)) * 100%); background: repeating-linear-gradient(90deg, rgba(40,30,24,.35) 0 2px, transparent 2px 6px); transition: width .25s ease; }
.fuse__spark { position: absolute; top: 0; left: calc(var(--k) * 100% - 7px); width: 14px; height: 14px; border-radius: 50%; opacity: 0; transition: left .25s ease, opacity .3s;
  background: radial-gradient(circle, #fff7d0 0 18%, #ffb030 35%, rgba(255,80,20,.55) 60%, transparent 72%); box-shadow: 0 0 14px 4px rgba(255,140,40,.6); animation: spark .18s steps(2) infinite; }
.fuse.lit .fuse__spark { opacity: 1; }
.fuse.hot .fuse__spark { background: radial-gradient(circle, #fff 0 18%, #ff5030 40%, rgba(255,30,20,.6) 62%, transparent 72%); box-shadow: 0 0 18px 6px rgba(255,60,30,.7); }
@keyframes spark { 50% { transform: scale(1.25) rotate(40deg); } }
.sheet__row { display: flex; align-items: center; gap: 10px; margin-top: 8px; min-height: 44px; }
.clip { display: inline-flex; align-items: baseline; gap: 6px; padding: 10px 12px; white-space: nowrap; flex: 0 1 auto; min-width: 0; border-radius: 6px; border: 1.5px dashed rgba(120,80,30,.55); font: 800 14px/1 inherit; color: #5a3a10; cursor: pointer; background: rgba(255,250,236,.3); }
.clip em { font-style: normal; font-weight: 500; font-size: 11px; opacity: .65; }
.thumb { display: flex; align-items: center; gap: 8px; }
.thumb img { width: 44px; height: 44px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 2px #fff, 0 3px 10px rgba(0,0,0,.3); transform: rotate(3deg); }
.thumb button { border: 0; background: none; color: var(--red); font: 700 13px/1 inherit; text-decoration: underline; cursor: pointer; padding: 8px 2px; }
.fuse__n { margin-left: auto; font: 800 13px/1 var(--mono); color: rgba(60,40,20,.6); min-width: 3ch; text-align: right; }
.fuse__n.hot { color: var(--red); }
.chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 7px 10px 7px 7px; border: 0; border-radius: 999px; background: rgba(120,80,30,.1); color: #5a3a10; font: 700 13px/1 inherit; cursor: pointer; }
.chip b { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 3px; background: var(--red); color: #fff; font: 900 11px/1 var(--serif); }
.chip i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid currentColor; font: italic 900 11px/1 Georgia, serif; opacity: .7; }
#sReport .sheet { margin-top: auto; }
.dock--slim { margin-top: 0; padding-top: 18px; }

/* 3 · the ceremony caption */
.panel--caption { justify-content: flex-end; pointer-events: none; }
.caption { text-align: center; padding-bottom: 26px; }
.caption p { margin: 0; text-shadow: 0 2px 12px #000, 0 0 2px #000; }
#jL1 { font: 800 28px/1.15 var(--serif); color: #fff4e2; text-wrap: balance; }
#jL2 { margin-top: 8px; font: italic 500 16px/1.3 inherit; color: rgba(255,226,190,.8); }
.caption.swap p { animation: swap .45s ease both; }

/* 4 · the receipt rises from the printer slot to the camera */
#sReceipt { padding-top: calc(58px + var(--safeT)); }
.cardwrap { display: flex; justify-content: center; perspective: 900px; }
.card { display: block; width: min(80vw, calc((100svh - 230px) * .5625), 380px); height: auto; aspect-ratio: 1080 / 1920; border-radius: 4px;
  filter: drop-shadow(0 22px 26px rgba(0,0,0,.75)) drop-shadow(0 0 40px rgba(255,170,80,.18)); }
.card.rise { animation: rise 1.15s cubic-bezier(.18,.8,.22,1) both; transform-origin: 50% 100%; }
@keyframes rise { 0% { transform: translateY(46vh) rotateX(72deg) scale(.42); opacity: 0; } 18% { opacity: 1; } 100% { transform: none; } }
.dock--receipt { margin-top: 18px; gap: 6px; }
.dock--receipt .plate { margin-bottom: 4px; }
#exit .rx { margin-top: 8px; }

/* 5 · notices, under the window (the window itself carries the mood: blind + 閉, or a warm soft lamp) */
#sNotice .dock { gap: 10px; margin-top: 0; }
.notice { margin-top: auto; padding: 0 4px 18px; text-align: center; }
.notice__k { width: 64px; height: 64px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; font: 900 34px/1 var(--serif); color: #fff6e8;
  background: radial-gradient(circle at 40% 35%, #c58cff, #7b2bd6 60%, #3c0f78); box-shadow: 0 0 0 3px #d9a63a, 0 0 26px rgba(160,80,255,.55); }
.notice h2 { margin: 0; font: 900 clamp(26px, 7.6vw, 32px)/1.12 var(--serif); color: #fff4e2; text-wrap: balance; text-shadow: 0 2px 12px #000; }
.notice p { margin: 10px auto 0; max-width: 32ch; font: 600 16px/1.4 inherit; color: #f3e8ff; text-wrap: balance; text-shadow: 0 1px 8px #000; }
.notice .notice__sub { max-width: 38ch; font-size: 14px; font-weight: 500; color: rgba(255,226,190,.72); }
.notice--closed .notice__k { display: none; }
.notice--care .notice__k { background: radial-gradient(circle at 40% 35%, #fff0d8, #e8a87a 70%); color: #5a2a10; box-shadow: 0 0 0 3px rgba(255,240,220,.7), 0 0 36px rgba(255,190,120,.5); }
.notice--care h2 { color: #fff2e0; text-shadow: 0 2px 14px rgba(40,16,4,.9); }
.notice--dim .notice__k { background: radial-gradient(circle at 40% 35%, #4a3a5a, #1d1426 70%); box-shadow: 0 0 0 3px #6b5a3a; color: #b8a890; }
.help { display: grid; gap: 6px; }
.help .alt { text-align: center; color: #ffe2c4; font: 700 14px/1.3 inherit; text-decoration: underline; padding: 8px; }

/* the "i" sheet: all the fine print lives here, not on the screens */
.info { width: min(440px, calc(100vw - 24px)); max-height: 80vh; margin: auto auto 12px; padding: 20px 20px 16px; border: 0; border-radius: 6px; color: var(--ink);
  background-color: var(--paper); background-image: var(--fibers), var(--washi), linear-gradient(172deg, #f8f0dd, #e7d8b5); box-shadow: 0 20px 60px rgba(0,0,0,.8); }
.info[open] { animation: pIn .4s cubic-bezier(.2,.7,.2,1) both; }
.info::backdrop { background: rgba(7,5,12,.7); }
.info h2 { margin: 0 0 10px; font: 900 22px/1.2 var(--serif); }
.info ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 10px; }
.info li { position: relative; padding-left: 26px; font: 500 14px/1.4 inherit; color: #3a2614; }
.info li::before { content: attr(data-k); position: absolute; left: 0; top: 1px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 3px; background: var(--red); color: #fff; font: 900 10px/1 var(--serif); }

.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safeB)); transform: translateX(-50%); z-index: 20; padding: 10px 16px; border-radius: 999px; background: rgba(20,10,30,.92); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }

/* scripts with tall marks need more room */
:lang(th) .askbig b, :lang(th) #jL1, :lang(th) .notice h2, :lang(th) .hero h1 { line-height: 1.32; }
:lang(th) .plate { font-size: 19px; letter-spacing: .02em; }
:lang(ja) .plate, :lang(ko) .plate { letter-spacing: .04em; }
@media (max-height: 700px) { .askbig { min-height: 70px; } .askbig b { font-size: 23px; } .plate { min-height: 58px; } .hero h1 { font-size: 30px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition: none !important; } }

/* headless QA: no transition timing in the frames */
body.qa .panel.in, body.qa .panel.out, body.qa .swap b, body.qa .swap small, body.qa .swap p { animation: none !important; }

/* CJK line breaking: Japanese breaks at punctuation / phrase ends, Korean at word spaces (never mid-word like 一 / つ) */
:lang(ja) .hero p, :lang(ja) .hero h1, :lang(ja) .askbig, :lang(ja) .caption, :lang(ja) .notice, :lang(ja) .sheet__ask b, :lang(ja) .help, :lang(ja) #exit,
:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
/* with a photo clipped on, "optional" has done its job: give the row its room back */
.sheet__row:has(.thumb:not([hidden])) .clip em { display: none; }
/* Thai: letter-spacing breaks the vowel and tone marks off their consonants */
:lang(th) .brand b, :lang(th) .sheet__head, :lang(th) .sheet__ask small, :lang(th) .pips li { letter-spacing: .02em; }
