/* Guided play, build 2 (job #579, Michael's Nov 10 picks): Play or Resume in
   the bottom bar, the Passport's next step, and the game shelf on All
   puzzles. Loads last, after clarity.css. Text stays at 16px or more. */

/* ---------- 1A: Play or Resume, raised in the middle of the bottom bar ---------- */
/* The bar's box reaches up to the top of the round button, so anything that
   keeps clear of the bar (Pippin's notes, pickers) keeps clear of the button.
   The cream band behind the links is drawn underneath, from --rise down. */
@media (max-width:759px) {
 #mobile-navigation.has-play { --rise:26px; display:flex; align-items:flex-end; justify-content:space-around; gap:0; height:auto; min-height:0; padding:var(--rise) 4px calc(4px + env(safe-area-inset-bottom)); background:transparent; border-top:0; box-shadow:none; -webkit-backdrop-filter:none; backdrop-filter:none; pointer-events:none; isolation:isolate; overflow:visible; }
 #mobile-navigation.has-play::before { content:""; position:absolute; inset:var(--rise) 0 0; z-index:-1; background:#fffdf7f2; border-top:1px solid #cbd5c0; box-shadow:0 -3px 14px #22392110; -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }
 #mobile-navigation.has-play a { pointer-events:auto; flex:1 1 0; min-width:0; max-width:none; min-height:54px; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:2px; padding:5px 0 3px; border-radius:12px; background:transparent; box-shadow:none; color:#4f6250; font-size:16px; font-weight:500; line-height:1.15; text-decoration:none; }
 #mobile-navigation.has-play a span { white-space:nowrap; overflow-wrap:normal; }
 #mobile-navigation.has-play a svg { width:22px; height:22px; flex:none; }
 #mobile-navigation.has-play a[aria-current] { background:transparent; box-shadow:none; color:#1f4430; font-weight:700; }
 #mobile-navigation.has-play a[aria-current] svg { stroke-width:2.3; }
 #mobile-navigation.has-play a:focus-visible { outline:3px solid #234f37; outline-offset:-2px; }
 /* The round button: clay, a cream halo, and on Resume a gold ring for how far along. */
 #mobile-navigation.has-play a.nav-play { flex:0 0 84px; margin-top:calc(-1*var(--rise)); padding:0 0 3px; gap:4px; color:#8a3a17; font-weight:800; }
 .nav-play-disc { position:relative; display:grid; place-items:center; width:62px; height:62px; border-radius:50%; background:radial-gradient(circle at 35% 30%,#cf6a3c 0%,#b4532a 55%,#96441f 100%); box-shadow:0 0 0 5px #fffdf7,0 6px 14px rgba(120,52,20,.32); }
 #mobile-navigation.has-play .nav-play svg.nav-play-icon { width:34px; height:34px; margin-left:3px; fill:#fffdf7; stroke:none; }
 #mobile-navigation.has-play .nav-play svg.nav-play-ring { position:absolute; inset:-5px; width:72px; height:72px; transform:rotate(-90deg); }
 .nav-play-ring circle { fill:none; stroke:#f2bd4b47; stroke-width:5; }
 .nav-play-ring .nav-play-fill { stroke:#f2bd4b; stroke-linecap:round; }
 .nav-play-game { position:absolute; top:-6px; right:-8px; display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--tile,#fffdf7); color:var(--tile-ink,#234b3d); border:2.5px solid #fffdf7; box-shadow:0 2px 5px rgba(0,0,0,.16); }
 #mobile-navigation.has-play .nav-play-game svg { width:15px; height:15px; }
 #mobile-navigation.has-play a.nav-play:active .nav-play-disc { transform:translateY(1px); }
 .in-puzzle-journey #mobile-navigation.has-play { display:none; }
 /* Room for the raised button at the end of each page. */
 body:not(.in-puzzle-journey) main { padding-bottom:calc(100px + env(safe-area-inset-bottom)); }
 body:not(.in-puzzle-journey) footer { padding-bottom:calc(104px + env(safe-area-inset-bottom)); }
}
@media (max-width:359px) {
 #mobile-navigation.has-play { padding-left:0; padding-right:0; }
 #mobile-navigation.has-play a.nav-play { flex-basis:68px; }
 #mobile-navigation.has-play a span { letter-spacing:-.2px; }
}
/* Wider screens: the same Play or Resume ends the menu row. */
.site-nav .site-play { display:inline-flex; align-items:center; align-self:center; gap:7px; margin-left:4px; padding:8px 15px 8px 12px; font-size:16px; line-height:1.2; border:0; border-radius:999px; background:var(--sa-clay,#b4532a); color:#fffdf7; font-weight:700; text-decoration:none; white-space:nowrap; box-shadow:0 2px 0 #96441f; }
.site-nav .site-play:visited { color:#fffdf7; }
.site-nav .site-play:hover { background:#96441f; color:#fffdf7; }
.site-nav .site-play:focus-visible { outline:3px solid #234f37; outline-offset:3px; }
.site-play-icon { width:16px; height:16px; fill:currentColor; flex:none; }
.in-puzzle-journey .site-nav .site-play { display:none; }
@media (min-width:1091px) { .site-nav:has(>.site-play) { gap:16px; } }
/* Tablet widths: a round button, its words in its label and tooltip. */
@media (min-width:760px) and (max-width:819px) { .site-nav .site-play { justify-content:center; width:44px; height:44px; min-height:44px; margin-left:0; padding:0; } .site-nav .site-play span { display:none; } .site-play-icon { width:18px; height:18px; margin-left:2px; } }

/* ---------- 2A: Passport, a welcome and one next step ---------- */
.passport-scene { --scene-h:min(18vw,200px); }
.passport-hello { display:flex; align-items:flex-start; gap:12px; margin:14px 0 12px; }
.passport-hello-note { position:relative; flex:1; margin:0; padding:11px 14px; border:1.5px solid #d7dfcd; border-radius:16px; background:#fffdf7; color:#1b3326; font-size:17px; line-height:1.4; box-shadow:0 2px 8px rgba(27,51,38,.07); }
.passport-hello-note b { color:#234b3d; }
.passport-step { --sa-focus:#fffdf7; margin:0; text-align:left; padding:16px 16px 18px; border-radius:22px; background:var(--sa-green,#234b3d); color:#fffdf7; box-shadow:var(--sa-card-shadow,0 8px 20px rgba(27,51,38,.16)); }
.passport-step .sa-eyebrow { margin:0; color:#fffdf7; font-size:16px; letter-spacing:.1em; opacity:.92; }
.passport-step-body { display:flex; align-items:center; gap:14px; margin:10px 0 16px; }
.passport-step-picture { flex:none; display:grid; place-items:center; width:78px; height:78px; overflow:hidden; border-radius:16px; background:var(--tile,#fffdf7); box-shadow:0 0 0 3px #fffdf759; }
.passport-step-picture>svg { display:block; width:60px; height:60px; }
.passport-step-picture>svg.letter-tiles { width:66px; height:auto; }
.passport-step-copy { min-width:0; }
.passport-step h2 { margin:0; color:#fffdf7; font:normal 26px/1.1 var(--serif,Georgia,serif); }
.passport-step-where { margin:5px 0 0; color:#e8efe4; font-size:16px; line-height:1.35; }
.passport-step-detail { margin:2px 0 0; color:#ffe7a2; font-size:16px; font-weight:600; }
.passport-step .sa-steps { --sa-step:26px; --sa-step-gap:12px; margin-top:9px; }
.passport-step .sa-step { font-size:16px; }
.passport-step .passport-play { box-shadow:0 3px 0 #7d3818; }
.passport-step .passport-play:focus-visible { outline-color:#fffdf7; }
.passport-keeps { margin:24px 0 8px; }
.passport-keeps h2 { margin:0 0 10px; color:var(--sa-ink,#1b3326); font:normal 23px/1.2 var(--serif,Georgia,serif); }
.passport-keeps .passport-tiles { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.passport-keeps .passport-tile { display:flex; flex-direction:column; align-items:center; gap:3px; min-width:0; padding:12px 6px; border:1.5px solid #dde4d4; border-radius:16px; background:var(--sa-surface,#fffdf7); color:var(--sa-ink,#1b3326); text-align:center; text-decoration:none; }
.passport-tile-icon { display:grid; place-items:center; width:44px; height:44px; margin-bottom:4px; border-radius:50%; }
.passport-keeps .passport-tile .sa-icon { width:22px; height:22px; color:inherit; }
.passport-tile[data-tile=stars] .passport-tile-icon { background:#fbe8b4; color:#7c5300; }
.passport-tile[data-tile=stamps] .passport-tile-icon { background:#dcebd2; color:#2c6b45; }
.passport-tile[data-tile=packs] .passport-tile-icon { background:#f6dccb; color:#96441f; }
.passport-keeps .passport-tile strong { font-size:17px; line-height:1.2; }
.passport-keeps .passport-tile>span:last-child { font-size:16px; line-height:1.25; color:#4a5d4e; }
.passport-keeps .passport-how { margin-top:6px; }
#main .passport-cover.passport-compact { margin-top:18px; }
@media (min-width:700px) {
 .passport-hello,.passport-step,.passport-keeps { max-width:620px; }
 .passport-step { padding:20px 24px 22px; }
 .passport-step .passport-play { width:auto; min-width:280px; }
 .passport-step-picture { width:92px; height:92px; }
 .passport-step-picture>svg { width:72px; height:72px; }
}
@media (max-width:699px) { .passport-scene { --scene-h:30vw; } }
@media (max-width:359px) {
 .passport-step { padding:14px 12px 16px; }
 .passport-step-body { gap:10px; }
 .passport-step-picture { width:62px; height:62px; }
 .passport-step-picture>svg { width:48px; height:48px; }
 .passport-step-picture>svg.letter-tiles { width:54px; }
 .passport-step h2 { font-size:23px; }
 .passport-step .sa-steps { --sa-step:24px; --sa-step-gap:8px; }
}

/* ---------- 4A: All puzzles, the game shelf ---------- */
.library-scene { --scene-h:min(26vw,300px); }
.library-scene img { object-position:50% 58%; }
@media (max-width:699px) { .library-scene { --scene-h:34vw; } .page-scene.library-scene>h1 { font-size:32px; padding-top:10px; } }
.library-shelf { margin:6px 0 10px; }
.shelf-heading { margin:16px 0 10px; color:var(--sa-ink,#1b3326); font:normal 21px/1.2 var(--serif,Georgia,serif); }
.shelf-heading-row { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.shelf-games { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
@media (min-width:700px) { .shelf-games { grid-template-columns:repeat(auto-fill,minmax(132px,1fr)); } }
.shelf-game { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:6px; min-width:0; min-height:104px; margin:0; padding:10px 6px 9px; border:2px solid transparent; border-radius:18px; background:var(--tile,#fffdf7); color:var(--tile-ink,#1b3326); font:inherit; text-align:center; cursor:pointer; box-shadow:0 2px 0 rgba(35,75,61,.12); }
.shelf-game strong { display:block; font-size:16px; line-height:1.15; }
.shelf-board { display:grid; place-items:center; height:58px; width:100%; overflow:hidden; }
.shelf-board>svg { display:block; height:54px; width:auto; max-width:100%; }
.shelf-board>svg.letter-tiles { height:auto; width:min(82px,90%); }
.shelf-all { background:#fffdf7; border-color:#dde4d4; color:#1b3326; }
.shelf-all .shelf-board { height:auto; min-height:58px; }
.shelf-icons { display:flex; flex-wrap:wrap; justify-content:center; gap:3px; max-width:80px; }
.shelf-icons>span { display:grid; place-items:center; width:24px; height:24px; border-radius:7px; background:var(--tile); color:var(--tile-ink); }
.shelf-icons svg { width:14px; height:14px; }
.shelf-game[aria-pressed=true] { border-color:#234b3d; box-shadow:0 0 0 2px #234b3d,0 4px 10px rgba(35,75,61,.2); }
.shelf-game[aria-pressed=true]::after { content:"✓"; position:absolute; top:-8px; right:-8px; display:grid; place-items:center; width:24px; height:24px; border:2px solid #fffdf7; border-radius:50%; background:#234b3d; color:#fffdf7; font-size:16px; font-weight:800; line-height:1; }
.shelf-game:focus-visible,.shelf-level:focus-visible,.shelf-pill:focus-visible,.shelf-find:focus-visible { outline:3px solid #234f37; outline-offset:3px; }
.shelf-clear,.shelf-clear-find { min-height:44px; padding:0 2px; color:#234b3d; font-size:16px; font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.shelf-levels { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; max-width:560px; }
.shelf-level[data-pace=Gentle] { --level:#2c6b45; }
.shelf-level[data-pace=Steady] { --level:#9a6a00; }
.shelf-level[data-pace=Stretch] { --level:#b4532a; }
.shelf-level[data-pace=Expert] { --level:#8a1d4a; }
.shelf-level { display:flex; flex-direction:column; align-items:center; gap:2px; min-width:0; min-height:72px; margin:0; padding:7px 2px 8px; border:2px solid #dde4d4; border-radius:16px; background:#fffdf7; color:#1b3326; font:inherit; font-size:16px; font-weight:700; cursor:pointer; }
.shelf-level svg { display:block; width:36px; height:36px; }
.shelf-level .sa-ring-track { stroke:#d5dccb; }
.shelf-level .sa-ring-fill { stroke:var(--level); }
.shelf-level .sa-ring-dot { fill:#fffdf7; stroke:var(--level); stroke-width:2; }
.shelf-level[aria-pressed=true] { border-color:#234b3d; background:#eef3e6; box-shadow:0 0 0 1px #234b3d; }
.shelf-show { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; max-width:560px; }
.shelf-pill { display:flex; align-items:center; justify-content:center; gap:6px; min-width:0; min-height:48px; margin:0; padding:6px 4px; border:2px solid #dde4d4; border-radius:999px; background:#fffdf7; color:#1b3326; font:inherit; font-size:16px; font-weight:700; white-space:nowrap; cursor:pointer; }
.shelf-pill svg { width:17px; height:17px; flex:none; }
.shelf-pill[aria-pressed=true] { border-color:#234b3d; background:#234b3d; color:#fffdf7; }
.shelf-found { display:flex; align-items:center; gap:12px; margin:18px 0 8px; }
.shelf-found .library-count { flex:1; width:auto; margin:0; color:#3c5640; font-size:17px; line-height:1.35; }
.shelf-found .library-count strong { color:#1b3326; font:700 20px/1 var(--serif,Georgia,serif); }
.shelf-find { position:relative; flex:none; display:grid; place-items:center; width:48px; height:48px; min-height:48px; margin:0; padding:0; border:2px solid #9db08f; border-radius:50%; background:#fffdf7; color:#234b3d; cursor:pointer; }
.shelf-find svg { width:20px; height:20px; }
.shelf-find[aria-expanded=true] { background:#eef3e6; border-color:#234b3d; }
.shelf-find-on { position:absolute; top:2px; right:2px; width:11px; height:11px; border:2px solid #fffdf7; border-radius:50%; background:#b4532a; }
.library-find { margin:4px 0 14px; padding:14px; border:1.5px solid #dde4d4; border-radius:16px; background:#fffdf7; }
.library-find[hidden] { display:none; }
.library-find .library-search { margin:0 0 12px; max-width:none; }
.library-find .library-search label { position:static; width:auto; height:auto; clip-path:none; overflow:visible; display:block; margin:0 0 6px; font-size:16px; font-weight:600; }
.library-theme-pick { display:grid; gap:6px; font-size:16px; font-weight:600; }
.library-theme-pick select { min-height:44px; padding:8px 10px; border:1px solid #b8beb4; border-radius:8px; background:#fffefa; font:inherit; font-size:16px; font-weight:400; }
.library-find .shelf-clear-find { margin-top:6px; }
@media (max-width:359px) {
 .shelf-games { gap:8px; }
 .shelf-levels,.shelf-show { gap:6px; }
 .shelf-level { padding-left:0; padding-right:0; }
 .shelf-pill { gap:4px; padding:6px 2px; }
 .shelf-pill svg { width:15px; height:15px; }
}

/* ---------- The phone top bar: the logo in the middle (Michael, Nov 11) ---------- */
/* Between Pippin (or the empty corner) and the menu. An older rule makes the logo's link a block, which left the
   logo at the left of its space. */
@media (max-width:759px) { body:not(.in-puzzle-journey) .masthead .wordmark img { margin-inline:auto; } }
