/* Fret Arcade's header and footer, the same on every site page (not the game screens or Soundcheck, which are full screen).
   The HTML is written into each page by tools/site-chrome.js; js/site.js opens the menus and the Shred Store.
   Colours are written out (not the pages' own variables) so it looks the same on every page. */
.sx-head { position: relative; z-index: 60; font-family: 'Outfit', system-ui, sans-serif; }
.sx-in { width: min(1120px, 100%); margin: 0 auto; padding: 0 16px; }
.sx-head .sx-in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.sx-brand { font: 400 19px/1 'Bungee', sans-serif; color: #f6f0e7; text-decoration: none; letter-spacing: .02em; white-space: nowrap; }
.sx-brand b { font-weight: 400; color: #ffb547; }
/* the pixel pick logo before the name (John, 2026-11-05); 32 px is 1:1 with its 32x32 grid, so the pixels stay sharp */
.sx-brand::before { content: ''; display: inline-block; width: 32px; height: 32px; margin-right: 9px; vertical-align: -9px;
  background: url(../favicon.svg?v=2) center / contain no-repeat; image-rendering: pixelated; }
.sx-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.sx-nav a, .sx-drop { color: #a69db1; text-decoration: none; padding: 8px 10px; border-radius: 10px; }
.sx-nav a:hover, .sx-drop:hover, .sx-nav a:focus-visible, .sx-drop:focus-visible { color: #f6f0e7; }
.sx-nav a[aria-current="page"] { color: #f6f0e7; }
.sx-drop { font: inherit; background: none; border: 0; cursor: pointer; }
.sx-drop span { font-size: 11px; margin-left: 3px; }
.sx-store img { display: inline-block; vertical-align: -5px; width: 20px; height: 20px; margin-right: 5px; image-rendering: pixelated; }
.sx-nav .sx-cta { margin-left: 8px; padding: 9px 16px; border-radius: 12px; color: #1a0d05; font-weight: 800;
  background: linear-gradient(#ffc56b, #ff7a2f); box-shadow: 0 3px 0 #a8441a, 0 0 16px rgba(255,140,50,.3); }
.sx-nav .sx-cta:hover, .sx-nav .sx-cta:focus-visible { color: #1a0d05; filter: brightness(1.06); }

/* a group (Games, Get set up): a little list under its button */
.sx-group { position: relative; }
.sx-list { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; padding: 6px; border-radius: 14px;
  background: #1d1427; border: 1px solid rgba(255,181,71,.45); box-shadow: 0 16px 36px rgba(0,0,0,.55); }
.sx-list a { display: block; color: #f6f0e7; padding: 10px 12px; white-space: nowrap; }
.sx-list a:hover, .sx-list a:focus-visible { background: rgba(255,181,71,.12); }
.sx-list small { color: #ffb547; font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-left: 6px; }
.sx-group.open .sx-list { display: block; }
@media (hover: hover) and (min-width: 761px) { .sx-group:hover .sx-list { display: block; } }
.sx-group.open .sx-drop { color: #f6f0e7; }
.sx-label { display: none; }
.sx-store-sm, .sx-menu { display: none; }

/* phones: the logo, the Store and a pixel arcade button; everything else in the menu it opens */
@media (max-width: 760px) {
  .sx-head .sx-in { gap: 10px; min-height: 64px; }
  .sx-brand { font-size: 18px; }
  .sx-store-sm { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 7px 12px 7px 8px; border-radius: 12px;
    border: 1px solid rgba(255,181,71,.45); background: rgba(255,181,71,.08); color: #f6f0e7; font-weight: 700; font-size: 14px; text-decoration: none; }
  .sx-store-sm img { image-rendering: pixelated; }
  .sx-menu { display: grid; align-content: center; justify-items: center; gap: 4px; width: 44px; height: 42px; padding: 0; cursor: pointer; flex: none;
    border: 0; border-radius: 12px; background: linear-gradient(#ffc56b, #ff7a2f); box-shadow: 0 4px 0 #a8441a, 0 0 18px rgba(255,140,50,.35); }
  .sx-menu:active { translate: 0 2px; box-shadow: 0 2px 0 #a8441a, 0 0 18px rgba(255,140,50,.35); }
  .sx-menu i { display: block; width: 20px; height: 4px; background: #2a1408; transition: transform .15s, opacity .15s; }   /* square ends: pixel bars */
  .sx-menu[aria-expanded="true"] i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .sx-menu[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
  .sx-menu[aria-expanded="true"] i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .sx-nav { display: none; position: absolute; top: calc(100% - 6px); right: 16px; width: min(290px, calc(100vw - 32px)); max-height: calc(100vh - 80px); overflow: auto;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px; border-radius: 16px; background: #1d1427; border: 2px solid rgba(255,181,71,.55);
    box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 26px rgba(255,140,50,.18); font-size: 17px; }
  .sx-nav.open { display: flex; }
  .sx-nav a { display: block; padding: 11px 14px; color: #f6f0e7; }
  .sx-nav a::before { content: '\25B8'; color: #ffb547; margin-right: 10px; }
  .sx-nav a:hover, .sx-nav a:focus-visible { background: rgba(255,181,71,.12); }
  .sx-drop { display: none; }
  .sx-label { display: block; padding: 12px 14px 4px; color: #a69db1; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .sx-list { display: block; position: static; min-width: 0; padding: 0; border: 0; background: none; box-shadow: none; }
  .sx-list a { white-space: normal; }
  .sx-group + a, .sx-group + .sx-group { border-top: 1px solid rgba(255,255,255,.08); margin-top: 6px; padding-top: 14px; }
  .sx-nav .sx-cta { margin: 10px 4px 4px; text-align: center; }
  .sx-nav .sx-cta::before { content: none; }
}

/* the footer */
.sx-foot { margin-top: 70px; padding: 36px 0 40px; border-top: 1px solid rgba(255,255,255,.09); color: #a69db1; font: 15px/1.6 'Outfit', system-ui, sans-serif; }
.sx-cols { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 28px; }
.sx-cols .sx-brand { display: inline-block; margin-bottom: 10px; }
.sx-cols .sx-brand::before { display: block; width: 96px; height: 96px; margin: 0 0 14px; filter: drop-shadow(0 0 18px rgba(255,122,47,.35)); }   /* big in the footer, 3x */
.sx-cols p { margin: 0; max-width: 30ch; }
.sx-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sx-foot .sx-social a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 999px; border: 1px solid rgba(255,181,71,.3); color: #f6f0e7; font-weight: 600; font-size: 14px; }
.sx-foot .sx-social a:hover, .sx-foot .sx-social a:focus-visible { border-color: #ffb547; background: rgba(255,181,71,.1); text-decoration: none; }
.sx-social svg { width: 18px; height: 18px; fill: #ffb547; }
.sx-h { margin: 0 0 8px; color: #f6f0e7; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.sx-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sx-foot a { color: #a69db1; text-decoration: none; }
.sx-foot a:hover, .sx-foot a:focus-visible { color: #f6f0e7; text-decoration: underline; }
.sx-foot .sx-brand { color: #f6f0e7; text-decoration: none; }
.sx-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 22px; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.06); font-size: 14px; }
@media (max-width: 760px) { .sx-cols { grid-template-columns: 1fr 1fr; } .sx-cols > :first-child { grid-column: 1 / -1; } }
