/* 2026-11-24: the ☰ menu (see menu.js), shared by every page including /play. Colours fall back for pages without the site tokens. */
.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 2.6rem; height: 2.6rem; padding: 0 .6rem;
  background: transparent; border: 1px solid var(--seam, #352f3f); border-radius: .5rem; cursor: pointer; flex: 0 0 auto; }
.burger span { display: block; height: 2px; background: var(--ash, #d6cfc4); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger:hover { border-color: var(--cinder, #958c9c); }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.brand { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.playpill { color: #1b0f0a; background: linear-gradient(180deg, var(--ember, #f0883e), var(--coal, #b8432f)); padding: .45rem 1rem;
  border-radius: 999px; font-weight: 700; text-decoration: none; white-space: nowrap; flex: 0 0 auto; }
.playpill:hover { color: #1b0f0a; filter: brightness(1.08); }

.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 40; opacity: 0; transition: opacity .2s; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(20rem, 86vw); z-index: 41; overflow-y: auto;
  background: var(--slate, #221e2a); border-right: 1px solid var(--seam, #352f3f); padding: 1rem 1.2rem 2rem;
  padding-top: calc(1rem + env(safe-area-inset-top)); transform: translateX(-102%); transition: transform .2s ease-out;
  font-family: var(--body, system-ui, sans-serif); }
.menu-open .scrim { opacity: 1; }
.menu-open .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.drawer-head .mark { font: 700 1.5rem/1 var(--display, serif); color: var(--ash, #d6cfc4); text-decoration: none; }
.drawer-head .mark span { color: var(--ember, #f0883e); }
.drawer-x { background: none; border: 0; color: var(--cinder, #958c9c); font-size: 1.8rem; line-height: 1; cursor: pointer; padding: .2rem .4rem; }
.drawer-group { font: 500 .72rem/1 var(--mono, monospace); text-transform: uppercase; letter-spacing: .12em; color: var(--cinder, #958c9c);
  margin: 1.3rem 0 .4rem; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer a { display: block; padding: .55rem .6rem; margin: 0 -.6rem; border-radius: .4rem; color: var(--ash, #d6cfc4); text-decoration: none;
  font-size: 1.02rem; }
.drawer a:hover, .drawer a:focus-visible { background: rgba(255, 255, 255, .06); color: #fff; }
.drawer a[aria-current="page"] { color: var(--ember, #f0883e); }
@media (prefers-reduced-motion: reduce) { .drawer, .scrim, .burger span { transition: none; } }

/* 2026-11-24: the cookie bar (consent.js) */
.consent { position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 50; max-width: 40rem; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; background: var(--slate, #221e2a); color: var(--ash, #d6cfc4);
  border: 1px solid var(--seam, #352f3f); border-left: 4px solid var(--ember, #f0883e); border-radius: .6rem; padding: .8rem 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5); font: 400 .95rem/1.45 var(--body, system-ui, sans-serif); }
.consent p { margin: 0; flex: 1 1 18rem; }
.consent a { color: var(--ember, #f0883e); }
.consent-actions { display: flex; gap: .5rem; margin-left: auto; }
.consent button { font: 700 .95rem var(--body, system-ui, sans-serif); border-radius: .45rem; padding: .5rem .95rem; cursor: pointer;
  border: 1px solid var(--seam, #352f3f); background: transparent; color: var(--ash, #d6cfc4); }
.consent .consent-yes { background: var(--ember, #f0883e); color: #1b1208; border-color: transparent; }

/* 2026-11-24: on phones, once the top bar has scrolled away, the ☰ floats in the corner */
@media (max-width: 540px) {
  .scrolled .bar .burger { position: fixed; top: calc(.75rem + env(safe-area-inset-top)); left: .75rem; z-index: 35;
    background: var(--slate, #221e2a); box-shadow: 0 4px 14px rgba(0, 0, 0, .45); }
}
