:root { --station: #7c3aed; --ink:#111827; --muted:#64748b; --panel:#f8fafc; --ok:#047857; --warn:#b45309; }
* { box-sizing:border-box; }
body { margin:0; font-family: Arial, Helvetica, sans-serif; background:linear-gradient(180deg,#ffffff,#f8fafc); color:var(--ink); touch-action:manipulation; }
.r2t-touch { max-width:980px; margin:0 auto; padding:22px; }
.badge { display:inline-block; background:var(--station); color:white; padding:10px 16px; border-radius:999px; font-weight:800; font-size:18px; }
h1 { font-size:clamp(28px,5vw,50px); margin:16px 0 8px; line-height:1.05; }
.instruction { color:var(--muted); font-size:clamp(20px,3vw,28px); line-height:1.35; margin:8px 0 18px; }
.card { background:white; border:1px solid #e5e7eb; border-radius:28px; padding:22px; box-shadow:0 12px 28px rgba(15,23,42,.08); }
.touch-row { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:760px) { .touch-row { grid-template-columns:1fr; } }
.touch-card, .target, .big-btn { min-height:70px; display:flex; align-items:center; justify-content:center; text-align:center; border:3px solid #dbe2ea; border-radius:22px; background:var(--panel); padding:18px; font-size:clamp(24px,4vw,42px); font-weight:800; cursor:pointer; user-select:none; }
.touch-card.selected { border-color:var(--station); background:#eef2ff; transform:scale(.99); }
.target.filled { border-color:var(--ok); background:#ecfdf5; }
.feedback { min-height:44px; margin-top:16px; font-size:24px; font-weight:800; }
.controls { display:flex; gap:12px; flex-wrap:wrap; margin-top:18px; }
.controls button, .stepper button { background:var(--station); color:#fff; border:0; padding:14px 20px; border-radius:16px; font-size:20px; font-weight:800; cursor:pointer; min-height:52px; }
.trace-model { font-size:clamp(34px,8vw,82px); font-weight:900; letter-spacing:1px; text-align:center; border:3px dashed #cbd5e1; border-radius:24px; padding:18px; margin-bottom:14px; background:#fff; }
canvas { width:100%; height:260px; border:4px solid var(--station); border-radius:24px; background:#ffffff; touch-action:none; }
.build-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.place-box { border:2px solid #dbe2ea; border-radius:22px; padding:16px; text-align:center; background:#f8fafc; }
.place-value { font-size:clamp(38px,7vw,72px); font-weight:900; }
.stepper { display:flex; justify-content:center; gap:10px; margin-top:10px; }
.array { display:grid; gap:6px; justify-content:center; margin:18px auto; }
.dot { width:32px; height:32px; border-radius:999px; background:var(--station); opacity:.85; }
.calendar { display:grid; grid-template-columns:repeat(7,1fr); gap:8px; margin-top:14px; }
.day { min-height:58px; border:2px solid #dbe2ea; border-radius:16px; background:#fff; font-size:22px; font-weight:800; cursor:pointer; }
.day.selected { background:#ecfeff; border-color:var(--station); }