#prison[hidden] { display: none; }
#prison { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: auto; padding: 20px; box-sizing: border-box; background: rgba(7, 13, 26, .97); color: white; font-family: sans-serif; }
.prison-card { max-width: 720px; padding: 24px; border: 2px solid #7295b9; border-radius: 18px; background: #263544; text-align: center; }
.prison-card h1 { margin: 0; color: #ffe088; }
.prison-room { display: flex; justify-content: center; align-items: center; height: 220px; border: 4px solid #667d90; background: #536577; font-size: 40px; }
.prison-room canvas { display: block; width: 100%; height: 100%; }
.prison-move-help { margin: 6px 0; color: #c0cfdd; font-size: 13px; }
.prison-move { display: flex; justify-content: center; gap: 6px; }
.prison-move button { min-width: 44px; min-height: 40px; border: 1px solid #9fd8ff; border-radius: 8px; background: #203b5d; color: white; font-size: 18px; touch-action: none; }
.prison-stats { line-height: 1.6; color: #ffe6a5; }
.prison-guard.warning { color: #ff8c80; font-weight: bold; }
.prison-message { min-height: 1.4em; }
.prison-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.prison-actions button, .prison-launch { cursor: pointer; padding: 10px 14px; border-radius: 8px; border: 1px solid #d7c28a; background: #554e38; color: white; font-size: 15px; }
.prison-actions button[hidden] { display: none; }
.prison-launch { margin: 10px; }
.prison-help { color: #c0cfdd; font-size: 13px; line-height: 1.5; }
#economy[hidden] { display: none; }
#economy { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: auto; padding: 20px; box-sizing: border-box; background: rgba(7, 13, 26, .97); color: white; font-family: sans-serif; }
#economy .prison-card { max-height: calc(100vh - 40px); overflow: auto; box-sizing: border-box; }
#economy button:disabled { opacity: .55; cursor: default; }
.economy-wallet { color: #ffe6a5; font-weight: bold; }
.economy-message { min-height: 1.4em; }
#space[hidden] { display: none; }
#space { position: fixed; inset: 0; z-index: 100; overflow: auto; padding: 16px; box-sizing: border-box; background: #080e20; color: white; font-family: sans-serif; text-align: center; }
.space-card { max-width: 900px; margin: auto; }
.space-card h1 { color: #ffe088; }
.space-card canvas { display: block; width: 100%; max-height: 50vh; object-fit: contain; margin: 12px auto; background: #050b20; }
.space-planets button[aria-pressed="true"] { background: #28548a; border-color: #8fdcff; }
.space-controls { margin: 8px; }
.space-controls button { touch-action: none; min-width: 48px; }
