#app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-header {
  width: 100%;
  max-width: 900px;
  padding: 10px 16px;
  text-align: center;
}
.site-logo {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 14px;
  color: #7ef9ff;
  opacity: 0.85;
}

#gameRoot {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
}

#canvasWrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 9 / 16;
  max-height: 82dvh;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(126,249,255,0.15), 0 20px 60px rgba(0,0,0,0.6);
  background: #0B1020;
  touch-action: none;
}
body.is-fullscreen #canvasWrap {
  max-width: 100vw;
  max-height: 100dvh;
  aspect-ratio: auto;
  width: 100vw;
  height: 100dvh;
  border-radius: 0;
}
body.is-fullscreen .site-header,
body.is-fullscreen .ad-slot,
body.is-fullscreen .seo-section,
body.is-fullscreen .site-footer {
  display: none;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

#hud {
  position: absolute;
  top: 10px;
  left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 5;
}
.hud-height {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: #7ef9ff;
  text-shadow: 0 0 14px rgba(126,249,255,0.6), 0 2px 4px rgba(0,0,0,0.6);
}
.hud-score {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #ffd166;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  margin-top: 2px;
}
.hud-combo {
  margin-top: 6px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #ff9d5c;
  background: rgba(10,14,30,0.55);
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,157,92,0.5);
}

#topControls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  z-index: 6;
}
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(10,14,30,0.6);
  border: 1px solid rgba(126,249,255,0.35);
  color: #e9f2ff;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}

.tutorial-hint {
  position: absolute;
  bottom: 22%;
  left: 0; right: 0;
  text-align: center;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
  z-index: 5;
  pointer-events: none;
  animation: fadeInHint 0.25s ease;
}
@keyframes fadeInHint { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

#touchControls {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
}
@media (hover: none) and (pointer: coarse) {
  #touchControls:not([hidden]) { display: block; }
}
.touch-zone {
  position: absolute;
  bottom: 0;
  top: 45%;
  width: 42%;
}
#touchLeft { left: 0; }
#touchRight { right: 0; }
.touch-jump {
  position: absolute;
  right: 6%;
  bottom: 8%;
  width: 78px; height: 78px;
  border-radius: 50%;
  background: rgba(126,249,255,0.18);
  border: 2px solid rgba(126,249,255,0.55);
  color: #7ef9ff;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 13px;
  backdrop-filter: blur(3px);
}
.touch-jump:active { background: rgba(126,249,255,0.35); }

.ad-slot {
  width: 100%;
  max-width: 480px;
  min-height: 90px;
  border: 1px dashed rgba(126,249,255,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(233,242,255,0.35);
  font-size: 12px;
}

.seo-section {
  width: 100%;
  max-width: 900px;
  padding: 24px 16px 10px;
  color: rgba(233,242,255,0.65);
  font-size: 13px;
  line-height: 1.6;
}
.seo-section h2 { font-size: 16px; color: #e9f2ff; margin-bottom: 6px; }
.seo-section h3 { font-size: 14px; color: #cfefff; margin: 14px 0 4px; }

.site-footer {
  padding: 16px;
  font-size: 12px;
  color: rgba(233,242,255,0.35);
}

@media (prefers-reduced-motion: reduce) {
  .tutorial-hint { animation: none; }
}
