/* 박단어 — 박패스·박스쿨과 같은 디자인 토큰을 쓰는 모바일 퍼스트 단어장 */
:root{
  --ink:#152642;--muted:#74829a;--bg:#f5f7fc;--surface:#fff;--line:#e7ebf3;
  --blue:#4167f5;--blue-deep:#2448de;--light:#edf1ff;--success:#12a48f;
  --red:#e45c68;--purple:#7457bd;--orange:#e8873c;--radius:20px;
  --shadow:0 8px 28px rgba(26,48,97,.06);
  font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic","Helvetica Neue",Arial,"Liberation Sans","FreeSans","Noto Sans KR","DejaVu Sans",sans-serif;
  color-scheme:light;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#e9edf5}
body{font-size:14px;line-height:1.5;color:var(--ink);-webkit-tap-highlight-color:transparent;word-break:keep-all}
button,input,select{font:inherit}
button{border:0;cursor:pointer;background:none;color:inherit}
button:disabled{cursor:not-allowed;opacity:.42}
h1,h2,h3,p{margin:0}
a{color:inherit}
.phone{max-width:460px;margin:auto;min-height:100svh;background:var(--bg);position:relative;box-shadow:0 0 70px rgba(28,50,80,.10)}
.page{padding:0 20px calc(98px + env(safe-area-inset-bottom));min-height:100svh}
.page.solo{padding-bottom:calc(34px + env(safe-area-inset-bottom))}
.page.quizbar{padding-bottom:calc(98px + env(safe-area-inset-bottom))}
.intro{padding:2px 0 16px}
.intro h1{font-size:25px;font-weight:850;letter-spacing:-.06em;line-height:1.28}
.intro p{color:var(--muted);font-size:12.5px;margin-top:6px;line-height:1.55}
.rowline{display:flex;justify-content:space-between;align-items:baseline}
.small{font-size:12px}.muted{color:var(--muted)}.strong{font-weight:800}

/* ── 상단 바 ───────────────────────────── */
.topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px 0 14px}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.logo{width:39px;height:39px;border-radius:13px;background:linear-gradient(145deg,#516eff,#714fd6);color:#fff;display:grid;place-items:center;font-size:18px;font-weight:900;box-shadow:0 5px 12px #3552d02f;flex:none;letter-spacing:-.04em}
.brandname{font-size:18px;font-weight:900;letter-spacing:-.045em;line-height:1.2}
.brandsub{font-size:11px;color:var(--muted);margin-top:2px}
.streakpill{background:#fff;border:1px solid var(--line);border-radius:999px;padding:7px 11px;font-size:11px;font-weight:800;color:#4a5d80;white-space:nowrap;box-shadow:var(--shadow)}
.streakpill b{color:var(--orange)}
.back{display:inline-flex;align-items:center;gap:4px;min-height:44px;font-size:15px;font-weight:850;color:#33496f;padding:6px 8px 6px 0;letter-spacing:-.03em}
.topbar .close{width:38px;height:38px;border-radius:12px;background:#fff;border:1px solid var(--line);display:grid;place-items:center;font-size:17px;color:#5d6f8d;flex:none}
.topbar-title{font-size:14px;font-weight:850;letter-spacing:-.03em;color:#33496f;flex:1;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.counter{font-size:12px;font-weight:800;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}

/* ── 히어로 ───────────────────────────── */
.hero{background:linear-gradient(127deg,#192b5a 0%,#334eaa 62%,#655ee0 100%);color:#fff;border-radius:24px;padding:21px 21px 20px;position:relative;overflow:hidden;box-shadow:0 12px 22px #24398b25}
.hero:after{content:"";position:absolute;width:190px;height:190px;border:1px solid #ffffff29;border-radius:50%;right:-70px;top:-72px;box-shadow:0 0 0 40px #ffffff07,0 0 0 84px #ffffff05;pointer-events:none}
.hero>*{position:relative;z-index:1}
.hero-kicker{font-size:11px;font-weight:800;color:#cfd9ff;letter-spacing:-.01em}
.hero h2{font-size:22px;line-height:1.42;letter-spacing:-.06em;margin:10px 0 6px;font-weight:850;max-width:78%}
.hero .sub{color:#c9d4fb;font-size:12px;line-height:1.5}
.hero .cta{margin-top:17px;background:#fff;color:#253d8b;border-radius:13px;padding:13px 15px;font-weight:800;font-size:13px;display:flex;justify-content:space-between;align-items:center;width:100%;box-shadow:0 6px 14px #0f1e4a33}
.hero .cta:active{transform:scale(.99)}
.hero-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.ringwrap{width:70px;text-align:center;flex:none}
.ring{width:70px;height:70px;border-radius:50%;background:conic-gradient(#9ce9da calc(var(--p,0) * 1%), #ffffff2e 0);display:grid;place-items:center;position:relative;margin:0 auto}
.ring:after{content:"";position:absolute;inset:7px;border-radius:50%;background:#2c4695}
.ring b{position:relative;z-index:1;font-size:15px;font-weight:850;letter-spacing:-.03em}
.ringcap{display:block;font-size:10px;color:#c9d4fb;margin-top:6px;font-weight:700}

/* ── 지표 ─────────────────────────────── */
.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:13px}
.metric{background:#fff;border:1px solid var(--line);border-radius:17px;padding:13px 11px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:2px;text-align:left}
.metric span{color:var(--muted);font-size:11px;font-weight:700}
.metric b{font-size:20px;letter-spacing:-.05em;font-weight:850;line-height:1.25}
.metric b em{font-size:11px;font-weight:700;color:#a0aabd;font-style:normal;margin-left:1px}

/* ── 섹션 ─────────────────────────────── */
.sectionbar{display:flex;justify-content:space-between;align-items:baseline;margin:26px 0 11px;gap:8px}
.sectionbar h2{font-size:17px;letter-spacing:-.045em;font-weight:850}
.sectionbar .link{font-size:12px;color:var(--blue);font-weight:800;white-space:nowrap}

/* ── 학습 카드 ────────────────────────── */
.feature{display:flex;gap:13px;align-items:center;width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;box-shadow:var(--shadow);margin-bottom:9px;transition:transform .12s ease}
.feature:active{transform:scale(.99)}
.fico{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;font-size:20px;flex:none;background:#eef2ff}
.fico.t1{background:#f3edff}.fico.t2{background:#e8f8f4}
.fbody{flex:1;min-width:0}
.fbody b{display:block;font-size:14.5px;letter-spacing:-.03em}
.fbody small{display:block;color:var(--muted);font-size:11.5px;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fcount{font-size:11px;font-weight:800;color:#4566e0;background:#f0f4ff;border-radius:9px;padding:5px 8px;white-space:nowrap}
.arrow{color:#b3bccd;font-size:20px;line-height:1;margin-left:2px}

/* ── Day 격자 ─────────────────────────── */
.daygrid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.daytile{background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px 11px 11px;text-align:left;box-shadow:var(--shadow)}
.daytile:active{transform:scale(.985)}
.dnum{font-size:12px;font-weight:850;color:var(--blue);letter-spacing:-.02em}
.dtitle{display:block;font-size:10.5px;color:var(--muted);margin:2px 0 9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dbar{display:block;height:4px;border-radius:9px;background:#e9edf7;overflow:hidden}
.dbar i{display:block;height:100%;border-radius:9px;background:linear-gradient(90deg,#4b70fa,#9d8bf7)}
.dmeta{display:block;font-size:9.5px;color:#96a2b6;margin-top:6px;font-weight:800;letter-spacing:-.01em}
.daytile.done{border-color:#bde9dd;background:#f6fdfb}
.daytile.done .dbar i{background:linear-gradient(90deg,#12a48f,#5ed3bd)}

/* ── 패널·범위 선택 ───────────────────── */
.panel{background:#fff;border:1px solid var(--line);border-radius:20px;padding:16px;margin-bottom:11px;box-shadow:var(--shadow)}
.panel h3{font-size:14px;margin:0 0 4px;letter-spacing:-.04em;font-weight:850}
.panel p{color:var(--muted);font-size:12px}
.chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}
.chip{padding:9px 13px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:12px;font-weight:800;color:#67758e;white-space:nowrap}
.chip.on{background:#26375b;color:#fff;border-color:#26375b}
.chip.bad.on{background:#c4505d;border-color:#c4505d}
.daychips{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin-top:10px}
.daychips .chip{padding:9px 0;text-align:center;border-radius:11px;font-size:11.5px}
.togglerow{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.togglerow:first-of-type{border-top:0;padding-top:6px}
.togglerow b{display:block;font-size:13px;letter-spacing:-.02em}
.togglerow small{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.switch{width:46px;height:27px;border-radius:999px;background:#dfe5f1;position:relative;transition:background .16s;flex:none;border:0}
.switch:after{content:"";position:absolute;top:3px;left:3px;width:21px;height:21px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(20,40,80,.22);transition:left .16s}
.switch.on{background:var(--blue)}
.switch.on:after{left:22px}
.seg{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:#ecf0f8;border-radius:14px;padding:4px;margin-top:10px}
.seg button{border-radius:11px;padding:11px 8px;font-size:12.5px;font-weight:800;color:#6b7890;line-height:1.35}
.seg button.on{background:#fff;color:#253d8b;box-shadow:0 2px 8px rgba(30,50,90,.10)}

/* ── 버튼 ─────────────────────────────── */
.btn{background:var(--blue);color:#fff;border-radius:15px;padding:14px 18px;display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:800;gap:8px;letter-spacing:-.02em}
.btn.full{width:100%}
.btn.ghost{background:#fff;color:#273956;border:1px solid var(--line)}
.btn.soft{background:#ecf0ff;color:#3e5ae0}
.btn:active{transform:scale(.99)}
.stack{display:flex;flex-direction:column;gap:9px}
.rowbtn{display:grid;grid-template-columns:1fr 1fr;gap:9px}

/* ── 진도 ─────────────────────────────── */
.progress{height:7px;background:#e4e9f4;border-radius:20px;overflow:hidden}
.progress > i{display:block;background:linear-gradient(90deg,#4269fb,#a18bf9);height:100%;border-radius:20px;transition:width .2s}

/* ── 플래시카드 ───────────────────────── */
.fcbar{display:flex;justify-content:space-between;align-items:center;margin:2px 0 12px;gap:10px}
.fcard{perspective:1200px}
.fcard-inner{position:relative;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 10px 30px rgba(26,48,97,.09);padding:24px 22px 18px;min-height:306px;display:flex;flex-direction:column;transition:transform .16s ease, opacity .16s ease;transform-style:preserve-3d}
.fcard-inner.swap{transform:rotateY(88deg);opacity:.35}
.cardpos{display:flex;gap:6px;align-items:center;margin-bottom:18px;flex-wrap:wrap}
.tag{background:#f0f4ff;color:#4566e0;border-radius:9px;padding:5px 9px;font-size:11px;font-weight:800;white-space:nowrap}
.tag.gray{background:#f2f5fa;color:#71809a}
.tag.green{background:#e4f8f4;color:#087d73}
.tag.orange{background:#fff1e6;color:#b86a2d}
.tag.purple{background:#f3edff;color:#6a4fb4}
.fc-word{font-size:38px;font-weight:900;letter-spacing:-.05em;line-height:1.16;word-break:break-word}
.fc-word.long{font-size:26px;line-height:1.3}
.fc-phon{color:#8b97ab;font-size:13px;margin-top:8px}
.fc-tools{display:flex;gap:7px;flex-wrap:wrap;margin-top:16px}
.fc-speak{display:inline-flex;align-items:center;gap:7px;background:#eef2ff;color:#3b5bdd;border-radius:12px;padding:9px 13px;font-size:12px;font-weight:800}
.fc-speak.ghost{background:#f4f6fb;color:#68789a}
.fc-ex{margin-top:16px;padding-top:14px;border-top:1px dashed #e3e9f4;font-size:13px;line-height:1.65;color:#3d4f6b}
.fc-ex small{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.fc-body{flex:1;display:flex;flex-direction:column;justify-content:center;padding:4px 0 8px;min-height:0}
.fc-hint{padding-top:12px;text-align:center;font-size:11px;color:#a6b0c2;font-weight:700}
.fc-backword{font-size:14px;font-weight:800;color:#8492a9;letter-spacing:-.01em;margin-bottom:9px}
.fc-backword span{font-weight:600;color:#a7b2c4;font-size:11.5px;margin-left:6px}
.fc-meaning{font-size:25px;font-weight:850;letter-spacing:-.045em;line-height:1.42;color:#17294a}
.fc-meaning.masked{filter:blur(6px);user-select:none;color:#9aa6bb}
.fc-syn{margin-top:11px;font-size:12.5px;color:#5a6d8c}
.fc-syn b{color:#3f6ae0;font-weight:800}
.maskbtn{display:inline-flex;align-items:center;gap:6px;margin-top:12px;background:#f4f7ff;border:1px dashed #c9d6f7;color:#4262c9;border-radius:12px;padding:10px 12px;font-size:12px;font-weight:800}
.fcactions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:13px}
.btn-conf{background:#fff8f1;color:#b96a25;border:1px solid #f3d9bf;border-radius:16px;padding:15px 10px;font-weight:850;font-size:14px;letter-spacing:-.02em}
.btn-known{background:var(--success);color:#fff;border-radius:16px;padding:15px 10px;font-weight:850;font-size:14px;letter-spacing:-.02em;box-shadow:0 7px 16px rgba(18,164,143,.22)}
.btn-conf:active,.btn-known:active{transform:scale(.99)}
.fcnav{display:flex;justify-content:space-between;align-items:center;margin-top:12px}
.fcnav button{font-size:12px;font-weight:800;color:#6b7890;padding:9px 4px}
.fcnav .today{font-size:11px;color:#a0aabd;font-weight:700}

/* ── 퀴즈 ─────────────────────────────── */
.qkicker{font-size:12px;color:#7183a0;font-weight:750;letter-spacing:-.01em}
.qword{font-size:31px;font-weight:900;letter-spacing:-.045em;line-height:1.2;margin-top:9px;display:flex;align-items:center;gap:9px;flex-wrap:wrap;word-break:break-word}
.qword.long{font-size:24px;line-height:1.28}
.qmeaning{font-size:22px;font-weight:850;letter-spacing:-.035em;line-height:1.45;margin-top:9px}
.qphon{font-size:12.5px;color:#8b97ab;margin-top:6px}
.question{background:#fff;border:1px solid var(--line);padding:19px 17px 17px;border-radius:22px;box-shadow:var(--shadow)}
.speakbtn{width:37px;height:37px;border-radius:12px;background:#eef2ff;color:#3b5bdd;display:grid;place-items:center;font-size:16px;flex:none;border:0}
.options{margin-top:17px;display:flex;flex-direction:column;gap:8px}
.option{position:relative;display:flex;align-items:center;min-height:60px;gap:11px;padding:11px 13px;border:1px solid #e0e6f2;border-radius:16px;background:linear-gradient(180deg,#fff 0%,#fbfcff 100%);box-shadow:0 4px 11px rgba(44,66,115,.05);color:#203252;text-align:left;width:100%;transition:background .16s,border-color .16s,box-shadow .16s,transform .1s}
.option:active{transform:scale(.99)}
.option .number{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border-radius:11px;background:#f3f5fb;border:1px solid #e2e8f4;color:#42536f;font-size:13px;font-weight:850;line-height:1;font-variant-numeric:tabular-nums}
.option .choice-copy{min-width:0;flex:1;font-size:13.5px;line-height:1.65;overflow-wrap:anywhere}
.option .choice-copy.word{font-size:15.5px;font-weight:750;letter-spacing:-.01em}
.option .choice-sub{display:block;font-size:11px;color:#93a0b5;margin-top:2px;font-weight:600}
.option.selected:not(.correct):not(.wrongpick){background:linear-gradient(165deg,#f5f7ff 0%,#edf2ff 100%);border-color:#6280f3;box-shadow:0 0 0 1px rgba(71,104,242,.18),0 7px 19px rgba(60,86,201,.12)}
.option.selected:not(.correct):not(.wrongpick) .number{background:linear-gradient(145deg,#5374fd,#3e5fe2);border-color:transparent;color:#fff}
.option.correct{background:linear-gradient(160deg,#f4fffc,#e6f9f1);border-color:#32b79b;box-shadow:0 0 0 1px rgba(18,164,143,.12)}
.option.correct .number{background:#0d9f86;color:#fff;border-color:#0d9f86}
.option.correct .choice-copy{font-weight:750}
.option.wrongpick{background:linear-gradient(155deg,#fff8f9,#ffecee);border-color:#eb8690}
.option.wrongpick .number{background:#df596b;color:#fff;border-color:#df596b}
.option .mark{margin-left:auto;font-size:15px;font-weight:900}
.explainbox{margin-top:13px;border-radius:14px;background:#f2f5ff;border:1px solid #e1e8ff;padding:13px 14px;font-size:12.5px;line-height:1.7;color:#2c405f}
.explainbox .exhead{display:flex;align-items:center;gap:7px;font-weight:850;color:#2c4ec4;margin-bottom:6px;font-size:12.5px}
.explainbox .exword{font-size:14px;font-weight:850;letter-spacing:-.02em}
.explainbox .exsyn{color:#5c6f8f;margin-top:2px}
.explainbox .exeg{margin-top:8px;padding-top:8px;border-top:1px dashed #d5ddf2;color:#3d4f6b}
.explainbox .exeg small{display:block;color:#7c89a0}
.quizbottom{position:fixed;left:50%;transform:translateX(-50%);bottom:0;max-width:460px;width:100%;padding:13px 20px calc(13px + env(safe-area-inset-bottom));display:flex;gap:9px;background:#fff;border-top:1px solid var(--line);z-index:11}
.quizbottom .btn{flex:1}

/* ── 결과 ─────────────────────────────── */
.scorecard{border-radius:22px;padding:23px 22px;color:#fff;background:linear-gradient(130deg,#172756,#4d54bc);position:relative;overflow:hidden;margin:4px 0 18px;box-shadow:0 12px 24px rgba(36,57,139,.18)}
.scorecard:after{content:"";position:absolute;width:170px;height:170px;border:1px solid #ffffff26;border-radius:50%;right:-60px;top:-60px;box-shadow:0 0 0 34px #ffffff08}
.scorecard .big{font-size:49px;font-weight:900;line-height:1.25;letter-spacing:-.06em}
.scorecard .big small{font-size:18px;color:#cbd4fc;font-weight:800}
.scorecard .cap{color:#c6d0fb;font-size:12px;margin-top:2px}
.scorecard .stats{display:flex;gap:18px;margin-top:16px;padding-top:14px;border-top:1px solid #ffffff33;position:relative;z-index:1}
.scorecard .stats div{font-size:11px;color:#c6d0fb}
.scorecard .stats b{display:block;font-size:16px;color:#fff;font-weight:850;margin-top:3px}
.resultrow{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}
.resultrow:last-child{border-bottom:0}
.resultrow b{font-size:13.5px;letter-spacing:-.02em}
.resultrow small{display:block;color:var(--muted);font-size:11.5px;margin-top:2px}
.circle{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;font-weight:900;font-size:12px;flex:none}
.circle.ok{background:#e1f8f0;color:#078973}
.circle.no{background:#ffe6e8;color:#d54b59}

/* ── 오답 ─────────────────────────────── */
.summarygrid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:12px}
.wrongrow{display:flex;align-items:center;gap:11px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:13px 13px;margin-bottom:8px;box-shadow:var(--shadow);width:100%;text-align:left}
.wrongrow .wmain{flex:1;min-width:0;background:none;border:0;text-align:left;padding:0;display:block}
.wrongrow b{font-size:14px;letter-spacing:-.02em;display:block;word-break:break-word}
.wrongrow small{display:block;color:var(--muted);font-size:11.5px;margin-top:2px}
.wrongrow .wtag{display:flex;gap:4px;margin-top:5px;flex-wrap:wrap}
.wrongrow .wtag .tag{padding:3px 7px;font-size:10px}
.wrongrow .clr{font-size:11px;font-weight:800;color:#5f708e;background:#f2f5fa;border-radius:9px;padding:8px 9px;flex:none}
.empty{text-align:center;padding:44px 16px;color:var(--muted);background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}
.empty .bigemoji{font-size:38px;margin-bottom:12px}
.empty b{display:block;color:var(--ink);font-size:14.5px;margin-bottom:6px;letter-spacing:-.03em}
.empty p{font-size:12px;line-height:1.65;margin-bottom:16px}

/* ── 단어 목록 ────────────────────────── */
.wordrow{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:14px;padding:11px 12px;margin-bottom:7px}
.wordrow b{font-size:13.5px;letter-spacing:-.02em;display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.wordrow b i{font-style:normal;font-size:10px;color:#8593aa;font-weight:700}
.wordrow small{display:block;color:#5f708c;font-size:12px;margin-top:2px}
.wstat{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:900;background:#f1f4fa;color:#aab4c5;flex:none}
.wstat.ok{background:#e1f8f0;color:#078973}
.wstat.no{background:#ffe9ec;color:#cf5462}
.wordrow .wspeak{margin-left:auto;color:#8f9cb2;font-size:14px;flex:none}

/* ── 하단 내비 ────────────────────────── */
.bottomnav{position:fixed;left:50%;transform:translateX(-50%);bottom:0;max-width:460px;width:100%;display:grid;grid-template-columns:repeat(4,1fr);height:calc(70px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#fff;z-index:12;border-top:1px solid var(--line);box-shadow:0 -6px 25px #1b2f5710}
.bottomnav.hidden{display:none}
.navbtn{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:3px;color:#94a0b3;font-weight:750;font-size:10px}
.navbtn.active{color:var(--blue)}
.navico{width:22px;height:22px;display:flex;align-items:center;justify-content:center}
.navico svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* ── 토스트 ───────────────────────────── */
.toast{position:fixed;left:50%;bottom:calc(88px + env(safe-area-inset-bottom));transform:translate(-50%,8px);background:#1d2b47;color:#fff;border-radius:12px;padding:11px 15px;font-size:12.5px;font-weight:750;box-shadow:0 10px 24px rgba(16,30,60,.28);opacity:0;pointer-events:none;transition:opacity .18s,transform .18s;z-index:60;max-width:320px;text-align:center;line-height:1.45}
.toast.show{opacity:1;transform:translate(-50%,0)}

@media(min-width:650px){
  .phone{margin:24px auto;border-radius:26px;min-height:860px;overflow:hidden}
  .bottomnav,.quizbottom{bottom:24px;border-radius:0 0 26px 26px}
  .toast{bottom:112px}
}
@media(max-width:390px){
  .page{padding-left:16px;padding-right:16px}
  .hero h2{font-size:20px;max-width:72%}
  .ringwrap{right:14px;top:16px;transform:scale(.92);transform-origin:top right}
  .fc-word{font-size:33px}
  .qword{font-size:28px}
  .daygrid{gap:7px}
  .bottomnav{font-size:9.5px}
}
