:root {
  color-scheme: dark;
  font-family: Inter, ui-rounded, "Trebuchet MS", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #04324a;
  touch-action: none;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #04324a;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

body {
  min-height: 100dvh;
}

#app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #0b87a2;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

#rotate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  background:
    radial-gradient(circle at 70% 20%, rgba(255,255,255,.2), transparent 28%),
    linear-gradient(160deg, #0aa2bc, #075a7b 65%, #04364e);
  padding: 24px;
}

.rotate-card {
  width: min(340px, 90vw);
  padding: 28px 24px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(4, 40, 58, .72);
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  text-align: center;
  backdrop-filter: blur(12px);
}

.rotate-card strong,
.rotate-card span { display: block; }
.rotate-card strong { font-size: 24px; margin: 8px 0; }
.rotate-card span { font-size: 15px; opacity: .82; }
.rotate-icon { font-size: 54px; }

#mute {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  z-index: 10;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 50%;
  background: rgba(4,40,58,.5);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  backdrop-filter: blur(8px);
}

@media (orientation: portrait) and (max-width: 900px) {
  #rotate { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
