body.playground-page .page-content-shell {
  max-width: none;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
}

body.playground-page main.container-fluid {
  padding: 0;
}

body.playground-page .site-nav-shell {
  position: relative;
}

#playground-root {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--site-nav-height));
  height: calc(100svh - var(--site-nav-height));
  overflow: hidden;
  background: #0d1210;
}

#playground-canvas-mount {
  position: absolute;
  inset: 0;
}

#playground-canvas-mount canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#playground-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#playground-hint {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(14, 16, 14, 0.62);
  backdrop-filter: blur(6px);
  color: rgba(240, 237, 230, 0.92);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

#playground-hint b {
  color: #e0935a;
  margin-right: 0.35em;
}

#playground-top-controls {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 10px;
}

#playground-sound-toggle,
#playground-pov-toggle,
#playground-map-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(240, 237, 230, 0.25);
  background: rgba(14, 16, 14, 0.62);
  backdrop-filter: blur(6px);
  color: #f0ede6;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
}

#playground-sound-toggle:hover,
#playground-pov-toggle:hover,
#playground-map-toggle:hover {
  background: rgba(224, 147, 90, 0.85);
  color: #1a1512;
}

#playground-sound-toggle.is-on {
  border-color: rgba(224, 147, 90, 0.7);
  color: #e0935a;
}

#playground-speech-bubble {
  position: absolute;
  transform: translate(-50%, -100%);
  max-width: 230px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(240, 237, 230, 0.95);
  color: #1a1812;
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  will-change: left, top;
}

#playground-speech-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: rgba(240, 237, 230, 0.95);
  border-bottom: none;
}

#playground-speech-bubble p {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-style: italic;
}

#playground-speech-bubble.is-visible {
  opacity: 1;
}

#playground-card {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 0);
  width: min(420px, calc(100% - 36px));
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(14, 16, 14, 0.82);
  backdrop-filter: blur(8px);
  border-left: 3px solid #e0935a;
  color: #f0ede6;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#playground-card.is-visible {
  opacity: 1;
  transform: translate(-50%, -4px);
}

#playground-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f0ede6;
}

#playground-card p {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(240, 237, 230, 0.88);
}

#playground-map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 6, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

#playground-map-panel {
  background: #14100c;
  border: 1px solid rgba(224, 147, 90, 0.35);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.playground-map-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f0ede6;
  font-weight: 700;
}

.playground-map-head button {
  background: none;
  border: none;
  color: #f0ede6;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

#playground-map-canvas {
  border-radius: 10px;
  background: #1b2420;
  cursor: pointer;
}

.playground-map-hint {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(240, 237, 230, 0.65);
  font-family: "Source Serif 4", Georgia, serif;
  font-style: italic;
}

#playground-unsupported {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #0d1210;
  color: #f0ede6;
  text-align: center;
}

#playground-unsupported h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

#playground-unsupported p {
  margin: 0;
  max-width: 320px;
  font-family: "Source Serif 4", Georgia, serif;
  color: rgba(240, 237, 230, 0.8);
  line-height: 1.5;
}

#playground-joystick {
  position: absolute;
  left: 26px;
  bottom: 26px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(14, 16, 14, 0.5);
  border: 1px solid rgba(240, 237, 230, 0.25);
  backdrop-filter: blur(4px);
  pointer-events: auto;
  touch-action: none;
}

#playground-joystick-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  border-radius: 50%;
  background: rgba(224, 147, 90, 0.85);
  transition: transform 0.05s linear;
}

#playground-touch-actions {
  position: absolute;
  right: 26px;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#playground-touch-jump,
#playground-touch-rover {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(240, 237, 230, 0.25);
  background: rgba(14, 16, 14, 0.62);
  backdrop-filter: blur(6px);
  color: #f0ede6;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  touch-action: none;
}

#playground-touch-jump:active,
#playground-touch-rover:active {
  background: rgba(224, 147, 90, 0.85);
  color: #1a1512;
}

@media (max-width: 820px) {
  #playground-hint {
    display: none;
  }

  #playground-card {
    bottom: 152px;
    width: calc(100% - 180px);
  }
}
