:root {
  color-scheme: light;
  --ink: #19231d;
  --muted: #647369;
  --paper: #f4f1e9;
  --white: #fffef9;
  --line: #cbd5cc;
  --green: #b7ff31;
  --teal: #008b74;
  --purple: #6c70f4;
  --orange: #ff6d55;
  font-family: Inter, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
h1, h2, h3, h4, h5, p { margin-top: 0; }
.page { width: min(100% - 44px, 1540px); margin: 0 auto; }
.hero { padding: 44px 20px 32px; }
.eyebrow, .section-heading p, .section-kicker, .workspace-intro p, .card-heading span, .copy-kicker, .card-footer, .workspace-note, .inspector-head p, .summary-label, .code-toolbar, .guide-grid article > span, .source-links, .page-footer, .workspace-top, .heading-pill { font: 800 11px/1.45 "SFMono-Regular", Consolas, monospace; letter-spacing: .07em; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 15px; color: var(--teal); }
.brand-mark { position: relative; width: 18px; height: 18px; border: 2px solid var(--purple); border-radius: 5px; }
.brand-mark::after { position: absolute; inset: 5px -7px -7px 5px; z-index: -1; border-radius: 5px; background: var(--green); content: ""; }
h1 { margin-bottom: 18px; font-size: clamp(43px, 5.5vw, 82px); font-weight: 900; line-height: .99; letter-spacing: 0; }
.hero-bottom { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.lead { margin: 0; font-size: clamp(18px, 1.8vw, 24px); font-weight: 850; line-height: 1.4; }
.lead strong { color: var(--purple); }
.hero-actions { display: flex; gap: 10px; flex: none; }
.hero-actions button, .code-toolbar button { min-height: 44px; padding: 0 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); color: var(--ink); font-size: 12px; font-weight: 850; transition: transform 160ms ease, box-shadow 160ms ease; }
.hero-actions button:last-child { border-color: var(--ink); background: var(--ink); color: #fff; }
.hero-actions button:hover, .code-toolbar button:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgb(24 34 29 / 12%); }
.hero-actions button:disabled { border-color: var(--line); background: #e2e7e0; color: #647369; cursor: not-allowed; transform: none; box-shadow: none; }
.lab, .guide { overflow: hidden; border: 1px solid var(--line); border-radius: 27px; background: var(--white); box-shadow: 0 16px 45px rgb(33 55 40 / 6%); }
.section-heading { display: flex; align-items: center; gap: 15px; min-height: 92px; padding: 17px 24px; border-bottom: 1px solid var(--line); }
.section-number { display: grid; flex: none; place-items: center; width: 53px; height: 53px; border-radius: 16px; background: var(--orange); color: #fff; font: 900 14px "SFMono-Regular", Consolas, monospace; }
.section-number--purple { background: var(--purple); }
.section-heading p { margin: 0 0 3px; color: var(--teal); }
.section-heading h2 { margin: 0; font-size: clamp(21px, 2.4vw, 31px); line-height: 1.2; font-weight: 900; }
.heading-pill { margin-left: auto; padding: 9px 12px; border-radius: 999px; background: #e7f7ef; color: var(--teal); white-space: nowrap; }
.lab-grid { display: grid; grid-template-columns: minmax(255px, 278px) minmax(0, 1fr) minmax(270px, 304px); align-items: stretch; }
.controls { background: #f8f6ef; border-right: 1px solid var(--line); }
.control-section { padding: 24px 20px 27px; border-bottom: 1px solid var(--line); }
.control-section:last-child { border-bottom: 0; }
.section-kicker { margin: 0 0 6px; color: var(--teal); }
.control-section h3 { margin: 0 0 16px; font-size: 18px; font-weight: 900; }
.preset-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.preset-list button { display: flex; align-items: center; gap: 7px; width: 100%; min-height: 59px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); text-align: left; transition: transform 160ms ease, background-color 160ms ease; }
.preset-list button:hover { transform: translateX(3px); }
.preset-list button[aria-pressed="true"] { border: 2px solid var(--ink); background: var(--green); box-shadow: 3px 4px 0 var(--ink); }
.preset-list button b, .preset-list button small { display: block; }
.preset-list button b { font-size: 12px; }
.preset-list button small { margin-top: 2px; color: var(--muted); font: 750 10px "SFMono-Regular", Consolas, monospace; }
.preset-icon { flex: none; width: 27px; height: 27px; background: var(--orange); }
.preset-icon--circle { border-radius: 50%; }
.preset-icon--ellipse { border-radius: 50%; transform: scaleY(.7); }
.preset-icon--polygon { clip-path: polygon(50% 0, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%); }
.preset-icon--pumpkin { width: 29px; height: 29px; background: transparent; }
.preset-icon--pumpkin svg { display: block; width: 100%; height: 100%; }
.upload-picker { position: relative; display: grid; place-items: center; min-height: 44px; margin-top: 16px; border: 2px dashed var(--purple); border-radius: 12px; background: #f2f1ff; color: #3b40bd; font-size: 12px; font-weight: 900; text-align: center; cursor: pointer; transition: background-color 160ms ease, transform 160ms ease; }
.upload-picker:hover { background: #e6e4ff; transform: translateY(-2px); }
.upload-picker[data-selected="true"] { border-color: var(--ink); background: var(--green); color: var(--ink); }
.upload-picker:focus-within { outline: 3px solid var(--purple); outline-offset: 3px; }
.upload-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-status { margin: 9px 0 0; color: #3b40bd; font-size: 11px; font-weight: 800; line-height: 1.5; overflow-wrap: anywhere; }
.upload-status:empty { display: none; }
.upload-status.is-error { color: #ba3e2e; }
.svg-options { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.svg-options[hidden] { display: none; }
.svg-options label { display: grid; gap: 10px; }
.svg-options label > span { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 850; }
.range-group { display: grid; gap: 21px; }
.range-group label { display: grid; gap: 11px; }
.range-group label > span { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 850; }
output { color: var(--purple); font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
input[type="range"] { width: 100%; margin: 0; accent-color: var(--purple); cursor: pointer; }
.control-note { margin: 15px 0 0; color: var(--muted); font-size: 11px; font-weight: 650; line-height: 1.65; }
.control-note code { color: var(--teal); font-size: 11px; }
.segmented { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: #e9eee9; }
.segmented button { flex: 1; min-height: 39px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font-size: 11px; font-weight: 850; transition: background-color 160ms ease, color 160ms ease, transform 160ms ease; }
.segmented button:hover { transform: translateY(-2px); }
.segmented button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.workspace { min-width: 0; background: #e9efea; }
.workspace-top { display: flex; align-items: center; gap: 10px; min-height: 53px; padding: 0 18px; border-bottom: 1px solid #c5d0c6; background: #d7e2d8; color: #55665a; font-size: 10px; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #ff7058; }
.window-dots i:nth-child(2) { background: #ffd568; }
.window-dots i:nth-child(3) { background: #63caa7; }
.workspace-top strong { margin-left: auto; padding: 6px 10px; border-radius: 999px; background: var(--teal); color: white; font-size: 10px; letter-spacing: 0; }
.workspace-body { container-type: inline-size; padding: 21px; }
.workspace-intro { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 20px; }
.workspace-intro p { margin: 0 0 5px; color: var(--teal); font-size: 10px; }
.workspace-intro h3 { margin: 0; font-size: clamp(16px, 1.5vw, 22px); font-weight: 900; }
.compare-arrow { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--purple); font-size: 24px; font-weight: 800; }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 13px; }
.wrap-card { display: flex; flex-direction: column; min-width: 0; min-height: 500px; padding: 16px; border: 1px solid #cad5ca; border-radius: 17px; background: #fffdf7; }
.wrap-card--after { border-color: var(--purple); box-shadow: inset 0 0 0 1px var(--purple), 4px 5px 0 rgb(110 115 245 / 20%); }
.card-heading { min-height: 71px; padding: 2px 1px 14px; border-bottom: 1px solid #d7ded4; }
.card-heading span { color: var(--teal); font-size: 10px; }
.card-heading h4 { margin: 6px 0 0; font-size: clamp(15px, 1.35vw, 19px); font-weight: 900; line-height: 1.25; }
.wrap-copy { display: flow-root; flex: 1; min-height: 365px; padding: 21px 0 7px; }
.shape-float { position: relative; }
.wrap-card--before .shape-float { outline: 1px dashed var(--orange); outline-offset: 1px; }
.shape-art { overflow: hidden; background-color: var(--orange); }
.shape-art svg { display: block; width: 100%; height: 100%; }
.workspace[data-image-shape="true"] .shape-art { overflow: visible; background-color: transparent; }
.copy-kicker { margin: 0 0 10px; color: var(--teal); font-size: 10px; }
.wrap-copy h5 { margin: 0 0 13px; font-size: clamp(17px, 1.55vw, 22px); font-weight: 900; line-height: 1.35; }
.wrap-copy > p:not(.copy-kicker) { margin: 0 0 13px; color: #35463b; font-size: 13px; font-weight: 650; line-height: 1.8; text-wrap: pretty; }
.card-footer { display: flex; align-items: center; gap: 7px; min-height: 34px; padding-top: 10px; border-top: 1px solid #d7ded4; color: #63736a; font-family: inherit; font-size: 10px; font-weight: 750; letter-spacing: 0; }
.boundary-key { flex: none; width: 12px; height: 12px; }
.boundary-key--rect { border: 1px dashed var(--orange); }
.boundary-key--shape { border: 2px solid var(--purple); border-radius: 50%; }
.workspace-note { margin: 19px 0 1px; padding: 13px 15px; border: 1px solid #c9d7cb; border-radius: 10px; background: #f8fff2; color: #48614e; font-family: inherit; font-size: 11px; font-weight: 750; line-height: 1.6; letter-spacing: 0; }
.workspace-note code { color: var(--teal); }
.inspector { min-width: 0; background: #202620; color: #f8fcf4; }
.inspector-head { position: relative; min-height: 100px; padding: 25px 20px 18px; border-bottom: 1px solid #3f4c40; }
.inspector-head p { margin: 0 0 8px; color: #a7b7a7; }
.inspector-head h3 { margin: 0; font-size: 19px; font-weight: 900; }
.inspector-head > span { position: absolute; top: 42px; right: 15px; padding: 5px 7px; border-radius: 999px; background: var(--green); color: #142018; font: 900 10px "SFMono-Regular", Consolas, monospace; }
.inspector-summary { padding: 21px 19px; border-bottom: 1px solid #3f4c40; }
.summary-label { margin: 0 0 8px; color: #a8b7a9; font-size: 10px; }
.inspector-summary strong { color: var(--green); font-size: 19px; font-weight: 900; }
.inspector-summary > p:last-child { margin: 12px 0 0; color: #d5e0d4; font-size: 11px; font-weight: 650; line-height: 1.65; }
.inspector code { color: #c4c5ff; }
.code-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 20px 18px 10px; color: var(--green); }
.code-toolbar button { min-height: 35px; padding: 0 10px; border: 0; border-radius: 9px; font-size: 11px; }
.code-block { overflow: auto; margin: 0 16px; padding: 16px 13px; border: 1px solid #475348; border-radius: 12px; background: #151c17; white-space: pre; tab-size: 2; }
.code-block code { color: #e6f2df; font: 11px/1.65 "SFMono-Regular", Consolas, monospace; }
.code-footnote { margin: 15px 18px 24px; color: #aab8aa; font-size: 11px; line-height: 1.6; }
.guide { margin-top: 20px; }
.guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 20px 22px 14px; }
.guide-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.guide-grid article > span { color: var(--purple); }
.guide-grid h3 { margin: 17px 0 8px; font-size: 17px; font-weight: 900; }
.guide-grid p { margin: 0; color: #526457; font-size: 12px; font-weight: 650; line-height: 1.65; }
.guide-grid code, .source-links a { color: var(--purple); }
.source-links { margin: 4px 23px 21px; color: var(--muted); font-size: 12px; font-family: inherit; letter-spacing: 0; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; padding: 25px 4px 32px; color: #7c8b7e; }
.toast { position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 10; width: max-content; max-width: calc(100vw - 32px); margin: 0; padding: 12px 17px; border-radius: 11px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@container (max-width: 730px) { .comparison-grid { grid-template-columns: 1fr; } .wrap-card { min-height: 430px; } .wrap-copy { min-height: 300px; } }
@media (max-width: 1180px) { .lab-grid { grid-template-columns: 270px minmax(0, 1fr); } .inspector { grid-column: 1 / -1; } .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 750px) { .page { width: min(100% - 24px, 560px); } .hero { padding: 29px 4px 24px; } .hero-bottom { display: block; } .hero-actions { margin-top: 17px; } .section-heading { padding: 15px; } .heading-pill { display: none; } .lab-grid { display: block; } .controls { border-right: 0; } .control-section { padding: 20px; } .preset-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .preset-list button { display: flex; min-height: 61px; padding: 9px; } .preset-icon { width: 28px; height: 28px; margin: 0; } .workspace-body { padding: 14px; } .guide-grid { grid-template-columns: 1fr; padding: 15px; } .guide-grid article { padding: 15px; } .page-footer { font-size: 10px; } }
@media (max-width: 390px) { .page { width: min(100% - 16px, 560px); } h1 { font-size: 41px; } .hero-actions button { padding-inline: 13px; } .section-heading h2 { font-size: 20px; } .preset-list { gap: 6px; } .preset-list button b { font-size: 11px; } .preset-list button small { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
