/* web_daily.css - the browser-only Daily Challenge page. The game keeps its phone layout in a centred column; the
   landing text and the footer sit under it. */
html.web-daily, html.web-daily body.web-daily { height:auto; min-height:100%; overflow:auto; overscroll-behavior:auto; }
/* A clean notebook page that fills the window (no desk): the game keeps the app's own phone, tablet and landscape layouts,
   which pick by the shape of the window, so the game area must be the whole window. The landing text starts below it. */
body.web-daily { position:static; inset:auto; touch-action:manipulation; background:#f7f1df; }
body.web-daily #game-container { width:100%; height:100svh; min-height:600px; margin:0 auto; overflow:hidden; transform:translateZ(0); }
body.web-daily #daily-screen .paper-header { width:min(100%, 30rem); margin-inline:auto; position:relative; display:flex; flex-direction:column; align-items:stretch; gap:.5rem; }
body.web-daily #daily-screen .paper-header h1 { margin:0; text-align:left; }
/* The one-line description of the game under the title. */
body.web-daily #daily-screen .paper-header { z-index:1; }
body.web-daily .web-kicker { margin:-.1rem 0 0; font-size:.95rem; font-weight:700; color:var(--muted); }
body.web-daily .web-tools { order:-1; display:flex; align-items:center; justify-content:flex-end; gap:.4rem; }
body.web-daily .web-tools .profile-chip { max-width:9.5rem; }
/* The Daily screen: room between the parts, a line under the title, and the leaderboard as a panel with room of its own,
   so an empty board no longer leaves the text bundled at the top. */
body.web-daily #daily-screen .screen-body.daily-body { gap:1.15rem; padding-top:.7rem; padding-bottom:1.2rem; }
body.web-daily .web-lede { margin:0; font-size:1.05rem; line-height:1.4; color:var(--muted); }
body.web-daily #daily-screen .daily-card { padding:.75rem 1rem; }
body.web-daily #daily-screen .daily-actions .btn { padding-top:.8rem; padding-bottom:.8rem; font-size:1.05rem; }
body.web-daily #daily-screen .daily-board { padding:1rem 1.1rem 1.15rem; gap:.9rem; min-height:13rem; border:.14rem solid var(--ink); border-radius:var(--radius); background:#faf5e7cc; box-shadow:var(--shadow); }
body.web-daily #daily-screen .daily-board[hidden] { display:none; }
body.web-daily #daily-screen .daily-board .daily-list { gap:.15rem; }
body.web-daily #daily-screen .daily-board .daily-list li { padding:.5rem .5rem; }
body.web-daily #daily-board-note { margin:0; text-align:center; }
body.web-daily #daily-board-note.empty { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.6rem; min-height:8rem; padding:1.4rem 1rem; color:var(--muted); font-size:1.05rem; }
body.web-daily #daily-board-note.empty::before { content:"\270F\FE0F"; font-size:2.2rem; }
body.web-daily #daily-board-note[hidden] { display:none; }
body.web-daily #daily-screen .daily-privacy { margin:0; font-size:.85rem; line-height:1.4; color:var(--muted); text-align:left; }
body.web-daily #daily-screen .daily-state { text-align:left; }
body.web-daily .dtab { white-space:nowrap; }
body.web-daily .daily-countdown { white-space:nowrap; }
@media (max-width:899px) {
  body.web-daily #daily-screen .daily-body > * { flex:none; }
  body.web-daily .daily-tabs { flex-wrap:wrap; row-gap:.5rem; }
  body.web-daily .daily-countdown { flex-basis:100%; margin:0; text-align:left; }
}

/* Phones only: the title and the line under it already say what this is, so the intro line goes and the game starts higher. */
@media (max-width:599px) {
  body.web-daily .web-lede { display:none; }
}

/* Desktop (rem here is the app's scaled unit, about 20px): the title and the buttons on one row, then the challenge on the
   left and today's leaderboard beside it, the whole block centred in the window; the board in the middle of the page
   instead of stretched to the window edges. */
@media (min-width:900px) {
  body.web-daily #daily-screen .paper-header { width:min(100%, 46rem); display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:center; column-gap:1rem; }
  body.web-daily #daily-screen .paper-header h1 { grid-column:1; grid-row:1; }
  body.web-daily #daily-screen .paper-header .web-kicker { grid-column:1; grid-row:2; }
  body.web-daily #daily-screen .paper-header .web-tools { grid-column:2; grid-row:1 / span 2; }
    body.web-daily .web-tools { order:0; }
  body.web-daily #daily-screen .screen-body.daily-body { width:min(100%, 46rem); display:grid; grid-template-columns:minmax(0, 19rem) minmax(0, 1fr); grid-auto-rows:min-content; column-gap:2.6rem; row-gap:1.3rem; align-content:start; align-items:start; padding-top:min(4vh, 2rem); padding-bottom:4vh; }
  body.web-daily #daily-screen .daily-body > * { margin:0; }
  body.web-daily #daily-screen .daily-body > .web-lede { grid-column:1 / -1; font-size:1.15rem; }
  body.web-daily #daily-screen .daily-body > .daily-card, body.web-daily #daily-screen .daily-body > .daily-state, body.web-daily #daily-screen .daily-body > .daily-actions, body.web-daily #daily-screen .daily-body > .daily-privacy { grid-column:1; }
  body.web-daily #daily-screen .daily-body > .daily-board { grid-column:2; grid-row:2 / span 4; min-height:17rem; }
  body.web-daily #board-screen { padding:2.5vh max(1.5rem, calc((100% - 52rem) / 2)); }
}

.web-qr { display:flex; flex-direction:column; align-items:center; gap:.4rem; margin:.2rem 0 .8rem; }
.web-qr-code { width:11rem; padding:.45rem; background:#fff; border-radius:.5rem; line-height:0; }
.web-qr-code svg { width:100%; height:auto; display:block; }
.web-qr p { margin:0; font-size:.85rem; text-align:center; }
.web-store-links { display:flex; gap:.6rem; justify-content:center; flex-wrap:wrap; }
.web-store-links .btn { text-decoration:none; }
body.web-daily .modal-paper > [data-action="close-modal"] { display:block; margin-left:auto; margin-right:auto; }

.consent-banner { position:fixed; left:50%; bottom:max(.7rem, env(safe-area-inset-bottom)); transform:translateX(-50%); z-index:40; width:min(94vw, 30rem); box-sizing:border-box; padding:.8rem .95rem; border-radius:.7rem; background:#fbf6e6; color:#2e2a24; box-shadow:0 .4rem 1.6rem rgba(0, 0, 0, .35); font:500 .92rem/1.35 system-ui, -apple-system, "Segoe UI", sans-serif; }
.consent-banner p { margin:0 0 .6rem; }
.consent-banner .consent-actions { display:flex; gap:.5rem; justify-content:flex-end; }

.web-seo { background:#fbf7ea; border-top:.2rem solid rgba(190, 62, 55, .35); color:#2e2a24; padding:2.4rem 1.2rem 0; font:400 1rem/1.6 Georgia, "Times New Roman", serif; }
.web-seo article { width:min(100%, 40rem); margin:0 auto; }
.web-seo h1 { font-size:1.7rem; line-height:1.2; margin:0 0 .8rem; }
.web-seo h2 { font-size:1.3rem; margin:2rem 0 .5rem; }
.web-seo h3 { font-size:1.05rem; margin:1.2rem 0 .2rem; }
.web-seo p, .web-seo li { margin:.4rem 0; }
.web-seo a { color:#2c5f8a; }

.web-footer { display:flex; flex-wrap:wrap; gap:.4rem 1.2rem; justify-content:center; padding:1.6rem 1rem 2rem; margin-top:1.6rem; border-top:1px solid #0002; font:400 .85rem/1.4 system-ui, sans-serif; }
.web-footer a { color:inherit; }
.web-seo noscript { display:block; }

/* The install section at the bottom: the app icon, what it adds, two store buttons, and a QR code on a computer. */
.web-install { display:flex; align-items:center; gap:1.4rem; margin:2.6rem 0 .4rem; padding:1.5rem 1.6rem; border:2px solid #1b2a52; border-radius:1.1rem; background:#fff; box-shadow:5px 5px 0 rgba(27, 42, 82, .22); font-family:system-ui, -apple-system, "Segoe UI", sans-serif; }
.web-install-icon { flex:none; width:84px; height:84px; border-radius:22%; box-shadow:0 6px 14px rgba(0, 0, 0, .25); }
.web-install-copy { flex:1; min-width:0; }
.web-seo .web-install h2 { margin:0; font-size:1.35rem; line-height:1.25; }
.web-seo .web-install p { margin:.4rem 0 0; font-size:.98rem; line-height:1.5; }
.web-install-buttons { display:flex; flex-wrap:wrap; gap:.7rem; margin-top:1rem; }
.web-seo a.store-btn { display:inline-flex; align-items:center; gap:.55rem; padding:.5rem .95rem .5rem .8rem; border-radius:.75rem; background:#111; color:#fff; text-decoration:none; line-height:1.1; box-shadow:0 2px 0 rgba(0, 0, 0, .3); }
.web-seo a.store-btn:hover { background:#2a2a2a; }
.web-seo a.store-btn.match { outline:3px solid #be3e37; outline-offset:2px; }
.store-btn svg { width:1.9rem; height:1.9rem; flex:none; }
.store-btn small { display:block; font-size:.68rem; font-weight:400; opacity:.85; }
.store-btn b { display:block; font-size:1.05rem; font-weight:600; letter-spacing:.01em; }
.web-install-qr { flex:none; width:7.4rem; text-align:center; }
.web-install-qr .qr { width:100%; padding:.4rem; background:#fff; border:1px solid #0002; border-radius:.5rem; line-height:0; }
.web-install-qr .qr svg { width:100%; height:auto; display:block; }
.web-seo .web-install .web-install-qr p { margin:.35rem 0 0; font-size:.78rem; line-height:1.3; color:#555; }
@media (max-width:640px) {
  .web-install { flex-direction:column; text-align:center; padding:1.4rem 1.1rem; }
  .web-install-buttons { justify-content:center; }
}
