/* Shared RULZ sky identity. Game layouts and touch targets keep their own geometry. */
:root{--rulz-orange:#ff850b;--rulz-ink:#283442;--rulz-blue:#eaf7ff}body{background:#edf8ff url('/assets/sky-world.webp') center top / max(1536px,100vw) auto fixed!important;color:var(--rulz-ink);min-height:100vh}body:before,body:after{display:none!important}h1,h2{color:var(--rulz-ink)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline-color:#dc6800!important}.rulz-brand{color:#ff850b!important;text-decoration:none;font-size:34px;font-weight:900;letter-spacing:-1.5px;white-space:nowrap}.rulz-brand span{color:#30343b}.rulz-shell{max-width:1100px;margin:0 auto;padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:18px}.rulz-shell nav{display:flex;gap:12px;flex-wrap:wrap}.rulz-shell nav a{font:700 15px system-ui;color:#344353;text-decoration:none;background:#ffffffdb;border:1px solid #dceaf3;border-radius:20px;padding:10px 14px;min-height:44px;display:flex;align-items:center}.rulz-shell nav a[aria-current=page]{background:#fff0df;border-color:#ff9d3a}.rulz-shell .rulz-brand{background:none!important;padding:0!important}.rulz-tag{font:700 11px system-ui;letter-spacing:1px;color:#52606a;margin-top:4px}.rulz-footer{max-width:1050px;margin:24px auto;padding:22px;text-align:center;color:#465967;font:14px system-ui}.rulz-footer a{color:#465967;margin:0 10px}.primary,.pill[aria-pressed=true],.filter[aria-pressed=true]{background:#ff850b!important;color:#fff!important;border-color:#e77700!important}.choices button[aria-pressed=true],.difficulty button[aria-pressed=true]{background:#fff0dd!important;border-color:#ff941b!important;color:#7b4000!important}.panel,.stage{box-shadow:0 12px 35px #355b7912;border-color:#e0edf3!important}body:not(.rulz-home)>main{background:#fffffff2;border-radius:28px;border:1px solid #e1edf3;box-shadow:0 14px 45px #355b7915}body.rulz-puzzles #home,body.rulz-puzzles #theme{background:#fffffff0;border:1px solid #e1edf3;border-radius:28px;max-width:1050px;margin:12px auto;padding:24px}body.rulz-puzzles #play{background:#fffffff5}body.rulz-puzzles .tile{box-shadow:0 8px 22px #355b7912}body.rulz-home>header{max-width:1100px;padding:20px 22px;flex-wrap:wrap}.rulz-home .logo{color:#ff850b;font-size:43px;letter-spacing:-2px}.rulz-home .logo span{color:#30343b}.rulz-home .logo i:after{display:none}.home-nav{display:flex;gap:22px;align-items:center}.home-nav a{text-align:center;text-decoration:none;color:#303b48;font-size:14px;font-weight:700;padding:6px}.home-nav b{display:block;font-size:26px;margin-bottom:4px}.rulz-home main{max-width:1100px;padding:8px 22px 24px;background:none;border:0;box-shadow:none}.rulz-home h1{font-size:clamp(30px,4vw,48px);line-height:1.1;text-align:center;margin:24px auto 12px;max-width:820px;letter-spacing:-1px}.rulz-home h1 em{color:#f77d00;font-style:normal}.rulz-home .subtitle{text-align:center;font-size:21px;margin-bottom:16px}.hero-play{display:block;width:max-content;margin:0 auto 24px;padding:15px 28px;border-radius:30px;background:linear-gradient(#ffae29,#ff7900);color:white;text-decoration:none;font-weight:700;box-shadow:0 6px 12px #dd7c0020}.rulz-home .filters{justify-content:center;margin:18px 0}.rulz-home .filter{background:#ffffffec;border:1px solid #dce7ef;border-radius:28px;padding:11px 20px;color:#344353}.rulz-home .grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.rulz-home .card,.rulz-home .card.featured{display:flex;flex-direction:column;grid-column:auto;grid-row:auto;min-height:0;background:#fff;border:1px solid #dbe8ef;border-radius:22px;overflow:hidden;box-shadow:0 5px 16px #345c7512;transform:none}.rulz-home .art,.rulz-home .featured .art{height:190px;min-height:190px;width:100%}.rulz-home .card-info,.rulz-home .featured .card-info{display:flex;align-items:center;gap:8px;padding:15px 16px;background:#fff}.rulz-home .card h2,.rulz-home .featured h2,.rulz-home .card:nth-child(2) h2,.rulz-home .card:nth-child(3) h2{font-size:22px;letter-spacing:-.4px;margin:0}.rulz-home .age{font-size:12px;background:#edf6fb;color:#557185;border-radius:12px;padding:4px 7px}.rulz-home .play,.rulz-home .featured .play{margin-left:auto;background:linear-gradient(#ffac28,#ff8000);color:#fff;border-radius:24px;font-size:14px;padding:10px 14px;width:auto;height:auto;display:inline-flex;gap:5px}.rulz-home .card:hover{box-shadow:0 10px 28px #345c7525;transform:translateY(-3px)}.rulz-home .art-0{background-image:url('/assets/dinosaurs-v2.webp');background-size:200% 200%;background-position:100% 0}.rulz-home footer{max-width:1050px;background:#ffffffe8;border-radius:24px;margin:18px auto;padding:22px}.rulz-home .tagline{text-align:center;color:#47606e;font-size:19px}#analytics-panel{background:#fffffff2!important;border-color:#d8e8f3!important}#analytics-allow{background:#ff850b!important}
@media(max-width:1100px){.home-nav{gap:8px}.rulz-home .art,.rulz-home .featured .art{height:170px;min-height:170px}.rulz-home .card-info{flex-wrap:wrap}.rulz-home .card h2{font-size:20px}}
@media(max-width:760px){body{background:#eef8ff url('/assets/sky-world.webp') center top/auto 640px no-repeat!important}.rulz-shell{padding:14px 12px;gap:10px;flex-wrap:wrap}.rulz-shell nav{gap:6px}.rulz-shell nav a{padding:9px 12px;font-size:13px}.rulz-brand{font-size:30px}.rulz-home>header{padding:16px 14px;gap:12px}.home-nav{order:3;width:100%;justify-content:space-between}.home-nav a{font-size:12px}.home-nav b{font-size:23px}.rulz-home main{padding:4px 12px 18px}.rulz-home h1{margin-top:20px;font-size:34px}.rulz-home .subtitle{font-size:17px}.rulz-home .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.rulz-home .art,.rulz-home .featured .art{height:130px;min-height:130px}.rulz-home .card-info,.rulz-home .featured .card-info{padding:12px 10px;gap:6px}.rulz-home .card h2,.rulz-home .featured h2,.rulz-home .card:nth-child(2) h2,.rulz-home .card:nth-child(3) h2{font-size:18px;width:100%}.rulz-home .play,.rulz-home .featured .play{padding:8px 10px;font-size:12px}.rulz-home .filters{gap:6px;flex-wrap:wrap}.rulz-home .filter{padding:10px 14px;font-size:14px}.rulz-home footer{margin:12px;border-radius:20px;padding:18px}body.rulz-puzzles #home,body.rulz-puzzles #theme{margin:8px 10px;padding:20px 10px}.rulz-tag{font-size:9px}}
@media(max-width:360px){.rulz-home h1{font-size:29px}.rulz-home .art,.rulz-home .featured .art{height:112px;min-height:112px}.rulz-home .card h2,.rulz-home .featured h2{font-size:17px}.rulz-home .logo{font-size:36px}.home-nav{gap:3px}}
@media(prefers-reduced-motion:reduce){.rulz-home .card:hover{transform:none}}
.rulz-home .art-quiz{background-image:url('/assets/flags-world.webp');background-size:cover;background-position:center}.rulz-home .card-info{width:100%;flex-direction:row;flex-wrap:wrap;min-height:98px}.rulz-home .card h2{width:100%;flex-basis:100%}.rulz-home .header-actions .parents-link{display:none}.rulz-home .logo{background:none!important}.rulz-home footer a{color:#465967}.rulz-home .parents{border-top:1px dashed #edbd87}.rulz-shell+header{padding-top:0}.rulz-puzzles{--ink:#283442;--sky:#eaf7ff;--sun:#ffad32}.rulz-puzzles .difficulty button[aria-pressed=true]{background:#ff9d21!important;color:white!important}.rulz-puzzles #home .grid{gap:18px}.rulz-puzzles .tile{border:1px solid #dbe8ef!important;background:#fff!important;border-radius:22px}.rulz-puzzles .tile-label{color:#283442}.rulz-puzzles .tools{padding-top:0}.rulz-footer a:focus-visible{outline:3px solid #dc6800}.rulz-home .card:nth-child(2) h2,.rulz-home .card:nth-child(3) h2{flex-basis:100%}
.rulz-footer{background:#fffffff2;border:1px solid #dceaf3;border-radius:22px;width:max-content;max-width:calc(100% - 24px);box-shadow:0 5px 18px #355b7910}.rulz-home .grid>.card:last-child{grid-column:2}.rulz-home .logo:after{content:'ИГРАЙ · ОТКРЫВАЙ · РАСТИ';display:block;font-size:10px;letter-spacing:1px;color:#52606a;margin-top:5px}@media(max-width:760px){.rulz-home .grid>.card:last-child{grid-column:1 / -1;max-width:420px;width:100%;justify-self:center}.rulz-home .grid>.card:last-child .art{height:170px;min-height:170px}.rulz-footer{font-size:13px;padding:16px 12px}}
/* Warm sky and actual page-end grass/earth, independent of viewport height. */
body{background:#fff9ef url('/assets/sky-warm.webp') center top / max(1536px,100vw) auto no-repeat!important;background-attachment:scroll!important;color:#303640}.rulz-home h1{font-weight:900;text-shadow:0 2px 0 #ffffffb0}.rulz-home h1 em{color:#fb8410}.hero-play{background:linear-gradient(#ffb735,#ff7c08);box-shadow:0 6px 15px #d98b1630,inset 0 1px 1px #ffe7a0}.rulz-home .filter{background:#fffdf8eb;box-shadow:0 2px 5px #9e8a6010}.rulz-shell nav a{background:#fffdf7e8;border-color:#e8e1d2}.rulz-home .card{border-color:#eee4d7;box-shadow:0 6px 18px #8e724d14}.rulz-home .play{box-shadow:inset 0 1px 1px #ffe6a7}.rulz-home footer:not(.rulz-ground){background:#fffefaeb;border:1px solid #eee5d6;box-shadow:0 5px 25px #8f714d0a}.rulz-home .logo,.rulz-brand{color:#f79013!important}.rulz-home .logo span,.rulz-brand span{color:#353535}.rulz-home .subtitle{color:#626365;font-weight:500}.rulz-home .header-actions,.rulz-home .home-nav{background:#fffdf43d;border-radius:24px}.rulz-puzzles #home,.rulz-puzzles #theme,body:not(.rulz-home)>main{border-color:#eee6d8}.rulz-ground,.rulz-home footer.rulz-ground{position:relative;width:100%;max-width:none;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;isolation:isolate;overflow:hidden}.ground-art{position:relative;width:100%;height:clamp(320px,33.333vw,640px);pointer-events:none}.ground-art img{display:block;position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:max(960px,100%);height:auto;max-width:none}.ground-links{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:24px;min-height:80px;padding:18px 20px;background:linear-gradient(transparent,#3c220b35);font:14px system-ui}.ground-links a,.rulz-home footer .ground-links a{color:#fff9ea;text-decoration:none;text-shadow:0 1px 3px #281300;display:flex;gap:8px;align-items:center;min-height:44px;padding:6px 8px;border-radius:8px}.ground-links a:hover{text-decoration:underline;background:#321d0c45}.ground-links a:focus-visible{outline:3px solid #fff3a2;outline-offset:2px}.ground-links span{font-size:23px;color:#fff7df}.rulz-home .home-nav a{border-radius:16px}.rulz-home .home-nav a:hover{background:#fff8e0}
@media(min-width:1600px){.ground-links{min-height:110px}}
@media(max-width:760px){body{background:#fff9ef url('/assets/sky-warm.webp') center top/auto 660px no-repeat!important}.rulz-home footer:not(.rulz-ground){margin:12px}.ground-art{height:auto;aspect-ratio:3/1}.ground-art img{position:static;width:100%;min-width:0;transform:none;max-width:100%;height:auto}.ground-links{position:relative;background:#674026;gap:4px;flex-wrap:wrap;min-height:76px;padding:8px 12px;border-top:1px solid #4e301b}.ground-links a{font-size:13px;min-height:44px}.ground-links span{font-size:20px}.rulz-home footer.rulz-ground{margin:0}.rulz-ground{margin-top:18px!important}}
.rulz-home main{backdrop-filter:none}.rulz-ground{backdrop-filter:none!important}.ground-motto span{position:absolute;left:3%;width:10%;text-align:center;color:#653e1d;font:bold clamp(10px,1.45vw,25px) "Trebuchet MS",system-ui;transform:rotate(-8deg);text-shadow:0 1px #ffe8b2}.ground-motto span:nth-child(1){top:21%}.ground-motto span:nth-child(2){top:35%}.ground-motto span:nth-child(3){top:49%}.ground-message{position:absolute;right:3.3%;top:34%;width:8%;text-align:center;color:#653e1d;font:bold clamp(10px,1.4vw,24px) "Trebuchet MS",system-ui;transform:rotate(-7deg);line-height:1.15}@media(min-width:1100px){.rulz-ground{margin-top:-90px!important}}@media(max-width:760px){.ground-motto span{font-size:clamp(5px,1.6vw,12px)}.ground-message{font-size:clamp(5px,1.4vw,11px)}}
.ground-motto span:nth-child(3){top:44%}
/* Transparent scenery must never intercept controls above the footer. */
.rulz-ground{pointer-events:none}.ground-links{pointer-events:auto}
/* Reference-inspired unified masthead: bold wordmark and local illustrated icons. */
header.rulz-masthead,.rulz-home>header.rulz-masthead{width:100%;max-width:1140px;margin:0 auto;padding:18px 20px 20px;display:flex;align-items:center;justify-content:space-between;gap:22px;flex-wrap:nowrap;background:none;border:0}.masthead-brand{flex-shrink:0}.rulz-masthead .rulz-brand{display:block;font-family:"Arial Black",system-ui,sans-serif;font-size:49px;font-weight:1000;line-height:1;letter-spacing:-2.6px;padding:0;background:none;text-decoration:none;-webkit-text-stroke:.5px currentColor;text-shadow:0 2px 0 #fff8}.rulz-masthead .rulz-brand{color:#ff9116!important}.rulz-masthead .rulz-brand span{color:#343536}.rulz-masthead .rulz-tag{font:800 11px system-ui;letter-spacing:.4px;color:#53545a;margin-top:6px}.rulz-tag i{font-style:normal;color:#ff8c13}.masthead-nav{display:flex;align-items:center;justify-content:center;gap:18px;flex:1}.masthead-nav a{position:relative;display:flex;align-items:center;flex-direction:column;gap:4px;min-width:72px;min-height:70px;padding:0 3px 10px;font:700 12px system-ui;text-decoration:none;color:#303644;background:none;border:0;border-radius:0;white-space:nowrap}.masthead-nav img{width:44px;height:44px;object-fit:contain;transition:transform .18s}.masthead-nav a:hover img{transform:translateY(-3px)}.masthead-nav a[aria-current=page]:after{content:'';position:absolute;bottom:0;left:8px;right:8px;height:4px;border-radius:4px;background:#ff880c}.masthead-account{display:flex;align-items:center;gap:10px;min-width:0}.rulz-masthead #rulz-profile-link{display:flex!important;align-items:center!important;gap:9px!important;background:linear-gradient(#fff,#f5f9ff)!important;border:1px solid #d5e4ef!important;border-radius:999px!important;padding:5px 12px 5px 5px!important;box-shadow:0 3px 9px #526e8220;min-height:50px!important;max-width:220px!important;text-decoration:none;font:700 12px system-ui!important;color:#424851!important}.account-avatar{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:40px;height:40px;border-radius:50%;background:#b9eaff;object-fit:contain;font-size:27px}.account-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:140px}.account-arrow{font-size:21px;line-height:1;margin-left:2px}.masthead-sound{padding:0!important;width:42px!important;height:42px!important;min-height:42px!important;border:1px solid #dde9ef!important;background:#ffffffb5!important;border-radius:50%!important;flex-shrink:0}.masthead-sound svg{width:22px;height:22px}.rulz-masthead a:focus-visible{outline:3px solid #e77b05;outline-offset:4px}
@media(max-width:1000px){header.rulz-masthead,.rulz-home>header.rulz-masthead{gap:12px;padding:16px 14px}.rulz-masthead .rulz-brand{font-size:40px}.masthead-nav{gap:5px}.masthead-nav a{min-width:65px;font-size:11px}.masthead-nav img{width:40px;height:40px}.rulz-masthead #rulz-profile-link{max-width:175px!important}.account-label{max-width:100px}.masthead-account{gap:6px}}
@media(max-width:760px){header.rulz-masthead,.rulz-home>header.rulz-masthead{display:grid;grid-template-columns:1fr auto;gap:14px 8px;padding:16px 12px}.masthead-nav{grid-column:1/-1;grid-row:2;width:100%;justify-content:space-between;gap:3px}.masthead-nav a{min-width:0;flex:1;font-size:11px;min-height:65px}.masthead-nav img{width:41px;height:41px}.rulz-masthead .rulz-brand{font-size:39px;letter-spacing:-2px}.rulz-masthead .rulz-tag{font-size:9px;letter-spacing:0}.rulz-masthead #rulz-profile-link{max-width:160px!important;min-height:43px!important;font-size:10px!important;padding-right:9px!important;gap:5px!important}.account-avatar{width:34px;height:34px;font-size:23px}.account-label{max-width:77px}.masthead-account{justify-content:flex-end}.masthead-sound{position:absolute;top:92px;right:8px;width:30px!important;height:30px!important;min-height:30px!important;z-index:1}.rulz-home .masthead-nav{padding-right:25px}.masthead-sound svg{width:17px;height:17px}.account-arrow{font-size:18px}}
@media(max-width:360px){.rulz-masthead .rulz-brand{font-size:34px}.rulz-masthead .rulz-tag{font-size:8px}.rulz-masthead #rulz-profile-link{max-width:142px!important}.account-label{max-width:61px}.masthead-nav a{font-size:10px}}
@media(prefers-reduced-motion:reduce){.masthead-nav img{transition:none}.masthead-nav a:hover img{transform:none}}
/* Use a geometric chevron: text glyph baselines vary across browsers. */
.rulz-masthead .account-arrow{display:grid;place-items:center;align-self:center;flex:0 0 16px;width:16px;height:16px;margin:0 0 0 2px;padding:0;font-size:0;line-height:0}.rulz-masthead .account-arrow:before{content:'';display:block;width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:-3px;box-sizing:content-box}

/* Keep navigation geometry identical when a page has no sound control. */
.masthead-sound-slot{visibility:hidden;pointer-events:none}
@media(max-width:760px){.rulz-masthead .masthead-nav{padding-right:25px}}
.rulz-masthead .rulz-brand{min-height:0;margin:0}
