/* Shared shell foundations: both entrypoints use this without importing each other's page styles. */
:root{--brand-blue:#3476b5;--brand-ink:#061b3a;--brand-ice:#f4f7fa}
.game-header{max-width:1600px;margin:0 auto;background:#fff;color:var(--brand-ink);border-bottom:2px solid var(--brand-blue);min-height:85px}
.game-header .brand{display:block;width:160px;padding:0;border:0;background:none;flex:none}
.game-header .brand img{display:block;width:100%;height:auto;filter:none;mix-blend-mode:multiply}
.game-header .header-bag{text-decoration:none}
.game-header .header-tools #sound{border:0;background:none;color:var(--brand-blue)}
.game-header .currency-control select{color:var(--brand-ink);border:0;border-radius:0}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.skip-link{position:fixed;left:16px;top:12px;z-index:100;transform:translateY(-200%);padding:14px 18px;background:#fff;color:#061b3a;font:10px/1.8 var(--type-arcade);border:3px solid #3476b5}
.skip-link:focus{transform:none}
/* Arena wayfinding: one pixel object per destination, with the same 32px grid. */
.game-header{display:grid;grid-template-columns:160px minmax(0,1fr) auto;gap:24px;padding:16px 28px;align-items:center}
.game-header .game-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;align-items:stretch;max-width:none}
.game-header .game-nav .game-nav-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:94px;padding:10px 4px!important;border:0;border-bottom:3px solid transparent;background:transparent;color:var(--brand-ink);text-decoration:none;text-align:center;font:8px/1.7 var(--type-arcade)!important;white-space:nowrap}
.game-header .game-nav .nav-label{color:inherit;position:relative}
.game-header .nav-icon{display:block;width:48px;height:48px;object-fit:contain;image-rendering:pixelated;flex:none;transition:transform .15s steps(2,end)}
.game-header .game-nav-item:hover{background:var(--brand-ice);border-bottom-color:#9cbad5;text-decoration:none}
.game-header .game-nav-item:hover .nav-icon{transform:translateY(-2px)}
.game-header .game-nav-item[aria-current="page"]{color:var(--brand-blue);background:#edf3f8;border-bottom-color:var(--brand-blue)}
.game-header .game-nav-item[aria-current="page"]::after{content:"";position:absolute;bottom:-3px;left:calc(50% - 4px);width:8px;height:6px;background:var(--brand-blue);clip-path:polygon(0 0,100% 0,100% 50%,75% 50%,75% 100%,25% 100%,25% 50%,0 50%)}
.game-header .game-nav-item:focus-visible,.game-header .header-tools button:focus-visible,.game-header .header-tools select:focus-visible{outline:3px solid var(--brand-blue);outline-offset:2px}
.game-header .game-nav .nav-count{display:inline-block;min-width:14px;margin-left:2px;color:var(--brand-blue);font-size:7px}
.game-header .header-tools{display:grid;grid-template-columns:44px 72px;align-items:center;gap:4px 8px;border-left:1px solid #c6d5e5;padding-left:16px}
.game-header .header-tools .header-bag{box-sizing:border-box;display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;min-height:64px;padding:0;border:0;background:none;color:var(--brand-ink);font:6px/1.7 var(--type-arcade)}
.game-header .header-bag .nav-icon{width:26px;height:26px}
.game-header .header-tools .currency-control{position:static;margin:0;grid-column:2;grid-row:1}
.game-header .header-tools select{max-width:72px;min-width:0;min-height:44px;font:8px/1.6 var(--type-arcade);padding:8px 3px;background:#fff}
.game-header .header-tools #sound{display:block;grid-column:1/-1;min-height:24px;padding:3px 0;font:5px/1.6 var(--type-arcade)}
@media(max-width:1100px){
 .game-header{grid-template-columns:160px 1fr auto;gap:12px 20px;padding:16px 24px}
 .game-header .game-nav{grid-column:1/-1;grid-row:2}
 .game-header .header-tools{grid-column:3;grid-row:1;border-left:0;padding-left:0;display:flex;gap:12px}
 .game-header .header-tools #sound{display:none}
 .game-header .header-tools .header-bag{box-sizing:border-box;min-height:48px}
 .game-header .game-nav .game-nav-item{min-height:82px}
}
@media(max-width:700px){
 .game-header{grid-template-columns:minmax(0,1fr) auto;padding:14px 12px 8px;gap:14px 12px}
 .game-header .brand{width:140px}
 .game-header .header-tools{grid-column:2;gap:10px}
 .game-header .game-nav{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px 6px;width:100%}
 .game-header .game-nav .game-nav-item{grid-column:span 2;min-height:80px;gap:7px;padding:8px 2px!important;font-size:8px!important}
 .game-header .game-nav .game-nav-item:nth-last-child(-n+2){grid-column:span 3}
 .game-header .nav-icon{width:40px;height:40px}
 .game-header .game-nav .nav-count{font-size:6px;min-width:10px;margin-left:0}
 .game-header .header-bag .nav-icon{width:24px;height:24px}
}
@media(max-width:360px){.game-header .brand{width:124px}.game-header .game-nav .game-nav-item{font-size:7px!important}.game-header .header-tools{gap:4px}}
@media(prefers-reduced-motion:reduce){.game-header .nav-icon{transition:none;transform:none!important}}
.reduced .game-header .nav-icon{transition:none;transform:none!important}

.match-app .game-header{width:100%}

.currency-status{max-width:1600px;margin:0 auto;padding:12px 24px;font:13px/1.7 var(--type-reading);color:#743027;background:#fff3df}.currency-status button{margin-left:12px;min-height:44px;padding:8px 12px;border:1px solid currentColor;background:transparent;color:inherit;font:inherit}

/* The compact five-destination mobile menu is shared with the quiz. */
@media(max-width:700px){
 .game-header .game-nav{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
 .game-header .game-nav .game-nav-item,.game-header .game-nav .game-nav-item:nth-last-child(-n+2){grid-column:auto;min-height:70px;white-space:normal;font-size:6px!important;line-height:1.8!important;gap:7px}
 .game-header .game-nav .nav-icon{width:30px;height:30px}
}
