:root {
  --game-bar-height: 54px;
}

.game-page-shell {
  padding-top: 0 !important;
}

.game-page-shell #app,
.game-page-shell #game-container {
  position: fixed !important;
  inset: var(--game-bar-height) 0 0 !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
}

.game-portal-bar,
.game-portal-bar *,
.game-info-dialog,
.game-info-dialog * {
  box-sizing: border-box;
}

.game-portal-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10000;
  min-height: var(--game-bar-height);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 8px 14px;
  color: #e9f8f3;
  background: rgba(5, 15, 15, .96);
  border-bottom: 1px solid rgba(133, 218, 195, .2);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  backdrop-filter: blur(14px);
}

.game-portal-bar a {
  color: inherit;
  text-decoration: none;
}

.game-brand {
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: -.02em;
}

.game-brand span {
  color: #7fdcc9;
  font-weight: 600;
}

.game-portal-bar nav {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.game-portal-bar nav::-webkit-scrollbar {
  display: none;
}

.game-portal-bar nav a {
  flex: 0 0 auto;
  color: #9eb8b2;
  font-size: 12px;
  font-weight: 650;
}

.game-portal-bar nav a:hover,
.game-portal-bar nav a:focus-visible {
  color: #fff;
}

.game-tools {
  display: flex;
  gap: 7px;
  margin-left: auto;
}

.game-tools button,
.game-info-dialog button,
.game-info-dialog a {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(133, 218, 195, .3);
  border-radius: 8px;
  color: #ddf4ee;
  background: rgba(20, 48, 44, .78);
  font: 700 12px/1.2 Inter, "Segoe UI", system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.game-info-dialog {
  width: min(640px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  color: #e7f6f1;
  border: 1px solid rgba(133, 218, 195, .28);
  border-radius: 22px;
  background: #0a1a18;
  box-shadow: 0 28px 100px rgba(0, 0, 0, .62);
}

.game-info-dialog::backdrop {
  background: rgba(0, 6, 8, .76);
  backdrop-filter: blur(8px);
}

.game-info-dialog > div {
  padding: clamp(24px, 5vw, 42px);
}

.game-info-dialog h1 {
  margin: 6px 0 16px;
  color: #fff;
  font: 800 clamp(28px, 6vw, 48px)/1 Inter, "Segoe UI", system-ui, sans-serif;
}

.game-info-dialog h2 {
  margin: 26px 0 7px;
  color: #8ee3d1;
  font: 750 18px/1.2 Inter, "Segoe UI", system-ui, sans-serif;
}

.game-info-dialog p {
  color: #b7cbc6;
  font: 400 15px/1.65 Inter, "Segoe UI", system-ui, sans-serif;
}

.game-dialog-kicker {
  margin: 0;
  color: #72d4c1 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.game-device-note {
  padding: 12px 14px;
  border-left: 3px solid #c98ee8;
  background: rgba(178, 105, 215, .1);
}

.game-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

@media (max-width: 820px) {
  :root {
    --game-bar-height: 50px;
  }

  .game-portal-bar {
    gap: 10px;
    padding-inline: 9px;
  }

  .game-brand span,
  .game-portal-bar nav,
  [data-game-fullscreen] {
    display: none;
  }
}
