/* Play site refresh: paged game nav, search/account actions and the floating
   game window. Loaded after styles.css. */

/* ── Top bar: portal + paged game nav + search/account ── */
.topbar-inner { min-height: 68px; gap: 14px; }
.topbar { border-bottom: 2.5px solid var(--ink); }
.brand-mark { width: 41px; height: 41px; font-size: 25px; }

.portal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-height: 34px;
  padding: 6px 11px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.portal-link svg { width: 15px; height: 15px; }
.portal-link:hover { background: var(--yellow); }

.play-nav { display: flex; align-items: center; gap: 5px; min-width: 0; }
.play-nav-viewport { overflow: hidden; min-width: 0; }
.play-nav-track { display: flex; width: max-content; align-items: center; transition: transform .42s cubic-bezier(.4, 0, .2, 1); }
.play-nav-page { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; white-space: nowrap; }
.play-nav .nav-pill { padding: 7px 11px; font-size: 12px; border-width: 2px; background: transparent; cursor: pointer; }
/* Match the main site's sliding "更多" pill exactly: rounded, ink border, hard
   shadow, bold; the prev/next buttons slide with the track via the edge mask. */
.play-nav-page-btn {
  flex-shrink: 0;
  height: 30px;
  padding: 0 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s;
}
.play-nav-page-btn:hover { background: var(--yellow); }
.play-nav-page-btn.is-hidden { visibility: hidden; pointer-events: none; }

.play-top-actions { margin-left: auto; gap: 7px; }
.play-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 178px;
  height: 39px;
  padding: 0 11px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--muted);
}
.play-search > svg { width: 15px; height: 15px; flex-shrink: 0; }
.play-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
}
.play-search input::placeholder { color: #9a92a8; }
.game-search-results {
  position: absolute;
  right: -2px;
  top: calc(100% + 8px);
  width: 270px;
  padding: 6px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  z-index: 80;
}
.game-search-result {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.game-search-result:hover { background: var(--yellow); }
.game-search-result small { margin-left: auto; color: var(--muted); font-size: 9px; }
.game-search-empty { padding: 12px 10px; color: var(--muted); font-size: 11px; text-align: center; }

.icon-btn.play-icon-btn {
  position: relative;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  box-shadow: 2px 2px 0 var(--ink);
}
.icon-btn.play-icon-btn:hover { background: var(--yellow); }
.icon-btn.play-icon-btn svg { width: 16px; height: 16px; }
.count-badge {
  position: absolute;
  right: -5px;
  top: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 13px;
  text-align: center;
}
.play-user { position: relative; }
.play-avatar-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 39px;
  padding: 3px 7px 3px 3px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}
.play-avatar-btn:hover { background: var(--yellow); }
.play-avatar-btn > svg { width: 13px; height: 13px; color: var(--muted); }
.play-avatar-face {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe0c2, #ffb27a);
  color: #7a3506;
  font-size: 12px;
  font-weight: 900;
}
.play-avatar-face img { width: 100%; height: 100%; object-fit: cover; }
.play-user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 190px;
  padding: 6px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  z-index: 90;
}
.play-user-menu a,
.play-user-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  text-align: left;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.play-user-menu a:hover,
.play-user-menu button:hover { background: #fff3d8; }
.play-user-menu #play-logout-btn { color: #c94a3f; }
.play-user-sep { height: 1.5px; margin: 5px 6px; background: #e2d8c8; }

/* ── Marquee (filled and cloned by app.js) ── */
.marquee-track { gap: 0; }
.marquee-group { display: flex; align-items: center; gap: 26px; padding-right: 26px; flex: 0 0 auto; }

/* ── Floating game window ── */
.player-layer[hidden] { display: none; }
.player-layer {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}
.player-window {
  position: absolute;
  top: 8%;
  left: 10%;
  width: min(980px, calc(100vw - 48px));
  height: min(640px, calc(100vh - 120px));
  min-width: 420px;
  min-height: 300px;
  max-width: calc(100vw - 12px);
  max-height: calc(100vh - 12px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
  resize: both;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  background: #07141b;
  box-shadow: 7px 7px 0 var(--ink);
}
.player-window:fullscreen,
.player-window:-webkit-full-screen {
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  resize: none;
}
.player-window:fullscreen .player-head,
.player-window:-webkit-full-screen .player-head { display: none; }
.player-window:fullscreen .player-stage,
.player-window:-webkit-full-screen .player-stage { flex: 1; }
.player-window:fullscreen .player-resize-grip,
.player-window:-webkit-full-screen .player-resize-grip { display: none; }
.player-head { height: 46px; padding: 0 10px 0 13px; gap: 8px; border-bottom: 2.5px solid var(--ink); cursor: move; user-select: none; touch-action: none; }
.player-head.dragging { cursor: grabbing; }
.player-head .player-title { font-size: 13px; }
.player-head .player-tag { font-size: 9px; }
.player-controls { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.player-window-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 1.5px 1.5px 0 var(--ink);
  cursor: pointer;
}
.player-window-btn svg { width: 14px; height: 14px; }
.player-window-btn:hover { background: var(--yellow); }
.player-window-btn.close:hover { background: #ff9b8a; }
.player-stage { min-height: 0; }
.player-resize-grip {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 14px;
  height: 14px;
  pointer-events: none;
  opacity: .55;
  background: repeating-linear-gradient(135deg, transparent 0 3px, #9fb0ba 3px 4px);
  border-radius: 2px;
}
.player-cancel { color: #8fa2ad; }

/* Minimised dock — starts bottom-right and can be dragged */
.player-minimized[hidden] { display: none; }
.player-minimized {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 310;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.player-minimized:active { cursor: grabbing; }
.player-mini-restore {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  background: none;
  cursor: inherit;
  text-align: left;
}
.player-mini-logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--ink);
  border-radius: 9px;
  background: #17232c;
  color: #d8e3ea;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.player-mini-logo em { color: var(--yellow); font-style: normal; }
.player-mini-copy { display: flex; flex-direction: column; line-height: 1.2; }
.player-mini-copy strong { font-size: 11px; font-weight: 900; }
.player-mini-copy small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.player-mini-close {
  width: 30px;
  border: 0;
  border-left: 1.5px solid #e2d8c8;
  background: none;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.player-mini-close:hover { background: #ff9b8a; color: var(--ink); }

/* Unlock popup — compact card, no full-page tint */
.unlock-popup[hidden] { display: none; }
.unlock-popup {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.unlock-card {
  width: min(380px, 100%);
  padding: 18px;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--ink);
}
.unlock-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.unlock-head h3 { margin: 0; font-size: 19px; font-weight: 900; }
.unlock-close {
  width: 30px;
  height: 30px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 1.5px 1.5px 0 var(--ink);
  cursor: pointer;
  font-size: 12px;
}
.unlock-close:hover { background: #ff9b8a; }
.unlock-price { margin: 13px 0 4px; font-size: 13px; font-weight: 700; }
.unlock-price strong { color: #c2410c; }
.unlock-note { margin: 0 0 14px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.unlock-pay { width: 100%; color: var(--ink); }
.unlock-pay[disabled] { opacity: .55; cursor: wait; }
.unlock-card .login-btn {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 12px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s, transform .12s, box-shadow .12s;
}
.unlock-card .login-btn:hover { background: #ffe27a; }
.unlock-card .login-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.unlock-card .login-btn[hidden] { display: none; }

/* One cursor only: the parent cursor yields to the game iframe's own cursor. */
body.player-cursor-inside .custom-cursor { display: none !important; }

@media (max-width: 1180px) {
  .play-search { width: 150px; }
  .portal-link span { display: none; }
  .portal-link { padding: 7px 8px; }
}
@media (max-width: 900px) {
  .play-search { display: none; }
  .play-nav-page-btn { display: none; }
}
@media (max-width: 760px) {
  .topbar-inner { min-height: 66px; gap: 8px; }
  .play-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 2px solid var(--ink);
    border-radius: 14px;
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    z-index: 70;
  }
  .play-nav.open { display: flex; }
  .play-nav .nav-pill { text-align: center; }
  .play-nav-viewport { overflow: visible; width: auto !important; }
  .play-nav-track { display: block; transform: none !important; }
  .play-nav-page[hidden] { display: none; }
  .play-nav-page-btn { display: none !important; }
  .play-top-actions .play-icon-btn { display: none; }
  .player-window {
    min-width: 0;
    min-height: 0;
    width: calc(100vw - 16px) !important;
    height: calc(100vh - 120px) !important;
    left: 8px !important;
    top: 8px !important;
    resize: none;
  }
  .player-head { height: 44px; }
  .player-minimized { right: 10px; bottom: 10px; }
}
.play-nav .nav-pill.active { background: var(--yellow); border-color: var(--ink); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.play-publish {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 39px;
  padding: 0 12px;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.play-publish svg { width: 14px; height: 14px; }
.play-publish:hover { background: #e9650d; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
@media (max-width: 900px) {
  .play-publish span { display: none; }
  .play-publish { padding: 0 9px; }
}
@media (max-width: 760px) {
  .play-publish { display: none; }
}
@media (max-width: 1040px) {
  .play-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 2px solid var(--ink);
    border-radius: 14px;
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    z-index: 70;
  }
  .play-nav.open { display: flex; }
  .play-nav .nav-pill { text-align: center; }
  .play-nav-viewport { overflow: visible; width: auto !important; }
  .play-nav-track { display: block; transform: none !important; }
  .play-nav-page { display: block; width: auto !important; }
  .play-nav-page-btn { display: none !important; }
}
/* In-page "fullscreen", reliable custom resize, and a render-preserving minimised state. */
.player-layer.is-minimized {
  opacity: 0;
  pointer-events: none;
}
.player-window { resize: none; }
.player-resize-grip {
  width: 20px;
  height: 20px;
  right: 2px;
  bottom: 2px;
  pointer-events: auto;
  cursor: nwse-resize;
  z-index: 6;
  opacity: .78;
  background: repeating-linear-gradient(135deg, transparent 0 4px, #9fb0ba 4px 5px);
  touch-action: none;
}
.player-window.is-maximized {
  position: absolute;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  resize: none;
}
.player-window.is-maximized .player-head { display: none; }
.player-window.is-maximized .player-resize-grip { display: none; }
.player-max-exit[hidden] { display: none; }
.player-max-exit {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  height: 34px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.player-max-exit:hover { background: var(--yellow); }
.player-layer.is-minimized .player-window { pointer-events: none; }

/* Game categories */
.game-category + .game-category { margin-top: 30px; }
.category-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px dashed #d8cbea;
}
.category-head h3 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -.4px; }
.category-head span { color: var(--muted); font-size: 11px; font-weight: 650; }

/* Generated covers for the new games */
.game-cover-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 18px;
  overflow: hidden;
  color: #fff;
}
.game-cover-art::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 150px;
  height: 150px;
  border: 3px solid rgba(255,255,255,.28);
  border-radius: 50%;
  pointer-events: none;
}
.cover-initial {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: clamp(54px, 7vw, 82px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.06em;
  text-shadow: 3px 3px 0 rgba(0,0,0,.18);
}
.cover-cat {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  padding: 4px 8px;
  border: 1.5px solid rgba(255,255,255,.65);
  border-radius: 999px;
  background: rgba(0,0,0,.16);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}
.tone-vex { background: linear-gradient(145deg, #263b48, #101d26); }
.tone-sky { background: linear-gradient(145deg, #4b9dd8, #22547e 62%, #173a57); }
.tone-food { background: linear-gradient(145deg, #ffb347, #ff7c24 62%, #c2410c); }
.tone-pet { background: linear-gradient(145deg, #ff9fb4, #f06b91 62%, #b83b60); }
.tone-saw { background: linear-gradient(145deg, #a6a6b8, #5d5d72 62%, #343444); }
.tone-gene { background: linear-gradient(145deg, #72d8c5, #2f8f9b 62%, #1f5c70); }
.tone-castle { background: linear-gradient(145deg, #8b7cff, #5b3ee8 62%, #34236f); }

/* Scroll-to-game highlight */
.game-card.game-flash {
  animation: game-flash 1.8s ease-out;
  border-color: var(--ink) !important;
}
@keyframes game-flash {
  0%, 100% { box-shadow: var(--shadow); }
  18%, 55% { box-shadow: 0 0 0 6px rgba(255, 216, 77, .95), 9px 9px 0 var(--ink); }
  36%, 72% { box-shadow: 0 0 0 2px rgba(255, 216, 77, .45), 5px 5px 0 var(--ink); }
}

/* Edge resize zones for the game window */
.player-edge {
  position: absolute;
  z-index: 8;
  display: block;
  touch-action: none;
}
.player-edge.n { top: 0; left: 16px; right: 16px; height: 7px; cursor: ns-resize; }
.player-edge.s { bottom: 0; left: 16px; right: 16px; height: 7px; cursor: ns-resize; }
.player-edge.w { left: 0; top: 16px; bottom: 16px; width: 7px; cursor: ew-resize; }
.player-edge.e { right: 0; top: 16px; bottom: 16px; width: 7px; cursor: ew-resize; }
.player-edge.nw { left: 0; top: 0; width: 16px; height: 16px; cursor: nwse-resize; }
.player-edge.ne { right: 0; top: 0; width: 16px; height: 16px; cursor: nesw-resize; }
.player-edge.sw { left: 0; bottom: 0; width: 16px; height: 16px; cursor: nesw-resize; }
.player-edge.se { right: 0; bottom: 0; width: 16px; height: 16px; cursor: nwse-resize; }
.player-window.is-maximized .player-edge { display: none; }
.player-resize-grip { pointer-events: none; }
.game-source-btn { opacity: .7; cursor: not-allowed; }

/* Library category filter */
.library-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -4px 0 20px;
}
.library-filter {
  padding: 7px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.library-filter:hover { background: #fff3d8; }
.library-filter.active { background: var(--yellow); }

/* More sits immediately left of the search box and pages the game nav. */
.play-nav { flex: 1 1 auto; min-width: 0; }
.play-nav-viewport { width: 100%; }
.play-nav-track { width: 100%; }
.play-nav-page { flex: 0 0 100%; }
.play-nav-more {
  flex-shrink: 0;
  height: 39px;
  padding: 0 10px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.play-nav-more:hover { background: var(--yellow); }
@media (max-width: 1040px) {
  .play-nav-more { display: none; }
  .play-nav-page { flex: none; }
}
.card-actions { flex-wrap: wrap; }

/* ── Game nav: top games in the bar + "全部游戏" dropdown ── */
.play-nav { flex: 1 1 auto; min-width: 0; position: relative; display: flex; align-items: center; gap: 6px; }
.play-nav-viewport { position: relative; flex: 1 1 auto; width: auto; min-width: 0; overflow: hidden; }
.play-nav-track {
  display: flex;
  align-items: center;
  column-gap: 4px;
  width: max-content;
}
.play-nav .game-nav-item { flex: 0 0 auto; white-space: nowrap; }
.play-nav-all-wrap { position: relative; flex: 0 0 auto; }
.play-nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 30px;
  padding: 0 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s;
}
.play-nav-toggle svg { width: 11px; height: 11px; transition: transform .2s; }
.play-nav-toggle:hover { background: var(--yellow); }
.play-nav-all-wrap.is-open .play-nav-toggle { background: var(--yellow); }
.play-nav-all-wrap.is-open .play-nav-toggle svg { transform: rotate(180deg); }

.play-nav-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
  width: 230px;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  padding: 6px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
}
.play-nav-menu[hidden] { display: none; }
.play-nav-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.play-nav-menu-item:hover { background: #fff3d8; }
.play-nav-menu-item small { color: var(--muted); font-size: 10px; font-weight: 500; }

@media (max-width: 1040px) {
  .play-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 2px solid var(--ink);
    border-radius: 14px;
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    z-index: 70;
  }
  .play-nav.open { display: flex; }
  .play-nav-viewport { flex: none; width: auto !important; overflow: visible; }
  .play-nav-track { display: flex; flex-wrap: wrap; gap: 6px; width: auto; }
  .play-nav-all-wrap { width: 100%; }
  .play-nav-all { display: none !important; }
  .play-nav-menu {
    position: static;
    display: block !important;
    width: 100%;
    max-height: none;
    margin-top: 6px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .play-nav-menu-item { border: 2px solid var(--ink); border-radius: 10px; background: #fff; margin-top: 6px; }
}

/* Loader wordmark follows the game that is actually opening. */
.loader-logo.is-name {
  font-size: 26px;
  letter-spacing: -.8px;
}
