@import url("/assets/tokens.css");
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .16; background-image: radial-gradient(#677589 .5px, transparent .5px); background-size: 8px 8px; z-index: -1; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--mint); }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--mint); outline-offset: 5px; }
.site-header { max-width: 1120px; padding: 29px 32px; margin: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font: bold 18px var(--pixel); letter-spacing: 1px; }
.brand img, .hero-art img, .expired-panel img { image-rendering: pixelated; }
.brand-light { color: var(--mint); margin-left: 5px; }
.edition, .eyebrow, .step-badge, .join-panel label, .site-footer > span { font: 11px var(--pixel); letter-spacing: 1.8px; }
.edition { color: var(--muted); }
.edition span { color: var(--gold); padding: 0 8px; }
main { max-width: 1060px; margin: auto; padding: 0 32px; min-height: 65vh; }
.landing { text-align: center; padding-top: 66px; }
.eyebrow { color: var(--mint); display: flex; gap: 10px; align-items: center; }
.landing > .eyebrow { justify-content: center; }
.tiny-square { display: inline-block; width: 6px; height: 6px; background: var(--mint); box-shadow: 0 0 12px #8fe3be30; flex-shrink: 0; }
h1 { font-size: clamp(38px, 5vw, 66px); letter-spacing: -2.5px; line-height: 1.12; margin: 24px 0 18px; font-weight: 750; }
.highlight { color: var(--mint); }
.intro { color: var(--muted); font-size: 16px; line-height: 1.8; }
.hero-art { margin: 20px auto -4px; max-width: 560px; }
.hero-art img { width: 100%; height: auto; display: block; }
.join-panel { max-width: 560px; margin: auto; text-align: left; padding: 26px 28px 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: 4px 4px 0 #080c13; }
.join-panel label { color: var(--text); display: block; margin-bottom: 14px; }
.join-row { display: flex; gap: 12px; }
input { min-width: 0; flex: 1; width: 100%; padding: 12px 14px; border: 1px solid #3b4658; border-radius: 0; background: var(--bg); color: var(--text); font-family: var(--pixel); font-size: 14px; }
input::placeholder { color: #8492a8; }
.primary { background: var(--mint); color: #102b21; border: 1px solid var(--mint); box-shadow: 3px 3px 0 #385b4e; padding: 12px 20px; font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .15s, transform .15s; }
.primary:hover { background: #aff3d5; }
.primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #385b4e; }
.primary:disabled { opacity: .55; cursor: wait; }
.primary span { margin-left: 10px; }
.small { font-size: 12px; color: var(--muted); }
.error { color: #ffb8a9; font-size: 14px; }
.error:empty { display: none; }
.success { color: var(--mint); font-size: 13px; }
.feature-row { display: flex; justify-content: center; gap: 28px; font-size: 12px; color: var(--muted); margin: 31px 0 0; }
.feature-row b { color: var(--gold); padding-right: 7px; font-size: 9px; }
.site-footer { max-width: 1060px; margin: 58px auto 0; padding: 25px 32px 28px; text-align: center; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer > span { font-size: 9px; }
.site-footer p { font-size: 11px; line-height: 1.7; margin: 12px 0 0; }
.team-screen { padding-top: 24px; }
.team-nav { display: flex; justify-content: space-between; align-items: center; }
.back-link, .quiet { color: var(--muted); font-size: 13px; }
.quiet { padding: 8px 12px; background: transparent; border: 1px solid var(--line); }
.quiet:hover { color: var(--mint); border-color: var(--mint); }
#share-message { text-align: right; min-height: 20px; margin-top: 6px; overflow-wrap: anywhere; }
.team-heading { display: flex; justify-content: space-between; align-items: center; padding: 17px 0 25px; border-bottom: 1px solid var(--line); margin-bottom: 30px; gap: 16px; }
.team-heading h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -1px; margin: 12px 0 0; overflow-wrap: anywhere; }
.connection { font: 11px var(--pixel); color: var(--muted); display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.connection .offline { background: var(--gold); }
.section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 22px; }
h2 { font-size: 23px; line-height: 1.3; letter-spacing: -.5px; margin: 0 0 9px; }
.section-heading p { color: var(--muted); font-size: 14px; margin: 0; }
.step-badge { border: 1px solid var(--line); color: var(--muted); padding: 8px 10px; white-space: nowrap; font-size: 9px; }
.meter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.meter-card, .compact-meter { --meter: var(--mint); --meter-gloss: linear-gradient(to bottom, var(--meter) 0 28%, color-mix(in srgb, var(--meter) 45%, white) 28% 46%, var(--meter) 46% 68%, color-mix(in srgb, var(--meter) 75%, #10141f) 68% 84%, color-mix(in srgb, var(--meter) 50%, #10141f) 84% 100%); }
.meter-card { background: var(--panel); border: 1px solid var(--line); padding: 24px; border-top: 2px solid var(--meter); box-shadow: 3px 3px 0 #080c13; min-width: 0; }
.meter-card.time, .compact-meter.time { --meter: var(--blue); }
.meter-card.energy, .compact-meter.energy { --meter: var(--gold); }
.meter-card.enthusiasm, .compact-meter.enthusiasm { --meter: var(--pink); }
.meter-card.clarity, .compact-meter.clarity { --meter: var(--mint); }
.meter-header { display: flex; align-items: center; gap: 12px; }
.meter-icon { width: 40px; height: 40px; display: grid; place-items: center; background: #ffffff05; border: 1px solid #ffffff12; color: var(--meter); }
.meter-icon svg { width: 25px; height: 25px; shape-rendering: crispEdges; fill: currentColor; }
.meter-header h3, legend { font-size: 17px; font-weight: 650; margin: 0; padding: 0; }
.meter-description { color: var(--muted); font-size: 13px; margin: 16px 0 22px; min-height: 20px; }
fieldset { border: 0; padding: 0; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.slider-stage { position: relative; }
.slider-stage.previewing .health-fill { filter: brightness(1.2); }
.score-slider { appearance: none; -webkit-appearance: none; position: absolute; inset: 0; width: 100%; height: 42px; padding: 0; margin: 0; border: 0; background: transparent; cursor: grab; touch-action: pan-y; }
.score-slider:active { cursor: grabbing; }
.score-slider::-webkit-slider-runnable-track { height: 24px; background: transparent; }
.score-slider::-moz-range-track { height: 24px; background: transparent; }
.score-slider::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 24px; height: 32px; margin-top: -4px; border: 4px solid #05070d; border-radius: 0; background: linear-gradient(to right, var(--meter) 0 35%, #e8edf5 35% 65%, var(--meter) 65% 100%); box-shadow: 0 0 0 2px var(--meter); }
.score-slider::-moz-range-thumb { width: 16px; height: 24px; border: 4px solid #05070d; border-radius: 0; background: linear-gradient(to right, var(--meter) 0 35%, #e8edf5 35% 65%, var(--meter) 65% 100%); box-shadow: 0 0 0 2px var(--meter); }
.score-slider[data-unset="true"]::-webkit-slider-thumb { background: #8994a8; box-shadow: 0 0 0 2px #8994a8; }
.score-slider[data-unset="true"]::-moz-range-thumb { background: #8994a8; box-shadow: 0 0 0 2px #8994a8; }
.party-feedback { display: flex; gap: 20px; align-items: center; padding: 12px 20px; margin: 0 0 22px; border: 1px solid var(--line); background: #8fe3be05; }
.party-feedback img { width: 180px; height: auto; image-rendering: pixelated; flex-shrink: 0; transform-origin: bottom; transition: filter .2s, transform .2s; }
.party-feedback p { margin: 8px 0 4px; font-size: 14px; }
.party-feedback[data-level="1"] img { transform: translateY(3px); filter: sepia(.25); }
.party-feedback[data-level="2"] img { transform: rotate(-2deg); }
.party-feedback[data-level="4"] img { filter: drop-shadow(0 0 8px #8fe3be40); animation: party-hop 1s steps(2, end) infinite; }
.party-feedback[data-level="5"] img { filter: drop-shadow(0 0 10px #e9c16b60); animation: party-hop .55s steps(2, end) infinite; }
@keyframes party-hop { 50% { transform: translateY(-5px); } }
.scale-ends { display: flex; justify-content: space-between; color: var(--muted); font: 9px var(--pixel); margin-top: 10px; letter-spacing: .4px; }
.selection-note { font-size: 12px; color: var(--meter); min-height: 38px; margin: 17px 0 0; }
.selection-note.empty { color: var(--muted); }
.scale-guide { margin-top: 8px; font-size: 12px; color: var(--muted); }
.scale-guide summary { cursor: pointer; width: fit-content; padding: 3px 0; }
.scale-guide ol { padding-left: 23px; margin-bottom: 0; }
.scale-guide li { margin-top: 7px; }
.scale-guide b { color: var(--text); }
.confirm-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 24px; }
.confirm-row p { color: var(--muted); font-size: 13px; }
.confirm-actions { display: flex; align-items: center; gap: 12px; }
.viewing-party .team-heading { padding-bottom: 18px; margin-bottom: 22px; }
.viewing-party .team-heading h1 { font-size: 26px; }
#live { max-width: 640px; margin: auto; }
.overview-area { padding: 22px 16px; border: 1px solid var(--line); background: #8fe3be03; text-align: center; }
.party-card { width: 300px; max-width: 100%; aspect-ratio: 3 / 1; padding: 8px; margin: auto; display: grid; grid-template-rows: 12px minmax(0, 1fr); gap: 6px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--pixel); line-height: 1; }
.party-card-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: bold; min-width: 0; }
#card-team { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card-replies { white-space: nowrap; color: var(--mint); }
.compact-meters { display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 2px; }
.compact-meter { display: grid; grid-template-columns: 72px minmax(0, 1fr) 42px; gap: 6px; align-items: center; min-width: 0; }
.compact-label { font-size: 10px; color: var(--meter); text-align: left; }
.average-number { font: 10px var(--pixel); color: var(--meter); white-space: nowrap; text-align: right; }
.average-number small { color: var(--muted); font: inherit; }
.overview-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.overview-area > .small { margin: 14px 0 0; }
.overview-actions .primary:disabled { cursor: not-allowed; }
.health-track { flex: 1; min-width: 0; height: 42px; padding: 8px 12px; background: #05070d; position: relative; clip-path: polygon(12px 0, calc(100% - 12px) 0, calc(100% - 12px) 6px, calc(100% - 6px) 6px, calc(100% - 6px) 12px, 100% 12px, 100% calc(100% - 12px), calc(100% - 6px) calc(100% - 12px), calc(100% - 6px) calc(100% - 6px), calc(100% - 12px) calc(100% - 6px), calc(100% - 12px) 100%, 12px 100%, 12px calc(100% - 6px), 6px calc(100% - 6px), 6px calc(100% - 12px), 0 calc(100% - 12px), 0 12px, 6px 12px, 6px 6px, 12px 6px); }
.health-track::before { content: ""; position: absolute; inset: 8px 12px; background: linear-gradient(to bottom, #303547 0 28%, #646a7d 28% 46%, #303547 46% 68%, #252a3b 68% 84%, #1b2030 84% 100%); }
.health-fill { position: relative; background: var(--meter-gloss); height: 100%; width: 0%; transition: width .4s ease; }
.health-track::after { content: ""; position: absolute; inset: 8px 12px; background: repeating-linear-gradient(to right, transparent 0, transparent calc(20% - 5px), #05070d calc(20% - 5px), #05070d 20%); pointer-events: none; }
.compact-meter .health-track { height: 12px; padding: 3px 4px; clip-path: polygon(2px 0, calc(100% - 2px) 0, calc(100% - 2px) 2px, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 2px calc(100% - 2px), 0 calc(100% - 2px), 0 2px, 2px 2px); }
.compact-meter .health-track::before { inset: 3px 4px; }
.compact-meter .health-track::after { inset: 3px 4px; background: repeating-linear-gradient(to right, transparent 0, transparent calc(20% - 2px), #05070d calc(20% - 2px), #05070d 20%); }
.panel { background: var(--panel); border: 1px solid var(--line); padding: 32px; }
.panel p { color: var(--muted); }
.expired-panel { text-align: center; padding: 30px 20px 40px; }
.expired-panel .eyebrow { justify-content: center; margin: 14px 0 18px; }
.expired-panel .primary { margin-top: 16px; }
.error-panel { padding: 12px 16px; border: 1px solid #ffb8a950; background: #ffb8a908; margin-bottom: 20px; }
@media (max-width: 650px) {
  .site-header { padding: 22px 20px; }
  .edition { display: none; }
  main { padding: 0 20px; }
  .landing { padding-top: 42px; }
  h1 { letter-spacing: -1.5px; }
  .intro { font-size: 14px; }
  .desktop-break { display: none; }
  .join-panel { padding: 20px; }
  .join-row { flex-direction: column; }
  .feature-row { gap: 10px; flex-wrap: wrap; font-size: 10px; }
  .site-footer { margin-top: 40px; padding: 22px 20px; }
  .meter-grid { grid-template-columns: 1fr; gap: 16px; }
  .meter-card { padding: 20px; }
  .team-heading { align-items: flex-start; flex-direction: column; }
  .team-heading h1 { max-width: 100%; }
  .section-heading { align-items: flex-start; }
  .step-badge { display: none; }
  .confirm-row { align-items: stretch; flex-direction: column; gap: 8px; }
  .confirm-actions { flex-wrap: wrap; justify-content: flex-end; }
  .confirm-actions .primary { flex-grow: 1; }
  .party-feedback { flex-direction: column; text-align: center; gap: 8px; padding: 12px; }
  .party-feedback .eyebrow { justify-content: center; }
  .overview-area { padding: 16px 8px; }
  .team-nav { gap: 10px; }
  .quiet { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
