/* saynotoskiing.com beta: Pat's Peak Crew, 16-bit edition. Phone first, one long scroll, no menus.
   Pixel font for headings and accents only; body text stays a clean system font at 18px. */
@font-face {
  font-family: "Press Start 2P";
  src: url("../fonts/PressStart2P-Regular.ttf") format("truetype");
  font-display: swap;
}
:root {
  --ink: #14102a;
  --paper: #fffdf6;
  --sky1: #4c90f0; --sky2: #6aaef8; --sky3: #9ccff8; --snow: #f4f8ff;
  --gold: #f8c030; --gold-hi: #fff0a0; --gold-lo: #c87800;
  --green: #18803a; --blue: #1d57c4; --yellow: #ffd700; --black: #111111;
  --px: "Press Start 2P", ui-monospace, "Courier New", monospace;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", sans-serif;
  --edge: 4px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
  background:
    linear-gradient(var(--sky1) 0 260px, var(--sky2) 260px 560px, var(--sky3) 560px 900px, var(--snow) 900px);
  background-color: var(--snow);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; }
.px { display: block; image-rendering: pixelated; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
button:focus-visible, summary:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; }

/* grabs picture: untouched, same markup as before */
div.gocenter { text-align: center; }
div.goright { text-align: right; }
.gocenter > img { display: inline-block; vertical-align: top; }

.world { max-width: 1080px; margin: 0 auto; padding: 0 12px calc(76px + env(safe-area-inset-bottom)); }

/* chunky 16-bit panel edge */
.panel, .crew-banner, .level, .skill, .zh, .tips, .qr {
  background: var(--paper);
  box-shadow:
    0 calc(-1 * var(--edge)) 0 0 var(--ink), 0 var(--edge) 0 0 var(--ink),
    calc(-1 * var(--edge)) 0 0 0 var(--ink), var(--edge) 0 0 0 var(--ink),
    0 calc(var(--edge) + 6px) 0 0 rgba(20, 16, 42, .28);
}

/* ---------- crew banner ---------- */
.crew-banner {
  position: relative;
  margin: 20px 4px 22px;
  padding: 14px 14px 16px;
  display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center;
}
.ppc-logo { width: 112px; height: auto; }
/* board #305 (David, Nov 22 2026): on the homepage the crew sign-in banner is the very top, the big photo right under it */
.crew-banner.crew-top { margin-top: 12px; }
.home-photo { margin: 0 0 22px; }
.home-photo > img { display: block; margin: 0 auto; }
.crew-title { margin: 0 0 6px; font-family: var(--px); font-size: 15px; line-height: 1.5; letter-spacing: .5px; }
.crew-motto { margin: 0; font-size: 18px; }

/* ---------- layout ---------- */
.layout { display: block; }
.main { min-width: 0; }
.block-sec { margin: 0 4px 26px; }

/* sign = section heading, pixel font */
.sign {
  position: relative;
  margin: 8px 0 16px;
  padding: 12px 14px;
  background: var(--ink); color: #fff;
  box-shadow: 0 6px 0 0 rgba(20, 16, 42, .3);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
}
.sign-t { font-family: var(--px); font-size: 16px; line-height: 1.5; }
.sign-sub { font-size: 16px; color: #ffe27a; flex-basis: 100%; }
.sign .egg { position: absolute; right: 4px; top: 50%; margin-top: -24px; }
.sign:has(.egg) { padding-right: 60px; }
.sign .egg svg { width: 30px; }

/* ---------- levels ---------- */
.level { margin: 0 0 22px; }
.level-head {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 64px 12px 12px; min-height: 64px;
  color: #fff; border-bottom: var(--edge) solid var(--ink);
}
.level h3 { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 800; }
.level-name { display: block; font-family: var(--px); font-size: 15px; font-weight: 400; letter-spacing: .5px; margin-bottom: 6px; }
.level-sub { display: block; }
.level-green .level-head, .level-greenplus .level-head { background: var(--green); }
.level-white .level-head { background: #ffffff; color: var(--ink); }
.level-yellow .level-head { background: var(--yellow); color: var(--ink); }
.level-blue .level-head { background: var(--blue); }
.level-black .level-head { background: var(--black); }

.trail-badge { flex: none; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 3px solid var(--ink); font-family: var(--px); font-size: 14px; color: #fff; }
.trail-badge.circle { border-radius: 50%; }
.level-green .trail-badge, .level-greenplus .trail-badge { background: #2fb53a; border-color: #fff; }
.level-white .trail-badge { background: #fff; }
.level-yellow .trail-badge { background: var(--yellow); }
.level-blue .trail-badge { background: #4f8cff; border-color: #fff; }
.trail-badge.diamond { width: 26px; height: 26px; margin: 4px; background: #000; border-color: #fff; transform: rotate(45deg); }

ul.checks, ul.tagged, ul.tips, ul.phrase-list { list-style: none; margin: 0; padding: 0; }
ul.checks { padding: 8px 14px 12px; }
ul.checks li { position: relative; padding: 8px 0 8px 26px; border-bottom: 2px dotted #d9d2bd; }
ul.checks li:last-child { border-bottom: 0; }
ul.checks li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 12px; height: 12px; background: var(--ink); }
.level-green li::before, .level-greenplus li::before { background: var(--green); }
.level-yellow li::before { background: #c9a400; }
.level-blue li::before { background: var(--blue); }

/* ---------- skills ---------- */
.skill { position: relative; margin: 0 0 22px; padding: 12px 14px 8px; }
.skill h3 { margin: 0 56px 6px 0; font-family: var(--px); font-size: 14px; line-height: 1.6; font-weight: 400; }
ul.tagged li { padding: 9px 0; border-bottom: 2px dotted #d9d2bd; }
ul.tagged li:last-child { border-bottom: 0; }
.tag { display: inline-block; min-width: 0; margin-right: 6px; padding: 1px 8px 2px; background: var(--gold); color: var(--ink);
  box-shadow: inset 2px 2px 0 var(--gold-hi), inset -2px -2px 0 var(--gold-lo); font-weight: 800; }

/* ---------- Chinese phrases: tap-to-reveal ---------- */
.zh { padding: 0; }
.zh > summary {
  list-style: none; cursor: pointer;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  min-height: 64px; padding: 12px 14px;
  background: #c8102e; color: #fff;
}
.zh > summary::-webkit-details-marker { display: none; }
.zh-flag { font-size: 24px; font-weight: 800; }
.zh-label { font-family: var(--px); font-size: 13px; line-height: 1.6; }
.zh-count { font-family: var(--px); font-size: 11px; background: var(--gold); color: var(--ink); padding: 4px 6px; }
.zh-hint { margin-left: auto; font-size: 16px; text-decoration: underline; }
.zh .when-open { display: none; }
.zh[open] .when-open { display: inline; }
.zh[open] .when-closed { display: none; }
.zh-help { margin: 10px 14px 4px; font-size: 16px; }
ul.phrase-list { padding: 0 6px 8px; }
.phrase { display: grid; grid-template-columns: 1fr 1fr 48px; gap: 8px; align-items: center; min-height: 52px; padding: 4px 8px; }
.phrase:nth-child(even) { background: #f1ede0; }
.phrase .en { font-weight: 700; }
.phrase .ph { font-style: italic; }
.play, .play-spacer { width: 48px; height: 48px; }
.play { display: inline-flex; align-items: center; justify-content: center; }
.play svg { width: 40px; height: 40px; fill: #3D3132; }
.play .ico-pause { display: none; }
.play.is-playing .ico-play { display: none; }
.play.is-playing .ico-pause { display: block; }

/* ---------- side quest (phone: after main; wide: sticky sidebar) ---------- */
.side { margin: 0 4px 26px; }
.side-h { display: flex; align-items: center; gap: 12px; margin: 8px 0 14px; font-family: var(--px); font-size: 14px; font-weight: 400; color: var(--ink); }
ul.tips { padding: 6px 14px; }
.tip { padding: 10px 0; border-bottom: 2px dotted #d9d2bd; }
.tip:last-child { border-bottom: 0; }
.tip-k { display: inline-block; margin-right: 6px; font-family: var(--px); font-size: 10px; font-weight: 400; padding: 4px 6px; color: #fff; background: var(--blue); vertical-align: 2px; }
.tip-safety .tip-k { background: #c8102e; }
.tip-fun .tip-k, .tip-crew .tip-k { background: var(--green); }
.tip-learn .tip-k { background: var(--ink); }
.tip-gear .tip-k { background: #6b3fa0; }

/* ---------- decorations ---------- */
.skull-row { display: flex; justify-content: center; align-items: flex-end; gap: 18px; margin: 0 0 22px; }
.skull-row .ppc-px { width: 64px; height: auto; image-rendering: pixelated; }
.skull-row .mount { width: 84px; height: auto; }

.qr { position: relative; margin: 0 4px 26px; padding: 14px; text-align: center; }
.qr .gocenter img { width: 240px; }
.qr-cap { margin: 8px 0 0; }

.foot { position: relative; text-align: center; padding: 8px 4px 0; }
.foot .goright { font-family: var(--px); font-size: 14px; padding: 8px 4px; }
.egg-count { margin: 4px 0 10px; font-size: 16px; }
.ground { height: 28px; margin: 8px -12px 0;
  background: repeating-linear-gradient(90deg, #ffffff 0 16px, #dfeaf8 16px 32px);
  border-top: var(--edge) solid var(--ink); }

/* ---------- Easter eggs ---------- */
.egg { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; }
.egg svg { width: 32px; height: auto; }
.egg.found::after { content: ""; position: absolute; right: 2px; top: 2px; width: 8px; height: 8px; background: var(--gold); box-shadow: 0 0 0 2px var(--ink); }
.egg.pop { animation: pop .45s steps(4) 1; }
@keyframes pop { 0% { transform: translateY(0); } 40% { transform: translateY(-12px); } 100% { transform: translateY(0); } }
.egg-peek { position: absolute; right: -6px; top: -30px; }
.egg-peek .ppc-px { width: 48px; height: auto; image-rendering: pixelated; }
.egg-corner { position: absolute; right: 6px; top: 50%; margin-top: -24px; }
.skill .egg-corner { top: 6px; margin-top: 0; }
.egg-inline svg { width: 28px; }
.side-h .egg-inline svg { width: 56px; }
.egg-qblock { position: absolute; right: 8px; bottom: 8px; }
.egg-qblock svg { width: 30px; }
.egg-foot img { width: 72px; height: auto; }
.coin { position: fixed; z-index: 30; width: 24px; height: 24px; pointer-events: none; animation: coin .6s steps(6) forwards; }
@keyframes coin { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-60px); opacity: 0; } }

.toast {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40;
  transform: translate(-50%, 140%); max-width: calc(100vw - 24px);
  padding: 10px 14px; background: var(--ink); color: #fff; font-family: var(--px); font-size: 11px; line-height: 1.6;
  box-shadow: 0 0 0 3px var(--gold); pointer-events: none; transition: transform .2s steps(3);
  visibility: hidden; opacity: 0;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; opacity: 1; }

/* ---------- bigger screens: sidebar on the right, main scroll unchanged ---------- */
@media (min-width: 980px) {
  .crew-banner { grid-template-columns: 180px 1fr; }
  .ppc-logo { width: 180px; }
  .crew-title { font-size: 22px; }
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
  .side { position: sticky; top: 16px; }
  .levels { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
  .levels > div:first-child { grid-column: 1 / -1; }
  .level-black { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .egg.pop, .coin { animation: none; }
  .toast { transition: none; }
}

/* ---------- quick look: level x focus matrix, glanceable (board #71 "LMS matrix", #87) ---------- */
.quick { margin: 0 0 22px; padding: 12px 12px 8px; background: var(--paper);
  box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink), 0 10px 0 0 rgba(20,16,42,.28); }
.quick-h { margin: 0 0 8px; font-family: var(--px); font-size: 13px; }
.quick-foot { margin: 6px 0 0; font-size: 16px; }
ul.quick-list { list-style: none; margin: 0; padding: 0; }
.q { display: grid; grid-template-columns: 92px 1fr; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 2px dotted #d9d2bd; }
.q:last-child { border-bottom: 0; }
.q-lvl { font-family: var(--px); font-size: 10px; line-height: 1.4; padding: 8px 4px; text-align: center; color: #fff; border: 2px solid var(--ink); }
.q-green .q-lvl, .q-greenplus .q-lvl { background: var(--green); }
.q-white .q-lvl { background: #fff; color: var(--ink); }
.q-yellow .q-lvl { background: var(--yellow); color: var(--ink); }
.q-blue .q-lvl { background: var(--blue); }
.q-black .q-lvl { background: var(--black); }
.q-chips { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 16px; font-weight: 600; }
.q-chips > span { padding: 1px 6px; background: #eef3fb; border: 2px solid #c9d6ea; }
@media (min-width: 980px) { .levels > .quick { grid-column: 1 / -1; } }

/* ---------- game SFX (board #94): tap feedback + mute toggle ---------- */
.q, .level, .skill, .tip, .sign, .quick-h, .side-h, .crew-banner, .qr, .foot { cursor: pointer; }
.tap { animation: tap .18s steps(2) 1; }
@keyframes tap { 50% { transform: translateY(2px); } }
.mute-toggle {
  position: fixed; z-index: 45; right: calc(10px + env(safe-area-inset-right)); bottom: calc(10px + env(safe-area-inset-bottom));
  width: 56px; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--gold); color: var(--ink);
  box-shadow: 0 0 0 3px var(--ink), 0 6px 0 0 rgba(20, 16, 42, .35);
}
.mute-toggle .px { width: 26px; height: auto; }
.mute-t { font-family: var(--px); font-size: 8px; line-height: 1; }
.mute-toggle .ico-off, .mute-toggle .t-off { display: none; }
.mute-toggle.is-muted { background: #d9d2bd; }
.mute-toggle.is-muted .ico-off { display: block; }
.mute-toggle.is-muted .t-off { display: inline; }
.mute-toggle.is-muted .ico-on, .mute-toggle.is-muted .t-on { display: none; }
.mute-toggle:active { transform: translateY(3px); }
@media (prefers-reduced-motion: reduce) { .tap { animation: none; } }

/* ---------- crew sign-in (board #100): banner = login, Gear page ---------- */
.crew-hint { margin: 8px 0 0; font-family: var(--px); font-size: 10px; line-height: 1.6; color: #6b3fa0; overflow-wrap: anywhere; }
.crew-hint[hidden] { display: none; }
.crew-banner.crew-can:focus-visible { outline: 3px dashed var(--ink); outline-offset: 6px; }
.crew-banner.crew-on { background: linear-gradient(#fff0a0, #f8c030); }
.crew-banner.crew-on .crew-hint { color: var(--ink); }
.crew-banner.crew-on .crew-hint::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: var(--green); box-shadow: 0 0 0 2px var(--ink); vertical-align: 0; }

.crew-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 14px;
  font-family: var(--px); font-size: 11px; line-height: 1.4; color: #fff; background: var(--ink); text-decoration: none;
  box-shadow: 0 0 0 3px var(--ink), 0 5px 0 0 rgba(20, 16, 42, .35); }
.crew-btn:active { transform: translateY(3px); }
.crew-btn-out { background: #c8102e; }
/* Board #260: Cancel/secondary is never the bright button. */
.crew-btn-sec { background: var(--paper); color: var(--ink); }
.crew-btn[hidden] { display: none; }
.crew-link { color: #fff; }

.crew-pop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 16, 42, .6); }
.crew-pop[hidden] { display: none; }
.crew-pop-box { width: 100%; max-width: 360px; padding: 16px; background: var(--paper); text-align: center;
  box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink), 0 10px 0 0 rgba(20,16,42,.35); }
.crew-pop-h { margin: 0 0 10px; font-family: var(--px); font-size: 14px; }
.crew-pop-t { margin: 0 0 14px; font-size: 16px; }
.crew-gis { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-height: 48px; }
.crew-test-email { width: 100%; min-height: 44px; font: inherit; padding: 6px 8px; border: 3px solid var(--ink); }
.crew-pop-msg { min-height: 1.4em; margin: 10px 0; font-size: 16px; }
.crew-join-code { margin: 0 0 12px; text-align: left; }
.crew-join-code[hidden] { display: none; }
.crew-join-code .join-field { margin: 0 0 10px; }
.crew-join-code .crew-btn { width: 100%; }

.gear-page { background: linear-gradient(#6b3fa0 0 220px, #9a6ad0 220px 420px, #cdb8ec 420px 700px, var(--snow) 700px); background-color: var(--snow); }
.gear-head { margin: 20px 4px 22px; }
.gear-head .sign { margin-bottom: 14px; }
.gear-rack { display: flex; justify-content: center; align-items: flex-end; gap: 3%; max-width: 420px; margin: 0 auto; }
.gear-rack .px { height: auto; }
.gear-rack .g-hat { width: 18%; } .gear-rack .g-gog { width: 21%; } .gear-rack .g-board { width: 40%; } .gear-rack .g-boot { width: 12%; }
/* board #307: the gear icons' 20 animations. The icon keeps its slot; a copy flies in the #298 overlay (pointer-events: none). */
.gear-rack.gfx-live .px { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gfx-box { position: fixed; pointer-events: none; transform-origin: 50% 50%; will-change: transform; }
.gfx-box .gfx-art { display: block; overflow: visible; }
.gfx-box > div { position: absolute; pointer-events: none; }
.gfx-pom { border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #1a1030; }
.gfx-flame { background: linear-gradient(#fde047, #f97316 45%, rgba(239, 68, 68, 0)); clip-path: polygon(0 0, 100% 0, 70% 100%, 30% 100%); }
.gfx-flame-wide { clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%); }
.gfx-yarn { background: repeating-linear-gradient(90deg, #c8102e 0 6px, #fff 6px 9px); transform-origin: 50% 50%; }
.gfx-laser { background: #ff2040; box-shadow: 0 0 8px 2px rgba(255, 32, 64, .8); }
.gfx-spark { width: 8px; height: 8px; transform-origin: 0 0; }
.gfx-ring { border: 3px solid; border-radius: 50%; }
.gfx-wave { background: repeating-linear-gradient(90deg, #38bdf8 0 12px, #0ea5e9 12px 24px); clip-path: polygon(0 40%, 8% 15%, 16% 40%, 24% 15%, 32% 40%, 40% 15%, 48% 40%, 56% 15%, 64% 40%, 72% 15%, 80% 40%, 88% 15%, 96% 40%, 100% 30%, 100% 100%, 0 100%); }
.gfx-morph { display: flex; align-items: flex-end; justify-content: center; }
.gfx-animal { width: 100%; height: 100%; image-rendering: pixelated; }
.gear-main { margin: 0 4px; }
.gear-main .panel { margin: 0 0 26px; padding: 14px; }
.gear-wait { font-family: var(--px); font-size: 12px; color: #fff; }
.gear-h { margin: 0 0 10px; font-family: var(--px); font-size: 13px; }
.gear-note { margin: 8px 0 0; font-size: 16px; }
.rider-row { display: flex; align-items: center; gap: 12px; }
.rider-pic-btn { position: relative; padding: 0; border: 0; background: none; cursor: pointer; width: 72px; height: 72px; flex: none; }
.rider-pic-btn:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; }
.rider-pic-none { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; box-shadow: 0 0 0 3px var(--ink);
  font: 700 11px/1.1 system-ui, sans-serif; color: var(--ink); background: #fff; }
.rider-pic-none[hidden] { display: none; }
.rider-pic { width: 72px; height: 72px; image-rendering: auto; box-shadow: 0 0 0 3px var(--ink); }
.rider-txt { min-width: 0; }
.rider-name { margin: 0 0 4px; font-weight: 700; font-size: 20px; overflow-wrap: anywhere; }
.rider-email { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.sup-badge { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px; background: var(--ink); color: var(--gold); }
.sup-badge[hidden] { display: none; }
.sup-skull { width: 64px; height: auto; image-rendering: pixelated; }
.sup-label { font-family: var(--px); font-size: 14px; letter-spacing: 1px; }
/* SFX joystick switch (board #100): a little arcade stick that flips left (OFF) / right (ON) */
.joy { display: flex; align-items: flex-end; justify-content: center; gap: 10px; width: 100%; max-width: 260px; margin: 0 auto; padding: 10px 12px 12px;
  border: 0; background: var(--ink); color: #fff; cursor: pointer; font-family: var(--px); font-size: 12px;
  box-shadow: 0 0 0 3px var(--ink), inset 0 -6px 0 0 #2c2450, 0 6px 0 0 rgba(20, 16, 42, .35); -webkit-tap-highlight-color: transparent; }
.joy:focus-visible { outline: 3px dashed var(--gold); outline-offset: 5px; }
.joy-side { padding: 6px 4px; min-width: 40px; text-align: center; color: #6c6488; transition: color .15s steps(2); }
.joy[aria-checked="false"] .joy-off { color: #ff6a5a; }
.joy[aria-checked="true"] .joy-on { color: #58e070; }
.joy-base { position: relative; flex: 0 0 auto; width: 96px; height: 84px; }
.joy-plate { position: absolute; left: 8px; right: 8px; bottom: 0; height: 18px; background: #3a3a4a;
  box-shadow: inset 0 4px 0 0 #5a5a70, inset 0 -4px 0 0 #22222e, 0 0 0 3px #000; }
.joy-plate::after { content: ""; position: absolute; left: 50%; top: -6px; width: 28px; height: 10px; margin-left: -14px; background: #111; box-shadow: 0 0 0 2px #000; }
.joy-stick { position: absolute; left: 50%; bottom: 10px; width: 36px; height: 72px; margin-left: -18px; transform-origin: 50% 100%;
  transform: rotate(28deg); transition: transform .18s steps(3); }
.joy-shaft { position: absolute; left: 14px; bottom: 0; width: 8px; height: 44px; background: #c8c8d8; box-shadow: inset -3px 0 0 #8a8aa0, 0 0 0 2px #000; }
.joy-ball { position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: #c8102e;
  box-shadow: inset -6px -6px 0 0 #8a0a1e, inset 6px 6px 0 0 #ff6a5a, 0 0 0 3px #000; }
.joy[aria-checked="false"] .joy-stick { transform: rotate(-28deg); }
.joy[aria-checked="false"] .joy-ball { background: #8a8270; box-shadow: inset -6px -6px 0 0 #5e584a, inset 6px 6px 0 0 #b8b0a0, 0 0 0 3px #000; }
.joy:active .joy-plate { transform: translateY(2px); }
.joy-state { margin: 12px 0 0; text-align: center; font-family: var(--px); font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .joy-stick, .joy-side { transition: none; } }
@media (max-width: 340px) { .joy { gap: 6px; padding: 8px 8px 10px; } .joy-side { min-width: 34px; font-size: 11px; } .joy-base { width: 84px; } }
.gear-bio textarea, .gear-bio .bio-edit-text { display: block; width: 100%; min-height: 110px; padding: 10px; font: inherit; font-size: 18px; color: var(--ink); background: #fff;
  border: 0; box-shadow: inset 0 0 0 3px var(--ink); resize: vertical; }
.bio-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.bio-count { font-family: var(--px); font-size: 10px; }
.admin-links { display: flex; gap: 12px; flex-wrap: wrap; }
.gear-exit p { margin: 0 0 14px; }
.gear-exit p:last-child { margin: 0; }
.privacy-page { background: linear-gradient(#2f6fe0 0 260px, #6aa8f0 260px 560px, var(--snow) 560px); background-color: var(--snow); }
.privacy-page .panel p:not(.gear-h) { margin: 0 0 10px; font-size: 17px; line-height: 1.5; }
.privacy-page .panel p:last-child { margin-bottom: 0; }
.foot-links { margin: 0 0 14px; text-align: center; font-family: var(--px); font-size: 11px; }
.foot-links a { color: var(--ink); }
.crew-pop-t a { color: inherit; }

/* Crew sign-ups list (supervisors, board #100): one card per person; .crew-stats grows as more stats are added */
.crew-page .gear-main { max-width: 720px; margin: 0 auto; padding: 0 4px; }
.crew-count { font-family: var(--px); font-size: 11px; color: #fff; margin: 0 0 14px; }
.crew-list { list-style: none; margin: 0; padding: 0; }
.crew-card { margin: 0 0 22px; padding: 12px; }
.cc-top { display: flex; align-items: center; gap: 12px; }
.cc-pic { flex: 0 0 auto; width: 56px; height: 56px; box-shadow: 0 0 0 3px var(--ink); background: #cdb8ec; }
.cc-pic.cc-none { display: flex; align-items: center; justify-content: center; font-family: var(--px); font-size: 18px; color: var(--ink); }
.cc-who { min-width: 0; }
.cc-name { margin: 0 0 2px; font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
.cc-email { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.cc-sup, .cc-badge { display: inline-block; margin: 4px 0 0; padding: 3px 6px; background: var(--ink); color: var(--gold); font-family: var(--px); font-size: 9px; }
.cc-bio { margin: 10px 0 0; padding: 8px 10px; background: #fff; box-shadow: inset 0 0 0 2px var(--ink); font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cc-bio.cc-empty { color: #6c6488; font-style: italic; }
.crew-stats { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 10px 0 0; font-size: 15px; }
.crew-stats dt { font-family: var(--px); font-size: 9px; line-height: 1.9; }
.crew-stats dd { margin: 0; overflow-wrap: anywhere; }

/* QR invites + join page + admissions switch (SayNo epic #118) */
.crew-pk { margin-top: 14px; }
.crew-pk[hidden], .join-google[hidden] { display: none; }
.crew-pop-or { margin: 0 0 8px; font-family: var(--px); font-size: 10px; }
.crew-btn:disabled { background: #6c6488; box-shadow: 0 0 0 3px #6c6488; cursor: not-allowed; transform: none; }
.inv-closed { margin: 0 0 12px; padding: 10px; background: #c8102e; color: #fff; font-weight: 700; font-size: 16px; box-shadow: 0 0 0 3px var(--ink); }
.inv-closed[hidden] { display: none; }
.admit-switch:focus-visible { outline: 3px dashed var(--gold-lo); outline-offset: 4px; }
.inv-roles { display: flex; flex-direction: column; gap: 12px; }
.inv-make { width: 100%; min-height: 56px; font-size: 13px; background: var(--green); }
.inv-list-h { margin-top: 22px; font-size: 10px; }
.inv-list { list-style: none; margin: 0; padding: 0; }
.inv-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 0; border-top: 2px dashed #cdb8ec; font-size: 15px; }
.inv-role { font-family: var(--px); font-size: 10px; }
.inv-st { grid-column: 1; font-weight: 700; overflow-wrap: anywhere; }
.inv-by { grid-column: 1; color: #4a4466; font-size: 14px; }
.inv-revoke { grid-column: 2; grid-row: 1 / span 3; min-height: 44px; font-size: 9px; padding: 8px 10px; }
.inv-open .inv-st { color: var(--green); }
.inv-used .inv-st { color: var(--blue); }
.inv-expired .inv-st, .inv-revoked .inv-st { color: #6c6488; }
.inv-empty { color: #6c6488; font-style: italic; }
.qr-full { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); background: #fff; text-align: center; }
.qr-full[hidden] { display: none; }
.qr-full-h { margin: 0; font-family: var(--px); font-size: 16px; }
.qr-full-img { display: block; width: min(92vw, 70vh, 520px); height: auto; aspect-ratio: 1; image-rendering: pixelated; }
.qr-full-cd { margin: 0; font-family: var(--px); font-size: 14px; color: #c8102e; }
.qr-full-cd.is-expired { font-size: 12px; }
.qr-full-img.is-expired { opacity: .15; }
.qr-full-t { margin: 0; max-width: 520px; font-family: var(--px); font-size: 10px; line-height: 1.7; }
body.qr-open { overflow: hidden; }
.admit-switch { position: relative; display: block; width: 120px; height: 52px; margin: 4px auto 0; padding: 0; border: 0; cursor: pointer; background: #8a8270;
  box-shadow: 0 0 0 3px var(--ink), inset 0 -6px 0 0 rgba(0,0,0,.25); -webkit-tap-highlight-color: transparent; }
.admit-switch[aria-checked="true"] { background: var(--green); }
.admit-knob { position: absolute; top: 6px; left: 6px; width: 40px; height: 34px; background: #fff; box-shadow: 0 0 0 3px var(--ink); transition: left .15s steps(3); }
.admit-switch[aria-checked="true"] .admit-knob { left: 74px; }
@media (prefers-reduced-motion: reduce) { .admit-knob { transition: none; } }
.join-field { margin: 0 0 14px; }
.join-field label { display: block; font-size: 10px; margin-bottom: 6px; }
.join-field input { display: block; width: 100%; min-height: 48px; padding: 8px 10px; font: inherit; font-size: 18px; color: var(--ink); background: #fff;
  border: 0; box-shadow: inset 0 0 0 3px var(--ink); }
.join-go { width: 100%; min-height: 56px; font-size: 12px; background: var(--green); }
.join-google { margin-top: 18px; text-align: center; }
.join-msg { text-align: center; font-weight: 700; }
.cc-role { margin-left: 4px; background: var(--green); color: #fff; }
.cc-via { margin-left: 4px; background: var(--blue); color: #fff; }


/* Instructor passport + My Crew stamping (board #170). Phone first: 320px wide, gloved taps, no sideways scroll.
   TODO(board #170, David): finishing every stamp should change the color of part of the passport.
   .pp-page[data-page-full="1"] is set when a page is full. Leave it paper-colored until David has seen the book. */
.passport-page {
  background: linear-gradient(#1c2c4a 0 280px, #35527f 280px 640px, #9ccff8 640px 920px, var(--snow) 920px);
  background-color: var(--snow);
}
.pp-cover {
  margin: 0 0 16px;
  padding: 20px 16px 16px;
  text-align: center;
  color: #f8e7b0;
  background: linear-gradient(165deg, #9a3050 0%, #6e1c33 46%, #4a1224 100%);
  box-shadow: inset 0 0 0 3px #e6c56a, inset 0 0 0 7px #6e1c33, inset 0 0 0 9px #e6c56a, 0 8px 0 rgba(20, 16, 42, .28);
}
.pp-crest { width: 72px; height: auto; image-rendering: pixelated; }
.pp-kicker { margin: 0; font-family: var(--px); font-size: 13px; line-height: 1.7; color: #f8e7b0; letter-spacing: .5px; }
.pp-kicker-2 { margin-bottom: 4px; }
.pp-name { margin: 8px 0 0; font-size: 26px; line-height: 1.15; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.pp-meta { margin: 8px 0 0; font-size: 16px; line-height: 1.35; color: #f8e7b0; overflow-wrap: anywhere; }
.pp-count { margin: 14px 0 2px; font-family: var(--px); font-size: 12px; line-height: 1.6; color: var(--gold); }
.pp-page {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  margin: 0 0 16px;
  background: var(--paper);
  box-shadow:
    0 calc(-1 * var(--edge)) 0 0 var(--ink), 0 var(--edge) 0 0 var(--ink),
    calc(-1 * var(--edge)) 0 0 0 var(--ink), var(--edge) 0 0 0 var(--ink),
    0 calc(var(--edge) + 6px) 0 0 rgba(20, 16, 42, .28);
}
.pp-gutter {
  background: repeating-linear-gradient(#e6c56a 0 2px, transparent 2px 10px), #6e1c33;
}
.pp-body { min-width: 0; padding: 12px 12px 6px; }
.pp-page-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 4px; }
.pp-page-t { margin: 0; flex: 1; min-width: 0; font-family: var(--px); font-size: 11px; line-height: 1.5; font-weight: 400; overflow-wrap: anywhere; }
.pp-page-n { margin: 0; flex: none; font-family: var(--px); font-size: 9px; color: #6c6488; }
.pp-skill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-top: 2px dotted #d9d2bd;
}
.pp-skill-name { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.pp-blurb { margin: 3px 0 0; font-size: 14px; line-height: 1.35; color: #3c3658; }
.pp-who { margin: 6px 0 0; font-size: 14px; font-weight: 800; }
.pp-note { margin: 2px 0 0; font-size: 15px; line-height: 1.35; font-style: italic; overflow-wrap: anywhere; }
.pp-mark { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pp-well {
  width: 68px; height: 68px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.pp-well.is-open {
  border: 3px dashed #c4bba6; color: #8a8270;
  font-family: var(--px); font-size: 8px; letter-spacing: .4px;
}
.pp-well.is-ink {
  font-family: var(--px); font-size: 13px; line-height: 1.2; color: var(--stamp, #1d57c4);
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--stamp, #1d57c4), inset 0 0 0 5px var(--paper), inset 0 0 0 7px var(--stamp, #1d57c4);
  transform: rotate(-8deg);
}
.pp-skill:nth-child(even) .pp-well.is-ink { transform: rotate(7deg); }
.pp-when { margin: 0; font-size: 11px; font-weight: 700; color: #4a4466; text-align: center; }
.pp-hold { margin: 0 0 16px; }
.mc-field { display: grid; gap: 4px; margin: 0 0 12px; min-width: 0; font-family: var(--px); font-size: 9px; line-height: 1.6; }
.mc-field input, .mc-field select {
  width: 100%; max-width: 100%; min-width: 0; min-height: 48px; padding: 8px 10px;
  font-family: var(--body); font-size: 16px; color: var(--ink); background: #fff;
  border: 0; box-shadow: inset 0 0 0 3px var(--ink);
}
.mc-field input:focus-visible, .mc-field select:focus-visible,
.cc-check:focus-visible { outline: 3px dashed var(--gold-lo); outline-offset: 3px; }
.mc-go { width: 100%; min-height: 56px; background: var(--green); }
.pp-msg, .mc-msg { min-height: 1.3em; margin: 8px 0 0; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.cc-stamps { margin: 10px 0 0; font-family: var(--px); font-size: 9px; line-height: 1.6; color: #6e1c33; }
.cc-actions { display: flex; align-items: stretch; gap: 8px; margin-top: 10px; }
.cc-pick { display: flex; align-items: center; gap: 8px; min-height: 48px; margin: 0; font-family: var(--px); font-size: 8px; }
.cc-check { width: 22px; height: 22px; margin: 0; accent-color: #6e1c33; flex: none; }
.cc-actions .pp-open { flex: 1; min-width: 0; }
.mc-tools { display: flex; gap: 8px; margin: 0 0 14px; }
.mc-tools .crew-btn { flex: 1 1 0; min-width: 0; font-size: 9px; }
/* in normal flow (David 2026-11-04 4:41 PM ET: it must not drag around or float) */
.mc-dock[hidden] { display: none; }
.mc-dock {
  position: static;
  margin-top: 8px;
  padding: 12px;
  background: var(--ink); color: #fff;
  box-shadow: 0 -4px 0 #e6c56a;
}
.mc-h { margin: 0; font-family: var(--px); font-size: 12px; line-height: 1.5; color: var(--gold); }
.mc-n { margin: 6px 0 10px; font-size: 16px; }
.mc-field { color: #f8e7b0; }
@media (max-width: 360px) {
  .pp-name { font-size: 22px; }
  .pp-skill { grid-template-columns: minmax(0, 1fr) 64px; }
  .pp-well { width: 60px; height: 60px; }
  .pp-kicker { font-size: 11px; }
}

/* Rank badges + account management (board #170). Rank colors are never written here: they come from the server
   (Roles.Ladder via /api/ranks, auth/me, crew/groups) and are set inline. */
.cc-off { margin-left: 4px; background: #5c5670; color: #f2efe8; }  /* board #260: muted DISABLED tag */
.cc-me { margin-left: 4px; background: var(--gold); color: var(--ink); }
.crew-card.is-off { opacity: .72; filter: grayscale(.35); }
.crew-card.is-off .cc-name { color: #6c6488; }
.pp-rank { display: inline-block; margin: 10px 0 0; padding: 5px 8px; font-family: var(--px); font-size: 11px; line-height: 1.4; }
.mm-dock { position: static; margin-top: 16px; }
.mm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mm-grid .crew-btn { min-height: 52px; min-width: 0; font-size: 9px; }
.mm-del, .mm-del-group { grid-column: 1 / -1; background: #c8102e; }
/* board #260: both delete buttons are hold-to-confirm (2 s). Fill is JS-driven (--hold 0–1),
   left to right, same idea as the mass-passport / stamp holds. Releasing early cancels. */
.mm-del, .mm-del-group { position: relative; overflow: hidden; isolation: isolate; touch-action: none;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.mm-del:active, .mm-del-group:active { transform: none; } /* a 3px jump would cancel a hold at the edge */
.mm-del-fill { position: absolute; left: 0; top: 0; bottom: 0; z-index: 0; pointer-events: none;
  width: calc(var(--hold, 0) * 100%); background: rgba(255, 248, 224, .42); }
.mm-del-label { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 6px; max-width: 100%; }
.mm-del-whos { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.mm-del .cw-selrow-p, .mm-del-gname, .mm-del-more { pointer-events: none; }
.mm-del-gname { display: inline-block; max-width: 14em; padding: 2px 8px; background: var(--gold); color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink); font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-del-more { font-family: var(--px); font-size: 9px; color: #fff; }

/* board #273: every delete is one pirate press-and-hold (js/plank.js). Full width, >= 56 px, set apart from the other
   buttons; the fill is a fuse burning toward the powder keg; boom = cannon shake; a quick tap wobbles + shows the hint. */
.crew-btn.plank, .cw-btns .crew-btn.plank, .mm-grid .crew-btn.plank { position: relative; overflow: hidden; isolation: isolate; grid-column: 1 / -1; flex: 1 1 100%; width: 100%;
  min-height: 56px; margin-top: 14px; background: #7a1010; color: #fff; touch-action: none;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.crew-btn.plank:active { transform: none; }
.plank .plank-fuse { background: linear-gradient(90deg, #5a0c0c 0%, #c8102e 55%, #ff7a1a 92%, #ffd23f 100%); }
.plank .plank-fuse::after { content: ''; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%; background: radial-gradient(circle, #fff 0 25%, #ffd23f 40%, rgba(255, 122, 26, 0) 70%); opacity: 0; }
.plank.charging .plank-fuse::after { opacity: 1; animation: plank-spark .12s steps(2) infinite; }
.plank-keg { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); z-index: 1; font-size: 20px; line-height: 1; pointer-events: none; }
.plank .mm-del-label { padding: 0 30px; }
.plank-hint { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; background: #14102a;
  color: var(--gold); font-family: var(--px); font-size: 10px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.plank.hinting .plank-hint { opacity: 1; transition: none; }
.plank.wobble { animation: plank-wobble .45s ease-in-out; }
.plank.boom { animation: plank-boom .6s cubic-bezier(.36,.07,.19,.97); }
.plank.boom .plank-keg { animation: plank-keg .6s ease-out; }
@keyframes plank-spark { 50% { transform: scale(1.35); } }
@keyframes plank-wobble { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-2.5deg); } 40% { transform: rotate(2.5deg); } 60% { transform: rotate(-1.5deg); } 80% { transform: rotate(1deg); } }
@keyframes plank-boom { 0%, 100% { transform: translate(0, 0); } 10% { transform: translate(-6px, 2px); } 25% { transform: translate(6px, -3px); }
  40% { transform: translate(-4px, 3px); } 55% { transform: translate(4px, -1px); } 70% { transform: translate(-2px, 1px); } 85% { transform: translate(1px, 0); } }
@keyframes plank-keg { 0% { transform: translateY(-50%) scale(1); } 30% { transform: translateY(-50%) scale(2.2); filter: brightness(2); } 100% { transform: translateY(-50%) scale(1); } }
@media (prefers-reduced-motion: reduce) { .plank.wobble, .plank.boom, .plank.boom .plank-keg, .plank.charging .plank-fuse::after { animation: none; } }
.plank-toast { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60;
  width: min(92vw, 440px); display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #14102a; color: #fff;
  box-shadow: 0 0 0 3px var(--gold), 0 6px 18px rgba(0,0,0,.45); }
.plank-toast[hidden] { display: none; }
.plank-toast-t { flex: 1 1 auto; margin: 0; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.plank-toast .plank-undo { flex: 0 0 auto; min-height: 48px; padding: 6px 10px; font-size: 9px; background: var(--gold); color: var(--ink); }
.plank-toast .plank-undo[hidden] { display: none; }

/* Press and hold to stamp (board #170, David 2026-11-04): green fills left to right to the circle; red takes a stamp back. */
.pp-skill { position: relative; }
.pp-skill > .pp-skill-t, .pp-skill > .pp-mark { position: relative; z-index: 1; }
.pp-fill {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 0; width: 0;
  transform: scaleX(0); transform-origin: left center; pointer-events: none;
}
.pp-fill.is-green { background: linear-gradient(90deg, rgba(24, 128, 58, .18), rgba(24, 128, 58, .42)); box-shadow: inset -4px 0 0 #18803a; }
.pp-fill.is-red { background: linear-gradient(90deg, rgba(200, 16, 46, .16), rgba(200, 16, 46, .4)); box-shadow: inset -4px 0 0 #c8102e; }
.pp-well.is-hold {
  cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.pp-well.is-hold:focus-visible { outline: 3px dashed var(--gold-lo); outline-offset: 3px; }
.pp-well.is-open.is-hold { background: var(--paper, #fffaf0); }
.pp-skill[data-hold="grant"][data-hold-state="holding"] .pp-well.is-open { border-color: #18803a; color: #18803a; }
.pp-skill[data-hold="revoke"][data-hold-state="holding"] .pp-well { color: #c8102e; box-shadow: inset 0 0 0 2px #c8102e, inset 0 0 0 5px var(--paper), inset 0 0 0 7px #c8102e; }
.pp-well.is-landing { animation: pp-land .55s ease-out; }
.pp-well.is-landing-red { animation: pp-land-red .55s ease-out; }
@keyframes pp-land {
  0% { transform: scale(1.35) rotate(-8deg); box-shadow: 0 0 0 0 rgba(24, 128, 58, .7); background: #18803a; color: #fff; }
  45% { transform: scale(.92) rotate(-8deg); box-shadow: 0 0 0 14px rgba(24, 128, 58, 0); background: #18803a; color: #fff; }
  100% { transform: scale(1) rotate(-8deg); }
}
@keyframes pp-land-red {
  0% { transform: scale(1.3); box-shadow: 0 0 0 0 rgba(200, 16, 46, .7); background: #c8102e; color: #fff; }
  45% { transform: scale(.9); box-shadow: 0 0 0 14px rgba(200, 16, 46, 0); background: #c8102e; color: #fff; }
  100% { transform: scale(1); }
}
.pp-hold-hint { margin: 0 0 12px; font-size: 15px; line-height: 1.35; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .pp-well.is-landing, .pp-well.is-landing-red { animation-duration: .01s; } }

/* Rank bar (board #170, David 2026-11-04 3:52/3:53 PM ET): a thin bar fixed at the top of every signed-in page.
   Colors come from the server (Roles.BarColors). js/rank-banner.js pads the body by the bar's height so it never covers content. */
.rank-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: env(safe-area-inset-top) calc(8px + env(safe-area-inset-right)) 0 calc(8px + env(safe-area-inset-left));
  display: flex; gap: 8px; font: 700 12px/24px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: .3px;
  white-space: nowrap; box-shadow: 0 1px 0 rgba(20, 16, 42, .28);
}
/* board #301: the whole bar (every rank color) is one link to this host's homepage */
a.rank-bar { color: inherit; text-decoration: none; cursor: pointer; }
.rank-me { flex: 1 1 auto; min-width: 0; display: flex; }
.rank-name { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rank-is, .rank-brand { flex: none; }
.has-rank-bar .side { top: calc(16px + var(--rank-bar-h, 0px)); }

/* Tabs: Gear | Passport | Crew (board #170; sticky under the rank bar in #205, David 2026-11-05).
   sticky top = the rank bar's height so they ride under the fixed banner while you scroll. */
.tabs {
  display: flex; gap: 6px; margin: 10px 4px 0; padding: 6px 4px; list-style: none;
  position: sticky; top: var(--rank-bar-h, 0px); z-index: 40;
  background: var(--sky1); box-shadow: 0 2px 0 rgba(20, 16, 42, .18);
  overflow-anchor: none; /* keep gear slot tiles from jumping when a reel opens under sticky tabs */
}
.tabs a {
  flex: 1 1 0; min-width: 0; min-height: 44px; display: flex; align-items: center; justify-content: center;
  font-family: var(--px); font-size: 10px; line-height: 1.3; color: var(--ink); text-decoration: none;
  background: var(--paper); box-shadow: inset 0 0 0 3px var(--ink);
}
.tabs a[aria-current="page"] { background: var(--ink); color: var(--gold); box-shadow: inset 0 0 0 3px var(--ink), 0 4px 0 var(--gold-lo); }
.tabs a:focus-visible { outline: 3px dashed var(--gold-lo); outline-offset: 2px; }

/* Stamp All / Remove All Stamps (board #205) */
.pp-book-all { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.pp-book-btn { position: relative; overflow: hidden; min-height: 44px; touch-action: none; -webkit-user-select: none; user-select: none; }
.pp-book-btn-red { background: #c8102e; }
.pp-book-btn .pp-book-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transform-origin: left center; transform: scaleX(0);
  background: rgba(255, 255, 255, .35); pointer-events: none;
}
.pp-book-btn.is-holding .pp-book-fill { transition: transform linear; }
.pp-confirm {
  width: min(92vw, 360px); padding: 16px; border: 0; color: var(--ink); background: var(--paper);
  box-shadow: 0 0 0 4px var(--ink), 0 8px 0 rgba(20, 16, 42, .35);
}
.pp-confirm::backdrop { background: rgba(20, 16, 42, .55); }
.pp-confirm-h { margin: 0 0 8px; font-weight: 700; font-size: 16px; line-height: 1.35; }
.pp-confirm-count { margin: 0 0 14px; font-size: 15px; font-weight: 700; }
/* Board #260 (David 2:08 PM ET): Cancel/secondary left, Save/primary right, in every dialog. */
.dlg-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.dlg-btns .crew-btn { flex: 1 1 auto; min-height: 44px; }
.dlg-confirm { padding: 16px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); width: min(380px, calc(100vw - 16px)); box-sizing: border-box; }
.dlg-confirm::backdrop { background: rgba(20, 16, 42, .55); }
.dlg-confirm-h { margin: 0 0 8px; font-weight: 700; font-size: 16px; line-height: 1.35; }
.dlg-confirm-t { margin: 0 0 14px; font-size: 15px; }
.pp-confirm-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-confirm-btns .crew-btn { flex: 1 1 auto; min-height: 44px; }

/* Crew page (board #170): crews = groups of people. Dense chips, tap to select, act from one row. */
.cw-tools { display: flex; gap: 8px; margin: 0 0 10px; }
.cw-search { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 6px 10px; font: 16px var(--body); color: var(--ink);
  background: #fff; border: 0; box-shadow: inset 0 0 0 3px var(--ink); }
.cw-search:focus-visible { outline: 3px dashed var(--gold-lo); outline-offset: 2px; }
.cw-tools .crew-btn, .mc-tools .crew-btn { min-height: 44px; padding: 6px 10px; font-size: 9px; }
.cw-act-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cw-msg { min-height: 1.3em; margin: 0 0 10px; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.cw-group { margin: 0 0 14px; padding: 10px; }
.cw-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0 0 8px; }
.cw-name { margin: 0; font-family: var(--px); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.cw-count { font-family: var(--px); font-size: 9px; color: #4a4466; }
.cw-mine-tag { margin: 0; padding: 2px 6px; font-size: 9px; letter-spacing: 1px; color: #fff; background: #2e7d32; }
.cw-crew.cw-mine { outline: 3px solid #2e7d32; }
.cw-by { flex: 1 0 100%; margin: 0; font-size: 13px; color: #4a4466; }
.cw-btns { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.cw-btns .crew-btn { flex: 1 1 auto; min-height: 40px; padding: 6px 10px; font-size: 8px; }
.cw-btns .cw-del { background: #7a1010; }
.cw-ro { margin: 6px 0 0; font-size: 13px; color: #4a4466; }
.cw-pile { background: #eef3ff; }
.cw-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.cw-empty { margin: 0; font-size: 14px; color: #4a4466; }
.cw-chip { position: relative; display: flex; align-items: center; max-width: 100%; min-height: 40px;
  background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.cw-chip label { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 40px; padding: 3px 4px 3px 4px; cursor: pointer; }
.cw-chip .cc-check { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cw-chip .cc-pic { width: 30px; height: 30px; flex: none; object-fit: cover; }
.cw-chip .cc-none { display: inline-flex; align-items: center; justify-content: center; font-family: var(--px); font-size: 11px; background: #d8d2ee; }
.cw-chip .cc-name { min-width: 0; max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 700; }
.cw-chip .cc-dot { width: 12px; height: 12px; flex: none; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink); }
.cw-chip .cc-me, .cw-chip .cc-off { margin: 0; padding: 2px 3px; font-family: var(--px); font-size: 7px; }
/* board #280: another Admin, as only an Admin sees them: red */
.cw-chip .cc-admin { margin: 0; padding: 2px 3px; font-family: var(--px); font-size: 7px; background: #c8102e; color: #fff; }
.cw-chip:has(.cc-admin) .cc-name { color: #c8102e; }
.cw-chip.is-picked { background: var(--gold); box-shadow: inset 0 0 0 3px var(--ink), 0 3px 0 var(--gold-lo); }
.cw-chip:focus-within { outline: 3px dashed var(--gold-lo); outline-offset: 2px; }
.cw-chip.is-off { opacity: .78; }
.cw-chip.is-off .cc-pic, .cw-chip.is-off .cc-none { filter: grayscale(.45); }
.cw-chip.is-off .cc-name { color: #6c6488; }
.cw-chip .cc-info { flex: none; width: 32px; min-height: 40px; padding: 0; font: 700 14px/1 var(--body); color: var(--ink);
  background: transparent; border: 0; border-left: 2px solid var(--ink); cursor: pointer; }
.cw-chip .cc-info:focus-visible { outline: 3px dashed var(--gold-lo); outline-offset: -3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cw-info { width: min(92vw, 420px); padding: 14px; color: var(--ink); background: var(--paper); border: 0; box-shadow: 0 0 0 4px var(--ink), 0 8px 0 rgba(20, 16, 42, .35); }
.cw-info::backdrop { background: rgba(20, 16, 42, .55); }
.cw-info .cc-bio { margin: 8px 0; font-size: 16px; overflow-wrap: anywhere; }
.cw-info .pp-rank { margin: 6px 0 0; }
.cw-info .cw-btns .crew-btn { font-size: 9px; }

/* #170 supervisor long-press on faces (David 5:57 PM ET) and whose passport is open */
.cw-chip { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.cw-info::backdrop { background: rgba(0, 0, 0, 0.55); }
.pp-viewing { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 10px; background: #fff3c4; color: #1a1630; border: 3px solid #1a1630; }
.pp-viewing[hidden] { display: none; }
.pp-viewing p { flex: 1 1 160px; margin: 0; font-weight: 700; }
.cw-pick { margin: 8px 0 0; padding: 10px; background: #e8f5e9; border: 3px solid #2e7d32; }
.cw-pick[hidden] { display: none; }
.cw-pick-h { margin: 0; font: 11px var(--px); letter-spacing: 1px; }
.cw-pick-t, .cw-pick-n { margin: 4px 0; font-size: 14px; }
.cw-pick .crew-btn { flex: 1 1 120px; min-height: 44px; }
.cw-pick .crew-btn[disabled] { opacity: 0.45; }
.cw-chip .cc-check:disabled + * , .cw-chip label { cursor: default; }
.cw-grp, .cw-grp-un { cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.cw-grp.is-sel, .cw-grp-un.is-sel { background: var(--gold, #f9d34a); color: var(--ink, #1a1630); padding: 0 4px; }
.cw-rn { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 0 100%; }
.cw-rn-in { flex: 1 1 140px; min-width: 0; min-height: 44px; padding: 6px 8px; font: 16px var(--body); }
.cw-rn .crew-btn { min-height: 44px; flex: 0 1 auto; }
.cw-rn .dlg-btns { flex: 1 0 100%; }

/* #170 6:00 PM ET: thin "MANAGE SELECTION (n)" bar pinned to the bottom, opens a bottom sheet (scrolls; never taller than half the screen) */
.cw-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; margin: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); font: 10px/1.2 var(--px); letter-spacing: .04em; color: var(--paper); background: var(--ink); border: 0; border-top: 3px solid var(--gold); cursor: pointer; text-align: center; }
.cw-bar[hidden], .cw-sheet[hidden], .cw-sheet-bg[hidden] { display: none; }
body.cw-has-bar { padding-bottom: 56px; }
.cw-sheet-bg { position: fixed; inset: 0; z-index: 55; background: rgba(20, 16, 42, .55); }
.cw-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 56; max-height: 50vh; overflow-y: auto; -webkit-overflow-scrolling: touch; box-sizing: border-box; padding: 12px 12px calc(14px + env(safe-area-inset-bottom)); color: var(--ink); background: var(--paper); box-shadow: 0 -4px 0 var(--ink); }
.cw-sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cw-sheet-top .mc-h { margin: 0; }
.cw-sheet .crew-btn { display: block; width: 100%; margin: 8px 0 0; font-size: 9px; white-space: normal; }
.cw-sheet .crew-btn[hidden] { display: none; } /* more specific than the rule above; keep admin-only DELETE hidden */
.cw-sheet .crew-btn.mm-del, .cw-sheet .crew-btn.mm-del-group { display: flex; align-items: center; justify-content: center; }
.cw-sheet .crew-btn.mm-del[hidden], .cw-sheet .crew-btn.mm-del-group[hidden] { display: none; }
.cw-sheet select { display: block; width: 100%; margin-top: 10px; font-size: 16px; padding: 6px; box-sizing: border-box; }
.cw-sheet-lead { margin: 6px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.cw-sheet .mm-dock { position: static; margin-top: 14px; }

/* #170 drop targets (David 6:31 PM ET, changed 7:26 PM ET): with a selection, every other box stays FULL SIZE with its members
   visible; a light dashed overlay over the whole box says MOVE TO HERE and takes the tap (members underneath stay readable). */
.cw-group { position: relative; }
.cw-target { cursor: pointer; padding-bottom: 40px; }
.cw-drop { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: center; padding: 0 12px 8px; margin: 0; border: 3px dashed var(--gold); background: rgba(20, 16, 42, .10); color: var(--gold-hi); font: 10px/1.2 var(--px); letter-spacing: .04em; cursor: pointer; }
.cw-drop-tag { display: inline-block; padding: 6px 10px; background: var(--ink, #14102a); border: 2px solid var(--gold); }
.cw-target:hover .cw-drop, .cw-drop:focus-visible { background: rgba(20, 16, 42, .18); }
/* stacked bio tiles */
.cw-stack { max-height: 85vh; display: none; flex-direction: column; padding: 10px; }
.cw-stack[open] { display: flex; }
.cw-stack-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: sticky; top: 0; }
.cw-stack-top .gear-h { margin: 0; }
.cw-stack-x { min-width: 44px; min-height: 44px; font: 14px/1 var(--px); color: var(--paper); background: var(--ink); border: 0; cursor: pointer; }
.cw-stack-list { list-style: none; margin: 8px 0 0; padding: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.cw-tile { padding: 10px 0; border-top: 2px solid var(--ink); }
.cw-tile-top { display: flex; align-items: center; gap: 10px; }
.cw-tile-pic { width: 48px; height: 48px; flex: none; }
.cw-tile-name { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.cw-tile-bio { margin: 8px 0; font-size: 16px; overflow-wrap: anywhere; }
.cw-tile-pp { font-size: 9px; }
.skull { display: inline-block; vertical-align: middle; width: 20px; height: 13px; margin-left: 6px; image-rendering: pixelated; }

.foot-credit { font-size: 9px; color: #8a90a8; text-align: center; margin: 6px 0 0; }
.cw-tile-gear { margin: 6px 0; }
/* own bio, edit in place (David 7:27 PM ET) */
.own-bio { margin: 10px 0 0; }
.own-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.own-pic { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; border: 2px dashed var(--gold); background: transparent; cursor: pointer; font: 8px/1.2 var(--px); color: inherit; }
.own-pic .cc-pic { width: 48px; height: 48px; }
.own-bio-shared { margin: 10px 0 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.own-msg { min-height: 1.2em; }
/* photo crop step (board #180, David 7:30 PM ET) */
.crop-dlg { padding: 12px; border: 3px solid #f2c037; background: #11131c; color: #fff; width: min(380px, calc(100vw - 16px)); max-width: none; box-sizing: border-box; }
.crop-dlg::backdrop { background: rgba(0, 0, 0, .75); }
.crop-h { margin: 0 0 8px; text-align: center; }
.crop-stage { width: 100%; height: min(70vw, 340px); background: #000; overflow: hidden; }
.crop-img { display: block; max-width: 100%; }
.crop-hint { text-align: center; margin: 8px 0; }
.crop-row { display: flex; gap: 8px; justify-content: space-between; }
.crop-row .crew-btn { flex: 1 1 0; min-height: 44px; }
.crop-dlg .cropper-view-box, .crop-dlg .cropper-face { border-radius: 0; }

/* MANAGE SELECTION overlay lists the selected people, options below (David 7:41 PM ET) */
.cw-sheet { max-height: 70vh; }
.cw-sh-p { padding: 4px 8px; font-size: 14px; background: rgba(20, 16, 42, .08); box-shadow: 0 0 0 2px var(--ink); overflow-wrap: anywhere; }
.cw-sh-lbl { display: block; margin-top: 14px; font: 9px/1.4 var(--px); }
#cw-sh-mass[hidden] { display: none; }
/* mass passport update */
.cw-mass { max-height: 88vh; overflow-y: auto; padding: 10px; box-sizing: border-box; }
.cw-mass-t { margin: 6px 0; font-size: 14px; }
.ms-page { margin-top: 10px; }
.ms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.ms-slot { position: relative; overflow: hidden; min-height: 76px; padding: 6px; text-align: left; font: inherit; color: var(--ink); background: var(--paper); border: 2px dashed var(--ink); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ms-slot.is-all { border-style: solid; }
.ms-name { position: relative; z-index: 1; display: block; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.ms-stamps { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.ms-stamp { padding: 1px 5px; font-size: 11px; color: #a3122a; border: 2px solid #a3122a; border-radius: 10px; transform: rotate(-4deg); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-fill { position: absolute; left: 0; bottom: 0; height: 100%; width: 0; background: rgba(46, 160, 67, .30); }
.ms-slot.is-revoke .ms-fill { background: rgba(200, 30, 50, .30); }
.ms-slot.is-holding .ms-fill { width: 100%; transition: width 2s linear; }

/* pick up + drag a person (David 2026-11-04 8:58 PM ET) */
.cw-chip.cw-armed { transform: scale(1.04); box-shadow: inset 0 0 0 3px var(--ink), 0 4px 0 var(--gold-lo); }
.cw-chip.is-lifted { opacity: .35; }
body.cw-dragging { user-select: none; -webkit-user-select: none; cursor: grabbing; }
.cw-ghost { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; transition: none; filter: drop-shadow(0 8px 10px rgba(20,16,42,.45)); }
.cw-ghost .cw-chip { background: var(--gold); box-shadow: inset 0 0 0 3px var(--ink); list-style: none; }
.cw-ghost.is-stack::before, .cw-ghost.is-stack::after { content: ''; position: absolute; inset: 0; background: #fff; box-shadow: inset 0 0 0 3px var(--ink); z-index: -1; transform: translate(6px, 6px); }
.cw-ghost.is-stack::after { transform: translate(12px, 12px); z-index: -2; }
.cw-ghost-n { position: absolute; top: -12px; right: -12px; min-width: 26px; height: 26px; padding: 0 5px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: #c8102e; color: #fff; font-family: var(--px); font-size: 11px; box-shadow: 0 0 0 3px var(--ink); }
.cw-ghost.is-landing { transition: transform .2s ease-in, opacity .2s ease-in; }
section.cw-drag-ok, #cw-unassigned.cw-drag-ok { outline: 3px dashed var(--gold-lo); outline-offset: 2px; }
section.cw-drag-over, #cw-unassigned.cw-drag-over { outline: 4px solid var(--green, #2e8b57); outline-offset: 2px; background-color: #fff6cc; }
.cw-drag-land { transition: background-color .2s; }
.cw-chip label { -webkit-touch-callout: none; }

/* selected-people row: MANAGE SELECTION + MASS PASSPORT (David 9:19 / 9:20 PM ET) */
.cw-selrow { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; margin: 8px 0 6px; }
.cw-selrow-n { flex: none; margin: 0; font-family: var(--px); font-size: 9px; line-height: 1.3; }
.cw-selrow-list { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: nowrap; gap: 6px; list-style: none; margin: 0; padding: 2px 2px 6px;
  overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.cw-selrow-p { flex: none; display: inline-flex; align-items: center; gap: 5px; max-width: 9em; padding: 2px 8px 2px 2px; background: var(--gold); color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; }
.cw-selrow-pic { width: 22px; height: 22px; flex: none; object-fit: cover; }
.cw-selrow-pic.cc-none { display: inline-flex; align-items: center; justify-content: center; font-family: var(--px); font-size: 9px; background: #d8d2ee; }
.cw-selrow-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#cw-mass-row { position: sticky; top: -10px; z-index: 2; margin: 0 -10px; padding: 8px 10px 4px; background: inherit; background-color: var(--paper, #fffdf5); }

/* signed-out pages: the Pat's Peak Crew sign-in right on the page (David 9:31 PM ET) */
.crew-signin { margin: 12px 0 4px; }
.crew-signin[hidden] { display: none; }
.crew-signin-go { width: 100%; max-width: 100%; box-sizing: border-box; margin: 0; grid-template-columns: 72px 1fr; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.crew-signin-go .ppc-logo { width: 72px; }
.crew-signin-go .crew-text { min-width: 0; display: block; }
.crew-signin-go .crew-title { display: block; font-size: 12px; overflow-wrap: anywhere; }
.crew-signin-go .crew-hint { display: block; }
.crew-signin-off { margin: 0; font-size: 15px; }

/* Permissions chart (board #263; renamed in the board #305 add-on) */
.who-btn { width: 100%; }
.who-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.who-grid { border-collapse: collapse; width: 100%; font-size: 11px; table-layout: fixed; }
.who-grid col.who-c-act { width: 36%; }
.who-grid th, .who-grid td { border-bottom: 2px solid #14102a; padding: 5px 1px; text-align: center; vertical-align: middle; overflow-wrap: anywhere; }
.who-grid thead th { font-family: var(--px); font-size: 5px; line-height: 1.6; overflow-wrap: normal; }
.who-grid .who-act { text-align: left; font-weight: 700; padding-right: 4px; }
.who-label { display: block; }
.who-note { display: block; font-weight: 400; font-size: 10px; opacity: .8; margin-top: 2px; }
.who-grid .is-me { background: #fff3c4; }
.who-mark { display: inline-block; font-family: var(--px); font-size: 5px; line-height: 1.6; padding: 2px 1px; border: 1px solid #14102a; }
.who-key .who-mark { font-size: 7px; padding: 2px 3px; }
.who-both { background: #2e9e4f; color: #fff; }
.who-self { background: #1d57c4; color: #fff; }
.who-others { background: #f8c030; color: #14102a; }
.who-no { background: #fff; color: #14102a; opacity: .6; }
.who-key .who-mark { margin: 2px 2px 2px 0; }

/* rename in place (board #264) */
.name-row { display: flex; align-items: center; gap: 8px; }
.name-row .rider-name { margin: 0 0 4px; }
.name-text.is-editable { cursor: pointer; }
.name-pencil[hidden], .name-form[hidden] { display: none !important; }
.name-pencil { min-width: 36px; min-height: 36px; border: 2px solid #14102a; background: #fff; color: #14102a; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.name-form { margin: 0 0 6px; }
.name-input { width: 100%; box-sizing: border-box; font-size: 16px; padding: 8px; border: 2px solid #14102a; }
.name-btns { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }
.name-btns .name-save { background: #2e9e4f; color: #fff; }
.name-google { font-size: 13px; opacity: .85; }
.cw-info-names .name-google { margin: 0 0 6px; }
/* board #271: HOLD TO WALK THE PLANK is only live for marooned (disabled) people */
.crew-btn.plank[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* board #265: contact email under the sign-in email; @-domain chips and a "did you mean" fix, sized for thumbs */
.contact-root[hidden], .contact-row[hidden], .contact-chips[hidden], .contact-mean[hidden], .contact-pencil[hidden], .contact-form[hidden] { display: none !important; }
.contact-row { display: flex; align-items: center; gap: 8px; }
.contact-pencil { min-width: 36px; min-height: 36px; border: 2px solid #14102a; background: #fff; color: #14102a; padding: 0; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.contact-form { margin: 0 0 6px; }
.contact-input { width: 100%; box-sizing: border-box; font-size: 16px; padding: 8px; border: 2px solid #14102a; }
.contact-btns { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }
.contact-btns .contact-save { background: #2e9e4f; color: #fff; }
.contact-row .contact-text { margin: 0; overflow-wrap: anywhere; }
.contact-lab { display: block; font-size: 12px; letter-spacing: 1px; margin: 4px 0 2px; }
.contact-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.contact-chip { min-height: 40px; padding: 6px 10px; border: 2px solid #14102a; background: #fff; color: #14102a; font: inherit; font-size: 14px; }
.contact-mean { display: block; width: 100%; min-height: 44px; margin: 6px 0; padding: 6px 10px; border: 2px dashed #c8102e; background: #fff6f6; color: #14102a; font: inherit; font-size: 14px; text-align: left; overflow-wrap: anywhere; }
.cw-info-contact { margin: 0 0 6px; }

/* board #266: Make test user, the Ship of Fools */
.cw-fools-p { text-align: center; margin: 10px 0 0; }
.fools-btn[hidden] { display: none !important; }
/* board #276 (David, Nov 17 2026): the B/W PPC skull on the black MAKE TEST USER button is inverted so it shows */
.fools-btn > .skull-supervisor { filter: invert(1); }
.fools-dlg { max-width: 480px; }
.fools-top { text-align: center; }
.fools-ship { min-height: 48px; width: 100%; border: 3px solid #14102a; background: #1d57c4; color: #fff; font: inherit; font-size: 18px; letter-spacing: 1px; }
.fools-ship[hidden], .fools-ship-in[hidden] { display: none !important; }
.fools-ship-in { width: 100%; box-sizing: border-box; min-height: 48px; font-size: 16px; padding: 8px; border: 3px solid #14102a; }
.fools-hull { margin: 8px auto 0; padding: 6px 8px 10px; background: #7a4a24; border: 3px solid #14102a; border-radius: 0 0 40% 40%; color: #fff; }
.fools-deck { min-height: 26px; font-size: 22px; line-height: 26px; letter-spacing: 2px; }
.fools-count { margin: 0; font-size: 14px; letter-spacing: 1px; }
.fools-n { font-size: 30px; font-weight: 700; }
.fools-stage { position: relative; margin: 12px 0; min-height: 220px; border: 2px dashed #14102a; background: #eaf6ff; overflow: hidden; }
.fools-tip { margin: 6px 8px; font-size: 14px; display: block; }
.fools-balloons .fools-tip { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; }
.fools-balloon { position: absolute; width: 44px; height: 54px; border-radius: 50% 50% 46% 46%; border: 2px solid #14102a; padding: 0; cursor: pointer; animation: fools-drift 7s ease-in-out infinite alternate; touch-action: manipulation; }
.fools-balloon::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1px; height: 18px; background: #14102a; }
.fools-balloon.is-popped { animation: fools-pop .25s ease-out forwards; pointer-events: none; }
@keyframes fools-drift { 0% { transform: translate(0, 0); } 50% { transform: translate(6px, -14px); } 100% { transform: translate(-6px, 10px); } }
@keyframes fools-pop { to { transform: scale(1.6); opacity: 0; } }
.fools-slider { display: block; width: calc(100% - 24px); margin: 40px 12px 0; height: 44px; accent-color: #1d57c4; }
.fools-canvas { display: block; width: 100%; height: 190px; background: #fff; touch-action: none; cursor: crosshair; }
.fools-btns { display: flex; justify-content: space-between; gap: 8px; }
.fools-btns .fools-go { background: #2e9e4f; color: #fff; }
@media (prefers-reduced-motion: reduce) { .fools-balloon { animation: none; } }

/* board #268: online faces snow (a static snowflake with reduced motion) */
.cc-av { position: relative; display: inline-flex; flex: none; }
.cc-snow { display: none; position: absolute; inset: -3px; pointer-events: none; overflow: hidden; }
.is-online .cc-snow, .is-online > .cc-snow { display: block; }
.cc-snow::before, .cc-snow::after { content: ''; position: absolute; left: 0; right: 0; top: -100%; height: 200%;
  background-image: radial-gradient(#fff 1.2px, transparent 1.6px), radial-gradient(#fff 1px, transparent 1.4px);
  background-size: 9px 9px, 13px 13px; background-position: 0 0, 4px 6px; animation: cc-snowfall 2.6s linear infinite; opacity: .95;
  filter: drop-shadow(0 0 1px #1d57c4); }
.cc-snow::after { animation-duration: 4s; background-size: 11px 11px, 7px 7px; opacity: .8; }
@keyframes cc-snowfall { to { transform: translateY(50%); } }
.rider-pic-btn { position: relative; }
.rider-pic-btn > .cc-snow { inset: 0; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .cc-snow::before, .cc-snow::after { animation: none; background: none; filter: none; }
  .cc-snow::before { content: '\2744'; top: auto; bottom: -2px; left: auto; right: -2px; width: auto; height: auto; font-size: 12px; line-height: 1; color: #1d57c4; background: #fff; border-radius: 50%; padding: 1px; }
}

/* board #269: emotes. The layer never takes a tap, a scroll or space */
/* board #298: top-layer popover (beats modal dialogs); z-index is the no-Popover fallback */
.emote-layer, .emote-layer:popover-open {
  position: fixed; inset: 0; width: auto; height: auto; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden;
  pointer-events: none; z-index: 2147483000;
}
.emote-layer::backdrop { display: none; background: none; pointer-events: none; }
.emote-layer * { pointer-events: none; }
.emote-pop { position: absolute; top: 18%; max-width: 70%; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fff; color: #14102a;
  border: 3px solid #14102a; box-shadow: 4px 4px 0 #14102a; animation: emote-pop 3.5s ease-out forwards; overflow-wrap: anywhere; }
.emote-big { font-size: 34px; line-height: 1; }
.emote-t { font-size: 14px; }
.emote-from { font-weight: 700; }
@keyframes emote-pop { 0% { transform: scale(.4); opacity: 0; } 10% { transform: scale(1.08); opacity: 1; } 18% { transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }
.emote-ball { position: absolute; left: -60px; top: 60%; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #dde9f7 60%, #a9c3e0);
  box-shadow: 0 0 0 2px #14102a; animation: emote-arc 5s linear forwards; }
.emote-ball.is-rtl { animation-name: emote-arc-rtl; left: auto; right: -60px; }
@keyframes emote-arc { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(55vw, -40vh) rotate(360deg); } 100% { transform: translate(110vw, 0) rotate(720deg); } }
@keyframes emote-arc-rtl { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-55vw, -40vh) rotate(-360deg); } 100% { transform: translate(-110vw, 0) rotate(-720deg); } }
.emote-splat { position: absolute; left: 50%; top: 50%; width: 120px; height: 100px; margin: -50px 0 0 -60px; border-radius: 46% 54% 40% 60%;
  background: radial-gradient(circle, #fff 55%, rgba(255,255,255,.85) 65%, transparent 72%); filter: drop-shadow(0 0 2px #7aa0c8); animation: emote-splat 2.5s ease-out forwards; }
@keyframes emote-splat { 0% { transform: scale(.2); } 12% { transform: scale(1.1); } 20% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(30px) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .emote-pop { animation: emote-fade 3.5s linear forwards; }
  .emote-ball { left: 50%; top: 40%; animation: emote-fade 5s linear forwards; }
  .emote-ball.is-rtl { right: auto; animation-name: emote-fade; }
  .emote-splat { animation: emote-fade 2.5s linear forwards; }
}
@keyframes emote-fade { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
/* board #304: thumbs and the mystery chest stack on top and block taps (snowballs above stay click-through) */
.emote-layer .emote-stack, .emote-layer .emote-stack * { pointer-events: auto; }
.emote-stack { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(20, 16, 42, .45);
  -webkit-tap-highlight-color: transparent; touch-action: none; user-select: none; -webkit-user-select: none; }
.emote-stack .emote-thumb { position: relative; top: auto; left: auto; max-width: 84%; padding: 14px 18px; gap: 12px; animation: emote-in .35s ease-out both; }
.emote-stack .emote-thumb .emote-big { font-size: 56px; }
.emote-stack .emote-thumb .emote-t { font-size: 18px; }
.emote-chest { width: 148px; height: 120px; padding: 0; border: 0; background: none; cursor: pointer; animation: emote-in .35s ease-out both, emote-wiggle 1.6s ease-in-out .4s infinite; }
.emote-chest svg { width: 100%; height: 100%; display: block; filter: drop-shadow(4px 4px 0 #14102a); }
.emote-scroll { position: absolute; inset: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)) 12px; display: flex; animation: emote-unroll .45s ease-out both; }
.emote-paper { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 56px 26px 40px; overflow: auto; color: #3b2410;
  background: linear-gradient(90deg, #d9b77a 0, #f4e3b5 6%, #fbf0d0 50%, #f4e3b5 94%, #d9b77a 100%); border: 3px solid #14102a; border-radius: 10px;
  box-shadow: inset 0 14px 0 #c89a55, inset 0 -14px 0 #c89a55, 6px 6px 0 #14102a; font-family: Georgia, 'Times New Roman', serif; }
.emote-scroll-text { margin: 0; font-size: clamp(22px, 7vw, 40px); line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.emote-scroll-sig { margin: 0; font-size: clamp(18px, 5.5vw, 28px); font-style: italic; text-align: right; }
.emote-x { position: absolute; top: 10px; right: 10px; width: 48px; height: 48px; border: 3px solid #14102a; border-radius: 50%; background: #fff; color: #14102a;
  font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer; box-shadow: 2px 2px 0 #14102a; }
.emote-count { position: absolute; top: calc(50% - 96px); left: calc(50% + 52px); min-width: 30px; height: 30px; padding: 0 8px; border-radius: 15px; background: #c8102e;
  color: #fff; border: 2px solid #14102a; font: 700 16px/26px system-ui, sans-serif; text-align: center; }
.emote-stack.is-open .emote-count { top: 16px; left: 16px; }
.emote-smoke { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.emote-layer .emote-smoke, .emote-layer .emote-smoke * { pointer-events: none; }
.emote-puff { position: absolute; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; background: radial-gradient(circle, rgba(235,235,240,.95) 0, rgba(200,200,210,.7) 50%, transparent 72%);
  animation: emote-puff .85s ease-out forwards; }
.emote-puff.p0 { --dx: -60px; --dy: -40px; } .emote-puff.p1 { --dx: 60px; --dy: -40px; } .emote-puff.p2 { --dx: -70px; --dy: 30px; }
.emote-puff.p3 { --dx: 70px; --dy: 30px; } .emote-puff.p4 { --dx: 0px; --dy: -70px; } .emote-puff.p5 { --dx: 0px; --dy: 50px; }
.emote-smoke.is-fade .emote-puff { --dx: 0px; --dy: 0px; animation: emote-fade-out .6s linear forwards; }
@keyframes emote-in { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
@keyframes emote-wiggle { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-5deg); } 82% { transform: rotate(5deg); } 88% { transform: rotate(-3deg); } 94% { transform: rotate(2deg); } }
@keyframes emote-unroll { 0% { transform: scaleY(.05); opacity: .4; } 100% { transform: scaleY(1); opacity: 1; } }
@keyframes emote-puff { 0% { transform: translate(0, 0) scale(.3); opacity: .95; } 100% { transform: translate(var(--dx), var(--dy)) scale(1.6); opacity: 0; } }
@keyframes emote-fade-out { 0% { opacity: .9; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .emote-stack .emote-thumb, .emote-chest, .emote-scroll { animation: emote-fade-in .3s linear both; }
}
@keyframes emote-fade-in { 0% { opacity: 0; } 100% { opacity: 1; } }
.cw-info-emote[hidden] { display: none !important; }
.cw-info-emote { margin: 8px 0; padding: 8px; border: 2px dashed #1d57c4; }
.emote-h { margin: 0 0 6px; font-size: 12px; letter-spacing: 1px; }
.emote-row { display: flex; gap: 8px; }
.emote-row .crew-btn { flex: 1; min-height: 48px; font-size: 22px; }
.emote-form { display: flex; gap: 8px; margin: 8px 0; }
.emote-input { flex: 1; min-width: 0; font-size: 16px; padding: 8px; border: 2px solid #14102a; }
.emote-send { min-height: 44px; }
.emote-snow { position: relative; overflow: hidden; width: 100%; min-height: 56px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.emote-snow-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #9fd0ff; }
.emote-snow-t { position: relative; }

/* board #276 (David, Nov 17 2026 8:41 AM ET): rarely used crew actions live behind one small anchor menu per crew card; the
   danger ones (red, at the bottom) slide up a sheet with the full-width #273 pirate hold bar + CANCEL. */
.cw-crew > .cw-head { position: relative; padding-right: 52px; }
.cw-menu-btn { position: absolute; top: -4px; right: 0; width: 44px; height: 44px; min-width: 44px; display: flex; align-items: center;
  justify-content: center; padding: 0; font-size: 22px; line-height: 1; color: var(--ink); background: var(--paper); border: 0;
  box-shadow: inset 0 0 0 2px var(--ink); cursor: pointer; }
.cw-menu-btn[aria-expanded="true"] { background: var(--gold); }
.cw-menu-btn:focus-visible { outline: 3px solid #1d57c4; outline-offset: 2px; }
.cw-menu { position: absolute; top: 44px; right: 0; z-index: 30; min-width: 180px; display: flex; flex-direction: column; background: #fff;
  box-shadow: 0 0 0 3px var(--ink), 0 8px 18px rgba(20, 16, 42, .35); transform-origin: top right; animation: cw-menu-roll .14s ease-out; }
.cw-menu[hidden] { display: none; }
.cw-menu-btn, .cw-mi { scroll-margin-top: calc(var(--rank-bar-h, 0px) + 72px); scroll-margin-bottom: 72px; }
@keyframes cw-menu-roll { from { transform: scaleY(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.cw-mi { min-height: 44px; padding: 10px 14px; text-align: left; font-family: var(--px); font-size: 10px; line-height: 1.4; color: var(--ink);
  background: #fff; border: 0; border-top: 2px solid #e6e1f2; cursor: pointer; }
.cw-mi:first-child { border-top: 0; }
.cw-mi:hover, .cw-mi:focus-visible { background: #f1ecff; outline: none; }
.cw-mi-danger { color: #c8102e; border-top: 3px solid var(--ink); }
.cw-mi-danger + .cw-mi-danger { border-top: 2px solid #f3d0d6; }
.mm-grid .crew-btn.mm-danger { grid-column: 1 / -1; min-height: 44px; color: #c8102e; background: #fff; box-shadow: 0 0 0 3px #c8102e; }
.cw-sheet .crew-btn.mm-danger { color: #c8102e; background: #fff; box-shadow: 0 0 0 3px #c8102e; }
.mm-danger > .skull-supervisor { filter: none; }
/* board #279 (David, Nov 17 2026 8:29 PM ET): MAROON + RESCUE are a matched pair, side by side, same size; red danger (hold) and
   green safe (one tap), both white-backed or solid so neither reads as dark-on-dark text */
.mm-grid .crew-btn.mm-pair { grid-column: auto; min-height: 56px; font-size: 9px; white-space: normal; }
.cw-sheet .crew-btn.mm-pair { display: flex; align-items: center; justify-content: center; width: 100%; margin: 0; }
.mm-grid .crew-btn.mm-pair.mm-danger { color: #fff; background: #c8102e; box-shadow: 0 0 0 3px #c8102e, 0 5px 0 0 rgba(20, 16, 42, .35); }
.mm-grid .crew-btn.mm-pair.mm-safe, .cw-sheet .crew-btn.mm-pair.mm-safe { color: #fff; background: #1d7a3a; box-shadow: 0 0 0 3px #1d7a3a, 0 5px 0 0 rgba(20, 16, 42, .35); }
.mm-grid .crew-btn.mm-pair[aria-disabled="true"] { opacity: .55; }
.cw-sheet .crew-btn.mm-pair[hidden], .mm-grid .crew-btn.mm-pair[hidden] { display: none; }
.mm-pair > .skull-supervisor { filter: none; }
.dz-bg { position: fixed; inset: 0; z-index: 70; background: rgba(20, 16, 42, .6); }
.dz-bg[hidden], .dz-sheet[hidden] { display: none; }
.dz-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; box-sizing: border-box; max-width: 640px; margin: 0 auto;
  padding: 14px 14px calc(16px + env(safe-area-inset-bottom)); color: var(--ink); background: var(--paper); box-shadow: 0 -4px 0 var(--ink);
  transform: translateY(100%); transition: transform .22s ease-out; }
.dz-sheet.is-up { transform: none; }
.dz-sheet .mc-h { margin: 0 0 4px; }
.dz-sheet .crew-btn.plank { display: flex; margin-top: 10px; }
.dz-sheet .dz-x { display: flex; width: 100%; margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .dz-sheet, .cw-menu { transition: none; animation: none; } }
/* board #303: Gear WAYS IN */
.ways-state { font-weight: 700; margin: 6px 0 10px; }
.ways-btns { display: grid; gap: 10px; justify-items: center; }
.ways-btns .crew-btn[hidden], .ways-gis[hidden] { display: none; }
.ways-gis { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
/* board #303: MERGE ACCOUNTS picker (admins). Two big choices, each a face, a name and "Google" / "QR Code" */
.mg-t { margin: 4px 0 10px; }
.mg-pick { display: grid; gap: 10px; }
.mg-choice { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 56px; text-align: left; }
.mg-choice .cw-selrow-p { min-width: 0; }
.mg-via { flex: none; font-weight: 800; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: #241c48; }
.crew-btn[aria-disabled="true"].mm-merge { opacity: .5; }

/* Board #282: new-build strip and force countdown (js/app-update.js). Top of the screen, away from the hold bars;
   not modal (the page stays usable). */
.upd-strip { position: fixed; left: 50%; top: max(8px, env(safe-area-inset-top)); transform: translateX(-50%); z-index: 70;
  width: min(92vw, 440px); display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #14102a; color: #fff;
  box-shadow: 0 0 0 3px var(--gold), 0 6px 18px rgba(0,0,0,.45); }
.upd-strip[hidden] { display: none; }
.upd-strip .upd-t { flex: 1 1 auto; margin: 0; font-family: var(--px); font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.upd-strip button { flex: 0 0 auto; min-height: 44px; min-width: 44px; padding: 6px 10px; font-family: var(--px); font-size: 9px;
  border: 0; cursor: pointer; }
.upd-strip .upd-go { background: var(--gold); color: var(--ink); }
.upd-strip .upd-x, .upd-strip .upd-later { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.upd-strip .upd-x { font-size: 16px; padding: 4px 10px; }
.upd-strip button[hidden] { display: none; }
.upd-force { box-shadow: 0 0 0 3px #e0402a, 0 6px 18px rgba(0,0,0,.45); }

/* ---------- board #297: the avatar ("You" on Gear, read-only on bios) + the outfit modal (David 2026-11-21 4:43-5:05 PM ET) ---------- */
.av-stage { display: flex; align-items: flex-end; justify-content: center; }
.av-svg { display: block; height: 100%; width: auto; overflow: visible; }
.av-bob { animation: av-bob 1.6s ease-in-out infinite; }
@keyframes av-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .av-bob { animation: none; } }
.you-av { display: flex; flex-direction: column; align-items: center; margin: 12px 0 0; }
.you-avatar-btn { display: block; padding: 6px 18px 4px; cursor: pointer; border: 0; border-radius: 0; background: linear-gradient(#e7f2fb, #cfe4f4);
  box-shadow: 0 0 0 3px var(--ink), 0 5px 0 rgba(20, 16, 42, .35); }
.you-avatar-btn:active { transform: translateY(3px); }
/* board #327: everyone can tap the rider; without edit permission it opens the unlock splash */
.you-avatar { height: 190px; }
.cw-info-av { height: 150px; margin: 8px auto 4px; padding: 4px 0; background: linear-gradient(#e7f2fb, #cfe4f4); box-shadow: 0 0 0 3px var(--ink); }
.cw-info-av[hidden] { display: none; }

/* ---------- board #306: certification pins beside the rider (AASI left; Freestyle + Children's Specialist right) ---------- */
.pin-frame { position: relative; }
.you-av.pin-frame { flex-direction: row; justify-content: center; align-items: center; gap: 4px; }
.cw-info-av.pin-frame { align-items: center; gap: 4px; }
.pin-col { display: grid; align-content: start; justify-items: center; flex: none; }
.pin { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pin img { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 2px 0 rgba(20, 16, 42, .35)); }
.pin:active img { transform: translateY(2px); }
.pin:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.pin-pop { position: absolute; z-index: 3; margin: 0; padding: 6px 9px; transform: translate(-50%, -100%); white-space: nowrap; pointer-events: none;
  font-size: 11px; color: #fff; background: var(--ink); box-shadow: 0 3px 0 rgba(20, 16, 42, .35); }
.pin-pop[hidden] { display: none; }
.pin-pop.is-on { animation: pin-pop .18s steps(3) both; }
@keyframes pin-pop { from { opacity: 0; transform: translate(-50%, -80%); } to { opacity: 1; transform: translate(-50%, -100%); } }
@media (prefers-reduced-motion: reduce) { .pin-pop.is-on { animation: none; } }
.pin-pick-btn { position: absolute; right: 4px; bottom: 4px; z-index: 2; min-width: 44px; min-height: 32px; padding: 4px 8px; border: 0; cursor: pointer;
  font: inherit; font-size: 9px; color: #fff; background: var(--ink); box-shadow: 0 3px 0 rgba(20, 16, 42, .35); }
.pin-pick { position: absolute; right: 4px; bottom: 42px; z-index: 4; display: grid; grid-template-columns: repeat(3, 56px); gap: 6px; padding: 8px;
  background: var(--paper); box-shadow: 0 0 0 3px var(--ink), 0 5px 0 rgba(20, 16, 42, .35); }
.pin-pick[hidden] { display: none; }
.pin-opt { width: 56px; height: 48px; padding: 3px; border: 0; cursor: pointer; background: #e5e7eb; opacity: .45; }
.pin-opt img { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.pin-opt.is-on { opacity: 1; background: #fde68a; box-shadow: 0 0 0 2px var(--ink); }
.pin-pick-msg { grid-column: 1 / -1; margin: 0; min-height: 1em; font-size: 10px; }
html.av-locked, html.av-locked body { overflow: hidden; }
html.av-locked .mute-toggle { visibility: hidden; }   /* board #327: the unlock splash is a transparent dialog; don't leave SFX on top */
.av-modal { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  color: var(--ink); background: var(--snow); overflow: hidden; }
.av-modal[open] { display: flex; flex-direction: column; }
.av-modal::backdrop { background: rgba(20, 16, 42, .55); }
/* board #327: one-line unlock splash (pixel card, no other copy). One tap anywhere dismisses it. */
.av-unlock { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  color: var(--ink); background: transparent; }
.av-unlock[open] { display: flex; align-items: center; justify-content: center; }
.av-unlock::backdrop { background: rgba(20, 16, 42, .55); }
.av-unlock-card { margin: 20px; padding: 28px 18px; width: min(260px, calc(100vw - 40px)); text-align: center;
  font-family: var(--px); background: var(--paper); box-shadow: 0 0 0 4px var(--ink), 0 7px 0 rgba(20, 16, 42, .35); }
.av-unlock-t { margin: 0; font-size: clamp(10px, 3.3vw, 13px); line-height: 1.8; }
.av-pin { flex: 0 0 auto; padding: calc(10px + env(safe-area-inset-top)) 12px 6px; text-align: center; background: linear-gradient(#cfe4f4, var(--snow)); border-bottom: 3px solid var(--ink); }
.av-h { margin: 0 0 2px; }
.av-sub { margin: 0 0 2px; font-size: 13px; }
.av-live { height: clamp(110px, 24vh, 200px); }
.av-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 12px 10px 16px; }
/* board #321: each section is one bordered card (header bar, items, then that section's own color), so on a phone a slider
   can only belong to the items in its own box */
.av-sec { margin: 0 0 18px; background: #fff; border: 3px solid var(--ink); border-radius: 8px; overflow: hidden; }
.av-sec-h { margin: 0; padding: 7px 10px; font-family: var(--px); font-size: 11px; line-height: 1.4; background: #cfe4f4; border-bottom: 2px solid var(--ink); }
.av-sec .av-tiles { padding: 8px; }
.av-sec-h small { font-family: system-ui, sans-serif; font-size: 12px; letter-spacing: 0; color: #4a4466; }
.av-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.av-tile { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; min-width: 0; min-height: 76px; padding: 6px 2px 4px;
  cursor: pointer; font: inherit; color: var(--ink); background: #fff; border: 2px solid #c9d3e4; border-radius: 6px; }
.av-tile.is-on { border-color: #e4572e; box-shadow: 0 0 0 2px #e4572e inset; background: #fff4ef; }
.av-tile:focus-visible { outline: 3px solid #f2c037; outline-offset: 1px; }
.av-pv { display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; }
.av-pv svg { display: block; height: 100%; width: auto; max-width: 100%; }
.av-name { max-width: 100%; font-size: 10px; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.av-foot { flex: 0 0 auto; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--snow); border-top: 3px solid var(--ink); }
.av-msg { min-height: 1.2em; margin: 0 0 6px; font-size: 13px; text-align: center; }
.av-msg:empty { min-height: 0; margin: 0; }
.av-btns { display: flex; gap: 12px; }
.av-btns .crew-btn { flex: 1 1 0; min-height: 48px; text-transform: none; font-size: 12px; }
.av-shred { background: #e4572e; }
/* ---------- board #308: per-slot color (hue slider + 5 shade dots + contrast) and the Mess me up die ---------- */
.av-pin { position: relative; }
/* under the rider (never over him): at 320 px a corner button covered his legs */
.av-mess { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin: 4px 0 2px; padding: 4px 12px; font-size: 11px; text-transform: none; }
.av-live { height: clamp(100px, 22vh, 190px); }
.av-die { width: 20px; height: 20px; flex: 0 0 auto; }
.av-mess.is-rolling .av-die { animation: av-roll .45s steps(4) 1; }
@keyframes av-roll { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .av-mess.is-rolling .av-die { animation: none; } }
.av-color { margin: 0; padding: 8px; background: #f3f7fc; border-top: 2px dashed #9fb0cc; }
.av-color-h { margin: 0 0 6px; font-family: var(--px); font-size: 9px; line-height: 1.3; color: #4a4466; }
.av-hue { display: block; width: 100%; height: 28px; margin: 0 0 8px; -webkit-appearance: none; appearance: none; border-radius: 14px; cursor: pointer;
  background: linear-gradient(90deg, hsl(0 78% 48%), hsl(60 78% 48%) 16.6%, hsl(120 78% 48%) 33.2%, hsl(180 78% 48%) 49.8%, hsl(240 78% 48%) 66.4%,
    hsl(300 78% 48%) 83%, hsl(359 78% 48%) 92%, #8a8a8a 94%, #8a8a8a 100%); box-shadow: inset 0 0 0 2px var(--ink); }
.av-hue::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }
.av-hue::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }
.av-hue:focus-visible { outline: 3px solid #f2c037; outline-offset: 2px; }
.av-color-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.av-shades { display: flex; gap: 6px; }
.av-shade { width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px #8a94a8; cursor: pointer; }
.av-shade.is-on { box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px #e4572e; }
.av-shade:focus-visible { outline: 3px solid #f2c037; outline-offset: 3px; }
.av-tones { display: inline-flex; margin-left: auto; box-shadow: 0 0 0 2px var(--ink); }
.av-tone { display: block; width: 16px; height: 24px; }
.av-contrast { min-height: 36px; padding: 4px 10px; font: inherit; font-size: 12px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 6px; cursor: pointer; }
.av-contrast[aria-pressed="true"] { color: #fff; background: #e4572e; }
@media (min-width: 720px) {   /* desktop: the sections keep a phone-ish width instead of 1000 px wide tiles */
  .av-sec { max-width: 640px; margin-left: auto; margin-right: auto; }
  .av-btns { max-width: 640px; margin: 0 auto; }
}
@media (max-width: 360px) {   /* one row at 320 px: 5 dots, the two tones and Contrast */
  .av-color-row { gap: 6px; }
  .av-shades { gap: 5px; }
  .av-shade { width: 26px; height: 26px; }
  .av-contrast { padding: 4px 8px; font-size: 11px; }
}

/* Board #325: supervisor radio. Icon tab to the right of CREW; compose is KID|TEEN|ADULT|[plane]
   with the plane spanning the text box on the next row. */
.tabs a[data-tab="radio"] {
  flex: 0 0 44px; width: 44px; padding: 0; position: relative;
}
.tabs a[data-tab="radio"][hidden] { display: none; }
.tabs a[data-tab="radio"] .radio-ico { display: block; margin: 0 auto; }
.tabs a[data-tab="radio"].is-unread .radio-waves { color: var(--yellow); }

.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.radio-main { display: flex; flex-direction: column; min-height: 0; }
#radio-in { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
#radio-in[hidden] { display: none; }

.radio-compose {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  grid-template-rows: auto auto;
  gap: 8px;
  align-items: stretch;
  margin: 0 0 10px;
}
.radio-count {
  min-height: 44px; font-family: var(--px); font-size: 11px; line-height: 1.2;
  color: #fff; border: 0; box-shadow: inset 0 0 0 3px var(--ink);
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.radio-count[data-kind="kid"] { background: var(--green); color: #fff; }
.radio-count[data-kind="teen"] { background: var(--blue); color: #fff; }
.radio-count[data-kind="adult"] { background: var(--black); color: #fff; box-shadow: inset 0 0 0 3px var(--paper); }
.radio-count.is-on { box-shadow: inset 0 0 0 3px var(--ink), 0 4px 0 rgba(20,16,42,.35); }
.radio-count[data-kind="adult"].is-on { box-shadow: inset 0 0 0 3px var(--paper), 0 4px 0 rgba(20,16,42,.35); }
.radio-send {
  grid-column: 4; grid-row: 1 / 3;
  min-width: 52px; min-height: 96px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); background: var(--gold);
  border: 0; box-shadow: inset 0 0 0 3px var(--ink);
  touch-action: manipulation;
}
.radio-send:disabled { background: #b8b3c6; color: #6a6578; box-shadow: inset 0 0 0 3px #8a8598; }
.radio-text-wrap { grid-column: 1 / 4; grid-row: 2; display: block; min-width: 0; }
.radio-text {
  width: 100%; min-height: 44px; resize: none; box-sizing: border-box;
  font: inherit; padding: 8px; color: var(--ink); background: var(--paper);
  border: 0; box-shadow: inset 0 0 0 3px var(--ink);
}

.radio-chat { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 24px; }
.radio-row { display: flex; }
.radio-row.is-mine { justify-content: flex-end; }
.radio-row.is-theirs { justify-content: flex-start; }
.radio-bubble {
  max-width: 84%; padding: 8px 10px;
  background: var(--paper); color: var(--ink);
  box-shadow: inset 0 0 0 3px var(--ink);
}
.radio-row.is-mine .radio-bubble { background: #efe7ff; }
.radio-who { margin: 0 0 4px; font-family: var(--px); font-size: 8px; letter-spacing: .04em; opacity: .8; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.radio-from { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radio-at { margin: 0; font-family: var(--px); font-size: 7px; letter-spacing: .03em; opacity: .75; white-space: nowrap; display: none; }
.radio-row.is-latest .radio-at, .radio-row.is-open .radio-at { display: inline; }
.radio-row:not(.is-latest) { cursor: pointer; }
.radio-counts { display: flex; gap: 6px; margin: 0 0 4px; }
.radio-pill {
  min-width: 28px; min-height: 28px; padding: 4px 7px;
  font-family: var(--px); font-size: 12px; line-height: 1; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 2px var(--ink);
}
.radio-pill[data-kind="kid"] { background: var(--green); color: #fff; }
.radio-pill[data-kind="teen"] { background: var(--blue); color: #fff; }
.radio-pill[data-kind="adult"] { background: var(--black); color: #fff; box-shadow: inset 0 0 0 2px var(--paper); }
.radio-body { margin: 0; white-space: pre-wrap; word-break: break-word; }

/* passport catalog admin (board #326) */
.pp-cat-link { margin: 8px 0 0; }
.pp-cat-link a { font-family: var(--px); font-size: 10px; letter-spacing: 0.08em; color: #c8102e; text-decoration: none; }
.cat-page { margin: 12px 0; padding: 12px; }
.cat-page.is-retired, .cat-skill.is-retired { opacity: 0.55; }
.cat-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cat-title { flex: 1 1 140px; min-width: 0; }
.cat-in {
  display: block; width: 100%; box-sizing: border-box;
  font-family: var(--px); font-size: 11px; line-height: 1.3;
  padding: 8px 10px; margin: 0 0 8px;
  border: 2px solid #14102a; background: #fff8e8; color: #14102a;
}
.cat-lab { font-family: var(--px); font-size: 9px; letter-spacing: 0.06em; margin: 0 0 6px; }
.cat-inks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.cat-ink {
  width: 28px; height: 28px; padding: 0; border: 2px solid #14102a; cursor: pointer; border-radius: 0;
}
.cat-ink.is-on { box-shadow: inset 0 0 0 3px #fff8e8, 0 0 0 2px #14102a; }
.cat-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.cat-row .crew-btn { margin: 0; }
.cat-skill { border-top: 2px solid #14102a; padding: 10px 0 0; margin: 10px 0 0; }
.cat-add, .cat-add-sk { margin: 12px 0 0; }
.cat-add-sk .cat-in { margin-bottom: 8px; }
@media (max-width: 420px) {
  .cat-row .crew-btn, .cat-add .crew-btn, .cat-add-sk .crew-btn { width: 100%; }
}
