/* coi.kr — fff.css 위에 얼굴·도구 화면. 흰 바탕 + 무지개 원판, 색 견본 카드, 둥근 큰 모서리. 움직임 없음. */
.b-coi { --accent: light-dark(#a21caf, #f0abfc); --accent-ink: light-dark(#ffffff, #2a0630); --bg2: light-dark(#faf7fb, #17141a); --line: light-dark(#ece4ef, #2d2633); --radius: 22px; }
.cat-color { --c: light-dark(#a21caf, #f0abfc); --c-bg: light-dark(#fae8ff, #3b1240); }
.b-coi .top { background: var(--bg); border-bottom: 0; box-shadow: inset 0 -4px 0 0 transparent; border-image: linear-gradient(90deg, #ef4444, #f59e0b, #eab308, #22c55e, #06b6d4, #3b82f6, #a855f7, #ec4899) 1; border-bottom: 4px solid; }
.b-coi .logo .mark { background: conic-gradient(#ef4444, #f59e0b, #eab308, #22c55e, #06b6d4, #3b82f6, #a855f7, #ec4899, #ef4444); color: #fff; border-radius: 50%; text-shadow: 0 1px 2px rgb(0 0 0 / .5); }
.b-coi .btn { border-radius: 999px; font-weight: 800; }
.b-coi .btn-primary { background: #a21caf; border-color: #a21caf; color: #fff; }
.b-coi [hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.o-hero-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 28px; align-items: center; padding-top: 44px; padding-bottom: 24px; }
@media (max-width: 760px) { .o-hero-in { grid-template-columns: 1fr; } .o-wheel { display: none; } }
.o-hero h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.1rem); font-weight: 900; letter-spacing: -.03em; }
.o-wheel { aspect-ratio: 1; max-width: 280px; justify-self: center; width: 100%; border-radius: 50%; background: conic-gradient(#ef4444, #f59e0b, #eab308, #22c55e, #06b6d4, #3b82f6, #a855f7, #ec4899, #ef4444); display: grid; place-items: center; box-shadow: 0 20px 50px rgb(162 28 175 / .2); }
.o-wheel i { width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff, light-dark(#fff, #e9e3ee)); }
.o-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.o-card { position: relative; display: grid; gap: 6px; padding: 0 0 18px; border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.o-card:hover { border-color: var(--accent); }
.o-chip { height: 86px; display: block; }
.o1 .o-chip { background: linear-gradient(90deg, #7c3aed, #a855f7, #c084fc); } .o2 .o-chip { background: linear-gradient(90deg, #111827 50%, #f9fafb 50%); }
.o3 .o-chip { background: linear-gradient(90deg, #fdf4ff, #f0abfc, #c026d3, #86198f, #4a044e); } .o4 .o-chip { background: linear-gradient(135deg, #f59e0b, #ef4444 40%, #0ea5e9); }
.o5 .o-chip { background: linear-gradient(135deg, #22d3ee, #a855f7, #f43f5e); }
.o-card .ico { margin: -26px 16px 0; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--card); box-shadow: 0 4px 12px rgb(0 0 0 / .12); font-size: 1.5rem; }
.o-card b { margin: 0 18px; font-size: 1.08rem; }
.o-card span:not(.ico):not(.o-chip) { margin: 0 18px; color: var(--dim); font-size: .95rem; }
.o-how { padding-top: 30px; }
.o-how h2 { font-size: 1.35rem; margin: 0 0 14px; }
.o-how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.o-how li { display: flex; gap: 12px; padding: 16px; border-radius: 18px; background: var(--bg2); }
.o-how li b { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
/* 도구 화면 */
.coi .c-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
@media (max-width: 760px) { .coi .c-grid { grid-template-columns: 1fr; } }
.c-pick { display: grid; gap: 12px; }
.c-pick input[type=color], .row2 input[type=color], .g-stops input[type=color] { width: 100%; min-height: 52px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; }
.row2 { display: grid; grid-template-columns: 64px 1fr; gap: 8px; font-weight: 400; }
.swatch { border-radius: 22px; border: 1px solid var(--line); }
.swatch.big { min-height: 160px; display: grid; place-items: center; font: 800 1.6rem/1 ui-monospace, Menlo, monospace; }
.c-out { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; align-items: center; }
.c-out dt { font-weight: 800; color: var(--dim); }
.c-out dd { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.c-out code, .code { font: .92rem/1.5 ui-monospace, Menlo, Consolas, monospace; }
.c-out code { padding: 4px 8px; border-radius: 8px; background: var(--bg2); word-break: break-all; }
.c-out.small { font-size: .9rem; margin-top: 12px; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: .85rem; }
.k-demo { border-radius: 22px; padding: 24px; border: 1px solid var(--line); }
.k-demo p { margin: 0 0 8px; } .k-big { font-size: 1.6rem; font-weight: 800; }
.k-ratio { font-size: 2.2rem; margin: 12px 0 4px; }
.k-grades { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.k-grades .no { color: var(--bad); }
.dot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; vertical-align: middle; border: 1px solid var(--line); }
.bar-opts { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg2); }
.bar-opts .opt { min-width: 180px; flex: 1; }
.scale { margin-top: 16px; }
.scale ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); border-radius: 16px; overflow: hidden; }
@media (max-width: 760px) { .scale ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.scale li { min-height: 92px; padding: 8px; display: grid; align-content: space-between; gap: 4px; font-size: .78rem; }
.scale li b { font-size: .9rem; } .scale li span { font-family: ui-monospace, Menlo, monospace; }
.scale li .btn { background: rgb(255 255 255 / .2); border-color: transparent; color: inherit; min-height: 28px; padding: 0 8px; font-size: .72rem; }
.mini-h { margin: 0 0 6px; font-weight: 800; }
.tabs { display: flex; gap: 6px; margin: 16px 0 8px; flex-wrap: wrap; }
.tabs .btn.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
pre.code { margin: 0; padding: 14px; border-radius: 14px; background: #1e1b22; color: #f5f3f7; overflow: auto; max-height: 360px; white-space: pre; }
.stage { display: grid; place-items: center; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg2); }
.stage canvas { max-width: 100%; height: auto; cursor: crosshair; touch-action: none; display: block; }
.chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chip { width: 100%; min-height: 56px; border: 0; border-radius: 12px; font: 700 .85rem/1.2 ui-monospace, Menlo, monospace; cursor: pointer; display: grid; place-items: center; }
.chip small { font-weight: 400; opacity: .8; }
.g-preview { height: 240px; border-radius: 22px; margin: 16px 0; border: 1px solid var(--line); }
.g-stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.g-stops li { display: grid; grid-template-columns: 64px 1fr 52px auto; gap: 10px; align-items: center; }
.g-stops input[type=range] { accent-color: var(--accent); }
.err { color: var(--bad); font-weight: 700; margin: 0; }
.hint { color: var(--dim); }
