@font-face {
  font-family: Geist;
  src: url('/_a/geist-regular.10aa70bc4c.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Geist;
  src: url('/_a/geist-semibold.9ce49dae48.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Geist;
  src: url('/_a/geist-extrabold.246fc36667.woff2') format('woff2');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: 'Space Mono';
  src: url('/_a/space-mono.c98365237a.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f7f8f2;
  --surface: #fff;
  --ink: #243c30;
  --muted: #5b6c59;
  --line: #d9e1d2;
  --green: #d5f3a4;
  --green-dark: #41623d;
  --green-mid: #6d8b48;
  --soft: #edf1e7;
  --warm-ink: #904629;
  --warm-paper: #f6efe1;

  --green-tint: var(--green);
  --green-wash: var(--soft);
  --warm-line: var(--line);
  --ink-shadow: transparent;
  --light-shadow: transparent;
  --grid-line: var(--line);
  --photo-label: var(--ink);
  --overlay-line: var(--line);
  --paper-overlay: var(--paper);
  --green-overlay: var(--green-wash);
  --selected-ring: transparent;
  --disabled-opacity: .55;

  font-family: Geist, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@supports (color: color-mix(in srgb, transparent, transparent)) {
  :root {
    --green-tint: color-mix(in srgb, var(--green-mid) 30%, var(--green));
    --green-wash: color-mix(in srgb, var(--green-mid) 14%, var(--paper));
    --warm-line: color-mix(in srgb, var(--warm-ink) 15%, var(--warm-paper));
    --ink-shadow: color-mix(in srgb, var(--ink) 13%, transparent);
    --light-shadow: color-mix(in srgb, var(--ink) 4%, transparent);
    --grid-line: color-mix(in srgb, var(--ink) 25%, transparent);
    --photo-label: color-mix(in srgb, var(--ink) 72%, transparent);
    --overlay-line: color-mix(in srgb, var(--surface) 25%, transparent);
    --paper-overlay: color-mix(in srgb, var(--paper) 95%, transparent);
    --green-overlay: color-mix(in srgb, var(--green-wash) 93%, transparent);
    --selected-ring: color-mix(in srgb, var(--green-mid) 13%, transparent);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, summary, select, input[type='checkbox'] { cursor: pointer; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button { border: 0; }
button:disabled { cursor: wait; opacity: var(--disabled-opacity); }
img, canvas { display: block; max-width: 100%; }
p, h1, h2, h3, figure { margin: 0; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: var(--green); }
:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 100; padding: 12px 20px; color: var(--surface); background: var(--ink); border-radius: 6px; }
.skip-link:focus { top: 12px; }
.content-section, .converter-section, .site-footer { width: min(1160px, calc(100% - 80px)); margin: 0 auto; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1320px; padding: 0 48px; height: 88px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 25px; font-weight: 800; letter-spacing: -1.15px; line-height: 1; white-space: nowrap; }
.brand-dot { color: var(--green-mid); margin-left: -10px; }
.brand-symbol { display: grid; grid-template-columns: repeat(3, 7px); grid-template-rows: repeat(3, 7px); gap: 2px; width: 25px; height: 25px; transform: rotate(-1deg); }
.brand-symbol i { background: var(--ink); }
.brand-symbol i:nth-child(1) { grid-column: 2; background: var(--green-tint); }
.brand-symbol i:nth-child(2) { grid-column: 1; }
.brand-symbol i:nth-child(3) { background: var(--green-mid); }
.brand-symbol i:nth-child(5) { grid-column: 1; background: var(--green-tint); }
.header-inner nav { display: flex; align-items: center; gap: 32px; margin-left: 38px; font-size: 14px; font-weight: 600; }
.header-inner nav > a { padding: 12px 0; }
.header-inner nav > a:hover, .text-link:hover { color: var(--green-dark); }
.nav-secondary > span { font-size: 16px; padding-left: 3px; }
.tools-menu { position: relative; }
.tools-menu summary { display: flex; align-items: center; gap: 9px; padding: 16px 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
.tools-menu[open] summary > span { transform: rotate(180deg); }
.menu-panel { position: absolute; left: -24px; top: 50px; z-index: 20; width: 285px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 12px 36px var(--ink-shadow); }
.menu-panel a { display: block; padding: 14px; border-radius: 7px; }
.menu-panel a:hover, .menu-panel a[aria-current='page'] { background: var(--soft); }
.menu-panel a span { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 5px; }
.header-cta { display: inline-flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); border-radius: 6px; padding: 13px 17px; transition: background .2s; }
.header-cta:hover { background: var(--green); }
.header-cta > span:last-child { font-size: 18px; }
.cta-short { display: none; }

.hero { text-align: center; padding: 49px 24px 36px; }
.hero-kicker, .eyebrow { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 1.2px; line-height: 1.8; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 18px; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green-mid); flex: 0 0 auto; }
.hero h1 { font-size: clamp(44px, 5vw, 65px); line-height: 1.08; font-weight: 600; letter-spacing: -3.5px; }
.pixel-title { position: relative; color: var(--green-mid); }
.pixel-title i { display: inline-block; position: absolute; top: 4px; right: -18px; width: 7px; height: 7px; background: var(--green-tint); box-shadow: 9px -9px 0 var(--green-wash), 9px 0 0 var(--green-tint); }
.hero > p { margin-top: 20px; font-size: 15px; color: var(--muted); line-height: 1.75; }
.hero-secondary h1 { font-size: clamp(42px, 5vw, 62px); }

.converter { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); overflow: hidden; box-shadow: 0 8px 32px var(--light-shadow); }
.converter-heading { height: 57px; display: flex; justify-content: space-between; align-items: center; padding: 0 25px; border-bottom: 1px solid var(--line); }
.converter-heading > div { display: flex; gap: 10px; align-items: center; }
.converter-heading h2 { font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
.tiny-pixels { font-size: 21px; color: var(--green-mid); }
.local-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.local-icon { font-size: 18px; line-height: 1; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 294px; }
.image-workspace { min-width: 0; padding: 0 20px 18px; position: relative; }
.workspace-toolbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.view-tabs { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; }
.view-tabs button { padding: 6px 12px; background: transparent; font-size: 12px; color: var(--muted); border-radius: 3px; }
.view-tabs button.is-active { color: var(--ink); background: var(--soft); font-weight: 600; }
.view-tabs button:hover { color: var(--ink); }
.change-image { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; background: transparent; padding: 9px 0 9px 9px; }
.change-image > span { font-size: 18px; }
.change-image:hover { color: var(--green-dark); }
.preview-stage { position: relative; height: 384px; background-color: var(--paper); background-image: linear-gradient(45deg, var(--soft) 25%, transparent 25%), linear-gradient(-45deg, var(--soft) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--soft) 75%), linear-gradient(-45deg, transparent 75%, var(--soft) 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; border: 1px solid var(--line); border-radius: 7px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.image-frame { position: relative; width: 100%; height: 100%; overflow: hidden; --compare: 50%; }
.image-frame > canvas { position: absolute; width: 100%; height: 100%; top: 0; left: 0; }
#result-canvas { image-rendering: pixelated; }
.preview-stage[data-view='compare'] #result-canvas { clip-path: inset(0 0 0 var(--compare)); }
.preview-stage[data-view='original'] #result-canvas { visibility: hidden; }
.preview-stage[data-view='result'] #original-canvas { visibility: hidden; }
.preview-stage[data-view='original'] .result-label, .preview-stage[data-view='result'] .original-label { display: none; }
.preview-stage:not([data-view='compare']) .compare-line, .preview-stage:not([data-view='compare']) .compare-range { display: none; }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--compare); width: 2px; background: var(--surface); pointer-events: none; z-index: 2; filter: drop-shadow(0 0 2px var(--ink-shadow)); }
.compare-line > span { position: absolute; width: 35px; height: 35px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-radius: 50%; top: 50%; left: 1px; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; font-size: 22px; letter-spacing: 1px; }
.image-frame .compare-range { position: absolute; width: 100%; height: 100%; opacity: 0; inset: 0; margin: 0; z-index: 4; cursor: ew-resize; touch-action: pan-y; }
.image-frame .compare-range:focus-visible { opacity: 1; width: calc(100% - 40px); height: 24px; inset: auto 20px 12px; accent-color: var(--green); }
.image-label { position: absolute; top: 13px; padding: 6px 9px; border: 1px solid var(--overlay-line); border-radius: 4px; font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: .7px; color: var(--surface); background: var(--photo-label); backdrop-filter: blur(8px); pointer-events: none; z-index: 3; }
.original-label { left: 13px; }
.result-label { right: 13px; }
.loading-message { position: absolute; background: var(--paper-overlay); padding: 16px 24px; border-radius: 6px; z-index: 5; color: var(--muted); font-size: 13px; }
.preview-stage[aria-busy='false'] .loading-message { display: none; }
.preview-grid { position: absolute; inset: 0; background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px); background-size: var(--grid-x, 10px) var(--grid-y, 10px); pointer-events: none; z-index: 1; }
.preview-stage[data-view='compare'] .preview-grid { clip-path: inset(0 0 0 var(--compare)); }
.preview-stage[data-view='original'] .preview-grid { display: none; }
.drop-overlay { display: none; position: absolute; inset: 10px; border: 2px dashed var(--green-mid); background: var(--green-overlay); border-radius: 4px; z-index: 8; align-items: center; justify-content: center; flex-direction: column; font-size: 18px; font-weight: 600; pointer-events: none; }
.drop-overlay > span { display: block; font-size: 52px; margin-bottom: 10px; }
.is-dragging .drop-overlay { display: flex; }
.preview-info { min-height: 38px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: 'Space Mono', monospace; font-size: 12px; color: var(--muted); }
.preview-info > span { display: flex; align-items: center; gap: 6px; }
.preview-info .status-dot { width: 4px; height: 4px; }
.grid-switch { display: flex; align-items: center; gap: 4px; white-space: nowrap; cursor: pointer; }
.grid-switch input { width: 11px; height: 11px; accent-color: var(--ink); margin: 0; }
.upload-bar { display: flex; align-items: center; justify-content: center; gap: 13px; min-height: 64px; border: 1px dashed var(--line); background: var(--surface); border-radius: 6px; }
.upload-button { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); padding: 9px 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.upload-button > span { font-size: 17px; line-height: 1; }
.upload-button:hover { background: var(--soft); }
.upload-bar > span { font-size: 12px; color: var(--muted); }
.tool-error { padding: 13px; border: 1px solid var(--warm-line); background: var(--warm-paper); border-radius: 5px; margin-top: 12px; color: var(--warm-ink); font-size: 12px; line-height: 1.6; }

.settings-panel { padding: 24px 23px 18px; border-left: 1px solid var(--line); display: flex; flex-direction: column; background: var(--surface); }
.settings-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.settings-heading h3 { font-size: 14px; font-weight: 600; letter-spacing: -.3px; }
.settings-heading > button { padding: 4px 0 4px 8px; font-size: 12px; background: transparent; color: var(--muted); }
.settings-heading > button:hover { color: var(--ink); }
.settings-heading > button span { font-size: 15px; margin-left: 3px; }
.control-label { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; margin-bottom: 13px; }
.control-label output { font-family: 'Space Mono', monospace; font-weight: 400; background: var(--soft); padding: 5px 9px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; }
input[type='range']:not(.compare-range) { display: block; width: 100%; height: 5px; border-radius: 3px; margin: 16px 0 12px; appearance: none; -webkit-appearance: none; background: linear-gradient(to right, var(--green-dark) var(--range-fill, 23%), var(--line) var(--range-fill, 23%)); cursor: pointer; }
input[type='range']:not(.compare-range)::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--surface); border: 4px solid var(--green-dark); box-shadow: 0 0 0 2px var(--surface); }
input[type='range']:not(.compare-range)::-moz-range-thumb { width: 8px; height: 8px; border-radius: 50%; background: var(--surface); border: 4px solid var(--green-dark); box-shadow: 0 0 0 2px var(--surface); }
.range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.palette-field { margin-top: 27px; }
.palette-field legend, .scale-field legend { font-size: 12px; font-weight: 600; margin-bottom: 11px; }
.palette-options { display: grid; gap: 7px; }
.palette-option { display: flex; align-items: center; width: 100%; gap: 10px; background: var(--surface); padding: 9px 10px; border: 1px solid var(--line); border-radius: 5px; text-align: left; }
.palette-option.is-active { border-color: var(--green-mid); background: var(--green-wash); box-shadow: inset 0 0 0 1px var(--selected-ring); }
.palette-option:hover { border-color: var(--green-mid); }
.swatches { display: flex; align-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 2px; }
.swatches > i { display: block; width: 13px; height: 22px; background: var(--swatch); }
.palette-option > span:nth-child(2) { font-size: 12px; font-weight: 600; flex: 1; }
.palette-option small { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 5px; }
.palette-check { color: var(--green-dark); visibility: hidden; font-size: 12px; }
.palette-option.is-active .palette-check { visibility: visible; }
.toggle-row { display: flex; align-items: center; gap: 9px; padding: 17px 0; cursor: pointer; }
.toggle-row > span:first-child { flex: 1; font-size: 12px; font-weight: 600; }
.toggle-row small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 5px; }
.toggle-row > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.toggle { width: 29px; height: 17px; border-radius: 10px; background: var(--line); position: relative; transition: background .15s; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px var(--light-shadow); transition: transform .15s; }
.toggle-row > input:checked + .toggle { background: var(--green-mid); }
.toggle-row > input:checked + .toggle::after { transform: translateX(12px); }
.toggle-row > input:focus-visible + .toggle { outline: 3px solid var(--green-dark); outline-offset: 4px; }
.download-area { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); text-align: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 43px; padding: 12px 18px; border-radius: 5px; font-size: 12px; font-weight: 600; transition: background .15s, transform .15s; }
.button-primary { color: var(--soft); background: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.button-primary:hover { background: var(--green-dark); }
.button-primary:active { transform: translateY(1px); }
.button-outline { color: var(--ink); border: 1px solid var(--line); background: transparent; box-shadow: none; }
.button-outline:hover { background: var(--soft); }
.download-button { width: 100%; }
.download-button > span { font-size: 17px; }
.download-area p { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--muted); margin: 11px 0 1px; line-height: 1.7; }
.tool-promises { display: flex; align-items: center; justify-content: center; gap: 39px; min-height: 57px; padding: 10px 0; font-size: 12px; color: var(--muted); }
.tool-promises > span { display: inline-flex; align-items: center; gap: 7px; }
.tool-promises i { font-style: normal; font-size: 13px; color: var(--green-dark); }
.settings-controls select { display: block; width: 100%; border: 1px solid var(--line); border-radius: 5px; padding: 10px; background: var(--surface); color: var(--ink); font-size: 12px; }
.crop-label { margin-top: 16px; margin-bottom: 0; }
.control-help { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 10px; }
[data-tool='avatar'] .settings-heading { margin-bottom: 16px; }
[data-tool='avatar'] .palette-field { margin-top: 19px; }
[data-tool='avatar'] .palette-option { padding: 7px 10px; }
[data-tool='avatar'] .toggle-row { padding: 12px 0; }
[data-tool='avatar'] .swatches > i { height: 18px; }
[data-tool='avatar'] .preview-stage { height: 478px; }
.scale-options { display: flex; gap: 7px; }
.scale-options button { flex: 1; min-height: 43px; border: 1px solid var(--line); border-radius: 5px; font-size: 13px; background: var(--surface); }
.scale-options button.is-active { border-color: var(--green-mid); background: var(--green-wash); }
.scale-options button:disabled { cursor: not-allowed; }
.output-summary { margin: 30px 0; padding: 22px 18px; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; }
.output-summary > span { font: 12px 'Space Mono', monospace; color: var(--muted); letter-spacing: 1px; }
.output-summary > strong { display: block; font-size: 25px; font-weight: 600; margin-top: 10px; letter-spacing: -1px; }
.output-summary > p { font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 14px; }

.how-section { padding: 66px 0 75px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 35px; }
.eyebrow { color: var(--muted); font-size: 12px; margin-bottom: 11px; letter-spacing: 1px; }
.section-heading h2 { font-size: 30px; letter-spacing: -1.25px; font-weight: 600; line-height: 1.25; }
.section-heading > p { font-size: 12px; color: var(--muted); padding-bottom: 4px; }
.text-link { display: inline-flex; align-items: center; gap: 13px; font-size: 12px; font-weight: 600; padding-bottom: 4px; }
.text-link > span { font-size: 17px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px; }
.step { position: relative; padding-right: 24px; }
.step:not(:last-child)::after { content: '→'; position: absolute; top: 16px; right: -25px; color: var(--green-tint); font-size: 25px; }
.step-icon { width: 43px; height: 43px; border: 1px solid var(--line); border-radius: 7px; display: flex; justify-content: center; align-items: center; background: var(--soft); margin-bottom: 18px; font-size: 26px; color: var(--green-dark); }
.step-icon.adjust-icon { font-size: 24px; color: var(--warm-ink); background: var(--warm-paper); border-color: var(--warm-line); }
.step h3 { font-size: 14px; font-weight: 600; margin-bottom: 9px; letter-spacing: -.3px; }
.step p { font-size: 12px; color: var(--muted); line-height: 1.8; max-width: 260px; }
.examples-section { background: var(--soft); padding: 57px 0 62px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.example-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.example-card { padding: 0; background: transparent; text-align: left; min-width: 0; }
.example-image { position: relative; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3/2; background: var(--green-wash); }
.example-image > canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.try-palette { position: absolute; left: 12px; right: 12px; bottom: 12px; border: 1px solid var(--overlay-line); background: var(--paper-overlay); border-radius: 4px; padding: 10px 12px; display: flex; justify-content: space-between; font-size: 12px; opacity: 0; transform: translateY(5px); transition: opacity .2s, transform .2s; }
.example-card:hover .try-palette, .example-card:focus-visible .try-palette { opacity: 1; transform: translateY(0); }
.example-caption { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; }
.example-caption h3 { font-size: 13px; font-weight: 600; letter-spacing: -.2px; margin-bottom: 5px; }
.example-caption div > span { font: 12px 'Space Mono', monospace; color: var(--muted); }
.example-caption > span { font-size: 20px; color: var(--green-mid); padding-right: 3px; }
.guide-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-top: 20px; font-size: 14px; }
.guide-links a { text-decoration: underline; text-underline-offset: 3px; }
.related-section { padding: 74px 0 70px; }
.pixel-spark { font-size: 43px; color: var(--green-tint); line-height: 1; }
.tool-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.tool-cards-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tool-card { border: 1px solid var(--line); border-radius: 7px; padding: 12px 12px 22px; background: var(--surface); transition: border-color .2s, transform .2s; }
.tool-card:hover { border-color: var(--green-mid); transform: translateY(-3px); }
.tool-illustration { position: relative; border-radius: 4px; overflow: hidden; background: var(--soft); margin-bottom: 20px; }
.tool-illustration > canvas { width: 100%; aspect-ratio: 2.02; image-rendering: pixelated; }
.tool-illustration > span { position: absolute; top: 11px; right: 13px; font-size: 18px; color: var(--muted); }
.illustration-avatar { background: var(--warm-paper); }
.illustration-beads { background: var(--warm-paper); }
.tool-card > h3 { font-size: 14px; font-weight: 600; letter-spacing: -.25px; margin: 0 10px 8px; }
.tool-card > p { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 0 10px; max-width: 270px; }
.faq-section { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; padding: 53px 0 82px; border-top: 1px solid var(--line); }
.faq-intro h2 { font-size: 34px; font-weight: 600; letter-spacing: -1.2px; line-height: 1.2; }
.faq-intro > p:last-child { font-size: 12px; color: var(--muted); margin-top: 17px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 0; font-size: 12px; font-weight: 600; list-style: none; line-height: 1.5; }
.faq-list summary > span { flex-shrink: 0; width: 10px; height: 10px; position: relative; margin-right: 2px; }
.faq-list summary > span::before, .faq-list summary > span::after { content: ''; position: absolute; background: var(--green-mid); }
.faq-list summary > span::before { width: 10px; height: 1px; top: 5px; }
.faq-list summary > span::after { height: 10px; width: 1px; left: 5px; }
.faq-list details[open] summary > span::after { display: none; }
.faq-list details > p { color: var(--muted); font-size: 12px; line-height: 1.85; padding: 0 30px 21px 0; }

.site-footer { border-top: 1px solid var(--line); padding-top: 44px; }
.footer-top { display: flex; justify-content: space-between; padding-bottom: 40px; }
.footer-top .brand { font-size: 24px; }
.footer-top > div:first-child > p { font-size: 12px; color: var(--muted); margin-top: 16px; }
.footer-links { display: flex; gap: 85px; padding-right: 26px; }
.footer-links h3 { font: 12px 'Space Mono', monospace; color: var(--muted); letter-spacing: .7px; margin: 3px 0 17px; }
.footer-links a { display: block; font-size: 12px; margin-top: 12px; color: var(--muted); }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); min-height: 59px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 12px; color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom > span:nth-child(2) { margin-left: auto; }
.footer-bottom > a { margin-left: 28px; }
.noscript-message { position: fixed; bottom: 15px; left: 15px; right: 15px; padding: 15px 25px; border: 1px solid var(--line); background: var(--surface); z-index: 30; box-shadow: 0 5px 25px var(--ink-shadow); }

.article-page { padding: 52px 24px 90px; }
.article-heading { max-width: 860px; margin: 0 auto 45px; }
.breadcrumb { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 45px; font-size: 12px; color: var(--muted); }
.article-heading h1 { font-size: clamp(38px, 5vw, 59px); letter-spacing: -2.6px; line-height: 1.12; font-weight: 600; }
.article-deck { font-size: 17px; line-height: 1.7; color: var(--muted); margin-top: 23px; max-width: 660px; }
.article-body { max-width: 700px; margin: auto; }
.avatar-grid-guide { margin-top: 28px; }
.article-body > p { font-size: 15px; line-height: 1.95; color: var(--muted); margin-bottom: 24px; }
.article-body > h2 { font-size: 25px; font-weight: 600; letter-spacing: -.7px; margin: 40px 0 14px; }
.article-body p a { text-decoration: underline; text-decoration-color: var(--green-mid); text-underline-offset: 3px; }
.article-body p a:hover { color: var(--ink); }
.article-figure { margin: 34px 0; }
.article-figure canvas { width: 100%; border-radius: 7px; background: var(--green-wash); image-rendering: pixelated; }
.article-figure figcaption { font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 12px; }
.article-callout { margin-top: 44px; padding: 30px; border: 1px solid var(--line); background: var(--soft); border-radius: 7px; }
.article-callout h3 { font-size: 22px; font-weight: 600; letter-spacing: -.5px; }
.article-callout p { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 12px 0 21px; max-width: 460px; }
.article-body code { font-size: 12px; overflow-wrap: anywhere; }
.not-found { padding: 100px 24px 130px; text-align: center; }
.not-found h1 { font-size: 50px; font-weight: 600; letter-spacing: -2px; }
.not-found > p:not(.eyebrow) { margin: 20px 0 30px; color: var(--muted); }

.game-section { max-width: 540px; margin-top: 8px; background: var(--soft); padding: 24px; border: 1px solid var(--line); border-radius: 10px; }
.game-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.game-top h2 { font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.game-top > div { font: 12px 'Space Mono', monospace; color: var(--muted); }
.game-top strong { color: var(--ink); margin-left: 4px; font-weight: 400; }
.game-best { margin-left: 20px; }
.snake-stage { position: relative; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
#snake-canvas { width: 100%; aspect-ratio: 1; background: var(--green-wash); touch-action: none; }
.snake-overlay { position: absolute; inset: 0; background: var(--green-overlay); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.snake-art { font: 37px 'Space Mono', monospace; color: var(--green-mid); margin-bottom: 23px; letter-spacing: -4px; }
.snake-overlay h3 { font-size: 23px; font-weight: 600; letter-spacing: -.7px; line-height: 1.3; }
.snake-overlay p { font-size: 12px; line-height: 1.8; color: var(--muted); margin: 13px 0 24px; }
.game-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; }
.game-bottom > p { font-size: 12px; color: var(--muted); line-height: 1.8; }
.game-bottom > p span { margin: 0 5px; }
.game-bottom > .button { min-height: 32px; padding: 7px 11px; font-size: 12px; }
.game-return { text-align: center; padding: 30px 24px 70px; }
.game-return > p { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.touch-controls { text-align: center; margin-top: 17px; }
.touch-controls button { width: 44px; height: 39px; border-radius: 4px; background: var(--green-wash); border: 1px solid var(--line); font-size: 20px; margin: 3px; touch-action: manipulation; }

@media (min-width: 1440px) {
  .hero { padding-top: 58px; padding-bottom: 43px; }
  .preview-stage { height: 417px; }
  .header-inner { height: 94px; }
}

@media (max-width: 1050px) {
  .tool-cards-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-section, .converter-section, .site-footer { width: calc(100% - 48px); }
  .header-inner { padding: 0 26px; }
  .header-inner nav { margin-left: 0; gap: 25px; }
  .editor-layout { grid-template-columns: minmax(0, 1fr) 270px; }
  .settings-panel { padding-left: 17px; padding-right: 17px; }
  .image-workspace { padding-left: 15px; padding-right: 15px; }
  .upload-bar { flex-direction: column; gap: 8px; padding: 13px 5px; }
  .steps { gap: 35px; }
  .step { padding-right: 10px; }
  .step:not(:last-child)::after { right: -15px; }
  .faq-section { gap: 45px; }
  .footer-links { gap: 45px; padding-right: 0; }
}

@media (max-width: 760px) {
  .header-inner { height: 74px; gap: 16px; }
  .brand { font-size: 23px; }
  .header-inner nav { gap: 18px; font-size: 12px; margin-left: auto; }
  .header-inner .nav-secondary { display: none; }
  .header-cta { font-size: 12px; padding: 10px 13px; gap: 10px; }
  .hero { padding: 40px 20px 32px; }
  .hero h1 { font-size: 53px; letter-spacing: -2.8px; }
  .hero-kicker { font-size: 12px; }
  .hero > p { font-size: 13px; margin-top: 18px; }
  .editor-layout { grid-template-columns: minmax(0, 1fr); }
  .converter-heading { padding: 0 19px; height: 54px; }
  .converter-heading h2 { font-size: 13px; }
  .local-label { font-size: 12px; }
  .image-workspace { padding: 0 17px 17px; }
  .preview-stage { height: 360px; }
  [data-tool='avatar'] .preview-stage { height: 360px; }
  .workspace-toolbar { min-height: 62px; }
  .upload-bar { flex-direction: row; padding: 13px; gap: 12px; }
  .settings-panel { border-left: 0; border-top: 1px solid var(--line); padding: 22px; }
  .settings-heading { margin-bottom: 20px; }
  .settings-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; }
  [data-tool='photo'] .control-label { grid-column: 1; align-self: start; margin-bottom: 0; }
  [data-tool='photo'] #pixel-size { grid-column: 1; grid-row: 2; margin: 12px 0 8px; }
  [data-tool='photo'] .range-labels { grid-column: 1; grid-row: 3; }
  [data-tool='photo'] .palette-field { grid-column: 2; grid-row: 1 / 5; margin-top: 0; }
  [data-tool='photo'] .toggle-row { grid-column: 1; grid-row: 4; align-self: end; padding-bottom: 0; }
  .palette-option { padding: 8px; gap: 8px; }
  .palette-option small { font-size: 12px; margin-left: 2px; }
  .swatches > i { width: 10px; height: 20px; }
  .download-area { margin-top: 20px; padding-top: 18px; }
  .download-area p { font-size: 12px; }
  [data-tool='upscale'] .settings-controls { align-items: start; }
  .output-summary { margin: 0; padding: 14px 17px; }
  .output-summary > strong { font-size: 23px; }
  .output-summary > p { font-size: 12px; margin-top: 8px; }
  [data-tool='avatar'] .settings-controls { display: block; }
  [data-tool='avatar'] .palette-options { grid-template-columns: 1fr 1fr; }
  [data-tool='avatar'] .toggle-row { margin-top: 8px; }
  .tool-promises { gap: 20px; font-size: 12px; flex-wrap: wrap; padding: 15px 0; }
  .how-section { padding: 48px 0; }
  .section-heading { gap: 20px; margin-bottom: 27px; }
  .section-heading h2 { font-size: 27px; }
  .section-heading > .text-link { display: none; }
  .steps { gap: 24px; }
  .step:not(:last-child)::after { display: none; }
  .step { padding-right: 0; }
  .step h3 { font-size: 13px; }
  .step p { font-size: 12px; line-height: 1.8; }
  .example-cards { gap: 16px; }
  .example-caption h3 { font-size: 12px; }
  .example-caption div > span { font-size: 12px; }
  .examples-section { padding: 43px 0; }
  .examples-section .section-heading { display: block; }
  .examples-section .section-heading > p { margin-top: 10px; font-size: 12px; }
  .related-section { padding: 48px 0; }
  .tool-cards { gap: 16px; }
  .tool-card { padding: 8px 8px 15px; }
  .tool-illustration { margin-bottom: 16px; }
  .tool-card > h3 { font-size: 12px; margin-left: 5px; margin-right: 5px; }
  .tool-card > p { font-size: 12px; margin-left: 5px; margin-right: 5px; }
  .faq-section { grid-template-columns: 1fr; gap: 30px; padding: 44px 0 55px; }
  .faq-intro h2 { font-size: 30px; }
  .faq-intro h2 br { display: none; }
  .faq-intro > p:last-child { margin-top: 12px; }
  .footer-top { gap: 35px; }
  .footer-top .brand { font-size: 22px; }
  .footer-links { gap: 25px; }
  .footer-links h3 { font-size: 12px; }
  .footer-links a { font-size: 12px; }
  .footer-top > div:first-child > p { font-size: 12px; max-width: 160px; line-height: 1.7; }
  .footer-bottom { flex-wrap: wrap; padding: 16px 0; row-gap: 10px; line-height: 1.5; font-size: 12px; }
  .footer-bottom > a { margin-left: 4px; }
}

@media (max-width: 480px) {
  .content-section, .converter-section, .site-footer { width: calc(100% - 32px); }
  .header-inner { padding: 0 18px; height: 68px; gap: 12px; }
  .brand { font-size: 21px; gap: 8px; }
  .brand-symbol { grid-template-columns: repeat(3, 6px); grid-template-rows: repeat(3, 6px); width: 22px; height: 22px; gap: 2px; }
  .brand-dot { margin-left: -7px; }
  .header-inner nav { font-size: 12px; }
  .tools-menu summary { gap: 5px; }
  .menu-panel { left: auto; right: -75px; width: 268px; }
  .header-cta { gap: 9px; padding: 8px 10px; }
  .header-cta > span:last-child { font-size: 16px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .hero { padding: 35px 18px 28px; }
  .hero h1 { font-size: 42px; letter-spacing: -2.2px; }
  .hero-kicker { letter-spacing: .8px; font-size: 12px; margin-bottom: 16px; }
  .hero > p { font-size: 12px; line-height: 1.85; padding: 0 6px; margin-top: 15px; }
  .desktop-break { display: none; }
  .pixel-title i { width: 5px; height: 5px; right: -12px; box-shadow: 6px -6px 0 var(--green-wash), 6px 0 0 var(--green-tint); }
  .converter-heading { padding: 0 13px; height: 49px; }
  .converter-heading h2 { font-size: 12px; }
  .converter-heading > div { gap: 7px; }
  .local-label { font-size: 12px; gap: 4px; }
  .local-icon { font-size: 14px; }
  .image-workspace { padding: 0 11px 12px; }
  .workspace-toolbar { min-height: 56px; flex-wrap: wrap; gap: 6px 10px; padding: 6px 0; }
  .view-tabs { padding: 2px; gap: 0; }
  .view-tabs button { padding: 7px 6px; }
  .change-image { font-size: 12px; gap: 4px; }
  .change-image > span { font-size: 15px; }
  .preview-stage { height: 248px; }
  [data-tool='avatar'] .preview-stage { height: 298px; }
  .preview-info { min-height: 34px; flex-wrap: wrap; gap: 5px 12px; padding: 5px 0; }
  .grid-switch { gap: 3px; }
  .grid-switch input { width: 9px; height: 9px; }
  .upload-bar { flex-direction: column; gap: 9px; padding: 13px 5px; }
  .upload-bar > span { font-size: 12px; }
  .upload-button { font-size: 12px; }
  .settings-panel { padding: 20px 17px 16px; }
  .settings-controls { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 17px; }
  .settings-heading h3 { font-size: 13px; }
  .control-label { font-size: 12px; flex-wrap: wrap; gap: 7px; }
  .control-label output { font-size: 12px; padding: 4px 7px; }
  .palette-field legend { font-size: 12px; }
  .palette-option { gap: 6px; padding: 7px 6px; }
  .swatches > i { width: 8px; height: 22px; }
  .palette-option > span:nth-child(2) { font-size: 12px; }
  .palette-option small { font-size: 12px; display: block; margin-left: 0; margin-top: 3px; }
  .palette-check { font-size: 12px; }
  .range-labels { font-size: 12px; gap: 9px; }
  .toggle-row > span:first-child { font-size: 12px; }
  .toggle-row small { font-size: 12px; line-height: 1.6; max-width: 70px; }
  .toggle { width: 26px; height: 16px; flex: 0 0 auto; }
  .toggle::after { width: 10px; height: 10px; }
  .toggle-row > input:checked + .toggle::after { transform: translateX(10px); }
  .tool-promises { gap: 13px; font-size: 12px; min-height: 50px; }
  .tool-promises > span { gap: 4px; }
  .tool-promises i { font-size: 12px; }
  [data-tool='upscale'] .settings-controls { grid-template-columns: 1fr; }
  .output-summary { margin-top: 22px; }
  [data-tool='avatar'] .palette-option small { display: inline; margin-left: 5px; }
  [data-tool='avatar'] .swatches > i { width: 11px; }
  .how-section { padding: 37px 0 40px; }
  .eyebrow { font-size: 12px; }
  .section-heading h2 { font-size: 25px; letter-spacing: -1px; max-width: 300px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .step { padding-left: 58px; }
  .step-icon { position: absolute; left: 0; top: 0; width: 39px; height: 39px; margin: 0; }
  .step h3 { padding-top: 1px; margin-bottom: 7px; }
  .step p { max-width: 100%; }
  .examples-section { padding: 35px 0; }
  .example-cards { grid-template-columns: 1fr; gap: 24px; }
  .example-card { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 17px; }
  .example-caption { margin: 0; }
  .example-caption h3 { font-size: 12px; line-height: 1.4; }
  .example-caption div > span { font-size: 12px; line-height: 1.8; }
  .example-caption > span { font-size: 17px; }
  .try-palette { display: none; }
  .related-section { padding: 39px 0; }
  .pixel-spark { font-size: 30px; }
  .tool-cards { grid-template-columns: 1fr; gap: 13px; }
  .tool-card { display: grid; grid-template-columns: 110px 1fr; grid-template-rows: auto auto; column-gap: 17px; padding: 12px; }
  .tool-illustration { grid-row: 1/3; margin: 0; align-self: center; }
  .tool-illustration > canvas { aspect-ratio: 1.4; }
  .tool-illustration > span { top: 5px; right: 7px; font-size: 13px; }
  .tool-card > h3 { margin: 5px 0 7px; font-size: 13px; align-self: end; }
  .tool-card > p { margin: 0 0 5px; font-size: 12px; }
  .faq-section { padding: 35px 0 42px; gap: 25px; }
  .faq-intro h2 { font-size: 26px; }
  .faq-intro > p:last-child { font-size: 12px; }
  .faq-list summary { font-size: 12px; padding: 17px 0; }
  .faq-list details > p { font-size: 12px; }
  .site-footer { padding-top: 30px; }
  .footer-top { display: block; padding-bottom: 30px; }
  .footer-top > div:first-child > p { max-width: none; }
  .footer-links { gap: 0; justify-content: space-between; margin-top: 28px; }
  .footer-links h3 { font-size: 12px; }
  .footer-links a { font-size: 12px; }
  .footer-bottom { gap: 10px; font-size: 12px; }
  .footer-bottom > span:nth-child(2) { order: 3; width: 100%; margin-left: 0; }
  .footer-bottom > a { margin-left: auto; }
  .article-page { padding: 34px 20px 60px; }
  .article-heading { margin-bottom: 32px; }
  .breadcrumb { margin-bottom: 32px; }
  .article-heading h1 { font-size: 39px; letter-spacing: -1.8px; }
  .article-deck { font-size: 14px; margin-top: 17px; }
  .article-body > p { font-size: 13px; }
  .article-body > h2 { font-size: 22px; }
  .article-callout { padding: 24px; }
  .game-section { padding: 16px; }
  .snake-overlay h3 { font-size: 20px; }
  .game-bottom > p { font-size: 12px; max-width: 200px; }
}

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

.brand-name { display: block; }
.brand-name .brand-dot { margin-left: 0; }
.brand-name small { display: block; font-size: 12px; line-height: 1.5; font-weight: 400; color: var(--muted); letter-spacing: 1.1px; margin-top: 4px; }
.license-text { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.8 Geist, Arial, sans-serif; color: var(--muted); }
