:root { --ink:#171717; --muted:#6b6b6b; --line:#dedbd7; --orange:#ff6b2c; --orange-soft:#fff0e9; --green:#137a4b; --green-soft:#e6f7ef; --paper:#fffdfb; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; background:linear-gradient(135deg,#fff 0%,#fffaf7 100%); color:var(--ink); font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; }
button { font:inherit; cursor:pointer; } button:focus-visible { outline:3px solid #2c8dff; outline-offset:3px; }
.app-shell { width:min(100%,1120px); margin:0 auto; padding:28px 24px 42px; }
.topbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:28px; }.brand { color:var(--ink); text-decoration:none; font-weight:900; letter-spacing:-1.7px; font-size:1.25rem; }.brand span { color:var(--orange); }
.scoreboard { display:flex; gap:24px; text-align:right; }.scoreboard div { min-width:64px; }.scoreboard small { display:block; color:var(--muted); font-weight:800; font-size:.66rem; letter-spacing:.08em; }.scoreboard strong { font-size:1.15rem; }.scoreboard em { color:var(--orange); font-size:.76rem; font-style:normal; }
.game-panel { position:relative; overflow:hidden; min-height:600px; background:var(--paper); border:1px solid var(--line); border-radius:28px; box-shadow:0 18px 50px rgba(35,24,18,.07); }.panel-tools { position:absolute; z-index:2; top:24px; left:24px; right:24px; display:flex; justify-content:space-between; align-items:center; gap:12px; }.basket-button { display:flex; align-items:center; gap:11px; background:#fff; border:1px solid var(--line); border-radius:999px; padding:11px 15px; color:var(--ink); font-weight:750; box-shadow:0 4px 14px rgba(0,0,0,.05); }.progress { margin:0; color:var(--muted); font-size:.85rem; font-weight:650; }
canvas { display:block; width:100%; height:600px; touch-action:none; }.shot-hint { position:absolute; bottom:28px; left:50%; transform:translateX(-50%); color:var(--muted); font-size:.84rem; white-space:nowrap; }.hint-dot { display:inline-block; width:8px; height:8px; margin-right:5px; border-radius:50%; background:var(--orange); }.actions { position:absolute; right:20px; bottom:18px; display:flex; align-items:center; gap:12px; }.secondary-button,.primary-button { border:0; border-radius:10px; padding:10px 14px; font-weight:750; }.secondary-button { color:#b6400d; background:var(--orange-soft); }.primary-button { width:100%; margin-top:18px; color:white; background:var(--orange); }.text-button { border:0; padding:8px; color:var(--muted); background:transparent; font-size:.78rem; text-decoration:underline; }
.legend { display:flex; justify-content:center; gap:32px; padding:24px 0 0; }.legend div { display:flex; gap:7px; align-items:baseline; }.legend b { color:var(--orange); }.legend span { color:var(--muted); font-size:.84rem; }
.modal { position:fixed; z-index:10; inset:0; display:grid; place-items:center; padding:20px; background:rgba(18,17,16,.34); backdrop-filter:blur(7px); }.modal[hidden] { display:none; }.modal-card { width:min(100%,590px); max-height:min(760px,90vh); overflow:auto; border-radius:22px; background:#fff; padding:28px; box-shadow:0 24px 70px rgba(0,0,0,.2); }.modal-heading { display:flex; align-items:start; justify-content:space-between; gap:16px; }.modal h1 { margin:2px 0 22px; letter-spacing:-.04em; font-size:1.8rem; }.eyebrow { margin:0 0 7px; color:var(--orange); font-size:.68rem; letter-spacing:.11em; font-weight:850; }.icon-button { border:0; width:34px; height:34px; border-radius:50%; color:var(--ink); background:#f4f2f0; font-size:1.5rem; line-height:1; }.basket-list { display:grid; gap:8px; }.basket-option { display:flex; align-items:center; gap:14px; width:100%; padding:14px; border:1px solid var(--line); border-radius:13px; text-align:left; background:#fff; }.basket-option:hover,.basket-option[aria-pressed="true"] { border-color:var(--orange); background:var(--orange-soft); }.basket-number { display:grid; place-items:center; flex:0 0 31px; width:31px; height:31px; border-radius:50%; color:white; background:var(--ink); font-size:.8rem; font-weight:800; }.basket-option strong,.basket-option small { display:block; }.basket-option small { margin-top:3px; color:var(--muted); }.basket-complete { margin-left:auto; color:var(--muted); font-size:.78rem; }
.word-card { width:min(100%,480px); text-align:center; }.word-meta { display:flex; justify-content:space-between; align-items:center; color:var(--muted); font-size:.77rem; text-transform:uppercase; font-weight:800; letter-spacing:.08em; }.speak-button { border:0; background:#f5f3f1; border-radius:50%; width:37px; height:37px; }.word-card h1 { margin:0 0 26px; font-size:clamp(2.2rem,10vw,4rem); }.answers { display:grid; grid-template-columns:1fr 1fr; gap:10px; }.answer { min-height:70px; padding:10px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--ink); font-weight:700; }.answer:hover:not(:disabled) { border-color:var(--orange); background:var(--orange-soft); }.answer:disabled { cursor:not-allowed; opacity:.48; }.answer.correct { border-color:var(--green); background:var(--green-soft); color:#075f38; opacity:1; }.answer.wrong { border-color:#e64d45; background:#fff0ef; color:#a32925; opacity:1; }.feedback { min-height:20px; margin:16px 0 0; color:var(--muted); font-weight:650; }.feedback.success { color:var(--green); }.feedback.error { color:#b6322d; }.toast { position:fixed; z-index:20; left:50%; bottom:22px; transform:translate(-50%,120px); padding:10px 15px; border-radius:10px; color:#fff; background:var(--ink); font-size:.86rem; font-weight:700; transition:transform .24s ease; }.toast.show { transform:translate(-50%,0); }
@media (max-width:620px) { .app-shell { padding:16px 12px 30px; }.game-panel,canvas { min-height:540px; height:540px; }.panel-tools { top:16px; left:16px; right:16px; }.basket-button { max-width:240px; font-size:.82rem; }.progress { font-size:.72rem; }.actions { right:auto; left:50%; bottom:8px; transform:translateX(-50%); width:max-content; }.shot-hint { bottom:54px; font-size:.73rem; }.legend { gap:13px; font-size:.85rem; }.answers { grid-template-columns:1fr; }.modal-card { padding:22px 18px; }.scoreboard { gap:12px; } }
