:root {
    --bg: #0e1014;
    --bg-soft: #12161d;
    --panel: #171c26;
    --panel-2: #1c2330;
    --line: #27303f;
    --line-strong: #3a475c;
    --text: #e8edf5;
    --muted: #94a1b5;
    --accent: #fbc400;
    --accent-ink: #191300;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 12px 32px rgba(0, 0, 0, .35);

    --ball-yellow: #fbc400;
    --ball-blue: #69c8f2;
    --ball-red: #ff7272;
    --ball-gray: #aaa;
    --ball-green: #b0d840;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    padding-bottom: 78px;
    font-family: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background:
        radial-gradient(1000px 520px at 12% -8%, #1c2636 0%, rgba(28, 38, 54, 0) 60%),
        radial-gradient(900px 480px at 100% 0%, #241f12 0%, rgba(36, 31, 18, 0) 55%),
        var(--bg);
    background-attachment: fixed;
}

h1,
h2,
h3 {
    line-height: 1.3;
    margin: 0 0 .5rem;
    letter-spacing: -.01em;
}

h1 {
    font-size: clamp(1.75rem, 3.6vw, 2.4rem);
}

h2 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 .75rem;
}

a {
    color: var(--accent);
}

a:hover {
    color: #ffd84d;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .88em;
    background: #0b0e13;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: .1em .35em;
}

.wrap {
    width: min(1080px, calc(100% - 2rem));
    margin-inline: auto;
}

.muted {
    color: var(--muted);
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .85rem;
    word-break: break-all;
}

.ok {
    color: #9fe870;
}

/* ------------------------------------------------------------------
 * 접근성 / 상단 배너
 * ------------------------------------------------------------------ */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 100;
    background: var(--accent);
    color: var(--accent-ink);
    padding: .6rem .9rem;
    border-radius: 0 0 8px 0;
    font-weight: 700;
}

.skip-link:focus {
    left: 0;
}

.demo-banner {
    background: linear-gradient(90deg, #3a2c07, #1d1a10 70%);
    border-bottom: 1px solid #4a3a12;
    color: #ffdd7a;
    font-size: .82rem;
    line-height: 1.4;
    padding: .5rem 1rem;
    text-align: center;
}

.demo-badge {
    display: inline-block;
    margin-right: .5rem;
    padding: .12rem .45rem;
    border-radius: 4px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    vertical-align: .06em;
}

/* ------------------------------------------------------------------
 * 헤더 / 내비게이션
 * ------------------------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(14, 16, 20, .88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 62px;
    flex-wrap: wrap;
    padding-block: .5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -.01em;
}

.brand:hover {
    color: var(--text);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 1rem;
    font-weight: 900;
}

.nav {
    display: flex;
    align-items: center;
    gap: .25rem;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-block;
    padding: .4rem .8rem;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-size: .92rem;
    font-weight: 600;
}

.nav-link:hover {
    color: var(--text);
    background: var(--panel-2);
}

.nav-link.is-active {
    color: var(--accent-ink);
    background: var(--accent);
}

/* ------------------------------------------------------------------
 * 페이지 공통
 * ------------------------------------------------------------------ */
main {
    padding-top: 1.6rem;
}

.page-head {
    padding: .4rem 0 1.1rem;
}

.eyebrow {
    margin: 0 0 .35rem;
    color: var(--accent);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.lead {
    color: var(--muted);
    max-width: 62ch;
    margin-bottom: 0;
}

.hero {
    padding: 1.2rem 0 1.6rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: .4rem;
}

.hero .lead {
    font-size: 1.05rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.1rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .35rem .8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: var(--text);
    font-size: .85rem;
    font-weight: 600;
}

.chip-link {
    color: var(--accent);
    text-decoration: none;
    border-color: #4a3c10;
}

.chip-link:hover {
    background: #241f10;
}

.section {
    margin-top: 2.2rem;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: .9rem;
}

.section-head h2 {
    margin: 0;
}

.text-link {
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem 1.4rem;
    box-shadow: var(--shadow);
}

.panel h2 {
    font-size: 1.05rem;
    margin-bottom: .9rem;
}

.muted-panel {
    background: var(--bg-soft);
    box-shadow: none;
}

/* ------------------------------------------------------------------
 * 볼
 * ------------------------------------------------------------------ */
.balls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
}

.ball {
    --size: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    font-size: calc(var(--size) * .4);
    font-weight: 800;
    line-height: 1;
    color: #fff;
    box-shadow:
        inset 0 -3px 0 rgba(0, 0, 0, .22),
        inset 0 2px 0 rgba(255, 255, 255, .25),
        0 3px 8px rgba(0, 0, 0, .4);
    flex: 0 0 auto;
}

.ball-sm {
    --size: 32px;
}

.balls-lg .ball {
    --size: 56px;
}

.ball-yellow {
    background: var(--ball-yellow);
    color: #1c1600;
}

.ball-blue {
    background: var(--ball-blue);
    color: #06202b;
}

.ball-red {
    background: var(--ball-red);
    color: #2b0606;
}

.ball-gray {
    background: var(--ball-gray);
    color: #171717;
}

.ball-green {
    background: var(--ball-green);
    color: #1b2405;
}

.ball-bonus {
    box-shadow:
        inset 0 -3px 0 rgba(0, 0, 0, .22),
        0 0 0 3px rgba(251, 196, 0, .28),
        0 3px 8px rgba(0, 0, 0, .4);
}

.ball-plus {
    color: var(--muted);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0 .1rem;
}

.ball-caption {
    margin: .9rem 0 0;
    font-size: .82rem;
}

/* ------------------------------------------------------------------
 * 요약 카드
 * ------------------------------------------------------------------ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
    box-shadow: var(--shadow);
}

.stat-label {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.stat-value {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.stat-sub {
    color: var(--muted);
    font-size: .8rem;
}

.top-list {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin: .2rem 0 0;
    padding: 0;
    list-style: none;
}

.top-list li {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.top-count {
    color: var(--muted);
    font-size: .82rem;
    font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------
 * 회차 카드
 * ------------------------------------------------------------------ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: .9rem;
}

.draw-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .95rem 1.05rem;
    transition: transform .15s ease, border-color .15s ease;
}

.draw-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
}

.draw-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .7rem;
}

.round-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.02rem;
}

.round-link:hover {
    color: var(--accent);
}

.draw-date {
    color: var(--muted);
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
}

.cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 2.2rem;
    padding: 1.3rem 1.5rem;
    border: 1px solid #4a3c10;
    border-radius: var(--radius);
    background: linear-gradient(120deg, #1e1a0d, var(--panel) 60%);
}

.cta-row h2 {
    margin-bottom: .2rem;
}

.cta-row p {
    margin: 0;
}

/* ------------------------------------------------------------------
 * 버튼 / 페이저
 * ------------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .55rem .95rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel-2);
    color: var(--text);
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover {
    border-color: var(--line-strong);
    background: #232c3d;
    color: var(--text);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}

.btn-primary:hover {
    background: #ffd43b;
    border-color: #ffd43b;
    color: var(--accent-ink);
}

.btn.is-disabled {
    color: #5c687c;
    background: transparent;
    cursor: not-allowed;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
}

.actions {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: var(--muted);
    font-size: .82rem;
    margin-bottom: .4rem;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--text);
}

/* ------------------------------------------------------------------
 * 안내 박스
 * ------------------------------------------------------------------ */
.notice {
    margin: 1.2rem 0;
    padding: 1rem 1.2rem;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    background: var(--panel);
}

.notice h2 {
    font-size: 1rem;
    margin-bottom: .3rem;
}

.notice p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
}

.notice-error {
    border-left-color: #ff7272;
    background: #1f1416;
}

.notice-warn {
    border-left-color: #f0a63a;
    background: #1f1a10;
}

.notice-success {
    border-left-color: #9fe870;
    background: #141d14;
}

.error-text {
    color: #ff9a9a;
}

/* ------------------------------------------------------------------
 * 표 / 막대
 * ------------------------------------------------------------------ */
.table-wrap {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel);
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: .9rem;
}

th,
td {
    padding: .5rem .75rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

thead th {
    background: #1b2230;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
    white-space: nowrap;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: #1a2130;
}

tbody tr.is-top {
    background: #1d1a10;
}

tbody tr.is-top td:first-child {
    color: var(--accent);
    font-weight: 800;
}

.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.col-rank {
    width: 3.5rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.col-bar {
    width: 36%;
    min-width: 130px;
}

.bar {
    display: block;
    width: 100%;
    min-width: 80px;
    height: 9px;
    border-radius: 999px;
    background: #232c3b;
    overflow: hidden;
}

.bar > span {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.fill-yellow {
    background: var(--ball-yellow);
}

.fill-blue {
    background: var(--ball-blue);
}

.fill-red {
    background: var(--ball-red);
}

.fill-gray {
    background: var(--ball-gray);
}

.fill-green {
    background: var(--ball-green);
}

/* 분포 행 */
.dist-list {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.dist-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 128px;
    align-items: center;
    gap: .8rem;
}

.dist-row.is-highlight .dist-label {
    color: var(--accent);
    font-weight: 800;
}

.dist-label {
    color: var(--muted);
    font-size: .84rem;
    font-weight: 600;
    white-space: nowrap;
}

.dist-count {
    color: var(--text);
    font-size: .82rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dist-count .muted {
    font-size: .76rem;
}

/* ------------------------------------------------------------------
 * 설치 화면
 * ------------------------------------------------------------------ */
.kv {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: .9rem 1.5rem;
    margin: 0;
}

.kv > div {
    border-bottom: 1px dashed var(--line);
    padding-bottom: .55rem;
}

.kv dt {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: .15rem;
}

.kv dd {
    margin: 0;
    font-weight: 600;
    word-break: break-word;
}

.plain-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: .92rem;
}

.plain-list li + li {
    margin-top: .4rem;
}

/* ------------------------------------------------------------------
 * 번호 생성
 * ------------------------------------------------------------------ */
.mode-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
}

.mode-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    width: 100%;
    padding: 1.05rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel-2);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.mode-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    background: #222b3b;
}

.mode-card.is-active {
    border-color: var(--accent);
    background: #221e0f;
}

.mode-name {
    font-size: 1.02rem;
    font-weight: 800;
}

.mode-desc {
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.5;
}

.mode-cta {
    margin-top: .3rem;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 700;
}

.result-panel {
    margin-top: 1.2rem;
    border-color: #4a3c10;
    background: linear-gradient(140deg, #201b0c, var(--panel) 65%);
}

.result-panel .balls {
    margin: .6rem 0 .8rem;
}

.inline-form {
    margin-top: 1rem;
}

/* ------------------------------------------------------------------
 * 푸터 / 고정 면책
 * ------------------------------------------------------------------ */
.site-footer {
    margin-top: 3rem;
    border-top: 1px solid var(--line);
    padding: 1.4rem 0;
    color: var(--muted);
    font-size: .82rem;
}

.footer-inner {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-inner p {
    margin: 0;
}

.dot {
    color: #4a566a;
}

.disclaimer-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: .65rem 1rem;
    border-top: 1px solid var(--line);
    background: rgba(10, 12, 16, .96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #c3ccda;
    font-size: .78rem;
    line-height: 1.45;
    text-align: center;
}

/* ------------------------------------------------------------------
 * 반응형
 * ------------------------------------------------------------------ */
@media (max-width: 760px) {
    body {
        font-size: 15px;
        padding-bottom: 82px;
    }

    .header-inner {
        align-items: flex-start;
    }

    .nav {
        width: 100%;
    }

    .stat-grid,
    .mode-grid {
        grid-template-columns: 1fr;
    }

    .balls-lg .ball {
        --size: 46px;
    }

    .dist-row {
        grid-template-columns: 80px minmax(0, 1fr) 104px;
        gap: .55rem;
    }

    .dist-count {
        font-size: .76rem;
    }

    .disclaimer-bar {
        font-size: .72rem;
    }

    .panel {
        padding: 1.05rem 1.1rem;
    }
}

@media (max-width: 420px) {
    .ball {
        --size: 38px;
    }

    .ball-sm {
        --size: 30px;
    }

    .balls {
        gap: .35rem;
    }

    .draw-card .balls {
        gap: .3rem;
    }
}

@media (max-width: 520px) {
    body {
        padding-bottom: 104px;
    }
}

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

/* generator groups */
.mode-section{margin-top:26px}
.mode-section h2{font-size:17px;margin:0 0 10px;color:var(--text)}
.applied{font-size:13px;margin:8px 0 0;color:#9fb0c9}
.result{margin:18px 0 6px;padding:18px;background:#151a23;border:1px solid #2b3345;border-radius:14px}

/* 통계 기반 조합 */
.mix-row{display:grid;grid-template-columns:1fr 140px;gap:12px;align-items:center;margin-bottom:12px}
.mix-row label{margin:0}
.mix-row select{width:100%}

/* 쉬운 조합 — 클릭 선택 */
.pick-row{display:grid;grid-template-columns:180px 1fr;gap:14px;align-items:center;margin-bottom:14px}
.pick-label strong{display:block;font-size:14.5px;color:var(--text)}
.pick-label .hint{display:block;font-size:12px;color:#7b869b;margin-top:2px}
.chip-group{display:flex;gap:6px;flex-wrap:wrap}
.chip-opt input{position:absolute;opacity:0;width:0;height:0}
.chip-opt span{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:40px;height:36px;padding:0 10px;border-radius:9px;
  background:#0f141d;border:1px solid #3a4560;color:#a8b3c7;
  font-size:14px;cursor:pointer;transition:all .12s
}
.chip-opt span:hover{border-color:#6b9bff;color:#f2f5fa}
.chip-opt input:checked + span{
  background:#6b9bff;border-color:#6b9bff;color:#08101f;font-weight:700
}
.chip-opt input:focus-visible + span{outline:2px solid #9dbcff;outline-offset:2px}
.sumline{margin:14px 0 4px;font-size:14px;color:#a8b3c7}
.sumline strong{font-size:18px;color:#7ee0a8}
@media (max-width:640px){.pick-row{grid-template-columns:1fr;gap:8px}}

/* 내 조건 카드 (세그먼트 탭 + 슬라이더) */
.cond-card{background:#151a23;border:1px solid #2b3345;border-radius:18px;padding:18px}
.seg{display:flex;gap:4px;background:#0f141d;border-radius:12px;padding:4px;margin-bottom:14px}
.seg-btn{flex:1;padding:10px 8px;border:0;border-radius:9px;background:transparent;
  color:#a8b3c7;font-size:14.5px;cursor:pointer;transition:all .12s}
.seg-btn:hover{color:#f2f5fa}
.seg-btn.on{background:#242c3a;color:#f2f5fa;font-weight:600}
.tab-panel{display:none}
.tab-panel.on{display:block}
.cond-desc{color:#a8b3c7;font-size:14px;margin:0 0 14px}
.cond-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.cond-head strong{font-size:14.5px;color:#f2f5fa}
.unit-toggle{display:flex;gap:2px;background:#0f141d;border:1px solid #2b3345;border-radius:999px;padding:3px}
.unit-btn{border:0;background:transparent;color:#8b95a7;font-size:12.5px;padding:5px 11px;border-radius:999px;cursor:pointer}
.unit-btn.on{background:#2b3345;color:#f2f5fa;font-weight:600}

.slider-row{background:#0f141d;border:1px solid #2b3345;border-radius:14px;padding:14px 16px 10px;margin-bottom:10px}
.slider-top{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px}
.slider-label{font-size:15px;color:#f2f5fa;font-weight:500}
.slider-val strong{font-size:22px;color:#f2f5fa;line-height:1}
.slider-val em{font-style:normal;color:#8b95a7;font-size:13px;margin-left:4px}

input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:26px;background:transparent;cursor:pointer}
input[type=range]::-webkit-slider-runnable-track{height:4px;background:#2b3345;border-radius:2px}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;border-radius:50%;
  background:#f2f5fa;margin-top:-8px;box-shadow:0 1px 6px rgba(0,0,0,.4)}
input[type=range]::-moz-range-track{height:4px;background:#2b3345;border-radius:2px}
input[type=range]::-moz-range-thumb{width:20px;height:20px;border:0;border-radius:50%;background:#f2f5fa}

.sum-row{display:flex;justify-content:space-between;align-items:baseline;
  font-size:14px;color:#a8b3c7;margin:16px 2px 14px}
.sum-row strong{font-size:18px;color:#7ee0a8;margin-right:2px}
.sum-row em{font-style:normal;font-size:13px;margin-left:2px}
.cta{width:100%;padding:15px;border:0;border-radius:12px;background:#f2f5fa;color:#0d1017;
  font-size:16px;font-weight:700;cursor:pointer;transition:opacity .12s,transform .12s}
.cta:hover{transform:translateY(-1px)}
.cta.is-off{opacity:.4;cursor:not-allowed;transform:none}
@media (max-width:640px){.cond-card{padding:14px}.slider-val strong{font-size:20px}}

/* --- 비주얼 폴리시 --- */
.cond-card{
  background:linear-gradient(180deg,#1a2130,#12161f);
  border:1px solid rgba(255,255,255,.07);
  box-shadow:0 14px 40px rgba(0,0,0,.45);
}
.seg{background:#0b0f16;border:1px solid rgba(255,255,255,.05)}
.seg-btn.on{
  background:linear-gradient(180deg,#2b3548,#212938);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 2px 8px rgba(0,0,0,.35);
}
.slider-row{
  background:linear-gradient(180deg,#111722,#0d121a);
  border:1px solid rgba(255,255,255,.06);
}
.slider-val strong{font-variant-numeric:tabular-nums}
input[type=range]::-webkit-slider-runnable-track{
  height:5px;border-radius:3px;
  background:linear-gradient(90deg,#6b9bff 0%,#8fb4ff var(--p,0%),#2b3345 var(--p,0%),#2b3345 100%);
}
input[type=range]::-moz-range-track{height:5px;border-radius:3px;background:#2b3345}
input[type=range]::-moz-range-progress{height:5px;border-radius:3px;background:linear-gradient(90deg,#6b9bff,#8fb4ff)}
.cta{
  background:linear-gradient(135deg,#9dc0ff,#5b8cff 55%,#4a7bf0);
  color:#08101f;box-shadow:0 10px 28px rgba(91,140,255,.38);
}
.cta:hover{box-shadow:0 14px 34px rgba(91,140,255,.5)}
.cta.is-off{background:#232b3a;color:#7b869b;box-shadow:none}

/* 미출현 요약 칩 */
.absent-chip{margin:0 0 12px;font-size:14px;color:#a8b3c7}
.absent-chip strong{font-size:18px;color:#f2f5fa;margin-right:2px}

/* 법적 페이지 */
.legal h2{font-size:16px;margin:22px 0 8px;color:#f2f5fa}
.legal h2:first-child{margin-top:0}
.legal p,.legal li{font-size:14.5px;line-height:1.8;color:#a8b3c7}
.legal ul{padding-left:20px;margin:6px 0}
.legal strong{color:#f2f5fa}
.legal-links{margin:14px 0 6px;font-size:13px;color:#7b869b}
.legal-links a{color:#9dbcff}
.legal-links .dot{margin:0 8px;opacity:.4}
.age-note{margin:8px 0 0;font-size:12px;color:#7b869b;line-height:1.6}

/* ===== 게시판 — 사이트 디자인 시스템 ===== */
.btn.primary{
  background:var(--accent);
  border-color:var(--accent);
  color:var(--accent-ink);
  font-weight:700;
}
.btn.primary:hover{background:#ffd43b;border-color:#ffd43b;color:var(--accent-ink)}

.board-toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:#151a23;border:1px solid #2b3345;border-radius:14px;
  padding:14px 16px;margin:0 0 10px;
}
.board-toolbar .muted{font-size:13.5px;color:#8b95a7}
.board-toolbar .btn{min-height:44px;padding:0 18px;font-size:14.5px}

.board-list{list-style:none;margin:0;padding:0}
.board-list li{
  background:#151a23;border:1px solid #2b3345;border-radius:14px;
  padding:16px 18px;margin:0 0 10px;
}
.board-list li:hover{border-color:#3a4560}

.row{margin-bottom:18px}
.row.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.row.two > div{margin:0}

.board-form{
  background:#151a23;border:1px solid #2b3345;border-radius:16px;
  padding:22px;max-width:none;
}
.board-form label{display:block;margin:0 0 8px;font-size:13.5px;color:#a8b3c7;font-weight:500}
.board-form input[type=text],
.board-form input[type=password],
.board-form textarea{
  width:100%;box-sizing:border-box;
  background:#0f141d;border:1px solid #3a4560;border-radius:10px;
  padding:13px 14px;font-size:15px;line-height:1.6;color:#f2f5fa;
}
.board-form textarea{min-height:200px;max-height:42vh;resize:vertical}
.board-form input:focus,.board-form textarea:focus{
  outline:none;border-color:#ffd43b;box-shadow:0 0 0 3px rgba(255,212,59,.15);
}
.board-form .actions{display:flex;gap:12px;margin-top:8px}
.board-form .actions .btn{min-height:50px;padding:0 24px;font-size:15.5px;border-radius:12px;flex:1}

@media (max-width:640px){
  .board-form{padding:16px}
  .row.two{grid-template-columns:1fr}
  .board-form .actions{flex-direction:column}
  .board-form .actions .btn{width:100%}
}

/* 게시판 여백·밀도 조정 */
.board-page-head{padding-bottom:.4rem}
.board-page-head + .section{margin-top:1.6rem}
.board-toolbar{
  background:transparent;border:0;border-radius:0;padding:0;
  margin:0 0 12px;
}
.board-toolbar .btn{min-height:40px;padding:0 16px;font-size:14px}
.board-list li{padding:12px 15px;margin-bottom:8px;border-radius:12px}
.board-title{font-size:15px;line-height:1.45}
.board-meta{margin-top:4px;font-size:12px}

/* 공지 배지 / 관리 링크 */
.pin-badge{display:inline-block;background:var(--accent);color:var(--accent-ink);
  font-size:11px;font-weight:800;padding:2px 8px;border-radius:999px;margin-right:8px;vertical-align:2px}
.admin-link{color:#9dbcff;font-size:12px;margin-left:10px}
.admin-link.danger{color:#e08a84}
