/* Fluid Simulator — full-bleed canvas inside the game shell */

.kern-fluid-page .game-view[data-mood="relax"] {
  max-width: 1120px;
}

.kern-fluid-page .game-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 11.5rem);
  padding: 1rem 1rem 1.15rem;
}

.kern-fluid-page #game-best-score {
  display: none !important;
}

.kern-fluid-gl {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  height: min(52vh, calc(100vh - 26rem));
  min-height: 240px;
  max-height: 560px;
  border-radius: 20px;
  touch-action: none;
  cursor: crosshair;
  background: #121c24;
}

.kern-fluid-gl.is-live {
  box-shadow: inset 0 0 0 1px rgba(95, 124, 131, 0.28);
}

.fluid-game {
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.fluid-game .kern-fluid-gl {
  flex: 1 1 auto;
  height: min(70vh, 640px);
}

.fluid-idle {
  font-family: Jost, sans-serif;
  font-size: 14px;
  color: var(--text-mid, #8C8880);
  text-align: center;
  margin: 0.75rem 0 0.15rem;
}

.fluid-idle[hidden] {
  display: none !important;
}

.fluid-controls-wrap {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.fluid-controls-wrap .kern-game-controls {
  justify-content: center;
}

.fluid-fallback {
  font-family: Jost, sans-serif;
  font-size: 15px;
  color: var(--text-mid, #5C574E);
  text-align: center;
  padding: 3rem 1rem;
}

.game-shell:fullscreen .kern-fluid-gl,
.game-shell:-webkit-full-screen .kern-fluid-gl,
.game-shell.is-fullscreen .kern-fluid-gl {
  height: calc(100vh - 8rem);
  border-radius: 0;
}

@media (max-width: 720px) {
  .kern-fluid-page .game-view {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .kern-fluid-gl {
    height: min(46vh, calc(100vh - 24rem));
    min-height: 200px;
  }
}
