/* Dječiji prostor koristi lokalni sistemski font; svi osnovni ciljevi dodira su 48 × 48. */
:root{--dij-blue:#1966e4;--dij-ink:#172e53;--dij-surface:#f4f8ff}.dij-child-shell,.dij-child-shell *,.dij-child-shell *::before,.dij-child-shell *::after{box-sizing:border-box}.dij-child-shell{margin:0;background:var(--dij-surface);color:var(--dij-ink);font:18px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.dij-child-shell button,.dij-child-shell input,.dij-child-shell select{font:inherit}.dij-child-shell button,.dij-child-shell summary,.dij-child-shell a{touch-action:manipulation}.dij-child-shell button,.dij-child-shell summary{min-width:48px;min-height:48px;cursor:pointer}.dij-child-shell button{border:2px solid #b9cee9;border-radius:14px;padding:10px 15px;background:#fff;color:#172e53;font-weight:750}.dij-child-shell a{color:#1555bf}.dij-child-shell :focus-visible{outline:3px solid #7a2899;outline-offset:4px}.dij-child-wrap{max-width:980px;margin:auto;padding:20px 18px 100px}.dij-child-hero{display:flex;gap:16px;align-items:center;margin:0 0 22px}.dij-child-hero img{object-fit:contain;flex:0 0 90px;width:90px;height:110px}.dij-child-hero h1{font-size:clamp(25px,5vw,40px);line-height:1.15;margin:4px 0 8px}.dij-child-hero p{margin:4px 0;font-size:15px}.dij-child-topics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.dij-child-tile{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:130px;padding:14px 8px;background:#fff;border:2px solid #c0d7f6;border-radius:24px;text-decoration:none;box-shadow:0 5px 0 #d2e1f5;color:#172e53!important}.dij-child-tile:nth-child(2){background:#fff5d7}.dij-child-tile:nth-child(3){background:#e4f7ed}.dij-child-tile:nth-child(4){background:#f2eaff}.dij-child-tile:nth-child(5){background:#ffece7}.dij-child-tile span{font-size:48px;line-height:1.25}.dij-child-tile strong{font-size:20px}.dij-child-age{display:flex;flex-wrap:wrap;gap:10px;margin:25px 0}.dij-child-age a{display:flex;align-items:center;min-height:48px;padding:8px 14px;background:#e5efff;border-radius:18px;text-decoration:none;font-weight:700}.dij-child-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.dij-child-card{min-width:0;background:white;border:1px solid #bfd3ec;border-radius:22px;overflow:hidden}.dij-child-card>a{display:flex;flex-direction:column;gap:8px;text-decoration:none;color:#172e53;padding:14px;min-height:200px}.dij-child-card img{width:100%;height:125px;object-fit:contain;background:#edf5ff;border-radius:14px}.dij-child-card strong{line-height:1.3;font-size:18px}.dij-child-card small{font-size:13px;color:#435773}.dij-child-earned{font-size:17px;font-weight:800;color:#1555bf}.dij-child-card .dij-child-download{display:block;border-radius:0;border-width:1px 0 0;font-size:14px;width:100%;background:#f4f8ff}.dij-child-rewards{margin:30px 0;padding:20px;background:#fff7df;border:1px solid #c7a950;border-radius:22px}#dij-child-stickers{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}#dij-child-stickers>div{display:flex;flex-direction:column;gap:4px;align-items:center;text-align:center}#dij-child-stickers>div>span:first-child{font-size:32px}progress{width:100%;height:14px;accent-color:#1966e4}.dij-child-premium{margin-top:30px}.dij-child-tools{position:fixed;right:10px;bottom:calc(9px + env(safe-area-inset-bottom,0px));display:flex;gap:8px;z-index:100002}.dij-child-tools button{background:#fff;border-color:#abc4e7;font-size:14px;box-shadow:0 3px 12px #172e5320}.dij-child-lesson .dij-child-tools{top:8px;bottom:auto;right:8px}.dij-child-lesson .dij-child-tools button{font-size:12px;padding:8px;opacity:.95}.dij-child-lesson .dijedu-world-header{padding-right:134px!important}.dij-child-lesson .dijedu-world-avatar{display:none}.dij-child-shell dialog{width:min(440px,calc(100% - 28px));max-height:85dvh;overflow:auto;border:2px solid #b8cff0;border-radius:24px;padding:24px;color:#172e53;background:white}.dij-child-shell dialog::backdrop{background:#14284599}.dij-child-shell dialog h2{margin-top:0}.dij-child-shell dialog a{display:flex;align-items:center;min-height:48px;padding:10px;border-radius:10px;margin:6px 0;background:#eef5ff;text-decoration:none}.dij-child-shell dialog button{margin-top:12px;width:100%}.dij-child-profiles>div{display:flex;gap:10px;overflow-x:auto;padding:4px 4px 14px}.dij-child-profiles button{display:flex;flex-direction:column;align-items:center;min-width:95px}.dij-child-profiles button[aria-pressed=true]{border:3px solid #1966e4;background:#e9f2ff}.dij-child-connection{position:fixed;bottom:0;left:0;right:0;background:#ffe49a;color:#402c00;text-align:center;z-index:100004;padding:6px 10px;font-size:13px}.dij-child-connection[hidden]{display:none}.dij-child-lesson .dij-child-connection{bottom:auto;top:0;pointer-events:none}.dij-child-lesson:has(.dij-child-connection:not([hidden])) .dijedu-world-header{margin-top:28px}.dij-child-skip{position:fixed;top:-100px;left:10px;z-index:100010;background:white;padding:12px}.dij-child-skip:focus{top:10px}.dij-child-readable,.dij-child-readable *{font-family:Arial,Verdana,sans-serif!important;letter-spacing:.04em;word-spacing:.08em}.dij-child-readable p{line-height:1.7}.dij-child-description{max-width:850px;margin:20px auto;padding:20px}.dij-child-description img{max-width:100%;height:auto}.dij-child-description video{max-width:100%}.dijedu-game-open .dij-child-description{display:none}.dij-child-shell .dijedu-world-button,.dij-child-shell .dijedu-world-exit,.dij-child-shell .dijedu-world-sound .dijedu-button,.dij-child-shell .dijedu-world-audio-info summary,.dij-child-shell .dijedu-world-parent summary,.dij-child-shell .dijedu-button{min-width:48px!important;min-height:48px!important}.dij-child-shell .dijedu-world-audio-info summary{display:flex;align-items:center;justify-content:center}.dijedu-alphabet-art{font-size:65px;line-height:1.2}.dijedu-alphabet-letter{font-size:64px;font-weight:850;color:#1555bf}.dijedu-alphabet-letter small{font-size:45px;margin-left:14px}.dijedu-alphabet-word{font-size:25px;font-weight:700}.dij-child-menu>a{font-weight:800!important;color:#1966e4!important}
@media(max-width:600px){.dij-child-topics{grid-template-columns:repeat(2,1fr)}.dij-child-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dij-child-wrap{padding:15px 12px 95px}.dij-child-card>a{padding:10px}.dij-child-card strong{font-size:16px}.dij-child-card img{height:100px}.dij-child-hero img{width:75px;height:100px;flex-basis:75px}.dij-child-tile{min-height:116px}.dij-child-shell h2{font-size:23px}.dij-child-lesson .dijedu-world-position{font-size:11px}.dij-child-lesson .dijedu-world-header{padding-right:123px!important;gap:5px!important}.dij-child-lesson .dijedu-world-track{min-width:20px}.dij-child-tools{gap:4px}.dij-child-lesson .dij-child-tools button{padding:6px}.dij-child-shell .dijedu-world-count-grid{gap:8px}}
@media(prefers-reduced-motion:reduce){.dij-child-shell *,.dij-child-shell *::before,.dij-child-shell *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.dij-child-story-text{max-width:650px;background:#fff;padding:20px;border:2px solid #c4d7ee;border-radius:18px;text-align:left;font-size:20px;line-height:1.65}.dij-child-story-note{font-size:14px;color:#405773}
/* Igra koristi sloj 999999; alati moraju biti iznad njega i ostati dostupni tastaturom. */
.dij-child-tools{z-index:1000002}.dij-child-connection{z-index:1000004}
.dij-child-shell .dijedu-world-button{background:#1966e4;color:#fff}
.dij-child-shell .dijedu-world-learn-top{padding-right:124px!important}
.dij-child-shell .dijedu-world-learn-top .dijedu-world-button{background:#fff!important;color:#172e53!important;font-size:30px;line-height:1}
.dij-child-lesson .dij-child-connection{top:auto;bottom:80px}
.dij-child-lesson:has(.dij-child-connection:not([hidden])) .dijedu-world-header{margin-top:0}
.dij-child-shell select,.dij-child-shell .dij-track-back,.dij-child-shell .dij-grade-nav a,.dij-child-shell .dij-lesson-go,.dij-child-shell .dij-diaspora-filters button{min-height:48px!important;min-width:48px}
.dij-child-shell .dij-lesson-card h3 a{display:flex;align-items:center;min-height:48px}

/* Learning paths: simple cards and readable ordered steps. */
.dij-path-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}.dij-learning-path{background:#fff;border:2px solid #dce9fb;border-radius:22px;padding:20px;color:#18365c}.dij-learning-path h3{margin:0 0 10px;color:#164c9d}.dij-learning-path p{line-height:1.6}.dij-learning-path ol{padding-left:24px}.dij-learning-path li{margin:10px 0;padding-left:4px}.dij-learning-path li a{display:inline-flex;align-items:center;min-height:48px;line-height:1.5;font-weight:700;color:#174eaa}.dij-learning-path small{display:block;line-height:1.5;color:#425875}.dij-learning-path summary{min-height:48px;cursor:pointer;display:list-item;padding:12px 0;font-weight:700}.dij-learning-paths{margin:26px 0}.dijedu-learning-phase{background:#eaf3ff;color:#173d70;border-radius:14px;padding:10px 14px;font-size:15px;line-height:1.5}.dijedu-family-activity{background:#fff6d7;border-radius:18px;padding:16px;margin:16px 0;color:#453710;line-height:1.6}.dijedu-family-activity h3{margin:0 0 8px}.dijedu-letter-word-note{font-size:15px;line-height:1.4;color:#425875}.dij-child-age{flex-wrap:wrap}.dij-child-age a{min-height:48px;display:inline-flex;align-items:center}.dijedu-world-concept-art .dijedu-world-word-picture{max-width:130px;max-height:130px;object-fit:contain}.dijedu-alphabet-letter small{display:block}

/* v1.3 — polished, accessible learning surfaces. Scoped to the child application. */
.dij-child-shell{--dij-focus:#6930b7;--dij-line:#d7e5f8;background:linear-gradient(165deg,#f5faff 0%,#eaf4ff 60%,#f8fbff 100%);-webkit-text-size-adjust:100%}
.dij-child-shell .dij-child-card,.dij-child-shell .dij-child-tile,.dij-child-shell .dij-learning-path{box-shadow:0 8px 22px rgba(25,73,138,.09);transition:box-shadow .16s ease,transform .16s ease}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.dij-child-shell .dij-child-card:hover,.dij-child-shell .dij-child-tile:hover,.dij-child-shell .dij-learning-path:hover{transform:translateY(-2px);box-shadow:0 13px 26px rgba(25,73,138,.14)}}
.dij-child-shell :is(button,a,select,input,summary):focus-visible{outline:4px solid var(--dij-focus)!important;outline-offset:3px!important}
.dij-child-shell :is(button,a,select,input){-webkit-tap-highlight-color:transparent}
.dij-child-shell :is(.dijedu-button,.dijedu-game-tile,.dijedu-match-tile,.dijedu-count-tile){touch-action:manipulation}
.dij-child-shell img{max-width:100%}
.dij-child-shell .dij-child-grid>*{min-width:0}
.dij-child-shell .dij-child-story-text{max-width:min(100%,680px);margin-inline:auto}
@media(max-width:480px){.dij-child-shell .dij-child-wrap{padding-inline:12px}.dij-child-shell .dij-child-hero h1{font-size:clamp(24px,7vw,34px)}.dij-child-shell .dijedu-game-tile{min-height:56px}}
@media(prefers-reduced-motion:reduce){.dij-child-shell .dij-child-card,.dij-child-shell .dij-child-tile,.dij-child-shell .dij-learning-path{transition:none!important;transform:none!important}}

/* Reliable tap target; modal confirmation is accidental-exit prevention, not authentication. */
#dij-child-parent{min-width:112px;min-height:48px;touch-action:manipulation;-webkit-tap-highlight-color:transparent;cursor:pointer}
#dij-parent-dialog{width:min(90vw,520px);max-height:85dvh;overflow:auto;border:0;border-radius:24px;padding:24px;box-shadow:0 20px 80px #122e4f55}
#dij-parent-dialog [hidden]{display:none!important}#dij-parent-check{display:grid;gap:14px}#dij-parent-answer{font-size:20px;min-height:48px;width:100%;box-sizing:border-box;border-radius:12px;border:2px solid #aabed3;padding:10px}
#dij-parent-dialog button,#dij-parent-dialog a{min-height:48px;touch-action:manipulation}#dij-parent-dialog :focus-visible{outline:3px solid #eaa218;outline-offset:3px}
dialog.dij-dialog-fallback[open]{display:block;position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);z-index:2147483647;box-shadow:0 0 0 100vmax #102b4d99}
.dij-child-card img{aspect-ratio:4/3;object-fit:cover;width:100%;height:auto;border-radius:18px;background:#edf6ff}
