/* Midnight × Aurora (08): home-only composition. Dialogs keep their own
   viewport layout; their styles must not flatten the four curved panels. */
body.hub-home:not(.drawing-session-active) {
  overflow-y: auto;
}
.hub-home > .topbar {
  margin: 0 auto;
}
.hub-home .account-login-icon {
  display: none;
}
.hub-home > main {
  margin: 0 auto;
  flex: 1 0 auto;
  min-height: auto;
}
.hub-home .headline h1 {
  color: #fff1df;
}
.hub-home .headline h1 em {
  margin-left: 0.2em;
}
.hub-home .stage .games {
  display: grid;
}
.hub-home .home-join-form {
  width: min(315px, 100%);
  margin: auto auto 0;
}
.hub-home .home-join-form input {
  height: 100%;
  padding-left: 52px;
  background: #061e2bd9;
  border-color: #74a6b9;
}
.hub-home .home-join-form button {
  width: 100%;
  margin-top: 12px;
  justify-content: center;
  min-height: 56px;
  font-size: 19px;
}
.hub-home .stage .game-art {
  background-size: cover;
  background-position: center;
  max-height: none;
}
.hub-home .stage .game-status > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.hub-home .stage .game .game-status {
  font-size: 12px;
}
.hub-home .stage .game-art[data-game='drawing'] {
  background-image: url('/assets/covers/drawing.png');
}
.hub-home .stage .game-art[data-game='jungle'] {
  background-image: url('/assets/covers/board.png');
}
.hub-home .stage .game-art[data-game='board-game'] {
  background-image: url('/assets/covers/board.png');
}
.hub-home .stage .game-art[data-game='naval-coop'] {
  background-image: url('/assets/covers/naval.png');
}
.hub-home #social-body .friend-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.hub-home #social-body .friend-row {
  display: flex;
  justify-content: center;
  border: 0;
  padding: 0;
}
.hub-home #social-body .friend-identity {
  flex-direction: column;
  text-align: center;
  gap: 8px;
  width: 100%;
}
.hub-home #social-body .account-avatar {
  width: clamp(48px, 5.2vw, 90px);
  height: clamp(48px, 5.2vw, 90px);
  flex-basis: auto;
}
.hub-home #social-body .friend-id {
  display: none;
}
.hub-home #social-body .friend-identity strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hub-home #social-body .friend-identity > div {
  max-width: 100%;
}
@media (min-width: 1181px) {
  .hub-home {
    --nav-height: 64px;
  }
  .hub-home > .topbar {
    width: min(78%, 1560px);
    padding: 8px 28px;
  }
  .hub-home > .topbar nav {
    gap: clamp(8px, 1.4vw, 24px);
    font-size: clamp(15px, 1.1vw, 19px);
  }
  .hub-home > .topbar nav a {
    padding-inline: clamp(10px, 1vw, 20px);
  }
  .hub-home > main {
    width: min(90.6%, 1960px);
    max-width: none;
    padding: clamp(12px, 1.7vh, 22px) 0 12px;
  }
  .hub-home .headline {
    margin-bottom: 10px;
  }
  .hub-home .headline h1 {
    font-size: clamp(32px, 3.7vw, 70px);
  }
  .hub-home .headline p {
    font-size: clamp(16px, 1.45vw, 25px);
  }
  .hub-home .stage {
    container-type: inline-size;
    position: relative;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.53fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 0.4fr) minmax(0, 0.6fr);
    gap: 12px 0;
    min-height: 560px;
  }
  .hub-home .stage .roulette {
    position: absolute;
    grid-area: auto;
    left: 35%;
    top: calc(40% - 15cqw);
    width: 30%;
    max-height: none;
    margin: 0;
  }
  .hub-home .stage .panel {
    --wheel-cutout-x: 126.5%;
    --wheel-cutout-y: calc(100% + 6px);
    --wheel-cutout-radius: calc(16cqw + 4px);
    padding: clamp(20px, 1.9vw, 36px);
    mask-image: radial-gradient(
      circle at var(--wheel-cutout-x) var(--wheel-cutout-y),
      transparent 0 var(--wheel-cutout-radius),
      #000 calc(var(--wheel-cutout-radius) + 1px)
    );
  }
  .hub-home .stage .panel::after {
    display: block;
  }
  .hub-home .stage .join-panel,
  .hub-home .stage .social-panel {
    --wheel-cutout-x: -26.5%;
    padding-left: clamp(52px, 5.2vw, 110px);
  }
  .hub-home .stage .collection-panel,
  .hub-home .stage .social-panel {
    --wheel-cutout-y: -6px;
    padding-top: 18px;
  }
  .hub-home .stage .collection-panel {
    padding-right: clamp(48px, 3.6vw, 74px);
  }
  .hub-home .stage .collection-panel .panel-title-row {
    padding-right: 28px;
  }
  .hub-home .stage .social-panel .panel-title-row > h2 {
    margin-left: clamp(14px, 1.25vw, 26px);
  }
  .hub-home .stage .panel h2 {
    font-size: clamp(23px, 2vw, 37px);
    gap: 12px;
  }
  .hub-home .stage .join-panel h2 {
    margin-left: 0;
  }
  .hub-home .stage .join-panel {
    padding-top: 20px;
    padding-bottom: 14px;
  }
  .hub-home .home-join-form .input-shell {
    height: 48px;
  }
  .hub-home .home-join-form button {
    margin-top: 10px;
  }
  .hub-home .stage .panel > p {
    font-size: clamp(15px, 1.1vw, 20px);
    margin: 6px 0 12px 45px;
  }
  .hub-home .stage .panel > button {
    width: min(280px, 82%);
    min-height: 56px;
    font-size: 19px;
  }
  .hub-home .stage .create-panel {
    background-position: center 58%;
  }
  .hub-home .stage .games {
    margin-top: 8px;
    gap: 12px;
  }
  .hub-home .stage .game strong {
    font-size: clamp(14px, 1.05vw, 19px);
    padding: 10px 10px 5px;
  }
  .hub-home .stage .game small {
    font-size: 14px;
    padding: 0 10px 10px;
  }
  .hub-home #social-body {
    overflow-y: auto;
  }
}
@media (min-width: 1181px) and (max-height: 800px) {
  .hub-home > main {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .hub-home .headline {
    margin-bottom: 16px;
  }
  .hub-home .headline h1 {
    font-size: 36px;
  }
  .hub-home .headline p {
    margin-top: 4px;
  }
  .hub-home .headline::after {
    display: none;
  }
  .hub-home .stage .panel {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .hub-home .stage .panel > button {
    min-height: 48px;
  }
}
@media (max-width: 1180px) {
  .hub-home > main {
    flex: none;
    padding-bottom: 28px;
  }
  .hub-home .headline {
    display: block;
  }
  .hub-home .stage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    gap: 16px;
  }
  .hub-home .stage .roulette {
    grid-area: 1 / 1 / 2 / 3;
    width: min(56vw, 380px);
    margin: 4px auto 18px;
  }
  .hub-home .stage .create-panel {
    grid-area: 2 / 1;
  }
  .hub-home .stage .join-panel {
    grid-area: 2 / 2;
  }
  .hub-home .stage .collection-panel {
    grid-area: 3 / 1;
  }
  .hub-home .stage .social-panel {
    grid-area: 3 / 2;
  }
  .hub-home .stage .panel {
    min-height: 260px;
    padding: 20px;
    mask-image: none;
  }
  .hub-home .stage .collection-panel {
    background: var(--surface);
    min-height: 330px;
  }
  .hub-home .stage .panel-title-row {
    flex-direction: row;
    align-items: center;
  }
  .hub-home .stage .game-art {
    min-height: 130px;
  }
  .hub-home #social-body button {
    display: inline-flex;
    margin-top: 12px;
  }
  .hub-home #social-body {
    font-size: 15px;
  }
  .hub-home > .topbar {
    width: calc(100% - 24px);
  }
}
@media (max-width: 620px) {
  .hub-home .account-login-icon {
    display: block;
    width: 24px;
    height: 24px;
  }
  .hub-home #account-open {
    flex: 0 0 40px;
    min-width: 40px;
    justify-content: center;
  }
  .hub-home #account-open .account-open-label {
    display: none;
  }
  .hub-home > .topbar {
    width: 100%;
  }
  .hub-home .stage {
    display: flex;
  }
  .hub-home .stage .roulette {
    width: min(80vw, 340px);
  }
  .hub-home .stage .panel {
    min-height: 250px;
  }
  .hub-home .stage .collection-panel {
    min-height: 320px;
  }
  .hub-home .stage .panel h2 {
    font-size: 22px;
  }
  .hub-home .stage .game strong {
    font-size: 13px;
  }
  .hub-home .stage .game small {
    font-size: 12px;
  }
  .hub-home .stage .panel > p {
    display: block;
    font-size: 15px;
  }
}
