/* ---------- Pong (2026-09-24; see pong.js) ----------
   Fourth pass, his Figma 1025:3767. The page goes behind the menu's own blur
   (.blurwrap, 24px); the wordmark and the footer stay sharp; the header's
   other controls step away, all but the menu button, which turns to its X.
   Nothing under the game answers the pointer — no card lifts, no link
   lightens — only the X does.
   Over it: the paddles — Hìtëkw and Comet as pixel sprites in their own colours
   (2026-09-26) — and the ball, white, DIFFERENCE-blended like the wordmark, and
   the score pill beside the X. */
body.pong-open .blurwrap{filter:blur(24px)}
body.pong-open #menuBtn .plus{transform:rotate(90deg)}   /* the site's X */
body.pong-open .arrows{opacity:0 !important;pointer-events:none !important;transition-delay:0s !important}   /* the strip's own arrows go with it */
/* NOTHING under the game is hit-testable. Taking pointer-events off the
   page's wrappers was not enough: parts of the page switch it back on for
   themselves (a closed card's picture does), and a child that says auto
   answers the pointer whatever its parent says. So everything is off, and
   only the X and the score's two numbers come back. */
body.pong-open *{pointer-events:none !important}
body.pong-open #menuBtn,
body.pong-open .pong-score .pong-n{pointer-events:auto !important}
body.pong-open .pong-score .pong-n{cursor:pointer}
body.pong-open .cursor-tip{opacity:0 !important}   /* the badge would otherwise hang where the pointer last was */
body.pong-open .head-actions > :not(#menuBtn){
  opacity:0 !important;               /* out-ranks each control's own show rule */
  pointer-events:none !important;
  transition:opacity 260ms var(--ease) !important;
}
/* loose in the body, no wrapper (see pong.js): a wrapper gets a layer of its
   own and the blend then has nothing under it */
body.pong-open{touch-action:none;user-select:none;-webkit-user-select:none}
.pong-bit,
.pong-pad,
.pong-score{display:none}
body.pong-open .pong-bit,
body.pong-open .pong-pad{display:block}
body.pong-open .pong-score{display:flex}
/* the ball: a white pixel ball on the paddles' 4px grid */
.pong-bit{
  position:absolute;
  left:0;top:0;
  mix-blend-mode:difference;          /* the wordmark's rule: never a transform or an animation on it */
  image-rendering:pixelated;
}
/* the paddles: not blended, so fixed — just above the blurred page, under the
   chrome (pong.js puts them after .blurwrap) */
.pong-pad{
  position:fixed;
  left:0;top:0;
  image-rendering:pixelated;
}
/* (the ball's wait and every fade-in are set from pong.js's frame loop) */
@keyframes pong-in{from{opacity:0}}

/* the score: a pill the header row's height, just left of the X — two numbers
   in circles the switch's highlight size, the leader's circle filled */
.pong-score{
  position:fixed;                     /* not blended, so it may be fixed like the header's row */
  top:20px;
  right:calc(var(--pad) + var(--chip-h) + 10px);
  height:var(--chip-h);
  padding:3px;
  border-radius:var(--chip-r);
  background-color:var(--chip);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  animation:pong-in 420ms var(--ease) backwards;
}
/* Feed · Index's own switch: each side's score an option 44 wide, YOUR side
   on the sliding highlight at full ink, the other at .4 like any unchosen
   option — press it to play from there */
.pong-dot{
  position:absolute;
  top:3px;left:0;
  width:44px;
  height:calc(var(--chip-h) - 6px);
  border-radius:999px;
  background:var(--seg-glide);
  transition:transform var(--seg-t) var(--seg-ease), opacity 200ms var(--ease);
}
.pong-n{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px;
  padding:0;
  border:0;
  background:none;
  font:inherit;
  font-size:var(--fs-s);
  font-variant-numeric:tabular-nums;
  color:var(--ink);
  opacity:.4;
  transition:opacity var(--seg-t) var(--seg-ease);
}
.pong-n.is-on{opacity:1}
@media (hover:hover){.pong-n:not(.is-on):hover{opacity:.7}}.pong-n:not(.is-on).is-pressed{opacity:.7}

/* Play, the last line of the small print: a button dressed as the links
   around it */
.foot-play{
  padding:0;
  border:0;
  background:none;
  font:inherit;
  color:inherit;
  text-align:left;
  cursor:pointer;
  opacity:.55;
  transition:opacity 200ms var(--ease);
}
@media (hover:hover){.foot-play:hover{opacity:.33}}.foot-play.is-pressed{opacity:.33}

/* SETTINGS, A MAIN ROW THAT GROWS (2026-09-24, his call): the pill is the
   card's own header and the card grows around the switches, exactly as Get in
   touch grows around its form — the words never move, the height runs on
   --contact-open / --glide, the switches fade in once it is on its way. The
   nav pill's own grey, both themes. */
.set-card{
  border-radius:var(--ctl-r);
  background-color:rgba(255,255,255,.55);
  overflow:hidden;
  transition:background-color var(--hover) var(--ease);
}
@media (hover:hover){.set-card:not(.is-open):hover{background-color:rgba(255,255,255,.9)}}.set-card:not(.is-open).is-pressed{background-color:rgba(255,255,255,.9)}
[data-theme="dark"] .set-card{background-color:rgba(255,255,255,.06)}
@media (hover:hover){[data-theme="dark"] .set-card:not(.is-open):hover{background-color:rgba(255,255,255,.11)}}[data-theme="dark"] .set-card:not(.is-open).is-pressed{background-color:rgba(255,255,255,.11)}
.set-head{
  display:flex;
  align-items:center;
  width:100%;
  height:var(--ctl-h);
  padding:0 var(--word-x);
  border:0;
  background:none;
  font:inherit;
  font-size:var(--fs-s);
  color:var(--ink);
  text-align:left;
  cursor:pointer;
}
.set-fold{height:0;overflow:hidden;transition:height var(--contact-open) var(--glide)}
.set-card .settings{padding:10px var(--word-x) 20px;opacity:0;transition:opacity 260ms var(--ease)}
.set-card.is-open .settings{opacity:1;transition:opacity 360ms var(--ease) 200ms}

/* THE SWITCHES (his sketch, 2026-09-24): a track the chip's height and grey,
   a round knob inset 3 like every highlight on the site, the label beside it
   at 14. Off, the knob rests left at a quarter of the ink; on, it slides
   right at full ink (Low-res keeps its green, the one colour in the chrome).
   Two of them: a Reduce animation switch lived here for an hour and went (his
   call) — the device's own setting still stops the motion. */
.settings{display:flex;flex-direction:column;gap:10px}
.set-row{
  align-self:flex-start;               /* the switch and its words are the target, not the panel's width */
  position:relative;                   /* holds its phone haptic switch (.haptic-hit, inset 0) to the row — without it the last row's invisible switch covered the whole Settings card and a tap on "Settings" toggled Daylight (2026-09-25) */
  display:flex;
  align-items:center;
  gap:10px;
  padding:0;
  border:0;
  background:none;
  font:inherit;
  font-size:var(--fs-s);
  color:var(--ink);
  text-align:left;
  cursor:pointer;
}
.sw{
  position:relative;
  flex:none;
  width:calc(var(--chip-h) * 2 - 8px);
  height:var(--chip-h);
  border-radius:999px;
  background-color:var(--chip);
  transition:background-color var(--hover) var(--ease);
}
@media (hover:hover){.set-row:hover .sw{background-color:var(--chip-hover)}}.set-row.is-pressed .sw{background-color:var(--chip-hover)}
/* inside the Settings card the track must step off the CARD, not the page: in
   dark mode the chip's grey is the card's own and the track vanished (seen on
   a phone) */
[data-theme="dark"] .set-card .sw{background-color:rgba(255,255,255,.1)}
@media (hover:hover){[data-theme="dark"] .set-card .set-row:hover .sw{background-color:rgba(255,255,255,.16)}}[data-theme="dark"] .set-card .set-row.is-pressed .sw{background-color:rgba(255,255,255,.16)}
.sw-knob{
  position:absolute;
  top:3px;left:3px;
  width:calc(var(--chip-h) - 6px);
  height:calc(var(--chip-h) - 6px);
  border-radius:50%;
  background-color:var(--ink);
  opacity:.25;
  transition:transform var(--seg-t) var(--seg-ease), opacity var(--seg-t) var(--seg-ease);
}
.set-row[aria-checked="true"] .sw-knob{transform:translateX(calc(var(--chip-h) - 8px));opacity:1}
.set-row[data-set="lowres"][aria-checked="true"] .sw-knob{background-color:#34c759}
/* A theme change is one cross-fade of the whole page (turnPage in app.js):
   nothing inside it runs its own transition, and the two theme knobs are
   lifted out of the picture so they still slide on the switches' clock. */
html.is-turning *,
html.is-turning *::before,
html.is-turning *::after{transition:none !important}
html.is-turning .set-row[data-set="dark"] .sw-knob{view-transition-name:knob-dark}
html.is-turning .set-row[data-set="day"] .sw-knob{view-transition-name:knob-day}
::view-transition-old(root),
::view-transition-new(root){animation-duration:420ms;animation-timing-function:var(--ease)}
::view-transition-group(knob-dark),
::view-transition-group(knob-day){animation-duration:var(--seg-t);animation-timing-function:var(--seg-ease)}
/* a laptop's menu stacks the small print, 20 apart (his sketch, 2026-09-24) */
/* the small print on a laptop: ONE ROW now there are only two — Privacy &
   Terms at the left edge, Play at the right (his note); a phone's is two
   columns (below) */
@media (min-width:769px){
  .panel-foot{flex-direction:row;justify-content:space-between;align-items:center}
}
@media (prefers-reduced-motion:reduce){.pong-score{animation:none}}
