/* DeveloperLaLa.net — 블랙 테마 (강조색은 Falcon 시작 페이지와 같은 #ff0033 계열) */
:root {
  --bg: #000;
  --panel: #0c0c0c;
  --panel-2: #141414;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .2);
  --text: #ededed;
  --muted: #8f8f8f;
  --red: #ff0033;
  --red-soft: #ff6680;
  /* 복리계산기 차트 (어두운 바탕에서 색각 검사 통과) */
  --c-principal: #6f8fd6;
  --c-interest: #ff3d5e;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
main { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* == 메뉴 */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0, 0, 0, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; text-decoration: none; letter-spacing: -.01em; }
.brand-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--red); box-shadow: 0 0 12px rgba(255, 0, 51, .6); }
/* 언어 변경 */
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 13px; font-weight: 600; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line-strong);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--text); background: var(--panel-2); }
.globe {   /* 지구 아이콘 */
  width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; position: relative;
}
.globe::before { content: ""; position: absolute; inset: -1.5px 3px; border-radius: 50%; border: 1.5px solid currentColor; }
.globe::after { content: ""; position: absolute; left: -1px; right: -1px; top: 50%; border-top: 1.5px solid currentColor; margin-top: -.75px; }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 140px; z-index: 20;
  background: #111; border: 1px solid var(--line-strong); border-radius: 10px; padding: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
  display: flex; flex-direction: column;
}
.lang-list a { padding: 8px 10px; border-radius: 6px; font-size: 14px; color: var(--muted); text-decoration: none; }
.lang-list a:hover { background: var(--panel-2); color: var(--text); }
.lang-list a[aria-current="true"] { color: var(--text); }
.lang-list a[aria-current="true"]::after { content: " ✓"; color: var(--red-soft); }

/* == 홈 */
.btn {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--line-strong); text-decoration: none; font-weight: 600; font-size: 15px;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--panel-2); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: #e6002e; }
.lead { color: var(--muted); font-size: 17px; margin: 0; max-width: 640px; }

.projects { padding: 48px 0 56px; }
.section-head { display: flex; align-items: center; gap: 10px; }
.section-head h1, .section-head h2 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.projects.games { padding: 0 0 80px; }
/* 게임 카드: 위 표지 그림 + 아래 글 */
.game-cards { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.card.game { padding: 0; overflow: hidden; gap: 0; }
div.card.game:hover { transform: none; border-color: var(--line); background: var(--panel); }
.cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.game-body { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 22px; flex: 1; }
.game-body .card-title { padding-right: 0; }
.status { font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.empty { margin: 24px 0 0; padding: 32px; border: 1px dashed var(--line-strong); border-radius: 16px; color: var(--muted); text-align: center; }
.count { font-size: 12px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 9px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 24px; }
.card {
  position: relative;
  display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line); text-decoration: none;
  transition: border-color .15s, transform .15s, background .15s;
}
.card:hover { border-color: rgba(255, 64, 96, .5); background: #100809; transform: translateY(-2px); }
.kind { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.card-top { display: flex; align-items: center; gap: 14px; }
.card-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; }
.card-icon.glyph {
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-2); border: 1px solid var(--line-strong); color: var(--red-soft);
  font-weight: 800; font-size: 17px; font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.card-title { display: flex; flex-direction: column; min-width: 0; padding-right: 64px; }   /* 오른쪽 위 분류 라벨 자리 */
.card-title b { font-size: 18px; }
.card-title span { color: var(--muted); font-size: 13px; }
.card-desc { color: #bdbdbd; font-size: 14px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.cta { font-size: 13px; font-weight: 600; color: var(--red-soft); white-space: nowrap; }

/* == 하위 페이지 머리 */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(30px, 5vw, 44px); margin: 12px 0 10px; letter-spacing: -.02em; }
.crumb { color: var(--muted); text-decoration: none; font-size: 14px; }
.crumb:hover { color: var(--text); }

/* == Falcon */
.product {
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--panel); padding: 36px; margin: 16px 0 80px;
}
.product-head { display: flex; align-items: center; gap: 16px; }
.logo { flex: none; width: 64px; height: 64px; }
.product h1 { margin: 0; font-size: 32px; }
.tagline { margin: 2px 0 0; color: var(--muted); }
.product-desc { margin: 24px 0; color: #c8c8c8; max-width: 760px; }
.product-desc b { color: var(--text); }
.product h2 { font-size: 18px; margin: 36px 0 14px; }
.features {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 24px;
}
.features li { display: flex; flex-direction: column; padding: 12px 0 12px 14px; border-left: 2px solid rgba(255, 0, 51, .5); }
.features b { font-size: 15px; }
.features span { color: var(--muted); font-size: 13px; margin-top: 2px; }
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.download {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border-radius: 14px; border: 1px solid var(--line);
  background: #050505; text-decoration: none;
  transition: border-color .15s, background .15s, transform .15s;
}
.download:hover { border-color: rgba(255, 64, 64, .55); background: #140708; transform: translateY(-2px); }
.download.recommended { border-color: var(--red); background: linear-gradient(135deg, #2a0b0b, #120606); }
.dl-icon { flex: none; width: 34px; height: 34px; border-radius: 9px; background: rgba(255, 0, 51, .15); position: relative; }
.dl-icon::before { content: ""; position: absolute; left: 50%; top: 8px; width: 2px; height: 12px; margin-left: -1px; background: var(--red); }
.dl-icon::after {
  content: ""; position: absolute; left: 50%; top: 16px; margin-left: -5px;
  border-top: 7px solid var(--red); border-left: 5px solid transparent; border-right: 5px solid transparent;
}
.dl-text { display: flex; flex-direction: column; min-width: 0; }
.dl-name { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dl-desc { color: var(--muted); font-size: 13px; margin-top: 2px; }
.dl-meta { color: #c9a0a0; font-size: 12px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.badge { display: none; font-size: 11px; font-weight: 700; color: #fff; background: var(--red); border-radius: 999px; padding: 1px 8px; }
.download.recommended .badge { display: inline-block; }
.note { color: var(--muted); font-size: 13px; margin: 18px 0 0; }
.extra { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.extra a { color: var(--red-soft); }

/* == A!Sex 디코더 */
.card-icon.glyph.big { width: 64px; height: 64px; border-radius: 16px; font-size: 18px; font-family: inherit; }
.sample { display: flex; flex-direction: column; gap: 6px; background: #000; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 24px; }
.sample-label { font-size: 12px; color: var(--muted); }
.sample code, .steps code { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.sample code { color: var(--red-soft); font-size: 14px; word-break: break-all; }
.try { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.try textarea {
  width: 100%; resize: vertical; background: #000; color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 10px 12px; font: 14px/1.5 ui-monospace, "SF Mono", Menlo, monospace; word-break: break-all;
}
.try textarea:focus { border-color: var(--red); outline: none; }
.err { color: var(--red-soft); }
.installs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.install { background: #000; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.install h3 { margin: 0 0 14px; font-size: 16px; }
.btn.disabled { color: var(--muted); border-style: dashed; cursor: default; }
.btn.disabled:hover { background: none; }
.steps { margin: 18px 0 0; padding-left: 20px; color: #c8c8c8; font-size: 14px; }
.steps li { margin: 6px 0; }
.steps code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: 13px; }

/* == 복리계산기 */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 24px; }
.calc-form, .calc-result, .chart-block { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.calc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span:first-child { font-size: 13px; color: var(--muted); font-weight: 600; }
.field small { font-size: 12px; color: var(--muted); min-height: 1em; }
.input { display: flex; align-items: center; background: #000; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 12px; }
.input:focus-within, select:focus { border-color: var(--red); outline: none; }
.input input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: inherit; font-size: 16px; height: 44px; outline: none; font-variant-numeric: tabular-nums; }
.input em { font-style: normal; color: var(--muted); font-size: 14px; }
select {
  height: 46px; background: #000; color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 0 12px; font: inherit; font-size: 15px;
}
.hero-number { display: flex; flex-direction: column; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.hero-number .label { color: var(--muted); font-size: 13px; font-weight: 600; }
.hero-number b { font-size: clamp(28px, 4.4vw, 40px); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 4px; word-break: keep-all; }
.hero-number .sub { color: var(--red-soft); font-size: 15px; font-weight: 600; }
.stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 18px; }
.stats dt { color: var(--muted); font-size: 12px; }
.stats dd { margin: 4px 0 0; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; word-break: break-all; }

.chart-block { margin: 16px 0 80px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.chart-head h2 { font-size: 18px; margin: 0; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.sw.principal { background: var(--c-principal); }
.sw.interest { background: var(--c-interest); }
.chart-wrap { position: relative; }
#chart { display: block; width: 100%; height: auto; }
#chart .grid { stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
#chart .axis { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
#chart .bar.principal { fill: var(--c-principal); }
#chart .bar.interest { fill: var(--c-interest); }
#chart .hit { fill: transparent; cursor: crosshair; }
#chart .hit:hover { fill: rgba(255, 255, 255, .04); }
.tip {
  position: absolute; pointer-events: none; z-index: 2;
  display: flex; flex-direction: column; gap: 3px;
  background: #1a1a1a; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px;
  font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; box-shadow: 0 8px 24px rgba(0, 0, 0, .6);
}
.tip[hidden] { display: none; }
.tip span { display: flex; align-items: center; gap: 6px; color: #cfcfcf; }
.table-wrap { overflow-x: auto; margin-top: 20px; border-top: 1px solid var(--line); }
.years { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.years th, .years td { padding: 10px 8px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.years th { color: var(--muted); font-weight: 600; }
.years th:first-child, .years td:first-child { text-align: left; }

/* == 관리자 대시보드 */
.dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0 80px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; min-width: 0; }
.panel.wide { grid-column: 1 / -1; }
.panel h2 { font-size: 16px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.panel .years td a { color: var(--text); }
.kpis { margin: 0 0 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpis dt, .facts dt { color: var(--muted); font-size: 12px; }
.kpis dd { margin: 4px 0 0; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 120px; border-bottom: 1px solid var(--line-strong); }
.bar { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.bar i { display: block; width: 100%; height: var(--h); min-height: 1px; background: var(--red); border-radius: 3px 3px 0 0; opacity: .85; }
.bar:hover i { opacity: 1; }
.bars-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 6px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpis small { font-size: 11px; }
.panel h3 { font-size: 13px; color: var(--muted); margin: 0; font-weight: 600; }
.flash { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; font-size: 14px; border: 1px solid var(--line-strong); }
.flash.ok { border-color: rgba(111, 143, 214, .5); background: rgba(111, 143, 214, .1); }
.flash.bad { border-color: rgba(255, 61, 94, .5); background: rgba(255, 61, 94, .1); }
.toggles tr.off td:not(:last-child) { color: var(--muted); }
.toggles form { margin: 0; display: inline; }
.switch {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--muted); background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px 4px 4px;
}
.switch .knob { width: 28px; height: 16px; border-radius: 999px; background: #333; position: relative; transition: background .15s; }
.switch .knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #999; transition: left .15s, background .15s; }
.switch.on { color: var(--text); border-color: rgba(255, 0, 51, .5); }
.switch.on .knob { background: var(--red); }
.switch.on .knob::after { left: 14px; background: #fff; }
.pill { font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 9px; }
.pill.on { color: #fff; background: var(--red); border-color: var(--red); }
.ads-form { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.ads-form .field { flex: 1; min-width: 240px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; height: 46px; }
.check input { accent-color: var(--red); width: 16px; height: 16px; }
.checklist { margin: 16px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.checklist li { margin: 4px 0; }
.checklist a, .checklist b { color: var(--text); }
.checklist code { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.facts { margin: 0; display: grid; gap: 10px; }
.facts.cols { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.facts dd { margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.bad { color: var(--red-soft); }

/* == 바닥 */
footer { border-top: 1px solid var(--line); }
.foot-inner { max-width: var(--max); margin: 0 auto; padding: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.foot-links { display: flex; gap: 16px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--text); }

@media (max-width: 760px) {
  .calc { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  main, .top-inner { padding-left: 16px; padding-right: 16px; }
  .foot-inner { padding: 20px 16px; }
  .projects { padding-top: 32px; }
  .product, .calc-form, .calc-result, .chart-block { padding: 20px 16px; }
  .calc-form { grid-template-columns: 1fr; }
  .try, .installs { grid-template-columns: 1fr; }
  .dash { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}
