:root { color-scheme: dark; font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; color: #fff2cf; background: #142c30; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden; background: #142c30; }
[hidden] { display: none !important; }
#game-shell { position: fixed; inset: 0; width: 100%; height: 100%; overflow: hidden; background: #142c30; }
#game-shell:fullscreen, #game-shell:-webkit-full-screen { width: 100%; height: 100%; }
#unity-canvas { display: block; width: 100%; height: 100%; background: #142c30; outline: none; touch-action: none; }
.screen-overlay { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 24px; text-align: center; background: radial-gradient(ellipse at 50% 36%, #35544c 0, #1b3537 48%, #101e27 100%); }
.entry-card { width: min(100%, 430px); padding: 30px 38px 26px; border: 1px solid #e6c88755; border-radius: 24px; background: #142b2edb; box-shadow: 0 28px 90px #030e1555, inset 0 1px #fff2cf12; }
.machine-icon { display: block; width: 150px; height: 150px; margin: 0 auto 12px; filter: drop-shadow(0 10px 15px #06171c66); }
.eyebrow { margin: 0 0 8px; color: #c5cdb6; font-size: 13px; letter-spacing: .16em; }
h1, h2 { margin: 0; font-weight: 800; }
h1 { font-size: clamp(32px, 5vw, 42px); letter-spacing: .12em; padding-left: .12em; }
.orientation-hint { margin: 17px 0 22px; color: #ecd6ab; font-size: 16px; }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#enter-game { display: flex; align-items: center; justify-content: center; gap: 22px; width: 100%; min-height: 54px; border: 1px solid #ffe8ad; border-radius: 12px; background: linear-gradient(#f7d58b, #dfb968); color: #213b35; font-size: 19px; font-weight: 800; box-shadow: 0 5px 0 #9a783650, 0 9px 22px #08191c44; }
#enter-game:hover { filter: brightness(1.06); }
#enter-game:active { transform: translateY(2px); }
button:focus-visible { outline: 3px solid #fff2cf; outline-offset: 5px; }
.entry-note { min-height: 18px; margin: 16px 0 0; color: #aabeb3; font-size: 12px; line-height: 1.6; }
.rotate-guide { display: none; align-items: center; justify-content: center; gap: 8px; margin: -6px 0 22px; color: #f7d58b; font-size: 14px; }
.rotate-guide svg { width: 54px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.loading-card { width: min(100%, 360px); }
.loading-card h2 { font-size: 29px; letter-spacing: .08em; }
.loading-card p { margin: 20px 0; color: #d9dfcb; line-height: 1.6; }
#loading-progress { display: block; width: 100%; height: 8px; margin-top: 22px; border: none; border-radius: 6px; overflow: hidden; background: #071a24; accent-color: #e6c887; }
#loading-progress::-webkit-progress-bar { background: #071a24; border-radius: 6px; }
#loading-progress::-webkit-progress-value { background: linear-gradient(90deg, #9ebc9b, #f2cf87); border-radius: 6px; }
#loading-progress::-moz-progress-bar { background: #e6c887; border-radius: 6px; }
#fullscreen-button { position: absolute; z-index: 2; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); display: grid; place-items: center; width: 40px; height: 40px; padding: 9px; border: 1px solid #fff2cf55; border-radius: 10px; background: #142c30b3; color: #fff2cf; }
#fullscreen-button svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#game-message { position: absolute; z-index: 5; top: max(18px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); max-width: min(90%, 600px); padding: 14px 20px; border: 1px solid #ebc092; border-radius: 12px; background: #442f29; color: #fff2cf; text-align: center; overflow-wrap: anywhere; }
@media (orientation: portrait) { .rotate-guide { display: flex; } .orientation-hint { margin-bottom: 16px; } }
@media (max-height: 500px) and (orientation: landscape) {
  .entry-card { width: min(100%, 500px); padding: 16px 38px; }
  .machine-icon { width: 90px; height: 90px; margin-bottom: 5px; }
  h1 { font-size: 30px; }
  .eyebrow { font-size: 11px; margin-bottom: 3px; }
  .orientation-hint { margin: 10px 0 13px; font-size: 14px; }
  #enter-game { min-height: 45px; font-size: 17px; }
  .entry-note { margin-top: 10px; font-size: 11px; }
}

#enter-game:disabled, #restore-landscape:disabled { cursor: default; opacity: .65; }
#restore-landscape { min-height: 48px; padding: 10px 26px; border: 1px solid #ffe8ad; border-radius: 12px; background: #ecc879; color: #213b35; font-weight: 800; font-size: 18px; }
