﻿.header-top,.icon-btn,.info-bar,.info-item,.logo,.tabs{display:flex}.tab,input[type=date]{font-family:'DM Sans',sans-serif}#app,#grid{width:100%}.cell,.icon-btn,.new-game-btn,.num-btn,.tab{cursor:pointer}#grid,.cell{overflow:hidden}#grid,#numpad{grid-template-columns:repeat(9,1fr);max-width:560px}#grid,#numpad,footer{max-width:560px}#app,footer{margin:0 auto}#app{max-width:800px;padding:0 16px 32px}header{padding-top:20px;margin-bottom:8px}.header-top{justify-content:space-between;align-items:center;margin-bottom:16px}.logo{align-items:center;gap:10px}.logo-text{font-size:26px;font-weight:700;letter-spacing:-.5px;color:#1a1a1a}.info-bar,.mono,.tab{font-size:13px}.header-actions{display:flex;gap:4px}.icon-btn{background:0 0;border:none;padding:8px;border-radius:8px;color:#555;align-items:center;transition:background .15s}.action-btn:hover,.icon-btn:hover,.tabs{background:#f3e9dd}.tabs{border-radius:10px;padding:3px;gap:0}.tab,footer{padding:8px 0}.tab{flex:1;border:none;background:0 0;font-weight:500;color:#777;border-radius:8px;transition:.2s}.completed-sub,.mono,.stat-num{font-family:'JetBrains Mono',monospace}.tab.active{background:#fff;color:#1a1a1a;font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.1)}.info-bar{justify-content:space-between;align-items:center;padding:8px 4px;color:#555}.info-item{align-items:center;gap:5px}.mono{color:#444}.dot{width:7px;height:7px;border-radius:50%;display:inline-block;background:#4caf50}.dot.archive{background:#ff9800}.panel{background:#fff;border-radius:12px;padding:16px;margin-bottom:8px;box-shadow:0 2px 8px rgba(0,0,0,.06);animation:.25s fadeSlide;display:none}.panel.open{display:block}.panel-title{font-size:14px;font-weight:600;color:#1a1a1a;margin-bottom:12px}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.stat-card{background:#f8f6f2;border-radius:8px;padding:12px 10px;text-align:center}.stat-num{font-size:20px;font-weight:700;color:#1a1a1a}.stat-label{font-size:11px;color:#888;margin-top:2px}input[type=date]{width:100%;padding:10px 12px;border-radius:8px;border:1px solid #d4d0ca;font-size:14px;background:#faf8f5;margin-bottom:8px}.date-hint{font-size:12px;color:#999}.completed-banner{display:none;align-items:center;gap:12px;background:linear-gradient(135deg,#e8f5e9,#f1f8e9);border-radius:12px;padding:14px 16px;margin-bottom:8px;border:1px solid #c8e6c9}.cell,.completed-icon{display:flex;align-items:center}.completed-banner.show{display:flex;animation:.6s completeCelebrate}.completed-icon{width:36px;height:36px;border-radius:50%;background:#4caf50;color:#fff;justify-content:center;font-size:18px;font-weight:700;flex-shrink:0}.completed-title{font-size:16px;font-weight:700;color:#2e7d32}.completed-sub{font-size:12px;color:#558b2f;margin-top:2px}.new-game-btn{margin-left:auto;padding:8px 14px;border-radius:8px;border:none;background:#4caf50;color:#fff;font-size:13px;font-weight:600;white-space:nowrap;font-family:'DM Sans',sans-serif}.cell-num,.note-num,.num-btn{font-family:'JetBrains Mono',monospace}.grid-wrapper{display:flex;justify-content:center;margin-bottom:12px}#grid{display:grid;grid-template-rows:repeat(9,1fr);aspect-ratio:1;border:2.5px solid #1a1a1a;border-radius:4px;background:#1a1a1a;gap:0}.cell{justify-content:center;background:#faf8f5;position:relative;transition:background .12s;border-right:1px solid #c8c0b4;border-bottom:1px solid #c8c0b4;aspect-ratio:1/1;min-height:0}.cell:nth-child(9n){border-right:none}.cell:nth-child(n+73){border-bottom:none}.cell.thick-right{border-right:2.5px solid #1a1a1a}.cell.thick-bottom{border-bottom:2.5px solid #1a1a1a}.cell.selected{background:#dbe7f7}.cell.highlighted{background:#f0ede8}.cell.same-num{background:#e0eaf8}.cell.error-anim{animation:.4s errorShake;background:#fde0dd!important}.cell-num{font-size:clamp(15px, 4vw, 22px);line-height:1;pointer-events:none}.cell-num.given{color:#1a1a1a;font-weight:600}.cell-num.user{color:#3b6cb5;font-weight:500}.cell-num.wrong{color:#c4392d;font-weight:500}.notes-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);width:85%;height:85%;pointer-events:none}#actions,.action-btn,.note-num,.num-btn,footer{display:flex}.note-num{font-size:clamp(6px, 1.6vw, 9px);line-height:1;text-align:center;align-items:center;justify-content:center;color:#888}.note-num.active{color:#3b6cb5;font-weight:700;opacity:1!important}.note-num.hidden{opacity:0}#numpad{display:grid;gap:4px;margin:0 auto 10px}.num-btn{flex-direction:column;align-items:center;justify-content:center;padding:10px 0 6px;border:1.5px solid #d4d0ca;border-radius:8px;background:#fff;transition:.15s}.action-btn,.footer-btn{background:0 0;cursor:pointer;font-family:'DM Sans',sans-serif}.action-btn:disabled,.num-btn:disabled{opacity:.3;cursor:default}.num-btn.highlight{background:#dbe7f7;border-color:#3b6cb5}.num-val{font-size:20px;font-weight:600;color:#1a1a1a;line-height:1}.num-cnt{font-size:9px;color:#aaa;margin-top:2px}#actions{justify-content:center;gap:4px;max-width:600px;margin:0 auto 16px}.action-btn{flex:1;flex-direction:column;align-items:center;gap:4px;padding:10px 6px;border:none;color:#555;font-size:11px;border-radius:8px;transition:.15s}.action-btn.active{background:#dbe7f7;color:#3b6cb5}footer{justify-content:space-between;align-items:center;font-size:11px;color:#aaa;border-top:1px solid #e4e0da}.footer-btn{border:none;color:#c4392d;font-size:11px;font-weight:500}@keyframes errorShake{0%,100%{transform:translateX(0)}20%{transform:translateX(-3px)}40%{transform:translateX(3px)}60%{transform:translateX(-2px)}80%{transform:translateX(2px)}}@keyframes completeCelebrate{0%,100%{transform:scale(1)}50%{transform:scale(1.02)}}@keyframes fadeSlide{0%{opacity:0;transform:translateY(-8px)}100%{opacity:1;transform:translateY(0)}}@keyframes popIn{0%{transform:scale(.7);opacity:0}100%{transform:scale(1);opacity:1}}.pop{animation:.15s popIn}@keyframes modalIn{0%{transform:scale(.85) translateY(20px);opacity:0}100%{transform:scale(1) translateY(0);opacity:1}}