:root {
  --bg: #090909;
  --surface: #111111;
  --surface-2: #151515;
  --border: #242424;
  --text: #f5f5f5;
  --muted: #a0a0a0;
  --accent: #b7f34a;
  --radius: 6px;
  --speed: 180ms;
  --on-accent: #090909;
  --header-bg: rgba(9, 9, 9, 0.92);
  --code-bg: #0d0d0d;
  --code-text: #d9f99d;
  color-scheme: dark;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
a { color: inherit; text-decoration: none; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: 1.25rem; margin-bottom: 16px; }
.container { width: min(1100px, 100% - 32px); margin-inline: auto; }
.muted, .lead { color: var(--muted); }
.lead { margin: 8px 0 28px; max-width: 60ch; }
.label { color: var(--accent); font-size: 0.75rem; letter-spacing: 0.12em; font-weight: 600; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 24px; height: 56px; }
.logo { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 20px; flex: 1; }
.nav-links a { color: var(--muted); transition: color var(--speed); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-spacer { flex: 1; }
.menu-button { display: none; }

.search { position: relative; }
.search input { width: 200px; }
.search-results {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); list-style: none; padding: 4px; display: none;
}
.search-results.open { display: block; }
.search-results a { display: block; padding: 8px 10px; border-radius: var(--radius-sm); }
.search-results a:hover { background: var(--surface-2); color: var(--accent); }

input, select, textarea {
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 9px 12px; font: inherit; width: 100%;
  transition: border-color var(--speed);
}
input:hover, select:hover { border-color: #3a3a3a; }
input:focus, select:focus { border-color: var(--accent); outline: none; }
input[type="color"] { padding: 2px; height: 40px; cursor: pointer; }
input[type="range"] { padding: 0; accent-color: var(--accent); }
label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--radius); font: inherit; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text);
  transition: border-color var(--speed), color var(--speed), background var(--speed), transform var(--speed);
}
.button:hover { border-color: var(--accent); color: var(--accent); }
.button:active { transform: scale(0.97); }
.button.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.button.primary:hover { color: var(--on-accent); transform: translateY(-1px); }
.button.primary:active { transform: scale(0.97); }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }

.hero { padding: 64px 0 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.hero h1 { margin: 12px 0; }
.hero .button-row { margin-top: 24px; }
.mini-preview { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.mini-swatch { height: 120px; border-radius: var(--radius-sm); margin-bottom: 12px; transition: background var(--speed); }
.mini-preview code { color: var(--muted); }

.section { padding: 32px 0 48px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  transition: border-color var(--speed), transform var(--speed), background var(--speed);
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-icon {
  width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--accent); font-size: 1.1rem;
}
.card h3 { font-size: 1rem; margin-bottom: 4px; }
.card p { color: var(--muted); font-size: 0.9rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.chip {
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  border-radius: 999px; padding: 5px 14px; cursor: pointer; font: inherit; font-size: 0.85rem;
  transition: border-color var(--speed), color var(--speed);
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

.tool { padding: 32px 0 64px; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--accent); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin-bottom: 16px; }
.field-group { margin-bottom: 20px; }
.preview { border-radius: var(--radius-sm); border: 1px solid var(--border); min-height: 200px; margin-bottom: 16px; }
.output-row { display: flex; gap: 8px; margin-bottom: 8px; }
.output-row input { font-family: ui-monospace, Menlo, Consolas, monospace; }
.output-row .button { flex-shrink: 0; }
pre.output {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; font: 0.85rem ui-monospace, Menlo, Consolas, monospace;
  white-space: pre-wrap; word-break: break-all; margin-bottom: 12px;
}

.swatches { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.swatch { width: 28px; height: 28px; border-radius: var(--radius-sm); border: 1px solid var(--border); cursor: pointer; padding: 0; }

.palette { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.palette-color { min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 12px; transition: background var(--speed); }
.palette-color .button { background: rgba(0, 0, 0, 0.45); color: #fff; border-color: transparent; font-size: 0.85rem; padding: 6px 8px; }
.palette-color .button:hover { color: var(--accent); }
.palette-color .button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

.stop { display: grid; grid-template-columns: 56px 1fr 52px 36px; gap: 8px; align-items: center; margin-bottom: 8px; }
.placeholder-canvas { max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }

.site-footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: 0.9rem; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 800px) {
  .hero, .layout { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .menu-button { display: inline-flex; margin-left: auto; }
  .nav { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 12px; }
  .nav-links { display: none; flex-direction: column; align-items: stretch; flex-basis: 100%; gap: 12px; padding-bottom: 8px; }
  .nav-links.open { display: flex; }
  .nav-spacer { display: none; }
  .search input { width: 100%; }
  .palette { grid-template-columns: 1fr; }
  .palette-color { min-height: 72px; flex-direction: row; align-items: center; justify-content: space-between; }
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { width: 4px; height: 4px; object-fit: contain; }

.hero-bg { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-bg::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 0, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 100% at 50% 0, #000 20%, transparent 75%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 280px at 72% 0, rgba(183, 243, 74, 0.09), transparent 70%);
}
.hero-bg .hero { position: relative; z-index: 1; padding-bottom: 64px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: none; }
}
@keyframes drop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.site-header { animation: drop 400ms ease both; }
.reveal { animation: rise 900ms var(--ease) both; animation-delay: calc(var(--i, 0) * 100ms + 150ms); }

.qr-canvas { max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.preview-image { max-width: 100%; height: auto; display: block; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 16px; background: var(--surface-2); min-height: 120px; }
.checks { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.checks label { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text); }
.checks input { width: auto; accent-color: var(--accent); }

.form-error { color: #ff6b6b; min-height: 1.5em; margin-bottom: 12px; }

.nav { height: 68px; }
.logo img { width: auto; height: 42px; }
.nav-links a i { margin-right: 4px; }
.menu-button { background: none; border: 1px solid var(--border); color: var(--text); border-radius: var(--radius); width: 40px; height: 40px; cursor: pointer; align-items: center; justify-content: center; }
.search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.85rem; pointer-events: none; }
.search input { padding-left: 34px; }
.button i { font-size: 0.9em; }

.hero { padding: 104px 0 88px; gap: 72px; }
.hero h1 { margin: 16px 0 20px; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.hero .lead { margin: 0 0 8px; font-size: 1.1rem; }
.hero .button-row { margin-top: 36px; }
.mini-preview { padding: 20px; }
.mini-swatch { display: block; width: 100%; border: 0; cursor: pointer; height: 150px; margin-bottom: 16px; }
.mini-hint { color: var(--muted); font-size: 0.8rem; margin-top: 12px; }

.section { padding: 64px 0 24px; }
.section h2 { margin-bottom: 28px; }
.grid { gap: 20px; }
.card { padding: 26px; }
.card-icon { width: 42px; height: 42px; margin-bottom: 18px; }
.card h3 { margin-bottom: 6px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.feature { border-top: 1px solid var(--border); padding-top: 20px; }
.feature i { color: var(--accent); margin-bottom: 14px; font-size: 1.1rem; }
.feature h3 { font-size: 1rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.9rem; }
#about { padding-bottom: 96px; }

.tool { padding: 56px 0 112px; }
.breadcrumb { margin-bottom: 24px; }
.lead { margin: 12px 0 40px; }
.layout { gap: 28px; }
.panel { padding: 28px; }
.fields { gap: 16px; margin-bottom: 20px; }
.field-group { margin-bottom: 24px; }
.preview { margin-bottom: 24px; }
.button-row { gap: 12px; }
.swatches { margin-top: 20px; }
.palette { margin-bottom: 28px; }
.chips { margin: 24px 0 36px; }

.copy-code {
  display: block; margin-bottom: 20px; padding: 12px 14px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  font: 0.85rem/1.5 ui-monospace, Menlo, Consolas, monospace;
  white-space: pre-wrap; word-break: break-all; color: var(--text);
  transition: border-color var(--speed), color var(--speed);
}
.copy-code:hover, .copy-code:focus-visible { border-color: var(--accent); color: var(--accent); }
.palette-color .copy-code { background: none; border: 0; padding: 0; margin: 0; font-size: 1.05rem; font-weight: 600; color: inherit; }
.palette-color .copy-code:hover { color: inherit; opacity: 0.7; }
.hint { color: var(--muted); font-size: 0.85rem; margin-bottom: 12px; }

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 12px);
  background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 0.9rem;
  padding: 10px 18px; border-radius: var(--radius); opacity: 0; pointer-events: none;
  transition: opacity var(--speed), transform var(--speed); z-index: 20;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

.site-footer { padding: 32px 0; }

@media (max-width: 800px) {
  .nav { height: auto; min-height: 64px; }
  .hero { padding: 56px 0 48px; gap: 40px; }
  .features { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
}

::selection { background: var(--accent); color: var(--on-accent); }
html { scroll-behavior: smooth; scrollbar-color: #2a2a2a var(--bg); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

.nav { position: relative; }
.nav-links { justify-content: flex-end; }
.search { position: absolute; left: 50%; transform: translateX(-50%); }

.hero { min-height: calc(100svh - 68px); align-items: center; padding: 72px 0; }
.trust { list-style: none; padding: 0; margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 0.9rem; }
.trust i { color: var(--accent); margin-right: 6px; }

.layout { align-items: start; }
.preview-panel { display: flex; align-items: center; justify-content: center; min-height: 320px; }
.placeholder-canvas, .qr-canvas, .preview-image { display: block; max-width: 100%; max-height: 420px; width: auto; height: auto; margin: 0; }
.preview.slim { min-height: 56px; height: 56px; }

.copy-code {
  position: relative; padding: 14px 48px 14px 16px; background: var(--code-bg);
  border-left: 3px solid var(--accent); color: var(--code-text);
}
.copy-code::after {
  content: "\f0c5"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; right: 16px; top: 14px; color: var(--muted); transition: color var(--speed);
}
.copy-code:hover::after { color: var(--accent); }
.palette-color .copy-code { background: none; border: 0; padding: 0; }
.palette-color .copy-code::after { display: none; }

.sv-area {
  position: relative; height: 220px; margin-bottom: 20px; cursor: crosshair; touch-action: none;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, hsl(var(--hue, 90), 100%, 50%));
}
.sv-handle { position: absolute; width: 18px; height: 18px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #000; transform: translate(-50%, -50%); pointer-events: none; }

input[type="range"] { -webkit-appearance: none; appearance: none; height: 8px; border: 0; border-radius: 99px; background: var(--border); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); cursor: pointer; }
.hue-slider { background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }

input[type="checkbox"] { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; padding: 0; border-radius: var(--radius-sm); cursor: pointer; display: inline-grid; place-content: center; }
input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
input[type="checkbox"]:checked::after { content: ""; width: 5px; height: 10px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.checks input { width: 20px; }

input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: var(--radius-sm); }
input[type="color"]::-moz-color-swatch { border: 0; border-radius: var(--radius-sm); }
input::file-selector-button { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 10px; margin-right: 10px; cursor: pointer; font: inherit; }
input::file-selector-button:hover { border-color: var(--accent); color: var(--accent); }

.select { position: relative; }
.select-button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 9px 12px; font: inherit; cursor: pointer; text-align: left;
  transition: border-color var(--speed);
}
.select-button:hover, .select.open .select-button { border-color: var(--accent); }
.select-button:disabled { opacity: 0.4; cursor: not-allowed; border-color: var(--border); }
.select-button i { font-size: 0.75rem; color: var(--muted); transition: transform var(--speed); }
.select.open .select-button i { transform: rotate(180deg); }
.select-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 15; list-style: none;
  padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  display: none;
}
.select.open .select-menu { display: block; animation: drop 160ms ease; }
.select-menu li { padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer; }
.select-menu li:hover, .select-menu li:focus { background: var(--surface-2); color: var(--accent); outline: none; }
.select-menu li[aria-selected="true"] { color: var(--accent); }

main { animation: pageIn 450ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
main.leaving { opacity: 0; transform: translateY(-6px); transition: opacity 180ms, transform 180ms; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 800px) {
  .search { position: relative; left: auto; transform: none; }
  .hero { min-height: 0; }
}

html { scroll-padding-top: 88px; }

input[type="range"].hue-slider { height: 14px; border-radius: 99px; background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); }
input.hue-slider::-webkit-slider-thumb { width: 26px; height: 26px; background: hsl(var(--hue, 0), 100%, 50%); border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); }
input.hue-slider::-moz-range-thumb { width: 20px; height: 20px; background: hsl(var(--hue, 0), 100%, 50%); border: 3px solid #fff; }

.role { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; margin-bottom: 2px; }

.cta { padding-bottom: 96px; }
.cta-box { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.cta-box h2 { margin-bottom: 4px; }

.card
[hidden] { display: none !important; }

.scroll-reveal { opacity: 0; transform: translateY(48px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); transition-delay: calc(var(--i, 0) * 100ms); }
.scroll-reveal.in-view { opacity: 1; transform: none; }
.scroll-reveal.revealed { transition: border-color var(--speed), background var(--speed), transform var(--speed); transition-delay: 0s; }
.word-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.word { display: inline-block; transform: translateY(115%); transition: transform 1000ms var(--ease); transition-delay: calc(var(--w, 0) * 90ms + var(--base, 0ms)); }
.in-view .word { transform: none; }

.tool { padding: 28px 0 96px; }
.tool .breadcrumb { margin-bottom: 12px; }
.tool h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.tool .lead { margin: 8px 0 24px; }
.tool .panel { padding: 24px; }
.sv-area { height: 200px; }
.palette-color { min-height: 180px; }
.outputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 20px; margin-top: 28px; }
.outputs .hint { grid-column: 1 / -1; }
.outputs .field-group, .outputs .copy-code { margin-bottom: 0; }
.outputs .field-group { margin-bottom: 4px; }
.outputs > .copy-code { margin-bottom: 0; }
#favorites-section { margin-bottom: 40px; }

.card-wrap { position: relative; }
.card-wrap .card { height: 100%; }
.fav { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; background: none; border: 0; border-radius: var(--radius-sm); color: var(--muted); cursor: pointer; transition: color var(--speed), background var(--speed); }
.fav:hover { color: var(--accent); background: var(--surface-2); }
.fav[aria-pressed="true"] { color: var(--accent); }

.kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 6px; font: 0.75rem ui-monospace, Menlo, Consolas, monospace; color: var(--muted); pointer-events: none; transition: opacity var(--speed); }
.search input:focus ~ .kbd { opacity: 0; }

.toolbar { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.toolbar .fields { flex: 1; margin: 0; min-width: 260px; }
.mock { background: var(--p-background, #111); color: var(--p-text, #fff); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.mock-nav { display: flex; align-items: center; gap: 20px; padding: 14px 20px; background: var(--p-surface); font-size: 0.85rem; }
.mock-nav strong { margin-right: auto; color: var(--p-primary); }
.mock-pill, .mock-button { display: inline-block; background: var(--p-primary); color: var(--p-on-primary); padding: 6px 14px; border-radius: var(--radius-sm); font-weight: 600; }
.mock-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; padding: 28px 20px; }
.mock-tag { background: var(--p-accent); color: var(--p-on-accent); padding: 2px 10px; border-radius: 99px; font-size: 0.75rem; font-weight: 600; }
.mock h3 { font-size: 1.4rem; margin: 12px 0 8px; }
.mock p { opacity: 0.75; font-size: 0.9rem; margin-bottom: 16px; }
.mock-link { color: var(--p-accent); margin-left: 12px; font-weight: 600; }
.mock-card { background: var(--p-surface); border-radius: var(--radius); padding: 18px; border-left: 3px solid var(--p-accent); }
.mock-card p { margin: 6px 0 0; }

.color-field { display: grid; grid-template-columns: 48px 1fr; gap: 8px; }
.ratio { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em; margin: 24px 0 16px; }
.result-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.result-list li { display: flex; justify-content: space-between; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); }
.result-list .pass strong { color: var(--accent); }
.result-list .fail strong { color: #ff6b6b; }
.contrast-sample { border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; min-height: 240px; }
.contrast-sample h3 { font-size: 1.8rem; margin-bottom: 12px; }
.tool .dropzone { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 56px 24px; border: 1px dashed #3a3a3a; cursor: pointer; margin-bottom: 24px; transition: border-color var(--speed); }
.dropzone i { font-size: 1.8rem; color: var(--accent); }
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); }
.preview-canvas { display: block; max-width: 100%; max-height: 360px; width: auto; height: auto; }

@media (max-width: 800px) { .mock-body { grid-template-columns: 1fr; } }

.theme-toggle, .icon-button { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: none; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); cursor: pointer; transition: border-color var(--speed), color var(--speed); }
.theme-toggle:hover, .icon-button:hover { border-color: var(--accent); color: var(--accent); }

.preview-panel.stack { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px; }
.slider-row { margin-bottom: 18px; }
.slider-row label { display: flex; justify-content: space-between; }
.slider-row span { color: var(--text); }
.radius-box { width: min(100%, 240px); aspect-ratio: 1; margin: 0 auto; background: var(--accent); }
.shadow-stage { display: grid; place-items: center; min-height: 280px; background: #e5e5e5; border-radius: var(--radius); }
.shadow-box { width: 170px; height: 170px; background: #fff; border-radius: 16px; }

.stat-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 24px; align-items: center; padding: 18px 0; border-top: 1px solid var(--border); }
.stat-row .copy-code { margin-bottom: 6px; }
.stat-dest { color: var(--muted); font-size: 0.85rem; word-break: break-all; }
.stat-num strong { display: block; font-size: 1.6rem; line-height: 1.1; }
.stat-num span, .stat-meta { color: var(--muted); font-size: 0.85rem; }
.bar-row { display: grid; grid-template-columns: 220px 1fr 64px; gap: 16px; align-items: center; padding: 8px 0; }
.bar { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
@media (max-width: 800px) { .stat-row, .bar-row { grid-template-columns: 1fr; gap: 8px; } }

.copy-code {
  position: static; display: block; margin-bottom: 14px; padding: 0;
  background: none; border: 0; border-radius: 0;
  font-size: 0.9rem; line-height: 1.6; color: var(--code-text); cursor: pointer;
  text-decoration: underline dotted transparent; text-underline-offset: 5px;
  transition: text-decoration-color var(--speed), color var(--speed);
}
.copy-code::after { position: static; display: inline-block; margin-left: 10px; font-size: 0.8rem; }
.copy-code:hover, .copy-code:focus-visible { background: none; border: 0; color: var(--accent); text-decoration-color: currentColor; outline: none; }
.copy-code:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.palette-color .copy-code { margin: 0; color: inherit; text-decoration: none; }

.cta-box { background: none; border: 0; padding: 0; }
.tool .panel.outputs { background: none; border: 0; padding: 0; }

.layout.equal { align-items: stretch; }
.preview-panel.fill { position: relative; min-height: 320px; }
.preview-panel.fill > img, .preview-panel.fill > canvas {
  position: absolute; top: 24px; left: 24px; width: calc(100% - 48px); height: calc(100% - 48px);
  max-width: none; max-height: none; object-fit: contain;
}

.seo { max-width: 760px; margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--border); }
.seo h2 { font-size: 1.2rem; margin: 0 0 14px; }
.seo h2 + dl, .seo ol + h2 { margin-top: 36px; }
.seo ol { padding-left: 22px; color: var(--muted); }
.seo li { margin-bottom: 8px; padding-left: 4px; }
.seo dt { font-weight: 600; margin-top: 20px; }
.seo dd { margin: 6px 0 0; color: var(--muted); }
.notfound { padding-top: 96px; }
.notfound h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 12px 0 16px; }

.layout > .panel { aspect-ratio: 1; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; }
.layout > .panel > .preview:not(.slim), .layout > .panel > .shadow-stage { flex: 1; min-height: 160px; width: 100%; }
.layout > .preview-panel.stack { justify-content: center; align-items: center; }
.radius-box { width: min(100%, 320px); }
.layout.loose > .panel { aspect-ratio: auto; display: block; }
.layout.one { grid-template-columns: 1fr; }
.outputs .button-row { grid-column: 1 / -1; margin-top: 12px; }

.scroll-reveal:not(.in-view) { transition: none; }
.split:not(.in-view) .word { transition: none; }

@media (max-width: 800px) {
  .layout > .panel { aspect-ratio: auto; }
  .layout > .panel > .preview:not(.slim), .layout > .panel > .shadow-stage { min-height: 220px; }
}

:root {
  --radius: 8px; --radius-sm: 6px; --gap: 20px; --pad: 24px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --tk-prop: #7dd3fc; --tk-string: #fcd34d; --tk-num: #fdba74; --tk-punct: #737373; --tk-fn: #e5e5e5;
  --edge: rgba(255, 255, 255, 0.04);
}

body { font-family: var(--font-sans); }
h1, h2, h3, .logo, .ratio, .stat-num strong { font-family: var(--font-display); }
code, pre, kbd, .copy-code, .kbd, .output-row input { font-family: var(--font-mono); }

.panel, .card, .mini-preview, .select-menu, .search-results { border-radius: var(--radius); }
.button, input:not([type="checkbox"]):not([type="range"]), .select-button, .theme-toggle, .icon-button, .menu-button { border-radius: var(--radius); }
.layout, .grid, .features { gap: var(--gap); }
.tool .panel { padding: var(--pad); }

body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(900px 420px at 50% -120px, color-mix(in srgb, var(--accent) 6%, transparent), transparent 70%); }
.hero-bg::after { background: radial-gradient(600px 280px at 72% 0, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%); }
.panel, .card { box-shadow: inset 0 1px 0 var(--edge); }
.card { position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity var(--speed); background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%); }
h1.split::after { content: ""; display: inline-block; width: 0.09em; height: 0.82em; margin-left: 0.14em; vertical-align: -0.04em; background: var(--accent); animation: caret 1.05s steps(1) 1.3s 6; }
h1.split:not(.in-view)::after { opacity: 0; }
@keyframes caret { 50% { opacity: 0; } }

.tk-property, .tk-tag, .tk-var { color: var(--tk-prop); }
.tk-string { color: var(--tk-string); }
.tk-number, .tk-color { color: var(--tk-num); }
.tk-punct { color: var(--tk-punct); }
.tk-fn { color: var(--tk-fn); }
.tk-url { color: var(--accent); }
.tk-comment { color: var(--muted); }
.tk-color::before { content: ""; display: inline-block; width: 0.8em; height: 0.8em; margin-right: 0.4em; border-radius: 3px; background: var(--c); border: 1px solid var(--border); vertical-align: -0.05em; }

.empty-state { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 48px 16px; }
.empty-state i { font-size: 2rem; color: var(--muted); margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 44ch; margin-bottom: 12px; }
.skeleton-row { height: 64px; margin-bottom: 12px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.search-empty { padding: 8px 10px; color: var(--muted); }
.preview-panel.is-loading > img { opacity: 0.35; }
.preview-panel.is-loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 28px; height: 28px; margin: -14px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; z-index: 2; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

@property --ambient { syntax: "<color>"; inherits: true; initial-value: transparent; }
html { transition: --ambient 500ms ease; overflow-x: clip; }
body { position: relative; }

.hero-bg::before { background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--text) 18%, transparent) 1px, transparent 1.5px); background-size: 28px 28px; opacity: 0.6; }
.hero-art { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.outline { color: var(--accent); }
.hero-art .outline { position: absolute; right: -4%; top: 50%; height: 130%; width: auto; transform: translateY(-50%); opacity: 0.28; stroke-width: 1.4; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.outline.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s var(--ease) forwards; animation-delay: calc(var(--k) * 0.1s + 0.4s); }
@keyframes draw { to { stroke-dashoffset: 0; } }

.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.07; background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.page-art { position: absolute; top: 68px; left: 0; right: 0; height: 380px; overflow: hidden; pointer-events: none; z-index: -1; }
.art-dots { position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--text) 18%, transparent) 1px, transparent 1.5px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse 65% 100% at 50% 0, #000 20%, transparent 72%); mask-image: radial-gradient(ellipse 65% 100% at 50% 0, #000 20%, transparent 72%); }
.art-glow { position: absolute; inset: 0; background: radial-gradient(700px 300px at 50% 0, color-mix(in srgb, var(--ambient, transparent) 16%, transparent), transparent 72%); }
.art-glow::after { content: ""; position: absolute; inset: -40px; background: var(--ambient-gradient, none); filter: blur(70px); opacity: 0.16; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%); mask-image: linear-gradient(to bottom, #000, transparent 80%); }
.page-art .outline { position: absolute; top: 24px; right: max(16px, calc(50% - 550px)); height: 240px; width: auto; opacity: 0.16; stroke-width: 2.6; }

.scroll-reveal { transform: translateY(28px) scale(0.985); transition: opacity 700ms ease-out, transform 800ms var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }

@media (max-width: 800px) {
  .hero-art .outline { right: -30%; opacity: 0.18; }
  .page-art .outline { height: 140px; opacity: 0.12; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .scroll-reveal, .word { transform: none !important; transition: opacity 600ms ease !important; }
  .word { opacity: 0; }
  .in-view .word { opacity: 1; }
  .scroll-reveal:not(.in-view), .split:not(.in-view) .word { transition: none !important; }
}

.back { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 20px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--muted); transition: color var(--speed), border-color var(--speed), transform var(--speed); }
.back:hover { color: var(--accent); border-color: var(--accent); transform: translateX(-2px); }

.search input { height: 34px; width: 220px; padding: 0 36px 0 34px; font-size: 0.9rem; background: color-mix(in srgb, var(--text) 5%, transparent); border-color: transparent; }
.search input:hover { border-color: var(--border); }
.search input:focus { background: var(--surface); border-color: var(--accent); }
.search i { left: 12px; font-size: 0.8rem; }
.kbd { border: 0; background: color-mix(in srgb, var(--text) 8%, transparent); }

.panel.picker { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: start; }
.picker-area .sv-area { height: 300px; margin-bottom: 20px; }
.picker-area .hue-slider { margin: 0; }
.picker-values { display: grid; gap: 16px; }
.picker-top { display: flex; gap: 10px; align-items: stretch; }
.picker-top .preview { flex: 1; margin: 0; height: 44px; min-height: 44px; }
.value-row { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; }
.value-row label { margin: 0; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.picker-values .swatches { margin-top: 4px; }

.meter { height: 8px; margin: 16px 0 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width 300ms var(--ease), background var(--speed); }
.meter-label { color: var(--muted); margin-bottom: 20px; }
.password-field { display: flex; gap: 8px; }
.result-list li strong { text-align: right; word-break: break-word; margin-left: 24px; }

@media (max-width: 800px) { .panel.picker { grid-template-columns: 1fr; } .search input { width: 100%; } }

.drop-overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(9, 9, 9, 0.84); opacity: 0; pointer-events: none; transition: opacity var(--speed); }
.drop-overlay.show { opacity: 1; }
.drop-overlay div { display: grid; justify-items: center; gap: 12px; padding: 48px 72px; border: 2px dashed var(--accent); border-radius: var(--radius); color: var(--accent); font-size: 1.1rem; }
.drop-overlay i { font-size: 2.4rem; }

.crop-stage { display: block; max-width: 100%; height: auto; cursor: crosshair; touch-action: none; border-radius: var(--radius-sm); }

.site-footer { padding: 56px 0 28px; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { color: var(--muted); margin-top: 12px; max-width: 28ch; }
.footer-grid nav { display: grid; gap: 8px; align-content: start; }
.footer-grid h4 { margin-bottom: 4px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.footer-grid nav a { color: var(--muted); transition: color var(--speed); }
.footer-grid nav a:hover { color: var(--accent); }
.site-footer .footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); }
@media (max-width: 800px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } }

.page-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 80; height: 2px; background: var(--accent); transform-origin: left; pointer-events: none; animation: progress-done 800ms var(--ease) forwards; }
.page-progress.go { animation: progress-go 1.2s var(--ease) forwards; }
@keyframes progress-done { 0% { transform: scaleX(0.25); opacity: 1; } 65% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes progress-go { from { transform: scaleX(0); opacity: 1; } to { transform: scaleX(0.85); opacity: 1; } }

.button { position: relative; overflow: hidden; }
.button.ripple::after { content: ""; position: absolute; left: var(--rx); top: var(--ry); width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: currentColor; opacity: 0.22; pointer-events: none; animation: ripple 520ms ease-out forwards; }
@keyframes ripple { to { transform: scale(30); opacity: 0; } }
.copy-code.copied { color: var(--accent); }
.copy-code.copied::after { content: "\f00c"; color: var(--accent); }
input[type="checkbox"]:checked { animation: pop 200ms ease-out; }
@keyframes pop { 0% { transform: scale(0.7); } 60% { transform: scale(1.12); } }

.compare-original { clip-path: inset(0 calc(100% - var(--pos, 50) * 1%) 0 0); }
input[type="range"].compare-range { position: absolute; top: 24px; left: 24px; width: calc(100% - 48px); height: calc(100% - 48px); margin: 0; border-radius: 0; background: transparent; opacity: 0; cursor: ew-resize; z-index: 3; }
.compare-line { position: absolute; top: 24px; bottom: 24px; left: calc(24px + (100% - 48px) * var(--pos, 50) / 100); width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; z-index: 2; }
.compare-line::after { content: "\f337"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; display: grid; place-items: center; transform: translate(-50%, -50%); border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 0.8rem; }
.compare-tag { position: absolute; top: 32px; z-index: 2; padding: 2px 10px; border-radius: 99px; background: rgba(9, 9, 9, 0.7); color: #fff; font-size: 0.75rem; pointer-events: none; }

.admin-title { margin: 28px 0 12px; font-size: 1rem; }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 140px; }
.chart span { flex: 1; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--accent); opacity: 0.85; transform-origin: bottom; animation: grow 700ms var(--ease) backwards; transition: opacity var(--speed); }
.chart span:hover { opacity: 1; }
@keyframes grow { from { transform: scaleY(0); } }

:root[data-mode="retro"] { --accent: #39ff14; --code-text: #9dffa0; }
:root[data-mode="retro"] body, :root[data-mode="retro"] h1, :root[data-mode="retro"] h2, :root[data-mode="retro"] h3 { font-family: var(--font-mono); }
:root[data-mode="retro"] body::after { content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0, rgba(0, 0, 0, 0.22) 1px, transparent 1px, transparent 3px); }

.cato { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none; }
.cato > *, .cato-wrap > * { pointer-events: auto; }
.cato-wrap { position: relative; }
.cato-bubble { max-width: 230px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); font-size: 0.85rem; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.7); animation: bubble-in 220ms var(--ease); }
.cato-body { position: relative; display: block; width: 84px; height: 94px; padding: 0; border: 0; background: none; cursor: pointer; transition: transform var(--speed); }
.cato-body:hover { transform: translateY(-3px); }
.cato-body img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); }
.cato-accessory { position: absolute; top: -2px; right: -8px; color: var(--accent); font-size: 1rem; }
.cato-off { position: absolute; top: -6px; left: -6px; width: 22px; height: 22px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 0.65rem; cursor: pointer; opacity: 0; transition: opacity var(--speed), color var(--speed); }
.cato-wrap:hover .cato-off, .cato-off:focus-visible { opacity: 1; }
.cato-off:hover { color: var(--accent); }
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 800px) { .cato { right: 10px; bottom: 10px; } .cato-body { width: 60px; height: 68px; } }

.holiday { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 8px 40px 8px 16px; position: relative; border-bottom: 1px solid var(--border); background: var(--surface); font-size: 0.85rem; text-align: center; }
.holiday i { color: var(--accent); }
.holiday a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.holiday button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); cursor: pointer; }
.holiday button:hover { color: var(--text); }

.live-grid { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: var(--gap); }
.live-card { display: grid; gap: 4px; align-content: center; padding: 20px 24px; border-radius: var(--radius); }
.live-card strong { font-family: var(--font-display); font-size: 2rem; line-height: 1.1; color: var(--accent); }
.live-card span { color: var(--muted); font-size: 0.9rem; }
.live-title { color: var(--text) !important; font-weight: 600; margin-bottom: 4px; }
.live-title i { color: var(--accent); margin-right: 6px; }
#live-top { display: grid; gap: 6px; }
#live-top a { display: flex; justify-content: space-between; gap: 12px; color: var(--text); transition: color var(--speed); }
#live-top a { padding: 6px 10px; margin: 0 -10px; border-radius: 8px; cursor: pointer; transition: color var(--speed), background var(--speed); }
#live-top a span { color: var(--text); transition: color var(--speed); }
#live-top a:hover, #live-top a:focus-visible { background: color-mix(in srgb, var(--accent) 12%, transparent); }
#live-top a:hover span, #live-top a:hover i, #live-top a:focus-visible span, #live-top a:focus-visible i { color: var(--accent); }
#live-top a i { margin-right: 8px; color: var(--muted); transition: color var(--speed); }
@media (max-width: 800px) { .live-grid { grid-template-columns: 1fr; } }

.swatch-target { height: 200px; margin-bottom: 20px; border: 1px solid var(--border); border-radius: var(--radius); transition: background var(--speed); }
.guess-row { display: grid; grid-template-columns: 28px 84px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); min-height: 52px; }
.guess-row.empty { opacity: 0.35; }
.guess-chip { width: 28px; height: 28px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); }
.guess-hints { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); }
.guess-hints .ok { color: var(--accent); }
.guess-row strong { font-family: var(--font-display); }



/* Other */

/* #submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.card[href="/tools/url-shortener"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
} */