/* LibreMod design system. Concept: a public docket / redacted dossier.
   One accent (hazard yellow), ink + bone neutrals, condensed display type,
   mono for record metadata. No gradients, no glass, no stock dashboard cards. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #0e0e0c;
  --surface: #161614;
  --surface-2: #1f1f1c;
  --line: #2c2b27;
  --line-strong: #45433c;
  --text: #ecebe4;
  --muted: #a3a094;
  --accent: #ffd400;
  --accent-ink: #0e0e0c;
  --link: #ffe14d;
  --accent-text: #ffd400;
  --danger: #ff6b5c;
  --ok: #86dc98;
  --warn: #ffb547;
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gutter: 16px;
  --r: 2px;
  --t: 160ms cubic-bezier(.2, .7, .3, 1);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f2efe6;
    --surface: #fbf9f3;
    --surface-2: #ebe7dc;
    --line: #d8d3c4;
    --line-strong: #b4ae9c;
    --text: #13130f;
    --muted: #5c594f;
    --link: #6b5300;
    --accent-text: #6b5300;
    --danger: #b3261e;
    --ok: #1d6b31;
    --warn: #8a5200;
    color-scheme: light;
  }
}

@media (min-width: 760px) {
  :root { --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  font-stretch: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
/* Hazard strip: the one decorative element, used once. */
.site-band { height: 4px; overflow: hidden; position: relative; }
.site-band::before {
  content: ""; position: absolute; inset: 0 -60px 0 -60px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 10px, var(--bg) 10px 20px);
  transform: translateX(var(--band-x, 0px));
  animation: band-drift 2.4s linear infinite;
}
@keyframes band-drift { to { background-position: 28.28px 0; } }
main { flex: 1; outline: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-stretch: 78%; font-weight: 780; line-height: 1.05; letter-spacing: -0.005em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); font-stretch: normal; letter-spacing: 0; }
.small { font-size: .85rem; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; z-index: 10; font-weight: 700; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.section { padding-block: clamp(36px, 6vw, 72px); }
.section-tight { padding-block: 24px; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.section-title { margin-bottom: 24px; }
.eyebrow { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 60ch; color: var(--text); }
.lede-sm { font-size: 1.05rem; color: var(--muted); max-width: 62ch; }
.page-head { margin-bottom: 28px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; gap: 12px 24px; min-height: 64px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
.wm-text { font-weight: 900; font-stretch: 62%; font-size: 1.65rem; letter-spacing: .02em; line-height: 1; position: relative; }
.wm-mod { color: var(--accent-text); }
.wm-tag { font: 600 .66rem/1 var(--mono); text-transform: uppercase; border: 1px solid var(--line-strong); padding: 3px 5px; color: var(--muted); }
.main-nav { display: flex; gap: 4px; order: 3; width: 100%; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 10px; scrollbar-width: none; }
.main-nav a { color: var(--text); text-decoration: none; padding: 10px 12px; font-weight: 560; white-space: nowrap; border-radius: var(--r); }
.main-nav a:hover { background: var(--surface-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
@media (min-width: 900px) {
  .main-nav { order: 0; width: auto; margin: 0; padding: 0; overflow: visible; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--surface); color: var(--text); text-decoration: none; cursor: pointer;
  font: 680 .86rem/1.1 var(--font); font-stretch: 88%; text-transform: uppercase; letter-spacing: .05em;
  transition: box-shadow var(--t), transform var(--t), background var(--t);
}
.btn:hover { box-shadow: 3px 3px 0 var(--text); transform: translate(-1px, -1px); text-decoration: none; }
.btn:active { box-shadow: none; transform: none; }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { box-shadow: none; border-color: var(--line-strong); }
.btn-danger { border-color: var(--danger); color: var(--danger); background: transparent; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .78rem; }
.btn[disabled] { opacity: .55; cursor: progress; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- hero ---------- */
.hero { border-bottom: 1px solid var(--line); padding-block: clamp(44px, 9vw, 112px) clamp(36px, 6vw, 72px); }
.hero-grid { display: grid; gap: 40px; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1fr 300px; align-items: end; } }
.display { font-size: clamp(2.9rem, 9.5vw, 6.6rem); font-stretch: 64%; font-weight: 880; text-transform: uppercase; line-height: .9; letter-spacing: -.01em; margin-bottom: 28px; }
.redact { position: relative; display: inline-block; color: var(--accent); }
.redact::after {
  content: ""; position: absolute; inset: 6% -2% 2%; background: var(--text);
  transform-origin: right; animation: unredact 700ms 450ms cubic-bezier(.7, 0, .2, 1) forwards;
}
/* Light paper: yellow type fails contrast, so it becomes a highlighter mark. */
@media (prefers-color-scheme: light) { .redact { color: var(--text); background: var(--accent); padding: 0 .08em; } }
@keyframes unredact { to { transform: scaleX(0); } }
.ledger { border: 1px solid var(--line-strong); padding: 18px 20px; background: var(--surface); }
.ledger dl { margin: 10px 0 12px; display: grid; gap: 10px; }
.ledger dl div { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px dashed var(--line-strong); padding-bottom: 8px; }
.ledger dt { color: var(--muted); }
.ledger dd { margin: 0; font-size: 1.6rem; font-weight: 700; }

/* ---------- docket (request list) ---------- */
.docket { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.docket-row { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 18px 8px; border-bottom: 1px solid var(--line); transition: background var(--t); }
.docket-row:hover { background: var(--surface); }
.docket-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); margin-bottom: 6px; }
.docket-meta a { color: var(--muted); }
.docket-title { font-size: 1.22rem; font-stretch: 85%; margin-bottom: 4px; }
.docket-title a { color: var(--text); text-decoration: none; }
.docket-title a:hover { text-decoration: underline; }
.docket-excerpt { color: var(--muted); margin: 0; overflow-wrap: anywhere; }

.vote { display: block; text-decoration: none; }
.vote-btn {
  width: 56px; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--bg); color: var(--text);
  font: 700 1rem/1 var(--mono); cursor: pointer; transition: background var(--t), color var(--t), border-color var(--t);
}
.vote-btn svg { width: 12px; height: 8px; fill: currentColor; }
.vote-btn:hover { border-color: var(--accent); }
.vote-btn.is-voted { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.stamp {
  display: inline-block; font: 700 .66rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 6px; border: 1.5px solid currentColor; border-radius: var(--r); transform: rotate(-1.5deg);
}
.stamp-open { color: var(--text); }
.stamp-pending { color: var(--warn); border-style: dashed; }
.stamp-planned { color: var(--link); }
.stamp-in_progress { color: var(--warn); }
.stamp-done { color: var(--ok); }
.stamp-declined { color: var(--muted); text-decoration: line-through; }
.stamp-hidden { color: var(--danger); }
.badge { display: inline-block; vertical-align: middle; margin-left: 8px; font: 700 .66rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 4px 6px; background: var(--accent); color: var(--accent-ink); border-radius: var(--r); }

/* ---------- filters ---------- */
.filters { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.filters input[type="search"] { grid-column: 1 / -1; }
@media (min-width: 760px) { .filters { grid-template-columns: 1fr 220px 160px auto; } .filters input[type="search"] { grid-column: auto; } }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { font: 600 .78rem/1 var(--mono); padding: 8px 10px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; border-radius: var(--r); }
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.pager { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; color: var(--muted); }

/* ---------- forms ---------- */
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r); padding: 11px 12px; min-height: 44px; transition: border-color var(--t);
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 1px var(--accent); }
input[type="checkbox"] { width: 20px; min-height: 20px; height: 20px; accent-color: var(--accent); vertical-align: -4px; margin-right: 8px; }
.form { display: grid; gap: 20px; }
.form-compact { gap: 10px; }
.field label, .form-compact > label { display: block; font-weight: 680; font-stretch: 90%; margin-bottom: 6px; }
.field.check label { font-weight: 450; font-stretch: 100%; }
.field-hint { color: var(--muted); font-size: .86rem; margin: -2px 0 8px; }
.field-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; min-height: 1.2em; }
.field-error { color: var(--danger); font-size: .88rem; margin: 0; font-weight: 600; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--danger); }
.counter { color: var(--muted); }
.counter.over { color: var(--danger); }
.turnstile { min-height: 65px; }
.similar { border-left: 3px solid var(--warn); padding: 10px 14px; background: var(--surface); }
.similar ul { margin: 0; padding-left: 18px; }

.notice { border-left: 3px solid var(--ok); background: var(--surface); padding: 12px 16px; margin-bottom: 20px; }
.notice-warn { border-color: var(--warn); }
.notice-error { border-color: var(--danger); }
.notice > :last-child { margin-bottom: 0; }

.empty { border: 1px dashed var(--line-strong); padding: clamp(24px, 5vw, 44px); text-align: left; }
.empty-title { font-weight: 780; font-stretch: 80%; font-size: 1.35rem; margin-bottom: 8px; }

/* ---------- content blocks ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--bg); padding: 24px; }
.step-n { display: block; color: var(--accent-text); font-size: .85rem; font-weight: 700; margin-bottom: 18px; }
.steps p { color: var(--muted); margin: 0; }
.grid-3, .grid-4 { display: grid; gap: 24px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.principles article { border-top: 2px solid var(--text); padding-top: 14px; }
.principles article p { color: var(--muted); }
.card { border: 1px solid var(--line); background: var(--surface); padding: 22px; }
.card p { color: var(--muted); margin: 0; }
.split { display: grid; gap: 40px; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; } }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; max-width: 820px; }
.faq summary { cursor: pointer; font-weight: 680; font-stretch: 90%; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent-text); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 12px 0 0; max-width: 70ch; }

.prose { max-width: 68ch; line-height: 1.68; overflow-wrap: anywhere; }
.prose h2 { margin-top: 1.8em; }
.prose li { margin-bottom: .45em; }

/* ---------- detail ---------- */
.crumbs { color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: 56px 1fr; gap: 20px; }
.detail-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.detail-side { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 22px; align-content: start; }
@media (min-width: 980px) { .detail-grid { grid-template-columns: 56px 1fr 280px; gap: 32px; } .detail-side { grid-column: auto; border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 24px; } }
.byline { margin-bottom: 24px; }
.timeline { list-style: none; padding: 0; margin: 8px 0 0; border-left: 2px solid var(--line-strong); }
.timeline li { padding: 0 0 10px 14px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 7px; width: 8px; height: 8px; background: var(--accent); }
.timeline .mono { color: var(--muted); display: block; }
.report summary { cursor: pointer; color: var(--muted); }
.report form { margin-top: 12px; }

/* ---------- people ---------- */
.monogram { width: 38px; height: 38px; display: inline-grid; place-items: center; font: 800 .82rem/1 var(--font); font-stretch: 75%; border: 1px solid var(--line-strong); border-radius: var(--r); flex: none; }
.monogram-lg { width: 72px; height: 72px; font-size: 1.5rem; }
.mg-0 { background: #ffd400; color: #0e0e0c; } .mg-1 { background: #ecebe4; color: #0e0e0c; } .mg-2 { background: #2c2b27; color: #ecebe4; }
.mg-3 { background: #ff6b5c; color: #0e0e0c; } .mg-4 { background: #86dc98; color: #0e0e0c; } .mg-5 { background: #9fb7ff; color: #0e0e0c; }
.avatar-link { text-decoration: none; }
.profile-head { display: flex; gap: 20px; align-items: center; margin-bottom: 28px; }
.profile-head h1 { margin-bottom: 4px; }
.bio { margin-top: 10px; max-width: 60ch; }
.people { list-style: none; padding: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .people { grid-template-columns: repeat(2, 1fr); } }
.person { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.person > span:last-child { display: grid; }
.danger-zone h2 { color: var(--danger); }
.error-page h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 36px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { font-weight: 900; font-stretch: 62%; font-size: 1.4rem; margin-bottom: 8px; }
.footer-links { display: grid; gap: 6px; align-content: start; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-base { border-top: 1px solid var(--line); margin-top: 28px; padding-block: 18px; }

/* ---------- admin ---------- */
.admin-cards .card { display: grid; gap: 4px; text-decoration: none; color: var(--text); }
.big { font-size: 2.2rem; font-weight: 700; }
.admin-list { list-style: none; padding: 0; margin: 0; }
.admin-item { border-top: 1px solid var(--line); padding: 16px 0; display: grid; gap: 8px; }
.admin-title { font-size: 1.15rem; margin: 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 160px; min-height: 36px; padding: 6px 10px; }
.flag { color: var(--warn); }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; color: var(--muted); }

/* Reduced motion (e.g. Windows "Show animations" off): keep opacity fades,
   counters and stamps; remove travel, scaling and continuous movement. */
@media (prefers-reduced-motion: reduce) {
  @keyframes rise { from { opacity: 0; } }
  @keyframes bump { from { opacity: .6; } }
  @keyframes stamp-in { from { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; } }
  .redact::after { display: none; }
  .ticker-track, .site-band::before, .scene .road, .scene .tw { animation: none !important; }
  .btn:hover { transform: none; }
}
@media print { .site-header, .site-footer, .vote, .report { display: none; } }

/* ======================= motion & polish =======================
   Functional motion only (120-450 ms), all disabled by prefers-reduced-motion
   through the global rule above. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out 160ms ease both; }
  ::view-transition-new(root) { animation: vt-in 220ms cubic-bezier(.2, .7, .3, 1) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes bump { 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes stamp-in { from { opacity: 0; transform: rotate(-12deg) scale(1.9); } 70% { opacity: 1; transform: rotate(-1deg) scale(.96); } to { transform: rotate(-1.5deg) scale(1); } }
@keyframes highlight { to { background-size: 100% 100%; } }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-grid > *, .page-head, .page-head + *, .profile-head { animation: rise 420ms cubic-bezier(.2, .7, .3, 1) both; }
.hero-grid > :nth-child(2) { animation-delay: 120ms; }
.docket-row { animation: rise 380ms cubic-bezier(.2, .7, .3, 1) both; position: relative; }
.docket-row:nth-child(2) { animation-delay: 40ms; } .docket-row:nth-child(3) { animation-delay: 80ms; }
.docket-row:nth-child(4) { animation-delay: 120ms; } .docket-row:nth-child(5) { animation-delay: 160ms; }
.docket-row:nth-child(6) { animation-delay: 200ms; } .docket-row:nth-child(n+7) { animation-delay: 240ms; }
/* A hazard-yellow edge slides in on the row you're looking at. */
.docket-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform var(--t); }
.docket-row:hover::before, .docket-row:focus-within::before { transform: scaleY(1); }
.docket-title a { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size 220ms ease; }
.docket-title a:hover { text-decoration: none; background-size: 100% 1px; }

.vote-btn.bump { animation: bump 320ms cubic-bezier(.3, 1.6, .5, 1); }
.vote-btn:active { transform: scale(.94); }
.detail .docket-meta .stamp { animation: stamp-in 420ms 180ms cubic-bezier(.2, .9, .3, 1) both; }

.site-header { transition: box-shadow var(--t), border-color var(--t); }
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .7); border-color: var(--line-strong); }
.main-nav a { position: relative; }
.main-nav a[aria-current="page"] { color: var(--accent-text); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--accent); }

.btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--text); border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }
.btn-accent.is-loading::after { border-color: var(--accent-ink); border-right-color: transparent; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); opacity: 0; z-index: 20; max-width: min(92vw, 520px);
  background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: var(--r); font-weight: 600; box-shadow: 0 12px 32px -12px rgba(0,0,0,.6);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2, .7, .3, 1); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.faq details[open] p { animation: rise 240ms ease both; }
.ledger dd { font-variant-numeric: tabular-nums; }

@media (prefers-color-scheme: light) {
  .redact { background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 0 / 0% 100%; padding: 0 .08em; animation: highlight 650ms 350ms cubic-bezier(.7, 0, .2, 1) forwards; }
  .redact::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .redact { background-size: 100% 100%; } }

/* ======================= forms & legal ======================= */
.grid-2 { display: grid; gap: 20px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.check-row { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; cursor: pointer; }
.check-row input { margin-top: 3px; flex: none; }
.check-row.has-error span { color: var(--danger); }
.consent { border: 1px solid var(--line-strong); background: var(--surface); padding: clamp(18px, 4vw, 28px); }
.toc { border: 1px solid var(--line); padding: 14px 18px; margin-bottom: 28px; background: var(--surface); }
.toc ol { margin: 0; padding-left: 20px; columns: 2 220px; column-gap: 28px; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
.legal .prose { max-width: 74ch; }
.legal h2 { scroll-margin-top: 90px; }
.legal .table td { font-size: .9rem; }
.notice p { margin-bottom: .4em; }

.hide-sm { display: none; }
@media (min-width: 520px) { .hide-sm { display: inline; } }
.header-actions .btn-accent { white-space: nowrap; }

.mark { flex: none; color: var(--text); }
.mark-m { fill: var(--accent); }
.wordmark:hover .mark-m { fill: var(--text); }
.wordmark:hover .mark { color: var(--accent); }
.mark, .mark * { transition: fill var(--t), color var(--t); }

.header-actions .btn { gap: .3em; }

/* ======================= scroll, loaders, demos ======================= */
/* Navigation loader: the same tape, marching, only when a page takes >120 ms. */
.nav-loader { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 31; opacity: 0; pointer-events: none;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 10px, var(--bg) 10px 20px); background-size: 28px 28px; transition: opacity 120ms ease; }
.nav-loader.is-on { opacity: 1; animation: tape 600ms linear infinite; }
@keyframes tape { to { background-position: 28px 0; } }

/* Scroll reveal (app.js only hides what is below the fold, so no flash). */
.pre-reveal { opacity: 0; transform: translateY(28px); }
.pre-reveal.is-in { opacity: 1; transform: none; transition: opacity 600ms ease, transform 700ms cubic-bezier(.2, .7, .3, 1); }
[data-reveal="stagger"].pre-reveal { transform: none; opacity: 1; }
[data-reveal="stagger"].pre-reveal :is(.steps > li, .grid-4 > article) { opacity: 0; transform: translateY(24px); }
[data-reveal="stagger"].is-in :is(.steps > li, .grid-4 > article) { opacity: 1; transform: none; transition: opacity 500ms ease, transform 600ms cubic-bezier(.2, .7, .3, 1); }
[data-reveal="stagger"].is-in :is(.steps > li, .grid-4 > article):nth-child(2) { transition-delay: 90ms; }
[data-reveal="stagger"].is-in :is(.steps > li, .grid-4 > article):nth-child(3) { transition-delay: 180ms; }
[data-reveal="stagger"].is-in :is(.steps > li, .grid-4 > article):nth-child(4) { transition-delay: 270ms; }
/* Headings get the brand's redaction bar pulled off as they arrive. */
.pre-reveal h2 { position: relative; }
.pre-reveal h2::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--text); transform-origin: right; transform: scaleX(1); }
.pre-reveal.is-in h2::after { transform: scaleX(0); transition: transform 650ms 150ms cubic-bezier(.7, 0, .2, 1); }

/* Ticker band under the hero. */
.ticker { border-bottom: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker span { font: 700 .82rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 14px 0; white-space: nowrap; color: var(--muted); }
.ticker i { font-style: normal; color: var(--accent-text); margin: 0 22px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Demo layout */
.demo-grid { display: grid; gap: 32px; align-items: center; border-top: 1px solid var(--line); }
@media (min-width: 980px) { .demo-grid { grid-template-columns: 5fr 7fr; gap: 56px; } .demo-grid-rev > .demo-copy { order: 2; } }
.demo-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.demo-stage { border: 1px solid var(--line-strong); background: var(--surface); padding: clamp(16px, 3vw, 28px); display: grid; gap: 22px; }
.demo-card { display: grid; grid-template-columns: 56px 1fr; gap: 16px; }
.demo-log { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line-strong); display: grid; gap: 8px; color: var(--muted); }
.demo-log li { position: relative; }
.demo-log li::before { content: ""; position: absolute; left: -21px; top: 6px; width: 8px; height: 8px; background: var(--accent); }
/* Played state (set by app.js): steps light up one by one. */
.is-playing [data-step] { opacity: .18; transform: translateX(-6px); transition: opacity 300ms ease, transform 300ms ease, color 300ms ease; }
.is-playing [data-step].on { opacity: 1; transform: none; color: var(--text); }
.stamp.restamp { animation: stamp-in 420ms cubic-bezier(.2, .9, .3, 1) both; }

.terminal { position: relative; border: 1px solid var(--line-strong); background: #090908; color: #ecebe4; overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #2c2b27; color: #a3a094; }
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: #2c2b27; }
.terminal-bar span:first-child { background: #ff6b5c; }
.terminal-bar span:nth-child(2) { background: #ffd400; }
.terminal-bar span:nth-child(3) { background: #86dc98; margin-right: 8px; }
.terminal-body { list-style: none; margin: 0; padding: 18px; display: grid; gap: 16px; }
.terminal-body p { margin: 0; }
.t-in { color: #ecebe4; overflow-wrap: anywhere; }
.t-prompt { color: #ffd400; margin-right: 6px; }
.t-out { margin-top: 6px !important; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: #a3a094; }
.t-verdict { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; border: 1.5px solid currentColor; border-radius: 2px; transform: rotate(-1.5deg); }
.t-pass .t-verdict { color: #86dc98; }
.t-review .t-verdict { color: #ffb547; }
.t-block .t-verdict { color: #ff6b5c; }
.is-playing .t-out { opacity: 0; }
.is-playing [data-step].on .t-out { opacity: 1; transition: opacity 200ms 450ms ease; }
.is-playing [data-step].on .t-verdict { animation: stamp-in 380ms 450ms cubic-bezier(.2, .9, .3, 1) both; }
.scanline { position: absolute; left: 0; right: 0; height: 40px; top: -40px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(255, 212, 0, .12), transparent); }
.is-playing .scanline { animation: scan 1.4s ease-in-out 3; }
@keyframes scan { to { transform: translateY(420px); } }

.ledger-pair { display: grid; gap: 24px; border: 1px solid var(--line-strong); background: var(--surface); padding: clamp(16px, 3vw, 28px); }
@media (min-width: 640px) { .ledger-pair { grid-template-columns: 1fr 1fr; } }
.ledger-pair ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.keep li::before { content: "\2713"; color: var(--ok); font-family: var(--mono); margin-right: 10px; }
.never li span { position: relative; color: var(--muted); }
/* Redaction: a solid bar slams over what we refuse to store. */
.never li span::after { content: ""; position: absolute; left: -2px; right: -2px; top: 55%; height: 2px; transform: translateY(-50%) scaleX(1); transform-origin: left; background: var(--danger); }
.is-playing .never li span::after { transform: translateY(-50%) scaleX(0); }
.is-playing .never li.on span::after { transform: translateY(-50%) scaleX(1); transition: transform 380ms cubic-bezier(.7, 0, .2, 1); }
.never li::after { content: "NOT STORED"; font: 700 .62rem/1 var(--mono); letter-spacing: .08em; color: var(--danger); margin-left: 12px; vertical-align: 2px; }

@media (prefers-reduced-motion: reduce) {
  .pre-reveal, [data-reveal="stagger"].pre-reveal :is(.steps > li, .grid-4 > article) { transform: none !important; }
  .pre-reveal h2::after { display: none; }
}

/* Creator roadmap */
.roadmap { margin-top: 40px; border: 1px dashed var(--line-strong); padding: clamp(18px, 3vw, 28px); }
.roadmap-list { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 10px; max-width: 72ch; }
.roadmap-list li::marker { color: var(--accent-text); font-family: var(--mono); font-weight: 700; }

.avatar { object-fit: cover; padding: 0; background: var(--surface-2); }

/* Hero scene: original skyline, twinkling windows, light trails, parallax. */
.hero { position: relative; overflow: hidden; }
.hero-grid { position: relative; z-index: 1; }
.scene { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: min(46%, 300px); z-index: 0; pointer-events: none;
  opacity: .9; transform: translateY(var(--parallax, 0px)); -webkit-mask-image: linear-gradient(to top, #000 55%, transparent); mask-image: linear-gradient(to top, #000 55%, transparent); }
.scene .sun { fill: var(--accent); opacity: .85; }
.scene .sun-cut, .scene .ground { fill: var(--bg); }
.scene .bld { fill: var(--surface-2); }
.scene .win { fill: var(--accent); opacity: .15; }
.scene .tw { animation: twinkle 5s ease-in-out infinite; }
.scene .tw1 { animation-delay: -1s; animation-duration: 6.5s; } .scene .tw2 { animation-delay: -2.2s; animation-duration: 4.2s; }
.scene .tw3 { animation-delay: -3.1s; animation-duration: 7.3s; } .scene .tw4 { animation-delay: -.6s; animation-duration: 5.6s; }
@keyframes twinkle { 0%, 100% { opacity: .12; } 45% { opacity: .9; } 60% { opacity: .55; } }
.scene .road { stroke-width: 2; stroke-linecap: round; }
.scene .road-a { stroke: var(--accent); stroke-dasharray: 26 140; animation: trail 3.2s linear infinite; }
.scene .road-b { stroke: var(--danger); stroke-dasharray: 18 210; animation: trail 4.6s linear infinite reverse; opacity: .8; }
@keyframes trail { to { stroke-dashoffset: -332; } }
@media (max-width: 760px) { .scene { height: 34%; opacity: .55; } }
.hero .lede, .hero .eyebrow { text-shadow: 0 1px 12px var(--bg); }
.footer-base { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.family a { color: var(--muted); }
.family a:hover { color: var(--text); }

/* Skyline sits under the hero content as a horizon, never behind the text. */
.hero { padding-bottom: clamp(150px, 16vw, 240px); }
.scene { height: clamp(150px, 17vw, 260px); }
@media (max-width: 760px) { .scene { height: 130px; opacity: .8; } }

/* ======================= hero scene v2 ======================= */
.scene .bld-far { fill: var(--surface); }
.scene .layer-far { transform: translateX(calc(var(--mx, 0) * -6px)); transition: transform 600ms cubic-bezier(.2, .7, .3, 1); }
.scene .layer-near { transform: translateX(calc(var(--mx, 0) * -16px)); transition: transform 600ms cubic-bezier(.2, .7, .3, 1); }
.scene .palm path { fill: none; stroke: var(--surface-2); stroke-width: 4; stroke-linecap: round; }
.scene .palm path + path { stroke-width: 3; }
.scene .car-body { fill: #2c2b27; }
.scene .car-head { fill: var(--accent); }
.scene .car-beam { fill: var(--accent); opacity: .1; }
.scene .car-tail { fill: var(--danger); }
.scene .car { animation: drive 11s linear infinite; }
.scene .c1 { animation-duration: 9s; animation-delay: -2s; }
.scene .c2 { animation-duration: 13s; animation-delay: -8s; }
.scene .c3 { animation-duration: 17s; animation-delay: -13s; }
.scene .c4 { animation-duration: 10s; animation-delay: -4s; }
.scene .c5 { animation-duration: 15s; animation-delay: -10s; }
@keyframes drive { from { transform: translateX(-100px); } to { transform: translateX(1540px); } }
.scene .lane { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 14 18; }

.scene .heli { animation: heli 42s ease-in-out infinite alternate; }
@keyframes heli { from { transform: translate(160px, 78px); } to { transform: translate(780px, 46px); } }
.scene .heli-body { fill: #2c2b27; }
.scene .heli-rotor { fill: #45433c; transform-box: fill-box; transform-origin: center; animation: rotor 140ms linear infinite alternate; }
@keyframes rotor { to { transform: scaleX(.25); } }
.scene .heli-blink, .scene .plane-blink { fill: var(--danger); animation: blink 1.3s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scene .searchlight { transform-box: fill-box; transform-origin: 50% 0; animation: sweep 7s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: rotate(-20deg); } to { transform: rotate(20deg); } }

.scene .plane { animation: fly 52s linear infinite; }
@keyframes fly { from { transform: translate(-40px, 52px); } to { transform: translate(1500px, 14px); } }
.scene .plane-body { fill: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .scene .car, .scene .heli, .scene .plane, .scene .searchlight, .scene .heli-rotor, .scene .tw { animation: none !important; }
  .scene .heli { transform: translate(420px, 60px); }
  .scene .plane { display: none; }
  .scene .layer-far, .scene .layer-near { transform: none; }
}

/* Pointer spotlight on interactive surfaces: a faint glow follows the cursor. */
.spot { position: relative; isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 220ms ease;
  background: radial-gradient(260px circle at var(--px, 50%) var(--py, 50%), rgba(255, 212, 0, .08), transparent 70%); }
.spot:hover::after { opacity: 1; }
@media (hover: none) { .spot::after { display: none; } }

/* ======================= creator program ======================= */
.game-tag { display: inline-block; font: 700 .64rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 3px 6px; border-radius: var(--r); background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong); }
.game-gta6 { border-color: var(--accent); color: var(--accent-text); }
.game-rdr2 { border-color: var(--danger); color: var(--danger); }
.games-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .games-grid { grid-template-columns: repeat(4, 1fr); } }
.game-card { display: grid; gap: 6px; padding: 20px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); text-decoration: none; min-height: 150px; align-content: start; transition: border-color var(--t), transform var(--t); }
.game-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.game-card-label { font-weight: 880; font-stretch: 64%; font-size: 2rem; text-transform: uppercase; line-height: 1; }
.game-card.game-gta6 .game-card-label { color: var(--accent-text); }
.game-card-cta { margin-top: auto; color: var(--muted); }
.game-next { border-style: dashed; }
.chips-games { margin-bottom: 8px; }
.ledger-founding .ledger-big { font-weight: 880; font-stretch: 64%; font-size: 2.2rem; text-transform: uppercase; line-height: 1; margin: 10px 0 8px; color: var(--accent-text); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.badges .badge { margin-left: 0; }
.badge-gold { background: var(--text); color: var(--bg); }
.badge-ghost { background: transparent; color: var(--accent-text); border: 1px solid currentColor; }
.bell { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--text); }
.bell svg { width: 18px; height: 18px; fill: currentColor; }
.bell-dot { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: .62rem; font-weight: 700; display: grid; place-items: center; }
.work { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 14px; }
.deliveries, .claims, .releases { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.deliveries li { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.claims li { border: 1px solid var(--line); padding: 12px; background: var(--surface); }
.person-inline { display: inline-flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none; font-weight: 650; margin-right: 10px; }
.person-inline .monogram { width: 28px; height: 28px; font-size: .7rem; }
.updates { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; color: var(--muted); }
.my-work { display: grid; gap: 10px; border: 1px dashed var(--line-strong); padding: 14px; }
.my-work summary { cursor: pointer; font-weight: 650; }
.record { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface); border: 1px solid var(--line); padding: 14px; max-width: 100%; overflow-x: auto; }
.notif-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.notif-list li { background: var(--bg); padding: 14px 16px; }
.notif-list li.is-unread { background: var(--surface); box-shadow: inset 3px 0 0 var(--accent); }
.notif-list p { margin: 4px 0 0; }
.job-row { grid-template-columns: 90px 1fr; }
.card-alert { border-color: var(--danger); }

.deliveries li { flex-direction: row; }
.verify { flex-basis: 100%; }
.verify summary { cursor: pointer; color: var(--muted); }
.hash { overflow-wrap: anywhere; background: var(--surface); border: 1px solid var(--line); padding: 8px 10px; user-select: all; }
.safe-dl { border-left: 3px solid var(--ok); padding-left: 10px; }

/* ======================= game hubs ======================= */
.hub { border-bottom: 1px solid var(--line); padding-block: clamp(36px, 7vw, 80px); background:
  repeating-linear-gradient(-45deg, transparent 0 22px, rgba(255, 212, 0, .035) 22px 44px); }
.hub-title { margin-bottom: 18px; }
.hub-gta6 .hub-title { color: var(--accent-text); }
.hub-rdr2 .hub-title { color: var(--danger); }
.hub-grid { display: grid; gap: 40px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .hub-grid { grid-template-columns: 3fr 2fr; } }
.facts { padding-left: 20px; display: grid; gap: 12px; max-width: 70ch; }
.facts li::marker { color: var(--accent-text); }
.mini-list, .mini-people { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }

.lang-switch { display: flex; gap: 10px; margin-top: 20px; }
.lang-switch a { color: var(--muted); }
html[lang="tr"] .lang-switch a[hreflang="tr"], html[lang="en"] .lang-switch a[hreflang="en"] { color: var(--text); text-decoration: none; font-weight: 700; }

/* ======================= scene variants (game hubs) ======================= */
.hub { position: relative; overflow: hidden; padding-bottom: clamp(150px, 16vw, 230px); }
.hub > .wrap { position: relative; z-index: 1; }
.scene .moon { fill: var(--text); opacity: .85; }
.scene .moon-cut { fill: var(--bg); }
.scene .hill { fill: var(--surface); }
.scene .star { fill: var(--text); opacity: .4; }
.scene .cactus path { fill: none; stroke: var(--surface-2); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.scene .rail { stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 2 6; }
.scene-western .bld-far { fill: #1a1712; }
.scene-western .bld { fill: #221e17; }
.scene .train .car { animation-duration: 26s; }
.scene .smoke { fill: var(--muted); opacity: .22; animation: puff 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.scene .smoke.s2 { animation-delay: -1.2s; }
@keyframes puff { from { transform: translate(0, 0) scale(.6); opacity: .3; } to { transform: translate(-30px, -30px) scale(1.8); opacity: 0; } }
/* Mobile: no parallax (the scene would slide out before you see it). */
@media (max-width: 760px) { .scene { transform: none !important; } .hub .scene { height: 120px; } }
@media (prefers-reduced-motion: reduce) { .scene .smoke, .scene .train .car { animation: none !important; } .scene .train .car { transform: translateX(600px); } }

/* ======================= animated badges & levels ======================= */
.bdg { --c: var(--text); position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 5px 7px;
  font: 800 .66rem/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--c); border: 1.5px solid var(--c); border-radius: 3px;
  background: color-mix(in srgb, var(--c) 10%, transparent); animation: badge-in 520ms cubic-bezier(.2, .9, .3, 1.2) both; }
.badges .bdg:nth-child(2) { animation-delay: 90ms; } .badges .bdg:nth-child(3) { animation-delay: 180ms; } .badges .bdg:nth-child(4) { animation-delay: 270ms; }
.bdg::after { content: ""; position: absolute; inset: -2px; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-120%); animation: shine 4.5s ease-in-out 1.2s infinite; }
.bdg-icon { width: 13px; height: 13px; fill: currentColor; flex: none; }
.bdg-creator { --c: var(--accent-text); }
.bdg-founding { --c: var(--bg); color: var(--bg); background: linear-gradient(135deg, #ffd400, #ffb547 45%, #ffe680); border-color: #ffd400; }
.bdg-member { --c: var(--accent-text); border-style: dashed; }
.bdg-hire { --c: var(--ok); }
.bdg-lv1 { --c: var(--muted); }
.bdg-lv2 { --c: #9fb7ff; }
.bdg-lv3 { --c: #ff6b5c; }
.bdg-lv4 { --c: var(--bg); color: var(--bg); background: linear-gradient(135deg, #ffd400, #ff6b5c 55%, #9fb7ff); border-color: transparent; }
@keyframes badge-in { 0% { opacity: 0; transform: scale(1.8) rotate(-8deg); } 60% { opacity: 1; transform: scale(.94) rotate(1deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.level-meter { border: 1px solid var(--line-strong); background: var(--surface); padding: 14px 16px; margin-bottom: 20px; display: grid; gap: 8px; }
.level-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.level-bar { height: 10px; background: var(--surface-2); border: 1px solid var(--line-strong); overflow: hidden; }
.level-fill { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, var(--accent) 0 8px, #e6bf00 8px 16px); animation: fill-in 900ms 200ms cubic-bezier(.2, .7, .3, 1) both; }
.level-fill.w0 { --w: 0%; }
.level-fill.w5 { --w: 5%; }
.level-fill.w10 { --w: 10%; }
.level-fill.w15 { --w: 15%; }
.level-fill.w20 { --w: 20%; }
.level-fill.w25 { --w: 25%; }
.level-fill.w30 { --w: 30%; }
.level-fill.w35 { --w: 35%; }
.level-fill.w40 { --w: 40%; }
.level-fill.w45 { --w: 45%; }
.level-fill.w50 { --w: 50%; }
.level-fill.w55 { --w: 55%; }
.level-fill.w60 { --w: 60%; }
.level-fill.w65 { --w: 65%; }
.level-fill.w70 { --w: 70%; }
.level-fill.w75 { --w: 75%; }
.level-fill.w80 { --w: 80%; }
.level-fill.w85 { --w: 85%; }
.level-fill.w90 { --w: 90%; }
.level-fill.w95 { --w: 95%; }
.level-fill.w100 { --w: 100%; }
@keyframes fill-in { from { width: 0; } to { width: var(--w); } }
@media (prefers-reduced-motion: reduce) { .bdg::after { display: none; } .level-fill { animation: none; width: var(--w); } }

.lang-mini { display: flex; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; }
.lang-mini a { padding: 8px 9px; color: var(--muted); text-decoration: none; font-weight: 700; }
html[lang="en"] .lang-mini a[hreflang="en"], html[lang="tr"] .lang-mini a[hreflang="tr"] { background: var(--text); color: var(--bg); }
@media (max-width: 480px) { .wm-tag { display: none; } .header-actions { gap: 8px; } .lang-mini a { padding: 7px 7px; } }
