/* fly-song page. Same palette as connectle and the binf games series; sans body, mono only for labels. */
:root { --bg:#0d1117; --panel:#161b22; --edge:#666e7a; --ink:#f0f6fc; --dim:#b1bac4; --acc:#d2a8ff;
  --yes:#4ac26b; --no:#ff7b72; color-scheme: dark;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
@media (prefers-color-scheme: light) {
  :root { --bg:#ffffff; --panel:#f6f8fa; --edge:#57606a; --ink:#1f2328; --dim:#424a53; --acc:#6f42c1;
    --yes:#1a7f37; --no:#cf222e; color-scheme: light; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); }
main { max-width: 760px; margin-inline: auto;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
a { color: var(--acc); }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); line-height: 1.1; margin: .3rem 0 .7rem; letter-spacing: -.01em; }
h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); margin: 2.2rem 0 .6rem; }
.kicker, .dim { color: var(--dim); }
.kicker { margin: 0; font-family: var(--mono); font-size: .9rem; }
.play-lab { display: inline-flex; align-items: center; min-height: 44px; }
.lede { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); line-height: 1.45; }
.sounds { display: grid; gap: .9rem; margin: 1.2rem 0; }
.player { background: var(--panel); border: 1px solid var(--edge); border-radius: 14px; padding: .8rem .9rem .9rem; }
.phead { display: flex; gap: .8rem; align-items: center; margin-bottom: .6rem; }
.phead p { margin: 0; line-height: 1.35; }
.ptitle { font-weight: 600; }
.phead .dim { font-size: .92rem; }
.play { flex: none; min-width: 5.2rem; min-height: 44px; border-radius: 22px; border: 0; cursor: pointer;
  background: var(--acc); color: var(--bg); font: 600 1rem/1 system-ui, sans-serif; padding: 0 1rem; }
.play:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.player canvas { display: block; width: 100%; height: 110px; }
.player audio { display: none; }
/* Live brain: sticky so it stays in view while the player cards scroll underneath on a phone. */
.brain { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: .4rem 0 .5rem; margin: 0 -.2rem; }
#brain { display: block; height: min(46svh, 560px); aspect-ratio: 751 / 1016; max-width: 100%; margin: 0 auto;
  background: #0b0f14; border-radius: 14px; }
#brain-cap { text-align: center; font-size: .92rem; margin: .35rem 0 0; min-height: 2.6em; }
.slow { display: flex; gap: .6rem; align-items: center; min-height: 44px; cursor: pointer; }
.slow input { width: 22px; height: 22px; accent-color: var(--acc); }
.verdict { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); line-height: 1.45; border-left: 4px solid var(--acc);
  padding-left: .9rem; margin: .4rem 0; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .5rem .4rem; border-bottom: 1px solid var(--edge); }
td.yes { color: var(--yes); font-weight: 700; }
td.no { color: var(--no); font-weight: 700; }
@media (max-width: 560px) {   /* stack the table on phones instead of squeezing four columns */
  thead { display: none; }
  tr { display: grid; grid-template-columns: 1fr auto; gap: .2rem .75rem; padding: .6rem 0; border-bottom: 1px solid var(--edge); }
  td { border: 0; padding: 0; }
  td:nth-child(1) { font-weight: 700; }
  td:nth-child(2), td:nth-child(3) { grid-column: 1; color: var(--dim); }
  td:nth-child(4) { grid-row: 1; grid-column: 2; }
}
figure { margin: 1.25rem 0; }
.fig { background: #ffffff; border-radius: 12px; padding: 8px; }   /* house-style figures are black on transparent */
.fig img { width: 100%; height: auto; display: block; }
figcaption { color: var(--dim); font-size: .95rem; margin-top: .4rem; }
.honest { background: var(--panel); border: 1px solid var(--edge); border-left: 4px solid var(--acc); border-radius: 12px;
  padding: .25rem 1rem 1rem; margin-top: 2rem; }
details { margin-top: 1.5rem; }
summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .85rem; background: var(--panel); padding: 1rem; border-radius: 10px; }
.credits { padding-left: 1.2rem; }
