:root{color-scheme:dark;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#06121f;color:#f3f8ff;--mint:#6cf2d7;--muted:#a7bdce}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 10% 0,#153b4f88,transparent 55%),radial-gradient(ellipse at 95% 100%,#16483b55,transparent 55%),#06121f}button,select,a{-webkit-tap-highlight-color:transparent}button,select{font:inherit;color:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid var(--mint);outline-offset:3px}a{color:inherit}svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px;flex-shrink:0}.collection{height:100dvh;min-height:330px;display:flex;flex-direction:column;padding:clamp(8px,2dvh,18px) max(14px,env(safe-area-inset-right),var(--native-safe-right,0px)) max(8px,env(safe-area-inset-bottom),var(--native-safe-bottom,0px)) max(14px,env(safe-area-inset-left),var(--native-safe-left,0px));gap:clamp(8px,2dvh,18px);max-width:1800px;margin:auto}.topbar{display:flex;align-items:center;gap:20px;min-height:42px;flex-shrink:0}.wordmark{display:flex;align-items:center;gap:10px;text-decoration:none}.wordmark strong{font-size:24px;letter-spacing:-.06em;font-weight:850;line-height:1}.wordmark strong span{font-weight:550;letter-spacing:-.045em}.wordmark small{display:block;font-size:10px;color:#a4c0cf;margin-top:3px;letter-spacing:.12em}.wordmark img{border-radius:12px}.topbar>p{margin:0;color:var(--muted);font-size:13px;max-width:220px;line-height:1.35}.top-actions{margin-inline-start:auto;display:flex;align-items:center;gap:8px}.top-actions button,.top-actions select{height:42px;border:1px solid #c7eeff30;border-radius:13px;background:linear-gradient(145deg,#c5ecff18,#081e2e);box-shadow:inset 0 1px #e6f9ff13}.top-actions select{padding:0 9px;min-width:64px;font-weight:700}.icon-button{display:grid;place-items:center;width:42px;padding:0}.exit-button{display:flex;align-items:center;gap:7px;padding:0 13px;font-size:14px;font-weight:650}.worlds{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:clamp(7px,1.6dvh,14px)}.world{position:relative;overflow:hidden;border:1px solid #bad8ed38;border-radius:clamp(13px,2.8dvh,23px);padding:0;background:#0d2532;text-align:start;color:#fff;box-shadow:inset 0 1px #fff2,0 6px 20px #0003;isolation:isolate;transition:border-color .2s,transform .2s}.world:hover{border-color:var(--accent)}.world:active{transform:scale(.985)}.world>img.cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 48%;z-index:-3;opacity:.78;transition:transform .3s}.world:hover>img.cover{transform:scale(1.035)}.world:before{content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,#05121fe6,#07131f96 60%,#05152118),linear-gradient(0deg,#06152199,transparent 85%)}.world:after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;box-shadow:inset 0 1px 1px #ffffff26;pointer-events:none}.world.free{border-color:#6cf2d77a}.world-content{position:absolute;inset:0;display:flex;align-items:center;gap:clamp(8px,1.1vw,18px);padding:clamp(10px,2.1dvh,22px)}.world-icon{width:clamp(38px,10dvh,70px);height:clamp(38px,10dvh,70px);flex-shrink:0;filter:drop-shadow(0 3px 8px #0006)}.world-copy{display:flex;flex-direction:column;gap:4px;min-width:0;padding-top:12px}.world-title{font-size:clamp(15px,3.4dvh,25px);font-weight:740;letter-spacing:-.02em;line-height:1.12;white-space:normal;word-break:normal;overflow-wrap:normal;hyphens:none;text-shadow:0 2px 8px #000}.world-record{font-size:clamp(10px,2.4dvh,14px);color:#d3e4edb3;white-space:nowrap}.world-badge{position:absolute;inset-block-start:8px;inset-inline-end:10px;font-size:9px;font-weight:750;letter-spacing:.035em;display:flex;align-items:center;gap:4px;color:#e9f7ffbd;line-height:1}.world-badge svg{width:11px;height:11px}.free .world-badge{color:#95ffe9}.collection-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;flex-shrink:0}.collection-note{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted)}.status-dot{width:6px;height:6px;background:var(--mint);border-radius:50%;box-shadow:0 0 9px #6cf2d780;flex-shrink:0}.unlock{min-height:42px;border:1px solid #85fae486;border-radius:13px;background:linear-gradient(115deg,#244d54,#173b40);color:#c8fff4;font-size:13px;font-weight:750;padding:9px 15px;display:flex;align-items:center;justify-content:center;gap:20px;box-shadow:inset 0 1px #fff2}.unlock:disabled{opacity:.6;cursor:default}.unlock svg{width:18px;height:18px}dialog{padding:0;background:#0b2132;color:#f3f8ff;border:1px solid #70d5d76b;border-radius:22px;width:min(520px,92vw);max-height:92dvh;box-shadow:0 20px 100px #000a}dialog::backdrop{background:#020b14b8;backdrop-filter:blur(8px)}.modal-content{padding:26px;position:relative}.close{position:absolute;inset-inline-end:10px;top:7px;width:40px;height:40px;border:0;background:transparent;font-size:30px}dialog h2{margin:8px 24px 12px 0;font-size:25px;line-height:1.15;letter-spacing:-.025em}dialog p{line-height:1.5;color:#bed3e1;font-size:15px}.purchase-art{width:56px;height:56px}.features{display:flex;gap:7px;flex-wrap:wrap;margin:16px 0}.features span{font-size:12px;padding:6px 9px;background:#ffffff09;border:1px solid #ffffff15;border-radius:8px}.primary,.secondary{width:100%;border-radius:12px;padding:12px 18px;min-height:44px;font-weight:700;font-size:15px;margin-top:9px}.primary{border:1px solid #b9fff1;background:var(--mint);color:#092a2e}.primary:disabled{opacity:.5;cursor:default}.secondary{border:1px solid #ffffff2e;background:#ffffff07;color:#d2eaf6}.status{font-size:13px!important;min-height:2.9em;margin:12px 0 0}.legal{display:flex;gap:16px;justify-content:center;font-size:12px;margin-top:16px;color:var(--muted)}.setting{display:flex;justify-content:space-between;align-items:center;padding:13px 0;gap:16px;font-size:15px;border-bottom:1px solid #fff1}.setting input[type=checkbox]{width:22px;height:22px;accent-color:var(--mint)}.setting-volume{display:block}input[type=range]{width:100%;accent-color:var(--mint);min-height:32px}.setting-volume output{float:inline-end}.setting-volume label{display:block}.hint{font-size:12px!important}body[dir=rtl] .world:before{background:linear-gradient(270deg,#05121fe6,#07131f96 60%,#05152118)}@media(max-width:760px){.topbar>p{display:none}.wordmark strong{font-size:22px}.world-title{font-size:15px}.world-content{gap:8px;padding:9px}.world-icon{width:36px;height:36px}.world-copy{padding-top:13px;gap:4px}.collection-note{max-width:44%;font-size:11px}.unlock{gap:8px;font-size:12px;padding:8px 12px}}@media(max-height:390px) and (orientation:landscape){.collection{gap:7px;padding-top:7px;padding-bottom:6px}.topbar,.collection-footer{min-height:38px}.top-actions button,.top-actions select{height:38px}.wordmark img{width:36px;height:36px}.world-badge{font-size:8px;top:6px}.world-title{font-size:14px}.world-icon{width:34px;height:34px}.world-content{padding:8px;gap:7px}.world-copy{padding-top:12px}.world-record{font-size:10px}.unlock{min-height:38px}.collection-note{font-size:10px}}@media(orientation:portrait){.collection{height:auto;min-height:100dvh;padding:16px;gap:16px}.topbar{flex-wrap:wrap;gap:8px}.topbar .wordmark{gap:6px}.wordmark strong{font-size:20px}.wordmark img{width:35px;height:35px}.top-actions{gap:5px}.top-actions select{min-width:55px}.exit-button{padding:0 9px}.exit-button svg{display:none}.worlds{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:155px;flex:none}.world-content{align-items:flex-start;justify-content:flex-end;flex-direction:column;padding:13px;gap:7px}.world-icon{width:41px;height:41px}.world-copy{padding-top:0}.world-title{font-size:17px}.world-record{font-size:11px}.world-badge{font-size:9px}.collection-footer{flex-direction:column;align-items:stretch}.collection-note{max-width:none;justify-content:center}.unlock{font-size:14px}.worlds .world:first-child{grid-column:span 2;min-height:160px}.worlds .world:first-child .world-content{flex-direction:row;align-items:center;justify-content:flex-start;padding:22px}.worlds .world:first-child .world-icon{width:65px;height:65px}.worlds .world:first-child .world-title{font-size:25px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Keep labels and thumb targets readable in landscape and RTL. */
.top-actions button,.top-actions select,.unlock{min-height:44px}.top-actions #account{padding-inline:12px;white-space:nowrap}.icon-button{min-width:44px}.collection{min-height:320px}.world-badge{min-height:14px}.world-copy{padding-top:16px}.world-content{padding-top:18px}.world-title{text-wrap:balance}.close{width:44px;height:44px}.legal{flex-wrap:wrap}.legal a{display:inline-flex;align-items:center;min-height:44px}.modal-content{padding-top:34px}dialog h2{margin-inline-end:30px;margin-inline-start:0}.top-actions select option{background:#0b2132;color:#fff}
@media(max-height:390px) and (orientation:landscape){.collection{gap:6px}.world-icon{width:30px;height:30px}.world-badge{top:4px;font-size:8px}.world-copy{padding-top:13px;gap:2px}.world-content{padding:8px;gap:7px}.world-title{font-size:14px;line-height:1.1}.world-record{font-size:9px}.topbar,.collection-footer{min-height:44px}.worlds{gap:6px}.wordmark strong{font-size:21px}.topbar{gap:10px}.topbar>p{display:none}}
@media(max-width:640px) and (orientation:landscape){.wordmark small,.wordmark img{display:none}.top-actions{gap:5px}.top-actions #account{padding-inline:8px}.exit-button{padding-inline:8px}.world-icon{width:28px;height:28px}.world-record{display:none}.world-title{font-size:14px}}

.world-badge{font-size:11px;letter-spacing:0}.world-record{font-size:12px}@media(max-height:390px) and (orientation:landscape){.world-badge{font-size:10px}.world-record{display:none}.world-copy{padding-top:13px}}
