:root { color-scheme: light; font-family: Arial, sans-serif; color: #23374d; background: #eef3f8; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { display: grid; grid-template-rows: 48px minmax(0, 1fr); }
.site-toolbar { position: relative; z-index: 20; display: flex; align-items: center; gap: 6px; padding: 5px max(7px, env(safe-area-inset-left)); background: transparent; pointer-events: none; }
.site-toolbar a, .site-toolbar button, .orientation-card button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 12px; border: 1px solid #aebfd0; border-radius: 7px; color: #23374d; background: #fff; font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.site-toolbar a, .site-toolbar button { gap: 6px; border-color: rgba(142, 191, 232, .62); background: rgba(3, 20, 33, .72); color: #eaf8ff; opacity: .78; backdrop-filter: blur(4px); pointer-events: auto; transition: opacity .16s ease, background-color .16s ease; }
.site-toolbar a:hover, .site-toolbar button:hover, .site-toolbar a:focus-visible, .site-toolbar button:focus-visible { opacity: 1; color: #fff; background: rgba(3, 20, 33, .94); }
.site-toolbar a span { font-size: 18px; line-height: 1; }
.orientation-card button:hover { background: #e7f1fa; }
.site-toolbar a:focus-visible, button:focus-visible { outline: 3px solid #1877bb; outline-offset: 1px; }
#site-fullscreen { margin-left: auto; }
#emulator-viewport { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #dfe7ef; }
#emulator-stage { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; transform-origin: top left; }
#app { display: block; width: 1920px; height: 1080px; border: 0; background: #eef3f8; }
#ai-orientation-prompt { position: absolute; z-index: 10; inset: 0; display: flex; align-items: center; justify-content: center; padding: 18px; overflow: auto; background: #eef3f8; }
.orientation-card { width: min(100%, 430px); padding: 24px 20px; border: 1px solid #c7d4e0; border-radius: 16px; background: #fff; text-align: center; }
.orientation-symbol { color: #1978b8; font-size: 56px; }
.orientation-card h1 { margin: 12px 0; font-size: 25px; line-height: 1.15; }
.orientation-card p { line-height: 1.5; }
.orientation-card button { width: 100%; min-height: 44px; margin-top: 10px; white-space: normal; }
#ai-enter-landscape { background: #176ca6; color: #fff; border-color: #176ca6; }
#orientation-status:empty { display: none; }
@media (max-width: 420px) { .site-toolbar { gap: 5px; padding: 4px 6px; } .site-toolbar a, .site-toolbar button { padding: 6px 8px; font-size: 12px; } }
