/* Shared compact navigation with direct top-bar game tabs and legal identity. */
:root{--shell-top:calc(max(12px,env(safe-area-inset-top,0px)) + 68px);--shell-bottom:calc(42px + env(safe-area-inset-bottom,0px));--shell-ink:#f6eedf;--shell-muted:#a9a5b8;--shell-accent:#c5eadb}
.game-shell,.game-shell *{box-sizing:border-box}
.game-shell{position:fixed;z-index:60;top:max(12px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:min(1180px,calc(100% - 32px));height:56px;display:flex;align-items:center;gap:10px;padding:6px 8px;background:linear-gradient(180deg,rgba(31,35,52,.95),rgba(21,24,37,.97));border:1px solid #e2ebef2b;border-radius:16px;box-shadow:0 12px 34px #05081466,0 2px 0 #0b0e1a80,inset 0 1px 0 #fff6e521;color:var(--shell-ink);font:13px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;backdrop-filter:blur(18px)}
.game-shell button{font:inherit;color:inherit;cursor:pointer;border:0;margin:0;background:none;box-shadow:none;display:flex;align-items:center;justify-content:center;gap:6px;min-height:40px;border-radius:10px;transition:background .16s,color .16s,transform .14s,box-shadow .16s}
.game-shell button:hover{background:linear-gradient(180deg,#ffffff14,#ffffff08);color:#fff;box-shadow:inset 0 1px 0 #ffffff1c}
.game-shell button:active{transform:translateY(1px)}
.game-shell button:focus-visible,.game-shell a:focus-visible{outline:2px solid var(--shell-accent);outline-offset:2px}
.game-shell svg{width:19px;height:19px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* Official Project Emblem Brand Crest */
.shell-brand{display:inline-flex;align-items:center;gap:8px;padding:3px 7px 3px 3px;border-radius:12px;text-decoration:none;color:#fff6e2;background:linear-gradient(180deg,#26244ecc,#171734d9);border:1px solid #f4ca7442;box-shadow:0 3px 10px #04061266,inset 0 1px 0 #fff4cf29;flex:none;transition:transform .15s,border-color .16s,box-shadow .16s}
.shell-brand:hover{border-color:#ffd98280;box-shadow:0 4px 14px #04061280,0 0 12px #ffd87526}
.shell-brand-logo{width:34px;height:34px;border-radius:50%;display:block;flex:none;filter:drop-shadow(0 2px 5px #04061280)}
.shell-brand-text{display:grid;gap:1px;line-height:1.05}
.shell-brand-text b{font-size:12.5px;font-weight:800;letter-spacing:.6px;color:#fff6df}
.shell-brand-text small{font-size:8.2px;font-weight:700;letter-spacing:1.2px;color:#efc776}
.survivor-play .shell-brand{padding:2px;border-radius:50%}
.survivor-play .shell-brand-logo{width:28px;height:28px}
.survivor-play .shell-brand-text{display:none}
.prep-brand-head{display:flex;align-items:center;gap:13px}
.prep-brand-logo{width:50px;height:50px;border-radius:50%;flex:none;box-shadow:0 6px 18px #04061480,0 0 16px #ffd87524}
.map-brand-head{display:flex;align-items:center;gap:14px;margin-bottom:6px}
.map-brand-head h2{margin:4px 0 0}
.map-brand-logo{width:48px;height:48px;border-radius:50%;flex:none;box-shadow:0 6px 18px #04061475,0 0 16px #9ef5df22}

/* Direct Top-Bar Game Switcher Tabs (Zero Dropdowns) */
.shell-game-tabs{display:inline-flex;align-items:center;gap:4px;padding:3px;border-radius:12px;background:#0f1322b8;border:1px solid #ffffff14;box-shadow:inset 0 1px 3px #04061099;flex:none}
.shell-game-tab{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;padding:0 12px;border-radius:9px;color:#b2b0c4;text-decoration:none;font-size:13px;font-weight:600;letter-spacing:.25px;white-space:nowrap;border:1px solid transparent;transition:background .16s,color .16s,border-color .16s,box-shadow .16s}
.shell-game-tab:hover{color:#fff8ec;background:#ffffff0d}
.shell-game-tab.is-active{color:#fff9ee;background:linear-gradient(180deg,#39555e,#243744);border-color:#b2f2dc73;box-shadow:0 4px 14px #04081473,0 0 14px #9cead224,inset 0 1px 0 #ebfff83b}
.shell-game-tab[data-game-tab="survivor"].is-active{background:linear-gradient(180deg,#4c3a73,#2b2148);border-color:#ffdc827a;box-shadow:0 4px 14px #06051880,0 0 14px #ffd87526,inset 0 1px 0 #fff6dc3d}
.shell-tab-mark{display:inline-flex;width:19px;height:19px;align-items:center;justify-content:center;color:#eac7a2}
.shell-tab-mark.is-star{color:#ffd86b}
.shell-tab-mark svg{width:18px;height:18px;stroke:none}
.shell-tab-short{display:none}

.shell-divider{height:24px;width:1px;background:#ffffff14;flex:none}
.game-shell .shell-profile{padding:2px 8px;gap:8px;min-width:0;justify-content:flex-start;text-align:left}
.shell-avatar{display:flex;width:32px;height:32px;flex:none;align-items:center;justify-content:center;border-radius:50%;background:radial-gradient(circle at 35% 28%,#385452,#223334);border:1px solid #c6eed942;box-shadow:0 2px 8px #05081259,inset 0 1px 0 #ffffff29;overflow:hidden;color:#edd2b2}
.shell-avatar img{width:37px;height:37px;object-fit:contain}
.shell-avatar svg{stroke:none;width:24px;height:24px}
.shell-identity{display:grid;gap:3px;min-width:0}
.shell-role{font-size:12px;font-weight:500}
.shell-progress{font-size:10px;white-space:nowrap;color:var(--shell-muted);font-variant-numeric:tabular-nums}
.shell-profile-label{font-size:11px;color:#b6b1c3;margin-left:4px}

.shell-actions{margin-left:auto;display:flex;gap:3px;align-items:center;flex:none}
.game-shell .shell-labeled-action{position:relative;padding:0 10px;color:#d0cddd;font-size:12px;white-space:nowrap}
.shell-labeled-action svg{width:16px;height:16px;color:#a5adbb}
.game-shell .shell-shop-action{background:linear-gradient(180deg,#ffcf6e26,#f59d5614);border:1px solid #ffd57945;color:#ffe6aa}
.game-shell .shell-shop-action svg{color:#ffd579}
.game-shell .shell-shop-action:hover{background:linear-gradient(180deg,#ffcf6e3b,#f59d5624);color:#fff7de}
.shell-shop-action i{position:absolute;top:2px;right:2px;min-width:14px;height:14px;padding:0 3px;border-radius:99px;background:#ff647c;color:#fff;font-style:normal;font-size:8.5px;font-weight:700;line-height:14px;text-align:center}
.shell-event-action{position:relative}
.shell-event-action i{position:absolute;top:3px;right:3px;min-width:15px;height:15px;padding:0 3px;border-radius:99px;background:#f0a365;color:#1b1726;font-style:normal;font-size:9px;font-weight:700;line-height:15px;text-align:center}
.game-shell .shell-icon-action{width:38px;padding:0;color:#b3b6c4}
.game-shell .shell-pause{background:linear-gradient(180deg,#c5eadb21,#95cbb812);border:1px solid #c5eadb30;box-shadow:inset 0 1px 0 #ffffff24;color:#c5eadb;margin-left:2px}

/* Keep the requested company identity at the page's bottom without a landing page. */
body>.corporate-footer{position:fixed;inset:auto 0 0;z-index:45;width:100%;max-width:none;height:var(--shell-bottom);margin:0;padding:4px 22px;display:flex;justify-content:center;gap:20px;border-top:1px solid #c4c4d30e;background:#141827;color:#86899b;font-size:9px;line-height:1.5}
body>.corporate-footer .corporate-logo{width:64px;min-height:24px;flex:none}.corporate-footer .corporate-logo img{width:64px;height:24px;object-fit:contain;opacity:.7}
body>.corporate-footer .corporate-legal{display:flex;align-items:center;gap:18px;min-width:0}body>.corporate-footer .corporate-legal p:first-child{color:#a6a6b4;letter-spacing:0}body>.corporate-footer .corporate-legal p+p{margin:0}body>.corporate-footer .corporate-legal span{font-size:9px;letter-spacing:.1px}body>.corporate-footer .corporate-link{font-size:9px;margin:0;grid-column:auto;color:#a6a6b4}

@media(max-width:980px){
  .game-shell{gap:7px}
  .shell-brand{padding:2px;border-radius:50%}
  .shell-brand-text{display:none}
  .shell-brand-logo{width:31px;height:31px}
  .shell-tab-full{display:none}
  .shell-tab-short{display:inline}
  .shell-game-tab{padding:0 10px;font-size:12px}
  .shell-profile-label{display:none}
  .game-shell .shell-labeled-action{padding:0 8px}
  body>.corporate-footer{gap:13px;padding-inline:12px}
  body>.corporate-footer .corporate-legal{gap:10px}
  body>.corporate-footer .corporate-link{display:none}
}
@media(max-width:640px){
  :root{--shell-top:calc(max(10px,env(safe-area-inset-top,0px)) + 66px);--shell-bottom:calc(60px + env(safe-area-inset-bottom,0px))}
  .game-shell{top:max(10px,env(safe-area-inset-top));width:calc(100% - 20px);height:54px;padding:4px 5px;gap:3px;border-radius:14px}
  .shell-brand-logo{width:26px;height:26px}
  .prep-brand-logo,.map-brand-logo{width:40px;height:40px}
  .shell-game-tabs{padding:2px;gap:2px;border-radius:10px}
  .shell-tab-mark{display:none}
  .shell-game-tab{height:34px;padding:0 6px;font-size:10.5px;letter-spacing:0;border-radius:7px}
  .shell-divider,.shell-identity,.shell-profile-label,.shell-help-action{display:none}
  .game-shell .shell-profile{padding:0;justify-content:center;width:28px;min-width:28px}
  .shell-avatar{width:25px;height:25px}
  .shell-avatar img{width:29px;height:29px}
  .shell-actions{gap:2px}
  .game-shell .shell-labeled-action{padding:0 4px;min-width:29px;font-size:10.5px}
  .shell-labeled-action svg,.shell-shop-action i{display:none}
  .game-shell .shell-icon-action{width:28px;min-height:36px}
  .game-shell .shell-pause{margin-left:0}
  .shell-icon-action svg{width:15px;height:15px}
  body>.corporate-footer{height:var(--shell-bottom);gap:9px;padding:6px 12px calc(6px + env(safe-area-inset-bottom));text-align:left}
  body>.corporate-footer .corporate-logo{width:49px;min-height:22px}.corporate-footer .corporate-logo img{width:49px;height:22px}
  body>.corporate-footer .corporate-legal{display:block;font-size:9px;line-height:1.8}
  body>.corporate-footer .corporate-legal span{font-size:8.6px}
}
@media(max-width:350px){
  .shell-game-tab{padding:0 5px;font-size:10px}
  .game-shell .shell-labeled-action{min-width:26px;padding:0 3px;font-size:10px}
  .game-shell .shell-icon-action{width:25px}
}
@media(prefers-reduced-motion:reduce){.game-shell button,.shell-game-tab{transition:none}}

/* Narrow phones: keep every shell control inside the viewport.
   The compact rules above were overridden by `.game-shell button` (higher
   specificity) and by festival.css' 360px block, so the help button stayed
   visible and the whole actions group overflowed: at 320px the pause button
   ended up at x=347..375, entirely outside the 320px viewport. Let the game
   tabs shrink first (they are the only flexible group) and keep actions
   intact, so touch users on narrow screens can still reach pause. */
@media(max-width:640px){
  .game-shell .shell-help-action{display:none}
  .game-shell .shell-game-tabs{flex:1 1 auto;min-width:0}
}
@media(max-width:350px){
  .game-shell{gap:2px;padding:4px 3px}
  .game-shell .shell-game-tab{padding:0 3px;font-size:9px;min-width:0}
  .game-shell .shell-actions{gap:1px}
  .game-shell .shell-actions .shell-labeled-action{min-width:24px;padding:0 2px;font-size:9px}
  .game-shell .shell-actions .shell-icon-action{width:24px}
}
