* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root { color-scheme: dark; font-family: Inter, "Noto Sans", system-ui, sans-serif; background: #050a10; color: #f1ead8; }
html, body { width: 100%; min-width: 320px; min-height: 100%; height: 100%; margin: 0; }
body { overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #102b38 0%, #08131e 47%, #03070d 100%); }
.world-shell { display: grid; width: 100%; height: 100%; min-height: 100svh; grid-template-rows: 54px minmax(0,1fr); padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
.world-shell__topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 12px 0 20px; border: 1px solid rgba(210,188,136,.28); border-bottom: 0; border-radius: 12px 12px 0 0; background: linear-gradient(90deg, rgba(11,21,31,.98), rgba(15,26,35,.98)); }
.world-shell__wordmark { color: #e8d49e; font: 700 11px/1 Georgia, serif; letter-spacing: .2em; text-decoration: none; }
.world-shell__controls { display: flex; align-items: center; gap: 8px; }
.world-shell__state { margin-right: 8px; color: #92a1a6; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.world-shell__control { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; color: #f1ead8; background: rgba(255,255,255,.045); cursor: pointer; font: 20px/1 Arial,sans-serif; transition: background .18s ease, transform .18s ease; }
.world-shell__control:hover { transform: translateY(-1px); background: rgba(214,190,136,.16); }
.world-shell__exit { font-size: 25px; font-weight: 300; }
.world-shell__viewport { position: relative; display: grid; grid-template: minmax(0,1fr) / minmax(0,1fr); min-height: 0; overflow: hidden; place-items: center; border: 1px solid rgba(210,188,136,.28); border-radius: 0 0 12px 12px; background: radial-gradient(ellipse at 50% 48%, #122d3b 0%, #09141f 48%, #04080e 100%); }
.world-shell__viewport > * { grid-area: 1 / 1; }
.world-shell__empty { display: flex; width: min(92%, 540px); flex-direction: column; align-items: center; padding: 24px; text-align: center; }
.world-shell__planet { position: relative; width: clamp(100px, 18vw, 160px); aspect-ratio: 1; margin-bottom: 26px; border: 1px solid rgba(232,207,143,.56); border-radius: 50%; background: radial-gradient(circle at 34% 29%, #6ca69b 0 4%, #2b6e75 12%, #183d55 42%, #0b182a 68%, #050b14 72%); box-shadow: inset -16px -12px 32px rgba(0,0,0,.66), 0 0 55px rgba(71,177,180,.16), 0 0 0 10px rgba(232,207,143,.035); }
.world-shell__planet::before { position: absolute; inset: 19% -22%; content: ''; border: 1px solid rgba(224,202,149,.58); border-radius: 50%; transform: rotate(-22deg); }
.world-shell__planet::after { position: absolute; top: 24%; left: 16%; width: 15px; height: 15px; content: ''; border-radius: 50%; background: #eddfb7; box-shadow: 0 0 21px 7px rgba(237,223,183,.35); }
.world-shell__planet span { position: absolute; inset: 29% 21% 45% 50%; border-radius: 50%; background: rgba(156,212,175,.55); filter: blur(8px); transform: rotate(-25deg); }
.world-shell__eyebrow { margin: 0 0 13px; color: #c7b47f; font-size: 9px; font-weight: 800; letter-spacing: .25em; }
.world-shell h1 { margin: 0; color: #f3eddc; font: 500 clamp(25px, 4.5vw, 40px)/1.17 Georgia, serif; text-wrap: balance; }
.world-shell__message { max-width: 400px; margin: 14px auto 20px; color: #a9b8bb; font-size: 13px; line-height: 1.7; }
.world-shell__badge { padding: 8px 12px; border: 1px solid rgba(223,194,129,.24); border-radius: 999px; color: #d9c99d; background: rgba(221,190,123,.06); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.world-shell__game { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; border: 0; background: #000; }
.world-shell__game[hidden] { display: none; }
body.is-embedded .world-shell { grid-template-rows: minmax(0,1fr); min-height: 0; padding: 0; }
body.is-embedded .world-shell__topbar { display: none; }
body.is-embedded .world-shell__viewport { border: 0; border-radius: 0; }
body.is-embedded .world-shell__empty { width: min(92%, 520px); }
body.is-embedded .world-shell__planet { width: clamp(90px, 16vw, 145px); }
:focus-visible { outline: 2px solid #a8e5d1; outline-offset: 3px; }
@media (max-width: 540px) { .world-shell { grid-template-rows: 48px minmax(0,1fr); padding: max(5px,env(safe-area-inset-top)) max(5px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left)); } .world-shell__topbar { padding-left: 14px; } .world-shell__state { font-size: 8px; letter-spacing: .1em; } .world-shell__empty { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
