:root {
  --canvas: #EEF1FA;
  --grid: rgba(67, 82, 238, 0.07);
  --surface: #FFFFFF;
  --ink: #1C1E3A;
  --muted: #555B7E;
  --line: #1C1E3A;
  --blue: #4352EE;
  --blue-soft: #B9C1FF;
  --pink: #FF7AB8;
  --sun: #FFD54A;
  --mint: #5FD3A1;
  --red: #E8394B;
  --on-blue: #FFFFFF;
  --shadow: 3px 3px 0 var(--line);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-control: 999px;
  --gutter: clamp(1rem, 3.5vw, 2.5rem);
  --font: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #141629;
    --grid: rgba(185, 193, 255, 0.05);
    --surface: #1F2240;
    --ink: #EEF0FF;
    --muted: #AEB3DA;
    --line: #05061A;
    --blue: #5664FF;
    --red: #FF5A6A;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--canvas);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* Menu bar + lights */
.menubar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.25rem;
  padding: 0.55rem var(--gutter);
  background: var(--surface);
  border-bottom: 2px solid var(--line);
}
.menubar .brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; text-decoration: none; letter-spacing: -0.01em; }
.menubar .brand img { width: 24px; height: 24px; }
.menubar nav { display: flex; gap: 0.25rem; margin-right: auto; }
.menubar nav a { text-decoration: none; font-weight: 600; padding: 0.25rem 0.8rem; border-radius: var(--radius-control); }
.menubar nav a:hover { background: var(--canvas); }
.menubar nav a[aria-current="page"] { background: var(--ink); color: var(--surface); }
.sticker-toggle {
  font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: none; border: 2px solid var(--line); border-radius: var(--radius-control);
  padding: 0.2rem 0.75rem 0.2rem 0.35rem; cursor: pointer;
}
.sticker-toggle .knob { width: 20px; height: 20px; border-radius: 50%; background: var(--canvas); border: 2px solid var(--line); display: grid; place-items: center; }
.sticker-toggle[aria-pressed="true"] .knob { background: var(--sun); }
.sticker-toggle svg { width: 12px; height: 12px; }
.lights { position: absolute; left: 0; right: 0; top: 100%; height: 30px; margin-top: -2px; pointer-events: none; overflow: hidden; }
.lights svg { display: block; }
.lights .halo { opacity: 0.85; animation: glow 2.2s ease-in-out infinite; }
.lights .glass { animation: shine 2.2s ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: 0.9; } 50% { opacity: 0.35; } }
@keyframes shine { 0%, 100% { opacity: 1; } 50% { opacity: 0.75; } }
@media (prefers-color-scheme: light) { .lights .halo { opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) { .lights .halo, .lights .glass { animation: none; } }

/* Snow and emoji trail */
.snow { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
.festive-off .snow { display: none; }
.festive-off .lights { display: none; }
.trail { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.trail .st { position: absolute; font-size: 26px; line-height: 1; transform: translate(-50%, -50%); animation: pop 0.95s cubic-bezier(.2,.9,.3,1.2) forwards; }
@keyframes pop {
  0% { transform: translate(-50%, -50%) scale(0) rotate(var(--r)); opacity: 1; }
  25% { transform: translate(-50%, -50%) scale(1.15) rotate(var(--r)); opacity: 1; }
  100% { transform: translate(-50%, 10px) scale(0.6) rotate(calc(var(--r) * 2)); opacity: 0; }
}

/* Layout */
main { display: block; }
.section { padding: clamp(1.75rem, 3.5vw, 2.75rem) var(--gutter); }
.section + .section { padding-top: 0.5rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.75rem 1.5rem; margin-bottom: 1.1rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1; letter-spacing: -0.035em; margin: 0; font-weight: 800; font-variation-settings: "wdth" 88; }
.section-head p { margin: 0.35rem 0 0; color: var(--muted); max-width: 52ch; font-size: 0.95rem; }
.head-actions { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }

.btn {
  font: inherit; font-weight: 700; font-size: 0.92rem; color: var(--ink);
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-control);
  padding: 0.42rem 1rem; cursor: pointer; box-shadow: 2px 2px 0 var(--line);
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--line); }
.btn.primary { background: var(--blue); color: var(--on-blue); }
.btn.small { font-size: 0.82rem; padding: 0.25rem 0.75rem; }
.btn:disabled { opacity: 0.5; cursor: default; transform: none; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-control);
  padding: 0.22rem 0.8rem; cursor: pointer;
}
.chip:hover { background: var(--canvas); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--ink); color: var(--surface); }

.state { color: var(--muted); padding: 1rem 0; margin: 0; }
.state.error { color: #C2185B; }
@media (prefers-color-scheme: dark) { .state.error { color: #FF9CC8; } }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 410px); gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding: clamp(3.75rem, 7vw, 5.25rem) var(--gutter) clamp(1.5rem, 3vw, 2.25rem);
  cursor: crosshair;
}
.hero-text { position: relative; z-index: 2; }
.hero-loc {
  display: inline-flex; align-items: center; gap: 0.4rem; margin: 0 0 0.9rem;
  font-size: 0.8rem; font-weight: 700; padding: 0.2rem 0.7rem 0.2rem 0.45rem;
  border: 2px solid var(--line); border-radius: var(--radius-control); background: var(--surface); box-shadow: 2px 2px 0 var(--line);
}
.hero-loc svg { width: 15px; height: 15px; }
.hero-loc .clock { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; color: var(--muted); padding-left: 0.4rem; margin-left: 0.15rem; border-left: 2px solid var(--line); }
.hero h1 {
  margin: 0; font-weight: 800;
  font-size: clamp(3.5rem, 11vw, 9rem); line-height: 0.9; letter-spacing: -0.055em;
  font-variation-settings: "wdth" 78; white-space: nowrap;
}
.hero h1 [data-hero-name] { cursor: default; }
.caret { display: inline-block; width: 0.36em; height: 0.72em; margin-left: 0.08em; background: var(--sun); border: 2px solid var(--line); vertical-align: -0.02em; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero .tagline { font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 700; margin: 0.75rem 0 1.1rem; max-width: 34ch; line-height: 1.25; }
.shortcuts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.shortcuts a {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 700; font-size: 0.92rem;
  padding: 0.25rem 0.85rem 0.25rem 0.3rem; border: 2px solid var(--line); border-radius: var(--radius-control);
  background: var(--surface); box-shadow: 2px 2px 0 var(--line); transition: transform .08s, box-shadow .08s;
}
.shortcuts a:hover, .shortcuts a.pressed { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.shortcuts a.pressed kbd { transform: translateY(2px); border-bottom-width: 2px; }
.shortcuts kbd {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.78rem; font-weight: 700;
  display: grid; place-items: center; min-width: 1.65rem; height: 1.65rem; padding: 0 0.3rem;
  background: var(--sun); color: #1C1E3A; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 7px;
  transition: transform .08s;
}
.shortcuts a:nth-child(2) kbd { background: var(--pink); }
.shortcuts a:nth-child(3) kbd { background: var(--mint); }
.shortcuts a:nth-child(4) kbd { background: var(--blue-soft); }
.shortcut-hint { margin: 0.6rem 0 0; font-size: 0.8rem; color: var(--muted); }
@media (hover: none) { .shortcut-hint { display: none; } }

.hero-side { position: relative; z-index: 3; display: grid; gap: 1rem; cursor: default; }
.term { background: #0F1124; border: 2px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); overflow: hidden; }
.term .win-bar { cursor: default; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.78rem; }
.term-body { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.82rem; line-height: 1.6; color: #DDE1FF; padding: 0.8rem 0.95rem 0.9rem; min-height: 11.5em; }
.term-body .ln { white-space: pre-wrap; word-break: break-word; }
.term-body .p { color: #5FD3A1; }
.term-body .cmd { color: #FFFFFF; }
.term-body .out { color: #AEB3DA; }
.term-body .hi { color: #FFD54A; font-weight: 700; }
.term-body .dot { color: #1FE07A; }
.term-body .tcaret { display: inline-block; width: 0.6em; height: 1.05em; background: #DDE1FF; vertical-align: -0.18em; animation: blink 1.05s steps(1) infinite; }
.hero .drops { position: absolute; inset: 0; z-index: 1; }
.clear-drops { position: absolute; left: var(--gutter); bottom: 0.6rem; z-index: 4; font: inherit; font-size: 0.72rem; font-weight: 700; color: var(--muted); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-control); padding: 0.08rem 0.55rem; cursor: pointer; }
.clear-drops:hover { color: var(--ink); background: var(--sun); color: #1C1E3A; }
.clear-drops[hidden] { display: none; }
.drop { position: absolute; font-size: 40px; line-height: 1; transform: translate(-50%, -50%) rotate(var(--r)); animation: land .35s cubic-bezier(.2,.9,.3,1.4); pointer-events: none; }
@keyframes land { from { transform: translate(-50%, -50%) rotate(var(--r)) scale(0); } }
.skeleton { display: inline-block; background: var(--grid); border-radius: 8px; color: transparent; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero h1 { white-space: normal; } }
@media (prefers-reduced-motion: reduce) { .caret, .term-body .tcaret { animation: none; } }
/* Birthday card */
.bday { position: relative; z-index: 3; width: 100%; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); cursor: default; overflow: visible; }
.bday:empty { display: none; }
.bday .win-bar { cursor: default; font-size: 0.85rem; padding: 0.3rem 0.6rem; }
.bday-body { display: flex; gap: 0.85rem; align-items: center; padding: 1rem 0.9rem 0.85rem; }
.bday-name { margin: 0; font-weight: 800; font-size: 1.05rem; line-height: 1.2; letter-spacing: -0.01em; }
.bday-when { margin: 0.15rem 0 0; font-size: 0.86rem; color: var(--muted); }
.bday-when a { font-weight: 700; color: var(--ink); }
.bday-more { margin: 0.2rem 0 0; font-size: 0.78rem; font-weight: 700; color: var(--blue); }
@media (prefers-color-scheme: dark) { .bday-more { color: var(--blue-soft); } }
.bday.today { animation: wiggle 1.6s ease-in-out 2; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-1.5deg); } 75% { transform: rotate(1.5deg); } }
.bday .avatar { width: 52px; height: 52px; font-size: 1.1rem; }

/* Avatars and the party hat */
.avatar { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--line); object-fit: cover; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; color: var(--ink); background: var(--canvas); }
.avatar-wrap { position: relative; flex: none; width: max-content; }
.avatar-wrap .hat { position: absolute; width: 30px; height: 37px; left: 50%; top: -26px; transform: translateX(-30%) rotate(14deg); pointer-events: none; filter: drop-shadow(1px 1px 0 rgba(0,0,0,.25)); }
.avatar-wrap.party .avatar { box-shadow: 0 0 0 3px var(--sun); }
.avatar-wrap .crown { position: absolute; width: 34px; height: 24px; left: 50%; top: -17px; transform: translateX(-50%) rotate(-8deg); pointer-events: none; filter: drop-shadow(1px 1px 0 rgba(0,0,0,.25)); }
.avatar-wrap.lead .avatar { box-shadow: 0 0 0 3px var(--sun); }
.win.is-lead .win-body { padding-bottom: 0.9rem; }

/* Team desk */
.desk {
  position: relative; height: 460px;
  border: 2px solid var(--line); border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 50%, transparent);
  overflow: hidden;
}
.win {
  position: absolute; width: 250px;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  touch-action: none;
}
.win.dragging { box-shadow: 7px 7px 0 var(--line); }
.win-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.32rem 0.65rem; border-bottom: 2px solid var(--line);
  border-radius: 8px 8px 0 0; cursor: grab; user-select: none;
  font-weight: 700; font-size: 0.9rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.win.dragging .win-bar { cursor: grabbing; }
.win-bar .dots { display: flex; gap: 4px; flex: none; }
.win-bar .dots i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); }
.win-body { padding: 0.85rem 0.85rem 0.6rem; display: grid; grid-template-columns: 56px 1fr; gap: 0.75rem; align-items: center; }
.win-body .role { margin: 0; font-weight: 700; line-height: 1.25; font-size: 0.95rem; }
.win-body .fact { margin: 0.2rem 0 0; font-size: 0.84rem; color: var(--muted); line-height: 1.35; }
.win-foot { padding: 0 0.85rem 0.75rem; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.slack { display: inline-flex; align-items: center; gap: 0.3rem; flex: none; margin-left: auto; font-size: 0.78rem; font-weight: 700; text-decoration: none; color: var(--ink); padding: 0.12rem 0.55rem 0.12rem 0.45rem; border: 2px solid var(--line); border-radius: var(--radius-control); background: var(--surface); }
.slack:hover { background: var(--sun); color: #1C1E3A; }
.slack svg { width: 15px; height: 15px; }
.status { display: inline-flex; align-items: center; gap: 0.35rem; margin: 0.4rem 0 0; padding: 0.05rem 0.55rem 0.05rem 0.45rem; border-radius: var(--radius-control); font-size: 0.74rem; font-weight: 700; border: 1.5px solid currentColor; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.on { color: #0E7A45; background: #DDF8EA; }
.status.on i { background: #1FC46A; animation: ping 2s ease-out infinite; }
.status.off { color: var(--muted); background: transparent; }
@media (prefers-color-scheme: dark) { .status.on { color: #8FF0BD; background: #10382A; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(31,196,106,.6); } 80%, 100% { box-shadow: 0 0 0 6px rgba(31,196,106,0); } }
@media (prefers-reduced-motion: reduce) { .status.on i { animation: none; } }
.win-foot button { font: inherit; font-size: 0.82rem; font-weight: 700; background: none; border: none; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.c0 { background: var(--sun); } .c1 { background: var(--pink); } .c2 { background: var(--mint); }
.c3 { background: var(--blue-soft); } .c0, .c1, .c2, .c3 { color: #1C1E3A; }
@media (max-width: 760px) {
  .desk { height: auto !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.85rem; padding: 0.85rem; }
  .win { position: static; width: auto; }
  .win-bar { cursor: default; }
}

/* Results */
.tabs { margin-bottom: 0.9rem; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.9rem; }
.metric { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); overflow: hidden; }
.metric .win-bar { cursor: default; }
.metric-body { padding: 0.85rem 0.95rem 0.8rem; }
.metric .value { font-size: clamp(2.2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.metric .value small { font-size: 0.42em; letter-spacing: 0; margin-left: 0.2rem; font-weight: 700; }
.metric .goal { margin: 0.35rem 0 0.7rem; color: var(--muted); font-size: 0.85rem; }
.bars { display: flex; align-items: end; gap: 5px; height: 46px; }
.bars .bar { flex: 1; display: grid; grid-template-rows: 1fr auto; gap: 3px; height: 100%; text-align: center; }
.bars .bar i { align-self: end; display: block; border: 2px solid var(--line); border-radius: 3px 3px 0 0; background: var(--canvas); min-height: 5px; }
.bars .bar.on i { background: var(--blue); }
.bars .bar span { font-size: 0.66rem; color: var(--muted); }

/* CSAT deck */
.csat-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: clamp(1.25rem, 3.5vw, 2.75rem); align-items: center; }
@media (max-width: 860px) { .csat-layout { grid-template-columns: 1fr; } }
.deck-wrap { display: grid; justify-items: center; gap: 1rem; }
.deck { position: relative; width: min(100%, 540px); height: 330px; outline: none; }
.deck.dim { opacity: 0.55; }
.card {
  position: absolute; inset: 0;
  border: 2px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 5px 5px 0 var(--line);
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  display: flex; flex-direction: column;
  color: #1C1E3A;
  transition: transform .35s cubic-bezier(.2,.8,.3,1), opacity .35s;
  touch-action: pan-y; user-select: none;
}
.card.top { cursor: grab; }
.card.top.dragging { transition: none; cursor: grabbing; }
.card .stars { display: flex; gap: 3px; flex: none; }
.card .stars svg { width: 20px; height: 20px; }
.card blockquote { margin: 0.75rem 0 auto; font-size: clamp(1.15rem, 2.3vw, 1.5rem); font-weight: 700; line-height: 1.28; letter-spacing: -0.01em; }
.card .who { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.9rem; padding-top: 0.8rem; border-top: 2px dashed rgba(28,30,58,.3); flex: none; }
.card .who .avatar { width: 40px; height: 40px; font-size: 0.9rem; background: #fff; color: #1C1E3A; }
.card .who p { margin: 0; line-height: 1.3; font-size: 0.9rem; }
.card .who strong { display: block; }
.deck-controls { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; align-items: center; }
.deck-count { font-weight: 700; min-width: 5.5rem; text-align: center; font-variant-numeric: tabular-nums; font-size: 0.92rem; }
.csat-side h3 { margin: 0 0 0.5rem; font-size: 0.92rem; }
.csat-side .group + .group { margin-top: 1.1rem; }
.empty-card { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem; border: 2px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); }

/* Outings timeline */
.page-hero { padding: clamp(3.25rem, 7vw, 4.75rem) var(--gutter) 0.5rem; }
.page-hero h1 { margin: 0; font-size: clamp(3rem, 9vw, 7rem); line-height: 0.9; letter-spacing: -0.05em; font-weight: 800; font-variation-settings: "wdth" 78; }
.page-hero p { color: var(--muted); max-width: 52ch; margin: 0.75rem 0 0; font-size: 1.02rem; }
.timeline { position: relative; padding: 1rem var(--gutter) 3rem; }
.year { display: grid; grid-template-columns: minmax(110px, 0.5fr) 2fr; gap: clamp(1rem, 3vw, 2.25rem); padding: 1.6rem 0; border-top: 2px solid var(--line); }
.year h2 { margin: 0; font-size: clamp(2.6rem, 7vw, 5.25rem); line-height: 0.85; letter-spacing: -0.05em; font-weight: 800; font-variation-settings: "wdth" 78; position: sticky; top: 5rem; align-self: start; color: var(--blue); }
@media (prefers-color-scheme: dark) { .year h2 { color: var(--blue-soft); } }
.year .entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem 1.25rem; }
@media (max-width: 680px) { .year { grid-template-columns: 1fr; } .year h2 { position: static; } }
.polaroid {
  background: var(--surface); border: 2px solid var(--line); border-radius: 6px;
  padding: 0.65rem 0.65rem 0.9rem; box-shadow: var(--shadow);
  transform: rotate(var(--tilt, 0deg)); transition: transform .2s;
}
.polaroid:hover, .polaroid:focus-within, .polaroid:target { transform: rotate(0deg) translateY(-3px); }
.polaroid .photo { aspect-ratio: 4 / 3; border: 2px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--canvas); display: grid; place-items: center; }
.polaroid .photo img { width: 100%; height: 100%; object-fit: cover; }
.polaroid .photo .noimg { width: 52px; height: 52px; opacity: 0.6; }
.polaroid time { display: block; margin-top: 0.7rem; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.polaroid h3 { margin: 0.1rem 0 0; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.15; }
.polaroid .where { margin: 0.15rem 0 0; font-size: 0.9rem; font-weight: 600; }
.polaroid .summary { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.93rem; }
.polaroid details { margin-top: 0.65rem; }
.polaroid summary { font-weight: 700; cursor: pointer; font-size: 0.9rem; text-decoration: underline; text-underline-offset: 3px; }
.polaroid .story { margin-top: 0.4rem; font-size: 0.93rem; }
.polaroid .story p { margin: 0 0 0.5rem; }
.more { display: flex; justify-content: center; padding-top: 1.5rem; }

footer { border-top: 2px solid var(--line); padding: 1.1rem var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; color: var(--muted); font-size: 0.88rem; background: var(--surface); margin-top: 1.5rem; }
footer a { font-weight: 600; }
/* Team cards, simplified */
.win-bar { gap: 0.45rem; padding: 0.3rem 0.4rem 0.3rem 0.6rem; }
.win-bar .win-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.presence { flex: none; display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.7rem; font-weight: 700; line-height: 1.4; padding: 0 0.45rem 0 0.35rem; border-radius: var(--radius-control); background: rgba(255, 255, 255, 0.8); color: #1C1E3A; border: 1.5px solid #1C1E3A; }
.presence i { width: 7px; height: 7px; border-radius: 50%; background: #8C91B5; }
.presence.on i { background: #12B35C; animation: ping 2s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .presence.on i { animation: none; } }
.win-body { padding: 0.8rem 0.85rem; grid-template-columns: 52px 1fr; gap: 0.7rem; }
.win-body .avatar { width: 52px; height: 52px; }
.win-info { min-width: 0; }
.win-body .role { margin: 0; font-size: 0.92rem; }
.win-body .hours { display: flex; align-items: center; gap: 0.3rem; margin: 0.25rem 0 0; font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-body .hours svg { width: 13px; height: 13px; flex: none; }
.win-body .hours span { overflow: hidden; text-overflow: ellipsis; }
.win-foot { padding: 0.45rem 0.55rem 0.5rem 0.85rem; border-top: 2px dashed color-mix(in srgb, var(--muted) 35%, transparent); display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 2.6rem; }
.win-foot .kudos-btn { font-size: 0.8rem; padding: 0.2rem 0; }
.win-foot .kudos-btn:hover { color: var(--blue); }
@media (prefers-color-scheme: dark) { .win-foot .kudos-btn:hover { color: var(--blue-soft); } }
.slack-btn { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 0.3rem; height: 28px; padding: 0 0.55rem 0 0.45rem; font-size: 0.76rem; font-weight: 700; text-decoration: none; border: 2px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); box-shadow: 2px 2px 0 var(--line); transition: transform .08s, box-shadow .08s; }
.slack-btn:hover { background: var(--sun); color: #1C1E3A; transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.slack-btn svg { width: 15px; height: 15px; flex: none; }
.win.is-lead .win-body { padding-bottom: 0.8rem; }

/* Ask Tech Mate */
.term-body { max-height: 19em; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3A3E62 transparent; }
.term:focus-within { box-shadow: 0 0 0 3px var(--sun), var(--shadow); }
.prompt-row { display: flex; align-items: center; gap: 0.55em; cursor: text; }
.term-input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 0; color: #FFFFFF; font: inherit; caret-color: #FFD54A; }
.term-input::placeholder { color: #6B7099; }
@media (hover: none) { .term-input { font-size: 16px; } }
.term-body .ans { display: grid; grid-template-columns: 1.1em minmax(0, 1fr) auto auto; gap: 0.6em; align-items: baseline; }
.term-body .ans .who { color: #FFFFFF; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-body .dot.off { color: #6B7099; }
.term-link { color: #9AD0FF; text-decoration: underline; text-underline-offset: 2px; }
.term-link:hover { color: #FFD54A; }
.term-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; padding: 0 0.95rem 0.85rem; }
.term-chips[hidden] { display: none; }
.term-chips span { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.72rem; color: #8C91B5; margin-right: 0.15rem; }
.term-chip { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.74rem; color: #DDE1FF; background: #1C1F3D; border: 1.5px solid #3A3E62; border-radius: var(--radius-control); padding: 0.08rem 0.6rem; cursor: pointer; }
.term-chip:hover, .term-chip:focus-visible { background: #FFD54A; color: #1C1E3A; border-color: #FFD54A; }
.shortcuts a.ask-key kbd { background: #1C1E3A; color: #FFD54A; }
.win-body .skills { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0.4rem 0 0; }
.win-body .skills button { font: inherit; font-size: 0.68rem; font-weight: 700; line-height: 1.5; padding: 0 0.5rem; border-radius: var(--radius-control); border: 1.5px solid var(--line); background: var(--canvas); color: var(--ink); cursor: pointer; }
.win-body .skills button:hover { background: var(--sun); color: #1C1E3A; }

/* Announcements */
.notice-wrap { margin: 2.4rem var(--gutter) 0; position: relative; z-index: 5; }
.notice-wrap[hidden] { display: none; }
.notice-wrap:not([hidden]) + .hero, .notice-wrap:not([hidden]) + .page-hero { padding-top: clamp(1.5rem, 3vw, 2.25rem); }
.notice { display: flex; align-items: center; gap: 0.65rem; padding: 0.4rem 0.45rem 0.4rem 0.7rem; background: var(--surface); color: var(--ink); border: 2px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); font-size: 0.9rem; }
.notice.important { background: #FFE1E5; color: #1C1E3A; }
@media (prefers-color-scheme: dark) { .notice.important { background: #3B1622; color: #FFE1E5; } }
.notice-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--sun); color: #1C1E3A; border: 2px solid var(--line); }
.notice.important .notice-icon { background: #E8394B; color: #FFFFFF; }
.notice-icon svg { width: 16px; height: 16px; }
.notice-text { flex: 1; min-width: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-text span, .notice-list span { opacity: 0.85; }
.notice-text a, .notice-list a { font-weight: 700; color: inherit; }
.notice-tag { display: inline-block; margin-right: 0.45rem; padding: 0 0.45rem; border-radius: var(--radius-control); background: #E8394B; color: #FFFFFF; font-size: 0.7rem; font-weight: 800; vertical-align: 0.08em; }
.notice-more, .notice-close { flex: none; font: inherit; font-weight: 700; color: inherit; background: transparent; border: 1.5px solid currentColor; border-radius: var(--radius-control); cursor: pointer; }
.notice-more { font-size: 0.76rem; padding: 0.05rem 0.6rem; }
.notice-close { width: 26px; height: 26px; font-size: 1rem; line-height: 1; display: grid; place-items: center; border-radius: 8px; }
.notice-more:hover, .notice-close:hover { background: var(--sun); color: #1C1E3A; border-color: var(--line); }
.notice-list { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.notice-list[hidden] { display: none; }
.notice-list li { padding: 0.4rem 0.75rem; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-md); font-size: 0.86rem; }
.notice-list li.important { background: #FFE1E5; color: #1C1E3A; }
@media (prefers-color-scheme: dark) { .notice-list li.important { background: #3B1622; color: #FFE1E5; } }
@media (max-width: 700px) { .notice-text { white-space: normal; } .notice { align-items: flex-start; } }
.term-body .warn { color: #FF6B7A; font-weight: 700; }

/* Outings: organizer and photo gallery */
.polaroid button.photo { width: 100%; padding: 0; font: inherit; cursor: zoom-in; }
.polaroid button.photo img { transition: transform .3s; }
.polaroid button.photo:hover img { transform: scale(1.03); }
.organizer { display: flex; align-items: center; gap: 0.4rem; margin: 0.45rem 0 0; font-size: 0.82rem; color: var(--muted); }
.organizer strong { color: var(--ink); }
.organizer img, .org-initials { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); object-fit: cover; flex: none; }
.org-initials { display: grid; place-items: center; background: var(--sun); color: #1C1E3A; font-size: 0.58rem; font-weight: 800; }
.see-photos { margin-top: 0.8rem; display: inline-flex; align-items: center; gap: 0.35rem; font: inherit; font-size: 0.86rem; font-weight: 700; padding: 0.28rem 0.85rem; border: 2px solid var(--line); border-radius: var(--radius-control); background: var(--sun); color: #1C1E3A; box-shadow: 2px 2px 0 var(--line); cursor: pointer; transition: transform .08s, box-shadow .08s; }
.see-photos span { opacity: 0.7; font-weight: 600; }
.see-photos:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.gallery { padding: 0; width: min(94vw, 1000px); max-height: 94vh; border: 2px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); box-shadow: 6px 6px 0 var(--line); overflow: hidden; }
.gallery::backdrop { background: rgba(10, 11, 30, 0.75); }
.gallery .win-bar { cursor: default; }
.g-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-count { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.75rem; font-weight: 700; }
.g-close { width: 28px; height: 28px; display: grid; place-items: center; font: inherit; font-size: 1.15rem; line-height: 1; border: 2px solid #1C1E3A; border-radius: 8px; background: #FFFFFF; color: #1C1E3A; cursor: pointer; }
.g-stage { position: relative; display: grid; place-items: center; height: min(66vh, 620px); background: #0F1124; }
.g-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; display: grid; place-items: center; font-size: 1.7rem; line-height: 1; border: 2px solid #1C1E3A; border-radius: 50%; background: #FFD54A; color: #1C1E3A; box-shadow: 2px 2px 0 #1C1E3A; cursor: pointer; }
.g-nav.prev { left: 12px; }
.g-nav.next { right: 12px; }
.g-caption { margin: 0; padding: 0.5rem 0.9rem 0; font-size: 0.88rem; color: var(--muted); }
.g-caption:empty { display: none; }
.g-thumbs { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.6rem 0.8rem 0.8rem; }
.g-thumbs button { flex: none; width: 80px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; opacity: 0.6; cursor: pointer; }
.g-thumbs button[aria-current="true"] { border-color: var(--sun); opacity: 1; }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Team meetings */
.meetings { padding: 1rem var(--gutter) 3rem; }
.m-month { padding: 1.25rem 0; border-top: 2px solid var(--line); }
.m-month h2 { margin: 0 0 0.9rem; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--blue); }
@media (prefers-color-scheme: dark) { .m-month h2 { color: var(--blue-soft); } }
.m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.meeting { display: flex; flex-direction: column; padding: 0; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); overflow: hidden; cursor: pointer; transition: transform .1s, box-shadow .1s; }
.meeting:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--line); }
.meeting .win-bar { width: 100%; cursor: pointer; }
.m-date { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.8rem; }
.m-body { flex: 1; display: flex; flex-direction: column; gap: 0.35rem; padding: 0.85rem 0.95rem 0.8rem; }
.m-title { font-size: 1.12rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.m-summary { color: var(--muted); font-size: 0.9rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.m-foot { margin-top: auto; padding-top: 0.6rem; display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.8rem; font-weight: 700; color: var(--muted); border-top: 2px dashed color-mix(in srgb, var(--muted) 35%, transparent); }
.m-open { color: var(--ink); }
.meeting:hover .m-open { color: var(--blue); }
@media (prefers-color-scheme: dark) { .meeting:hover .m-open { color: var(--sun); } }
.meeting-dialog { padding: 0; width: min(94vw, 680px); max-height: 88vh; border: 2px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); box-shadow: 6px 6px 0 var(--line); overflow: hidden; }
.meeting-dialog[open] { display: flex; flex-direction: column; }
.meeting-dialog::backdrop { background: rgba(10, 11, 30, 0.75); }
.meeting-dialog .win-bar { cursor: default; flex: none; }
.md-body { overflow-y: auto; padding: 1.1rem 1.3rem 1.4rem; }
.md-body h2 { margin: 0 0 0.35rem; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.md-summary { margin: 0 0 0.9rem; color: var(--muted); }
.md-topics h1, .md-topics h2, .md-topics h3, .md-topics h4 { display: flex; align-items: center; gap: 0.5rem; margin: 1.1rem 0 0.4rem; font-size: 1rem; font-weight: 800; letter-spacing: 0; }
.md-topics h1::before, .md-topics h2::before, .md-topics h3::before, .md-topics h4::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--sun); border: 2px solid var(--line); }
.md-topics > :first-child { margin-top: 0; }
.md-topics ul, .md-topics ol { margin: 0; padding-left: 1.25rem; }
.md-topics li { margin: 0.25rem 0; }
.md-topics p { margin: 0.4rem 0; }
.md-topics a { font-weight: 700; }

/* Meetings soft lock */
.lock-bar { margin-top: 0.9rem; min-height: 1.9rem; }
.lock-bar .btn svg, .lock-link svg, .m-lock-pill svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 0.35rem; }
.lock-link { font: inherit; font-size: 0.82rem; font-weight: 700; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lock-link:hover { color: var(--ink); }
.m-locked { position: relative; display: block; }
.m-blur { display: block; color: var(--muted); font-size: 0.9rem; line-height: 1.45; filter: blur(5px); user-select: none; pointer-events: none; }
.m-lock-pill { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; font-size: 0.82rem; font-weight: 800; padding: 0.25rem 0.8rem; border: 2px solid var(--line); border-radius: var(--radius-control); background: var(--sun); color: #1C1E3A; box-shadow: 2px 2px 0 var(--line); white-space: nowrap; }
.meeting:hover .m-lock-pill { transform: translate(-50%, -50%) translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.unlock-dialog { width: min(94vw, 440px); }
.unlock-body { display: grid; gap: 0.6rem; padding: 1.3rem 1.4rem 1.4rem; text-align: left; }
.unlock-body h2 { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.unlock-body p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.unlock-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--line); background: var(--sun); color: #1C1E3A; }
.unlock-icon svg { width: 20px; height: 20px; }
.unlock-field { display: grid; gap: 0.3rem; margin-top: 0.3rem; font-size: 0.85rem; font-weight: 700; }
.unlock-field input { font: inherit; font-size: 1rem; font-weight: 500; color: var(--ink); background: var(--canvas); border: 2px solid var(--line); border-radius: 10px; padding: 0.55rem 0.75rem; }
.unlock-field input:focus { outline: 3px solid var(--sun); outline-offset: 1px; }
.unlock-field input[aria-invalid="true"] { border-color: #E8394B; }
.unlock-body .unlock-error { color: #C2185B; font-size: 0.88rem; font-weight: 700; }
@media (prefers-color-scheme: dark) { .unlock-body .unlock-error { color: #FF9CC8; } }
.unlock-body .btn { justify-self: start; margin-top: 0.3rem; }

/* Next meeting card */
.bday[hidden] { display: none; }
.nm-cal { flex: none; width: 52px; overflow: hidden; text-align: center; background: var(--surface); border: 2px solid var(--line); border-radius: 10px; box-shadow: 2px 2px 0 var(--line); }
.nm-month { display: block; padding: 0.1rem 0; background: #E8394B; color: #FFFFFF; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.nm-day { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1.45; color: var(--ink); }
.nm-join { display: inline-block; margin-top: 0.35rem; font-size: 0.8rem; font-weight: 700; color: var(--ink); }
.meetings-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: start; }
.page-next { width: 250px; margin-top: 0.4rem; }
.page-next .win-bar { font-size: 0.76rem; padding: 0.22rem 0.5rem; }
.page-next .win-bar .dots i { width: 8px; height: 8px; }
.page-next .nm-body { gap: 0.6rem; padding: 0.55rem 0.65rem 0.6rem; }
.page-next .nm-cal { width: 40px; border-radius: 8px; }
.page-next .nm-month { font-size: 0.56rem; padding: 0.05rem 0; }
.page-next .nm-day { font-size: 1.05rem; line-height: 1.4; }
.page-next .bday-name { font-size: 0.9rem; }
.page-next .bday-when { font-size: 0.78rem; margin-top: 0.05rem; }
.page-next .bday-more { font-size: 0.7rem; margin-top: 0.05rem; }
@media (max-width: 760px) { .meetings-hero { grid-template-columns: 1fr; } .page-next { margin-top: 0; } }
.m-upcoming { margin-left: auto; padding: 0 0.5rem; border-radius: var(--radius-control); background: #1C1E3A; color: #FFD54A; font-size: 0.68rem; font-weight: 800; }

/* Compact meeting popup */
.meeting-dialog:not(.unlock-dialog) { width: min(94vw, 540px); max-height: 80vh; }
.meeting-dialog .win-bar { font-size: 0.8rem; padding: 0.25rem 0.5rem 0.25rem 0.6rem; }
.meeting-dialog .g-close { width: 24px; height: 24px; font-size: 1rem; border-radius: 7px; }
.md-body { padding: 0.85rem 1rem 1rem; font-size: 0.92rem; line-height: 1.45; }
.md-body h2 { font-size: 1.25rem; margin-bottom: 0.2rem; }
.md-summary { margin-bottom: 0.6rem; font-size: 0.88rem; }
.md-topics h1, .md-topics h2, .md-topics h3, .md-topics h4 { margin: 0.75rem 0 0.25rem; font-size: 0.92rem; }
.md-topics h1::before, .md-topics h2::before, .md-topics h3::before, .md-topics h4::before { width: 8px; height: 8px; }
.md-topics li { margin: 0.12rem 0; }
.md-topics p { margin: 0.25rem 0; }
.unlock-dialog { width: min(94vw, 380px); }
.unlock-body { gap: 0.45rem; padding: 1rem 1.1rem 1.1rem; }
.unlock-body h2 { font-size: 1.1rem; }
.unlock-body p { font-size: 0.88rem; }
.unlock-icon { width: 32px; height: 32px; border-radius: 8px; }
.unlock-icon svg { width: 16px; height: 16px; }
.unlock-field input { padding: 0.45rem 0.65rem; font-size: 0.95rem; }
.unlock-body .unlock-note { font-size: 0.74rem; opacity: 0.85; }

/* Results highlights */
.highlights { display: grid; gap: 0.5rem; margin: 0 0 0.9rem; }
.highlights[hidden] { display: none; }
.highlight { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.8rem; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); font-size: 0.9rem; }
.highlight p { margin: 0; line-height: 1.35; }
.highlight strong { margin-right: 0.2rem; }
.hl-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--line); background: var(--sun); color: #1C1E3A; }
.hl-icon svg { width: 17px; height: 17px; }
.hl-faces { flex: none; display: flex; }
.hl-faces img, .hl-faces span { width: 30px; height: 30px; margin-left: -8px; border-radius: 50%; border: 2px solid var(--line); object-fit: cover; background: var(--canvas); display: grid; place-items: center; font-size: 0.65rem; font-weight: 800; color: var(--ink); }
.hl-faces > :first-child { margin-left: 0; }
@media (max-width: 600px) { .highlight { align-items: flex-start; } }
.hl-celebrate { flex: none; margin-left: auto; font: inherit; font-size: 0.82rem; font-weight: 800; padding: 0.3rem 0.85rem; border: 2px solid var(--line); border-radius: var(--radius-control); background: var(--sun); color: #1C1E3A; box-shadow: 2px 2px 0 var(--line); cursor: pointer; transition: transform .08s, box-shadow .08s; white-space: nowrap; }
.hl-celebrate:hover { transform: translate(-1px, -1px) rotate(-2deg); box-shadow: 3px 3px 0 var(--line); }
.hl-celebrate:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--line); }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }
@media (max-width: 600px) { .highlight { flex-wrap: wrap; } .hl-celebrate { margin-left: 0; } }
