:root {
  color-scheme: dark;
  font: 16px/1.5 system-ui, sans-serif;
  color: #f4f8fb;
  background: #101c29;
  --accent: #9ce9d9;
  --glow: #305653;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body.farol-de-bruma {
  background: #121c2a;
  --accent: #ffd486;
  --glow: #5b483a;
}

body.jardim-das-nuvens {
  --accent: #d0ec98;
  --glow: #455c42;
}

[hidden] { display: none !important; }

.launch {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 24%, var(--glow), transparent 55%),
    repeating-linear-gradient(155deg, transparent 0 33px, #edf9ff08 34px 35px),
    #111c26;
}

.intro {
  max-width: 32rem;
  width: 100%;
  padding: clamp(1rem, 5vw, 2.5rem);
  border: 1px solid #e6f4ff3a;
  border-radius: 1.25rem;
  background: #0c1720e8;
}

.intro h1 {
  font-size: clamp(1.8rem, 7vw, 3.25rem);
  line-height: 1.07;
  margin: 0;
  text-wrap: balance;
}

.kind {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
}

.controls { color: #c7d3de; }

button {
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

#play {
  color: #101c29;
  background: var(--accent);
}

#player {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #101c29;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  gap: 0.5rem;
  padding: 0 0.65rem;
  background: #182b3b;
  font-size: 0.875rem;
}

#fullscreen {
  color: var(--accent);
  background: transparent;
  padding-inline: 0.55rem;
}

#game-frame {
  width: 100%;
  min-height: 0;
  flex: 1;
  display: block;
  border: 0;
  background: #101c29;
}

#player:fullscreen {
  width: 100%;
  height: 100%;
}
