/* 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-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;
}

.kern-fluid-page .game-shell-top {
  z-index: 4;
}

.fluid-settings {
  position: relative;
  z-index: 3;
  margin-right: auto;
}

.fluid-settings-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(208, 221, 212, 0.9);
  background: rgba(255, 255, 255, 0.72);
  color: #5c5470;
  cursor: pointer;
}

.fluid-settings-btn svg {
  width: 16px;
  height: 16px;
}

.fluid-settings-btn:hover,
.fluid-settings-btn[aria-expanded="true"] {
  background: #fff;
  border-color: #8F7FA8;
  color: #8F7FA8;
}

.fluid-settings-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(280px, 78vw);
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(208, 221, 212, 0.95);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(44, 42, 36, 0.12);
  backdrop-filter: blur(16px);
}

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

.fluid-set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  font-family: Jost, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark, #2C2A24);
}

.fluid-set-row input[type="range"] {
  width: 118px;
  accent-color: #8F7FA8;
}

.fluid-set-row input[type="color"] {
  width: 36px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.fluid-set-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #8F7FA8;
}

.fluid-set-row.is-dim {
  opacity: 0.42;
}

.fluid-set-row.is-dim input {
  pointer-events: none;
}

.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;
  }
}
