/* WebPranks site styles — Fluent 2 foundation with WebPranks brand tokens. */

:root {
  --wp-page: #F3F4F7;
  --wp-surface: #FFFFFF;
  --wp-surface-2: #EBECF1;
  --wp-ink: #1A1B22;
  --wp-muted: #5B5E6B;
  --wp-line: #DADCE3;
  --wp-brand: #6A2BD9;
  --wp-brand-hover: #5620B5;
  --wp-brand-soft: #EEE6FD;
  --wp-mark: #FFE14D;
  --wp-safe: #0E7A0D;
  --wp-safe-soft: #E7F4E6;
  --wp-radius-s: 6px;
  --wp-radius-m: 10px;
  --wp-radius-l: 16px;
  --wp-shadow: 0 1px 2px rgba(20, 20, 40, .06), 0 4px 14px rgba(20, 20, 40, .06);
  --wp-font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --wp-font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --wp-font-hand: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  --wp-wrap: 1200px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --wp-page: #15151B;
  --wp-surface: #1E1E26;
  --wp-surface-2: #272732;
  --wp-ink: #ECECF1;
  --wp-muted: #A3A5B2;
  --wp-line: #33343F;
  --wp-brand: #A98BFF;
  --wp-brand-hover: #C2AEFF;
  --wp-brand-soft: #2B2445;
  --wp-safe: #5BC25A;
  --wp-safe-soft: #1C2B1C;
  --wp-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .3);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wp-page: #15151B;
    --wp-surface: #1E1E26;
    --wp-surface-2: #272732;
    --wp-ink: #ECECF1;
    --wp-muted: #A3A5B2;
    --wp-line: #33343F;
    --wp-brand: #A98BFF;
    --wp-brand-hover: #C2AEFF;
    --wp-brand-soft: #2B2445;
    --wp-safe: #5BC25A;
    --wp-safe-soft: #1C2B1C;
    --wp-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

/* Point Fluent's brand tokens at the WebPranks brand (body beats :root inheritance). */
body {
  --colorBrandBackground: var(--wp-brand);
  --colorBrandBackgroundHover: var(--wp-brand-hover);
  --colorBrandBackgroundPressed: var(--wp-brand-hover);
  --colorBrandBackgroundSelected: var(--wp-brand);
  --colorCompoundBrandBackground: var(--wp-brand);
  --colorCompoundBrandBackgroundHover: var(--wp-brand-hover);
  --colorCompoundBrandBackgroundPressed: var(--wp-brand-hover);
  --colorCompoundBrandStroke: var(--wp-brand);
  --colorCompoundBrandStrokeHover: var(--wp-brand-hover);
  --colorCompoundBrandStrokePressed: var(--wp-brand-hover);
  --colorCompoundBrandForeground1: var(--wp-brand);
  --colorBrandForeground1: var(--wp-brand);
  --colorBrandForegroundLink: var(--wp-brand);
  --colorBrandStroke1: var(--wp-brand);
  --colorNeutralForegroundOnBrand: #fff;
}
:root[data-theme="dark"] body { --colorNeutralForegroundOnBrand: #15151B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body { --colorNeutralForegroundOnBrand: #15151B; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--wp-page);
  color: var(--wp-ink);
  font: 400 16px/1.6 var(--wp-font);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--wp-brand); text-underline-offset: 3px; }
a:hover { color: var(--wp-brand-hover); }
:focus-visible { outline: 2px solid var(--wp-brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--wp-font-display); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
kbd { font: 600 .85em/1 var(--wp-font); padding: .2em .45em; border: 1px solid var(--wp-line); border-bottom-width: 2px; border-radius: 5px; background: var(--wp-surface); }

.wrap { width: min(var(--wp-wrap), 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--wp-ink); color: var(--wp-page); padding: .6rem 1rem; border-radius: var(--wp-radius-s); }
.skip-link:focus { top: 1rem; }
.icon { flex: none; vertical-align: middle; }
.lede { font-size: 1.15rem; color: var(--wp-muted); max-width: 62ch; }
.prose { max-width: 70ch; }
.wrap.prose { max-width: none; }
.wrap.prose > * { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose li { margin-bottom: .35em; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--wp-page) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--wp-line); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--wp-ink); }
.brand-mark { width: 34px; height: 34px; }
.brand-word { font: 750 1.3rem/1 var(--wp-font-display); letter-spacing: -0.03em; }
.site-nav { flex: 1; }
.nav-list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-link { display: inline-block; padding: .45rem .7rem; border-radius: var(--wp-radius-s); color: var(--wp-ink); text-decoration: none; font: 500 .95rem/1.2 var(--wp-font); background: none; border: 0; cursor: pointer; }
.nav-link:hover { background: var(--wp-surface-2); color: var(--wp-ink); }
.nav-link.is-current { background: linear-gradient(transparent 55%, var(--wp-mark) 55%, var(--wp-mark) 85%, transparent 85%); }
:root[data-theme="dark"] .nav-link.is-current { background: none; text-decoration: underline 3px var(--wp-mark); }
.panel-toggle::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .45em; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-.15em) rotate(45deg); }
.has-panel { position: relative; }
.cat-panel { position: absolute; top: calc(100% + 10px); left: 0; width: min(680px, 90vw); background: var(--wp-surface); border: 1px solid var(--wp-line); border-radius: var(--wp-radius-l); box-shadow: var(--wp-shadow); padding: 1rem; }
.cat-panel-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .15rem; }
.cat-panel-grid a { display: flex; gap: .6rem; align-items: center; padding: .5rem .6rem; border-radius: var(--wp-radius-s); color: var(--wp-ink); text-decoration: none; font-size: .95rem; }
.cat-panel-grid a:hover { background: var(--wp-brand-soft); }
.cat-panel-grid .icon { color: var(--wp-brand); }
.cat-panel-all { display: inline-block; margin: .6rem .6rem 0; font-weight: 600; }
.nav-toggle { display: none; }
.header-tools { display: flex; align-items: center; gap: .5rem; }
.search { position: relative; }
.search input { width: 220px; height: 36px; padding: 0 .75rem 0 2.1rem; border: 1px solid var(--wp-line); border-radius: 999px; background: var(--wp-surface); color: var(--wp-ink); font: inherit; font-size: .95rem; }
.search input:focus { outline: 2px solid var(--wp-brand); outline-offset: 0; }
.search-icon { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--wp-muted); display: flex; }
.search-results { position: absolute; right: 0; top: calc(100% + 8px); width: 340px; max-height: 60vh; overflow: auto; list-style: none; margin: 0; padding: .4rem; background: var(--wp-surface); border: 1px solid var(--wp-line); border-radius: var(--wp-radius-m); box-shadow: var(--wp-shadow); }
.search-results a { display: block; padding: .5rem .6rem; border-radius: var(--wp-radius-s); text-decoration: none; color: var(--wp-ink); }
.search-results a:hover, .search-results [aria-selected="true"] a { background: var(--wp-brand-soft); }
.search-results small { display: block; color: var(--wp-muted); }
.theme-toggle { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--wp-line); border-radius: 50%; background: var(--wp-surface); color: var(--wp-ink); cursor: pointer; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 1.1rem auto 0; font-size: .875rem; color: var(--wp-muted); }
.crumbs li + li::before { content: "/"; margin-right: .35rem; opacity: .6; }
.crumbs a { color: var(--wp-muted); }

/* ---------------------------------------------------------------- home hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; padding: 4rem 0 3rem; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -0.03em; max-width: 14ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.glance-demo { margin: 0; }
.glance-screen { position: relative; aspect-ratio: 16 / 10; border-radius: var(--wp-radius-l); background: #0B2D5C; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 30px 60px -20px rgba(11, 45, 92, .55); overflow: hidden; }
.glance-screen p { margin: 0; }
.glance-title { font: 300 clamp(1.1rem, 2.2vw, 1.5rem)/1.3 var(--wp-font); margin-top: 1.2rem !important; }
.glance-pct { font: 300 clamp(2.2rem, 5vw, 3.4rem)/1.1 var(--wp-font); font-variant-numeric: tabular-nums; margin-top: .3rem !important; position: relative; z-index: 1; }
.glance-sub { font-size: .9rem; opacity: .8; margin-top: .8rem !important; }
.glance-spinner { position: relative; width: 44px; height: 44px; }
.glance-spinner i { position: absolute; inset: 0; animation: glance-orbit 2.2s infinite cubic-bezier(.5, .15, .5, .85); }
.glance-spinner i::before { content: ""; position: absolute; left: 50%; top: 0; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #fff; }
.glance-spinner i:nth-child(2) { animation-delay: .12s; } .glance-spinner i:nth-child(3) { animation-delay: .24s; }
.glance-spinner i:nth-child(4) { animation-delay: .36s; } .glance-spinner i:nth-child(5) { animation-delay: .48s; }
@keyframes glance-orbit { to { transform: rotate(360deg); } }
.glance-mark { position: absolute; width: 58%; left: 21%; top: 52%; transform: translateY(-50%); stroke-dasharray: 520; stroke-dashoffset: 520; transition: stroke-dashoffset .9s ease-out; }
.glance-demo.is-second .glance-mark { stroke-dashoffset: 0; }
.glance-demo figcaption { position: relative; height: 2rem; margin-top: .9rem; font: 1.15rem/1.4 var(--wp-font-hand); color: var(--wp-muted); }
.glance-step { position: absolute; inset: 0 auto auto 0; transition: opacity .4s; }
.glance-second { opacity: 0; color: var(--wp-ink); }
.glance-demo.is-second .glance-first { opacity: 0; }
.glance-demo.is-second .glance-second { opacity: 1; }

.pledge ul { list-style: none; margin: 0; padding: 1.1rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; border-block: 1px solid var(--wp-line); }
.pledge li { display: flex; gap: .7rem; font-size: .95rem; color: var(--wp-muted); }
.pledge .icon { color: var(--wp-safe); margin-top: .15rem; }
.pledge strong { color: var(--wp-ink); }

/* ---------------------------------------------------------------- sections + cards */
.section { padding: 3rem 0 1rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.section-head h2 { margin: 0; }
.section-note { margin: 0; color: var(--wp-muted); }
.page-head { padding: 2rem 0 1rem; }
.page-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: var(--wp-radius-m); background: var(--wp-brand-soft); color: var(--wp-brand); margin-bottom: 1rem; }
.intro { color: var(--wp-muted); font-size: 1.05rem; }

.card-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.prank-card a { display: flex; flex-direction: column; height: 100%; background: var(--wp-surface); border: 1px solid var(--wp-line); border-radius: var(--wp-radius-l); overflow: hidden; text-decoration: none; color: var(--wp-ink); transition: border-color .15s; }
.prank-card a:hover { border-color: var(--wp-brand); color: var(--wp-ink); }
.prank-card a:hover .card-title { text-decoration: underline 2px var(--wp-mark); text-underline-offset: 4px; }
.card-preview { display: block; aspect-ratio: 16 / 9; background: var(--wp-surface-2); border-bottom: 1px solid var(--wp-line); }
.card-preview svg { width: 100%; height: 100%; display: block; }
.card-body { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem 1.15rem; flex: 1; }
.card-cat { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--wp-muted); }
.card-cat .icon { color: var(--wp-brand); }
.card-title { font: 650 1.1rem/1.25 var(--wp-font-display); }
.card-hook { color: var(--wp-muted); font-size: .93rem; flex: 1; }
.card-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.badge { display: inline-block; font: 600 .74rem/1 var(--wp-font); padding: .32rem .55rem; border-radius: 999px; background: var(--wp-surface-2); color: var(--wp-muted); }
.badge-kid-safe { background: var(--wp-safe-soft); color: var(--wp-safe); }
.badge-image, .badge-screenshot { background: var(--wp-brand-soft); color: var(--wp-brand); }

.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.cat-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: .9rem; row-gap: .2rem; padding: 1.1rem; height: 100%; background: var(--wp-surface); border: 1px solid var(--wp-line); border-radius: var(--wp-radius-m); text-decoration: none; color: var(--wp-ink); }
.cat-tile:hover { border-color: var(--wp-brand); color: var(--wp-ink); }
.cat-icon { grid-row: 1 / 4; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--wp-radius-s); background: var(--wp-brand-soft); color: var(--wp-brand); }
.cat-name { font-weight: 650; }
.cat-short { font-size: .9rem; color: var(--wp-muted); }
.cat-count { font-size: .8rem; color: var(--wp-muted); font-weight: 600; margin-top: .2rem; }
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .5rem; }
.cat-list a { display: flex; align-items: center; gap: .65rem; padding: .7rem .9rem; border-radius: var(--wp-radius-s); background: var(--wp-surface); border: 1px solid var(--wp-line); text-decoration: none; color: var(--wp-ink); }
.cat-list a:hover { border-color: var(--wp-brand); }
.cat-list .icon { color: var(--wp-brand); }
.cat-list-count { margin-left: auto; font-size: .82rem; color: var(--wp-muted); text-align: right; }

.mischief-promo { margin-top: 3.5rem; background: #121826; color: #E9ECF3; }
.mischief-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 3.5rem 0; }
.mischief-copy p { color: #B9C0D0; }
.steps { padding-left: 1.2rem; margin: 1.2rem 0 1.6rem; }
.steps li { margin-bottom: .5rem; color: #B9C0D0; }
.steps strong { color: #fff; }
.mischief-art { position: relative; aspect-ratio: 16 / 10; border-radius: var(--wp-radius-m); background: linear-gradient(160deg, #3A6EA5, #1F3F66); overflow: hidden; }
.mw { position: absolute; width: 46%; height: 46%; background: #F3F3F3; border-radius: 6px; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.mw b { display: block; height: 14%; background: #DFE3EA; border-radius: 6px 6px 0 0; }
.mw1 { left: 10%; top: 10%; } .mw2 { left: 18%; top: 20%; } .mw3 { left: 26%; top: 30%; animation: mw-wobble 3.6s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes mw-wobble { 0%, 55%, 100% { transform: translate(0, 0) skewX(0); } 65% { transform: translate(18%, 8%) skewX(-6deg); } 75% { transform: translate(30%, 12%) skewX(4deg); } 85% { transform: translate(34%, 14%) skewX(-2deg); } }
.mw-taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 10%; background: rgba(20, 26, 38, .85); }

/* ---------------------------------------------------------------- filters, planned, faqs, safety */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-block: .5rem 1.2rem; }
.filters-label { font-size: .9rem; color: var(--wp-muted); margin-right: .2rem; }
.chip { font: 500 .88rem/1 var(--wp-font); padding: .5rem .85rem; border-radius: 999px; border: 1px solid var(--wp-line); background: var(--wp-surface); color: var(--wp-ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--wp-ink); color: var(--wp-page); border-color: var(--wp-ink); }
.filter-empty { color: var(--wp-muted); padding: 1rem 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; padding-top: 1.5rem; }
.planned h2, .faqs h2 { margin-top: 0; }
.planned-note { color: var(--wp-muted); font-size: .93rem; }
.planned-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--wp-line); }
.planned-list li { display: flex; flex-direction: column; padding: .65rem 0; border-bottom: 1px solid var(--wp-line); }
.planned-title { font-weight: 600; }
.planned-hook { font-size: .9rem; color: var(--wp-muted); }
.faqs { margin-top: 2rem; }
.two-col .faqs { margin-top: 0; }
.faqs fluent-accordion-item p { margin: .2rem 0 .8rem; color: var(--wp-muted); }

.safety-box { display: flex; gap: 1rem; margin: 2rem 0 .5rem; padding: 1.2rem 1.4rem; background: var(--wp-safe-soft); border-radius: var(--wp-radius-m); border-left: 4px solid var(--wp-safe); }
.safety-box > .icon { color: var(--wp-safe); margin-top: .1rem; }
.safety-box h2 { font-size: 1.1rem; margin: 0 0 .35rem; }
.safety-box p { margin: 0; }
.exit-list { list-style: none; padding: 0; margin: .4rem 0 .6rem; }
.exit-list li { display: flex; gap: .55rem; align-items: center; margin-bottom: .3rem; }
.exit-list .icon { color: var(--wp-safe); }

/* ---------------------------------------------------------------- launch page */
.launch-head { padding: 1.6rem 0 .5rem; }
.launch-cat { margin: 0 0 .5rem; font-size: .9rem; }
.launch-cat a { display: inline-flex; gap: .35rem; align-items: center; text-decoration: none; }
.launch-badges { display: flex; gap: .4rem; flex-wrap: wrap; }
.launch-panel { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2rem; align-items: start; margin-top: 1rem; }
.preview-frame { position: relative; aspect-ratio: 16 / 10; border-radius: var(--wp-radius-l); overflow: hidden; background: #000; box-shadow: var(--wp-shadow); container-type: inline-size; }
.preview-frame iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; transform: scale(calc(100cqw / 1280px)); pointer-events: none; }
@supports not (width: 1cqw) { .preview-frame iframe { transform: scale(.5); } }
.preview-note { font-size: .85rem; color: var(--wp-muted); margin-top: .6rem; }
.preview-static { border-radius: var(--wp-radius-l); overflow: hidden; }
.launch-form { background: var(--wp-surface); border: 1px solid var(--wp-line); border-radius: var(--wp-radius-l); padding: 1.4rem; position: sticky; top: 84px; }
.launch-form h2 { font-size: 1.25rem; }
.field { margin-bottom: 1rem; }
.field-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.launch-form fluent-text-input, .launch-form fluent-textarea, .launch-form fluent-slider { display: flex; width: 100%; }
.select { width: 100%; }
.select { height: 32px; padding: 0 2rem 0 .7rem; font: inherit; font-size: .92rem; color: var(--wp-ink); background: var(--wp-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23777' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .65rem center; border: 1px solid var(--wp-line); border-bottom-color: var(--wp-muted); border-radius: 4px; appearance: none; }
.select:focus { outline: none; border-bottom: 2px solid var(--wp-brand); }
.kit-settings { border: 0; border-top: 1px solid var(--wp-line); padding: 1rem 0 0; margin: 1.2rem 0 0; }
.kit-settings legend { font-weight: 650; padding: 0 .4rem 0 0; }
.switch-row { display: flex; align-items: center; gap: .6rem; margin-bottom: .55rem; font-size: .92rem; }
.start-button { width: 100%; margin-top: 1rem; }
.start-note { font-size: .82rem; color: var(--wp-muted); margin: .6rem 0 0; }
.launch-copy { padding-top: 1rem; }

/* ---------------------------------------------------------------- directory */
.disclaimer { margin: .5rem 0 1.2rem; }
fluent-message-bar.disclaimer { display: block; }
.az { display: flex; flex-wrap: wrap; gap: .2rem; margin-bottom: .6rem; font-weight: 600; }
.az a, .az span { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--wp-radius-s); text-decoration: none; }
.az a:hover { background: var(--wp-brand-soft); }
.az span { color: var(--wp-line); }
.dir-list { list-style: none; margin: 0; padding: 0; }
.dir-item { position: relative; display: grid; grid-template-columns: 160px 1fr; gap: 1.4rem; padding: 1.4rem 0; border-top: 1px solid var(--wp-line); }
.dir-letter { position: absolute; left: -3rem; top: 1.4rem; font: 700 1.4rem/1 var(--wp-font-display); color: var(--wp-brand); }
.dir-image img, .dir-placeholder { width: 160px; aspect-ratio: 16 / 10; border-radius: var(--wp-radius-m); object-fit: cover; }
.dir-placeholder { display: grid; place-items: center; background: var(--wp-surface-2); font: 700 2rem/1 var(--wp-font-display); color: var(--wp-muted); }
.dir-body h2 { font-size: 1.25rem; margin: 0 0 .2rem; }
.dir-meta { font-size: .85rem; color: var(--wp-muted); margin-bottom: .5rem; }
.dir-review { margin: .2rem 0 .6rem; }
.review-pending { font-size: .85rem; font-style: italic; color: var(--wp-muted); }
.dir-stop { font-size: .92rem; }
.dir-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }

/* ---------------------------------------------------------------- static + 404 */
.static-page { padding: 1.5rem 0 3rem; }
.exit-steps li { margin-bottom: .7rem; }
.notfound-dialog { display: flex; flex-direction: column; gap: .5rem; max-width: 380px; padding: 1rem 1.2rem; background: var(--wp-surface); border: 1px solid var(--wp-line); border-radius: var(--wp-radius-m); box-shadow: var(--wp-shadow); }
.nf-bar { font-weight: 600; }
.nf-progress { height: 6px; border-radius: 3px; background: var(--wp-surface-2); overflow: hidden; }
.nf-progress i { display: block; height: 100%; width: 100%; background: #D13438; animation: nf 2.4s ease-out; }
@keyframes nf { from { width: 0; } }
.nf-text { font-size: .9rem; color: var(--wp-muted); }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 4rem; padding: 2.5rem 0 2rem; background: var(--wp-surface); border-top: 1px solid var(--wp-line); font-size: .93rem; }
.footer-pledge { display: flex; gap: .7rem; align-items: center; padding-bottom: 1.5rem; border-bottom: 1px solid var(--wp-line); }
.footer-pledge p { margin: 0; }
.footer-pledge .icon { color: var(--wp-safe); }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 1.5rem 0; }
.footer-cols ul, .footer-bottom ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: .35rem; }
.footer-cols a, .footer-bottom a { color: var(--wp-muted); text-decoration: none; }
.footer-cols a:hover, .footer-bottom a:hover { color: var(--wp-brand); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.2rem; border-top: 1px solid var(--wp-line); color: var(--wp-muted); }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .search input { width: 160px; }
  .hero, .mischief-inner, .launch-panel, .two-col { grid-template-columns: 1fr; }
  .hero { padding-top: 2.5rem; gap: 2rem; }
  .launch-form { position: static; }
  .pledge ul { grid-template-columns: 1fr 1fr; }
  .dir-letter { position: static; display: block; grid-column: 1 / -1; margin-bottom: -.6rem; }
}
@media (max-width: 760px) {
  .header-row { flex-wrap: wrap; gap: .6rem; padding-block: .5rem; }
  .site-nav { order: 3; flex-basis: 100%; }
  .nav-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--wp-line); border-radius: var(--wp-radius-s); background: var(--wp-surface); color: var(--wp-ink); position: absolute; right: 0; top: .5rem; }
  .header-tools { margin-left: auto; margin-right: 2.6rem; gap: .35rem; }
  .search input { width: 118px; }
  .header-row { position: relative; }
  .brand-word { font-size: 1.15rem; }
  .search-results { width: min(340px, 90vw); }
  .nav-list { display: none; flex-direction: column; align-items: stretch; padding-bottom: .6rem; }
  .nav-list.is-open { display: flex; }
  .cat-panel { position: static; width: auto; box-shadow: none; margin-top: .3rem; }
  .cat-panel-grid { grid-template-columns: 1fr; }
  .pledge ul { grid-template-columns: 1fr; gap: .8rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .dir-item { grid-template-columns: 1fr; gap: .8rem; }
  .cat-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------------------------------------------------------------- image generators */
.ik-preview { display: grid; place-items: center; padding: 1.25rem; border-radius: var(--wp-radius-l); background: repeating-conic-gradient(var(--wp-surface-2) 0 25%, var(--wp-surface) 0 50%) 0 0 / 20px 20px; border: 1px solid var(--wp-line); }
.ik-preview canvas { display: block; max-width: 100%; max-height: 72vh; width: auto; height: auto; border-radius: 10px; box-shadow: var(--wp-shadow); background: #fff; }
.ik-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.ik-actions [hidden] { display: none; }
.ik-note { margin: 1rem 0 0; padding: .7rem .9rem; border-radius: var(--wp-radius-s); background: #FFF4CE; color: #3B2E00; font-size: .9rem; }
.ik-note[hidden] { display: none; }
.file { display: block; width: 100%; font: inherit; font-size: .9rem; color: var(--wp-ink); }
.file::file-selector-button { font: 600 .85rem var(--wp-font); padding: .45rem .8rem; margin-right: .7rem; border-radius: 4px; border: 1px solid var(--wp-line); background: var(--wp-surface); color: var(--wp-ink); cursor: pointer; }
.field-help { display: block; font-size: .8rem; color: var(--wp-muted); margin-top: .3rem; }

.launch-form fluent-text-input, .launch-form fluent-textarea { display: block; width: 100%; max-width: none; }
.launch-form fluent-text-input::part(root) { width: 100%; }
.launch-form fluent-textarea::part(root) { width: 100%; }
.launch-form fluent-textarea { height: 9.5em; }
.launch-form fluent-textarea::part(root) { height: 100%; }
.launch-form fluent-textarea::part(control) { height: 100%; width: 100%; }
