/* Library originals: Scarab Path and Nile Courier. Phone first; papyrus world; 44px targets. */
.og-shelf{margin:34px 0}.og-shelf h2{font:600 30px/1.2 Georgia,serif;margin:0 0 6px}.og-shelf>p{margin:0 0 16px;color:var(--muted);font-size:16px}
.og-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px}
.og-card{display:flex;gap:16px;align-items:flex-start;padding:18px;border:1px solid var(--gold);border-radius:6px;background:#fff4df;color:inherit;text-decoration:none;min-height:44px}
.og-card:hover,.og-card:focus-visible{background:#f3dfb7}.og-card strong{display:block;font:600 24px/1.2 Georgia,serif;margin-bottom:6px}.og-card span span{display:block;font-size:16px;line-height:1.5}.og-card small{display:block;margin-top:8px;color:var(--muted);font-size:14px}
.og-glyph{font-size:44px;line-height:1;color:var(--accent);flex:none}
.og-game{max-width:1100px;margin:0 auto}.og-head>div{flex:1;min-width:0}
.og-ask{display:flex;align-items:center;gap:8px;min-height:48px;padding:2px 12px 2px 2px;border:1px solid var(--gold);border-radius:28px;background:#fff4df;color:#30251c;font:600 14px system-ui,sans-serif;cursor:pointer;flex:none}.og-ask img{width:44px;height:44px;border-radius:50%}.og-ask:hover,.og-ask:focus-visible{background:#f3dfb7}
/* Phones: Ms. Cook lives in the game header, so nothing floats over the controls. */
@media(max-width:700px){html body.og-playing.cook-editing #mc-launch,html body.og-playing #mc-launch{display:none!important}.og-ask span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.og-ask{padding:2px}}.og-head{display:flex;gap:16px;align-items:center;margin:8px 0 14px}.og-head h1{margin:2px 0 0;font-size:clamp(34px,6vw,48px)}
.og-levels{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.og-levels button{min-width:48px;min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:4px 8px;border:1px solid var(--gold);border-radius:6px;background:#fff7e6;color:#3b2b1c;font:600 16px system-ui,sans-serif;cursor:pointer}
.og-levels button small{font-size:10px;letter-spacing:1px;color:#9c3e20;min-height:12px}.og-levels button[aria-current]{background:#9c3e20;color:#fff8e9;border-color:#9c3e20}.og-levels button[aria-current] small{color:#ffe1a8}.og-levels button:disabled{opacity:.55;cursor:not-allowed}
.og-brief h2{font:600 24px/1.25 Georgia,serif;margin:0 0 6px}.og-brief p{margin:0 0 14px;font-size:17px;line-height:1.55;max-width:70ch}
.og-play{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,420px);gap:22px;align-items:start}
.og-board-wrap{position:sticky;top:12px}
.og-board{--cell:min(64px,calc((100vw - 48px) / var(--w)));position:relative;display:grid;grid-template-columns:repeat(var(--w),var(--cell));grid-auto-rows:var(--cell);width:max-content;margin:0 auto;border:2px solid #8a6534;border-radius:6px;overflow:hidden;background:#e9cf98}
.og-cell{position:relative;border:1px solid #c9a96a55;display:grid;place-items:center}.og-sand{background:radial-gradient(circle at 30% 30%,#f4dfae,#e7c98d)}
.og-rock{background:radial-gradient(circle at 35% 30%,#a58a6a,#6e5338);box-shadow:inset 0 -4px 0 #00000026}.og-water{background:repeating-linear-gradient(160deg,#3b7fae 0 8px,#4f93bf 8px 14px)}
.og-lantern{font-size:calc(var(--cell) * .55);filter:drop-shadow(0 0 6px #ffb84d)}
.og-scarab{position:absolute;left:0;top:0;width:var(--cell);height:var(--cell);display:grid;place-items:center;transform:translate(calc(var(--x) * var(--cell)),calc(var(--y) * var(--cell)));transition:transform .3s ease}
.og-scarab svg{width:78%;height:78%;transform:rotate(var(--r));transition:transform .25s ease}
.og-bump{animation:og-shake .35s 2}@keyframes og-shake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
.og-palette{display:grid;grid-template-columns:1fr 1fr;gap:8px}.og-palette .btn,.og-run .btn{min-height:48px;font-size:16px}
.og-target{font-size:14px;color:var(--muted);margin:10px 0 6px;min-height:20px}
.og-program{list-style:none;margin:0;padding:10px;border:1px dashed #a5834f;border-radius:6px;background:#fffaf0;min-height:64px;counter-reset:og}
.og-program ol{list-style:none;margin:6px 0 0 12px;padding:0 0 0 10px;border-left:3px solid #c08a3e}
.og-program li{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:4px 0;padding:4px 4px 4px 10px;border-radius:5px;background:#f3e2bf;font:600 15px system-ui,sans-serif;color:#30251c}
.og-program{display:flex;flex-wrap:wrap;gap:6px;align-content:flex-start}.og-program ol{display:flex;flex-wrap:wrap;gap:6px}.og-program li{margin:0}.og-program li.og-repeat,.og-program>li.og-empty{flex-basis:100%}
.og-chip{padding:0 0 0 10px!important;gap:6px!important}.og-chip .og-op{font-size:22px;line-height:1;flex:none}.og-chip .og-x{min-width:40px;border:0;border-left:1px solid #c9a96a;border-radius:0 5px 5px 0;background:#f8ecd2}
.og-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.og-edit{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:8px 0}.og-edit .og-count{margin:0;flex:1}.og-edit .btn{min-height:44px}.og-board-wrap .og-run{justify-content:center;margin-top:12px}
.og-program li.og-repeat{display:block;background:#efd9ae}.og-program li.og-target-on{outline:3px solid #9c3e20;outline-offset:1px}
.og-program li.og-now{background:#ffd27a;box-shadow:0 0 0 2px #9c3e20}
.og-program .og-op{flex:1}.og-rhead{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.og-program button{min-width:44px;min-height:44px;border:1px solid #a5834f;border-radius:5px;background:#fff7e6;color:#30251c;font:600 15px system-ui,sans-serif;cursor:pointer}
.og-program .og-into{padding:0 10px}.og-program .og-into[aria-pressed=true]{background:#9c3e20;color:#fff8e9}
.og-n{display:inline-flex;align-items:center;gap:4px}.og-n output{min-width:30px;text-align:center}
.og-empty{background:none!important;color:var(--muted);font-weight:400!important;font-size:14px!important}
.og-count{font-size:14px;margin:6px 0 10px;color:var(--muted)}.og-count.og-over{color:#a3261b;font-weight:700}
.og-run{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0}.og-run .link-btn{min-height:44px}
.og-nudge{margin:18px 0}.og-nudge details{border:1px solid var(--gold);border-radius:6px;background:#fff4df;padding:4px 14px}.og-nudge summary{min-height:44px;display:flex;align-items:center;font:600 16px Georgia,serif;cursor:pointer}.og-nudge p{font-size:16px;line-height:1.55}
.og-result{min-height:24px;margin:10px 0 30px}.og-board-wrap .og-result{margin:10px 0 0;text-align:center}.og-result p{font-size:17px;line-height:1.5}.og-win strong{color:#1f6b3a}.og-try strong{color:#9c3e20}.og-result span{display:inline}
/* Nile Courier */
.og-river{display:flex;align-items:center;gap:10px;margin:6px 0 14px;font:600 17px Georgia,serif}.og-city{display:flex;flex-direction:column;align-items:center;text-align:center;flex:none}.og-city small{font:12px system-ui,sans-serif;color:var(--muted)}
.og-water{position:relative;flex:1;height:44px;border-radius:22px;background:repeating-linear-gradient(90deg,#3b7fae 0 14px,#4f93bf 14px 22px);overflow:hidden}
.og-boat{position:absolute;left:6px;top:4px;font-size:30px;line-height:1;color:#fff4dc;text-shadow:0 1px 2px #0006}.og-boat.og-sail{animation:og-sail .9s ease-in-out}
@keyframes og-sail{50%{left:calc(100% - 40px)}100%{left:6px}}
.og-delta{position:absolute;left:24%;bottom:-1px;transform:translateX(-50%);font:600 10px system-ui,sans-serif;color:#30251c;background:#f3dfb7;border:1px solid #a5834f;border-radius:8px 8px 0 0;padding:1px 6px;opacity:.55;pointer-events:none;white-space:nowrap}.og-delta.og-on{opacity:1;background:#ffd27a}.og-delta[hidden]{display:none}
@media(max-width:600px){.og-river{font-size:15px;gap:6px}.og-water{height:52px}.og-boat{top:2px}}
.og-letters{font-size:16px;line-height:1.9;margin:0 0 10px}.og-tag{display:inline-block;padding:0 8px;border-radius:12px;font-size:13px;line-height:1.7;border:1px solid}.og-scroll{background:#e4f0e2;border-color:#5f8f62;color:#1e4a24}.og-order{background:#f7e1d6;border-color:#a65a3a;color:#6a2a12}.og-budget{display:block}
.og-switches{border:1px solid var(--gold);border-radius:6px;padding:10px 12px;margin:0 0 12px;display:block}.og-switches legend{font:600 16px Georgia,serif;padding:0 6px}
#og-switches{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:8px}
.og-switch{display:flex;gap:10px;align-items:flex-start;padding:10px;border-radius:6px;background:#fff7e6;border:1px solid #d8bb88;min-height:44px;cursor:pointer}.og-switch input{width:24px;height:24px;margin:2px 0 0;accent-color:#9c3e20;flex:none}
.og-switch strong{display:block;font-size:16px}.og-switch small{display:block;font-size:14px;color:var(--muted);line-height:1.45}.og-switch.og-off{opacity:.6;cursor:not-allowed}
.og-timeline{margin:6px 0}.og-axis{position:relative;height:22px;font-size:12px;color:var(--muted);margin-left:var(--og-name,0)}.og-limit{position:absolute;left:calc(var(--at) * 100%);transform:translateX(-100%);border-right:2px solid #a3261b;padding-right:4px;color:#a3261b;font-weight:700;white-space:nowrap}
.og-letter{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;margin:8px 0}.og-lname{grid-column:1/-1;font:600 14px system-ui,sans-serif}.og-lname small{font-weight:400;color:#1e4a24}
.og-bar{display:flex;height:30px;width:calc(var(--w) * 100%);border-radius:4px;overflow:hidden;background:#0001}.og-seg{flex:var(--f) 0 0;min-width:3px;display:flex;align-items:center;overflow:hidden;border-right:1px solid #fff8}
.og-seg span{font:11px system-ui,sans-serif;white-space:nowrap;padding:0 4px;color:#fff}
.og-address{background:#7a5c9e}.og-dock{background:#8a6534}.og-seal{background:#b3401f}.og-there,.og-back{background:#2f6f9a}.og-work{background:#3e7a46}
.og-ms{font:600 14px system-ui,sans-serif;align-self:center}.og-legend{list-style:none;display:flex;flex-wrap:wrap;gap:6px 14px;margin:10px 0 0;padding:0;font-size:13px;color:var(--muted)}.og-legend li{display:flex;align-items:center;gap:6px}.og-key{width:14px;height:14px;border-radius:3px;display:inline-block}.og-total{font-size:17px}
.og-animate .og-letter{animation:og-in .35s ease both;animation-delay:calc(var(--d) * 90ms)}@keyframes og-in{from{opacity:0;transform:translateX(-8px)}}
@media(max-width:820px){.og-play{grid-template-columns:1fr}.og-board-wrap{position:relative;top:0}}
@media(max-width:600px){.og-levels{flex-wrap:nowrap;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:thin}.og-levels button{flex:none}.og-head{margin:4px 0 10px}.og-head .og-glyph{font-size:36px}}
@media(prefers-reduced-motion:reduce){.og-scarab,.og-scarab svg{transition:none}.og-bump,.og-boat.og-sail,.og-animate .og-letter{animation:none}}
body.wing-security .og-card,body.wing-security .og-program{background:#fff4df}
/* Product edition: Khepri, the scarab's journey (served from /play/khepri/). */
.og-card-khepri{flex-direction:column;gap:0;padding:0;overflow:hidden;grid-column:1/-1}.og-card-khepri .og-art{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:#2a1d10}.og-card-khepri>span{padding:16px 18px 18px}
@media(min-width:900px){.og-card-khepri{flex-direction:row;align-items:stretch}.og-card-khepri .og-art{width:52%;flex:none}.og-card-khepri>span{align-self:center;padding:22px 26px}}
body.og-khepri-open{overflow:hidden}body.og-khepri-open #mc-launch,body.og-khepri-open #cook-stage{display:none!important}
.og-khepri{position:fixed;inset:0;z-index:40;display:flex;flex-direction:column;background:#1b130c}
.og-khepri-bar{display:flex;align-items:center;gap:12px;padding:6px 12px;padding-top:max(6px,env(safe-area-inset-top));background:#fff4df;border-bottom:1px solid var(--gold);color:#2a1d10;flex:none}
.og-khepri-bar strong{font:600 20px/1.2 Georgia,serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.og-khepri-bar small{margin-left:auto;color:var(--muted);font-size:14px;white-space:nowrap}
.og-khepri-back{min-height:44px;flex:none}
.og-khepri-frame{flex:1;width:100%;height:0;min-height:0;border:0;display:block;background:#1b130c}
@media(max-width:600px){.og-khepri-bar small,.og-khepri-sub{display:none}}
