/* vaur.io stylesheet
   One file for every page. Order: tokens, base, header, buttons, home,
   library, covers, vibe meter, game page, vibe page, forms, footer. */

/* Tokens ------------------------------------------------------------------ */
:root {
  --bg: #f6f5f1;
  --surface: #fffefb;
  --surface-2: #edebe5;
  --ink: #161616;
  --ink-2: #3b3a37;
  --muted: #74716a;
  --line: #e2dfd7;
  --line-strong: #ccc8be;
  --focus: #3e6fa8;
  --star: #c48f22;
  --live: #2f9e5b;

  /* Vibe scale: a cool ramp, no level reads as a warning */
  --v0: #3f7d5a;
  --v1: #3a7f86;
  --v2: #3e6fa8;
  --v3: #5a5ec4;
  --v4: #8556c9;

  --radius: 4px;
  --radius-sm: 3px;
  --max: 1200px;
  --header-h: 60px;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, Consolas, "Courier New", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111110;
    --surface: #191918;
    --surface-2: #242220;
    --ink: #efede7;
    --ink-2: #cdcac2;
    --muted: #8e8a81;
    --line: #2b2927;
    --line-strong: #3d3a36;
    --focus: #8fb0e0;
    --star: #ddb04e;
    --live: #4ade80;
    --v0: #6fbf8f;
    --v1: #5fb7bd;
    --v2: #77a4dd;
    --v3: #8c8ff0;
    --v4: #b28cf0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111110;
  --surface: #191918;
  --surface-2: #242220;
  --ink: #efede7;
  --ink-2: #cdcac2;
  --muted: #8e8a81;
  --line: #2b2927;
  --line-strong: #3d3a36;
  --focus: #8fb0e0;
  --star: #ddb04e;
  --live: #4ade80;
  --v0: #6fbf8f;
  --v1: #5fb7bd;
  --v2: #77a4dd;
  --v3: #8c8ff0;
  --v4: #b28cf0;
  color-scheme: dark;
}

/* Base -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
::selection { background: var(--ink); color: var(--bg); }
code { font-family: var(--mono); font-size: .88em; padding: 1px 4px; border-radius: var(--radius-sm); background: var(--surface-2); }

.title-xl { font-size: clamp(34px, 5vw, 58px); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; }
.h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lede { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Layout & header --------------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { font-size: 22px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.brand span { color: var(--muted); font-weight: 500; }

.nav { display: flex; gap: 4px; }
.nav a { padding: 6px 10px; border-radius: var(--radius); font-size: 14px; color: var(--muted); white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

@media (max-width: 820px) {
  .site-header__inner { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 8px; gap: 8px 16px; }
  .nav { order: 3; width: calc(100% + 20px); margin: 0 -10px; overflow-x: auto; scrollbar-width: none; }
  .hide-sm { display: none !important; }
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, opacity .15s;
}
.btn svg { width: 15px; height: 15px; }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { opacity: .85; }
.btn--ghost { background: transparent; border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--lg { height: 42px; padding: 0 18px; font-size: 15px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 16px; height: 16px; }

.icon-sun { display: none !important; }
:root[data-theme="dark"] .icon-sun { display: block !important; }
:root[data-theme="dark"] .icon-moon { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block !important; }
  :root:not([data-theme="light"]) .icon-moon { display: none !important; }
}

.link { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--ink); }

/* Home -------------------------------------------------------------------- */
.hero { padding: 72px 0 48px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.hero .title-xl { margin-bottom: 18px; max-width: 16ch; }
.hero .lede { margin: 0; }
@media (max-width: 900px) {
  .hero { padding: 44px 0 32px; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
}

.scale { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.scale__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.scale__head a { font-size: 13px; }
.scale__track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin: 16px 0 8px; }
.scale__track span { height: 6px; border-radius: 1px; }
.scale__track span:nth-child(1) { background: var(--v0); }
.scale__track span:nth-child(2) { background: var(--v1); }
.scale__track span:nth-child(3) { background: var(--v2); }
.scale__track span:nth-child(4) { background: var(--v3); }
.scale__track span:nth-child(5) { background: var(--v4); }
.scale__labels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; font-size: 12px; color: var(--ink-2); }
.scale__note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Block padding only, so .container's side gutters survive when both classes sit on one element. */
.section { padding-block: 48px; }
.section--tight { padding-block: 16px 24px; }
.section__head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 20px; }
.section__head p { margin: 6px 0 0; color: var(--muted); }

.featured {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.featured .cover { aspect-ratio: auto; min-height: 340px; border-radius: 0; }
.featured .cover::after { display: none; }
.featured .cover__glyph { font-size: 120px; left: 24px; bottom: 10px; }
.featured__body { display: flex; flex-direction: column; gap: 14px; padding: 32px; }
.featured__body p { margin: 0; color: var(--ink-2); }
.featured__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.featured__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
@media (max-width: 820px) {
  .featured { grid-template-columns: 1fr; }
  .featured .cover { min-height: 200px; }
  .featured .cover__glyph { font-size: 88px; }
  .featured__body { padding: 22px; }
}

.note-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.note-band p { margin: 4px 0 0; color: var(--muted); }
@media (max-width: 640px) { .note-band { padding: 22px 18px; } }

/* Library ----------------------------------------------------------------- */
.toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.toolbar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar__end { margin-left: auto; }
.result-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) { .toolbar__end { margin-left: 0; } }

.search { position: relative; flex: 1 1 280px; }
.search svg { position: absolute; left: 12px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--ink); }

.segmented { display: inline-flex; padding: 2px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.segmented button {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select {
  height: 38px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 13.5px;
  appearance: none;
  cursor: pointer;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}
.chip:hover { border-color: var(--ink-2); }
.chip .dot { width: 8px; height: 8px; border-radius: 1px; background: var(--vc, var(--muted)); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 20px; }
.card .cover { transition: transform .25s ease; }
.card a:hover .cover { transform: translateY(-2px); }
.card__body { padding: 12px 0 0; }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card__title { font-size: 16px; font-weight: 600; }
.card__by { margin: 0; font-size: 13px; color: var(--muted); }
.card__meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }

.empty { padding: 64px 0; text-align: center; color: var(--muted); }
.empty .h2 { margin-bottom: 8px; color: var(--ink); }

/* Covers (generated, no image files) -------------------------------------- */
.cover {
  --c1: #ddd;
  --c2: #333;
  --mix: color-mix(in srgb, var(--c2) 45%, transparent);
  --mix-soft: color-mix(in srgb, var(--c2) 22%, transparent);
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background-color: var(--c1);
}
.cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); pointer-events: none; }
.cover__glyph { position: absolute; left: 14px; bottom: 8px; font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -.05em; color: var(--c2); }
.cover__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / .88);
  font-size: 11.5px;
  font-weight: 600;
  color: #1a1a1a;
}
.cover__badge .live-dot { background: #2f9e5b; }

.cover--rings   { background-image: repeating-radial-gradient(circle at 82% 118%, transparent 0 17px, var(--mix) 17px 18px); }
.cover--grid    { background-image: linear-gradient(var(--mix-soft) 1px, transparent 1px), linear-gradient(90deg, var(--mix-soft) 1px, transparent 1px); background-size: 26px 26px; background-position: -1px -1px; }
.cover--dots    { background-image: radial-gradient(var(--mix) 1.4px, transparent 1.6px); background-size: 15px 15px; }
.cover--stripes { background-image: repeating-linear-gradient(-45deg, transparent 0 13px, var(--mix-soft) 13px 14px); }
.cover--horizon { background-image: linear-gradient(to bottom, transparent 0 52%, var(--mix-soft) 52% 66%, color-mix(in srgb, var(--c2) 34%, transparent) 66% 80%, color-mix(in srgb, var(--c2) 52%, transparent) 80%); }
.cover--sun {
  background-image:
    radial-gradient(circle at 72% 44%, var(--c2) 0 17%, transparent 17.4%),
    radial-gradient(circle at 72% 44%, transparent 0 25%, var(--mix) 25% 25.5%, transparent 25.9%),
    radial-gradient(circle at 72% 44%, transparent 0 33%, var(--mix-soft) 33% 33.4%, transparent 33.8%);
}
.cover--split { background-image: linear-gradient(162deg, transparent 0 56%, color-mix(in srgb, var(--c2) 88%, transparent) 56%); }
.cover--split .cover__glyph { left: auto; right: 14px; color: var(--c1); }

/* Vibe meter, rating, tags ------------------------------------------------ */
.vibe { --vc: var(--muted); display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.vibe__meter { display: inline-flex; gap: 2px; }
.vibe__meter i { width: 8px; height: 4px; border-radius: 1px; background: var(--line-strong); }
.vibe[data-level="0"] { --vc: var(--v0); }
.vibe[data-level="1"] { --vc: var(--v1); }
.vibe[data-level="2"] { --vc: var(--v2); }
.vibe[data-level="3"] { --vc: var(--v3); }
.vibe[data-level="4"] { --vc: var(--v4); }
.vibe[data-level="0"] i:nth-child(1),
.vibe[data-level="1"] i:nth-child(2),
.vibe[data-level="2"] i:nth-child(3),
.vibe[data-level="3"] i:nth-child(4),
.vibe[data-level="4"] i:nth-child(5) { width: 14px; background: var(--vc); }
.vibe--lg .vibe__meter { gap: 3px; }
.vibe--lg .vibe__meter i, .vibe--lg[data-level] i:nth-child(n) { width: 16px; height: 6px; }

.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.rating .star { color: var(--star); }
.rating .count { color: var(--muted); font-weight: 400; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 1px; background: var(--live); }

/* Game page --------------------------------------------------------------- */
.crumbs { padding-top: 24px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 6px; }

.game-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 20px; padding: 14px 0 28px; }
.game-title { margin-bottom: 10px; font-size: clamp(36px, 5vw, 56px); font-weight: 700; line-height: 1; letter-spacing: -.035em; }
.game-by { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.game-by a { color: var(--ink); font-weight: 600; }
.game-actions { display: flex; gap: 8px; }

.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; padding-bottom: 64px; }
@media (max-width: 960px) { .game-layout { grid-template-columns: 1fr; gap: 28px; } }

.player {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #0c1519;
  color: #f2f2ee;
}
.player .cover { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; opacity: .4; }
.player .cover::after { display: none; }
.player__center { position: relative; text-align: center; padding: 0 16px; }
.play-btn {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border: 0;
  border-radius: var(--radius);
  background: #f6f5f1;
  color: #111;
  cursor: pointer;
}
.play-btn:hover { background: #fff; }
.play-btn svg { width: 24px; height: 24px; margin-left: 3px; }
.player__title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.player__sub { margin-top: 2px; font-size: 13px; color: rgb(242 242 238 / .7); }
.player__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 12.5px;
  background: rgb(0 0 0 / .4);
}
.player__bar span { display: inline-flex; align-items: center; gap: 8px; }
.player__bar .live-dot { background: #4ade80; }
@media (max-width: 520px) { .player__bar .hide-xs { display: none; } }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }

.block { padding: 36px 0; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; }
.block__title { margin: 0 0 14px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.block__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.block__head .block__title { margin: 0; }
.prose { max-width: 66ch; color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }

.keys { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 0; font-size: 14px; }
.keys dt { display: flex; gap: 4px; }
.keys dd { margin: 0; color: var(--ink-2); }
kbd {
  display: inline-block;
  min-width: 24px;
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 12px;
  text-align: center;
}

.changelog { list-style: none; margin: 0; padding: 0; }
.changelog li { display: grid; grid-template-columns: 96px 44px 1fr; gap: 12px; padding: 10px 0; font-size: 14px; border-top: 1px solid var(--line); }
.changelog li:first-child { border-top: 0; padding-top: 0; }
.changelog time { color: var(--muted); }
@media (max-width: 520px) { .changelog li { grid-template-columns: 44px 1fr; } .changelog time { grid-column: 1 / -1; } }

.review { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.review:first-of-type { border-top: 0; padding-top: 0; }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 4px; font-size: 13px; }
.review__name { font-size: 14px; font-weight: 600; }
.review p { margin: 0; color: var(--ink-2); }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius); background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--ink-2); }

.aside { display: flex; flex-direction: column; gap: 14px; align-self: start; position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 960px) { .aside { position: static; } }

.panel { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.panel__title { font-size: 15px; font-weight: 700; }

.vibe-summary { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.vibe-big { font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.vibe-avg { font-size: 13px; color: var(--muted); }

.dist { display: grid; gap: 8px; margin: 18px 0 20px; }
.dist__row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 34px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.dist__track { height: 6px; overflow: hidden; border-radius: 1px; background: var(--surface-2); }
.dist__fill { display: block; height: 100%; background: var(--vc); transition: width .4s ease; }
.dist__pct { font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
[data-bucket="0"], [data-vote="0"], .lv-0 { --vc: var(--v0); }
[data-bucket="1"], [data-vote="1"], .lv-1 { --vc: var(--v1); }
[data-bucket="2"], [data-vote="2"], .lv-2 { --vc: var(--v2); }
[data-bucket="3"], [data-vote="3"], .lv-3 { --vc: var(--v3); }
[data-bucket="4"], [data-vote="4"], .lv-4 { --vc: var(--v4); }

.vote-label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.vote-label .muted { font-weight: 400; }
.vote { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.vote button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 54px;
  padding: 0 2px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  font-size: 10.5px;
  line-height: 1.1;
  color: var(--ink-2);
  cursor: pointer;
}
.vote button:hover { border-color: var(--vc); }
.vote button .dot { width: 9px; height: 9px; border-radius: 1px; background: var(--vc); }
.vote button[aria-pressed="true"] { border-color: var(--vc); background: color-mix(in srgb, var(--vc) 12%, transparent); box-shadow: inset 0 0 0 1px var(--vc); color: var(--ink); }

.declared { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; }
.declared__row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 8px; }
.declared blockquote { margin: 0; padding-left: 10px; border-left: 2px solid var(--line-strong); color: var(--muted); }
.match { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--v0); }
.match svg { width: 13px; height: 13px; }

.rating-big { display: flex; align-items: baseline; gap: 10px; }
.rating-big strong { font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.stars-input { display: flex; gap: 2px; margin-top: 10px; }
.stars-input button { padding: 2px; border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--line-strong); cursor: pointer; }
.stars-input button[aria-pressed="true"] { color: var(--star); }

.details { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 13.5px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; text-align: right; }

/* Vibe scale page --------------------------------------------------------- */
.page-hero { padding: 64px 0 36px; }
.page-hero .title-xl { margin-bottom: 20px; }
@media (max-width: 640px) { .page-hero { padding: 40px 0 24px; } }

.levels { border-top: 1px solid var(--line); }
.level { display: grid; grid-template-columns: 64px 220px minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.level__num { font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--vc); }
.level__name { font-size: 18px; font-weight: 700; }
.level__short { margin-top: 2px; font-size: 13px; color: var(--muted); }
.level__desc p { margin: 0; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 760px) {
  .level { grid-template-columns: 44px minmax(0, 1fr); gap: 8px 16px; }
  .level__num { font-size: 32px; grid-row: span 2; }
  .level__desc { grid-column: 2; }
}

.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .cols-3 { grid-template-columns: 1fr; } }
.step { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.step h3 { margin-bottom: 6px; font-size: 16px; }
.step p { margin: 0; font-size: 14px; color: var(--ink-2); }

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.principle { padding: 20px 0; border-top: 1px solid var(--line); }
.principle h3 { margin-bottom: 4px; font-size: 16px; }
.principle p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

.faq { max-width: 760px; }
.faq details { padding: 16px 0; border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); max-width: 64ch; }

/* Forms ------------------------------------------------------------------- */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-bottom: 72px; }
@media (max-width: 960px) { .form-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

.fieldset { margin: 0 0 44px; padding: 0; border: 0; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: 2px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.fieldset__intro { margin: 0; font-size: 14px; color: var(--muted); }

.field { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.field label, .field .label-text { font-size: 13.5px; font-weight: 600; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

.input, .textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.input { height: 40px; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:focus, .textarea:focus { outline: none; border-color: var(--ink); }

.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.options--vibe { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 760px) { .options, .options--vibe { grid-template-columns: 1fr; } }
.option {
  position: relative;
  display: block;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}
.option:hover { border-color: var(--ink-2); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option:has(input:checked) { border-color: var(--vc, var(--ink)); box-shadow: inset 0 0 0 1px var(--vc, var(--ink)); }
.option:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.option__title { display: block; font-size: 14.5px; font-weight: 600; }
.option__text { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.option__num { display: block; margin-bottom: 6px; font-size: 24px; font-weight: 700; line-height: 1; color: var(--vc); }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 36px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  color: var(--muted);
  cursor: pointer;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--ink); background: var(--surface-2); }
.dropzone svg { width: 24px; height: 24px; margin-bottom: 4px; color: var(--ink-2); }
.dropzone strong { font-weight: 600; color: var(--ink); }
.dropzone input { display: none; }

.check { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 4px; width: 15px; height: 15px; accent-color: var(--ink); }

.form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding-top: 22px; border-top: 1px solid var(--line); }

.note-list { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.note-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.note-list li:first-child { border-top: 0; padding-top: 0; }
.note-list span:first-child { color: var(--muted); }

/* Footer & utilities ------------------------------------------------------ */
.site-footer { margin-top: 40px; padding: 48px 0 32px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.footer__about p { margin: 10px 0 0; max-width: 32ch; font-size: 14px; color: var(--muted); }
.footer__col h4 { margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.footer__col a { display: block; padding: 2px 0; font-size: 14px; color: var(--muted); }
.footer__col a:hover { color: var(--ink); }
.footer__base { margin-top: 44px; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 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; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
