body.doll-page {
  display: flex; flex-direction: column; align-items: center; min-height: 100vh; min-height: 100dvh; background: #0b0620;
  touch-action: manipulation; overscroll-behavior: none; -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.game-bar {
  position: relative; z-index: 2; width: 100%; max-width: 980px; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 10px 16px; font-family: 'Press Start 2P', monospace; font-size: 11px;
}
.game-bar .back { color: var(--yellow); text-decoration: none; white-space: nowrap; }
.game-bar .game-name { color: var(--pink); white-space: nowrap; }
.mute { font: inherit; background: #000; color: var(--green); border: 3px solid #444; padding: 6px 8px; cursor: pointer; white-space: nowrap; }

.doll-stage {
  position: relative; z-index: 1; width: min(100vw - 16px, 720px); height: min(100dvh - 120px, 720px); min-height: 320px;
  border: 4px solid #000; box-shadow: 0 0 0 4px #3a3a46, 8px 8px 0 4px #000; background: #150c38;
  touch-action: none; cursor: pointer; overflow: hidden;
}
#c { width: 100%; height: 100%; display: block; image-rendering: pixelated; }

.doll-hud {
  position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; gap: 8px; padding: 12px 14px;
  font-family: 'Press Start 2P', monospace; font-size: clamp(9px, 2.2vw, 14px); color: #cfd0e6; pointer-events: none; flex-wrap: wrap;
}
.doll-hud b { color: var(--green); font-weight: normal; }
.doll-hud .all b { color: var(--yellow); }
.combo b { color: var(--pink); }
.combo { animation: pulse .3s steps(2) infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.doll-hint {
  position: absolute; bottom: 14px; left: 0; right: 0; margin: 0; text-align: center; pointer-events: none;
  font-family: 'Press Start 2P', monospace; font-size: clamp(10px, 2.4vw, 15px); color: var(--cyan); animation: blink 1.2s steps(1) infinite;
}
.doll-hint.gone { display: none; }
.under { position: relative; z-index: 1; color: var(--dim); font-size: 20px; text-align: center; margin: 14px 16px 24px; }
.bar-doll { width: 1.6em; height: 1.6em; vertical-align: -0.45em; image-rendering: pixelated; }

.touch-only { display: none; }
@media (hover: none) and (pointer: coarse) {
  .touch-only { display: inline; }
  .desk-only { display: none; }
}
@media (max-width: 520px) {
  .game-bar .game-name { display: none; }
  .game-bar { font-size: 10px; padding: 10px 12px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .game-bar { padding: 4px 12px; font-size: 9px; }
  .doll-stage { height: calc(100dvh - 56px); min-height: 0; }
  .under { display: none; }
}

.doll-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 16px 0; }
