/* Some Must Fall web page. Same look as shockland.com: dark theme, amber accent, system fonts, no external requests. */
:root {
  --bg: #0f141b;
  --panel: #17202b;
  --panel-2: #1d2937;
  --text: #e8eef5;
  --muted: #a9b6c6;
  --accent: #ffb020;
  --lime: #b8e034;
  --line: #2a3848;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; display: flex; flex-direction: column; min-height: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #ffd070; }

/* header and footer, as on the site */
.site-header { background: #0b1016; border-bottom: 1px solid var(--line); flex: none; }
.site-header .wrap, .site-footer .wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-header .wrap { min-height: 56px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--accent); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: .3px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; padding: 7px 12px; border-radius: 8px; font-size: 15px; }
.nav a:hover { color: var(--text); background: var(--panel-2); }
.site-footer { border-top: 1px solid var(--line); background: #0b1016; color: var(--muted); font-size: 14px; flex: none; }
.site-footer .wrap { min-height: 48px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* the game: as large as fits, always 16:9 */
main { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; padding: 18px 16px 22px; }
#unity-container.unity-desktop { position: relative; width: min(100%, calc((100vh - 56px - 48px - 96px) * 16 / 9)); min-width: 320px; }
#unity-stage { position: relative; }
#unity-canvas { display: block; width: 100%; height: auto; border-radius: var(--radius) var(--radius) 0 0; background: #0b1016 url('shockland-hero.jpg') center / cover no-repeat; }
#unity-loading-bar { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 12px; background: rgba(11,16,22,.78); border-radius: var(--radius) var(--radius) 0 0; }
#unity-loading-bar .title { font-size: 26px; font-weight: 800; letter-spacing: .3px; }
#unity-loading-bar .title span { color: var(--lime); }
#unity-loading-bar .note { color: var(--muted); font-size: 14px; }
#unity-progress-bar-empty { width: min(300px, 70%); height: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
#unity-progress-bar-full { width: 0%; height: 100%; background: var(--accent); border-radius: 999px; }
#unity-warning { position: absolute; left: 50%; top: 4%; transform: translate(-50%); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: none; z-index: 2; }
#unity-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
#unity-build-title { font-weight: 700; font-size: 17px; }
#unity-build-title span { color: var(--lime); }
#unity-fullscreen-button { cursor: pointer; width: 34px; height: 34px; border-radius: 8px; background: var(--panel-2) url('fullscreen-button.png') no-repeat center; }
#unity-fullscreen-button:hover { background-color: var(--line); }

/* phones and tablets: the game fills the screen, no page around it */
.mobile { display: block; }
.mobile .site-header, .mobile .site-footer, .mobile #unity-footer { display: none; }
.mobile main { padding: 0; }
#unity-container.unity-mobile { position: fixed; width: 100%; height: 100%; left: 0; top: 0; }
.unity-mobile #unity-stage { height: 100%; }
.unity-mobile #unity-canvas { width: 100%; height: 100%; border-radius: 0; }
