/* Sign It — visual design */
:root {
  --bg0: #070b1d; --bg1: #0f1736; --bg2: #18245a;
  --ink: #f4f6ff; --ink2: #b8c1ec; --ink3: #7d88bd;
  --cyan: #6ef2ff; --pink: #ff7eb6; --yellow: #ffd166; --purple: #8b7bff; --green: #5fe3a1; --orange: #ff9f5a; --red: #ff6b81;
  --card: rgba(255, 255, 255, 0.06); --card2: rgba(255, 255, 255, 0.1); --line: rgba(255, 255, 255, 0.12);
  --radius: 22px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Arial Rounded MT Bold', system-ui, sans-serif, 'Noto Color Emoji', 'Segoe UI Emoji', 'Apple Color Emoji';
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg0); color: var(--ink); font-family: var(--font); font-weight: 500; -webkit-font-smoothing: antialiased; user-select: none; }
button, input, select { font-family: inherit; }
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
#app { position: relative; z-index: 1; height: 100%; }
.hidden { display: none !important; }

/* ---------- screens ---------- */
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 18px 26px 22px; animation: screenIn 0.45s cubic-bezier(.2, .8, .2, 1); }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
.topbar { display: flex; align-items: center; gap: 14px; min-height: 56px; margin-bottom: 14px; }
.topbar h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: 0.3px; flex: 1; }
.topbar .sub { color: var(--ink2); font-size: 15px; font-weight: 500; margin-left: 8px; }

/* ---------- buttons ---------- */
.btn { --c: var(--purple); position: relative; border: 0; cursor: pointer; color: #fff; font-weight: 800; font-size: 18px; padding: 14px 24px; border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 92%, #fff 8%), color-mix(in srgb, var(--c) 80%, #000 20%));
  box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 55%, #000 45%), 0 12px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.12s, box-shadow 0.12s, filter 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 55%, #000 45%), 0 6px 12px rgba(0, 0, 0, 0.3); }
.btn:disabled { filter: grayscale(0.8) brightness(0.7); cursor: not-allowed; transform: none; }
.btn.small { font-size: 15px; padding: 10px 16px; border-radius: 14px; }
.btn.ghost { background: var(--card2); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:active { box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.cyan { --c: #23b7d6; } .btn.pink { --c: #ef4f97; } .btn.green { --c: #24b47e; } .btn.yellow { --c: #e7a91c; } .btn.orange { --c: #f07b2c; } .btn.red { --c: #e2445e; }
.icon-btn { width: 52px; height: 52px; padding: 0; border-radius: 16px; font-size: 22px; }

/* ---------- title ---------- */
.title-screen { align-items: center; justify-content: flex-start; padding-top: 22px; overflow-y: auto; }
.logo { display: flex; align-items: center; gap: 18px; margin-top: 4px; }
.logo-mark { width: 96px; height: 96px; filter: drop-shadow(0 10px 30px rgba(110, 242, 255, 0.4)); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-3deg); } }
.logo h1 { margin: 0; font-size: 74px; font-weight: 800; line-height: 1; letter-spacing: 1px;
  background: linear-gradient(100deg, var(--cyan), #9ab0ff 40%, var(--pink) 75%, var(--yellow)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.35)); }
.tagline { color: var(--ink2); font-size: 20px; margin: 8px 0 2px; text-align: center; }
.all-ages { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--green); background: rgba(95, 227, 161, 0.12); border: 1px solid rgba(95, 227, 161, 0.35); padding: 4px 12px; border-radius: 99px; margin-top: 6px; }
.title-main { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; width: min(1100px, 100%); margin-top: 22px; }
.mode-card { position: relative; border-radius: 28px; padding: 22px 24px; cursor: pointer; overflow: hidden; min-height: 210px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform 0.2s, border-color 0.2s; }
.mode-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.3); }
.mode-card::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 70%); opacity: 0.55; }
.mode-card h3 { margin: 0; font-size: 34px; font-weight: 800; position: relative; }
.mode-card p { margin: 6px 0 12px; color: var(--ink2); position: relative; }
.mode-card .mini-grid { position: relative; display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.mini-dot { aspect-ratio: 1; border-radius: 8px; background: rgba(255, 255, 255, 0.08); display: grid; place-items: center; font-size: 12px; color: var(--ink3); font-weight: 800; }
.mini-dot.done { background: var(--c, var(--green)); color: #06210f; }
.mini-dot.quiz { outline: 2px dashed var(--yellow); outline-offset: 1px; }
.mode-card .progress { position: relative; margin-top: 12px; font-weight: 800; color: var(--ink); }
.title-toggles { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.toggle-group { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); padding: 8px 10px 8px 16px; border-radius: 18px; }
.toggle-group .lbl { font-weight: 800; color: var(--ink2); font-size: 15px; }
.seg { display: flex; background: rgba(0, 0, 0, 0.3); border-radius: 13px; padding: 3px; }
.seg button { border: 0; background: transparent; color: var(--ink2); font-weight: 800; font-size: 15px; padding: 8px 14px; border-radius: 10px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.seg button.on { background: var(--c, var(--purple)); color: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); }
.switch { position: relative; width: 66px; height: 36px; border-radius: 99px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); cursor: pointer; transition: background 0.25s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); transition: transform 0.25s cubic-bezier(.3, 1.4, .5, 1); }
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(30px); }
.title-menu { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.title-foot { margin-top: auto; padding-top: 14px; color: var(--ink3); font-size: 13px; text-align: center; }

/* ---------- grids ---------- */
.grid-wrap { flex: 1; overflow-y: auto; padding: 4px 4px 20px; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.item { position: relative; border-radius: 22px; padding: 16px; background: rgba(24, 34, 80, 0.8); border: 1px solid var(--line); cursor: pointer; transition: transform 0.15s, background 0.2s; min-height: 150px; display: flex; flex-direction: column; gap: 6px; }
.item:hover { transform: translateY(-3px); background: rgba(40, 54, 120, 0.9); }
.item .num { font-size: 13px; font-weight: 800; color: var(--ink3); letter-spacing: 1px; text-transform: uppercase; }
.item .name { font-size: 20px; font-weight: 800; }
.item .chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.chip { font-size: 14px; font-weight: 800; background: rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 3px 8px; }
.item.locked { opacity: 0.45; cursor: not-allowed; }
.item.locked::after { content: '🔒'; position: absolute; top: 12px; right: 14px; font-size: 20px; }
.item.done { border-color: rgba(95, 227, 161, 0.5); }
.item.done::after { content: '✓'; position: absolute; top: 10px; right: 14px; font-size: 20px; color: var(--green); font-weight: 800; }
.item.quiz-item { background: linear-gradient(150deg, rgba(255, 209, 102, 0.22), rgba(255, 126, 182, 0.12)); border-color: rgba(255, 209, 102, 0.5); }
.item .stars { font-size: 22px; letter-spacing: 2px; }
.section-label { font-weight: 800; color: var(--ink2); margin: 18px 4px 10px; font-size: 16px; letter-spacing: 0.5px; display: flex; align-items: center; gap: 10px; }
.section-label .pill { font-size: 12px; background: var(--card2); padding: 3px 10px; border-radius: 99px; color: var(--ink2); }
.star { color: rgba(255, 255, 255, 0.18); } .star.on { color: var(--yellow); text-shadow: 0 0 12px rgba(255, 209, 102, 0.6); }

/* ---------- split (game | camera) ---------- */
.split { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; min-height: 0; }
.split.single { grid-template-columns: 1fr; }
.panel { position: relative; border-radius: 26px; background: linear-gradient(160deg, rgba(30, 40, 92, 0.92), rgba(14, 20, 50, 0.94)); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-weight: 800; color: var(--ink2); font-size: 15px; }
.panel-head .tag { margin-left: auto; font-size: 12px; padding: 3px 10px; border-radius: 99px; background: rgba(110, 242, 255, 0.12); color: var(--cyan); }
.panel-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.panel canvas.fill { position: absolute; inset: 0; width: 100%; height: 100%; }
.panel-foot { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cam-off-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; color: var(--ink2); font-size: 18px; }
.cam-off-msg .big { font-size: 64px; display: block; margin-bottom: 10px; }

.target-big { font-size: 120px; font-weight: 800; line-height: 1; text-align: center; background: linear-gradient(180deg, #fff, #c9d2ff); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 8px 20px rgba(139, 123, 255, 0.5)); }
.word-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 10px; }
.word-row .ltr { min-width: 64px; height: 78px; display: grid; place-items: center; font-size: 46px; font-weight: 800; border-radius: 16px; background: rgba(255, 255, 255, 0.07); border: 2px solid var(--line); transition: all 0.3s; position: relative; }
.word-row .ltr.cur { border-color: var(--cyan); background: rgba(110, 242, 255, 0.14); transform: translateY(-4px); box-shadow: 0 0 24px rgba(110, 242, 255, 0.35); }
.word-row .ltr.ok { border-color: var(--green); background: rgba(95, 227, 161, 0.16); }
.word-row .ltr.miss { border-color: var(--red); background: rgba(255, 107, 129, 0.14); }
.word-row .ltr .mini-stars { position: absolute; bottom: -18px; font-size: 12px; letter-spacing: 1px; }
.word-row .gap { width: 22px; }
.word-row .ltr.hidden-ltr { color: transparent; }

.meter { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; gap: 12px; align-items: center; pointer-events: none; }
.meter .bar { flex: 1; height: 16px; border-radius: 99px; background: rgba(0, 0, 0, 0.45); overflow: hidden; position: relative; border: 1px solid var(--line); }
.meter .bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--red), var(--yellow) 45%, var(--green)); transition: width 0.12s; }
.meter .bar .tick { position: absolute; top: -2px; bottom: -2px; width: 2px; background: rgba(255, 255, 255, 0.5); }
.meter .lbl { font-weight: 800; min-width: 120px; text-align: right; text-shadow: 0 2px 6px #000; }
.hold-ring { position: absolute; top: 16px; right: 16px; width: 74px; height: 74px; }
.feedback { position: absolute; top: 16px; left: 16px; right: 100px; font-weight: 800; font-size: 18px; text-shadow: 0 2px 8px #000; }
.feedback .tip { display: inline-block; margin-top: 6px; font-size: 14px; padding: 4px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.5); color: var(--yellow); }

.burst { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 5; }
.burst .stars-big { font-size: 74px; letter-spacing: 6px; animation: pop 0.6s cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(0 6px 20px rgba(255, 209, 102, 0.6)); }
.burst .word { font-size: 34px; font-weight: 800; text-align: center; animation: pop 0.6s 0.1s both cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- lesson ---------- */
.steps { display: flex; gap: 6px; }
.steps i { width: 30px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.15); }
.steps i.on { background: var(--cyan); }
.steps i.done { background: var(--green); }
.lesson-info { padding: 14px 20px; }
.lesson-info h3 { margin: 0 0 6px; font-size: 30px; font-weight: 800; }
.lesson-info p { margin: 0; color: var(--ink2); font-size: 18px; line-height: 1.5; }
.mouth-tip { margin: 8px 20px 0; padding: 10px 14px; border-radius: 14px; background: rgba(255, 126, 182, 0.12); border: 1px solid rgba(255, 126, 182, 0.35); color: #ffd3e6; font-size: 16px; }
.gloss { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 20px; }
.gloss span { padding: 6px 12px; border-radius: 12px; background: var(--card2); font-weight: 800; transition: all 0.2s; }
.gloss span.on { background: var(--cyan); color: #04222b; transform: translateY(-2px); }

/* ---------- quiz ---------- */
.quiz-q { font-size: 28px; font-weight: 800; text-align: center; padding: 16px; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 16px; }
.choice { border-radius: 20px; background: var(--card2); border: 2px solid var(--line); padding: 16px; cursor: pointer; font-size: 30px; font-weight: 800; color: var(--ink); min-height: 86px; display: grid; place-items: center; transition: transform 0.12s, border-color 0.2s, background 0.2s; }
.choice:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.35); }
.choice.right { border-color: var(--green); background: rgba(95, 227, 161, 0.2); }
.choice.wrong { border-color: var(--red); background: rgba(255, 107, 129, 0.18); animation: shake 0.35s; }
.choice canvas { width: 140px; height: 140px; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- results ---------- */
.result { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.result h2 { font-size: 52px; margin: 0; font-weight: 800; }
.result .stars-big { font-size: 90px; letter-spacing: 10px; }
.result .stars-big .star { display: inline-block; animation: pop 0.6s both cubic-bezier(.3, 1.6, .5, 1); }
.result .stars-big .star:nth-child(2) { animation-delay: 0.25s; } .result .stars-big .star:nth-child(3) { animation-delay: 0.5s; }
.result .stats { display: flex; gap: 16px; }
.stat-card { background: rgba(24, 34, 80, 0.85); border: 1px solid var(--line); border-radius: 18px; padding: 14px 22px; min-width: 150px; }
.stat-card .v { font-size: 32px; font-weight: 800; }
.stat-card .k { color: var(--ink2); font-size: 14px; }

/* ---------- parents ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { border: 0; padding: 10px 16px; border-radius: 14px; background: var(--card); color: var(--ink2); font-weight: 800; font-size: 15px; cursor: pointer; }
.tabs button.on { background: var(--purple); color: #fff; }
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.p-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 15px; }
.p-table th { text-align: left; color: var(--ink3); font-weight: 800; padding: 4px 12px; font-size: 13px; }
.p-table td { background: var(--card); padding: 10px 12px; }
.p-table td:first-child { border-radius: 12px 0 0 12px; font-weight: 800; }
.p-table td:last-child { border-radius: 0 12px 12px 0; }
.ratio { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, 0.08); min-width: 120px; }
.ratio .s { background: var(--green); } .ratio .f { background: var(--red); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; }
.badge.ok { background: rgba(95, 227, 161, 0.2); color: var(--green); } .badge.no { background: rgba(255, 107, 129, 0.2); color: var(--red); } .badge.na { background: rgba(255, 255, 255, 0.1); color: var(--ink3); }
.setting-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--card); border-radius: 16px; margin-bottom: 10px; }
.setting-row .t { flex: 1; }
.setting-row input[type=range] { width: 200px; accent-color: var(--cyan); }
.note { color: var(--ink2); font-size: 14px; line-height: 1.5; }

/* ---------- credits ---------- */
.credits { flex: 1; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding-bottom: 30px; }
.credit-card { width: min(720px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px 24px; }
.credit-card h4 { margin: 0 0 6px; color: var(--ink3); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
.credit-card .v { font-size: 24px; font-weight: 800; }
.credit-card a { color: var(--cyan); text-decoration: none; cursor: pointer; }
.credit-card a:hover { text-decoration: underline; }
.credit-card p { color: var(--ink2); line-height: 1.6; margin: 8px 0 0; font-size: 15px; }

/* ---------- tutorial ---------- */
.tut-text { padding: 18px 22px; overflow-y: auto; }
.tut-text h3 { margin: 0 0 10px; font-size: 30px; font-weight: 800; }
.tut-text p, .tut-text li { color: var(--ink2); font-size: 18px; line-height: 1.6; }
.tut-text b { color: var(--ink); }
.param-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.param { background: var(--card2); border-radius: 16px; padding: 12px; }
.param .e { font-size: 30px; } .param .n { font-weight: 800; } .param .d { font-size: 14px; color: var(--ink2); }

/* ---------- modal / toast / caption ---------- */
.modal-back { position: fixed; inset: 0; z-index: 50; background: rgba(3, 6, 20, 0.72); backdrop-filter: blur(6px); display: grid; place-items: center; animation: fadeIn 0.25s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { width: min(560px, 92vw); background: linear-gradient(160deg, #1d2a66, #121a40); border: 1px solid var(--line); border-radius: 28px; padding: 26px; box-shadow: var(--shadow); animation: pop 0.35s cubic-bezier(.3, 1.4, .5, 1); }
.modal h3 { margin: 0 0 8px; font-size: 28px; font-weight: 800; }
.modal p { color: var(--ink2); line-height: 1.55; }
.modal .row { display: flex; gap: 12px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.modal input[type=number] { width: 140px; font-size: 26px; font-weight: 800; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--line); background: rgba(0, 0, 0, 0.3); color: #fff; text-align: center; }
.modal label.check { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); margin-top: 14px; cursor: pointer; line-height: 1.4; }
.modal label.check input { width: 22px; height: 22px; accent-color: var(--green); flex-shrink: 0; }
.err { color: var(--red); font-weight: 800; min-height: 22px; margin-top: 8px; }
#toast-root { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: rgba(20, 28, 70, 0.95); border: 1px solid var(--line); padding: 12px 20px; border-radius: 16px; font-weight: 800; box-shadow: var(--shadow); animation: toastIn 0.35s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes toastIn { from { transform: translateY(-20px); opacity: 0; } }
.caption { position: fixed; left: 50%; top: 74px; transform: translate(-50%, -20px); z-index: 40; max-width: 52vw; padding: 10px 20px; border-radius: 18px; background: rgba(8, 12, 32, 0.94); border: 1px solid rgba(110, 242, 255, 0.35); font-size: 17px; box-shadow: var(--shadow); font-weight: 800; opacity: 0; transition: all 0.3s; pointer-events: none; }
.caption.show { opacity: 1; transform: translate(-50%, 0); }
.caption::before { content: '🔊 '; }
.cam-indicator { position: fixed; top: 14px; right: 18px; z-index: 45; display: flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 99px; background: rgba(255, 70, 100, 0.18); border: 1px solid rgba(255, 70, 100, 0.5); font-size: 13px; font-weight: 800; color: #ffd0d8; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff4664; box-shadow: 0 0 10px #ff4664; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 5px solid rgba(255, 255, 255, 0.15); border-top-color: var(--cyan); animation: spin 0.9s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 99px; }

@media (max-width: 900px) {
  .title-main { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .logo h1 { font-size: 54px; }
}
.btn.pulse { animation: pulseGlow 1.3s ease-in-out infinite; }
@keyframes pulseGlow { 50% { filter: brightness(1.25); box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 55%, #000 45%), 0 0 28px color-mix(in srgb, var(--c) 70%, transparent); } }
.privacy-modal { text-align: center; }
.privacy-modal h3 { margin-top: 6px; }
.privacy-badge { display: grid; place-items: center; margin: 0 auto 4px; width: 96px; height: 96px; border-radius: 50%; background: rgba(95, 227, 161, 0.14); box-shadow: 0 0 40px rgba(95, 227, 161, 0.35); animation: pop 0.5s cubic-bezier(.3, 1.6, .5, 1); }
.privacy-row { display: flex; gap: 14px; align-items: center; text-align: left; background: rgba(255, 255, 255, 0.06); border-radius: 14px; padding: 12px 14px; margin-top: 10px; font-size: 17px; line-height: 1.45; }
.privacy-row:first-of-type { border: 1.5px solid rgba(95, 227, 161, 0.55); font-weight: 800; color: #c9ffe6; }
.privacy-ico { font-size: 22px; min-width: 44px; text-align: center; }
.privacy-modal .row { justify-content: center; }
.panel-head .tag.private { background: rgba(95, 227, 161, 0.14); color: var(--green); }
.calib-ready { text-align: center; padding: 6px 0; }
.calib-check { width: 84px; height: 84px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 50px; font-weight: 800; color: #06301f; background: var(--green); box-shadow: 0 0 40px rgba(95, 227, 161, 0.6); animation: pop 0.6s cubic-bezier(.3, 1.6, .5, 1); }
.calib-ready h3 { color: var(--green); }
.auto-box { display: flex; align-items: center; gap: 12px; min-height: 48px; color: var(--ink2); font-weight: 800; }
.auto-ring { width: 44px; height: 44px; }
.btn .auto-ring { width: 28px; height: 28px; }
.auto-toggle { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--ink2); }
.auto-toggle .switch { width: 52px; height: 30px; }
.auto-toggle .switch::after { width: 22px; height: 22px; }
.auto-toggle .switch.on::after { transform: translateX(22px); }
.coach { margin: 8px 20px 0; padding: 10px 14px; border-radius: 14px; background: rgba(110, 242, 255, 0.08); border: 1px solid rgba(110, 242, 255, 0.35); }
.coach .coach-title { font-size: 13px; font-weight: 800; color: var(--cyan); letter-spacing: 1px; text-transform: uppercase; display: flex; gap: 8px; align-items: center; }
.coach .coach-tip { font-size: 19px; font-weight: 800; margin-top: 4px; color: #fff; min-height: 28px; }
.coach .coach-tip.ok { color: var(--green); }
.coach .chips { display: flex; gap: 6px; margin-top: 6px; }
.coach .cchip { font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: rgba(255, 107, 129, 0.18); color: #ffc2cc; }
.coach .cchip.ok { background: rgba(95, 227, 161, 0.18); color: var(--green); }
.gloss span.done-tok { background: rgba(95, 227, 161, 0.25); color: var(--green); }
.kbd-hint { font-size: 13px; font-weight: 800; color: var(--ink3); padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; }
