.screen[data-screen="play"] {
  padding: 124px 16px 16px;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.screen[data-screen="play"].active {
  display: flex;
}

.canvas-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  flex: 1;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.15), var(--shadow);
  border: 1px solid var(--glow);
  background: #06090e;
}

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

/* Wind Gauge Overlay */
.wind-gauge-wrap {
  position: absolute;
  top: 16px;
  left: 20px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  padding: 10px 16px;
  border-radius: 20px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.wind-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--brand);
  font-weight: 700;
}

.wind-gauge {
  width: 130px;
  height: 12px;
  background: rgba(6, 9, 14, 0.8);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wind-gauge-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38BDF8, #2563EB, #A855F7);
  box-shadow: 0 0 10px #38BDF8;
  transition: width 0.08s ease-out;
}

/* Course Progress Bar */
.course-progress {
  position: absolute;
  bottom: 16px;
  left: 24px;
  right: 24px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 24px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.course-marker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.course-marker.finish-mark {
  color: #38BDF8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.course-bar {
  flex: 1;
  height: 10px;
  background: rgba(6, 9, 14, 0.9);
  border-radius: 5px;
  position: relative;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.course-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563EB, #38BDF8);
  border-radius: 5px;
  box-shadow: 0 0 8px #38BDF8;
}

.course-boat-icon {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  filter: drop-shadow(0 0 6px #38BDF8);
  transition: left 0.1s linear;
  pointer-events: none;
}

/* Fallback Hold Button */
.fallback-zone {
  margin-top: 14px;
  width: 100%;
  max-width: 960px;
  display: flex;
  justify-content: center;
}

.fallback-btn {
  width: 100%;
  max-width: 480px;
  padding: 14px 20px;
  font-size: 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.fallback-btn:active, .fallback-btn.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.6), rgba(56, 189, 248, 0.6));
  border-color: #38BDF8;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.6);
  transform: scale(0.98);
}

.fallback-btn .btn-icon {
  font-size: 20px;
  animation: blowPulse 1.2s infinite ease-in-out;
}

@keyframes blowPulse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

@media (max-width: 600px) {
  .screen[data-screen="play"] {
    padding: 110px 10px 12px;
  }
  .hud {
    width: 96%;
    max-width: 380px;
    gap: 4px;
    justify-content: center;
  }
  .hud .pill {
    padding: 6px 10px;
    font-size: 13px;
  }
  .canvas-container {
    min-height: 180px;
    border-radius: 16px;
  }
  .wind-gauge-wrap {
    top: 8px;
    left: 8px;
    padding: 5px 10px;
    gap: 8px;
  }
  .wind-label {
    font-size: 9px;
  }
  .wind-gauge {
    width: 70px;
    height: 8px;
  }
  .course-progress {
    bottom: 8px;
    left: 8px;
    right: 8px;
    padding: 5px 8px;
    gap: 6px;
  }
  .course-marker {
    font-size: 9px;
  }
  .course-boat-icon {
    font-size: 14px;
  }
  .fallback-zone {
    margin-top: 8px;
  }
  .fallback-btn {
    font-size: 12px;
    padding: 10px 12px;
    border-radius: 12px;
  }
}

@media (max-height: 650px) {
  .screen[data-screen="play"] {
    padding-top: 98px;
    padding-bottom: 8px;
  }
  .hud {
    top: 60px;
  }
  .canvas-container {
    min-height: 140px;
  }
  .fallback-zone {
    margin-top: 6px;
  }
  .fallback-btn {
    padding: 8px 12px;
    font-size: 11px;
  }
}
