/*
 * Kiosk: gece dükkânı havası, sıcak ışık ve sushi bandı; Dotto-san oyun rehberi gibi sol altta.
 * Sade ve sık düzen: vurgu az yerde, dokunma hedefleri en az 44 piksel. Yatay ve dikey ekranda çalışır.
 */
:root { --bg: #0b0a11; --s1: #13111a; --s2: #1b1924; --s3: #272433; --line: rgba(255, 244, 214, .08); --text: #f5f1e8; --dim: #9c96a9; --amber: #f59e0b; --rice: #fef3c7; --ink: #15121c; --ease: cubic-bezier(.2, .9, .3, 1.1); --rail: 196px; --d: 96px; --sd: clamp(150px, 16vw, 210px); --sx: max(40px, calc(50vw - 480px)); }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; background: var(--bg); color: var(--text); font: 400 15px/1.4 Outfit, system-ui, 'Segoe UI', Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none; touch-action: pan-x pan-y; overscroll-behavior: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
#screen, #screen > section { height: 100%; }
h1, h2, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
.ks-grid, .ks-lines, .ks-sbody { scrollbar-width: thin; scrollbar-color: var(--s3) transparent; }

/* Yemek görseli: altta çizim, varsa üstünde fotoğraf */
.pic, .hero { position: relative; display: block; overflow: hidden; background: var(--s2); }
.pic img, .hero img, .ph.food { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.food { display: grid; place-items: center; background: radial-gradient(70% 66% at 50% 60%, rgba(var(--c-rgb), .16), transparent 72%), linear-gradient(160deg, #191621, #100e16); }
.ph.food svg { width: 68%; height: 68%; filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .4)); }
.tags { position: absolute; left: 6px; top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.tags em { padding: 2px 7px; border-radius: 6px; font-size: 11.5px; font-style: normal; font-weight: 600; background: rgba(11, 10, 17, .78); color: var(--rice); backdrop-filter: blur(4px); }
.tags .chef { color: #fcd34d; }
.tags .hot { color: #fca5a5; }

.ks-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 20px; border-radius: 13px; font-size: 16px; font-weight: 600; transition: transform .12s, background .15s; }
.ks-btn:active { transform: translateY(1px) scale(.99); }
.ks-btn.primary { background: var(--c); color: var(--on); box-shadow: 0 8px 22px rgba(var(--c-rgb), .24); }
.ks-btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--dim); font-size: 14.5px; font-weight: 500; }
.ks-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; flex: none; }
.ks-btn .n { min-width: 25px; height: 25px; padding: 0 7px; border-radius: 999px; background: rgba(0, 0, 0, .22); display: grid; place-items: center; font-size: 13.5px; }
.ks-btn .sum { margin-left: auto; padding-left: 14px; white-space: nowrap; font-size: 17px; font-weight: 700; }
.ks-btn[aria-disabled="true"] { background: var(--s1); color: var(--dim); box-shadow: none; font-size: 14.5px; font-weight: 500; }
.ks-btn.pop { animation: ks-pop .42s var(--ease) .5s; }
@keyframes ks-pop { 40% { transform: scale(1.03, .94); } 70% { transform: scale(.98, 1.03); } }
.ks-btn small { font-size: 13px; opacity: .7; }

.ks-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.ks-langs { display: flex; gap: 2px; border-radius: 11px; background: var(--s1); border: 1px solid var(--line); }
.ks-langs button { min-width: 42px; min-height: 44px; border-radius: 10px; color: var(--dim); font-size: 12.5px; font-weight: 600; }
.ks-langs [aria-pressed="true"] { background: var(--s3); color: var(--text); }
.ks-sound { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--s1); border: 1px solid var(--line); color: var(--dim); }
.ks-sound svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ks-mode { padding: 5px 10px; border-radius: 999px; background: rgba(245, 158, 11, .1); color: #fcd34d; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.ks-brand { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.ks-brand img { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; flex: none; }
.ks-brand b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Görev izi: oyunlardaki adım göstergesi */
.ks-quest { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ks-quest li { display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.ks-quest li + li::before { content: ''; width: 18px; height: 1px; background: var(--s3); }
.ks-quest i { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 6px; background: var(--s2); font-style: normal; font-weight: 700; font-size: 11.5px; }
.ks-quest .on { color: var(--text); }
.ks-quest .on i { background: var(--amber); color: var(--ink); animation: ks-glow 2s ease-in-out infinite; }
.ks-quest .done i { background: rgba(34, 197, 94, .18); color: #4ade80; }
@keyframes ks-glow { 50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, .16); } }

/* Başlangıç: ışık zinciri, kıvılcımlar, sushi bandı */
.ks-start, .ks-done { position: relative; overflow: hidden; background: radial-gradient(52% 50% at 22% 76%, rgba(var(--c-rgb), .2), transparent 70%), radial-gradient(50% 44% at 84% 6%, rgba(245, 158, 11, .1), transparent 70%), var(--bg); }
.ks-start { display: grid; grid-template-rows: auto minmax(0, 1fr) 122px; }
.ks-lights { position: absolute; left: -2%; right: -2%; top: -18px; height: 60px; display: flex; justify-content: space-between; pointer-events: none; }
.ks-lights i { position: relative; width: 1px; height: calc(26px + 16px * var(--s, 1)); --s: calc(.5 + .5 * sin(calc(var(--i) * 45deg))); background: rgba(255, 255, 255, .12); }
.ks-lights i::after { content: ''; position: absolute; left: -3px; bottom: -6px; width: 7px; height: 7px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 12px 4px rgba(255, 194, 92, .35); animation: ks-twinkle 3.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.53s); }
@keyframes ks-twinkle { 50% { opacity: .5; } }
.ks-sparks { position: absolute; inset: 0; pointer-events: none; }
.ks-sparks i { position: absolute; bottom: -8px; width: 3px; height: 3px; background: var(--amber); opacity: 0; animation: ks-rise 12s linear infinite; animation-delay: calc(var(--i) * -.77s); }
.ks-sparks i:nth-child(3n) { background: var(--rice); width: 2px; height: 2px; }
@keyframes ks-rise { 10% { opacity: .6; } 85% { opacity: .1; } 100% { opacity: 0; transform: translateY(-100vh) translateX(30px); } }
.ks-starttop { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 34px 26px 0; }
.ks-hero { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 6px 32px 18px calc(var(--sx) + var(--sd) + 52px); min-height: 0; }
.ks-hero > * { max-width: 540px; }
.ks-hero h1 { font-size: clamp(32px, 3.8vw, 52px); font-weight: 700; line-height: 1.05; letter-spacing: -.025em; overflow-wrap: anywhere; }
.ks-hero > p { color: var(--dim); font-size: clamp(15px, 1.3vw, 17px); }
.ks-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.ks-modes button { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 11px; align-items: center; min-height: 84px; padding: 11px 15px; border-radius: 15px; text-align: left; background: var(--s1); border: 1px solid var(--line); transition: transform .12s, border-color .15s, background .15s; }
.ks-modes button:first-child { background: var(--c); border-color: transparent; color: var(--on); box-shadow: 0 12px 28px rgba(var(--c-rgb), .24); }
.ks-modes button:active { transform: scale(.98); }
.ks-modes svg { grid-row: 1 / 3; width: 44px; height: 44px; }
.ks-modes .bag { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; padding: 3px; }
.ks-modes b { align-self: end; font-size: 16.5px; font-weight: 600; line-height: 1.15; }
.ks-modes small { align-self: start; font-size: 12.5px; opacity: .72; }

.ks-belt { position: relative; overflow: hidden; border-top: 1px solid var(--s3); background: repeating-linear-gradient(90deg, #14121b 0 60px, #181620 60px 120px); background-size: 120px 100%; animation: ks-slats 3.5s linear infinite; box-shadow: inset 0 12px 20px -14px #000; }
@keyframes ks-slats { to { background-position-x: -120px; } }
.ks-belt .track { display: flex; gap: 14px; width: max-content; height: 100%; align-items: center; padding-left: 14px; animation: ks-belt 60s linear infinite; }
@keyframes ks-belt { to { transform: translateX(-50%); } }
.plate { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 96px; flex: none; }
.plate .pic { width: 72px; height: 72px; border-radius: 50%; border: 3px solid #e9e3d8; box-shadow: 0 5px 10px rgba(0, 0, 0, .5); }
.plate small { max-width: 100%; color: var(--dim); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Üst çubuk ve menü */
.ks-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; padding: 0 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.ks-top .ks-brand { flex: 0 1 180px; }
.ks-menu { display: grid; grid-template: auto minmax(0, 1fr) auto / var(--rail) minmax(0, 1fr); background: radial-gradient(40% 40% at 0 100%, rgba(var(--c-rgb), .13), transparent 70%), var(--bg); }
.ks-top { grid-column: 1 / -1; }
.ks-cats { grid-row: 2 / 4; min-height: 0; padding-bottom: 124px; border-right: 1px solid var(--line); }
.ks-cats .scroll { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 8px; overflow-y: auto; scrollbar-width: none; }
.ks-cats button { position: relative; display: flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 4px 10px; border-radius: 10px; text-align: left; color: var(--dim); font-size: 14px; font-weight: 500; transition: background .15s, color .15s; overflow-wrap: anywhere; }
.ks-cats svg { width: 26px; height: 26px; flex: none; opacity: .8; }
.ks-cats .scroll { position: relative; }
.ks-cats button { z-index: 1; }
.ks-cats [aria-current="true"] { color: var(--text); font-weight: 600; }
.ks-cats [aria-current="true"] svg { opacity: 1; transform: scale(1.12); }
.ks-cats svg { transition: transform .25s var(--ease), opacity .15s; }
.ks-catpill { position: absolute; left: 0; top: 0; border-radius: 10px; background: rgba(var(--c-rgb), .16); transition: transform .34s var(--ease), width .3s, height .3s; }
.ks-catpill::before { content: ''; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 3px; background: var(--c); }
.ks-grid { padding: 14px 16px; overflow-y: auto; min-height: 0; }
.ks-cathead { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.ks-cathead h1 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.ks-cathead span { color: var(--dim); font-size: 13px; }
.ks-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 10px; }
.ks-item { display: flex; flex-direction: column; gap: 6px; padding: 6px 6px 9px; border-radius: 14px; background: var(--s1); border: 1px solid var(--line); text-align: left; min-width: 0; animation: ks-deal .3s var(--ease) both; animation-delay: calc(var(--i) * 22ms); transition: transform .1s, border-color .15s; }
@keyframes ks-deal { from { opacity: 0; transform: translateY(10px); } }
.ks-item:active { transform: scale(.975); border-color: rgba(var(--c-rgb), .6); }
.ks-item .pic { aspect-ratio: 16 / 10; border-radius: 9px; }
.ks-item .nm { padding: 0 3px; font-size: 14px; font-weight: 500; line-height: 1.22; overflow-wrap: anywhere; }
.ks-item .row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding: 0 3px; }
.ks-item .pr { font-size: 14.5px; font-weight: 700; }
.ks-item .plus { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(var(--c-rgb), .16); color: #fff; font-size: 18px; font-weight: 400; line-height: 1; }
.ks-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--line); background: rgba(14, 12, 20, .9); }
.ks-bar .primary, .ks-bar [aria-disabled] { flex: 0 1 340px; min-width: 0; }

/* Sepet */
.ks-review { display: flex; flex-direction: column; background: radial-gradient(40% 40% at 0 100%, rgba(var(--c-rgb), .13), transparent 70%), var(--bg); }
.ks-rbody { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 320px); }
.ks-lines { padding: 16px 24px 130px calc(var(--rail) + 8px); overflow-y: auto; }
.ks-lines h1 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 4px; }
.ks-lines h2 { margin: 16px 0 8px; font-size: 14.5px; font-weight: 600; color: var(--dim); }
.ks-lines li { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ks-lines li.bad { color: #fca5a5; }
.ks-lines li.none { justify-content: center; padding: 50px 0; color: var(--dim); border: 0; }
.ks-lines li > .pic { width: 52px; height: 52px; border-radius: 10px; flex: none; }
.ks-lines .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ks-lines .tx b { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.ks-lines .tx small { color: var(--dim); font-size: 12.5px; overflow-wrap: anywhere; }
.ks-lines .tx small:empty { display: none; }
.ks-lines .tx span { font-size: 13.5px; }
.ks-extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.ks-extras button { display: flex; flex-direction: column; gap: 3px; padding: 5px 5px 7px; border-radius: 12px; background: var(--s1); border: 1px solid var(--line); text-align: left; min-width: 0; }
.ks-extras .pic { aspect-ratio: 16 / 10; border-radius: 8px; }
.ks-extras .nm { padding: 0 3px; font-size: 13px; font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.ks-extras .pr { padding: 0 3px; font-size: 13px; color: #fcd34d; font-weight: 600; }
.ks-qty { display: flex; align-items: center; gap: 2px; flex: none; padding: 2px; border-radius: 11px; background: var(--s2); }
.ks-qty button { width: 44px; height: 44px; border-radius: 9px; font-size: 20px; font-weight: 500; }
.ks-qty b { min-width: 26px; text-align: center; font-size: 15px; font-weight: 600; }
.ks-pay { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 16px; border-left: 1px solid var(--line); background: var(--s1); }
.ks-pay .ks-bar { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 0 0; border: 0; background: none; }
.ks-pay .ks-btn { width: 100%; flex: none; }
.ks-pay .primary { order: -1; }
.ks-sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 14.5px; color: var(--dim); }
.ks-sum b { font-size: 25px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.ks-foot { color: var(--dim); font-size: 12px; }
.ks-err { padding: 9px 11px; border-radius: 10px; background: rgba(239, 68, 68, .14); color: #fecaca; font-size: 14px; }

/* Bitiş: sipariş bileti */
.ks-done { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; padding: 24px 24px 24px calc(var(--sx) + var(--sd) + 52px); }
.ks-done > .ks-btn { width: min(400px, 100%); }
.ks-ticket { position: relative; width: min(400px, 100%); padding: 20px 22px; border-radius: 16px; background: var(--rice); color: var(--ink); text-align: center; animation: ks-print .5s var(--ease) both; box-shadow: 0 18px 44px rgba(0, 0, 0, .45); }
@keyframes ks-print { from { opacity: 0; transform: translateY(-20px) rotate(-1deg); } }
.ks-ticket > p { font-size: 14px; font-weight: 500; opacity: .7; }
/* Kod sesle söylenir: piksel yazıda 5 ve S karışıyor, burada okunaklı yazı */
.ks-ticket strong { display: block; font-size: clamp(38px, 4.2vw, 50px); font-weight: 700; line-height: 1.15; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: #b91c1c; }
.ks-ticket .cut { display: block; margin: 12px -22px; border-top: 2px dashed rgba(21, 18, 28, .22); }
.ks-ticket ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: s; font-size: 12.5px; font-weight: 500; }
.ks-ticket li { counter-increment: s; }
.ks-ticket li::before { content: counter(s); display: grid; place-items: center; width: 24px; height: 24px; margin: 0 auto 3px; border-radius: 7px; background: var(--ink); color: var(--rice); font-size: 12px; font-weight: 700; }
.ks-ticket .sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; font-size: 14px; }
.ks-ticket .sum b { font-size: 20px; }

/* Ürün paneli: sağdan açılır, solda Dotto-san görünür kalır */
.ks-scrim { position: fixed; inset: 0; z-index: 10; display: flex; justify-content: flex-end; background: rgba(5, 4, 9, .58); }
.ks-scrim.center { justify-content: center; align-items: center; padding: 20px; }
.ks-sheet { position: relative; display: flex; flex-direction: column; width: min(430px, calc(100% - 210px)); height: 100%; background: var(--s1); border-left: 1px solid var(--line); box-shadow: -20px 0 50px rgba(0, 0, 0, .45); }
.ks-sheet.in { animation: ks-slide .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes ks-slide { from { transform: translateX(44px); opacity: 0; } }
.ks-sheet.warn { width: min(380px, 100%); height: auto; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; text-align: center; }
.ks-sheet.warn h2 { font-size: 20px; }
.ks-sbody { flex: 1; min-height: 0; padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; }
.ks-sbody .hero { flex: none; aspect-ratio: 16 / 9; max-height: 220px; width: 100%; border-radius: 12px; }
.ks-sbody h2 { font-size: 21px; font-weight: 700; line-height: 1.15; letter-spacing: -.015em; overflow-wrap: anywhere; }
.ks-sbody p { color: var(--dim); font-size: 14px; }
.ks-sbody .facts { padding: 8px 10px; border-radius: 9px; background: var(--s2); font-size: 12.5px; }
.ks-x { position: absolute; top: 20px; right: 20px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: rgba(0, 0, 0, .6); font-size: 24px; line-height: 1; }
.ks-group { margin: 4px 0 0; padding: 0; border: 0; min-width: 0; }
.ks-group legend { padding: 0 0 6px; font-size: 14px; font-weight: 600; }
.ks-group legend small { margin-left: 4px; color: var(--dim); font-size: 12px; font-weight: 400; }
.ks-group .ks-group { margin-top: 10px; }
.ks-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 7px; }
.ks-opts.two { grid-template-columns: 1fr 1fr; }
.ks-opts button { display: flex; flex-direction: column; justify-content: center; gap: 0; min-height: 50px; padding: 5px 11px; border-radius: 10px; background: var(--s2); border: 1.5px solid transparent; text-align: left; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.ks-opts small { color: var(--dim); font-size: 12px; font-weight: 400; }
.ks-opts [aria-pressed="true"] { border-color: var(--amber); background: rgba(245, 158, 11, .08); }
.ks-sheet footer { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); }
.ks-sheet footer .primary { flex: 1; min-width: 0; }

/* Tur ışığı */
#tour { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
#tour:not(:empty) { pointer-events: auto; }
.ks-spot { position: fixed; border-radius: 13px; box-shadow: 0 0 0 200vmax rgba(5, 4, 9, .74); outline: 2px solid var(--amber); outline-offset: 1px; transition: all .34s var(--ease); animation: ks-ring 1.6s ease-in-out infinite; }
@keyframes ks-ring { 50% { outline-offset: 5px; } }

/* Dotto-san */
#dotto { position: fixed; z-index: 30; left: 0; bottom: 0; width: 0; height: 0; }
#dotto[data-place="dock"] { --d: 96px; --x: 48px; --y: 14px; }
#dotto[data-place="stage"] { --d: var(--sd); --x: var(--sx); --y: 140px; }
body[data-screen="done"] #dotto { --y: calc(50vh - var(--d) * .62); }
.ks-mascot { position: fixed; left: var(--x); bottom: var(--y); width: var(--d); height: calc(var(--d) * .9); padding: 0; transition: left .5s var(--ease), bottom .5s var(--ease), width .5s var(--ease), height .5s var(--ease); }
.ks-mascot svg { display: block; width: 100%; height: 100%; overflow: visible; image-rendering: pixelated; animation: ks-breathe 2s steps(2) infinite; transform-origin: 50% 100%; }
@keyframes ks-breathe { 50% { transform: scale(1.025, .965); } }
.ks-shadow { position: fixed; left: calc(var(--x) + var(--d) * .2); bottom: calc(var(--y) - 4px); width: calc(var(--d) * .6); height: 9px; border-radius: 50%; background: rgba(0, 0, 0, .5); filter: blur(4px); transition: left .5s var(--ease), bottom .5s var(--ease), width .5s var(--ease); }
.ks-mascot.hop svg { animation: ks-hop .5s steps(6); }
@keyframes ks-hop { 30% { transform: translateY(-11%) scale(.96, 1.06); } 60% { transform: translateY(0) scale(1.08, .9); } }
.ks-mascot.cheer svg { animation: ks-cheer .9s steps(10); }
@keyframes ks-cheer { 25% { transform: translateY(-20%) rotate(-7deg); } 50% { transform: translateY(0) scale(1.1, .88); } 75% { transform: translateY(-13%) rotate(7deg); } }
.ks-mascot.shake svg { animation: ks-shake .45s steps(8); }
@keyframes ks-shake { 25% { transform: translateX(-5%); } 50% { transform: translateX(5%); } 75% { transform: translateX(-3%); } }
.ks-mascot .arm { transform-box: fill-box; }
.ks-mascot .arm.r { transform-origin: 0 50%; }
.ks-mascot .arm.l { transform-origin: 100% 50%; }
.ks-mascot.wave .arm.r { animation: ks-wave 1.2s steps(6); }
@keyframes ks-wave { 20%, 60% { transform: rotate(-58deg); } 40%, 80% { transform: rotate(-18deg); } }
.ks-mascot.cheer .arm.r { animation: ks-wave .9s steps(6); }
.ks-mascot.cheer .arm.l { animation: ks-wavel .9s steps(6); }
@keyframes ks-wavel { 20%, 60% { transform: rotate(58deg); } 40%, 80% { transform: rotate(18deg); } }
.ks-mascot .zz { display: none; }
#dotto[data-mood="sleepy"] .zz { display: block; animation: ks-z 2.2s ease-in-out infinite; }
@keyframes ks-z { 50% { opacity: .25; transform: translateY(-1px); } }

/* Oyun diyalog kutusu */
.ks-bub { --px: 3px; position: fixed; z-index: 1; left: calc(var(--x) + var(--d) + 4px); bottom: calc(var(--y) + var(--d) * .42); width: max-content; min-width: 170px; max-width: min(320px, calc(100vw - 170px)); padding: 9px 13px 10px; background: var(--rice); color: var(--ink); font-size: 14.5px; font-weight: 500; line-height: 1.3; pointer-events: none; box-shadow: 0 calc(var(--px) * -1) 0 0 var(--rice), 0 var(--px) 0 0 var(--rice), calc(var(--px) * -1) 0 0 0 var(--rice), var(--px) 0 0 0 var(--rice), 0 calc(var(--px) * -2) 0 0 #0d0b13, 0 calc(var(--px) * 2) 0 0 #0d0b13, calc(var(--px) * -2) 0 0 0 #0d0b13, calc(var(--px) * 2) 0 0 0 #0d0b13, calc(var(--px) * -1) calc(var(--px) * -1) 0 0 #0d0b13, var(--px) calc(var(--px) * -1) 0 0 #0d0b13, calc(var(--px) * -1) var(--px) 0 0 #0d0b13, var(--px) var(--px) 0 0 #0d0b13, 0 14px 28px 4px rgba(0, 0, 0, .5); }
.ks-bub[hidden] { display: none; }
.ks-bub.live { pointer-events: auto; }
.ks-bub.pop { animation: ks-bub .24s steps(5); transform-origin: 0 100%; }
@keyframes ks-bub { from { transform: scale(.75); opacity: 0; } }
.ks-bub::after { content: ''; position: absolute; left: -13px; bottom: 6px; width: 8px; height: 8px; background: var(--rice); box-shadow: -4px 4px 0 -1px var(--rice), 0 -3px 0 #0d0b13, 0 3px 0 #0d0b13, -3px 0 0 #0d0b13; }
.ks-bub .tag { position: absolute; left: 3px; top: -19px; padding: 0 6px; background: #dc2626; color: #fff; font: 700 12px/1.45 'Pixelify Sans', Outfit, sans-serif; letter-spacing: .03em; }
.ks-bub p { min-height: 1.3em; }
.ks-bub .acts { display: flex; flex-wrap: wrap; gap: 5px; }
.ks-bub .acts:not(:empty) { margin-top: 8px; }
.ks-bub .acts button { min-height: 44px; padding: 3px 11px; background: #fff; border: 2px solid #0d0b13; color: var(--ink); font-size: 13.5px; font-weight: 600; box-shadow: 0 2px 0 #0d0b13; }
.ks-bub .acts button:active { transform: translateY(2px); box-shadow: none; }
.ks-bub .acts .yes { background: var(--amber); }
#dotto[data-place="stage"] .ks-bub { left: var(--x); bottom: calc(var(--y) + var(--d) * .9 + 22px); min-width: 0; max-width: calc(var(--d) + 30px); }
#dotto[data-place="stage"] .ks-bub::after { left: 34px; bottom: -12px; box-shadow: 0 4px 0 -1px var(--rice), -3px 0 0 #0d0b13, 3px 0 0 #0d0b13, 0 3px 0 #0d0b13; }

#fx { position: fixed; inset: 0; z-index: 40; overflow: hidden; pointer-events: none; }
.ks-fly { position: fixed; width: 58px; height: 58px; border-radius: 50%; overflow: hidden; border: 3px solid #e9e3d8; background: var(--s2); }
.ks-fly img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ks-heart { position: fixed; width: 5px; height: 5px; background: #ef4444; box-shadow: -5px -5px 0 #ef4444, 5px -5px 0 #ef4444, -5px 0 0 #ef4444, 5px 0 0 #ef4444, 0 5px 0 #ef4444; }
.ks-px { position: fixed; top: 0; width: 7px; height: 7px; }

/* ---------- Hareket katmanı ---------- */
/* Piksel perde */
#wipe { position: fixed; inset: 0; z-index: 60; display: grid; grid-auto-rows: 1fr; pointer-events: auto; }
#wipe i { background: #15121c; }
#wipe i:nth-child(7n) { background: rgba(var(--c-rgb), 1); }
#wipe i:nth-child(11n) { background: var(--amber); }

/* Dotto: yürüme, ifade baloncuğu, boşta oyalanma */
#dotto[data-place="off"] { --d: var(--sd); --x: calc(var(--sd) * -1.4); --y: 140px; }
#dotto.snap .ks-mascot, #dotto.snap .ks-shadow { transition: none; }
#dotto.walking .ks-mascot, #dotto.walking .ks-shadow { transition-duration: .9s; transition-timing-function: linear; }
#dotto.walking .ks-mascot svg { animation: ks-walk .3s steps(2) infinite; }
@keyframes ks-walk { 50% { transform: translateY(-5%) rotate(-3deg); } }
#dotto.walking .foot.l { animation: ks-step .3s steps(2) infinite; }
#dotto.walking .foot.r { animation: ks-step .3s steps(2) infinite reverse; }
@keyframes ks-step { 50% { transform: translateY(-1px); } }
#dotto.walking .arm.l { animation: ks-swing .3s steps(2) infinite; }
#dotto.walking .arm.r { animation: ks-swing .3s steps(2) infinite reverse; }
@keyframes ks-swing { 50% { transform: translateY(1px); } }
.ks-mascot.flip { transform: scaleX(-1); }
.ks-mascot.spin svg { animation: ks-spin .8s steps(10); }
@keyframes ks-spin { 30% { transform: translateY(-18%) rotateY(180deg); } 60% { transform: translateY(-18%) rotateY(360deg); } 80% { transform: scale(1.08, .9) rotateY(360deg); } }
.ks-mascot.dance svg { animation: ks-dance 1.4s steps(8); }
@keyframes ks-dance { 15%, 45%, 75% { transform: rotate(-8deg) translateX(-4%); } 30%, 60%, 90% { transform: rotate(8deg) translateX(4%); } }
.ks-mascot.dance .arm.r { animation: ks-wave .7s steps(6) 2; }
.ks-mascot.dance .arm.l { animation: ks-wavel .7s steps(6) 2; }
.ks-mascot.stretch svg { animation: ks-stretch 1s steps(8); }
@keyframes ks-stretch { 40%, 60% { transform: scale(.93, 1.1); } 80% { transform: scale(1.06, .94); } }
.ks-mascot.point .arm.r { animation: ks-point 1.5s steps(5); }
@keyframes ks-point { 15%, 85% { transform: rotate(-32deg) scaleX(1.4); } }
.ks-emote { position: fixed; z-index: 2; left: calc(var(--x) + var(--d) * .68); bottom: calc(var(--y) + var(--d) * .86); display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; background: #fff; color: #dc2626; font: 700 19px/1 'Pixelify Sans', Outfit, sans-serif; box-shadow: 0 0 0 2px #0d0b13; pointer-events: none; }
.ks-emote[hidden] { display: none; }
.ks-emote.on { animation: ks-emote 1.3s steps(9) both; }
@keyframes ks-emote { 0% { transform: scale(0) translateY(10px); } 14% { transform: scale(1.2); } 22%, 84% { transform: scale(1); } 100% { transform: scale(.7) translateY(-10px); opacity: 0; } }
.ks-bub .acts button { animation: ks-rise-in .3s var(--ease) both .2s; }
.ks-bub .acts button:nth-child(2) { animation-delay: .27s; }
.ks-bub .acts button:nth-child(3) { animation-delay: .34s; }
.ks-bub .acts button:nth-child(4) { animation-delay: .41s; }
@keyframes ks-rise-in { from { opacity: 0; transform: translateY(8px); } }

/* Başlangıç */
.ks-start::before { content: ''; position: absolute; left: 10%; top: 26%; width: 46vw; height: 46vw; border-radius: 50%; background: radial-gradient(circle, rgba(var(--c-rgb), .13), transparent 66%); animation: ks-drift 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes ks-drift { to { transform: translate(14vw, -6vh) scale(1.2); } }
.ks-lights { transform-origin: 50% 0; animation: ks-sway 7s ease-in-out infinite alternate; }
@keyframes ks-sway { from { transform: rotate(-.35deg); } to { transform: rotate(.35deg); } }
.ks-hero h1 .w { display: inline-block; white-space: nowrap; }
.ks-hero h1 .w span { display: inline-block; animation: ks-letter .55s var(--ease) both; animation-delay: calc(.75s + var(--i) * 34ms); }
@keyframes ks-letter { from { opacity: 0; transform: translateY(26px) rotate(9deg) scale(.8); } }
.ks-hero > p { animation: ks-rise-in .5s ease both 1.25s; }
.ks-modes button { position: relative; overflow: hidden; animation: ks-card .55s var(--ease) both 1.35s; }
.ks-modes button + button { animation-delay: 1.45s; }
@keyframes ks-card { from { opacity: 0; transform: translateY(22px) scale(.95); } }
.ks-modes button::after, .ks-cartbtn:not([aria-disabled])::after { content: ''; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 26%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .26), transparent); transform: skewX(-18deg); animation: ks-sheen 5.5s ease-in-out infinite; pointer-events: none; }
.ks-modes button + button::after { animation-delay: .5s; }
@keyframes ks-sheen { 0%, 62% { left: -40%; } 100% { left: 125%; } }
.ks-modes svg { animation: ks-float 3.2s ease-in-out infinite; }
.ks-modes button + button svg { animation-delay: -1.6s; }
@keyframes ks-float { 50% { transform: translateY(-4px); } }
.plate:nth-child(3n) .pic { animation: ks-float 2.8s ease-in-out infinite; }
.plate:nth-child(3n + 1) .pic { animation: ks-float 3.4s ease-in-out infinite -1s; }
.plate:nth-child(3n + 2) .pic { animation: ks-float 3.1s ease-in-out infinite -2s; }

/* Menü */
.ks-cathead h1 { animation: ks-title .32s var(--ease) both; }
@keyframes ks-title { from { opacity: 0; transform: translateX(-14px); } }
.ks-item { animation-name: ks-deal; }
@keyframes ks-deal { from { opacity: 0; transform: translateY(14px) rotate(-1.4deg) scale(.96); } }
.ks-item .pic img, .ks-item .ph.food svg { transition: transform .35s var(--ease); }
.ks-item:active .pic img, .ks-item:active .ph.food svg { transform: scale(1.09); }
.ks-item .plus { transition: transform .25s var(--ease), background .15s; }
.ks-item:active .plus { transform: rotate(90deg) scale(1.15); background: var(--c); }
.ks-quest .done i { animation: ks-check .45s var(--ease) both; }
@keyframes ks-check { from { transform: scale(0) rotate(-40deg); } }
.ks-quest li + li::before { transition: background .3s; }
.ks-quest .on::before, .ks-quest .done::before { background: var(--amber); }

/* Sepet düğmesi */
.ks-cartbtn { position: relative; overflow: hidden; }
.ks-cartbtn.pop .n { animation: ks-badge .5s var(--ease) .55s; }
@keyframes ks-badge { 45% { transform: scale(1.5); background: #fff; color: var(--ink); } }
.ks-cartbtn.catch svg { animation: ks-bag .55s steps(7); }
@keyframes ks-bag { 25% { transform: rotate(-16deg) scale(1.2); } 50% { transform: rotate(13deg) scale(1.1); } 75% { transform: rotate(-7deg); } }

/* Ürün paneli */
.ks-sheet.in .ks-sbody > *, .ks-sheet.in footer { animation: ks-rise-in .36s var(--ease) both; }
.ks-sheet.in .ks-sbody > :nth-child(2) { animation-delay: .06s; }
.ks-sheet.in .ks-sbody > :nth-child(3) { animation-delay: .11s; }
.ks-sheet.in .ks-sbody > :nth-child(4) { animation-delay: .16s; }
.ks-sheet.in .ks-sbody > :nth-child(n + 5) { animation-delay: .21s; }
.ks-sheet.in footer { animation-delay: .14s; }
.ks-sheet.in .hero img, .ks-sheet.in .hero .ph.food svg { animation: ks-zoom .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ks-zoom { from { transform: scale(1.22); } }
.ks-sheet footer .primary { position: relative; overflow: hidden; }
.ks-sheet.warn { animation: ks-card .3s var(--ease) both; }

/* Tur ışığı: hedefe ok düşer */
.ks-spot::before { content: '▼'; position: absolute; left: 50%; top: -26px; margin-left: -9px; color: var(--amber); font-size: 18px; line-height: 1; animation: ks-arrow .8s steps(4) infinite; }
@keyframes ks-arrow { 50% { transform: translateY(6px); } }

/* Sepet ekranı */
.ks-rbody.enter .ks-lines h1 { animation: ks-title .35s var(--ease) both; }
.ks-rbody.enter .ks-lines li { animation: ks-title .36s var(--ease) both .08s; }
.ks-rbody.enter .ks-lines li:nth-child(2) { animation-delay: .13s; }
.ks-rbody.enter .ks-lines li:nth-child(n + 3) { animation-delay: .18s; }
.ks-rbody.enter .ks-extras button { animation: ks-card .4s var(--ease) both .22s; }
.ks-rbody.enter .ks-extras button:nth-child(2) { animation-delay: .29s; }
.ks-rbody.enter .ks-extras button:nth-child(3) { animation-delay: .36s; }
.ks-rbody.enter .ks-pay { animation: ks-pay .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ks-pay { from { transform: translateX(40px); opacity: 0; } }

/* Bitiş: dönen ışınlar, yazıcıdan çıkan bilet, damga */
.ks-rays { position: absolute; left: 50%; top: 50%; width: 180vmax; height: 180vmax; margin: -90vmax 0 0 -90vmax; background: repeating-conic-gradient(rgba(245, 158, 11, .055) 0 10deg, transparent 10deg 20deg); -webkit-mask: radial-gradient(circle, #000 8%, transparent 58%); mask: radial-gradient(circle, #000 8%, transparent 58%); animation: ks-rays 34s linear infinite; pointer-events: none; }
@keyframes ks-rays { to { transform: rotate(360deg); } }
.ks-ticket { animation: ks-print 1s steps(14) both .35s; z-index: 1; }
@keyframes ks-print { from { clip-path: inset(0 0 100% 0); transform: translateY(-14px); } to { clip-path: inset(0 0 -40px 0); transform: none; } }
.ks-ticket .stamp { position: absolute; right: 14px; top: 12px; display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid #15803d; border-radius: 50%; color: #15803d; font-size: 18px; font-weight: 700; transform: rotate(-12deg); animation: ks-stamp .4s var(--ease) both 1.5s; }
@keyframes ks-stamp { from { transform: scale(3) rotate(10deg); opacity: 0; } }
.ks-done .ks-quest, .ks-done > .ks-btn { position: relative; z-index: 1; }
.ks-fresh { position: relative; overflow: hidden; }
.ks-fresh::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .65); transform-origin: 0 50%; animation: ks-count var(--left) linear both; }
@keyframes ks-count { to { transform: scaleX(0); } }
.ks-spark { position: fixed; width: 5px; height: 5px; margin: -2px 0 0 -2px; background: var(--amber); }

/* Geniş ekran: içerik yayılmasın, sütunlar dolu dursun */
@media (min-width: 1600px) {
    :root { --rail: 220px; }
    .ks-cards { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
    .ks-hero { width: min(100%, 1180px); }
}
/* Dikey ve dar ekran */
@media (max-width: 900px), (max-aspect-ratio: 1 / 1) {
    :root { --rail: 0px; }
    .ks-menu { grid-template: auto auto minmax(0, 1fr) auto / minmax(0, 1fr); }
    .ks-cats { grid-row: auto; padding-bottom: 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .ks-cats .scroll { flex-direction: row; gap: 4px; overflow-x: auto; overflow-y: hidden; padding: 7px 12px; }
    .ks-cats button { white-space: nowrap; overflow-wrap: normal; }
    .ks-catpill::before { display: none; }
    .ks-grid { padding-bottom: 40px; }
    .ks-bar { padding-left: 112px; }
    .ks-rbody { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
    .ks-lines { padding: 14px 16px; }
    .ks-pay { border-left: 0; border-top: 1px solid var(--line); padding: 12px 16px 12px 112px; }
    .ks-pay .ks-bar { padding-left: 0; flex-direction: row; }
    .ks-pay .ks-bar .ks-btn { width: auto; }
    .ks-pay .ks-bar .primary { order: 0; flex: 1; }
    .ks-pay .ks-bar .ghost { flex: none; }
    .ks-mode { display: none; }
    #dotto[data-place="dock"] { --d: 88px; --x: 12px; --y: 10px; }
    .ks-bub { left: var(--x); bottom: calc(var(--y) + var(--d) * .9 + 18px); max-width: calc(100vw - 40px); }
    .ks-bub::after { left: 30px; bottom: -12px; box-shadow: 0 4px 0 -1px var(--rice), -3px 0 0 #0d0b13, 3px 0 0 #0d0b13, 0 3px 0 #0d0b13; }
    body.sheet .ks-bub { max-width: 180px; min-width: 0; font-size: 13.5px; }
    .ks-hero { justify-content: center; padding: 0 22px 13vh; }
    .ks-hero > * { max-width: none; }
    .ks-done { align-items: center; padding: 24px 24px 22vh; }
    #dotto[data-place="stage"] { --d: clamp(120px, 15vh, 180px); --x: 22px; }
    body[data-screen="done"] #dotto { --y: 22px; --d: clamp(100px, 14vh, 150px); --x: 22px; }
    #dotto[data-place="stage"] .ks-bub { left: calc(var(--x) + var(--d) + 4px); bottom: calc(var(--y) + var(--d) * .42); max-width: calc(100vw - var(--d) - 56px); }
    #dotto[data-place="stage"] .ks-bub::after { left: -13px; bottom: 6px; box-shadow: -4px 4px 0 -1px var(--rice), 0 -3px 0 #0d0b13, 0 3px 0 #0d0b13, -3px 0 0 #0d0b13; }
    .ks-top .ks-quest span { display: none; }
    .ks-top .ks-quest .on span { display: inline; }
    .ks-quest li + li::before { width: 10px; }
}
/* Dikey büyük kiosk ekranı (1080×1920 gibi): uzaktan okunsun ama taşmasın */
@media (min-width: 900px) and (max-aspect-ratio: 1 / 1) {
    :root { --rail: 0px; }
    html, body { font-size: 17px; }
    .ks-mode { display: inline-block; }
    .ks-top .ks-quest span { display: inline; }
    .ks-hero { padding: 0 64px 15vh; gap: 10px; }
    .ks-hero h1 { font-size: 76px; }
    .ks-hero > p { font-size: 23px; }
    .ks-modes { gap: 14px; margin-top: 26px; }
    .ks-modes button { min-height: 150px; grid-template-columns: 72px minmax(0, 1fr); column-gap: 18px; padding: 20px 26px; border-radius: 20px; }
    .ks-modes svg { width: 72px; height: 72px; }
    .ks-modes b { font-size: 26px; }
    .ks-modes small { font-size: 17px; }
    #dotto[data-place="stage"] { --d: 220px; --x: 44px; }
    #dotto[data-place="dock"] { --d: 110px; --x: 16px; --y: 14px; }
    .ks-bar, .ks-pay { padding-left: 140px; }
    .ks-bub { font-size: 17px; max-width: 420px; }
    .ks-start { grid-template-rows: auto minmax(0, 1fr) 150px; }
    .plate { width: 120px; }
    .plate .pic { width: 94px; height: 94px; }
    .ks-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
    .ks-item .nm { font-size: 16px; }
    .ks-item .pr { font-size: 16.5px; }
    .ks-cathead h1, .ks-lines h1 { font-size: 28px; }
    .ks-cats button { min-height: 50px; font-size: 16px; }
    .ks-lines li > .pic { width: 70px; height: 70px; }
    .ks-lines .tx b { font-size: 18px; }
    .ks-ticket { width: 620px; padding: 32px; }
    .ks-ticket > p { font-size: 19px; }
    .ks-ticket strong { font-size: 84px; }
    .ks-ticket .cut { margin: 18px -32px; }
    .ks-ticket ol { font-size: 17px; }
    .ks-ticket .sum { font-size: 18px; }
    .ks-ticket .sum b { font-size: 28px; }
}
@media (max-width: 620px) {
    .ks-top { height: auto; flex-wrap: wrap; gap: 6px; padding: 7px 10px; }
    .ks-top .ks-brand { flex: 1 1 auto; font-size: 15px; }
    .ks-top .ks-quest { flex: 1 1 100%; order: 3; }
    .ks-starttop { padding: 26px 12px 0; }
    .ks-hero { justify-content: flex-start; padding: 3vh 14px 0; }
    .ks-modes { grid-template-columns: 1fr; gap: 8px; }
    .ks-modes button { min-height: 68px; }
    .ks-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .ks-grid { padding: 10px 10px 30px; }
    .ks-bar { padding: 8px 8px 8px 74px; gap: 6px; }
    .ks-menu .ks-bar .ghost { display: none; }
    .ks-bar .primary, .ks-bar [aria-disabled] { flex: 1; }
    .ks-cartbtn span { white-space: nowrap; }
    .ks-btn { padding: 0 12px; font-size: 15px; }
    .ks-btn .sum { font-size: 15px; padding-left: 6px; }
    #dotto[data-place="dock"] { --d: 62px; --x: 6px; --y: 8px; }
    #dotto[data-place="stage"] { --d: 84px; --x: 10px; --y: 130px; }
    body[data-screen="done"] #dotto { --d: 72px; --y: 10px; }
    .ks-start { grid-template-rows: auto minmax(0, 1fr) 112px; }
    .ks-bub { font-size: 13.5px; min-width: 0; }
    .ks-sheet { width: 100%; }
    body.sheet #dotto { display: none; }
    .ks-lines li { flex-wrap: wrap; }
    .ks-lines .tx { flex: 1 1 150px; }
    .ks-lines li .ks-qty { margin-left: auto; }
    .ks-pay { padding: 10px 10px 10px 74px; }
    .ks-pay .ks-bar { flex-direction: column; align-items: stretch; }
    .ks-pay .ks-bar .ks-btn { width: 100%; }
    .ks-pay .ks-bar .primary { order: -1; flex: none; }
    .ks-done { padding: 14px 12px 100px; gap: 10px; }
    .ks-done .ks-quest { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

#slip { display: none; }
@media print {
    @page { size: 80mm auto; margin: 3mm; }
    html, body { height: auto; overflow: visible; background: #fff; color: #000; font-size: 12px; }
    #screen, #overlay, #tour, #dotto, #fx { display: none; }
    #slip { display: block; text-align: center; }
    #slip h1 { font-size: 15px; }
    #slip .code { margin: 4px 0; font-size: 26px; font-weight: 700; }
    #slip ul { margin: 6px 0; padding: 0; list-style: none; text-align: left; }
    #slip small { display: block; padding-left: 12px; }
}
