/* game page */
body.play { min-height: 100vh; }
.bar { display: flex; align-items: center; gap: 18px; padding: 10px 16px; background: var(--D); box-shadow: inset 0 -4px 0 var(--K), inset 0 -8px 0 var(--M); flex-wrap: wrap; }
.bar .home img { width: 182px; height: 50px; display: block; }
.bar .cell { display: flex; flex-direction: column; min-width: 92px; }
.bar .lbl { font-size: 12px; color: var(--L); }
.bar b { font-family: var(--head); font-weight: 400; font-size: 18px; color: var(--Y); }
.bar .pts b { color: var(--w); }
.bar .tag { margin-left: auto; }
.stage > * { min-width: 0; }
.stage { display: grid; grid-template-columns: 1fr 340px; gap: 16px; padding: 16px; align-items: start; }
.screen { position: relative; background: #000; display: flex; justify-content: center; align-items: center; min-height: 300px; box-shadow: 0 0 0 4px var(--K), 0 0 0 8px var(--B); }
.screen canvas { display: block; width: var(--cw, 960px); height: var(--ch, 600px); outline: none; }
.join, .loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(43, 35, 15, .82); }
.loading[hidden], .join[hidden] { display: none; }
.joinbox { max-width: 460px; width: calc(100% - 32px); }
.joinbox .face { width: 72px; height: 87px; float: right; margin: -4px 0 6px 10px; }
.joinbox label { display: block; margin: 12px 0 6px; color: var(--L); font-size: 15px; }
.joinbox .btn { width: calc(100% - 8px); margin-top: 14px; }
.small { font-size: 14px; line-height: 1.4; margin-top: 10px; }
.err { color: var(--P); min-height: 1em; }
.meter { height: 16px; background: var(--K); box-shadow: inset 0 0 0 4px var(--B); width: 320px; max-width: 70vw; }
.meter i { display: block; height: 100%; width: 0; background: var(--Y); }
.float { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.float span { font-family: var(--head); font-size: 16px; color: var(--Y); text-shadow: 3px 3px 0 var(--K); animation: up 1.6s steps(8) forwards; }
.float span.bad { color: var(--P); font-size: 12px; }
@keyframes up { from { transform: translateY(0); opacity: 1; } 70% { opacity: 1; } to { transform: translateY(-40px); opacity: 0; } }
.side .box { margin-bottom: 16px; }
.feed, .board { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.feed { max-height: 220px; overflow: hidden; }
.feed li { padding: 3px 0; border-bottom: 2px solid var(--K); }
.feed b { color: var(--Y); font-weight: 400; }
.board li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; padding: 4px 0; border-bottom: 2px solid var(--K); }
.board li.me { color: var(--Y); }
.board .r { color: var(--O); }
.keys p { font-size: 14px; }
.keys b { color: var(--Y); font-weight: 400; }
.touch { position: fixed; inset: auto 0 0 0; display: flex; justify-content: space-between; padding: 12px; pointer-events: none; z-index: 20; }
.touch[hidden] { display: none; }
.touch button { pointer-events: auto; font-family: var(--head); font-size: 14px; width: 64px; height: 64px; margin: 4px; background: rgba(83, 63, 31, .8); color: var(--C); border: 0; box-shadow: 0 0 0 4px var(--K); touch-action: none; }
.touch .pad { display: grid; grid-template-columns: repeat(3, 72px); grid-template-rows: repeat(2, 72px); }
.touch .pad [data-k=UP] { grid-column: 2; grid-row: 1; }
.touch .pad [data-k=LEFT] { grid-column: 1; grid-row: 2; }
.touch .pad [data-k=DOWN] { grid-column: 2; grid-row: 2; }
.touch .pad [data-k=RIGHT] { grid-column: 3; grid-row: 2; }
.touch .acts { display: flex; align-items: flex-end; }
.touch .fire { background: rgba(203, 0, 0, .85); width: 88px; height: 88px; }
@media (max-width: 1100px) { .stage { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .bar { gap: 10px; padding: 8px 10px; }
  .bar .home img { width: 91px; height: 25px; }
  .bar .cell { min-width: 70px; }
  .bar b { font-size: 13px; }
  .stage { padding: 8px; }
  .bar .tag { margin-left: 0; }
  .screen { flex-direction: column; }
  .join { position: static; background: none; padding: 8px 0; }
  .join[hidden] { display: none; }
  .joinbox { width: calc(100% - 8px); }
  .joinbox .face { width: 48px; height: 58px; }
}
