/* Play Now menu, shared by the public and puzzle-maker headers. */
#today-puzzle { scroll-margin-top: 150px; }
.pv-play-menu,
.pv-play-menu * { box-sizing: border-box; }
.pv-play-menu { position: relative; flex: 0 0 auto; font-family: 'Manrope', sans-serif; }
.pv-play-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.pv-play-menu-trigger::-webkit-details-marker { display: none; }
.pv-play-menu-trigger::marker { content: ''; }
.pv-play-menu-caret { flex: 0 0 auto; transition: transform .15s ease; }
.pv-play-menu[open] .pv-play-menu-caret { transform: rotate(180deg); }
.pv-play-menu-trigger:focus-visible,
.pv-play-menu-panel a:focus-visible { outline: 3px solid #2F6F62; outline-offset: 3px; }
.pv-play-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1001;
  width: min(296px, calc(100vw - 32px));
  max-height: calc(100vh - 140px);
  max-height: calc(100dvh - 140px);
  overflow-y: auto;
  padding: 14px 12px;
  border: 1px solid #D3C2A0;
  border-radius: 16px;
  background: #FFFCF6;
  color: #232F3E;
  box-shadow: 0 12px 30px rgba(35, 47, 62, .12);
  text-align: left;
  line-height: 1.5;
}
.pv-play-menu:not([open]) > .pv-play-menu-panel { display: none; }
.pv-play-menu-option {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 6px;
  border-radius: 10px;
  color: #232F3E;
  text-decoration: none;
}
.pv-play-menu-option + .pv-play-menu-option { margin-top: 8px; }
.pv-play-menu-option:hover { background: #F1E7D2; }
.pv-play-menu-icon {
  display: flex;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #E9DBBE;
  font-size: 21px;
  line-height: 1;
}
.pv-play-menu-copy { display: block; min-width: 0; }
.pv-play-menu-copy strong { display: block; font-size: 15px; font-weight: 800; }
.pv-play-menu-copy small { display: block; margin-top: 3px; font-size: 13px; font-weight: 500; color: #4A5A6B; }
.pv-play-menu-flame { display: inline-block; width: 13px; height: 16px; vertical-align: -3px; }
.pv-play-menu-counts { margin-top: 12px; padding: 12px 6px 0; border-top: 1px solid #E4D7BA; }
.pv-play-menu-counts p { margin: 0 0 10px; font-size: 12px; font-weight: 800; text-transform: uppercase; color: #4A5A6B; }
.pv-play-menu-count-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.pv-play-menu-count-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 3px;
  border-radius: 9px;
  background: #E9DBBE;
  color: #232F3E;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
}
.pv-play-menu-count-grid a:hover { background: #D3C2A0; }
@media (max-width: 1100px) {
  .pv-site-header .pv-site-links, .pv-maker-header .pv-maker-links { display: none; }
  .pv-menu-toggle { display: block; }
}
@media (max-width: 600px) {
  .pv-maker-nav { position: relative; flex-wrap: wrap; row-gap: 12px; }
  .pv-site-actions, .pv-maker-actions { margin-left: auto; }
  .pv-play-menu { position: static; }
  .pv-site-actions .pv-play-menu-trigger,
  .pv-maker-actions .pv-play-menu-trigger { display: inline-flex; }
  .pv-play-menu-panel { top: calc(100% + 8px); right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pv-play-menu-caret { transition: none; }
}

/* v14.8.43 — Fix JigLib public header on narrow mobile screens.
   Grid reserves a bounded space for account/actions, while the logo scales.
   Do not alter puzzle-maker header or game playbar. */
@media (max-width: 600px) {
  .pv-site-header .pv-site-nav {
    position: relative;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    width: 100%;
    padding: 9px clamp(8px, 2.25vw, 12px);
    gap: clamp(4px, 1.1vw, 8px);
    min-height: 58px;
  }
  .pv-site-header .pv-site-links { display: none; }
  .pv-site-header .pv-site-logo {
    box-sizing: border-box;
    display: inline-flex;
    min-width: 0;
    width: min(100%, 125px);
    max-width: 125px;
    margin: 0;
    align-items: center;
    flex: initial;
  }
  .pv-site-header .pv-site-logo .pv-brand-logo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
  .pv-site-header .pv-site-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(3px, .9vw, 6px);
    min-width: 0;
    margin: 0;
    white-space: nowrap;
  }
  .pv-site-header .pv-site-actions .pv-header-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px clamp(4px, 1.05vw, 8px);
    border-radius: 9px;
    font-size: clamp(14px, 3.8vw, 15px);
    line-height: 1.1;
  }
  .pv-site-header .pv-site-actions .pv-header-btn-primary,
  .pv-site-header .pv-site-actions .pv-play-menu-trigger { display: inline-flex; }
  .pv-site-header .pv-play-menu-trigger { gap: 4px; white-space: nowrap; }
  .pv-site-header .pv-play-menu-caret { width: 9px; height: 6px; }
  .pv-site-header .pv-menu-toggle {
    box-sizing: border-box;
    display: block;
    flex: 0 0 35px;
    width: 35px;
    height: 36px;
    padding: 6px;
    border-radius: 9px;
  }
  .pv-site-header .pv-play-menu-panel {
    right: 8px;
    max-width: calc(100vw - 16px);
  }
}
