/* Starfall Hold's game screen. fz-deliberate: the HUD sits ON the world, so it
   uses the Reach's own timber-and-brass panels, not foltzui's app panels
   (Style guide: one universe, one look). */
:root { --sh-wood: #231a12; --sh-wood-2: #2f2318; --sh-edge: #7a5a36; --sh-brass: #c9a35a; --sh-ink: #f4ead2; --sh-dim: #c8b89a; }
.sh-game { position: fixed; inset: 0; overflow: hidden; background: #1c2226; touch-action: none; color: var(--sh-ink); font-size: 1rem; user-select: none; }
.sh-game canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sh-top, .sh-bar, .sh-card, .sh-roster, .sh-tip { background: linear-gradient(var(--sh-wood-2), var(--sh-wood)); border: 2px solid var(--sh-edge); box-shadow: 0 0 0 1px #0008, 0 6px 18px #0007; border-radius: .6rem; }
.sh-top { position: absolute; top: max(.5rem, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: flex; flex-wrap: nowrap; white-space: nowrap; justify-content: center; align-items: center; gap: .35rem .8rem; padding: .35rem .7rem; max-width: calc(100% - 1rem); font-size: .9rem; }
.sh-res b { color: var(--sh-brass); font-weight: 600; margin-right: .2rem; }
.sh-short { color: #ffb4a0; }
.sh-btn { font: inherit; font-size: .85rem; color: var(--sh-ink); background: #0004; border: 1px solid var(--sh-edge); border-radius: .45rem; padding: .35rem .6rem; min-height: 2.4rem; cursor: pointer; text-decoration: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }
.sh-btn:hover, .sh-btn:focus-visible { border-color: var(--sh-brass); outline: none; }
.sh-btn small { color: var(--sh-dim); font-size: .7rem; }
.sh-btn[aria-disabled="true"] { opacity: .55; }
.sh-btn.sh-on { border-color: var(--sh-brass); box-shadow: inset 0 0 0 2px var(--sh-brass); }
.sh-bar { position: absolute; right: .6rem; bottom: max(.6rem, env(safe-area-inset-bottom)); display: flex; gap: .3rem; padding: .3rem; }
.sh-idle b { color: var(--sh-brass); }
.sh-sel { position: absolute; left: .6rem; bottom: max(.6rem, env(safe-area-inset-bottom)); display: flex; flex-direction: column-reverse; gap: .4rem; max-width: min(26rem, calc(100% - 1.2rem)); }
.sh-roster { display: flex; gap: .25rem; padding: .3rem; overflow-x: auto; max-width: 100%; }
.sh-face { flex: none; display: flex; flex-direction: column; align-items: center; gap: .1rem; width: 3.3rem; min-height: 3.2rem; padding: .2rem; background: #0004; border: 1px solid transparent; border-radius: .45rem; color: var(--sh-ink); font: inherit; font-size: .72rem; cursor: pointer; }
.sh-face i { width: 1.4rem; height: 1.4rem; border-radius: .3rem; background: linear-gradient(var(--hair) 0 30%, var(--skin) 30%); }
.sh-face span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-face.sh-on { border-color: var(--sh-brass); }
.sh-card { padding: .5rem .7rem; font-size: .88rem; width: 16rem; max-width: 100%; }
.sh-who b { color: var(--sh-brass); }
.sh-who small, .sh-skills { color: var(--sh-dim); }
.sh-doing { margin: .2rem 0 .35rem; }
.sh-meter { position: relative; display: flex; justify-content: space-between; height: 1.1rem; margin: .18rem 0; border-radius: .3rem; background: #0007; overflow: hidden; font-size: .72rem; line-height: 1.1rem; padding: 0 .35rem; }
.sh-meter i { position: absolute; inset: 0 auto 0 0; background: #4f6b3a; z-index: 0; }
.sh-meter span, .sh-meter b { position: relative; z-index: 1; text-shadow: 0 1px 2px #000; }
.sh-meter.sh-warn i { background: #a8792f; }
.sh-meter.sh-bad i { background: #8e3b2f; }
.sh-log { position: absolute; left: 50%; top: 4.6rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .2rem; pointer-events: none; width: min(30rem, calc(100% - 1rem)); }
.sh-log p { margin: 0; padding: .2rem .6rem; background: #000a; border-radius: .4rem; font-size: .85rem; text-align: center; animation: sh-fade 7s forwards; }
@keyframes sh-fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
.sh-tip { position: absolute; left: 50%; top: 9rem; transform: translateX(-50%); padding: .45rem .8rem; font-size: .92rem; max-width: calc(100% - 1rem); text-align: center; }
.sh-status { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.1rem; background: #1c2226; }
.sh-status[hidden] { display: none; }
.sh-box { position: absolute; border: 1px solid var(--sh-brass); background: #c9a35a22; pointer-events: none; }
@media (max-width: 640px) {
  .sh-top { font-size: .78rem; gap: .2rem .45rem; flex-wrap: wrap; white-space: normal; width: calc(100% - 1rem); }
  .sh-top .sh-btn { min-height: 2rem; padding: .2rem .45rem; }
  .sh-bar { right: .4rem; bottom: auto; top: 6.2rem; flex-direction: column; }
  .sh-card { width: auto; }
  .sh-log { top: 6.4rem; }
  .sh-tip { top: auto; bottom: 9rem; }
}
