/* Secondary hub destinations use the Play homepage's setting, type and materials. */
#screen-lobby.active-screen:has(.hub-page:not([hidden])) { height: auto; min-height: 100dvh; overflow: visible; }
.home-lobby:has(.hub-page:not([hidden])) { overflow: visible; }
.home-lobby:has(.hub-page:not([hidden])) .home-lobby-art { transform: none; }
.home-stage[hidden], .hub-page[hidden] { display: none !important; }
.hub-page {
  position: relative;
  z-index: 2;
  width: min(1280px, 100%);
  min-height: calc(100dvh - 76px);
  margin: 0 auto;
  padding: clamp(28px, 4.5vw, 68px) clamp(20px, 3.5vw, 48px) 72px;
  color: #fff;
}
.home-lobby:has(.hub-page:not([hidden])) .home-lobby-shade {
  background: linear-gradient(180deg, rgba(7,8,30,.54), rgba(7,8,30,.72) 55%, rgba(7,8,30,.94)),
    linear-gradient(90deg, rgba(7,8,30,.76), rgba(7,8,30,.18));
}
.hub-eyebrow, .hub-section-heading small, .hub-feature > span:first-child, .hub-feature > small,
.hub-feature-row span, .hub-pill { font-size: .67rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hub-eyebrow { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.24); color: #f3ff20; }
.hub-eyebrow span { color: rgba(255,255,255,.54); }
.hub-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(275px, .47fr); align-items: stretch; gap: clamp(24px, 4vw, 58px); margin: clamp(34px, 5vw, 76px) 0 52px; }
.hub-heading > div:first-child { align-self: center; min-width: 0; }
.hub-heading h1 { max-width: 860px; margin: 18px 0; color: #fff; font-size: clamp(3.3rem, 6vw, 6rem); font-weight: 950; letter-spacing: -.065em; line-height: .93; text-transform: uppercase; white-space: normal; text-wrap: balance; text-shadow: 0 10px 30px rgba(0,0,0,.22); }
.hub-heading h1 em { display: block; color: #f3ff20; font-style: normal; }
.hub-heading p { max-width: 600px; color: rgba(255,255,255,.78); font-size: clamp(.94rem, 1.35vw, 1.13rem); line-height: 1.6; }
.hub-pill { display: inline-block; padding: 8px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 100px; background: rgba(10,10,38,.42); color: #dfe4ff; }
.hub-feature { display: flex; flex-direction: column; justify-content: space-between; min-height: 320px; padding: clamp(24px, 3vw, 40px); border: 1px solid rgba(255,255,255,.2); border-radius: 26px; background: linear-gradient(160deg, rgba(44,38,93,.88), rgba(11,13,41,.92)); box-shadow: 0 28px 65px rgba(2,2,23,.35), inset 0 1px rgba(255,255,255,.11); backdrop-filter: blur(18px); }
.hub-feature > span:first-child { color: #f3ff20; }
.hub-feature strong { display: block; color: #fff; font-size: clamp(2.5rem, 4vw, 4.4rem); font-weight: 950; letter-spacing: -.06em; line-height: .99; text-transform: uppercase; }
.hub-feature > small { color: rgba(255,255,255,.63); }
.hub-feature-shop { background: radial-gradient(circle at 80% 85%, rgba(243,255,32,.22), transparent 40%), linear-gradient(155deg, rgba(48,35,87,.94), rgba(12,14,46,.96)); }
.hub-feature-quests { background: radial-gradient(circle at 85% 80%, rgba(255,101,124,.3), transparent 42%), linear-gradient(150deg, rgba(49,31,88,.94), rgba(13,14,44,.96)); }
.hub-feature-compete { background: radial-gradient(circle at 75% 88%, rgba(96,182,255,.26), transparent 42%), linear-gradient(150deg, rgba(35,36,83,.94), rgba(10,15,43,.96)); }
.hub-feature-career { background: radial-gradient(circle at 75% 82%, rgba(243,255,32,.16), transparent 42%), linear-gradient(150deg, rgba(37,37,83,.94), rgba(11,13,43,.96)); }
.hub-feature-career .hub-avatar { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: #f3ff20; color: #111426; font-size: 2.8rem; font-weight: 950; box-shadow: 0 0 0 8px rgba(243,255,32,.12); }
.hub-feature-career strong { overflow-wrap: anywhere; font-size: clamp(2rem, 3.5vw, 3.3rem); }
.hub-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 12px 0 18px; }
.hub-section-heading small { color: #d2cbff; }
.hub-section-heading h2 { margin-top: 4px; color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.5rem); font-weight: 950; letter-spacing: -.045em; }
.hub-text-button { padding: 10px 0; border: 0; background: transparent; color: #f3ff20; cursor: pointer; font-size: .82rem; font-weight: 900; }
.hub-text-button span { margin-left: 5px; }
.hub-board-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.hub-board-card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; padding: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: rgba(12,14,43,.84); color: #fff; cursor: pointer; text-align: left; box-shadow: 0 16px 36px rgba(3,3,24,.25); transition: transform .2s, border-color .2s; }
.hub-board-card:hover, .hub-board-card:focus-visible { transform: translateY(-4px); border-color: #f3ff20; outline: none; }
.hub-board-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #171d2d; }
.hub-board-card > span { display: grid; gap: 5px; padding: 14px; }
.hub-board-card strong { font-size: .88rem; font-weight: 900; line-height: 1.25; }
.hub-board-card small { color: rgba(255,255,255,.58); font-size: .7rem; line-height: 1.35; }
.hub-note { display: flex; align-items: center; gap: 18px; margin-top: 24px; padding: 19px 22px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(12,13,43,.8); backdrop-filter: blur(16px); }
.hub-note-icon { display: grid; place-items: center; flex: 0 0 auto; width: 45px; height: 45px; border-radius: 12px; background: #f3ff20; color: #111426; font-size: 1.25rem; }
.hub-note strong { color: #fff; font-size: .93rem; }
.hub-note p { margin-top: 4px; color: rgba(255,255,255,.65); font-size: .78rem; line-height: 1.45; }
.hub-note button { flex: 0 0 auto; margin-left: auto; padding: 12px 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; font-weight: 850; }
.hub-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hub-actions button { min-height: 54px; padding: 0 22px; border-radius: 12px; cursor: pointer; font-size: .85rem; font-weight: 950; text-transform: uppercase; }
.hub-primary { border: 1px solid #f3ff20; background: #f3ff20; color: #101225; box-shadow: 0 9px 24px rgba(243,255,32,.16); }
.hub-primary span { margin-left: 20px; }
.hub-outline { border: 1px solid rgba(255,255,255,.38); background: rgba(11,12,39,.55); color: #fff; }
.hub-actions button:hover, .hub-note button:hover { filter: brightness(1.12); }
.hub-heading-centered { display: block; max-width: 930px; margin: clamp(46px, 8vw, 120px) auto 85px; text-align: center; }
.hub-heading-centered h1 { margin-inline: auto; }
.hub-heading-centered h1 em { display: inline; }
.hub-heading-centered p { margin-inline: auto; }
.hub-heading-centered .hub-actions { justify-content: center; }
.hub-feature-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.hub-feature-row > div { min-height: 190px; padding: 24px; border: 1px solid rgba(255,255,255,.17); border-radius: 19px; background: rgba(13,14,44,.78); backdrop-filter: blur(14px); }
.hub-feature-row span { color: #f3ff20; }
.hub-feature-row strong { display: block; margin: 24px 0 7px; color: #fff; font-size: 1.28rem; font-weight: 900; letter-spacing: -.03em; }
.hub-feature-row p { color: rgba(255,255,255,.64); font-size: .82rem; line-height: 1.45; }
.hub-page button:focus-visible { outline: 3px solid #f3ff20; outline-offset: 3px; }

/* Account and arena take their materials and visual hierarchy from the hub. */
#screen-auth .auth-brand h1 { font-size: clamp(3.15rem, 6.5vw, 5.8rem); letter-spacing: -.06em; }
#screen-auth .auth-brand::before { content: '◆  LUDO ARENA  /  PLAYER ACCESS'; display: block; margin-bottom: 24px; color: #f3ff20; font-size: .68rem; font-weight: 950; letter-spacing: .15em; }
#screen-auth .auth-card { background: linear-gradient(155deg, rgba(29,27,69,.94), rgba(9,11,38,.95)); }
#screen-auth .auth-submit { text-transform: uppercase; }
#screen-arena.active-screen { min-height: 100dvh; background: linear-gradient(90deg, rgba(7,8,30,.88), rgba(7,8,30,.47)), url('assets/backgrounds/ludo-sunset-arena.webp') center / cover no-repeat; }
#screen-arena .lobby-header { min-height: 76px; padding-inline: clamp(18px,3vw,40px); border-color: rgba(255,255,255,.16); background: rgba(7,8,30,.68); }
#screen-arena .lobby-header h1 { color: #fff; font-size: .95rem; font-weight: 950; letter-spacing: .1em; }
#screen-arena .btn-secondary { min-height: 42px; padding: 0 18px; border-color: rgba(255,255,255,.32); border-radius: 11px; color: #fff; font-weight: 800; }
#screen-arena .arena-body { width: min(760px,100%); max-width: none; min-height: calc(100dvh - 76px); padding: 36px 24px 55px; }
#screen-arena .arena-body::before { content: 'ONLINE / CLASSIC LUDO'; margin-bottom: 16px; color: #f3ff20; font-size: .68rem; font-weight: 950; letter-spacing: .16em; }
#screen-arena .arena-title { color: #fff; font-size: clamp(3.5rem,8vw,6rem); font-weight: 950; letter-spacing: -.06em; line-height: .95; }
#screen-arena .arena-subtitle { color: rgba(255,255,255,.78); }
#screen-arena .arena-slots { gap: 12px; margin-bottom: 26px; }
#screen-arena .arena-slot { min-height: 112px; padding: 20px; border-color: rgba(255,255,255,.18); border-radius: 18px; background: rgba(12,14,43,.83); box-shadow: 0 12px 25px rgba(2,2,20,.22); backdrop-filter: blur(16px); }
#screen-arena .arena-slot-filled { border-color: var(--slot-color); }
#screen-arena .arena-slot-color { width: 18px; height: 18px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--slot-color) 22%, transparent); }
#screen-arena .arena-slot-team { color: #fff; font-size: .94rem; font-weight: 950; }
#screen-arena .arena-slot-name, #screen-arena .arena-slot-empty { color: rgba(255,255,255,.65); font-size: .82rem; }
#screen-arena .arena-play-btn { min-width: 230px; min-height: 60px; border-radius: 12px; background: #f3ff20; color: #111426; font-weight: 950; box-shadow: 0 9px 24px rgba(243,255,32,.18); }
#screen-arena .arena-play-btn:hover { background: #fbff6a; }
#screen-arena .arena-hint { color: rgba(255,255,255,.72); }

@media (max-width: 980px) {
  .hub-heading { grid-template-columns: minmax(0,1fr) minmax(240px,.6fr); gap: 24px; }
  .hub-board-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .home-tabs .home-tab:nth-child(n+5) { display: block; }
}
@media (max-width: 690px) {
  .home-tabs { scroll-behavior: smooth; }
  .hub-page { padding: 28px 18px 60px; }
  .hub-heading { display: flex; flex-direction: column; gap: 28px; margin: 35px 0; }
  .hub-heading > div:first-child { align-self: stretch; }
  .hub-heading h1 { font-size: clamp(3.3rem,12vw,5rem); }
  .hub-feature { min-height: 230px; }
  .hub-feature strong { font-size: 2.8rem; }
  .hub-board-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hub-feature-row { grid-template-columns: 1fr; }
  .hub-feature-row > div { min-height: 135px; }
  .hub-feature-row strong { margin-top: 16px; }
  .hub-note { align-items: flex-start; flex-wrap: wrap; }
  .hub-note button { margin-left: 0; width: 100%; }
  .hub-heading-centered { margin: 50px auto; }
  #screen-arena .arena-slots { grid-template-columns: 1fr 1fr; }
  #screen-arena .arena-slot { min-height: 90px; padding: 14px; }
}
@media (max-width: 380px) {
  .hub-board-grid { gap: 8px; }
  .hub-board-card > span { padding: 10px; }
  #screen-arena .arena-slots { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .hub-board-card { transition: none; } }

/* MM-12 shop front (Fortnite item-shop pattern, phone-first). The cards are the shelf API's offers,
   composed into sections; the purchase control is whatever premium-pages.js draws. */
.hub-page[data-hub-destination="shop"] { --shop-ink: #fff; --shop-muted: rgba(255,255,255,.72); --shop-accent: #f3ff20; --shop-card: rgba(12,14,43,.9); --shop-line: rgba(255,255,255,.16); }
.shop-head { position: sticky; top: var(--shop-sticky-top, 0px); z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px -4px 8px; padding: 10px 4px; background: linear-gradient(180deg, rgba(8,9,35,.96), rgba(8,9,35,.86)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--shop-line); }
.shop-head-title { min-width: 0; }
.shop-head h1 { margin: 0; color: var(--shop-ink); font-size: clamp(1.7rem, 7vw, 4.2rem); font-weight: 950; letter-spacing: -.05em; line-height: .95; text-transform: uppercase; }
.shop-head h1 em { color: var(--shop-accent); font-style: normal; }
.shop-head p { margin: 4px 0 0; color: var(--shop-muted); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.shop-head-side { display: flex; align-items: center; gap: 10px; flex: none; }
.shop-head-side .hub-text-button { display: none; }
.shop-coins { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 8px; border: 1px solid rgba(243,255,32,.45); border-radius: 999px; background: rgba(10,10,38,.82); white-space: nowrap; }
.shop-coins-icon { width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fffbb0, #f3d020 55%, #b88a00); box-shadow: inset 0 0 0 2px rgba(0,0,0,.18); }
.shop-coins strong { color: var(--shop-ink); font-size: 1.05rem; font-weight: 950; font-variant-numeric: tabular-nums; }
.shop-coins strong[data-shop-balance="none"] { color: var(--shop-muted); font-size: .78rem; font-weight: 850; }

.shop-shelf { display: flex; flex-direction: column; gap: 36px; padding-top: 8px; }
.shop-shelf-status { margin: 0; color: var(--shop-muted, rgba(255,255,255,.72)); }
.shop-section { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.shop-section-head { padding: 0; border: 0; background: none; }
.shop-section-head h2 { margin: 0; color: var(--shop-ink); font-size: clamp(1.7rem, 6vw, 3rem); font-weight: 950; letter-spacing: -.04em; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.shop-section-head p { margin: 6px 0 0; color: var(--shop-muted); font-size: .82rem; font-weight: 700; }

/* Rarity tints: the card background takes the item's rarity colour. */
.shop-offer { --rarity: #5b6a8a; --rarity-deep: #1b2238; position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 2px solid color-mix(in srgb, var(--rarity) 70%, transparent); border-radius: 14px; background: var(--shop-card); box-shadow: 0 14px 30px rgba(3,3,24,.3); }
.shop-rarity-uncommon { --rarity: #4fbf4a; --rarity-deep: #123d1c; }
.shop-rarity-rare { --rarity: #3aa0ff; --rarity-deep: #0c2a5a; }
.shop-rarity-epic { --rarity: #b45cff; --rarity-deep: #34105e; }
.shop-rarity-legendary { --rarity: #ff9a2e; --rarity-deep: #5a2a06; }
.shop-offer-media { display: grid; place-items: center; background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--rarity) 75%, #fff 0%), var(--rarity-deep) 78%); }
.shop-offer-media img { display: block; width: 100%; height: 100%; object-fit: contain; }

.shop-offer-tags { position: absolute; top: 8px; left: 8px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 16px); pointer-events: none; }
.shop-tag { padding: 4px 8px; border-radius: 6px; font-size: .62rem; font-weight: 950; letter-spacing: .08em; line-height: 1.1; text-transform: uppercase; box-shadow: 0 4px 10px rgba(0,0,0,.3); }
.shop-tag-new { background: var(--shop-accent); color: #14152b; }
.shop-tag-leaving { background: #ff5a6e; color: #fff; }
.shop-tag-discount { background: #fff; color: #14152b; }

.shop-offer h3 { margin: 0; color: var(--shop-ink); font-size: 1rem; font-weight: 950; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; text-transform: uppercase; }
.shop-offer-kicker { color: var(--shop-muted); font-size: .64rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.shop-offer-series { margin: 0; color: var(--shop-muted); font-size: .72rem; font-weight: 650; }
.shop-offer-until { white-space: nowrap; }
.shop-offer-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; color: var(--shop-ink); font-size: .95rem; font-weight: 950; font-variant-numeric: tabular-nums; }
.shop-offer-price::before { content: ""; align-self: center; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fffbb0, #f3d020 55%, #b88a00); }
.shop-offer-list-price, .shop-offer-parts-total { color: rgba(255,255,255,.6); font-size: .78em; font-weight: 800; }
.shop-offer-your-price { color: var(--shop-accent); }
.shop-offer-ownership { margin: 0; color: var(--shop-muted); font-size: .7rem; font-weight: 800; }
.shop-offer[data-owned="true"] .shop-offer-ownership { color: var(--shop-accent); }
.shop-offer-bundle-note { margin: 0; color: var(--shop-muted); font-size: .7rem; line-height: 1.4; }
.shop-offer-purchase { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px dashed rgba(255,255,255,.38); border-radius: 10px; background: transparent; color: var(--shop-muted); cursor: not-allowed; font-size: .76rem; font-weight: 850; }
.shop-offer-purchase:disabled { opacity: 1; }
.shop-offer-preview { align-self: flex-start; min-height: 32px; padding: 4px 0; border: 0; background: transparent; color: var(--shop-accent); cursor: pointer; font-size: .72rem; font-weight: 900; text-align: left; }
.shop-offer-preview:hover { text-decoration: underline; }

/* The set's bundle: a wide banner, every part's art across it. */
.shop-card-banner { border-width: 2px; }
.shop-banner-art .shop-offer-media { display: flex; align-items: stretch; aspect-ratio: 16 / 9; }
.shop-banner-art .shop-offer-media img { flex: 1 1 0; min-width: 0; padding: 4%; }
.shop-card-banner .shop-offer-body { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--rarity-deep) 60%, transparent), var(--shop-card)); }
.shop-card-banner h3 { font-size: clamp(1.15rem, 4.6vw, 1.8rem); }
.shop-offer-pricing { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.shop-card-banner .shop-offer-price { font-size: 1.35rem; }
.shop-offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 4px; }
.shop-offer-actions .shop-offer-purchase { flex: 1 1 100%; max-width: 320px; }

/* Parts and single items: large art-first tiles, name + price bottom-left over the art. */
.shop-tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shop-tile-face { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.shop-card-tile .shop-offer-media { position: absolute; inset: 0; }
.shop-card-tile .shop-offer-media img { padding: 8% 8% 34%; }
.shop-card-tile .shop-offer-body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 3px; padding: 26px 10px 10px; background: linear-gradient(180deg, transparent, rgba(6,7,26,.82) 38%, rgba(6,7,26,.95)); }
.shop-card-tile h3 { font-size: .88rem; }
.shop-tile-foot { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px 10px; border-top: 1px solid var(--shop-line); }
.shop-tile-foot .shop-offer-purchase { min-height: 40px; font-size: .7rem; }
.shop-offer-focus { outline: 3px solid var(--shop-accent); outline-offset: 2px; }

/* HL-10 shop pass: bundle math, owned-part credit, honest countdown, the new-player first shelf. */
.shop-rotation { margin: 0; color: var(--shop-muted); font-size: .72rem; font-weight: 850; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.shop-bundle-math { margin: 0; color: var(--shop-ink); font-size: .86rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.shop-bundle-math strong { color: var(--shop-accent); font-weight: 950; }
.shop-bundle-math .shop-offer-parts-total { font-size: 1em; }
.shop-bundle-credit { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; color: var(--shop-accent); font-size: .7rem; font-weight: 800; }
.shop-offer-credit { margin: 0; color: var(--shop-accent); font-size: .66rem; font-weight: 850; line-height: 1.3; }
.shop-offer-countdown { margin: 0; color: var(--shop-muted); font-size: .68rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.shop-offer-countdown[data-rotated-out="true"], .shop-rotation[data-rotated-out="true"] { color: #ff8a98; }
.shop-section-first { padding: 14px; border: 2px solid rgba(243,255,32,.55); border-radius: 16px; background: rgba(243,255,32,.06); }
.shop-first-badge { display: inline-block; margin-bottom: 6px; padding: 4px 8px; border-radius: 6px; background: var(--shop-accent); color: #14152b; font-size: .62rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.shop-first-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.shop-first-card { --rarity: #5b6a8a; --rarity-deep: #1b2238; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 2px solid color-mix(in srgb, var(--rarity) 70%, transparent); border-radius: 12px; background: var(--shop-card); }
.shop-first-card .shop-offer-media { aspect-ratio: 1 / 1; }
.shop-first-card .shop-offer-media img { padding: 10%; }
.shop-first-body { display: flex; flex-direction: column; gap: 4px; padding: 8px; }
.shop-first-body h3 { margin: 0; color: var(--shop-ink); font-size: .74rem; font-weight: 950; line-height: 1.15; overflow-wrap: anywhere; text-transform: uppercase; }
.shop-first-price { margin: 0; color: var(--shop-ink); font-size: .74rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.shop-first-see { min-height: 36px; padding: 6px 8px; border: 1px solid var(--shop-accent); border-radius: 8px; background: transparent; color: var(--shop-accent); cursor: pointer; font-size: .68rem; font-weight: 900; }
.shop-first-see:focus-visible { outline: 2px solid var(--shop-accent); outline-offset: 2px; }

@media (min-width: 640px) {
  .shop-tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .shop-head-side { gap: 14px; }
  .shop-head-side .hub-text-button { display: inline-flex; }
}
@media (min-width: 980px) {
  .shop-tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shop-card-banner { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); }
  .shop-card-banner .shop-offer-body { justify-content: center; padding: 24px; }
  .shop-card-banner .shop-banner-art .shop-offer-media { height: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .shop-card-tile { transition: transform .16s ease, box-shadow .16s ease; }
  .shop-card-tile:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(3,3,24,.42); }
}

/* Secondary destinations retain navigation and make the next action obvious. */
.home-lobby:has(.hub-page:not([hidden])) .home-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 9, 35, .88);
  border-bottom: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.hub-board-action { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; color: #f3ff20; font-size: .7rem; font-weight: 900; }
.hub-board-card:hover .hub-board-action { text-decoration: underline; }
#screen-auth .auth-account-hint { margin: 0 0 18px; color: rgba(255,255,255,.72); font-size: .78rem; line-height: 1.5; }
#screen-auth .auth-password-field { position: relative; }
#screen-auth .auth-password-field input { width: 100%; padding-right: 70px; }
#screen-auth .auth-password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); min-width: 54px; min-height: 36px; border: 0; border-radius: 7px; background: transparent; color: #f3ff20; cursor: pointer; font-weight: 850; }
#screen-auth .auth-password-toggle:focus-visible { outline: 2px solid #f3ff20; }
#screen-auth .auth-error:not(:empty) { margin-top: 12px; }
#screen-auth .auth-submit:disabled { opacity: .68; cursor: wait; }
@media (max-width: 760px) {
  .home-lobby:has(.hub-page:not([hidden])) .home-tabs { scroll-padding-inline: 36px; }
  .hub-board-action { font-size: .65rem; }
}

/* Stripe coin packs (Vault board 1663): Get Coins and the four server-defined packs. */
.shop-get-coins { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: #f3ff20; color: #11132f; font: inherit; font-size: .78rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.shop-coin-packs { margin: 0 0 22px; padding: 18px; border: 1px solid rgba(243,255,32,.35); border-radius: 16px; background: rgba(10,10,38,.72); }
.shop-coin-packs[hidden] { display: none; }
.shop-coin-packs-head h2 { margin: 0; font-size: 1.1rem; }
.shop-coin-packs-head p { margin: 4px 0 12px; color: rgba(255,255,255,.7); font-size: .78rem; font-weight: 700; }
.shop-coin-pack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.shop-coin-pack { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 84px; padding: 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; background: rgba(176,210,255,.14); color: #fff; font: inherit; cursor: pointer; }
.shop-coin-pack:not([disabled]):hover { border-color: #f3ff20; }
.shop-coin-pack[disabled] { opacity: .5; cursor: default; }
.shop-coin-pack-coins { font-size: 1rem; font-weight: 900; }
.shop-coin-pack-price { font-size: .86rem; font-weight: 800; color: #f3ff20; }
.shop-coin-adult { display: flex; gap: 8px; align-items: center; font-size: .82rem; font-weight: 700; }
.shop-coin-adult input { width: 20px; height: 20px; }
.shop-coin-signin { min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: #f3ff20; color: #11132f; font: inherit; font-weight: 900; cursor: pointer; }
.shop-coin-gate, .shop-coin-status { margin: 8px 0; font-size: .82rem; font-weight: 700; }
.shop-coin-status[data-tone="error"] { color: #ff8a8a; }
.shop-coin-status[data-tone="success"] { color: #9dffb0; }
.shop-coin-terms { margin: 8px 0 0; color: rgba(255,255,255,.62); font-size: .72rem; line-height: 1.4; }
@media (max-width: 600px) { .shop-coin-pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
