.home-game-entry[hidden] {
  display: none;
}

.home-game-entry {
  position: fixed;
  z-index: 40;
  right: 16px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  min-height: 96px;
  margin-inline: auto;
  padding: 20px 28px;
  border: 1px solid #2d405c;
  border-radius: 22px;
  background: #172740;
  color: #f7fafc;
  box-shadow: 0 8px 24px rgb(15 29 49 / 12%);
}

.home-game-entry-copy {
  flex: 1;
  min-width: 0;
}

.home-game-entry-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.home-game-entry-heading strong {
  font-size: 20px;
  line-height: 1.4;
}

.home-game-entry-badge {
  padding: 2px 7px;
  border: 1px solid rgb(244 206 135 / 45%);
  border-radius: 6px;
  color: #f4ce87;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
}

.home-game-entry-copy p {
  margin: 4px 0 0;
  color: #bdc9dc;
  font-size: 13px;
  line-height: 1.5;
}

.home-game-entry-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 170px;
  min-height: 56px;
  padding: 12px 22px;
  border: 1px solid #e4ba72;
  border-radius: 15px;
  background: #f4ce87;
  color: #51390e;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.home-game-entry-button:hover {
  background: #ffdc9d;
}

.home-game-entry-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

body.has-home-game-entry #app {
  height: calc(100% - var(--home-game-entry-space, 132px));
}

body.has-home-game-entry #app > .shell {
  min-height: 0;
  grid-template-rows: 68px minmax(0, 1fr);
}

body.has-home-game-entry #app > .shell > .dashboard {
  min-height: 0;
}

body.has-home-game-entry .login-screen {
  height: 100%;
  min-height: 0;
}

body.has-home-game-entry .login-panel {
  min-height: 0;
  padding-block: 20px;
  overflow: auto;
  overscroll-behavior: contain;
  align-items: safe center;
}

@media (max-width: 600px) {
  .home-game-entry {
    right: 10px;
    left: 10px;
    gap: 12px;
    min-height: 84px;
    padding: 14px 16px;
    border-radius: 18px;
  }

  .home-game-entry-heading strong {
    font-size: 17px;
  }

  .home-game-entry-copy p {
    font-size: 12px;
  }

  .home-game-entry-button {
    gap: 10px;
    min-width: 124px;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 15px;
  }

  body.has-home-game-entry .tool-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.has-home-game-entry #app > .shell {
    grid-template-rows: auto minmax(0, 1fr);
  }

  body.has-home-game-entry #app > .shell > .topbar {
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    padding: 10px 14px;
  }

  body.has-home-game-entry .topbar > .brand {
    flex: 1 0 100%;
  }

  body.has-home-game-entry .topbar > .spacer {
    display: none;
  }

  body.has-home-game-entry .topbar > .button {
    flex: 0 0 44px;
    min-width: 44px;
    min-height: 44px;
    padding-inline: 0;
  }

  body.has-home-game-entry .topbar > .avatar {
    flex: 0 0 34px;
  }
}

@media (max-width: 360px) {
  .home-game-entry {
    gap: 10px;
    padding-inline: 12px;
  }

  .home-game-entry-heading {
    gap: 5px;
  }

  .home-game-entry-button {
    min-width: 112px;
    gap: 8px;
    font-size: 14px;
  }
}
