@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/dm-sans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/dm-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fragment Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/fragment-mono-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fragment Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/fragment-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Layout: one narrow column over a full-screen prism light; deliberately dark-only so the light reads */
:root {
  --bg: #060709;
  --surface: rgba(10, 12, 18, 0.5);
  --fg: #eceef4;
  --muted: #bcc2d0;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #eceef4;
  --accent-fg: #0b0c10;
  --digit: #6fe0b4;
  --symbol: #ffa47a;
  --weak: #ff6b5b;
  --fair: #f0b941;
  --strong: #5fd38d;
  --font-ui: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
#prism { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main { position: relative; z-index: 1; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font-ui); font-size: 15px; line-height: 1.5;
  padding: 0 16px; padding-block: 80px 32px;
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center; grid-template-columns: minmax(0, 1fr);
}
/* Width follows the password: at least 520px, grows evenly both ways, wraps at the window edge */
main { width: fit-content; min-width: min(520px, 100%); max-width: 100%; justify-self: center; display: grid; gap: 20px; }
header { text-align: center; padding-block: 4px 8px; }
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); line-height: 1.05; font-weight: 700; margin: 0; letter-spacing: -0.03em; text-wrap: balance; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 0 18px rgba(0, 0, 0, 0.6); }

/* Liquid glass: clear body, bright rim, soft inner glow. JS adds lens refraction in Chromium. */
.glass {
  position: relative; isolation: isolate;
  background: var(--surface); border: 0; border-radius: 22px;
  backdrop-filter: blur(16px) saturate(150%) brightness(0.75);
  -webkit-backdrop-filter: blur(16px) saturate(150%) brightness(0.75);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -1px 1px rgba(255, 255, 255, 0.10),
    inset 0 0 24px rgba(255, 255, 255, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.45);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.6), rgba(255,255,255,0) 35%, rgba(255,255,255,0) 65%, rgba(255,255,255,.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.output { padding: 20px; display: grid; gap: 14px; }
#pw {
  font-family: var(--font-mono); font-size: 1.35rem; line-height: 1.45;
  word-break: break-all; min-height: 2.9em; user-select: all; margin: 0;
}
#pw .d { color: var(--digit); }
#pw .s { color: var(--symbol); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
button {
  font: inherit; font-weight: 500; border-radius: 999px; padding: 8px 18px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--fg);
}
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); min-width: 92px; text-shadow: none; }
button:hover { filter: brightness(1.08); }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.meter { display: grid; gap: 6px; }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--weak); transition: width .2s, background .2s; }
.meter-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; }
.meter-row b { font-weight: 500; }
.meter-row .facts { color: var(--muted); font-variant-numeric: tabular-nums; }

fieldset { padding: 20px; margin: 0; display: grid; gap: 14px; min-width: 0; }
.length { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.length output { font-family: var(--font-mono); font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.opts label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.opts input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.opts code { font-family: var(--font-mono); color: var(--muted); font-size: 0.8rem; }
.note { color: var(--muted); font-size: 0.8rem; margin: 0; }
@media (max-width: 420px) { .opts { grid-template-columns: 1fr; } #pw { font-size: 1.15rem; } }
@media (prefers-reduced-motion: reduce) { .bar span { transition: none; } }
/* Generator switcher: glass pill fixed top-left, dropdown below it */
.switcher { position: fixed; z-index: 3; top: calc(env(safe-area-inset-top, 0px) + 16px); left: 16px; }
.switcher > button {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 16px; border-radius: 999px;
  background: var(--surface); border: 0; font-weight: 500;
}
.switcher > button:hover { filter: none; background: rgba(255, 255, 255, 0.1); }
.switcher > button svg { width: 12px; height: 12px; transition: transform .15s; }
.switcher > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; margin: 0; padding: 6px;
  list-style: none; border-radius: 16px; display: grid; gap: 2px;
}
.menu button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border: 0; border-radius: 10px; background: transparent; text-align: left; font-weight: 400;
}
.menu button:not(:disabled):hover { background: rgba(255, 255, 255, 0.08); filter: none; }
.menu button[aria-current="page"] { background: rgba(255, 255, 255, 0.12); font-weight: 500; }
.menu button:disabled { color: var(--muted); cursor: default; }
.menu .tag {
  font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; white-space: nowrap;
}
.menu .tick { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .switcher > button svg { transition: none; } }
/* Shared form controls for all generators */
.view { display: grid; gap: 20px; min-width: 0; }
.result { font-family: var(--font-mono); font-size: 1.35rem; line-height: 1.45; word-break: break-all; min-height: 2.9em; margin: 0; }
.result .d { color: var(--digit); }
.result .s { color: var(--symbol); }
.result .sep { color: var(--muted); }
.result.pin { font-size: clamp(2rem, 8vw, 2.8rem); letter-spacing: 0.18em; min-height: 0; }
.result.words { font-family: var(--font-ui); font-size: 1.6rem; font-weight: 500; word-break: normal; overflow-wrap: anywhere; min-height: 0; }
.result.empty { color: var(--muted); font-size: 1rem; font-family: var(--font-ui); }
.facts-line { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; margin: 0; }
.error { color: var(--fair); font-size: 0.85rem; margin: 0; }
.row { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 12px; align-items: center; }
.fields { display: grid; gap: 12px; }
input[type="number"], input[type="text"], select, textarea {
  font: inherit; color: var(--fg); background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; width: 100%; min-width: 0;
}
select option { background: #1b1e28; color: var(--fg); }
textarea { resize: vertical; line-height: 1.45; }
select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.label-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.label-row span { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; justify-self: start; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 6px 16px; border-radius: 999px; cursor: pointer; font-weight: 500; }
.seg input:checked + label { background: var(--accent); color: var(--accent-fg); text-shadow: none; }
.seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.dice { display: flex; flex-wrap: wrap; gap: 8px; }
.die {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 1.4rem; font-variant-numeric: tabular-nums;
}
.teams { display: grid; gap: 10px; }
.team { display: grid; gap: 2px; }
.team b { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 500; }
.team span { font-size: 1.15rem; }
.qr { --qr-bg: #ffffff; background: var(--qr-bg); border-radius: 14px; width: min(260px, 100%); justify-self: center; image-rendering: pixelated; display: block; }
.note a { color: inherit; }
.menu button:not([aria-current]) .tick { visibility: hidden; }
@media (max-width: 420px) { .row { grid-template-columns: 1fr; gap: 6px; } }
/* Landing page: wide column, hero + live demo, tool grid, reasons, FAQ */
main.wide { width: 100%; max-width: 1080px; }
.home { gap: 56px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.hero-copy h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 0 18px rgba(0, 0, 0, 0.55);
}
.hero-copy p {
  color: var(--muted); font-size: 1.05rem; max-width: 46ch; margin: 14px 0 22px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 0 18px rgba(0, 0, 0, 0.55);
}
/* Soft dark pool behind the hero text so the beam never washes it out */
.hero-copy { position: relative; }
.hero-copy::before {
  content: ""; position: absolute; inset: -48px -56px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(6, 7, 9, 0.85), rgba(6, 7, 9, 0.6) 55%, rgba(6, 7, 9, 0));
}
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.demo { padding: 22px; display: grid; gap: 12px; min-width: 0; }
.chip {
  justify-self: start; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px;
}
#demoOut { transition: opacity .25s; min-height: 2.9em; }
#demoOut.fade { opacity: 0; }
.block { display: grid; gap: 16px; }
h2.section {
  font-size: 1.4rem; letter-spacing: -0.01em; margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 0 18px rgba(0, 0, 0, 0.55);
}
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
button.tool {
  display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 20px;
  border-radius: 22px; font-weight: 400; color: var(--fg); transition: transform .15s;
}
button.tool:hover { filter: none; transform: translateY(-2px); }
.tool h3 { margin: 0; font-size: 1.1rem; }
.tool p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.tool .sample {
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.92rem; word-break: break-all; min-height: 2.4em;
}
.tool .sample .d { color: var(--digit); }
.tool .sample .s { color: var(--symbol); }
.tool .go { font-size: 0.85rem; font-weight: 500; }
.qr-mini { width: 56px; height: 56px; border-radius: 6px; image-rendering: pixelated; display: block; }
.why { padding: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.why h3 { margin: 0 0 6px; font-size: 1rem; }
.why p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.faq { padding: 4px 22px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 500; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.faq details p { margin: 0 0 16px; color: var(--muted); max-width: 70ch; }
.end-cta { padding: 32px 24px; justify-items: center; text-align: center; gap: 12px; }
.end-cta p { margin: 0; color: var(--muted); }
.end-cta .cta { justify-content: center; margin-top: 6px; }
.foot { color: var(--muted); font-size: 0.82rem; text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); display: grid; gap: 8px; justify-items: center; }
.foot p { margin: 0; max-width: 68ch; }
.foot b { color: var(--fg); font-weight: 500; }
.foot a { color: inherit; }
@media (max-width: 900px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } .why { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tools { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { #demoOut, button.tool { transition: none; } }
/* Refract logo */
.pill-mark { width: 20px; height: 18px; flex: none; }
header { display: grid; justify-items: center; gap: 14px; }
.brand-mark { width: 84px; height: 74px; }
main:not(.wide) .brand-mark { display: none; }
/* Tactile feel: springy presses, chunky sliders, results that pop in */
button { transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), filter .15s, background-color .15s; }
button:active { transform: scale(.94); transition-duration: .06s; }
button.tool:active { transform: scale(.98); }
.opts label { transition: transform .18s cubic-bezier(.34, 1.56, .64, 1); }
.opts label:active { transform: scale(.97); }
.opts input { transition: transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.opts input:active { transform: scale(.82); }
.seg label { transition: background-color .18s, color .18s, transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.seg label:active { transform: scale(.94); }

input[type="range"] { -webkit-appearance: none; appearance: none; height: 30px; background: transparent; cursor: pointer; --fill: 50%; }
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 4px;
  background: linear-gradient(to right, var(--accent) var(--fill), rgba(255, 255, 255, 0.14) var(--fill));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%;
  background: #ffffff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55), 0 0 0 5px rgba(255, 255, 255, 0.09);
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), box-shadow .18s;
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.22); box-shadow: 0 2px 14px rgba(0, 0, 0, 0.6), 0 0 0 9px rgba(255, 255, 255, 0.12); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--accent); }
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border: 0; border-radius: 50%; background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55), 0 0 0 5px rgba(255, 255, 255, 0.09);
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1);
}
input[type="range"]:active::-moz-range-thumb { transform: scale(1.22); }

@keyframes resultIn { from { opacity: .3; transform: translateY(4px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.result.pop { animation: resultIn .26s cubic-bezier(.2, .8, .2, 1); }
output.bump { display: inline-block; animation: bump .2s ease-out; }

.sound-toggle {
  position: fixed; z-index: 3; top: calc(env(safe-area-inset-top, 0px) + 16px); right: 16px;
  width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border-radius: 999px;
  background: var(--surface); border: 0;
}
.sound-toggle:hover { filter: none; background: rgba(255, 255, 255, 0.1); }
.sound-toggle svg { width: 20px; height: 20px; }
.sound-toggle .off { display: none; }
.sound-toggle[aria-pressed="false"] .on { display: none; }
.sound-toggle[aria-pressed="false"] .off { display: block; }

@media (prefers-reduced-motion: reduce) {
  button, .opts label, .opts input, .seg label, input[type="range"]::-webkit-slider-thumb { transition: none; }
  button:active, button.tool:active, .opts label:active, .opts input:active, .seg label:active { transform: none; }
  .result.pop, output.bump { animation: none; }
}
/* Chrome extension teaser: hero link + promo section with a small right-click illustration */
.announce {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px;
  padding: 6px 14px 6px 10px; border-radius: 999px; font-size: 0.85rem; text-decoration: none; color: var(--fg);
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line);
  transition: background-color .15s, transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.announce:hover { background: rgba(255, 255, 255, 0.12); }
.announce:active { transform: scale(.97); }
.announce svg, .soon svg { width: 16px; height: 16px; flex: none; }
.announce-go { color: var(--muted); }
a.btn {
  display: inline-flex; align-items: center; font: inherit; font-weight: 500; border-radius: 999px; padding: 8px 18px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); color: var(--fg); text-decoration: none;
  transition: transform .22s cubic-bezier(.34, 1.56, .64, 1), filter .15s;
}
a.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); text-shadow: none; }
a.btn:hover { filter: brightness(1.08); }
a.btn:active { transform: scale(.94); transition-duration: .06s; }
a.btn:focus-visible, .announce:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chrome-promo { padding: 28px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 28px; }
.chrome-copy { display: grid; gap: 12px; min-width: 0; }
.soon { display: inline-flex; align-items: center; gap: 8px; justify-self: start; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.chrome-copy ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--muted); }
.chrome-copy b { color: var(--fg); font-weight: 500; }
.ctx-mock { position: relative; height: 210px; min-width: 0; font-size: 0.85rem; text-shadow: none; }
.ctx-field { position: absolute; left: 0; top: 18px; width: 64%; background: #f5f6f8; color: #1b1e27; border-radius: 12px; padding: 12px 14px; }
.ctx-field span { font-size: 0.75rem; font-weight: 500; }
.ctx-field div { margin-top: 6px; border: 1px solid #4b6bff; box-shadow: 0 0 0 3px rgba(75,107,255,.2); border-radius: 8px; padding: 6px 10px; letter-spacing: 2px; background: #fff; }
.ctx-menu, .ctx-sub { position: absolute; background: #ffffff; color: #1b1e27; border-radius: 9px; border: 1px solid #dfe2e8; box-shadow: 0 12px 30px rgba(0,0,0,.35); padding: 5px 0; }
.ctx-menu { left: 22%; top: 92px; width: 38%; }
.ctx-sub { right: 0; top: 132px; width: 44%; max-width: 210px; }
.ctx-menu div, .ctx-sub div { padding: 5px 12px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ctx-menu span { margin-left: auto; }
.ctx-menu svg { width: 15px; height: 13px; }
.ctx-sep { height: 1px; padding: 0 !important; margin: 4px 0; background: #e6e8ee; }
.ctx-hl { background: #e8ecff; }
.ctx-on { background: #4b6bff; color: #ffffff; }
@media (max-width: 820px) { .chrome-promo { grid-template-columns: 1fr; } .ctx-mock { max-width: 420px; } }
@media (prefers-reduced-motion: reduce) { .announce, a.btn { transition: none; } .announce:active, a.btn:active { transform: none; } }
/* Product Hunt review badge (image embedded, so nothing loads from Product Hunt) */
.ph-badge { display: inline-block; line-height: 0; border-radius: 10px; transition: transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.ph-badge:hover { transform: translateY(-2px); }
.ph-badge:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* Popup: fixed 380px width, compact spacing, no landing page */
html, body { width: 380px; }
body { min-height: 0; display: block; margin: 0; padding: 68px 14px 14px; position: relative; }
main { width: 100%; min-width: 0; max-width: none; gap: 14px; }
header { display: none; }
.switcher { position: absolute; top: 12px; left: 12px; }
.sound-toggle { position: absolute; top: 12px; right: 12px; }
.opts { grid-template-columns: 1fr 1fr; }
.opts label:last-child:nth-child(odd) { grid-column: 1 / -1; }
.view { gap: 14px; }
.output, fieldset { padding: 16px; }
.result { font-size: 1.12rem; min-height: 2.6em; }
.result.pin { font-size: 2rem; min-height: 0; }
.result.words { font-size: 1.3rem; }
.row { grid-template-columns: 1fr; gap: 6px; }
.popup-foot { position: relative; z-index: 1; margin: 12px 0 0; text-align: center; font-size: 0.78rem; color: var(--muted); text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.popup-foot a { color: var(--fg); }
