* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html,body { margin:0; padding:0; font-family:'Fredoka'; }
#dg-root { min-height:100vh; width:100%; font-family:'Nunito',system-ui,sans-serif; color:#2C2A4A;
    background:radial-gradient(120% 80% at 10% 0%, #EAF3FF 0%, transparent 60%),radial-gradient(120% 80% at 100% 0%, #FFEFF3 0%, transparent 55%),linear-gradient(180deg,#F7F4FF 0%,#EFFBF6 100%);
    padding:20px 16px 60px; position:relative; }
*[data-page] { max-width:620px; margin:0 auto; }
.hidden { display: none !important; }

.sec{margin: 30px 0}
.sec-h{font-weight:600;font-size:17px;margin:0 2px 10px;display:flex;align-items:center;gap:8px}
.sec-h .count{margin-left:auto;font-weight:800;font-size:11px;color:#8A85B8;background:#F1EEFB;padding:3px 9px;border-radius:99px}
.panel{background:#fff;border-radius:20px;padding:16px;box-shadow:0 6px 22px rgba(122,92,255,.07)}
.row{display:flex;gap:10px}
.row .col{flex:1}

.lead{font-weight:700;color:#8A85B8;font-size:14px;line-height:1.45;margin-bottom:20px}

.code{display:flex;gap:10px;justify-content:center;margin:8px 0 4px}
.code .d{width:58px;height:72px;border:3px solid #EFEAFB;border-radius:16px;background:#FBFAFF;font-weight:700;font-size:38px;display:grid;place-items:center;color:#2C2A4A}
.codelbl{font-weight:800;font-size:11px;color:#A7A2C4;text-transform:uppercase;letter-spacing:1px;margin-top:12px}

.status{display:flex;align-items:center;justify-content:center;gap:10px;font-weight:800;font-size:14px;color:#8A85B8;margin-top:20px}
.spin{width:16px;height:16px;border-radius:50%;border:3px solid #E7E3FF;border-top-color:#7A5CFF;animation:sp .8s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}

.steps{text-align:left;background:#F8F6FF;border-radius:16px;padding:14px 16px;margin-top:20px}
.steps div{display:flex;gap:10px;align-items:flex-start;font-weight:700;font-size:13px;color:#6E6B86;padding:5px 0}
.steps .n{width:20px;height:20px;border-radius:50%;background:#EDE7FB;color:#7A5CFF;font-weight:800;font-size:12px;
    display:grid;place-items:center;flex-shrink:0}

.refresh{margin-top:16px;border:none;background:transparent;color:#7A5CFF;font-weight:600;font-size:14px;cursor:pointer}

.dg-title {  font-weight:700; font-size:28px; letter-spacing:.5px; margin:0; display:flex; align-items:center; gap:8px; }
.dg-title svg { width: 40px; }
.dg-date { font-weight:700; color:#8A85B8; font-size:14px; margin-top:2px; }
.dg-topbar { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:14px; }
.dg-childbadge { display:inline-flex; align-items:center; gap:10px; border:3px solid #E7E3FF; background:#fff; border-radius:18px; padding:8px 14px 8px 8px;  font-weight:600; font-size:16px; margin-bottom:16px; }
.dg-childbadge .face { font-size:24px; width:40px; height:40px; border-radius:12px; display:grid; place-items:center; }
.dg-hero { background:#fff; border-radius:26px; padding:18px; display:flex; gap:16px; align-items:center; box-shadow:0 10px 30px rgba(122,92,255,.10); margin-bottom:14px; }
.dg-garden { width:120px; height:120px; flex-shrink:0; }
.dg-hero h2 {  margin:0 0 8px; font-size:22px; }
.dg-bar { height:16px; background:#F3F1FF; border-radius:99px; overflow:hidden; }
.dg-fill { height:100%; border-radius:99px; transition:width .5s cubic-bezier(.34,1.4,.6,1); }
.dg-count { font-weight:800; font-size:14px; color:#8A85B8; margin-top:6px; }
.dg-stats { display:flex; gap:10px; margin-bottom:14px; }
.dg-stat { flex:1; background:#fff; border-radius:18px; padding:12px 8px; text-align:center; box-shadow:0 4px 0 #E7E3FF; }
.dg-stat .n {  font-weight:700; font-size:22px; }
.dg-stat .l { font-weight:700; font-size:11px; color:#8A85B8; text-transform:uppercase; letter-spacing:.4px; margin-top:5px; }
.dg-jar { background:#fff; border-radius:20px; padding:14px 16px; box-shadow:0 4px 0 #E7E3FF; margin-bottom:14px; }
.dg-jar-top { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.dg-jar-name {  font-weight:600; font-size:17px; }
.dg-claim { border:none; border-radius:12px; padding:9px 14px;  font-weight:600; font-size:14px; color:#fff; cursor:pointer; }
.dg-break-btn { width:100%; border:3px dashed #38BDF8; background:#EAF7FF; color:#1E88C7; border-radius:18px; padding:12px;  font-weight:600; font-size:16px; cursor:pointer; margin-bottom:22px; }
.dg-seg { display:flex; gap:6px; background:#F3F1FF; padding:5px; border-radius:14px; margin-bottom:16px; }
.dg-seg button { flex:1; border:none; background:transparent; border-radius:10px; padding:9px;  font-weight:600; font-size:14px; color:#8A85B8; cursor:pointer; }
.dg-seg button.on { background:#fff; color:#2C2A4A; box-shadow:0 2px 6px rgba(0,0,0,.08); }
.dg-dots { display:flex; gap:6px; justify-content:center; flex-wrap:wrap; margin-bottom:14px; }
.dg-dot { width:12px; height:12px; border-radius:50%; transition:background .3s; }
.dg-current { background:#fff; border:3px solid; border-radius:24px; padding:20px; box-shadow:0 10px 30px rgba(122,92,255,.12); margin-bottom:12px; }
.dg-current-top { display:flex; align-items:center; gap:14px; }
.dg-current-emoji { font-size:34px; width:64px; height:64px; border-radius:18px; display:grid; place-items:center; flex-shrink:0; }
.dg-current-step {  font-weight:600; font-size:12px; letter-spacing:.5px; text-transform:uppercase; color:#8A85B8; }
.dg-current-label {  font-weight:700; font-size:24px; line-height:1.15; }
.dg-current-hint { font-weight:700; color:#6B6796; font-size:15px; margin-top:12px; }
.dg-current-tags { display:flex; gap:6px; margin-top:12px; flex-wrap:wrap; }
.dg-current-actions { display:grid; gap:10px; margin-top:16px; }
.dg-upnext { text-align:center; font-weight:800; color:#8A85B8; font-size:14px; margin-bottom:22px; }
.dg-upnext span { color:#2C2A4A; }
.dg-alldone { text-align:center; background:#fff; border-radius:24px; padding:30px 20px; box-shadow:0 10px 30px rgba(122,92,255,.12); margin-bottom:22px; }
.dg-section-h {  font-weight:600; font-size:18px; margin:0 0 10px; display:flex; align-items:center; gap:8px; }
.dg-grid { display:grid; gap:10px; margin-bottom:22px; }
.dg-card { display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:18px; border:3px solid; cursor:pointer; text-align:left; width:100%; transition:transform .12s, background .2s, border-color .2s, box-shadow .2s; }
.dg-card:active { transform:scale(.98); }
.dg-step {  font-weight:700; font-size:15px; width:26px; height:26px; border-radius:50%; display:grid; place-items:center; flex-shrink:0; }
.dg-emoji { font-size:24px; width:44px; height:44px; border-radius:14px; display:grid; place-items:center; flex-shrink:0; }
.dg-mid { flex:1; display:flex; flex-direction:column; gap:3px; min-width:0; }
.dg-label { font-weight:800; font-size:17px; }
.dg-hint { font-size:12.5px; font-weight:600; line-height:1.25; }
.dg-tags { display:flex; flex-wrap:wrap; gap:5px; margin-top:2px; }
.dg-tag { font-size:11px; font-weight:800; padding:3px 8px; border-radius:99px; white-space:nowrap; }
.dg-quick { width:34px; height:34px; border-radius:50%; border:3px solid; display:grid; place-items:center; font-size:18px; font-weight:900; flex-shrink:0; cursor:pointer; background:transparent; }
.dg-conf { position:fixed; inset:0; pointer-events:none; overflow:hidden; z-index:70; }
.dg-p { position:absolute; top:-10%; animation:dgfall linear forwards; }
@keyframes dgfall { to { transform:translateY(115vh) translateX(var(--dx)) rotate(var(--rot)); opacity:.9; } }
#dg-party { position:fixed; inset:0; display:grid; place-items:center; z-index:65; pointer-events:none; padding:20px; }
#dg-party span {  font-weight:700; font-size:30px; text-align:center; background:#fff; padding:16px 26px; border-radius:22px; box-shadow:0 14px 40px rgba(0,0,0,.15); animation:dgpop .5s cubic-bezier(.34,1.7,.5,1); }
@keyframes dgpop { from { transform:scale(.4); opacity:0; } to { transform:scale(1); opacity:1; } }
#dg-toast:not(:empty) { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); background:#2C2A4A; color:#fff; font-weight:800; font-size:14px; padding:12px 18px; border-radius:99px; z-index:66; box-shadow:0 10px 30px rgba(0,0,0,.2); animation:dgpop .3s ease; }
.dg-full { position:fixed; inset:0; z-index:80; display:grid; place-items:center; padding:24px; overflow:auto; }
.dg-full-inner { text-align:center; max-width:420px; width:100%; }
.dg-eyebrow {  font-weight:600; font-size:13px; letter-spacing:1px; text-transform:uppercase; opacity:.8; margin-bottom:6px; }
.dg-focus-title {  font-weight:700; font-size:26px; margin:6px 0 4px; }
.dg-focus-hint { font-weight:700; color:#6B6796; font-size:15px; margin:0 0 20px; }
.dg-close { position:absolute; top:18px; left:18px; width:46px; height:46px; border-radius:14px; border:none; background:#fff; font-size:22px; font-weight:900; cursor:pointer; box-shadow:0 3px 0 #E7E3FF; }
.dg-steps { display:grid; gap:8px; margin:12px 0; text-align:left; }
.dg-substep { display:flex; align-items:center; gap:10px; padding:11px 12px; border-radius:14px; border:3px solid #E7E3FF; background:#fff; color:#2C2A4A; font-weight:800; font-size:15px; cursor:pointer; }
.dg-substep-box { width:26px; height:26px; border-radius:8px; border:3px solid #E7E3FF; display:grid; place-items:center; font-weight:900; font-size:14px; flex-shrink:0; }
.dg-focus-actions { display:grid; gap:10px; margin-top:14px; }
.dg-big-btn { border:none; border-radius:16px; padding:15px;font-weight:600; font-size:18px; color:#fff; cursor:pointer; box-shadow:0 4px 0 rgba(0,0,0,.12); }
.dg-big-btn:active { transform:translateY(2px); box-shadow:0 2px 0 rgba(0,0,0,.12); }
.dg-ghost-btn { border:3px solid #E7E3FF; background:#fff; color:#2C2A4A; border-radius:16px; padding:12px; font-weight:600; font-size:16px; cursor:pointer; }
.dg-modal { position:fixed; inset:0; background:rgba(44,42,74,.45); display:grid; place-items:end center; z-index:90; }
.dg-sheet { background:#fff; width:100%; max-width:620px; border-radius:24px 24px 0 0; padding:20px; max-height:90vh; overflow:auto; }
.dg-sheet h3 { margin:0 0 4px; font-size:20px; }
.dg-erow { border:2px solid #F3F1FF; border-radius:14px; padding:10px; margin-bottom:8px; }
.dg-erow.dashed { border-style:dashed; }
.dg-erow-top { display:flex; gap:8px; align-items:center; }
.dg-input { flex:1; border:2px solid #E7E3FF; border-radius:10px; padding:9px; font-weight:700; font-size:14px; min-width:0; }
.dg-time { width:104px; flex:0 0 auto; } .dg-emoin { width:46px; flex:0 0 auto; text-align:center; } .dg-min { width:66px; flex:0 0 auto; text-align:center; }
.dg-swatch { width:30px; height:30px; border-radius:50%; cursor:pointer; padding:0; }
.dg-mini { border:none; background:#F3F1FF; border-radius:10px; padding:8px 12px; font-weight:800; cursor:pointer; }
.dg-btn { border:none; border-radius:14px; padding:12px 16px; font-weight:600; font-size:15px; cursor:pointer; color:#fff; }
.dg-del { border:none; background:transparent; color:#FF7A85; font-weight:900; font-size:18px; cursor:pointer; padding:4px 8px; }
button:focus-visible, .dg-card:focus-visible, input:focus-visible { outline:3px solid #7A5CFF; outline-offset:2px; }
.dg-namechip { display:inline-flex; align-items:center; gap:5px; background:#fff; border-radius:16px; padding:7px 14px 7px 7px;font-weight:600; font-size:16px; cursor:default; user-select:none; -webkit-user-select:none; }
.dg-namechip .face { font-size:22px; width:36px; height:36px; border-radius:11px; display:grid; place-items:center; }
@media (prefers-reduced-motion: reduce) { *{ animation:none !important; transition:none !important; } }
.divider{display:flex;align-items:center;gap:10px;margin:8px 2px 12px}
.divider span{font-weight:600;font-size:12px;letter-spacing:1px;text-transform:uppercase;color:#A7A2C4}
.divider .rule{flex:1;height:2px;background:#E7E3FF;border-radius:2px}

.lockrow{display:flex;align-items:center;gap:12px;background:#F5F6FB;border:2px solid #EAECF4;border-radius:16px;padding:11px 14px;margin-bottom:9px}
.lockrow .ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-size:18px;background:#EAECF4;flex-shrink:0}
.lockrow .body{flex:1;min-width:0}
.lockrow .name{font-weight:600;font-size:15px;color:#6E6B86}
.lockrow .why{font-weight:700;font-size:12.5px;color:#9A97AE;margin-top:1px}
.lockrow .when{font-weight:800;font-size:11px;color:#8A85B8;background:#fff;border:1.5px solid #E7E3FF;padding:4px 9px;border-radius:99px;flex-shrink:0;white-space:nowrap}
.add{width:100%;border:2px dashed #CFC7F0;background:#F7F4FF;color:#6D5CC4;border-radius:14px;padding:12px;font-weight:600;font-size:15px;cursor:pointer;margin-top:2px}

/* task rows */
.task{border-bottom:2px solid #F1EEFB;padding-bottom:25px;margin-bottom:25px}
.task:last-child { margin:0;border:none; }
.task-top{display:flex;gap:8px;align-items:center}
.emoin{width:60px !important;flex:0 0 auto;text-align:center;font-size:18px}
.grow{flex:1;min-width:0}
.small{width:96px;flex:0 0 auto}
.del{border:none;background:transparent;color:#FF7A85;font-weight:900;font-size:17px;cursor:pointer;padding:4px 6px;flex:0 0 auto}
.task .field{margin:10px 0 0}
.task .field:last-child{margin-bottom:0}
.taglabel{font-size:11px;font-weight:800;color:#9A95C4;margin-left:4px}
.task input { background-color: #FFF !important; }

.wrap{width:100%;max-width:400px;text-align:center}
.hintline{font-size:11.5px;font-weight:700;color:#A7A2C4;margin:6px 2px 0}

.icon{width:96px;height:96px;margin:0 auto 14px;display:block}
h1{font-weight:700;font-size:34px;letter-spacing:.5px;margin:0 0 6px 0;padding: 0}
.tag{font-weight:700;color:#8A7F5E;font-size:15px;margin-bottom:22px}

.card{background:#fff;border-radius:26px;padding:22px 20px;box-shadow:0 14px 40px rgba(122,92,255,.10);text-align:left}
.card h2{font-weight:600;font-size:20px;margin-bottom:16px;text-align:center}

label{display:block;font-weight:800;font-size:13px;color:#8A85B8;margin:0 2px 6px}
.field{margin-bottom:16px}
input[type=text],input[type=date],input[type=time],input[type=number],input[type=email]{width:100%;border:2px solid #E7E3FF;border-radius:14px;padding:13px 14px;
    font-family:'Nunito';font-weight:700;font-size:16px;color:#2C2A4A;background:#FBFAFF}
input:focus{outline:none;border-color:#7A5CFF}

.faces{display:flex;gap:8px;justify-content:space-between}
.face{flex:1;aspect-ratio:1;border:3px solid #EEE9FB;background:#F7F5FF;border-radius:16px;font-size:26px;
    display:grid;place-items:center;cursor:pointer;transition:transform .1s,border-color .15s,background .15s}
.face:active{transform:scale(.94)}
.face.on{border-color:var(--c);background:#fff;box-shadow:0 0 0 4px color-mix(in srgb,var(--c) 18%,transparent)}

.start{width:100%;border:none;border-radius:16px;padding:16px;margin-top:20px;font-weight:600;
    font-size:19px;color:#fff;cursor:pointer;box-shadow:0 5px 0 rgba(0,0,0,.12);background:#7A5CFF;transition:transform .1s,box-shadow .1s,background .2s}
.start:active{transform:translateY(2px);box-shadow:0 3px 0 rgba(0,0,0,.12)}
.start[disabled]{background:#C9C4E4;box-shadow:0 5px 0 #B4AEDA;cursor:default}

.err{color:#E5484D;font-weight:800;font-size:13px;margin:8px 2px 0;min-height:16px}
.foot{font-weight:700;font-size:12px;color:#A79E86;margin-top:16px}

.regheader { display: flex; gap: 20px; align-items: center; }