@font-face { font-family: "Expressa"; src: url("/fonts/expressa-bold.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
:root { --st: env(safe-area-inset-top, 0px); --sr: env(safe-area-inset-right, 0px); --sb: env(safe-area-inset-bottom, 0px); --sl: env(safe-area-inset-left, 0px); color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #0d140c; color: #eef3dd; overflow: hidden; overscroll-behavior: none; touch-action: none;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%;
  font: 600 13px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; }
body { position: fixed; inset: 0; }
.sh { position: fixed; inset: 0; display: grid; grid-template-rows: auto 1fr; width: 100%; height: 100%; height: 100dvh; background: #0d140c; touch-action: none; }
.sh-bar { display: flex; align-items: center; gap: 8px; padding: calc(6px + var(--st)) max(10px, var(--sr)) 6px max(10px, var(--sl));
  background: #0d140c; border-bottom: 1px solid rgba(255,210,74,.18); z-index: 5; }
.sh-name { margin-right: auto; font: 900 16px/1 "Expressa", -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: .04em;
  background: linear-gradient(90deg, #ffd24a, #ff9a3c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sh-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 36px; padding: 0 12px;
  border-radius: 999px; border: 1px solid rgba(255,210,74,.35); background: rgba(255,210,74,.08); color: #f4f0dc; font: inherit; cursor: pointer; touch-action: manipulation; }
.sh-btn svg { width: 18px; height: 18px; }
.sh-btn:focus-visible { outline: 2px solid #ffd24a; outline-offset: 2px; }
.sh-btn[aria-pressed="true"]#shPause { background: rgba(120,220,140,.18); border-color: rgba(120,220,140,.5); }
#shSound .sh-x { display: none; }
#shSound[aria-pressed="false"] .sh-x { display: inline; }
#shSound[aria-pressed="false"] .sh-waves { display: none; }
@media (max-width: 520px) { .sh-btn span { display: none; } .sh-btn { padding: 0 10px; } }
/* Short landscape phones: the bar floats over the right gutter so the game gets the full height. */
@media (orientation: landscape) and (max-height: 520px) {
  .sh { grid-template-rows: 1fr; }
  .sh-bar { position: absolute; top: 0; right: 0; left: auto; border: 0; background: transparent; padding: calc(6px + var(--st)) max(8px, var(--sr)) 0 0; }
  .sh-name { display: none; }
  .sh-btn span { display: none; } .sh-btn { padding: 0 10px; background: rgba(13,20,12,.6); }
  .sh-stage { grid-row: 1; }
}
.sh-stage { position: relative; min-height: 0; overflow: hidden; touch-action: none; }
.sh-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; image-rendering: pixelated; }
#shSafe { position: absolute; left: 0; bottom: 0; width: 1px; height: var(--sb); pointer-events: none; visibility: hidden; }
.sh-install { position: absolute; left: 50%; bottom: calc(14px + var(--sb)); transform: translateX(-50%); z-index: 6; height: 40px; padding: 0 18px;
  border: 1px solid rgba(255,210,74,.5); background: rgba(13,20,12,.9); color: #ffe48a; font: 700 13px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 0 18px rgba(255,210,74,.18); touch-action: manipulation; }
.sh-install svg { width: 16px; height: 16px; color: #ffd24a; }
.sh-install span { display: inline !important; }
.sh-install[hidden] { display: none !important; }
.sh-modal { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: calc(16px + var(--st)) calc(16px + var(--sr)) calc(16px + var(--sb)) calc(16px + var(--sl));
  background: rgba(5,8,4,.72); touch-action: none; }
.sh-modal[hidden] { display: none !important; }
.sh-modal-card { width: min(92vw, 420px); max-height: 100%; overflow: auto; overscroll-behavior: contain; padding: 20px 18px 16px;
  border-radius: 18px; border: 1px solid rgba(255,210,74,.45); background: linear-gradient(180deg, rgba(28,38,22,.98), rgba(12,18,10,.98));
  color: #f4f0dc; box-shadow: 0 0 40px rgba(255,210,74,.18), 0 12px 40px rgba(0,0,0,.45);
  font: 600 14px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; -webkit-user-select: text; user-select: text; }
.sh-modal-card h2 { margin: 0 0 8px; font: 900 22px/1.15 "Expressa", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(90deg, #ffd24a, #ff9a3c, #7fdc6a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sh-modal-lead { margin: 0 0 14px; color: rgba(240,240,220,.85); font-weight: 600; }
.sh-a2hs-pane { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,210,74,.2); background: rgba(8,12,6,.45); }
.sh-a2hs-pane.is-you { border-color: rgba(127,220,106,.6); background: rgba(127,220,106,.08); box-shadow: 0 0 16px rgba(127,220,106,.12); }
.sh-a2hs-pane h3 { margin: 0 0 6px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #ffe48a; display: flex; align-items: center; gap: 8px; }
.sh-a2hs-pane.is-you h3 { color: #a8f095; }
.sh-a2hs-you { display: inline-block; padding: 2px 7px; border-radius: 999px; border: 1px solid rgba(127,220,106,.5); background: rgba(127,220,106,.12); color: #a8f095; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.sh-a2hs-you[hidden] { display: none !important; }
.sh-a2hs-pane ol { margin: 0; padding: 0 0 0 1.15rem; }
.sh-a2hs-pane li { margin: 0 0 4px; }
.sh-a2hs-pane p { margin: 0; color: rgba(240,240,220,.82); }
.sh-a2hs-pane svg { width: 16px; height: 16px; vertical-align: -3px; color: #ffd24a; }
.sh-modal-actions { display: flex; gap: 8px; margin-top: 12px; }
.sh-modal-actions .sh-btn { flex: 1; height: 42px; }
#shA2hsInstall { background: rgba(127,220,106,.18); border-color: rgba(127,220,106,.55); color: #a8f095; }
#shA2hsInstall[hidden], .sh-btn[hidden] { display: none !important; }
#shA2hsOk { background: rgba(255,210,74,.18); border-color: rgba(255,210,74,.5); }
.sh-a2hs-open, .sh-a2hs-open body { touch-action: none; }
