/* Presentation for Daily, Archive, and Unlimited. No gameplay or account changes. */
#app .context{gap:12px}
#app .unlimited-upgrade{flex-shrink:0}
#app .progress-row[hidden]{display:none}
#app #saveStatus:empty{display:none}
#app #dayLabel.special-day{
  max-width:100%;
  min-width:0;
  margin-inline:auto;
  padding:7px 14px;
  border:1px solid #d8fa8a44;
  border-radius:18px;
  background:linear-gradient(135deg,#d8fa8a16,#67eba908);
  box-shadow:inset 0 1px 0 #ffffff08;
  color:#e6ffad;
  font-size:17px;
  font-weight:750;
  line-height:1.2;
  letter-spacing:.1px;
  text-align:center;
}
@media(max-width:360px),(max-height:700px){
  #app #dayLabel.special-day{font-size:16px;padding:6px 12px}
}

/* Archive navigation matches the Unlimited puzzle buttons. */
#archiveModal .archive-nav-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 12px;
  border:1px solid #7886a4;
  border-radius:12px;
  background:#ffffff0c;
  color:var(--ink);
  font:700 12px/1.3 ui-rounded,'Avenir Next','Segoe UI',system-ui,sans-serif;
  text-decoration:none;
  white-space:nowrap;
  touch-action:manipulation;
}
#archiveModal .archive-nav-button:hover{background:#ffffff16;border-color:#b3bfd7}
#archiveModal .archive-nav-button:disabled{cursor:default;opacity:.55}
#archiveModal .archive-shell>header{gap:12px}
#archiveModal .archive-shell>header .wordmark{font-size:32px;white-space:nowrap}
#archiveModal .archive-shell>header .wordmark span{font-size:26px}
#archiveModal.archive-playing .archive-game-footer{gap:8px}
#archiveModal .archive-game-footer .archive-nav-button{align-self:center;min-width:132px}
@media(max-width:350px){
  #archiveModal .archive-shell>header .wordmark{font-size:26px}
  #archiveModal .archive-shell>header .wordmark span{font-size:21px}
}

/* Daily finish: sharing and more play get the first two actions. */
.result-actions{display:grid;gap:9px;margin:12px 0}
.result-actions .primary{margin:0;text-decoration:none;display:flex;align-items:center;justify-content:center;min-height:48px;line-height:1.3}
.result-actions .result-keep-playing{background:#88e3cb;border-color:#b6f3e4;color:#142832}
.result-actions .result-keep-playing:hover{background:#a0efda}
.result .result-detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.result .result-detail-actions .secondary{font-size:12px;min-height:44px;margin-top:0;padding:10px 8px}

/* A distinct archive entrance alongside the three Unlimited difficulties. */
.unlimited-shell .archive-home-link{display:flex;align-items:center;gap:12px;margin-top:14px;padding:13px 14px;border:1px solid #8a9bbd66;border-radius:15px;background:#ffffff06;color:var(--ink);text-decoration:none;min-height:66px}
.unlimited-shell .archive-home-link:hover{background:#ffffff10;border-color:#aab9d6}
.unlimited-shell .archive-home-link>svg{width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.unlimited-shell .archive-home-link>span:nth-child(2){flex:1;min-width:0}
.unlimited-shell .archive-home-link strong{display:block;font-size:15px}
.unlimited-shell .archive-home-link small{display:block;font-size:11px;line-height:1.45;color:var(--muted);margin-top:3px}
.share-rank-button{margin:20px 0 0}
.rank-share-status{margin:0 0 12px}

/* Report navigation stays with the brand, leaving room for the standings. */
.header-unlimited{display:none}
.reports .brand-row{align-items:flex-start;min-height:98px;margin-bottom:24px}
.reports .brand-row .wordmark{margin-top:10px}
.reports .header-actions{display:grid;grid-template-columns:auto auto;justify-content:end;gap:8px}
.reports .header-daily{display:inline-flex}
.reports .header-unlimited{display:inline-flex;grid-column:1/-1;justify-self:end}
.reports .edition-label,.reports .tile-strip{display:none}
.reports [data-screen="rankings"]>.ranking-explainer{margin:18px 0 0}
.reports #rankingsBody .player-total{margin-top:24px}
.reports #rankingsBody .ranking-table{margin-top:12px}
.reports .rank-share-status:not([hidden]){margin-top:12px}
.reports .rank-share-options{margin:3px auto 0;font-size:12px;min-height:44px}
@media(max-width:350px){
  .reports .header-actions{gap:7px 6px}
  .reports .header-unlimited{font-size:11px;padding:8px}
}

/* Standalone archive entry uses the same compact navigation buttons. */
.archive-entry-shell .archive-home-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 12px;border:1px solid #7886a4;border-radius:12px;background:#ffffff0c;color:var(--ink);font-size:12px;font-weight:700;text-decoration:none;white-space:nowrap}
.archive-entry-shell .archive-gate{margin-top:30px}
.archive-entry-shell h1{font-size:30px;line-height:1.15;letter-spacing:-1px}
.archive-entry-shell a.primary,.archive-entry-shell a.secondary,#archiveModal .archive-account-link{display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none}
.archive-entry-shell [hidden]{display:none!important}
