/* 키오스크 연습장 — 큰 글씨, 높은 대비, 큰 누름 영역 */
:root {
  color-scheme: light;
  --paper: #F6F1E8;
  --card: #FFFFFF;
  --ink: #1D2230;
  --ink-2: #4A5064;
  --line: #DCD2C0;
  --primary: #233A6E;
  --primary-2: #2F4C8C;
  --primary-ink: #FFFFFF;
  --accent: #E8590C;
  --good: #23743A;
  --bad: #B3261E;
  --gold: #E0A100;
  --radius: 16px;
  --shadow: 0 2px 0 rgba(29, 34, 48, .06), 0 8px 24px rgba(29, 34, 48, .08);
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
html { font-size: 19px; -webkit-text-size-adjust: 100%; }
html[data-size="1"] { font-size: 17px; }
html[data-size="3"] { font-size: 22px; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--primary); }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 4px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 99; }
b { font-weight: 800; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 3.1rem; padding: .5rem 1.2rem; border-radius: 999px; border: 2px solid var(--primary); background: var(--card); color: var(--primary); font-weight: 800; font-size: 1rem; text-decoration: none; text-align: center; }
.btn:hover { background: #EEF1F8; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-2); }
.btn-lg { min-height: 3.6rem; font-size: 1.1rem; padding: .6rem 1.6rem; }
.btn-sm { min-height: 2.6rem; font-size: .9rem; padding: .3rem 1rem; }
.btn-wide { width: 100%; }

/* ---------- 위쪽 막대 ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding: .6rem max(16px, env(safe-area-inset-left)); background: var(--card); border-bottom: 2px solid var(--line); position: relative; z-index: 5; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 900; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 10px; background: var(--primary); font-size: 1.2rem; }
.top-tools { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.top-link { font-weight: 800; text-decoration: none; padding: .4rem .7rem; border-radius: 10px; }
.top-link:hover { background: #EEF1F8; }
.size-ctl { display: flex; align-items: center; gap: .2rem; border: 2px solid var(--line); border-radius: 999px; padding: .15rem .3rem .15rem .7rem; font-size: .85rem; color: var(--ink-2); }
.size-ctl button { border: 0; background: transparent; border-radius: 999px; width: 2.2rem; height: 2.2rem; font-weight: 800; }
.size-ctl button[data-size="1"] { font-size: .8rem; }
.size-ctl button[data-size="2"] { font-size: 1rem; }
.size-ctl button[data-size="3"] { font-size: 1.25rem; }
.size-ctl button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.voice-ctl { border: 2px solid var(--line); background: var(--card); border-radius: 999px; padding: .35rem .9rem; font-weight: 700; font-size: .9rem; min-height: 2.6rem; }
.voice-ctl[aria-pressed="true"] { border-color: var(--primary); color: var(--primary); }

main { max-width: 1240px; margin: 0 auto; padding: 0 16px 48px; }

/* ---------- 첫 화면 ---------- */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; padding: 2.2rem 0 1.5rem; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.25; margin: 0 0 .8rem; letter-spacing: -.02em; }
.hero p { font-size: 1.1rem; color: var(--ink-2); margin: 0 0 1.3rem; }
.hero-btns { display: flex; gap: .7rem; flex-wrap: wrap; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 260px; }
.mini-kiosk { width: 180px; padding: 14px 14px 18px; border-radius: 22px; background: linear-gradient(160deg, #2C3550, #1C2236); box-shadow: 0 20px 40px rgba(28, 34, 54, .25); }
.mini-screen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; border-radius: 10px; background: #FFF4E3; }
.mini-screen span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; background: #fff; font-size: 2.1rem; box-shadow: 0 2px 0 #E8D9BF; }
.mini-screen span:first-child { outline: 4px solid var(--accent); }
.mini-hw { display: flex; justify-content: space-around; margin-top: 12px; }
.mini-hw i { width: 34px; height: 8px; border-radius: 4px; background: #0E1220; }
.mini-hw i:first-child { background: #5FD0FF; }
.hero-hand { position: absolute; left: calc(50% - 60px); top: 40%; font-size: 3.4rem; animation: tapHand 2.2s ease-in-out infinite; }
@keyframes tapHand { 0%, 100% { transform: translate(0, 0); } 45% { transform: translate(-8px, -10px); } 55% { transform: translate(-8px, -4px) scale(.94); } }

.daily { background: linear-gradient(135deg, #1F2E57, #2C3F75); color: #fff; border-radius: 24px; padding: 1.5rem; margin: 1rem 0 2rem; box-shadow: var(--shadow); }
.daily-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1rem; }
.daily-head h2 { margin: 0; font-size: 1.45rem; }
.daily-head h2 small { font-size: .85rem; font-weight: 600; opacity: .8; margin-left: .3rem; }
.daily-stats { display: flex; gap: .6rem; flex-wrap: wrap; }
.daily-stats span { background: rgba(255, 255, 255, .12); border-radius: 999px; padding: .3rem .9rem; font-size: .95rem; }
.daily-stats b { color: #FFD166; font-size: 1.1rem; }
.daily-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.dcard { display: flex; flex-direction: column; gap: .4rem; background: #fff; color: var(--ink); border-radius: 18px; padding: 1rem 1.1rem; text-decoration: none; border-top: 8px solid var(--k-primary); transition: transform .15s; }
.dcard:hover { transform: translateY(-3px); }
.dcard-top { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.dcard-no { color: var(--k-primary); }
.dcard-title { display: flex; align-items: center; gap: .5rem; font-size: 1.15rem; }
.dcard-ico { font-size: 1.6rem; }
.dcard p { margin: 0; font-size: .95rem; color: var(--ink-2); flex: 1; }
.dcard p b { color: var(--ink); }
.dcard-foot { display: flex; align-items: center; gap: .6rem; margin-top: .4rem; }
.dcard-cta { margin-left: auto; font-weight: 800; color: var(--k-primary); }
.dcard-cta.go { background: var(--k-primary); color: #fff; border-radius: 999px; padding: .4rem 1rem; }
.dcard.done { background: #FFFBF0; }
.stars { color: var(--gold); font-size: 1.2rem; letter-spacing: .05em; }
.stars i { font-style: normal; color: #D9D4C8; }
.daily-note { margin: 1rem 0 0; font-size: .95rem; opacity: .9; }
.daily-note b { color: #FFD166; }

.sec { margin: 2rem 0; }
.sec-title, .page-title { font-size: 1.5rem; margin: 0 0 1rem; }
.place-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pcard { display: flex; flex-direction: column; background: var(--card); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border: 2px solid transparent; transition: transform .15s, border-color .15s; }
.pcard:hover { transform: translateY(-3px); border-color: var(--k-primary); }
.pcard-art { display: grid; place-items: center; height: 130px; font-size: 3.2rem; letter-spacing: .1em; background: var(--k-hero); }
.pcard-body { padding: 1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .2rem; }
.pcard-body b { font-size: 1.35rem; }
.pcard-name { font-size: .85rem; color: var(--ink-2); }
.pcard-body p { margin: .3rem 0; color: var(--ink-2); font-size: .95rem; }
.pcard-prog { align-self: flex-start; font-size: .85rem; font-weight: 800; color: var(--k-primary); background: var(--k-bg); border-radius: 999px; padding: .2rem .8rem; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; }
.gcard { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem; background: var(--card); border-radius: 16px; text-decoration: none; color: var(--ink); border: 2px solid var(--line); }
.gcard:hover { border-color: var(--primary); }
.gcard-ico { font-size: 1.9rem; line-height: 1; }
.gcard-ico svg, .guide-ico svg { width: 1em; height: 1em; display: block; border-radius: 4px; }
.fig-inline svg { width: 3.2rem; height: 3.2rem; vertical-align: middle; }
.gcard b { font-size: 1.05rem; }
.gcard-more { font-size: .85rem; color: var(--primary); font-weight: 700; }
.foot { border-top: 2px solid var(--line); margin-top: 2rem; padding-top: 1rem; color: var(--ink-2); font-size: .9rem; }
.foot p { margin: .3rem 0; }

/* ---------- 가게별 색 ---------- */
[data-theme="coffee"] { --k-bg: #F3EADF; --k-surface: #FFFDF9; --k-ink: #2B1B14; --k-primary: #6B3E26; --k-primary-2: #84502F; --k-accent: #C98A3D; --k-head: #3B2418; --k-bezel: #3A2C25; --k-hero: linear-gradient(135deg, #F1E0CB, #E2C6A4); --k-soft: #F7EFE4; }
[data-theme="burger"] { --k-bg: #FFF4E6; --k-surface: #FFFFFF; --k-ink: #241815; --k-primary: #B3261E; --k-primary-2: #CC3328; --k-accent: #F2A900; --k-head: #8A1B15; --k-bezel: #2B2B30; --k-hero: linear-gradient(135deg, #FFE0B8, #FFC27A); --k-soft: #FFF0DC; }
[data-theme="bus"] { --k-bg: #EBF0F7; --k-surface: #FFFFFF; --k-ink: #0F1E36; --k-primary: #1B3A6B; --k-primary-2: #24508F; --k-accent: #E0702A; --k-head: #13294B; --k-bezel: #3A4556; --k-hero: linear-gradient(135deg, #D6E2F3, #A9C1E4); --k-soft: #EEF3FA; }

/* ---------- 연습 화면 ---------- */
.practice { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 1.5rem; padding-top: 1.2rem; align-items: start; }
.coach { position: sticky; top: 12px; display: flex; flex-direction: column; gap: .8rem; background: var(--card); border-radius: 20px; padding: 1rem 1.1rem 1.1rem; box-shadow: var(--shadow); border: 2px solid var(--line); }
.coach-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.coach-quit { font-weight: 800; text-decoration: none; padding: .3rem .1rem; }
.coach-tag { font-size: .85rem; font-weight: 800; color: var(--k-primary); background: var(--k-bg); border-radius: 999px; padding: .2rem .8rem; }
.coach-mission { background: #FFF6E0; border: 2px dashed var(--gold); border-radius: 14px; padding: .7rem .9rem; }
.cm-title { display: block; font-size: 1rem; }
.cm-title::before { content: '🎯 '; }
.cm-text { margin: .2rem 0 0; font-size: .95rem; }
.cm-text b { color: var(--bad); }
.coach-timer { display: grid; grid-template-columns: 1fr auto; gap: .3rem .6rem; align-items: center; }
.ct-bar { grid-column: 1 / -1; height: 14px; border-radius: 999px; background: #E9E3D7; overflow: hidden; }
.ct-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3B6FD8, #5B8DEF); border-radius: 999px; transition: width 1s linear; }
.ct-num { font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums; }
.ct-hints { font-size: .85rem; color: var(--bad); font-weight: 700; }
.coach-timer.low .ct-bar i { background: linear-gradient(90deg, #E8590C, #F59F00); }
.coach-timer.over .ct-num { color: var(--bad); }
.coach-say { display: flex; gap: .6rem; align-items: flex-start; background: #EEF2FA; border-radius: 14px; padding: .8rem .9rem; }
.coach-say.pulse { animation: sayIn .5s ease; }
@keyframes sayIn { from { background: #D7E2FA; } to { background: #EEF2FA; } }
.coach-ico { font-size: 1.5rem; line-height: 1.3; }
.coach-text { margin: 0; font-size: 1.12rem; font-weight: 600; line-height: 1.55; }
.coach-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.cm-more { display: none; }
.cbtn { white-space: nowrap; min-height: 3rem; border-radius: 12px; border: 2px solid var(--line); background: var(--card); font-weight: 800; font-size: .95rem; padding: .3rem .5rem; }
.cbtn:hover { border-color: var(--primary); }
.cbtn-hint { grid-column: 1 / -1; background: var(--accent); border-color: var(--accent); color: #fff; font-size: 1.05rem; min-height: 3.3rem; }
.cbtn-hint:hover { background: #D14E08; border-color: #D14E08; }

.stage { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.kiosk { container-type: inline-size; width: min(100%, 560px); background: linear-gradient(170deg, var(--k-bezel), #15161B); border-radius: 26px; padding: 12px 12px 14px; box-shadow: 0 24px 48px rgba(20, 20, 30, .28), inset 0 1px 0 rgba(255, 255, 255, .12); }
.kiosk-sign { color: #fff; text-align: center; font-weight: 800; font-size: 1rem; padding: .1rem 0 .5rem; letter-spacing: .04em; }
.kiosk-screen { position: relative; overflow: hidden; height: clamp(460px, calc(100vh - 250px), 860px); border-radius: 12px; background: var(--k-surface); color: var(--k-ink); font-size: clamp(13px, 3.25cqw, 18.5px); line-height: 1.45; }
.kiosk-hw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px 4px 0; }
.hw { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border-radius: 12px; background: #23252D; border: 2px solid #3A3D48; color: #C9CCD6; font-size: .8rem; }
.hw b { font-weight: 700; }
.hw.active { border-color: #FFB703; color: #fff; box-shadow: 0 0 0 4px rgba(255, 183, 3, .3); animation: hwGlow 1.4s ease-in-out infinite; }
@keyframes hwGlow { 50% { box-shadow: 0 0 0 9px rgba(255, 183, 3, .12); } }
.hw-glass { width: 64px; height: 30px; border-radius: 8px; background: radial-gradient(circle at 50% 50%, #7FE0FF, #1D6FA0 70%); box-shadow: inset 0 0 8px rgba(0, 0, 0, .5); }
.hw.beep .hw-glass, .demo-scanner.beep .hw-glass { background: radial-gradient(circle, #fff, #7FFFD4 55%, #1D8F6A); box-shadow: 0 0 18px #7FFFD4; }
.hw-slot { position: relative; width: 80px; height: 30px; display: grid; place-items: center; }
.hw-slot::before { content: ''; width: 76px; height: 8px; border-radius: 4px; background: #050608; box-shadow: 0 1px 0 #4A4E5A; }
.hw-cardin { position: absolute; bottom: 14px; left: 50%; width: 56px; height: 0; transform: translateX(-50%); background: linear-gradient(#2F3E9E, #1A2366); border-radius: 4px 4px 0 0; transition: height .3s; }
.hw.has-card .hw-cardin { height: 26px; }
.hw-mouth { position: relative; width: 70px; height: 30px; display: grid; place-items: center; }
.hw-mouth::before { content: ''; width: 66px; height: 6px; border-radius: 3px; background: #050608; }
.hw-paper { position: absolute; top: 15px; left: 50%; width: 46px; height: 0; transform: translateX(-50%); background: repeating-linear-gradient(#fff 0 5px, #E6E6E6 5px 6px); border-radius: 0 0 3px 3px; transition: height 1.6s linear; }
.hw.printing .hw-paper { height: 26px; }
.hw.has-paper .hw-paper { height: 30px; transition: none; box-shadow: 0 3px 6px rgba(0, 0, 0, .4); }

.tray { width: min(100%, 560px); background: #E9DCC6; border: 3px dashed #B99C6B; border-radius: 18px; padding: .7rem .9rem .9rem; }
.tray-label { font-weight: 800; margin-bottom: .5rem; }
.tray-label small { font-weight: 600; color: var(--ink-2); margin-left: .3rem; }
.tray-items { display: flex; gap: 1rem; justify-content: center; }
.tray-item { display: flex; flex-direction: column; align-items: center; gap: .3rem; border: 3px solid transparent; background: #FFF8EC; border-radius: 14px; padding: .6rem .9rem; font-weight: 800; }
.tray-item:hover { border-color: var(--accent); }
.tray-item .art-card { width: 120px; }
.flyer { position: fixed; z-index: 60; pointer-events: none; display: grid; place-items: center; transition: transform .8s cubic-bezier(.5, 0, .3, 1), opacity .8s; }
.flyer .art-card { width: 100%; }

/* 힌트: 눌러야 할 곳 */
.is-hint { position: relative; z-index: 3; outline: 5px solid var(--accent) !important; outline-offset: 3px; animation: hintPulse 1s ease-in-out infinite; }
.is-hint::after { content: '👆'; position: absolute; right: -6px; bottom: -22px; font-size: 2.1rem; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); animation: hintHand 1s ease-in-out infinite; pointer-events: none; z-index: 4; }
@keyframes hintPulse { 50% { outline-color: #FFB703; outline-offset: 6px; } }
@keyframes hintHand { 50% { transform: translate(-4px, -6px); } }

/* 휴대폰 그림 */
.art-phone { width: 120px; aspect-ratio: 9 / 17; background: #15171C; border-radius: 18px; padding: 8px 6px; position: relative; box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }
.art-phone.sm { width: 96px; }
.art-phone.tray { width: 84px; }
.art-phone-notch { position: absolute; top: 4px; left: 50%; width: 26px; height: 4px; background: #333; border-radius: 3px; transform: translateX(-50%); }
.art-phone-screen { height: 100%; background: #fff; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 5px; overflow: hidden; }
.art-phone-screen svg { width: 100%; height: auto; display: block; }
.ph-pay, .ph-coupon { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; font-size: 9px; text-align: center; line-height: 1.25; color: #222; }
.ph-pay b, .ph-coupon b { font-size: 10px; }
.ph-pay .qr { width: 70%; }
.ph-coupon small { color: #777; font-size: 8px; }

/* ---------- 키오스크 화면 안 (em 기준) ---------- */
.k-page { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--k-surface); }
.k-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6em; background: var(--k-head); color: #fff; padding: .55em .8em; }
.k-logo { display: flex; align-items: center; gap: .3em; font-weight: 800; font-size: .9em; }
.k-logo span { font-size: 1.3em; }
.k-head-title { text-align: center; font-weight: 800; font-size: 1.05em; display: flex; justify-content: center; align-items: center; gap: .4em; }
.k-home { border: 2px solid rgba(255, 255, 255, .6); background: transparent; color: #fff; border-radius: .6em; padding: .3em .7em; font-weight: 700; font-size: .85em; min-height: 2.6em; }
.k-chip-place { background: var(--k-accent); color: #fff; border-radius: 999px; padding: .05em .65em; font-size: .85em; }
.k-step { background: rgba(255, 255, 255, .2); border-radius: 999px; padding: .05em .55em; font-size: .8em; }
.k-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8em; padding: 1.2em; text-align: center; overflow: auto; }
.k-tight { gap: .5em; }
.k-q { font-size: 1.6em; margin: 0; line-height: 1.3; }
.k-q.sm { font-size: 1.25em; margin: .3em 0 .5em; }
.k-p { margin: 0; font-size: 1.05em; }
.k-p.sm { font-size: .9em; color: #666; margin-top: .8em; }
.k-em { color: var(--k-primary); font-size: 1.15em; }
.k-warn { margin: 0; font-size: 1.35em; font-weight: 900; color: var(--bad); }
.k-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.k-pad { padding: 1em; }
.k-row { display: flex; gap: .6em; justify-content: center; width: 100%; }
.k-btn { min-height: 3em; padding: .4em 1.1em; border-radius: .7em; border: 2px solid var(--k-primary); font-weight: 800; font-size: 1em; }
.k-btn-primary { background: var(--k-primary); color: #fff; }
.k-btn-primary:not(:disabled):hover { background: var(--k-primary-2); }
.k-btn-ghost { background: #fff; color: var(--k-primary); }
.k-btn:disabled { background: #D9D9D9; border-color: #D9D9D9; color: #8A8A8A; }
.k-btn-wide { width: min(100%, 16em); }

.k-attract { cursor: pointer; align-items: center; justify-content: center; gap: 1em; background: var(--k-hero); text-align: center; }
.k-attract-logo { font-size: 1.5em; font-weight: 900; color: var(--k-head); }
.k-attract-art { font-size: 4.6em; letter-spacing: .1em; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.k-attract-cta { font-size: 1.6em; font-weight: 900; background: var(--k-primary); color: #fff; padding: .7em 1.2em; border-radius: 1em; line-height: 1.3; animation: ctaBlink 2s ease-in-out infinite; }
@keyframes ctaBlink { 50% { transform: scale(1.04); } }
.k-attract-sub { font-size: .85em; letter-spacing: .3em; color: var(--k-head); opacity: .7; }

.k-choice2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; width: 100%; max-width: 26em; }
.k-choice2.col { grid-template-columns: 1fr; }
.k-bigbtn { display: flex; flex-direction: column; align-items: center; gap: .3em; padding: 1.2em .8em; border-radius: 1em; border: 3px solid var(--k-primary); background: var(--k-primary); color: #fff; }
.k-bigbtn b { font-size: 1.3em; }
.k-bigbtn small { opacity: .85; font-size: .9em; }
.k-bigbtn.ghost { background: #fff; color: var(--k-primary); }
.k-big-ico { font-size: 2.6em; line-height: 1.1; }

.k-tabs { display: flex; gap: .3em; padding: .5em .5em 0; background: var(--k-soft); overflow-x: auto; flex-shrink: 0; }
.k-tab { flex: 1 0 auto; min-height: 2.9em; padding: .3em .9em; border: 0; border-radius: .7em .7em 0 0; background: transparent; font-weight: 800; font-size: 1.02em; color: #6A5F57; }
.k-tab.on { background: var(--k-surface); color: var(--k-primary); box-shadow: inset 0 4px 0 var(--k-primary); }
.k-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; padding: .8em; }
.k-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15em; padding: .6em .3em .7em; border-radius: .9em; border: 2px solid #ECE4DA; background: #fff; text-align: center; }
.k-item:hover { border-color: var(--k-primary); }
.k-item-art { display: grid; place-items: center; width: 1.75em; height: 1.75em; border-radius: 50%; background: var(--tint, #eee); font-size: 2em; line-height: 1; flex-shrink: 0; }
.k-item-art.sm { font-size: 1.35em; }
.k-item-name { font-size: .98em; line-height: 1.25; margin-top: .3em; }
.k-item-price { font-size: .9em; color: var(--k-primary); font-weight: 800; }
.k-badge { position: absolute; top: .4em; left: .4em; font-style: normal; font-size: .72em; font-weight: 800; background: var(--k-accent); color: #fff; padding: .05em .5em; border-radius: 999px; }
.k-strip { display: flex; gap: .4em; padding: .45em .6em; overflow-x: auto; background: var(--k-soft); border-top: 1px solid #E5DCCF; flex-shrink: 0; }
.k-strip-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .3em; background: #fff; border: 1.5px solid #E0D6C8; border-radius: 999px; padding: .2em .25em .2em .8em; font-size: .88em; font-weight: 700; }
.k-strip-chip small { color: #777; font-weight: 600; }
.k-strip-chip button { border: 0; background: #EEE; border-radius: 50%; width: 1.9em; height: 1.9em; font-size: .85em; }
.k-bar { display: flex; align-items: center; gap: .5em; padding: .7em .8em; border-top: 2px solid #E5DCCF; background: #fff; flex-shrink: 0; }
.k-bar-info { flex: 1; display: flex; flex-direction: column; line-height: 1.25; font-size: .92em; }
.k-bar-info strong { font-size: 1.3em; color: var(--k-primary); }
.k-bar .k-btn { min-height: 3.1em; }
.k-bar .k-btn-primary { min-width: 7em; }

.k-modal { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); display: flex; align-items: flex-end; z-index: 5; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }
.k-sheet { width: 100%; max-height: 92%; display: flex; flex-direction: column; background: #fff; border-radius: 1.2em 1.2em 0 0; animation: sheetUp .25s ease-out; }
@keyframes sheetUp { from { transform: translateY(40px); } }
.k-sheet-head { display: flex; align-items: center; gap: .8em; padding: 1em 1em .6em; border-bottom: 1px solid #EEE; }
.k-sheet-head b { display: block; font-size: 1.3em; }
.k-sheet-head span { color: #666; }
.k-sheet-body { overflow-y: auto; padding: .3em 1em; }
.k-opt { padding: .6em 0; border-bottom: 1px solid #F0F0F0; }
.k-opt h3 { margin: 0 0 .4em; font-size: 1.05em; }
.k-opt h3 em { font-style: normal; font-size: .75em; color: #fff; background: var(--bad); border-radius: 999px; padding: .05em .55em; margin-left: .3em; vertical-align: .1em; }
.k-opt-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(8em, 1fr)); gap: .5em; }
.k-optbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 3.1em; padding: .3em .5em; border-radius: .7em; border: 2px solid #D8D2C8; background: #fff; font-weight: 800; }
.k-optbtn small { font-weight: 700; color: var(--k-primary); }
.k-optbtn.on { border-color: var(--k-primary); background: var(--k-primary); color: #fff; }
.k-optbtn.on small { color: #FFE3B3; }
.k-qty { display: inline-flex; align-items: center; gap: .6em; }
.k-qty button { width: 2.6em; height: 2.6em; border-radius: 50%; border: 2px solid var(--k-primary); background: #fff; color: var(--k-primary); font-size: 1.2em; font-weight: 900; line-height: 1; }
.k-qty b { min-width: 1.6em; text-align: center; font-size: 1.35em; }
.k-qty.sm button { width: 2.2em; height: 2.2em; font-size: 1em; }
.k-sheet-foot { display: grid; grid-template-columns: 1fr 2fr; gap: .6em; padding: .8em 1em 1em; }

.k-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6em; }
.k-line { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .6em; padding: .6em; border: 2px solid #EEE6DA; border-radius: .9em; }
.k-line-main { display: flex; flex-direction: column; line-height: 1.3; }
.k-line-main small { color: #777; }
.k-line-main span { font-weight: 800; color: var(--k-primary); }
.k-del { border: 0; background: #F3EEE8; width: 2.3em; height: 2.3em; border-radius: 50%; font-weight: 900; }
.k-sum { display: flex; justify-content: space-between; align-items: center; padding: .6em 1em; background: var(--k-soft); }
.k-sum-total { text-align: right; line-height: 1.2; }
.k-sum-total strong { display: block; font-size: 1.45em; color: var(--k-primary); }

.k-phone-display { font-size: 1.7em; font-weight: 900; letter-spacing: .06em; font-variant-numeric: tabular-nums; border-bottom: 3px solid var(--k-primary); padding: 0 .4em; min-width: 9em; }
.k-caret { display: inline-block; width: 2px; height: 1em; background: var(--k-primary); margin-left: 2px; vertical-align: -.1em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.k-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45em; width: min(100%, 17em); }
.k-keypad button { min-height: 2.9em; border-radius: .7em; border: 2px solid #DDD5C9; background: #fff; font-size: 1.35em; font-weight: 800; }
.k-keypad button.fn { font-size: .9em; background: var(--k-soft); }

.k-due { background: var(--k-soft); border-radius: 1em; padding: .8em 1em; display: flex; flex-direction: column; gap: .3em; }
.k-due > div { display: flex; justify-content: space-between; }
.k-due-disc { color: var(--bad); }
.k-due-sub { color: #7A6A2A; font-size: .92em; }
.k-due-total, .b-summary .k-due-total { border-top: 2px dashed #D8CDBE; padding-top: .4em; margin-top: .2em; align-items: baseline; display: flex; justify-content: space-between; }
.k-due-total strong { font-size: 1.6em; color: var(--k-primary); }
.k-methods { display: grid; grid-template-columns: 1fr; gap: .6em; }
.k-methods.two { grid-template-columns: 1fr 1fr; }
.k-method { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .8em; align-items: center; text-align: left; padding: .8em 1em; border-radius: 1em; border: 2px solid #DCD3C6; background: #fff; }
.k-methods.two .k-method { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.k-method:hover:not(:disabled) { border-color: var(--k-primary); }
.k-method-ico { grid-row: span 2; font-size: 2em; }
.k-methods.two .k-method-ico { grid-row: auto; }
.k-method b { font-size: 1.15em; }
.k-method small { color: #777; }
.k-method.used { background: #EAF5EC; border-color: var(--good); color: var(--good); }

.k-flow { gap: .8em; }
.k-flow-art .fig { width: 13em; }
.k-spinner { width: 4em; height: 4em; border-radius: 50%; border: .45em solid #E6E0D6; border-top-color: var(--k-primary); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.k-done-ico { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--good); color: #fff; font-size: 2em; font-weight: 900; }
.k-orderno { font-size: 5em; font-weight: 900; line-height: 1; color: var(--k-primary); letter-spacing: .05em; }
.k-scan-guide { display: flex; flex-direction: column; align-items: center; gap: .2em; }
.k-scan-arrow { font-size: 1.8em; color: var(--accent); animation: bob 1.2s ease-in-out infinite; }
.k-scan-box { background: #23252D; color: #9FE0FF; border-radius: .6em; padding: .3em 1.2em; font-weight: 800; line-height: 1.2; }
.k-scan-box small { color: #ccc; font-weight: 600; }

.k-toast { position: absolute; left: 50%; bottom: 5.2em; transform: translateX(-50%); width: max-content; max-width: 88%; background: rgba(20, 24, 34, .94); color: #fff; padding: .7em 1.1em; border-radius: .8em; font-weight: 700; text-align: center; z-index: 8; animation: toastIn .25s ease-out; }
.k-toast.warn { background: #A8321A; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }
.k-confirm { position: absolute; inset: 0; z-index: 9; display: grid; place-items: center; background: rgba(0, 0, 0, .5); padding: 1em; }
.k-confirm-box { background: #fff; border-radius: 1em; padding: 1.3em; width: min(100%, 20em); text-align: center; }
.k-confirm-box p { font-size: 1.2em; font-weight: 800; margin: 0 0 1em; }
.k-confirm-box .k-btn { flex: 1; }

/* 버스 */
.b-from { padding: .5em 1em; background: var(--k-soft); font-size: .95em; }
.b-route { display: flex; flex-wrap: wrap; align-items: center; gap: .4em; padding: .5em 1em; background: var(--k-soft); font-weight: 800; }
.b-route b { color: var(--k-accent); }
.b-route em { font-style: normal; font-weight: 700; color: #555; font-size: .9em; width: 100%; }
.b-dests { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55em; }
.b-dest { display: flex; flex-direction: column; align-items: center; padding: .8em .3em; border-radius: .8em; border: 2px solid #CFDAE9; background: #fff; }
.b-dest b { font-size: 1.3em; }
.b-dest small { color: #667; font-size: .82em; }
.b-dest:hover { border-color: var(--k-primary); }
.b-days { display: flex; gap: .35em; padding: .5em; overflow-x: auto; flex-shrink: 0; border-bottom: 2px solid #DCE3EE; }
.b-day { flex: 1 0 3.9em; display: flex; flex-direction: column; align-items: center; line-height: 1.2; padding: .4em .2em; border-radius: .7em; border: 2px solid #CFDAE9; background: #fff; }
.b-day small { font-size: .78em; color: #667; }
.b-day b { font-size: 1.1em; }
.b-day.on { background: var(--k-primary); border-color: var(--k-primary); color: #fff; }
.b-day.on small { color: #D6E2F5; }
.b-time-head, .b-time { display: grid; grid-template-columns: 1.1fr .9fr 1.2fr 1fr; align-items: center; text-align: center; }
.b-time-head { font-size: .8em; color: #667; padding: .35em .5em; background: var(--k-soft); flex-shrink: 0; }
.b-times { display: flex; flex-direction: column; }
.b-time { min-height: 3.2em; padding: .3em .5em; border: 0; border-bottom: 1px solid #E3E9F2; background: #fff; font-size: 1em; }
.b-time:hover:not(:disabled) { background: #F1F5FC; }
.b-time:disabled { color: #AAA; background: #F7F7F7; }
.b-hhmm { font-size: 1.3em; font-variant-numeric: tabular-nums; }
.b-grade { justify-self: center; font-size: .85em; font-weight: 800; padding: .1em .6em; border-radius: 999px; background: #E6ECF5; }
.b-grade.p { background: #FCE7D8; color: #B4501A; }
.b-kinds { display: flex; flex-direction: column; gap: .6em; }
.b-kind { display: flex; justify-content: space-between; align-items: center; gap: .6em; padding: .8em 1em; border: 2px solid #DCE3EE; border-radius: .9em; }
.b-kind b { font-size: 1.2em; display: block; }
.b-kind small { color: #667; }
.b-legend { display: flex; justify-content: center; gap: 1em; padding: .4em; font-size: .82em; flex-shrink: 0; }
.b-legend span { display: flex; align-items: center; gap: .3em; }
.b-bus { margin: .6em auto 1em; width: min(92%, 19em); border: 3px solid #B8C6DA; border-radius: 1.6em 1.6em .8em .8em; padding: .6em .7em .8em; background: #F7F9FC; }
.b-front { display: flex; justify-content: space-between; font-size: .78em; color: #667; padding: 0 .3em .5em; border-bottom: 2px dashed #CBD5E3; margin-bottom: .5em; }
.b-row { display: grid; gap: .35em; margin-bottom: .35em; }
.b-row.c3 { grid-template-columns: 1fr .6fr 1fr 1fr; }
.b-row.c4 { grid-template-columns: 1fr 1fr .5fr 1fr 1fr; }
.b-seat { aspect-ratio: 1 / .92; border-radius: .5em .5em .3em .3em; border: 2px solid #8FA6C6; background: #fff; font-weight: 800; font-size: .95em; color: var(--k-primary); padding: 0; }
.b-seat.on { background: var(--k-accent); border-color: var(--k-accent); color: #fff; }
.b-seat.taken { background: #C9CED6; border-color: #C9CED6; color: #8A9099; }
.b-seat.sm { display: inline-block; width: 1.2em; height: 1.1em; aspect-ratio: auto; }
.b-summary { background: var(--k-soft); border-radius: 1em; padding: 1em; }
.b-sum-route { display: flex; justify-content: center; align-items: center; gap: .6em; font-size: 1.5em; margin-bottom: .4em; }
.b-sum-route span { color: var(--k-accent); }
.b-summary dl { display: grid; grid-template-columns: auto 1fr; gap: .25em 1em; margin: 0 0 .5em; }
.b-summary dt { color: #667; }
.b-summary dd { margin: 0; font-weight: 700; }

/* ---------- 모달 ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(20, 22, 30, .55); opacity: 0; transition: opacity .2s; }
.modal.show { opacity: 1; }
.modal-box { width: min(100%, 560px); max-height: calc(100svh - 32px); overflow-y: auto; background: var(--card); border-radius: 22px; padding: 1.4rem; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.modal-box h2 { margin: 0 0 .8rem; font-size: 1.4rem; }
.modal-btns { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1rem; flex-wrap: wrap; }
.modal-btns.col { flex-direction: column; }
.modal-btns.col .btn { width: 100%; }
.mode-btn { display: flex; flex-direction: column; gap: .15rem; width: 100%; text-align: left; padding: .9rem 1rem; margin-bottom: .6rem; border-radius: 14px; border: 2px solid var(--line); background: var(--card); }
.mode-btn:hover { border-color: var(--primary); }
.mode-btn b { font-size: 1.1rem; }
.mode-btn span { font-size: .92rem; color: var(--ink-2); }
.mode-btn span b { font-size: inherit; color: var(--ink); }
.mode-btn.free { background: var(--primary); border-color: var(--primary); color: #fff; }
.mode-btn.free span { color: #DDE5F7; }
.mode-sub { margin: 1rem 0 .5rem; font-size: 1rem; color: var(--ink-2); }
.mode-daily { display: block; margin-top: .6rem; font-weight: 700; font-size: .92rem; }
.intro { text-align: center; }
.intro-ico { font-size: 3rem; }
.intro-mission { font-size: 1.15rem; background: #FFF6E0; border: 2px dashed var(--gold); border-radius: 14px; padding: .8rem 1rem; text-align: left; }
.intro-mission b { color: var(--bad); }
.intro-rules { text-align: left; padding-left: 0; list-style: none; margin: 1rem 0; display: flex; flex-direction: column; gap: .4rem; font-size: .98rem; }
.intro .btn { margin-top: .5rem; }
.result { text-align: center; }
.result h2 { font-size: 1.6rem; margin: .2rem 0; }
.result-big { font-size: 3.4rem; }
.result-stars .stars { font-size: 3rem; }
.result.win .result-stars .stars { animation: starPop .6s ease-out; display: inline-block; }
@keyframes starPop { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.15); } }
.score { font-size: 1.2rem; font-weight: 800; }
.score b { font-size: 3rem; color: var(--primary); }
.score em { font-style: normal; font-size: .9rem; background: var(--gold); color: #fff; padding: .1rem .6rem; border-radius: 999px; vertical-align: .6em; }
.score-parts { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; text-align: left; background: #F6F3EC; border-radius: 12px; padding: .7rem 1rem; margin: .8rem 0; font-size: .95rem; }
.score-parts dd { margin: 0; font-weight: 800; text-align: right; }
.result-sum { font-weight: 700; color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: .8rem 0; text-align: left; display: flex; flex-direction: column; gap: .35rem; }
.checks li { display: flex; gap: .6rem; align-items: center; padding: .45rem .8rem; border-radius: 10px; font-weight: 700; }
.checks li span { display: grid; place-items: center; flex: 0 0 1.8rem; height: 1.8rem; border-radius: 50%; color: #fff; font-weight: 900; }
.checks li.ok { background: #E8F4EA; }
.checks li.ok span { background: var(--good); }
.checks li.no { background: #FBE9E7; }
.checks li.no span { background: var(--bad); }
.paper-modal .modal-box { background: #FBF8F2; }
.paper-head { font-weight: 800; margin-bottom: .6rem; }
.paper-head small { color: var(--ink-2); font-weight: 600; }
.receipt { background: #fff; border-radius: 6px; padding: 1rem 1.1rem; font-size: .95rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); margin-bottom: 1rem; border-top: 6px dashed #E5E0D6; }
.receipt h3 { margin: 0 0 .3rem; text-align: center; }
.receipt h3 small { font-size: .75rem; color: #888; font-weight: 600; }
.rc-no { text-align: center; margin-bottom: .6rem; }
.rc-no b { font-size: 2rem; display: block; line-height: 1.1; }
.receipt ul { list-style: none; padding: .5rem 0; margin: 0; border-top: 1px dashed #BBB; border-bottom: 1px dashed #BBB; }
.receipt li, .rc-row { display: flex; justify-content: space-between; gap: .5rem; padding: .15rem 0; }
.receipt li small { color: #888; }
.rc-row.total { font-size: 1.15rem; padding-top: .4rem; }
.tickets { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1rem; }
.ticket { background: #FFF7E8; border: 2px solid #C9A66B; border-radius: 12px; padding: .8rem 1rem; }
.tk-top { display: flex; justify-content: space-between; font-size: .8rem; color: #7A5B2A; }
.tk-route { display: flex; align-items: center; gap: .5rem; font-size: 1.4rem; margin: .2rem 0 .4rem; }
.tk-route span { color: var(--accent); }
.tk-route em { font-style: normal; font-size: .8rem; background: #1B2A4A; color: #fff; border-radius: 999px; padding: .1rem .6rem; }
.tk-grid { display: grid; grid-template-columns: repeat(4, auto); gap: .4rem 1rem; }
.tk-grid small { display: block; font-size: .75rem; color: #7A6A50; }
.tk-grid b.big { font-size: 1.4rem; }
.tk-grid b.red { color: var(--bad); }
.tk-foot { display: flex; justify-content: space-between; border-top: 1px dashed #C9A66B; margin-top: .5rem; padding-top: .3rem; font-size: .9rem; }

/* ---------- 알아두기 ---------- */
.back { display: inline-block; margin: 1rem 0 .5rem; font-weight: 800; text-decoration: none; }
.lead { font-size: 1.1rem; color: var(--ink-2); }
.guide-list { display: flex; flex-direction: column; gap: .7rem; }
.glist { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.2rem; background: var(--card); border-radius: 16px; text-decoration: none; color: var(--ink); border: 2px solid var(--line); }
.glist:hover { border-color: var(--primary); }
.glist b { font-size: 1.15rem; }
.glist p { margin: .2rem 0 0; color: var(--ink-2); font-size: .95rem; }
.guide { max-width: 900px; margin: 0 auto; }
.guide-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.guide-ico { font-size: 3.2rem; line-height: 1; }
.guide-head h1 { margin: 0 0 .3rem; font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.3; }
.guide-head .lead { margin: 0 0 .7rem; }
.video-slot { border-radius: 18px; overflow: hidden; margin: 1rem 0 1.5rem; background: #111; aspect-ratio: 16 / 9; }
.video-slot iframe, .video-slot video { width: 100%; height: 100%; border: 0; display: block; }
.video-slot.empty { aspect-ratio: auto; display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; background: #ECE6DA; color: var(--ink-2); border: 2px dashed #C9BDA8; }
.video-slot.empty span { font-size: 2.2rem; }
.video-slot.empty b { color: var(--ink); }
.video-slot.empty p { margin: 0; font-size: .95rem; }
.gsteps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.gstep { display: grid; grid-template-columns: 220px 1fr; gap: 1.2rem; align-items: center; background: var(--card); border-radius: 18px; padding: 1.1rem; box-shadow: var(--shadow); }
.gstep-fig { display: grid; place-items: center; background: #F4EFE6; border-radius: 14px; min-height: 160px; padding: .6rem; }
.gstep-fig .fig { width: 100%; max-width: 220px; }
.gstep-body h2 { display: flex; gap: .6rem; align-items: center; margin: 0 0 .4rem; font-size: 1.25rem; }
.gstep-body .num { display: grid; place-items: center; flex: 0 0 2rem; height: 2rem; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1rem; }
.gstep-body p, .gstep-body ul, .gstep-body ol { margin: .3rem 0; font-size: 1.05rem; }
.gstep-body li { margin: .25rem 0; }
.fig-emoji { font-size: 3.4rem; letter-spacing: .1em; text-align: center; }
.fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; align-items: end; width: 100%; }
.fig-pair div { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.fig-pair svg { width: 100%; max-width: 100px; }
.fig-pair small { font-size: .75rem; text-align: center; color: var(--ink-2); font-weight: 700; }
.fig-qr svg { width: 150px; }
.fig-scan { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.fig-scan span { font-weight: 800; color: var(--accent); font-size: .9rem; }
.fig-scanbox { background: #23252D; color: #9FE0FF; border-radius: 8px; padding: .2rem 1rem; font-weight: 800; font-size: .85rem; }
.fig-card-move { animation: cardIn 2.4s ease-in-out infinite; }
@keyframes cardIn { 0%, 15% { transform: translateY(-14px); } 60%, 100% { transform: translateY(18px); } }
.fig-ripple { transform-origin: 72px 47px; animation: ripple 1.6s ease-out infinite; }
@keyframes ripple { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.demo { margin: 1.5rem 0; background: #1F2E57; color: #fff; border-radius: 20px; padding: 1.2rem; text-align: center; }
.demo h2 { margin: 0 0 .3rem; font-size: 1.25rem; }
.demo-msg { margin: 0 0 1rem; }
.demo-msg b { color: #7FFFD4; }
.demo-stage { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.demo-phone { border: 3px solid transparent; background: transparent; border-radius: 22px; padding: 4px; }
.demo-phone:hover:not(:disabled) { border-color: #FFB703; }
.demo-arrow { font-size: 2rem; color: #FFB703; }
.demo-scanner { display: flex; flex-direction: column; align-items: center; gap: .4rem; background: #23252D; border-radius: 14px; padding: 1rem 1.2rem; border: 2px solid #3A3D48; }
.demo-scanner .hw-glass { width: 90px; height: 40px; }
.guide-cta { text-align: center; margin: 1.6rem 0; }
.guide-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 2px solid var(--line); padding-top: 1rem; font-weight: 800; }
.guide-nav a { text-decoration: none; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 980px) {
  .practice { grid-template-columns: 1fr; gap: .8rem; padding-top: .5rem; }
  .coach { top: 0; z-index: 10; border-radius: 0 0 18px 18px; margin: 0 -16px; border-width: 0 0 2px; padding: .6rem 16px .7rem; gap: .5rem; }
  .coach-say { padding: .55rem .7rem; }
  .coach-text { font-size: 1rem; }
  .coach-btns { grid-template-columns: 1.6fr 1fr 1fr; gap: .4rem; }
  .cbtn-hint { grid-column: auto; font-size: .9rem; min-height: 2.8rem; }
  .cbtn { font-size: .82rem; min-height: 2.8rem; padding: .2rem .3rem; white-space: normal; line-height: 1.2; min-width: 0; }
  .coach-btns { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }
  .coach-tag { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .coach-mission { padding: .5rem .7rem; }
  .cm-text { font-size: .9rem; }
  .kiosk-screen { height: max(420px, calc(100svh - 370px)); }
  .coach-top { font-size: .88rem; }
  .coach-quit { padding: .15rem 0; }
  .coach-mission { cursor: pointer; }
  .coach-mission:not(.open) .cm-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cm-more { display: inline; float: right; font-size: .8rem; font-weight: 700; color: var(--ink-2); }
  .coach-mission.open .cm-more::after { content: '접기 ▲'; }
  .coach-mission:not(.open) .cm-more::after { content: '자세히 ▼'; }
  body[data-page="practice"] .topbar { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 1.4rem; }
  .hero-art { display: none; }
  .daily-cards, .place-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kiosk { border-radius: 18px; padding: 8px 8px 10px; }
  .kiosk-sign { display: none; }
  .kiosk-hw { gap: 6px; padding-top: 8px; }
  .hw { font-size: .72rem; padding: 7px 2px 6px; }
  .k-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gstep { grid-template-columns: 1fr; }
  .gstep-fig { min-height: 130px; }
  .guide-head { flex-direction: column; gap: .4rem; }
  .daily { padding: 1.1rem; border-radius: 18px; }
  .topbar { padding: .5rem 12px; }
  .brand { font-size: 1rem; }
  .voice-ctl { font-size: .8rem; padding: .3rem .7rem; }
  .k-methods.two { grid-template-columns: 1fr; }
  .tk-grid { grid-template-columns: repeat(2, auto); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
