.practice-home.duel-hub {
  --duel-ink: #111114;
  --duel-surface: #1a191f;
  --duel-raise: #25232b;
  --duel-line: #383541;
  --duel-text: #f5f3f8;
  --duel-muted: #b6b0bf;
  --duel-gold: #f1cc88;
  --duel-gutter: clamp(16px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 74% 5%, #272035 0, transparent 32rem), var(--duel-ink);
}

.duel-hub .play-hub-width {
  width: min(1240px, calc(100% - 2 * var(--duel-gutter)));
  margin-inline: auto;
}

.duel-hub .duel-hub-header {
  display: block;
  min-height: 0;
  padding: 0;
  border-color: #ffffff14;
  background: #151419;
}

.play-hub-header {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  min-height: 62px;
  align-items: center;
  gap: 22px;
}

.play-hub-header .duel-hub-brand { gap: 9px; }
.play-hub-header .duel-hub-brand :is(a, #standalone-game-name) { padding-inline-start: 11px; font-size: .75rem; }

.play-hub-header nav :is(a, button),
.play-hub-footer nav :is(a, button) {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--duel-muted);
  background: transparent;
  font-size: .82rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.play-hub-header nav :is(a, button):hover,
.play-hub-footer nav :is(a, button):hover { color: var(--duel-text); background: var(--duel-raise); }

.duel-hub #home-account {
  display: block;
  min-height: 36px;
  max-width: min(100%, 12rem);
  justify-self: end;
  padding-inline: 12px;
  overflow: hidden;
  border-radius: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.duel-hub .duel-hub-feature {
  grid-template-columns: minmax(0, .77fr) minmax(0, 1.23fr);
  gap: clamp(24px, 4.2vw, 63px);
  min-height: 0;
  padding: clamp(42px, 6vw, 96px) 0 clamp(38px, 5vw, 71px);
  border: 0;
}

.duel-hub .duel-hub-console h1 {
  font: 760 clamp(2.75rem, 4.5vw, 4.25rem)/.98 Geist, Inter, "Segoe UI", sans-serif;
  letter-spacing: -.064em;
  text-shadow: none;
  text-wrap: balance;
}

.duel-hub .duel-hub-console p {
  max-width: 45ch;
  margin: 18px 0 22px;
  color: var(--duel-muted);
  font-size: clamp(.94rem, 1.3vw, 1.07rem);
  line-height: 1.58;
}

.duel-hub .duel-launch .btn {
  min-height: 44px;
  padding: 8px 15px;
  gap: 10px;
  border-radius: 7px;
  font-size: .84rem;
}

.duel-hub .duel-launch .duel-gold { border-color: var(--duel-gold); background: var(--duel-gold); }
.duel-hub .duel-launch .duel-gold:hover { background: #ffdfa4; }
.duel-hub #home-resume:not([hidden]) { border-color: #a18f68; }

.duel-launch-preferences {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 11px;
}
.duel-hub .duel-launch-formats { gap: 4px 6px; margin: 0; }
.duel-hub #home-sound-toggle { min-height: 36px; padding-inline: 9px; font-size: 12px; }
.duel-hub .duel-launch-formats button {
  min-height: 38px;
  align-items: center;
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  color: var(--duel-muted);
  background: transparent;
}
.duel-hub .duel-launch-formats button:hover { color: var(--duel-text); background: var(--duel-raise); }

.play-hub-table-preview {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #6e5b7c;
  border-radius: 12px;
  background: #1d1823;
  box-shadow: 0 15px 48px #080609c0, 0 0 42px #6f467324;
}

.play-hub-table-preview img { display: block; width: 100%; height: auto; }
.play-hub-table-preview figcaption {
  display: flex;
  min-height: 37px;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  padding: 6px 12px;
  border-top: 1px solid #ffffff1c;
  color: #d0c6da;
  font-size: .73rem;
}
.play-hub-preview-dot { width: 6px; height: 6px; border-radius: 50%; background: #9ed3bb; }

.play-hub-modes { padding-bottom: 36px; }
.play-hub-modes h2,
.duel-hub .duel-hub-shelves h2 {
  margin: 0 0 13px;
  color: var(--duel-text);
  font: 730 clamp(1.22rem, 2.3vw, 1.52rem)/1.2 Geist, Inter, "Segoe UI", sans-serif;
  letter-spacing: -.026em;
}

.play-hub-mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.play-hub-mode {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  justify-items: start;
  min-width: 0;
  gap: 8px;
  padding: 17px;
  border: 1px solid var(--duel-line);
  border-radius: 9px;
  color: var(--duel-text);
  background: var(--duel-surface);
  text-align: start;
  text-decoration: none;
}

.play-hub-mode:hover { border-color: #82718f; background: var(--duel-raise); }
.play-hub-mode strong { font-size: .96rem; }
.play-hub-mode-description { color: var(--duel-muted); font-size: .83rem; line-height: 1.43; }
.play-hub-mode-action { color: var(--duel-gold); font-size: .8rem; font-weight: 690; }
.play-hub-mode-action > span { margin-inline-start: 2px; }

.play-hub-mode-icon {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-bottom: 2px;
  border-radius: 7px;
  color: #e8c6ff;
  background: #392947;
  font-size: 1.28rem;
  font-weight: 650;
  line-height: 1;
}
.play-hub-mode-icon--replay { color: #b4d6ff; background: #24364b; }
.play-hub-mode-icon--decks { color: #f1cf98; background: #473520; }
.play-hub-mode-icon--build { color: #a4dfcc; background: #263e38; }
.play-hub-mode-icon--puzzles { color: #f6c9ce; background: #4a3038; }
.play-hub-mode-icon--cards { color: #c5cbf5; background: #333951; }

.duel-hub .duel-hub-shelves { padding: 0 0 36px; }
.duel-hub .duel-shelf-header h2 { margin-bottom: 0; }
.duel-hub .duel-tournaments { padding-block-start: 23px; border-top: 1px solid var(--duel-line); }
.duel-hub .duel-tournament-list li { border-color: var(--duel-line); border-radius: 8px; background: var(--duel-surface); }
.duel-hub .duel-tournament-list li:not(:has(.duel-tournament-portrait)) { min-height: 116px; }
.duel-hub .duel-tournament-list li:hover { border-color: #82718f; }
.duel-hub .duel-tournaments .btn { min-height: 36px; border-radius: 6px; }

.play-hub-footer { margin-block-start: auto; border-top: 1px solid var(--duel-line); }
.play-hub-footer > div {
  display: flex;
  min-height: 64px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0 16px;
  padding-block: 8px;
}
.play-hub-footer nav { display: flex; flex-wrap: wrap; align-items: center; }
.play-hub-footer p { margin-block: 8px; color: var(--duel-muted); font-size: .8rem; }
.play-hub-footer nav :is(a, button) { min-height: 39px; }

@media (min-width: 821px) {
  .duel-hub .play-hub-mode-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .duel-hub .duel-hub-feature { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .duel-hub .duel-hub-console { max-width: none; }
  .duel-hub .duel-hub-console h1 { text-wrap: wrap; }
  .play-hub-mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 570px) {
  .play-hub-header { grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; padding-top: 6px; }
  .play-hub-header nav { grid-column: 1 / -1; grid-row: 2; gap: 4px; }
  .play-hub-header #home-account { grid-column: 2; grid-row: 1; max-width: 35vw; }
  .play-hub-header .duel-hub-brand { gap: 8px; }
  .play-hub-header .duel-hub-brand :is(a, #standalone-game-name) { padding-inline-start: 8px; }
  .play-hub-header nav :is(a, button) { padding-inline: 8px; }
  .duel-hub .duel-hub-feature { padding-block: 30px 27px; }
  .duel-hub .duel-hub-console p { margin: 12px 0 17px; }
  .duel-launch-preferences { margin-top: 5px; }
  .play-hub-mode-grid { gap: 8px; }
  .play-hub-mode { padding: 13px; }
  .play-hub-footer nav :is(a, button) { padding-inline: 6px; }
}

@media (prefers-reduced-motion: no-preference) {
  .play-hub-mode { transition: background-color 140ms ease, border-color 140ms ease; }
}
