/* Front-end pass (2026-10): minimal title menu, celestial backdrop UI bits, skill tree, CTA diet. Loaded last. */
#titleMenu { max-width: 520px; gap: 10px; }
#titleMenu .menu-item .n:empty { display: none; }
#titleMenu .menu-item.primary { position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 16px;
  padding: 22px 28px !important; font-size: 30px; letter-spacing: .32em; color: #0b0905; background: linear-gradient(100deg, #ffe9bd, #ffc46b 55%, #e8a64a);
  border-left: 0; box-shadow: 0 0 60px rgba(255, 196, 107, .28), 0 14px 40px rgba(0, 0, 0, .45); margin-bottom: 14px; }
#titleMenu .menu-item.primary .ico { width: 30px; height: 30px; grid-row: 1 / span 2; }
#titleMenu .menu-item.primary .arrow { grid-row: 1 / span 2; grid-column: 3; color: #0b0905; }
#titleMenu .menu-item.primary .mi-sub { grid-column: 2; font: 600 11px var(--f-mono); letter-spacing: .4em; opacity: .7; }
#titleMenu .menu-item.primary.focus, #titleMenu .menu-item.primary:hover { color: #0b0905; background: linear-gradient(100deg, #fff4dc, #ffd28a 55%, #f0b45c); box-shadow: 0 0 80px rgba(255, 210, 138, .45), 0 14px 40px rgba(0, 0, 0, .45); }
#titleMenu .menu-item:not(.primary) { font-size: 15px; padding: 13px 20px !important; }
#titleMenu.more .menu-item.sm { font-size: 13px; padding: 10px 18px !important; }
#title.active #titleMenu .menu-item { animation-delay: 0s; }
/* designed item icons (js/itemicons.js) */
.ii { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; flex: none; }
.ii.big { width: 80px; height: 80px; } .ii.wide { width: 70px; } .ii.wide.big { width: 140px; }
.ii .nuico { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--rc) 35%, transparent)); }
.ii .nuico.locked { filter: grayscale(1) brightness(.6); }
.slot.cos .ii { width: 38px; height: 38px; }
/* CTA diet: one primary per screen, the rest are quiet text links */
.btn.quiet, .cb.quiet, .fc.quiet { background: transparent !important; border-color: transparent !important; box-shadow: none !important; color: rgba(255, 255, 255, .62); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .25); }
.btn.quiet { padding: 10px 18px; font-size: 12px; transform: none; }
.btn.quiet.focus, .btn.quiet:hover, .cb.quiet:hover, .fc.quiet:hover { color: #fff; background: rgba(255, 255, 255, .08) !important; transform: none; text-decoration-color: #fff; }
#results .panel-foot { align-items: center; }
#pauseMenu .menu-item.sm, #pauseMenu.menu .menu-item.sm { font-size: 12px; padding: 8px 16px !important; opacity: .72; }
#pauseMenu .menu-item.sm:first-of-type { margin-top: 8px; }
.ad-hint { line-height: 1.5; }
.sh-st { letter-spacing: .12em; }

/* Global top-of-screen BACK button (index.html #globalBack): shown by UI.syncBack() on any menu with a back handler. */
.global-back {
  position: fixed; top: 18px; left: 18px; z-index: 60; display: none;
  align-items: center; gap: 6px; padding: 8px 14px 8px 10px;
  font: 600 12px/1 Syncopate, sans-serif; letter-spacing: .14em; color: var(--ink, #e8ecf6);
  background: rgba(12, 15, 22, .72); border: 1px solid rgba(120, 150, 200, .3); border-radius: 8px;
  backdrop-filter: blur(8px); cursor: pointer; transition: background .15s, border-color .15s, transform .1s;
}
.global-back.on { display: inline-flex; }
/* screens with their own BACK button (btnShopBack, plBack, ...): the global one only duplicated it and covered the screen title */
body:has(.screen.active [id$="Back"]) #globalBack.global-back.on { display: none; }
.global-back:hover, .global-back:focus-visible { background: rgba(30, 40, 60, .86); border-color: rgba(120, 200, 220, .55); outline: none; }
.global-back:active { transform: translateY(1px); }
.global-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) { .global-back { top: 10px; left: 10px; padding: 7px 11px 7px 8px; } .global-back span { display: none; } }

/* Shared celestial palette and quieter menu surfaces. */
:root { --champ: #e9dfc8; --champ2: #cbbd9e; --ice: #bad3e7; --vio: #b8b9d2; --dim: #a4acb9; --line: rgba(215, 225, 238, .2); --line2: rgba(215, 225, 238, .1); }
.screen:not(#splash):not(#loading)::after { background: radial-gradient(ellipse at 80% 12%, rgba(76, 102, 139, .14), transparent 58%), radial-gradient(ellipse at 12% 90%, rgba(182, 165, 128, .06), transparent 50%); }
.panel { border-color: rgba(216, 228, 242, .22); box-shadow: 0 24px 70px rgba(0, 0, 0, .4); }
.panel-head .idx { background: transparent; color: #d9cfb8; border: 1px solid rgba(218, 208, 183, .35); }
.btn { border-color: rgba(216, 228, 242, .24); box-shadow: none; }
.btn:focus-visible, .menu-item:focus-visible { outline: 2px solid #e9dfc8; outline-offset: 3px; }
.ii .nuico { filter: none; }
.global-back { color: #f3f1eb; }
