/* ddd.kr — fff.css 위에 얼굴·도구 화면. 따뜻한 주황 가격표(구멍 뚫린 카드)·영수증(점선·고정폭 숫자). 움직임 없음. */
.b-ddd { --accent: light-dark(#c2410c, #fdba74); --accent-ink: light-dark(#ffffff, #2a1205); --bg: light-dark(#fffaf5, #15100c); --bg2: light-dark(#fff1e6, #221812); --line: light-dark(#f1dccb, #3a2a1f); }
.cat-price { --c: light-dark(#c2410c, #fdba74); --c-bg: light-dark(#ffedd5, #3a210f); }
.cat-cart { --c: light-dark(#0f766e, #5eead4); --c-bg: light-dark(#dcf5f1, #0f2e2b); }
.cat-together { --c: light-dark(#7c3aed, #c4b5fd); --c-bg: light-dark(#efe7ff, #261a45); }
.b-ddd .top { background: light-dark(#7c2d12, #1f0f07); border-bottom: 0; }
.b-ddd .top, .b-ddd .top a, .b-ddd .top summary { color: #fff3e8; }
.b-ddd .logo .mark { background: #fb923c; color: #2a1205; border-radius: 50% 8px 8px 50%; }
.b-ddd [hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* 대문 */
.d-hero { padding: 40px 0 26px; background: var(--bg2); border-bottom: 1px solid var(--line); }
.d-hero-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 26px; align-items: center; }
@media (max-width: 760px) { .d-hero-in { grid-template-columns: 1fr; } .d-art { max-width: 260px; margin: 0 auto; } }
.d-hero h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem); font-weight: 900; letter-spacing: -.03em; }
.d-art { width: 100%; height: auto; }
.d-tag { fill: light-dark(#fff, #2a1a10); stroke: #ea580c; stroke-width: 3; }
.d-hole { fill: var(--bg2); stroke: #ea580c; stroke-width: 3; }
.d-old { font: 600 22px ui-monospace, Menlo, Consolas, monospace; fill: light-dark(#9a8576, #a08b7c); }
.d-cut { stroke: #dc2626; stroke-width: 3; }
.d-new { font: 800 40px ui-monospace, Menlo, Consolas, monospace; fill: light-dark(#7c2d12, #fed7aa); }
.d-pct { font: 900 22px system-ui, sans-serif; fill: #dc2626; }
.d-cat { font-size: 1.1rem; margin: 26px 0 12px; display: flex; align-items: center; gap: 10px; }
.d-cat::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--c, var(--accent)); }
.d-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.d-card { position: relative; display: grid; gap: 4px; padding: 18px 18px 16px 40px; border: 2px solid var(--line); border-radius: 8px 14px 14px 8px; background: var(--card); color: var(--ink); text-decoration: none; min-height: 120px; }
.d-card::before { content: ""; position: absolute; top: 18px; inset-inline-start: 14px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--c, var(--accent)); background: var(--bg); }
.d-card:hover { border-color: var(--c, var(--accent)); }
.d-card .ico { font-size: 1.6rem; }
.d-card b { font-size: 1.06rem; } .d-card span:last-child { color: var(--dim); font-size: .92rem; }
.d-how { padding-top: 28px; }
.d-how h2 { font-size: 1.35rem; margin: 0 0 14px; }
.d-how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.d-how li { display: flex; gap: 12px; padding: 16px; border: 1px dashed light-dark(#f0b58c, #5a3a24); border-radius: 12px; background: var(--bg2); }
.d-how li b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #ea580c; color: #fff; }
/* 오늘의 핫딜 입구 */
.d-deal { margin-top: 22px; margin-bottom: 22px; }
.d-deal-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 18px 20px; border: 2px solid #ea580c; border-radius: 16px; background: light-dark(#fff7ed, #2a1708); }
.d-deal-in > div { flex: 1 1 260px; }
.d-deal h2 { margin: 0 0 4px; font-size: 1.25rem; }
.d-deal p { margin: 0; color: var(--dim); }
.d-fire { font-size: 2.2rem; line-height: 1; }
.d-deal-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; font-weight: 800; text-decoration: none; border-radius: 12px; }
.d-deal-note { margin: 8px 4px 0; font-size: .82rem; color: var(--dim); }
/* 도구 화면 */
.tool.ddd { max-width: 1100px; }
.d-form { display: grid; gap: 14px; }
.d-f { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .93rem; min-width: 0; }
.d-f input, .d-f select { width: 100%; min-height: 46px; padding: 0 12px; font: 600 1.05rem/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.d-f input:focus, .d-f select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.d-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); }
.d-pair { display: grid; grid-template-columns: minmax(0, 1fr) 88px; gap: 6px; }
.d-rows { display: grid; gap: 10px; }
.d-row { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr)) 48px; gap: 10px; align-items: end; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px 14px 14px 8px; background: var(--card); }
.d-rows-s .d-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 48px; }
.d-row .d-x { min-width: 44px; padding: 0; }
@media (max-width: 900px) {
  .d-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline-end: 64px; }
  .d-rows-s .d-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-row .d-f input, .d-row .d-f select { min-width: 0; }
  .d-row .d-wide { grid-column: 1 / -1; }
  .d-row .d-x { position: absolute; top: 10px; inset-inline-end: 10px; }
}
.d-row.best { border: 2px solid #16a34a; }
.d-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.d-panel { display: grid; gap: 10px; align-content: start; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.d-panel legend { padding: 0 6px; font-weight: 800; font-size: 1.02rem; }
.d-legend-in { min-height: 40px; padding: 0 10px; font: 800 1rem system-ui, sans-serif; border: 1px dashed var(--line); border-radius: 8px; background: var(--bg2); color: var(--ink); max-width: 100%; }
.d-out { display: block; min-height: 56px; padding: 12px; border-radius: 10px; background: var(--bg2); font-variant-numeric: tabular-nums; }
.d-out b { display: block; font-size: 1.5rem; color: var(--accent); }
.d-out span { display: block; color: var(--dim); font-size: .92rem; margin-top: 2px; }
/* 영수증 */
.d-receipt { margin-top: 16px; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: 4px; background: light-dark(#fff, #1c1510); font-variant-numeric: tabular-nums; box-shadow: 0 1px 0 var(--line); background-image: radial-gradient(circle at 8px -2px, var(--bg) 6px, transparent 7px); background-size: 16px 10px; background-repeat: repeat-x; }
.d-receipt .d-empty { margin: 0; color: var(--dim); }
.d-receipt table { width: 100%; border-collapse: collapse; }
.d-receipt th, .d-receipt td { padding: 8px 6px; text-align: start; border-bottom: 1px dashed var(--line); vertical-align: top; }
.d-receipt td.n, .d-receipt th.n { text-align: end; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.d-receipt tr.tot td { border-bottom: 2px solid var(--ink); font-weight: 800; font-size: 1.08rem; }
.d-receipt tr.best td { color: light-dark(#15803d, #86efac); font-weight: 800; }
.d-receipt tr.minus td.n { color: light-dark(#b91c1c, #fca5a5); }
.d-big { margin: 14px 0 4px; font-size: 1.6rem; font-weight: 900; color: var(--accent); }
.d-note { margin: 8px 0 0; color: var(--dim); }
.d-verdict { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--bg2); font-weight: 700; }
.d-verdict.good { background: light-dark(#dcfce7, #10291a); color: light-dark(#14532d, #bbf7d0); }
.d-verdict.warn { background: light-dark(#fef3c7, #2e2408); color: light-dark(#78350f, #fde68a); }
.d-scroll { overflow-x: auto; }
.tool.ddd .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
@media (pointer: coarse) { .d-f input, .d-f select, .d-legend-in { min-height: 48px; } }
