/* Compact Oak Navigation: icon-only controls inside the stone edges. */
.game-shell {
  --dock-height: var(--oak-nav-height, 84px);
  min-height: max(560px, calc(var(--dock-height) + var(--safe-top) + var(--safe-bottom) + var(--mobile-skills-height) + var(--tap-row) + var(--oak-chrome-height, 210px)));
}
.game-shell > .dock.oak-nav {
  --oak-panel-height: clamp(78px, 21.54cqw, 88px);
  position: absolute;
  z-index: 100;
  isolation: isolate;
  container-type: inline-size;
  display: block;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0 0 var(--safe-bottom);
  gap: 0;
  transform: none;
  background: transparent;
}
.oak-nav::before, .oak-nav::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  pointer-events: none;
}
.oak-nav::before {
  top: 0;
  bottom: var(--safe-bottom);
  background: url('./assets/oak-navigation-v2/bar-oak-edge.webp') center / 100% 100% no-repeat;
}
.oak-nav::after {
  bottom: 0;
  height: var(--safe-bottom);
  background: url('./assets/oak-navigation-v2/safe-oak-edge.webp') center / 100% 100% no-repeat;
}
.oak-nav__buttons {
  display: grid;
  grid-template-columns: repeat(3, 64px);
  justify-content: center;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 10px;
}
.oak-nav .oak-nav__button {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 100%;
  min-width: 0;
  min-height: var(--oak-panel-height);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff0d9;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.oak-nav__assembly {
  position: relative;
  display: block;
  width: clamp(48px, 13.333cqw, 56px);
  height: clamp(48px, 13.333cqw, 56px);
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 2px #03080b80);
  pointer-events: none;
  transition: transform 100ms ease-out, filter 100ms ease-out;
}
.oak-nav__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.oak-nav__icon {
  position: absolute;
  display: block;
  left: 20.7566%;
  top: 21.7791%;
  width: 57.6687%;
  height: 57.6687%;
  object-fit: contain;
  pointer-events: none;
}
.oak-nav__button.is-locked .oak-nav__assembly { filter: drop-shadow(0 2px 2px #03080b80) saturate(.65) brightness(.85); }
.oak-nav .oak-nav__button:active { transform: none; translate: none; }
.oak-nav__button:active .oak-nav__assembly { transform: translateY(1px) scale(.97); }
.oak-nav__button:focus-visible { outline: 2px solid #d6f2db; outline-offset: -5px; }
@media (hover: hover) {
  .oak-nav__button:hover .oak-nav__assembly { filter: drop-shadow(0 2px 2px #03080b73) brightness(1.06); }
}
.game-shell.has-modal {
  --dock-height: 0px;
  --oak-nav-height: 0px;
  min-height: 560px;
  padding-bottom: var(--safe-bottom);
}
.game-shell.has-modal > .veil {
  inset: 0;
  height: 100%;
  padding: calc(8px + var(--safe-top)) 8px calc(8px + var(--safe-bottom));
}
.game-shell.has-modal > .veil.fullscreen-section { padding: var(--safe-top) 0 var(--safe-bottom); }
.fullscreen-section > .modal { width: 100%; height: 100%; max-width: none; }
.fullscreen-section .modal-casino .modal-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 56px 0 16px;
}
.fullscreen-section .korni-stage { flex-shrink: 0; margin-top: auto; }
.fullscreen-section .korni-controls { flex-shrink: 0; margin-bottom: auto; }
@media (prefers-reduced-motion: reduce) {
  .oak-nav__assembly { transition: none; }
  .oak-nav__button:active .oak-nav__assembly { transform: none; }
}
