/* Top menu + footer shared by every page (HTML in worker/chrome.js). Flat print style: felt, gold rules, no shadows.
   Self-contained colours so it looks the same on the hub, the tools and the gacha table. */
.site-head, .site-foot {
  --c-bg: #0F241D; --c-panel: #143328; --c-gold: #E7C46E; --c-line: rgba(231, 196, 110, .32);
  --c-text: #F0E8D6; --c-soft: #C6C4B0; --c-pop: #FF5C8A;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif; color: var(--c-text);
}
.site-head *, .site-foot * { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top menu ---------- */
.site-head { position: relative; z-index: 50; background: var(--c-bg); border-bottom: 1px solid var(--c-line); }
.sh-in { max-width: 1120px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sh-logo {
  font-family: 'Unbounded', system-ui, sans-serif; font-weight: 900; font-size: 1.3rem; letter-spacing: -.04em;
  color: var(--c-text); text-decoration: none; line-height: 1;
}
.sh-logo .x { color: var(--c-pop); display: inline-block; transform: rotate(-8deg); margin-right: .02em; }
.sh-nav { display: flex; align-items: center; gap: 6px; }
.sh-link, .sh-menu > summary {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; color: var(--c-text); text-decoration: none; cursor: pointer;
}
.sh-link:hover, .sh-menu > summary:hover, .sh-menu[open] > summary { background: var(--c-panel); }
.sh-link[aria-current="page"] { color: var(--c-gold); }
.sh-coffee {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; margin-left: 6px; border-radius: 999px;
  border: 1.5px solid var(--c-gold); color: var(--c-gold); font-weight: 800; font-size: .95rem; text-decoration: none;
}
.sh-coffee:hover { background: var(--c-gold); color: var(--c-bg); }

.sh-menu { position: relative; }
.sh-menu > summary { list-style: none; }
.sh-menu > summary::-webkit-details-marker { display: none; }
.chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.sh-menu[open] .chev { transform: rotate(180deg); }
.burger { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sh-narrow { display: none; }
.sh-drop {
  position: absolute; right: 0; top: calc(100% + 8px); width: 260px; padding: 10px; border-radius: 16px;
  background: var(--c-panel); border: 1px solid var(--c-line);
}
.sh-label { margin: 4px 10px 6px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-soft); }
.sh-drop ul { list-style: none; margin: 0; padding: 0; }
.sh-drop a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  color: var(--c-text); text-decoration: none; font-weight: 700; font-size: .98rem;
}
.sh-drop a:hover { background: rgba(231, 196, 110, .12); }
.sh-drop a[aria-current="page"] { color: var(--c-gold); }
.sh-drop .ic { width: 22px; text-align: center; }
.sh-extra { display: none; border-top: 1px solid var(--c-line); margin-top: 8px !important; padding-top: 8px !important; }

@media (max-width: 719px) {
  .sh-in { height: 56px; padding: 0 16px; }
  .sh-link, .site-head .sh-coffee { display: none; }
  .sh-wide { display: none; }
  .sh-narrow { display: inline-flex; }
  .sh-menu > summary { padding: 0 8px; margin-right: -8px; }
  .sh-menu { position: static; }
  .sh-drop { left: 12px; right: 12px; width: auto; top: calc(100% + 6px); }
  .sh-drop ul:first-of-type { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
  .sh-extra { display: block; }
}

/* ---------- footer ---------- */
.site-foot { margin-top: 56px; border-top: 1px solid var(--c-line); background: var(--c-bg); font-size: .95rem; text-align: left; }
.sf-in { max-width: 1120px; margin: 0 auto; padding: 40px 20px 28px; display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; }
.sf-brand p { margin: 10px 0 0; max-width: 32ch; color: var(--c-soft); line-height: 1.5; }
.sf-brand a:not(.sh-logo):not(.sh-coffee) { color: var(--c-text); font-weight: 700; }
.sf-brand .sh-coffee { margin: 16px 0 0; }
.sf-h { margin: 0 0 12px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-gold); }
.sf-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sf-col a { color: var(--c-soft); text-decoration: none; font-weight: 600; display: inline-flex; gap: 8px; }
.sf-col a:hover, .sf-col a[aria-current="page"] { color: var(--c-text); }
.sf-col .ic { width: 18px; text-align: center; }
.sf-bottom {
  width: calc(100% - 40px); max-width: 1080px; margin: 0 auto; padding: 16px 0 32px; border-top: 1px solid var(--c-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; color: var(--c-soft); font-size: .8rem;
}
.sf-bottom p { margin: 0; }
@media (max-width: 719px) {
  .sf-in { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding: 32px 16px 24px; }
  .sf-brand { grid-column: 1 / -1; }
  .sf-bottom { width: calc(100% - 32px); padding: 14px 0 28px; }
}
