/* Color, raised surfaces and gentle spatial feedback shared by every adventure. */
:root{--world-a:#52d7bd;--world-b:#149a9f;--world-c:#9a82ec}body{background:radial-gradient(ellipse at 12% 0,#def7ff,transparent 55%),radial-gradient(ellipse at 90% 90%,#ffe9ed,transparent 60%),#f4f5ff!important}.dimensional-card{position:relative;transform-style:preserve-3d;transform:perspective(900px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));transition:transform .2s,box-shadow .2s!important;border:2px solid #ffffff!important;border-radius:24px!important;background:linear-gradient(145deg,color-mix(in srgb,var(--world-a) 19%,white),color-mix(in srgb,var(--world-c) 11%,white))!important;box-shadow:0 6px 0 color-mix(in srgb,var(--world-b) 30%,white),0 13px 26px color-mix(in srgb,var(--world-b) 15%,transparent)!important;overflow:hidden}.dimensional-card:hover{transform:perspective(900px) translateY(-5px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));box-shadow:0 8px 0 color-mix(in srgb,var(--world-b) 34%,white),0 20px 30px color-mix(in srgb,var(--world-b) 20%,transparent)!important}.dimensional-card:active{transform:translateY(4px)!important;box-shadow:0 2px 0 var(--world-b)!important}.dimensional-card>svg,.dimensional-card .island-scene{filter:drop-shadow(0 8px 5px #21517718);transform:translateZ(20px)}.island-scene{width:100%;pointer-events:none}.world-scene{display:block;width:100%;height:auto;max-height:190px;overflow:visible}.world-float{animation:world-bob 4.3s ease-in-out infinite;transform-origin:50% 70%}.dimensional-card:nth-child(2n) .world-float{animation-delay:-2s}.world-bubble{animation:world-bubble 5s ease-in-out infinite;transform-origin:172px 48px}.world-crystal{animation:world-shine 3s ease-in-out infinite}.world-treasure{transform-origin:160px 130px;transition:transform .3s}.dimensional-card:hover .world-treasure{transform:translateY(-6px) rotate(-5deg)}.world-shadow{animation:world-shadow 4.3s ease-in-out infinite;transform-origin:160px 184px}.tap-pop{animation:tap-pop .3s ease-out!important}@keyframes world-bob{50%{transform:translateY(-7px)}}@keyframes world-bubble{50%{transform:translateY(-4px) rotate(7deg)}}@keyframes world-shine{50%{filter:brightness(1.3)}}@keyframes world-shadow{50%{transform:scaleX(.85);opacity:.1}}@keyframes tap-pop{50%{scale:.96}}
body:not(.hub) h1,body:not(.hub) h2,body:not(.hub) h3{letter-spacing:-.4px}body:not(.hub) button:not([class*="cell"]):not([class*="square"]):not([data-slot]),body:not(.hub) a{transition:filter .18s,box-shadow .18s}body:not(.hub) button:hover:not(:disabled){filter:brightness(1.06)}
#nemo-course,#nemo-chess,#nemo-sudoku,#nemo-words,#nemo-puzzles,#nemo-science,#nemo-image-puzzles,#nemo-solitaire,#nemo-account-page{border-radius:24px!important;box-shadow:0 7px 0 #c5d8ec,0 18px 45px #4262a218!important;border:2px solid #fff!important;overflow:hidden}
#nemo-course .header,#nemo-chess>header,#nemo-words>header,#nemo-puzzles>header,#nemo-sudoku>header,#nemo-image-puzzles .nip-header,#nemo-account-page .header{background:linear-gradient(125deg,#6155cf,#3e9fda 65%,#39bcae)!important;color:#fff!important;padding:24px!important;position:relative}#nemo-course .header h2,#nemo-account-page .header h2{color:#fff!important;text-shadow:0 3px 0 #434a9929}#nemo-course .header p{color:#eef7ff!important}
#nemo-course .islands,#nemo-chess .np-worlds,#nemo-sudoku .np-worlds,#nemo-puzzles .np-worlds,#nemo-words .ww-islands,#nemo-science .ns-grid,#nemo-image-puzzles .nip-worlds{gap:22px!important;padding-top:20px!important;padding-bottom:30px!important}#nemo-course .island h3{font-size:24px!important;color:var(--world-b)!important}#nemo-course .island p{color:#566a83!important}#nemo-course .island{padding:16px 20px 23px!important}#nemo-course .page-link{background:#ffffffd9!important;box-shadow:0 4px 0 #ccd5ed!important;border:1px solid #fff!important}#nemo-course .page-link:hover{background:#fff!important}
#nemo-chess .np-island-card,#nemo-sudoku .np-island-card,#nemo-puzzles .np-island-card,#nemo-words .ww-island,#nemo-image-puzzles .nip-island,#nemo-science .ns-island{color:#344865!important}#nemo-chess .np-world-number,#nemo-sudoku .np-world-number,#nemo-puzzles .np-world-number{background:linear-gradient(120deg,var(--world-b),var(--world-c))!important;color:white!important;text-shadow:0 2px 1px #3333}#nemo-chess .np-island-enter,#nemo-sudoku .np-island-enter,#nemo-puzzles .np-island-enter{background:#ffffffbd!important;color:var(--world-b)!important}
#nemo-course .chest svg,.np-chest svg,.ww-chest svg,.ns-chest svg,.nip-chest svg{filter:drop-shadow(0 9px 5px #7246a52a)}#nemo-course .chest:not(:disabled):hover svg,.np-chest:not(:disabled):hover svg,.ww-chest:not(:disabled):hover svg,.ns-chest:not(:disabled):hover svg{transform:translateY(-7px) rotate(-4deg);transition:transform .2s}
#nemo-course .choice,.ww-bank button,.ww-answer button,#nemo-sudoku .su-bank button,#nemo-puzzles .np-bank button,.ns-answer{border:2px solid #fff!important;border-radius:15px!important;background:linear-gradient(145deg,#fff,#e8e6ff)!important;box-shadow:0 5px 0 #b5b5e2,0 8px 12px #6f6abb20!important;color:#444576!important;transition:transform .15s!important}#nemo-course .choice:nth-child(3n+2),.ns-answer:nth-child(3n+2){background:linear-gradient(145deg,#fff9da,#ffe1a5)!important;box-shadow:0 5px 0 #e0b767!important}#nemo-course .choice:nth-child(3n),.ns-answer:nth-child(3n){background:linear-gradient(145deg,#ddfff1,#a6e9d2)!important;box-shadow:0 5px 0 #6cbea3!important}#nemo-course .choice:active,.ww-bank button:active,.ns-answer:active{transform:translateY(4px)}#nemo-course .choice.correct{background:#c5ffd3!important;box-shadow:0 5px 0 #5bb877!important}#nemo-course .choice.wrong{background:#ffd4db!important;box-shadow:0 5px 0 #ce8198!important}
#nemo-sudoku .su-board,#nemo-puzzles .np-board{box-shadow:0 8px 0 #8b7aa8,0 15px 30px #3c30682b!important;border-radius:14px!important;border-color:#927dba!important}#nemo-sudoku .su-cell{box-shadow:inset 0 2px 0 #fff,inset 0 -3px 0 #a6a0c52b}#nemo-sudoku .su-cell:focus-visible{outline:3px solid #f6ab38!important;z-index:2}.ww-picture{filter:drop-shadow(0 7px 4px #5c5bb529)}#nemo-image-puzzles .nip-board-wrap{filter:drop-shadow(0 9px 0 #ad93bf40)}.ns-lesson,.ns-sub{border-radius:18px!important;box-shadow:0 5px 0 #c9d6ee!important;border:2px solid white!important}
#nemo-account-page .header a{color:#fff8bb!important}#nemo-account-page .profiles button{background:linear-gradient(145deg,#fbebff,#e6ebff);box-shadow:0 5px 0 #b2a9df}
@media(max-width:600px){.world-scene{max-height:155px}.dimensional-card{border-radius:19px!important}#nemo-course .island{padding:12px 15px 20px!important}#nemo-course .header{padding:18px!important}#nemo-course .header h2{font-size:24px!important}#nemo-course .header p{font-size:14px!important;line-height:1.6!important}}
@media(prefers-reduced-motion:reduce){.world-float,.world-bubble,.world-shadow,.world-crystal{animation:none!important}.dimensional-card,.dimensional-card:hover{transform:none!important}}html[data-motion=off] .world-float,html[data-motion=off] .world-bubble,html[data-motion=off] .world-shadow,html[data-motion=off] .world-crystal{animation:none!important}html[data-motion=off] .dimensional-card{transform:none!important}
html[data-motion=off] .np-floating-island,html[data-motion=off] .nip-float-land,html[data-motion=off] .ns-particle,html[data-motion=off] .ns-butterfly{animation:none!important}
/* Spatial fallback keeps every square operable when GPU rendering is unavailable. */
#nemo-chess .nc-play:not(.n3-enabled) .nc-board{transform:perspective(1800px) rotateX(12deg);transform-origin:50% 55%;border:8px solid #8a68ab!important;border-radius:17px!important;box-shadow:0 10px 0 #624a85,0 17px 0 #b89bce,0 27px 35px #3d2a6640!important;overflow:visible!important;margin:12px 0 28px!important;background:#785c9b}#nemo-chess .nc-play:not(.n3-enabled) .nc-dark{background:linear-gradient(135deg,#a486d5,#8469b8)!important}#nemo-chess .nc-play:not(.n3-enabled) .nc-light{background:linear-gradient(135deg,#fff9e1,#f9dfab)!important}#nemo-chess .nc-play:not(.n3-enabled) .nc-square{box-shadow:inset 0 2px 0 #ffffff55,inset 0 -3px 0 #40307215}#nemo-chess .nc-play:not(.n3-enabled) .nc-square svg{transform:translateY(-5px);filter:drop-shadow(0 2px 0 #655075) drop-shadow(0 5px 0 #65507566) drop-shadow(3px 10px 3px #31244b55)}#nemo-chess .nc-play:not(.n3-enabled) .nc-highlight,#nemo-chess .nc-play:not(.n3-enabled) .nc-selected{box-shadow:inset 0 0 0 5px #ffbe44,0 0 20px #ffce6599!important}#nemo-chess .nc-square:hover{filter:brightness(1.12)}#nemo-chess .nc-choices button{background:linear-gradient(135deg,#fff5fb,#e9defa)!important;box-shadow:0 5px 0 #b3a0d5!important}#nemo-chess .nc-lesson{background:linear-gradient(145deg,#fff5db,#f4eaff)!important;border:2px solid #fff!important;box-shadow:0 6px 0 #e2d5ed;border-radius:20px!important}#nemo-chess .nc-play.n3-enabled .nc-board{transform:none}
@media(max-width:600px){#nemo-chess .nc-play:not(.n3-enabled) .nc-board{border-width:5px!important;box-shadow:0 7px 0 #624a85,0 12px 0 #b89bce,0 18px 22px #3d2a662c!important}}
