/* DES Xmas Booth v2 — cỗ máy photo booth. Mọi thứ trong #rig dùng px của khung thiết kế 1920×1080 (JS co giãn đều). */
:root {
  --gold-1: #fff3cf; --gold-2: #d9b872; --gold-3: #8a6a2c;
  --cream: #fbf6ea; --ink: #f6efdf; --accent: #d9b872;
  --pine: #0f2a20; --pine-2: #1a4636; --pine-d: #07140f; --ink-d: #17241d;
  --velvet: #8f1626; --velvet-2: #c22a3b; --velvet-d: #4a0a13;
  --amber: #ffc46b;
  --brass: linear-gradient(180deg, #f8e7b6 0%, #dcbc74 24%, #b38c45 54%, #e6cc8e 80%, #8f6f30 100%);
  --brass-round: radial-gradient(circle at 34% 28%, #fff6d6 0%, #e9cf91 26%, #b89148 60%, #7d5f27 100%);
  --ui: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Playfair Display', 'Times New Roman', serif;
  --sign: 'Bungee', 'Be Vietnam Pro', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; overflow: hidden; background: #050b08; }
body { font-family: var(--ui); color: var(--ink); -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
[hidden] { display: none !important; }
p, h1, h2 { margin: 0; }
kbd { font: 600 .8em var(--ui); padding: .2em .55em; border-radius: 6px; border: 1px solid color-mix(in srgb, currentColor 40%, transparent); opacity: .85; margin: 0 .12em; letter-spacing: .02em; white-space: nowrap; }

/* ---------- nền: sảnh khách sạn + vách nhung trong buồng ---------- */
#app { position: fixed; inset: 0; overflow: hidden; background: #050b08; }
#bg { position: absolute; inset: -3%; background: url(/assets/v2/shell/lobby.webp) 50% 50% / cover no-repeat; transform-origin: 50% 56%; will-change: transform, filter; }
#bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 95% at 50% 46%, transparent 48%, rgba(0, 0, 0, .62) 100%); }
#bgDim { position: absolute; inset: 0; background: #020604; opacity: 0; }
#bgInside { position: absolute; inset: -40%; z-index: 2; opacity: 0; pointer-events: none; background: radial-gradient(110% 90% at 50% 42%, rgba(4, 12, 8, .25) 0%, rgba(2, 8, 5, .88) 100%), url(/assets/v2/shell/interior.webp) 50% 50% / 2240px auto no-repeat, #040b08; }
#ambient { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; transition: opacity .6s; }
#app[data-mode=inside] #ambient { opacity: 0; }
#rig { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: 50% 50%; z-index: 2; }

/* ---------- cỗ máy ---------- */
.world { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform, opacity; pointer-events: none; z-index: 1; }
.world-front { z-index: 5; }
.machine { position: absolute; }
.machine-img { display: block; width: 100%; height: 100%; filter: brightness(.93) contrast(1.04); -webkit-box-reflect: below 0 linear-gradient(transparent 86%, rgba(0, 0, 0, .2)); -webkit-user-drag: none; }
.machine-shadow { position: absolute; left: -9%; right: -9%; bottom: -34px; height: 90px; background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .78), transparent 70%); }

.marquee { position: absolute; }
.marquee-bulbs i { position: absolute; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: radial-gradient(circle at 42% 36%, #fff 0%, #ffe9b0 34%, #f0b955 68%, #b77a1e 100%); box-shadow: 0 0 6px 2px rgba(255, 200, 110, .8), 0 0 16px 5px rgba(255, 170, 60, .34); animation: bulb .9s ease-in-out infinite alternate; }
@keyframes bulb { 0%, 30% { opacity: .42; } 100% { opacity: 1; } }
.marquee.fast .marquee-bulbs i { animation-duration: .28s; }
.marquee-name { position: absolute; inset: 0; display: grid; place-items: center; }
.marquee-name span { font: 400 60px/1 var(--sign); letter-spacing: .05em; white-space: nowrap; padding-top: 4px;
  background: linear-gradient(100deg, #f2d48f 0%, #fff6dc 20%, #ffe3a6 40%, #fffaf0 50%, #ffe3a6 60%, #f2d48f 80%, #fff6dc 100%); background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 9px rgba(255, 186, 84, .7)) drop-shadow(0 2px 0 rgba(58, 34, 4, .7)); animation: signSheen 5s linear infinite; }
@keyframes signSheen { to { background-position: -240% 0; } }

.ledge { position: absolute; display: flex; align-items: center; justify-content: center; gap: 22px; }
.ledge-text { flex: 1; font: 800 21px/1 var(--ui); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; color: #2e1c03; text-shadow: 0 1px 0 rgba(255, 244, 208, .65); }
.ledge-text:first-child { text-align: right; }
.dome-seat { flex: none; width: 96px; }
.slot-label { position: absolute; text-align: center; font: 700 20px/26px var(--ui); letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; color: #f3dfa8; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.slot-glow { position: absolute; border-radius: 4px; opacity: 0; background: linear-gradient(180deg, #fff3cf, #ffb850); box-shadow: 0 0 22px 8px rgba(255, 190, 90, .6); }

.window { position: absolute; overflow: hidden; }
.curtain { position: absolute; top: 0; bottom: 0; width: 50.6%; background: url(/assets/v2/shell/curtain.webp) 20% 0 / 140% 100%; will-change: transform; filter: brightness(.86); }
.curtain::after { content: ''; position: absolute; inset: 0; }
.curtain-l { left: 0; transform-origin: 0 50%; box-shadow: 16px 0 28px rgba(0, 0, 0, .6); }
.curtain-l::after { background: linear-gradient(90deg, rgba(0, 0, 0, .4), transparent 34%, transparent 72%, rgba(0, 0, 0, .5)); }
.curtain-r { right: 0; transform-origin: 100% 50%; background-position: 80% 0; box-shadow: -16px 0 28px rgba(0, 0, 0, .6); }
.curtain-r::after { background: linear-gradient(270deg, rgba(0, 0, 0, .4), transparent 34%, transparent 72%, rgba(0, 0, 0, .5)); }
.valance { position: absolute; left: 0; right: 0; top: 0; height: 12.5%; background: url(/assets/v2/shell/curtain.webp) 50% 30% / 44% 300%; filter: brightness(.74); border-bottom: 3px solid #c9a55a; box-shadow: 0 10px 20px rgba(0, 0, 0, .65); }
.window-glass { position: absolute; inset: 0; box-shadow: inset 0 0 34px rgba(0, 0, 0, .8), inset 0 16px 26px rgba(0, 0, 0, .45); }

.dome, .go-dome { position: absolute; border: 0; padding: 0; border-radius: 50%; background: var(--brass-round); box-shadow: 0 5px 0 #5d471d, 0 12px 18px -4px rgba(0, 0, 0, .75), inset 0 2px 2px rgba(255, 255, 255, .65); pointer-events: auto; }
.dome i, .go-dome i { position: absolute; inset: 13%; border-radius: 50%; background: radial-gradient(circle at 36% 28%, #ffa39b 0%, #e53343 26%, #a8131f 62%, #650810 100%); box-shadow: inset 0 -7px 12px rgba(0, 0, 0, .42), inset 0 3px 4px rgba(255, 255, 255, .35); transition: transform .12s; }
.dome::after, .go-dome::after { content: ''; position: absolute; inset: 4%; border-radius: 50%; box-shadow: 0 0 26px 8px rgba(255, 70, 70, .62); animation: domePulse 1.5s ease-in-out infinite alternate; pointer-events: none; }
@keyframes domePulse { from { opacity: .25; } to { opacity: 1; } }
.dome:active i, .go:active .go-dome i { transform: scale(.94); }

.print-clip { position: absolute; overflow: hidden; pointer-events: none; }
.print-mini { position: absolute; top: 0; padding: 6px; background: var(--cream); box-shadow: 0 10px 20px -6px rgba(0, 0, 0, .7); opacity: 0; will-change: transform; }
.print-mini img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- màn hình camera ---------- */
.stage-frame { position: absolute; z-index: 3; overflow: hidden; background: #050505; will-change: left, top, width, height; }
#stage { display: block; width: 100%; height: 100%; object-fit: cover; }
#app[data-screen=attract] .stage-frame { cursor: pointer; }
#app[data-mode=inside][data-screen=decorate] .stage-frame, #app[data-mode=inside][data-screen=memes] .stage-frame { visibility: hidden; }
#app[data-screen=theme] #stage, #app[data-screen=capture] #stage { touch-action: none; }
.bezel { position: absolute; z-index: 4; opacity: 0; pointer-events: none; border: 22px solid transparent; border-image: linear-gradient(135deg, #f8e7b6 0%, #b38c45 26%, #f3dfa8 48%, #8f6f30 72%, #e6cc8e 100%) 1; box-shadow: 0 34px 70px -22px #000, 0 0 0 2px #3d2e10; }
.bezel::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px rgba(30, 20, 4, .8), inset 0 0 36px rgba(0, 0, 0, .45); }
#app[data-screen=memes] .bezel { visibility: hidden; }
.stage-top { position: absolute; left: 18px; right: 18px; top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.stage-top > * { pointer-events: auto; }
#app[data-mode=outside] .stage-top { display: none; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 99px; font: 600 16px/1 var(--ui); white-space: nowrap; background: rgba(5, 14, 10, .86); border: 1.5px solid var(--gold-2); color: var(--gold-1); }
.count { position: absolute; left: 50%; top: 22px; width: 150px; height: 150px; margin-left: -75px; display: grid; place-items: center; border-radius: 50%; font: 400 96px/1 var(--sign); padding-top: 6px; color: #ffd58a; text-shadow: 0 0 22px rgba(255, 170, 60, .95); background: radial-gradient(circle at 50% 40%, #1a1408, #070604 70%); box-shadow: 0 0 0 5px #c9a55a, 0 0 0 8px #5d471d, 0 14px 30px -8px rgba(0, 0, 0, .8), inset 0 0 22px rgba(0, 0, 0, .9); opacity: 0; pointer-events: none; }
.pose { position: absolute; left: 6%; right: 6%; bottom: 7%; text-align: center; text-wrap: balance; font: italic 700 40px/1.22 var(--display); color: var(--cream); text-shadow: 0 2px 4px rgba(0, 0, 0, .9), 0 4px 26px #000; opacity: 0; pointer-events: none; }
.cam-msg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 30px; text-align: center; background: rgba(5, 12, 9, .9); font-size: 18px; line-height: 1.5; }
.cam-msg b { font: italic 600 34px/1.2 var(--display); }
#app[data-mode=outside] .cam-msg { font-size: 13px; gap: 8px; padding: 12px; }
#app[data-mode=outside] .cam-msg b { font-size: 20px; }

/* ---------- nút cứng ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 0 28px; border-radius: 99px; font: 700 18px/1 var(--ui); white-space: nowrap; text-decoration: none; transition: transform .12s var(--ease), box-shadow .12s, filter .2s; }
.btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn-primary { color: var(--cream); border: 2px solid #e2c684; background: linear-gradient(180deg, #cf3345 0%, #9c1829 52%, #6c0f1c 100%); box-shadow: 0 6px 0 var(--velvet-d), 0 18px 28px -10px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -8px 14px rgba(0, 0, 0, .22); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.btn-ghost { color: var(--ink); border: 1.5px solid rgba(217, 184, 114, .72); background: linear-gradient(180deg, #1c4a39 0%, #0e271d 100%); box-shadow: 0 5px 0 #040b08, 0 14px 22px -10px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .16); }
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #040b08, 0 6px 12px -6px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .16); }
.btn-xl { min-height: 76px; padding: 0 38px; font-size: 22px; }
.btn-xl svg { width: 28px; height: 28px; }
.btn-sm { min-height: 48px; padding: 0 20px; font-size: 16px; }
.btn-wide { width: 100%; }
.btn-danger { border-color: rgba(255, 150, 150, .75); color: #ffd3d3; }
.icon-btn { display: grid; place-items: center; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%; color: #2a1d06; background: var(--brass-round); box-shadow: 0 5px 0 #5d471d, 0 12px 18px -6px rgba(0, 0, 0, .8), inset 0 2px 1px rgba(255, 255, 255, .7); transition: transform .12s var(--ease), box-shadow .12s; font: 700 26px/1 var(--ui); }
.icon-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .pip { fill: currentColor; stroke: none; }
.icon-btn:active, .icon-btn[aria-pressed=true] { transform: translateY(4px); box-shadow: 0 1px 0 #5d471d, 0 5px 10px -4px rgba(0, 0, 0, .8), inset 0 2px 1px rgba(255, 255, 255, .7); }
.icon-btn[aria-pressed=true] { background: radial-gradient(circle at 34% 28%, #fffbe6 0%, #ffe39a 30%, #e2aa45 70%, #9a6d1c 100%); box-shadow: 0 1px 0 #5d471d, 0 0 22px 4px rgba(255, 190, 90, .6), inset 0 2px 1px rgba(255, 255, 255, .7); }
.hw-back { position: absolute; left: 48px; top: 34px; z-index: 9; }
#app[data-screen=attract] .hw-back, #app[data-screen=boot] .hw-back, #app[data-screen=result] .hw-back { display: none; }
.top-actions { position: absolute; right: 48px; top: 34px; z-index: 9; display: flex; gap: 14px; }
.ar-chip { position: absolute; left: 48px; top: 44px; z-index: 9; }
#app[data-mode=inside] .ar-chip { left: 128px; }

/* ---------- chữ ---------- */
.kicker { font: 600 15px/1.3 var(--ui); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-2); }
.title { font: italic 600 50px/1.1 var(--display); letter-spacing: -.005em; text-wrap: balance; }
.title.long { font-size: 38px; line-height: 1.14; }
.field-label { display: block; font: 600 14px/1.3 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.field-label small { font-weight: 500; letter-spacing: .01em; text-transform: none; color: var(--ink); opacity: .7; margin-left: 10px; font-size: 15px; }

/* ---------- màn chờ ---------- */
.attract { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
#app:not([data-screen=attract]):not([data-busy]) .attract, #app[data-mode=outside]:not([data-busy]) .inside, #app:not([data-screen=result]):not([data-busy]) .result { visibility: hidden; }
#app[data-screen=attract]:not([data-busy]) .attract > * { pointer-events: auto; }
.attract-copy { position: absolute; left: 1452px; top: 438px; width: 410px; display: grid; justify-items: start; gap: 0; }
.attract-copy::before { content: ''; position: absolute; inset: -70px -60px; z-index: -1; background: radial-gradient(closest-side, rgba(4, 11, 8, .82), rgba(4, 11, 8, .5) 62%, transparent); }
.hero { margin-top: 16px; font: 500 62px/1.04 var(--display); letter-spacing: -.015em; }
.hero em { display: block; font-style: italic; font-weight: 700; padding: 0 .06em .1em 0; background: linear-gradient(100deg, #8a6a2c 0%, var(--gold-2) 18%, var(--gold-1) 38%, var(--gold-2) 55%, #9b7733 72%, var(--gold-1) 90%, var(--gold-2) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: foil 7s linear infinite; }
@keyframes foil { to { background-position: -220% 0; } }
.lede { margin: 18px 0 30px; font-size: 20px; line-height: 1.5; opacity: .9; text-wrap: balance; }
.keys { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: 18px; font-weight: 500; color: #fff6dc; }
.keys span { white-space: nowrap; }
.plaque { position: absolute; display: flex; align-items: center; gap: 16px; padding: 14px 26px 14px 20px; border-radius: 10px; text-decoration: none; color: #2a1d06; background: var(--brass); box-shadow: 0 6px 0 #5d471d, 0 20px 30px -10px rgba(0, 0, 0, .85), inset 0 2px 1px rgba(255, 255, 255, .7), inset 0 0 0 4px rgba(120, 90, 30, .28); transition: transform .12s var(--ease), box-shadow .12s, filter .2s; }
.plaque:hover { filter: brightness(1.07); }
.plaque:active { transform: translateY(4px); box-shadow: 0 2px 0 #5d471d, 0 8px 14px -8px rgba(0, 0, 0, .85), inset 0 2px 1px rgba(255, 255, 255, .7), inset 0 0 0 4px rgba(120, 90, 30, .28); }
.plaque svg { width: 40px; height: 40px; fill: #14382b; flex: none; }
.plaque b { display: block; font: italic 700 25px/1.15 var(--display); white-space: nowrap; }
.plaque small { display: block; margin-top: 3px; font-size: 16px; font-weight: 500; white-space: nowrap; opacity: .82; }
.tree-plaque { left: 86px; top: 912px; }

/* ---------- trong buồng ---------- */
.inside { position: absolute; inset: 0; z-index: 7; opacity: 0; pointer-events: none; }
#app[data-mode=inside]:not([data-busy]) .inside > * { pointer-events: auto; }
.led-bar { position: absolute; left: 0; right: 0; top: 26px; width: fit-content; margin: 0 auto; height: 74px; padding: 0 40px; border-radius: 14px; background: linear-gradient(180deg, #070b09, #0d1310); box-shadow: 0 0 0 3px #c9a55a, 0 0 0 5px #5d471d, 0 16px 30px -12px #000, inset 0 0 26px rgba(0, 0, 0, .95); }
.steps { display: flex; align-items: center; gap: 38px; height: 100%; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 11px; font: 400 17px/1 var(--sign); letter-spacing: .06em; white-space: nowrap; color: rgba(255, 196, 107, .5); transition: color .3s; }
.steps li i { position: relative; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 196, 107, .5); transition: all .3s; }
.steps li.on { color: var(--amber); text-shadow: 0 0 14px rgba(255, 170, 60, .8); }
.steps li.on i { border-color: #ffe2a8; background: #ffc46b; box-shadow: 0 0 12px 3px rgba(255, 170, 60, .8); }
.steps li.done { color: rgba(150, 226, 172, .7); }
.steps li.done i { border-color: #8fe0a8; background: #2f8a57; }
.steps li.done i::after { content: ''; position: absolute; left: 2.5px; top: 0; width: 3px; height: 6px; border: solid #eafff0; border-width: 0 2px 2px 0; transform: rotate(42deg); }

.side { position: absolute; top: 146px; height: 636px; width: 360px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.side-left { left: 54px; align-items: flex-start; }
.side-right { left: 1506px; align-items: center; }
.step-plate { position: relative; width: 100%; display: grid; gap: 12px; padding: 30px 30px 32px; border-radius: 12px; color: #2a1b05;
  background: radial-gradient(circle 5px at 16px 16px, #6b4f1c 0 60%, #0000 62%), radial-gradient(circle 5px at calc(100% - 16px) 16px, #6b4f1c 0 60%, #0000 62%), radial-gradient(circle 5px at 16px calc(100% - 16px), #6b4f1c 0 60%, #0000 62%), radial-gradient(circle 5px at calc(100% - 16px) calc(100% - 16px), #6b4f1c 0 60%, #0000 62%), linear-gradient(170deg, #f6e4b1 0%, #dcbc74 30%, #c19a4f 62%, #e6cc8e 100%);
  box-shadow: 0 0 0 2px #5d471d, 0 22px 36px -14px #000, inset 0 2px 1px rgba(255, 255, 255, .7), inset 0 0 0 6px rgba(120, 90, 30, .22); }
.step-plate .kicker { color: #7a1420; font-weight: 700; }
.step-plate .title { color: #123226; font-size: 44px; text-shadow: 0 1px 0 rgba(255, 246, 214, .6); }
.step-plate .title.long { font-size: 34px; }
.step-note { font-size: 18px; line-height: 1.5; font-weight: 500; color: #3a2a0c; text-wrap: pretty; }
.drape { position: absolute; top: -260px; bottom: -260px; width: 560px; background: url(/assets/v2/shell/curtain.webp) 0 0 / 420px 100%; filter: brightness(.7); pointer-events: none !important; }
.drape-l { left: -474px; box-shadow: 22px 0 40px rgba(0, 0, 0, .7); }
.drape-r { right: -474px; box-shadow: -22px 0 40px rgba(0, 0, 0, .7); }
.drape::after { content: ''; position: absolute; inset: 0; }
.drape-l::after { background: linear-gradient(90deg, rgba(0, 0, 0, .1) 70%, rgba(0, 0, 0, .55)); }
.drape-r::after { background: linear-gradient(270deg, rgba(0, 0, 0, .1) 70%, rgba(0, 0, 0, .55)); }
.side-right .kicker { padding: 9px 18px; border-radius: 6px; color: #2a1b05; font-weight: 700; background: var(--brass); box-shadow: 0 0 0 1.5px #5d471d, 0 8px 14px -6px #000, inset 0 1px 0 rgba(255, 255, 255, .7); margin-bottom: 14px; }
.preview-frame::before { content: ''; position: absolute; left: 50%; top: -24px; width: 64px; height: 34px; margin-left: -32px; z-index: 2; border-radius: 6px 6px 3px 3px; background: var(--brass); box-shadow: 0 0 0 1.5px #5d471d, 0 5px 8px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .7); }
.preview-frame { position: relative; padding: 0; transform: rotate(1.4deg); background: var(--cream); box-shadow: 0 0 0 6px var(--cream), 0 30px 50px -18px #000; border-radius: 2px; transition: width .45s var(--ease), height .45s var(--ease); }
#preview { display: block; width: 100%; height: 100%; }
.preview-note { font-size: 16px; opacity: .9; margin-top: 12px; }
.slot-hits { position: absolute; inset: 0; }
.slot-hits button { position: absolute; display: grid; place-items: center; padding: 0; border: 0; background: transparent; transition: background .2s; }
.slot-hits button span { padding: 7px 14px; border-radius: 99px; background: rgba(5, 14, 10, .9); border: 1.5px solid var(--gold-2); font: 600 15px/1 var(--ui); white-space: nowrap; opacity: 0; transform: translateY(6px); transition: all .2s var(--ease); }
.slot-hits button:hover { background: rgba(5, 14, 10, .4); }
.slot-hits button:hover span { opacity: 1; transform: none; }
#app[data-screen=decorate] .side-right, #app[data-screen=memes] .side-right { display: none; }

.deco-area { position: absolute; display: none; }
#app[data-screen=decorate] .deco-area { display: block; }
#deco { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#deco.dragging { cursor: grabbing; }
.deco-fields { display: none; flex-direction: column; gap: 12px; width: 100%; margin-top: 14px; }
#app[data-screen=decorate] .deco-fields { display: flex; }
.caption-row { display: flex; align-items: center; gap: 12px; }
.caption-row input, .text-in { flex: 1; min-width: 0; height: 60px; padding: 0 20px; border-radius: 12px; border: 1.5px solid rgba(217, 184, 114, .65); background: rgba(3, 10, 7, .7); box-shadow: inset 0 3px 8px rgba(0, 0, 0, .6); color: var(--ink); font: 500 17px var(--ui); text-overflow: ellipsis; user-select: text; -webkit-user-select: text; }
.caption-row input::placeholder, .text-in::placeholder { color: rgba(246, 239, 223, .45); }
#btnDice.roll svg { animation: roll .5s var(--ease); }
@keyframes roll { to { transform: rotate(360deg); } }
.toggle { flex: none; display: flex; align-items: center; gap: 16px; padding: 0; border: 0; background: none; text-align: left; }
.toggle-track { position: relative; flex: none; width: 76px; height: 42px; border-radius: 99px; background: #050c09; box-shadow: 0 0 0 2px #c9a55a, inset 0 3px 8px rgba(0, 0, 0, .8); transition: background .25s; }
.toggle-track i { position: absolute; left: 4px; top: 4px; width: 34px; height: 34px; border-radius: 50%; background: var(--brass-round); box-shadow: 0 3px 6px rgba(0, 0, 0, .6), inset 0 1px 1px rgba(255, 255, 255, .7); transition: transform .25s var(--ease); }
.toggle[aria-checked=true] .toggle-track { background: linear-gradient(180deg, #2f8a57, #1f6a40); }
.toggle[aria-checked=true] .toggle-track i { transform: translateX(34px); }
.toggle-text b { display: block; font: 700 19px/1.2 var(--ui); white-space: nowrap; }
.toggle-text small { display: block; margin-top: 4px; font-size: 16px; opacity: .9; white-space: nowrap; }

/* bàn điều khiển */
.deck { position: absolute; left: 54px; right: 54px; top: 824px; height: 230px; display: flex; align-items: center; gap: 26px; padding: 0 34px; border-radius: 26px; background: linear-gradient(180deg, #164032 0%, #0d251c 52%, #08170f 100%); box-shadow: 0 0 0 2px #06100c, 0 0 0 6px #c9a55a, 0 0 0 8px #5d471d, 0 34px 60px -20px #000, inset 0 2px 0 rgba(255, 255, 255, .16), inset 0 -24px 44px rgba(0, 0, 0, .38); }
.deck-main { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; }
.deck-pane { display: none; width: 100%; min-width: 0; align-items: center; gap: 24px; }
#app[data-screen=layout] .deck-pane[data-pane=layout], #app[data-screen=team] .deck-pane[data-pane=team], #app[data-screen=theme] .deck-pane[data-pane=theme],
#app[data-screen=memes] .deck-pane[data-pane=memes], #app[data-screen=capture] .deck-pane[data-pane=capture], #app[data-screen=decorate] .deck-pane[data-pane=decorate] { display: flex; }
.deck-status { flex: 1; text-align: center; font: italic 600 34px/1.3 var(--display); text-wrap: balance; }
.deck-side { flex: none; display: flex; align-items: center; gap: 24px; height: 170px; padding-left: 30px; border-left: 1.5px solid rgba(217, 184, 114, .28); }
.deck-second { display: flex; flex-direction: column; gap: 12px; }
.deck-second .btn { display: none; }
#app[data-review='1'] #btnRetakeAll, #app[data-screen=decorate] #btnSkip, #app[data-screen=memes] #btnMemeRandom, #app[data-screen=memes] #btnMemeEditor { display: inline-flex; }
.go { display: grid; justify-items: center; gap: 14px; width: 210px; padding: 0; border: 0; background: none; }
.go-dome { position: relative; display: block; width: 112px; height: 112px; }
.go-label { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.go-label b { font: 700 21px/1 var(--ui); }
.go:disabled { cursor: default; }
.go:disabled .go-dome i { filter: saturate(.35) brightness(.6); }
.go:disabled .go-dome::after { display: none; }
.go:disabled .go-label { opacity: .6; }
.go:disabled kbd { display: none; }

.seg { display: inline-flex; gap: 6px; padding: 6px; border-radius: 99px; background: #050c09; box-shadow: 0 0 0 1.5px rgba(217, 184, 114, .65), inset 0 3px 8px rgba(0, 0, 0, .8); }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 99px; background: transparent; color: var(--ink); font: 700 18px/1 var(--ui); white-space: nowrap; transition: background .2s, color .2s; }
.seg button small { font-size: 16px; font-weight: 500; opacity: .9; }
.seg button[aria-selected=true] { background: var(--brass); color: #2a1d06; box-shadow: 0 3px 8px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .7); }
.seg-sm button { min-height: 44px; padding: 0 18px; font-size: 16px; }
.seg-stack { flex: none; flex-direction: column; border-radius: 22px; width: 268px; }
.seg-stack button { flex-direction: column; align-items: center; gap: 6px; min-height: 80px; border-radius: 16px; font-size: 21px; }
.seg-stack button small { font-size: 16px; }

.keys-row { flex: 1; min-width: 0; display: flex; justify-content: center; gap: 18px; }
.key { flex: 0 1 236px; min-width: 0; height: 176px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid rgba(217, 184, 114, .4); color: var(--ink); background: linear-gradient(180deg, #1f5140 0%, #102c21 100%); box-shadow: 0 8px 0 #040b08, 0 18px 24px -10px #000, inset 0 1px 0 rgba(255, 255, 255, .2); transition: transform .16s var(--ease), box-shadow .16s, border-color .2s, background .2s; }
.key:hover { border-color: rgba(255, 226, 168, .8); }
.key[aria-selected=true] { transform: translateY(5px); border-color: #ffe2a8; background: linear-gradient(180deg, #2a6a53 0%, #173d2e 100%); box-shadow: 0 3px 0 #040b08, 0 0 0 3px rgba(255, 196, 107, .95), 0 0 30px 2px rgba(255, 176, 80, .5), inset 0 1px 0 rgba(255, 255, 255, .25); }
.key-text { display: grid; justify-items: center; gap: 4px; }
.key b { font: 700 19px/1.2 var(--ui); white-space: nowrap; }
.key small { font-size: 16px; opacity: .9; white-space: nowrap; }
.paper { position: relative; display: block; background: var(--cream); box-shadow: 0 6px 12px -4px rgba(0, 0, 0, .7); border-radius: 2px; }
.layout-card.v .paper { height: 92px; }
.layout-card.h .paper { width: 150px; }
.paper i { position: absolute; background: #2c4a3d; border-radius: 1px; }
.theme-card { padding: 10px 10px 8px; gap: 0; justify-content: flex-start; }
.theme-card canvas { display: block; width: 100%; height: 108px; object-fit: cover; border-radius: 9px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); flex: none; }
.theme-card b { flex: 1; display: grid; place-items: center; width: 100%; font-size: 16px; line-height: 1.22; white-space: normal; text-align: center; text-wrap: balance; }

.ticket-card { flex: 0 1 246px; min-width: 0; height: 176px; position: relative; display: grid; grid-template-rows: auto auto 1fr auto; justify-items: start; text-align: left; padding: 15px 22px 0; border: 0; color: var(--ink-d); background: none; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .6)) brightness(.8); transition: transform .28s var(--ease), filter .28s; }
.ticket-card::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 10px; background: linear-gradient(160deg, #fffaf0 0%, #f3e8d0 100%); -webkit-mask: radial-gradient(circle 11px at 0 134px, #0000 97%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 134px, #0000 97%, #000) 100% 0 / 51% 100% no-repeat; mask: radial-gradient(circle 11px at 0 134px, #0000 97%, #000) 0 0 / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 134px, #0000 97%, #000) 100% 0 / 51% 100% no-repeat; }
.ticket-card:nth-child(odd) { transform: rotate(-1.2deg); }
.ticket-card:nth-child(even) { transform: rotate(1deg); }
.ticket-card:hover { filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .6)) brightness(.92); }
.ticket-card[aria-selected=true] { transform: translateY(-16px) rotate(-2deg) scale(1.04); filter: drop-shadow(0 0 16px rgba(255, 190, 90, .75)) drop-shadow(0 18px 16px rgba(0, 0, 0, .65)); z-index: 2; }
.tc-no { position: absolute; right: 20px; top: 15px; font: 600 14px/1.4 var(--ui); letter-spacing: .12em; text-transform: uppercase; opacity: .55; }
.tc-kicker { font: 700 14px/1.4 var(--ui); letter-spacing: .3em; text-transform: uppercase; color: var(--velvet); }
.ticket-card b { font: italic 700 30px/1.1 var(--display); white-space: nowrap; color: #123226; margin-top: 2px; }
.ticket-card small { align-self: start; margin-top: 5px; font-size: 16px; line-height: 1.28; opacity: .92; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tc-count { width: 100%; height: 42px; display: flex; align-items: center; border-top: 2px dashed rgba(23, 36, 29, .3); font: 700 13px/1 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: #6d5320; font-size: 14px; }

.sticker-wrap { flex: 1; min-width: 0; display: grid; gap: 12px; }
.sticker-tray { display: flex; gap: 12px; overflow: hidden; }
.sticker-tray button { flex: none; width: 72px; height: 72px; padding: 0; display: grid; place-items: center; border-radius: 14px; border: 1.5px solid rgba(217, 184, 114, .4); background: linear-gradient(180deg, #1f5140, #102c21); box-shadow: 0 5px 0 #040b08, inset 0 1px 0 rgba(255, 255, 255, .2); transition: transform .14s var(--ease), box-shadow .14s; }
.sticker-tray button img { width: 70%; height: 70%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .4)); }
.sticker-tray button:hover { transform: translateY(-3px); }
.sticker-tray button:active { transform: translateY(4px); box-shadow: 0 1px 0 #040b08, inset 0 1px 0 rgba(255, 255, 255, .2); }
.sticker-tools { display: flex; gap: 10px; margin-top: 4px; }
.sticker-tools[hidden] { display: flex !important; visibility: hidden; }
.sticker-tools .btn { min-height: 44px; padding: 0 18px; }

/* ---------- Meme Mimic ---------- */
.memes-area { position: absolute; left: 478px; right: 54px; top: 126px; height: 676px; display: none; flex-direction: column; gap: 18px; }
#app[data-screen=memes] .memes-area { display: flex; }
.meme-plaque { display: grid; justify-items: start; gap: 6px; width: 100%; margin-top: 10px; padding: 18px 20px; border-radius: 14px; background: linear-gradient(180deg, #070b09, #0d1310); box-shadow: 0 0 0 2px #c9a55a, 0 0 0 4px #5d471d, 0 16px 30px -12px #000; }
.meme-plaque-shot { font: 600 14px/1.3 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--amber); white-space: nowrap; }
.meme-plaque b { font: italic 600 26px/1.15 var(--display); }
.meme-plaque small { font-size: 16px; opacity: .92; line-height: 1.4; text-wrap: balance; }
.meme-tools { display: flex; gap: 8px; margin-top: 8px; }
.meme-tools .btn { min-height: 60px; min-width: 60px; padding: 0 20px; font-size: 18px; }
#app[data-screen=capture] .meme-tools { display: none; }
.meme-slots { display: flex; gap: 12px; flex-wrap: wrap; }
.meme-slot { display: flex; align-items: center; gap: 12px; padding: 7px 22px 7px 7px; border-radius: 99px; border: 1.5px solid rgba(217, 184, 114, .4); background: rgba(3, 10, 7, .7); color: var(--ink); text-align: left; transition: all .25s var(--ease); }
.meme-slot img { width: 50px; height: 50px; object-fit: contain; border-radius: 50%; background: rgba(217, 184, 114, .22); }
.meme-slot small { display: block; font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.meme-slot b { font: italic 600 18px var(--display); white-space: nowrap; }
.meme-slot.on { border-color: #ffe2a8; box-shadow: 0 0 0 3px rgba(255, 196, 107, .9), 0 0 24px rgba(255, 176, 80, .4); }
.meme-grid { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 6px 8px 14px 6px; align-content: start; scrollbar-width: thin; scrollbar-color: #c9a55a transparent; }
.meme-card { display: grid; justify-items: center; gap: 6px; padding: 14px 12px 16px; border-radius: 16px; border: 1.5px solid rgba(217, 184, 114, .35); color: var(--ink); background: linear-gradient(180deg, #1f5140, #102c21); box-shadow: 0 6px 0 #040b08, inset 0 1px 0 rgba(255, 255, 255, .18); text-align: center; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.meme-card img { height: 150px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
.meme-card b { font: italic 600 19px/1.2 var(--display); }
.meme-card small { font-size: 16px; opacity: .92; line-height: 1.35; text-wrap: balance; }
.meme-card:hover { border-color: #ffe2a8; }
.meme-card.on { transform: translateY(4px); border-color: #ffe2a8; box-shadow: 0 2px 0 #040b08, 0 0 0 3px rgba(255, 196, 107, .95), 0 0 26px rgba(255, 176, 80, .45); }

/* ---------- nhận ảnh ---------- */
.result { position: absolute; inset: 0; z-index: 8; opacity: 0; pointer-events: none; }
#app[data-screen=result]:not([data-busy]) .result > * { pointer-events: auto; }
.print-big { position: absolute; padding: 16px; background: var(--cream); border-radius: 3px; box-shadow: 0 46px 80px -26px rgba(0, 0, 0, .9), 0 6px 14px rgba(0, 0, 0, .35); overflow: hidden; will-change: transform, clip-path, filter; opacity: 0; }
.print-big img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.print-sheen { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .6) 50%, transparent 62%); }
.ticket-wrap { position: absolute; left: 1372px; top: 51.5%; width: 452px; transform: translateY(-50%); display: grid; gap: 20px; }
.ticket-clip { position: relative; overflow: hidden; padding-top: 7px; margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
.ticket-clip::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px; z-index: 2; border-radius: 7px; background: #040907; box-shadow: inset 0 0 0 2px #c9a55a, 0 6px 10px rgba(0, 0, 0, .5); }
.ticket { display: grid; justify-items: center; gap: 12px; padding: 30px 30px 36px; text-align: center; color: var(--ink-d); background: linear-gradient(180deg, #f1e7d1 0, #fffaf0 26px, #fbf6ea 100%);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%; }
.ticket-brand { font: 600 14px/1.4 var(--ui); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; opacity: .62; }
.ticket .title { font-size: 42px; color: #123226; white-space: nowrap; padding-bottom: 14px; width: 100%; border-bottom: 2px dashed rgba(23, 36, 29, .28); }
.ticket .seg { box-shadow: none; background: #17241d; margin: 6px 0 4px; }
.ticket .seg button { padding: 0 22px; }
.qr-card { display: grid; justify-items: center; gap: 8px; width: 100%; }
.qr-card canvas { width: 236px; height: 236px; image-rendering: pixelated; }
.qr-title { font: 700 21px/1.2 var(--ui); }
.qr-sub { font-size: 16px; line-height: 1.5; opacity: .82; text-wrap: pretty; user-select: text; -webkit-user-select: text; }
.qr-sub a, .tree-line a { color: var(--velvet); font-weight: 700; }
.qr-card.noqr canvas, .qr-card.noqr .qr-title { display: none; }
.tree-line { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding-top: 14px; border-top: 2px dashed rgba(23, 36, 29, .28); font-size: 16px; font-weight: 600; white-space: nowrap; }
.tree-line svg { width: 22px; height: 22px; fill: #1f6a40; flex: none; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.result-actions .btn-wide { grid-column: 1 / -1; }
.result-actions .btn { padding: 0 16px; }
.idle-note { min-height: 22px; text-align: center; font-size: 16px; opacity: .75; }

/* ---------- hộp thoại (in ảnh, bộ meme) ---------- */
dialog { padding: 0; border: 0; border-radius: 26px; color: var(--ink); width: min(1120px, 94vw); max-height: calc(100vh - 44px); font-family: var(--ui); background: linear-gradient(180deg, #164032 0%, #0d251c 50%, #08170f 100%); box-shadow: 0 0 0 2px #06100c, 0 0 0 6px #c9a55a, 0 0 0 8px #5d471d, 0 60px 120px -30px #000; overflow: visible; }
dialog::backdrop { background: rgba(2, 6, 4, .78); }
.dlg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 410px); gap: 28px; padding: 28px; max-height: calc(100vh - 44px); }
.dlg-preview { min-width: 0; min-height: 0; display: grid; place-items: center; padding: 20px; border-radius: 16px; background: #050c09; box-shadow: inset 0 4px 14px rgba(0, 0, 0, .8), 0 0 0 1.5px rgba(217, 184, 114, .4); }
#printPreview { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; background: #fff; box-shadow: 0 24px 50px -18px #000; }
.dlg-side { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow: auto; padding: 4px 8px 10px 4px; scrollbar-width: thin; }
.dlg-side .title { font-size: 38px; }
.dlg-note { font-size: 14px; line-height: 1.6; opacity: .75; }
.dlg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dlg-actions .btn { min-height: 52px; padding: 0 12px; font-size: 16px; }
.print-presets { display: grid; gap: 9px; }
.print-presets button { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 14px; padding: 8px 16px 8px 8px; text-align: left; border-radius: 14px; border: 1.5px solid rgba(217, 184, 114, .35); background: rgba(3, 10, 7, .55); color: var(--ink); transition: all .2s var(--ease); }
.print-presets canvas { justify-self: center; max-width: 56px; max-height: 56px; border-radius: 2px; box-shadow: 0 4px 10px -4px #000; }
.print-presets b { display: block; font-size: 16px; }
.print-presets small { display: block; font-size: 14px; opacity: .9; }
.print-presets button:focus-visible { outline: none; }
.print-presets button[aria-checked=true] { border-color: #ffe2a8; background: rgba(255, 196, 107, .14); box-shadow: 0 0 0 2px rgba(255, 196, 107, .9); }
.copies { display: flex; align-items: center; gap: 14px; }
.copies .field-label { margin-right: auto; }
.copies b { font: 600 28px var(--display); min-width: 1.6em; text-align: center; }
.copies .icon-btn { width: 48px; height: 48px; }
.text-in { width: 100%; height: 50px; font-size: 16px; flex: none; }
.ed-work { align-content: start; gap: 12px; background: none; padding: 0; box-shadow: none; }
.ed-drop { position: relative; display: grid; place-items: center; width: 100%; min-height: 300px; border-radius: 16px; border: 2px dashed rgba(217, 184, 114, .55); background: repeating-conic-gradient(rgba(255, 255, 255, .07) 0% 25%, transparent 0% 50%) 50% / 24px 24px; cursor: pointer; padding: 12px; }
.ed-drop.over { border-color: var(--gold-1); background-color: rgba(217, 184, 114, .16); }
#edCanvas { max-width: 100%; max-height: 52vh; width: auto; height: auto; touch-action: none; }
.ed-drop-hint { position: absolute; bottom: 12px; left: 12px; right: 12px; text-align: center; font-size: 14px; padding: 8px 12px; border-radius: 99px; background: rgba(0, 0, 0, .65); pointer-events: none; }
.ed-row { display: flex; align-items: center; gap: 12px; font-size: 14px; width: 100%; }
.ed-row input, .ed-row2 input[type=range] { flex: 1; accent-color: var(--accent); }
.ed-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ed-row2 label { display: grid; gap: 6px; margin: 0; }
.ed-list { display: grid; gap: 6px; max-height: 150px; overflow: auto; }
.ed-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.ed-item img { width: 40px; height: 40px; object-fit: contain; }
.ed-item .btn { min-height: 36px; font-size: 14px; }

/* ---------- lớp phủ toàn màn ---------- */
#flash { position: fixed; inset: 0; z-index: 50; background: #fff; opacity: 0; pointer-events: none; }
#toast { position: fixed; left: 50%; bottom: 4vh; transform: translate(-50%, 30px); z-index: 60; padding: 14px 26px; border-radius: 99px; background: rgba(5, 12, 9, .94); border: 1.5px solid var(--gold-2); font-size: 16px; white-space: nowrap; opacity: 0; transition: all .35s var(--ease); pointer-events: none; max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.fly { position: fixed; z-index: 40; border-radius: 4px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 4px var(--cream); pointer-events: none; object-fit: cover; }

@media (max-height: 960px) {
  .dlg-grid { gap: 22px; padding: 22px; }
  .dlg-side { gap: 10px; }
  .dlg-side .title { font-size: 32px; }
  .print-presets { gap: 7px; }
  .print-presets button { padding: 5px 14px 5px 6px; grid-template-columns: 46px 1fr; }
  .print-presets canvas { max-width: 46px; max-height: 46px; }
  dialog .btn-xl { min-height: 62px; }
  .dlg-actions .btn { min-height: 48px; }
  .copies .icon-btn { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-bulbs i { opacity: 1; }
}
