@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');
:root { --ink:#20211e; --muted:#77776d; --paper:#f6f1e8; --card:#fffdf8; --orange:#e7673f; --green:#2f765d; --line:#dfd8cc; --shadow:0 18px 50px rgba(67,55,37,.1); }
* { box-sizing:border-box; } body { margin:0; min-height:100vh; color:var(--ink); background:radial-gradient(circle at 85% 4%,#fff8df 0 11%,transparent 32%),var(--paper); font-family:Manrope,"Microsoft YaHei",sans-serif; }
button { font:inherit; color:inherit; -webkit-tap-highlight-color:transparent; } .app-shell { width:min(100% - 32px,560px); margin:0 auto; padding:28px 0 34px; }
.topbar,.intro,.progress-copy,.card-topline,.answer-actions { display:flex; align-items:center; justify-content:space-between; } .eyebrow,.date-label,.card-topline,.privacy-note { font-family:"DM Mono",monospace; letter-spacing:.08em; }
.eyebrow { margin:0 0 4px; color:var(--orange); font-size:10px; font-weight:500; } h1 { margin:0; font-size:clamp(29px,8vw,42px); letter-spacing:-.06em; line-height:1; } h1 span { color:var(--orange); }
.icon-button { display:grid; place-items:center; width:42px; height:42px; border:1px solid var(--line); border-radius:50%; background:rgba(255,255,255,.42); font-size:22px; cursor:pointer; } .icon-button:active { transform:rotate(-35deg); }
.intro { margin:55px 0 20px; align-items:end; } .date-label { margin:0 0 9px; color:var(--muted); font-size:10px; text-transform:uppercase; } h2 { max-width:290px; margin:0; font-size:clamp(28px,8vw,40px); line-height:1.08; letter-spacing:-.06em; }
.streak { display:flex; flex-direction:column; align-items:flex-end; color:var(--muted); font-size:11px; } .streak strong { color:var(--orange); font-family:"DM Mono",monospace; font-size:28px; line-height:1; }
.progress-panel { margin-bottom:26px; padding:16px 18px; border:1px solid rgba(223,216,204,.8); background:rgba(255,253,248,.58); } .progress-copy { margin-bottom:10px; color:var(--muted); font-size:12px; } .progress-copy strong { color:var(--ink); font-family:"DM Mono",monospace; font-size:12px; } .progress-track { height:7px; overflow:hidden; background:#e8e0d4; } .progress-bar { width:0; height:100%; background:var(--orange); transition:width .4s ease; }
.mode-tabs { display:flex; gap:22px; margin:0 2px 13px; overflow-x:auto; scrollbar-width:none; } .mode-tabs::-webkit-scrollbar { display:none; } .tab { flex:0 0 auto; padding:0 0 8px; border:0; border-bottom:2px solid transparent; background:none; color:var(--muted); font-size:12px; cursor:pointer; } .tab.active { color:var(--ink); border-color:var(--orange); font-weight:700; } .tab span { display:inline-grid; place-items:center; min-width:18px; height:18px; margin-left:3px; border-radius:10px; background:#e9e2d7; color:var(--muted); font-family:"DM Mono",monospace; font-size:10px; } .unit-tabs { display:flex; flex:0 0 auto; gap:22px; }
.study-card { position:relative; min-height:345px; padding:22px; overflow:hidden; background:var(--card); box-shadow:var(--shadow); } .study-card::after { position:absolute; right:-48px; bottom:-62px; width:180px; height:180px; border:1px solid #f1dfca; border-radius:50%; content:""; } .card-topline { position:relative; z-index:1; color:var(--muted); font-size:10px; text-transform:uppercase; } .card-topline span:last-child { color:var(--orange); }
.word-area { position:relative; z-index:1; display:flex; flex-direction:column; align-items:flex-start; width:100%; margin-top:60px; padding:0; border:0; background:transparent; text-align:left; cursor:pointer; } .word { max-width:100%; overflow-wrap:anywhere; font-size:clamp(42px,13vw,72px); font-weight:800; letter-spacing:-.08em; line-height:.96; } .phonetic { margin-top:13px; color:var(--muted); font-family:"DM Mono",monospace; font-size:13px; } .speaker { position:absolute; right:0; bottom:1px; color:var(--orange); font-family:"DM Mono",monospace; font-size:10px; } .speaker b { font-size:16px; }
.meaning { position:relative; z-index:1; min-height:24px; margin-top:38px; font-size:21px; font-weight:700; } .example { position:relative; z-index:1; min-height:20px; margin-top:8px; color:var(--muted); font-size:12px; line-height:1.5; } .reveal-button { position:relative; z-index:1; margin-top:26px; padding:10px 14px; border:1px solid var(--line); background:transparent; font-size:11px; cursor:pointer; }
.answer-actions { gap:10px; margin-top:13px; } .action-button { flex:1; min-height:64px; padding:12px 15px; border:0; cursor:pointer; text-align:left; } .action-button:active { transform:translateY(2px); } .action-button:disabled { cursor:not-allowed; opacity:.4; } .action-button span,.action-button small { display:block; } .action-button span { font-size:15px; font-weight:700; } .action-button small { margin-top:3px; opacity:.7; font-size:10px; } .action-button.no { background:#ead9cc; color:#854d3d; } .action-button.yes { background:var(--green); color:#fffdf8; }
.privacy-note { margin:24px 0 0; color:#aaa295; text-align:center; font-size:9px; } .toast { position:fixed; left:50%; bottom:24px; z-index:5; padding:11px 16px; transform:translate(-50%,80px); opacity:0; background:var(--ink); color:#fff; font-size:12px; transition:transform .25s,opacity .25s; } .toast.show { transform:translate(-50%,0); opacity:1; }
@media (min-width:600px) { .app-shell { padding-top:44px; } .intro { margin-top:72px; } }
