/* Full shell header (logo, breadcrumb, sound toggle, streak badge, tab
   strip), meant to be embedded on a page that already has its own design
   system (e.g. the calculator) without clobbering it — everything is scoped
   under #games-shell-nav rather than touching :root/body/* the way
   games.css does for the games' own standalone pages. Keep in sync with the
   .shell-* rules in games.css (same class names, same look) whenever one
   changes — this is a deliberately separate, scoped copy, not an @import,
   per this repo's "no cross-folder styling" convention. */
#games-shell-nav {
    --primary: #2f66f3;
    --muted: #667085;
    --border: #e3e7ef;
    --border-strong: #cdd4e0;
    --surface: #ffffff;
    --ink: #0f1b2d;
    --accent: #e8982b;
    --accent-bg: #fff6e4;
    --accent-border: #f0ce93;
    --r: 12px;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    flex: 0 0 auto;
}

#games-shell-nav .shell-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
#games-shell-nav .shell-logo { font-family: var(--mono); font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; }
#games-shell-nav .shell-logo span { color: var(--primary); }
#games-shell-nav .shell-subtitle { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
#games-shell-nav .shell-subtitle a { color: var(--muted); text-decoration: none; }
#games-shell-nav .shell-subtitle a:hover { color: var(--primary); text-decoration: underline; }
#games-shell-nav .shell-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

#games-shell-nav .shell-sound {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: var(--r);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
}
#games-shell-nav .shell-sound.on { color: var(--primary); border-color: var(--primary); }

#games-shell-nav .shell-streak {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--r);
    border: 1px solid var(--accent-border);
    background: var(--accent-bg);
    font-family: var(--mono);
}
#games-shell-nav .shell-streak .n { font-size: 16px; font-weight: 700; color: var(--accent); }
#games-shell-nav .shell-streak .l { font-size: 9.5px; letter-spacing: 0.07em; text-transform: uppercase; color: #8a6a2a; line-height: 1.2; }

#games-shell-nav .shell-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font-size: 15px;
}
#games-shell-nav .shell-icon-btn:hover { border-color: var(--primary); color: var(--primary); }

#games-shell-nav .shell-tabs {
    display: flex;
    gap: 2px;
    padding: 0 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}
#games-shell-nav .shell-tab {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 12px 16px;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--muted);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}
#games-shell-nav .shell-tab .num { font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--border-strong); }
#games-shell-nav .shell-tab:hover { color: var(--ink); }
#games-shell-nav .shell-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
#games-shell-nav .shell-tab.active .num { color: var(--primary); }

@media (max-width: 700px) {
    #games-shell-nav .shell-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 16px; overflow-x: visible; }
    #games-shell-nav .shell-tab { border: 1px solid var(--border); border-radius: var(--r); padding: 10px 12px; white-space: normal; }
    #games-shell-nav .shell-tab.active { background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
}
