/* ==========================================================================
   데몬카지노 (demoncasino.oncaguide.com) 전용 스타일시트
   팔레트: P12 레드·블랙 (어두움) / 글꼴: F04 Black Han Sans + 시스템 고딕
   클래스 규칙: dm-* 전용 (.wrap, .tbl-wrap, .fig, .ad-* 공통 클래스 유지)
   ========================================================================== */

:root {
  --dm-bg: #111111;
  --dm-bg-alt: #15151a;
  --dm-surface: #18181d;
  --dm-surface-2: #202027;
  --dm-line: #2e2e38;
  --dm-line-hi: #424252;
  --dm-ink: #f5f5f5;
  --dm-muted: #c7c7d1;
  --dm-dim: #9d9daa;
  --dm-red: #e11d48;
  --dm-red-btn: #be123c;
  --dm-red-btn-hover: #9f1239;
  --dm-red-hi: #fb7185;
  --dm-white: #fafafa;
  --dm-ok: #4ade80;
  --dm-warn: #fbbf24;
  --dm-font-display: "Black Han Sans", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --dm-font-body: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, -apple-system, sans-serif;
  --dm-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Apple SD Gothic Neo", "Malgun Gothic", monospace;
  --dm-radius: 6px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--dm-bg);
  color: var(--dm-ink);
  font-family: var(--dm-font-body);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--dm-red-hi);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--dm-red-hi);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.dm-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--dm-red-btn);
  color: #ffffff;
  padding: 10px 16px;
  font-weight: 700;
  z-index: 999;
}
.dm-skip:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Header ---------- */
.dm-hd {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 17, 17, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--dm-line);
}

.dm-hd-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.dm-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--dm-ink);
  text-decoration: none;
  flex-shrink: 0;
}
.dm-brand:hover {
  text-decoration: none;
}

.dm-logo {
  flex-shrink: 0;
}
.dm-logo-bg {
  fill: #111111;
  stroke: var(--dm-red);
  stroke-width: 3.5;
}
.dm-logo-pip {
  fill: var(--dm-red);
}
.dm-logo-core {
  fill: var(--dm-white);
}

.dm-brand-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.dm-brand-ko {
  font-family: var(--dm-font-display);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--dm-white);
}
.dm-brand-en {
  font-family: var(--dm-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--dm-red-hi);
  text-transform: uppercase;
}

.dm-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.dm-nav a {
  color: var(--dm-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 4px;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.dm-nav a:hover {
  background: var(--dm-surface-2);
  color: var(--dm-white);
  text-decoration: none;
}

.dm-nav-btn {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--dm-line-hi);
  border-radius: var(--dm-radius);
  background: var(--dm-surface);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}
.dm-nav-btn span {
  display: block;
  height: 2px;
  background: var(--dm-white);
  border-radius: 2px;
}

/* ---------- 공통 배너 영역 다크 테마 조화 ---------- */
.ad-slot {
  padding: 26px 0;
  background: #141418;
  border-bottom: 1px solid var(--dm-line);
}
.ad-slot .wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ad-slot.ad-grid .wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ad-top .ad-title {
  grid-column: 1 / -1;
  margin: 0 0 6px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--dm-red);
  font-family: var(--dm-font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--dm-white);
  text-align: left;
}
.ad-slot .ad {
  display: block;
  border: 1px solid var(--dm-line-hi);
  border-radius: var(--dm-radius);
  overflow: hidden;
  background: #1c1c22;
}
.ad-slot .ad img {
  width: 100%;
  height: auto;
}

/* ---------- Sections 공통 ---------- */
.dm-sec {
  padding: 64px 0;
  border-bottom: 1px solid var(--dm-line);
}
.dm-sec-alt {
  background: var(--dm-bg-alt);
}

.dm-sec-hd {
  margin-bottom: 30px;
  max-width: 780px;
}
.dm-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--dm-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--dm-red-hi);
}
.dm-sec-hd h2 {
  margin: 0 0 12px;
  font-family: var(--dm-font-display);
  font-size: clamp(26px, 3.3vw, 36px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--dm-white);
  word-break: keep-all;
}
.dm-sec-intro {
  margin: 0;
  font-size: 15.5px;
  color: var(--dm-muted);
  word-break: keep-all;
}
.dm-sec-note {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--dm-dim);
}

/* ---------- S09 등급 비교 2단 ---------- */
.dm-tier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.dm-tier-box {
  padding: 26px 24px;
  background: var(--dm-surface);
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius);
}
.dm-tier-vip {
  border-color: var(--dm-red);
  background: linear-gradient(160deg, rgba(225, 29, 72, 0.12), var(--dm-surface) 58%);
}
.dm-tier-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  font-family: var(--dm-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--dm-surface-2);
  color: var(--dm-muted);
  border-radius: 3px;
}
.dm-tier-label-vip {
  background: var(--dm-red-btn);
  color: #ffffff;
}
.dm-tier-box h3 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 700;
  color: var(--dm-white);
}
.dm-tier-desc {
  margin: 0 0 18px;
  font-size: 14.5px;
  color: var(--dm-muted);
}
.dm-tier-ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dm-tier-ul li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--dm-ink);
}
.dm-tier-ul li::before {
  content: "▪";
  position: absolute;
  left: 0;
  color: var(--dm-red-hi);
}

/* ---------- S18 가이드 글 카드 ---------- */
.dm-guides-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.dm-guide-box {
  display: flex;
  flex-direction: column;
  background: var(--dm-surface);
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius);
  overflow: hidden;
  color: var(--dm-ink);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.dm-guide-box:hover {
  transform: translateY(-2px);
  border-color: var(--dm-red-hi);
  text-decoration: none;
}
.dm-guide-img {
  background: #0d0d10;
  border-bottom: 1px solid var(--dm-line);
  overflow: hidden;
}
.dm-guide-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.dm-guide-in {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.dm-guide-cat {
  font-family: var(--dm-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--dm-red-hi);
}
.dm-guide-in h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.38;
  color: var(--dm-white);
  word-break: keep-all;
}
.dm-guide-in p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--dm-muted);
  flex: 1;
}
.dm-guide-more {
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dm-white);
}

/* ---------- S19 FAQ ---------- */
.dm-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dm-faq-item {
  background: var(--dm-surface);
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius);
}
.dm-faq-item[open] {
  border-color: var(--dm-red);
}
.dm-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 20px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--dm-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.dm-faq-item summary::-webkit-details-marker {
  display: none;
}
.dm-faq-item summary::after {
  content: "+";
  font-family: var(--dm-font-mono);
  font-size: 20px;
  color: var(--dm-red-hi);
  flex-shrink: 0;
}
.dm-faq-item[open] summary::after {
  content: "−";
}
.dm-faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--dm-muted);
  border-top: 1px solid var(--dm-line);
  padding-top: 14px;
}

/* ---------- 하위 글 화면 (page.php) ---------- */
.dm-post {
  padding-top: 34px;
}
.dm-post-wrap {
  max-width: 820px;
}
.dm-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--dm-dim);
  margin-bottom: 22px;
}
.dm-crumbs a {
  color: var(--dm-muted);
}

.dm-post-hd {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--dm-line);
}
.dm-post-cat {
  margin: 0 0 10px;
  font-family: var(--dm-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--dm-red-hi);
}
.dm-post-hd h1 {
  margin: 0 0 14px;
  font-family: var(--dm-font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.24;
  color: var(--dm-white);
  word-break: keep-all;
}
.dm-post-lead {
  margin: 0 0 12px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--dm-muted);
}
.dm-post-meta {
  margin: 0;
  font-size: 13.5px;
  color: var(--dm-dim);
}

.dm-post-fig {
  margin: 0 0 28px;
  border: 1px solid var(--dm-line);
  border-top: 3px solid var(--dm-red);
  border-radius: var(--dm-radius);
  overflow: hidden;
}
.dm-post-fig img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.dm-post-toc {
  margin: 0 0 32px;
  padding: 18px 22px;
  background: var(--dm-surface);
  border: 1px solid var(--dm-line);
  border-left: 3px solid var(--dm-red);
  border-radius: var(--dm-radius);
}
.dm-post-toc-t {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--dm-white);
}
.dm-post-toc ol {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dm-post-toc a {
  color: var(--dm-muted);
  font-size: 14.5px;
}
.dm-post-toc a:hover {
  color: var(--dm-red-hi);
}

.dm-post-body {
  font-size: 16px;
  line-height: 1.82;
  color: var(--dm-ink);
  word-break: keep-all;
}
.dm-post-body h2 {
  margin: 42px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--dm-line);
  font-family: var(--dm-font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400;
  color: var(--dm-white);
}
.dm-post-body h3 {
  margin: 26px 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--dm-red-hi);
}
.dm-post-body p {
  margin: 0 0 16px;
  color: var(--dm-muted);
}
.dm-post-body strong {
  color: var(--dm-white);
}
.dm-post-body ul,
.dm-post-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--dm-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dm-post-body blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  background: var(--dm-surface);
  border-left: 3px solid var(--dm-red);
  border-radius: 0 var(--dm-radius) var(--dm-radius) 0;
  color: var(--dm-white);
  font-size: 15px;
}
/* 표 가로 스크롤 상자 (공통 클래스) */
.tbl-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius);
  background: var(--dm-surface);
}

.dm-post-body .tbl-wrap {
  margin: 20px 0 24px;
}
.dm-post-body table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.dm-post-body th,
.dm-post-body td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--dm-line);
  text-align: left;
}
.dm-post-body thead th {
  background: #1d1d24;
  color: var(--dm-white);
  border-bottom: 2px solid var(--dm-red);
}
.dm-post-body td {
  color: var(--dm-muted);
}
.fig {
  margin: 24px 0;
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius);
  overflow: hidden;
  background: var(--dm-surface);
}
.fig figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--dm-dim);
  border-top: 1px solid var(--dm-line);
}

.dm-post-faq {
  margin: 46px 0 42px;
}
.dm-post-faq h2 {
  margin: 0 0 16px;
  font-family: var(--dm-font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--dm-white);
}
.dm-post-more {
  border-top: 1px solid var(--dm-line);
}
.dm-post-more .dm-guides-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- 404 ---------- */
.dm-lost {
  padding: 88px 0;
}
.dm-lost-box {
  max-width: 600px;
  padding: 40px 28px;
  background: var(--dm-surface);
  border: 1px solid var(--dm-line);
  border-top: 3px solid var(--dm-red);
  border-radius: var(--dm-radius);
  text-align: center;
}
.dm-lost-code {
  margin: 0 0 8px;
  font-family: var(--dm-font-display);
  font-size: 64px;
  line-height: 1;
  color: var(--dm-red);
}
.dm-lost-box h1 {
  margin: 0 0 12px;
  font-family: var(--dm-font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--dm-white);
}
.dm-lost-desc {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--dm-muted);
}
.dm-lost-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Footer ---------- */
.dm-ft {
  background: #0c0c0f;
  padding: 48px 0 28px;
}
.dm-ft-in {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--dm-line);
}
.dm-ft-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.dm-ft-mark strong {
  font-family: var(--dm-font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--dm-white);
}
.dm-ft-mark span {
  font-family: var(--dm-font-mono);
  font-size: 12px;
  color: var(--dm-red-hi);
}
.dm-ft-desc,
.dm-ft-note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--dm-dim);
}
.dm-ft-head {
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dm-white);
}
.dm-ft-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}
.dm-ft-links a {
  font-size: 13.5px;
  color: var(--dm-muted);
}
.dm-ft-mail {
  margin: 0 0 8px;
  font-family: var(--dm-font-mono);
  font-size: 13.5px;
}
.dm-ft-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  flex-wrap: wrap;
}
.dm-ft-copy {
  margin: 0;
  font-size: 13px;
  color: var(--dm-dim);
}
.dm-top-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--dm-line-hi);
  border-radius: 4px;
  color: var(--dm-white);
  font-size: 13px;
  font-weight: 600;
}
.dm-top-btn:hover {
  border-color: var(--dm-red-hi);
  text-decoration: none;
}

/* ---------- Hero (H10 타이포 중심) ---------- */
.dm-hero {
  position: relative;
  padding: 72px 0 60px;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(225, 29, 72, 0.22), transparent 55%),
    var(--dm-bg);
  border-bottom: 1px solid var(--dm-line);
  overflow: hidden;
}
.dm-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 320px;
  height: 320px;
  border: 46px solid rgba(225, 29, 72, 0.08);
  border-radius: 48px;
  transform: rotate(18deg);
  pointer-events: none;
}
.dm-badge {
  display: inline-block;
  margin: 0 0 18px;
  padding: 4px 11px;
  border: 1px solid rgba(251, 113, 133, 0.45);
  background: rgba(225, 29, 72, 0.14);
  color: var(--dm-red-hi);
  font-family: var(--dm-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 3px;
}
.dm-hero-h {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 0 22px;
  font-family: var(--dm-font-display);
  font-size: clamp(40px, 7.4vw, 88px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--dm-white);
}
.dm-hl {
  display: block;
  color: var(--dm-red);
}
.dm-hero-lead {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 0 26px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--dm-muted);
}
.dm-facts {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  max-width: 720px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--dm-line-hi);
  border-bottom: 1px solid var(--dm-line-hi);
}
.dm-facts li {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  padding: 14px 18px 14px 0;
}
.dm-facts li + li {
  padding-left: 18px;
  border-left: 1px solid var(--dm-line-hi);
}
.dm-facts strong {
  font-family: var(--dm-font-display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--dm-white);
}
.dm-facts span {
  font-size: 13.5px;
  color: var(--dm-dim);
}
.dm-hero-act {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.dm-cta,
.dm-cta-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--dm-radius);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.dm-cta {
  background: var(--dm-red-btn);
  color: #ffffff;
  border: 1px solid var(--dm-red);
}
.dm-cta:hover {
  background: var(--dm-red-btn-hover);
  text-decoration: none;
}
.dm-cta-sub {
  background: var(--dm-surface);
  color: var(--dm-white);
  border: 1px solid var(--dm-line-hi);
}
.dm-cta-sub:hover {
  background: var(--dm-surface-2);
  border-color: var(--dm-red-hi);
  text-decoration: none;
}

/* ---------- S12 게임 카테고리 탭 ---------- */
.dm-tab-bar {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 2px solid var(--dm-line-hi);
}
.dm-tabs:not(.is-ready) .dm-tab-bar {
  display: none;
}
.dm-tab {
  flex: none;
  min-height: 46px;
  margin-bottom: -2px;
  padding: 0 20px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--dm-muted);
  font: 700 15px/1 var(--dm-font-body);
  cursor: pointer;
}
.dm-tab[aria-selected="true"] {
  color: var(--dm-white);
  border-bottom-color: var(--dm-red);
}
.dm-tab:hover {
  color: var(--dm-white);
}
.dm-panel {
  padding: 26px 28px;
  background: var(--dm-surface);
  border: 1px solid var(--dm-line);
  border-top: 0;
}
.dm-tabs:not(.is-ready) .dm-panel + .dm-panel {
  margin-top: 14px;
  border-top: 1px solid var(--dm-line);
}
.dm-panel h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--dm-white);
}
.dm-panel > p {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--dm-muted);
}
.dm-panel-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dm-panel-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--dm-ink);
}
.dm-panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--dm-red);
  transform: rotate(45deg);
}

/* ---------- S11 콤프 적립률 차트 ---------- */
.dm-rate-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}
.dm-rate-chart {
  margin: 0;
  padding: 22px 22px 16px;
  background: var(--dm-surface);
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius);
}
.dm-rate-chart svg {
  display: block;
  width: 100%;
  height: auto;
}
.dm-rate-grid-line {
  stroke: var(--dm-line-hi);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.dm-rate-axis {
  fill: var(--dm-dim);
  font-size: 12px;
  font-family: var(--dm-font-mono);
}
.dm-rate-label {
  fill: var(--dm-muted);
  font-size: 14px;
  font-weight: 700;
}
.dm-rate-bar {
  fill: #5b5b6b;
}
.dm-rate-bar-vip {
  fill: var(--dm-red);
}
.dm-rate-val {
  fill: var(--dm-white);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--dm-font-mono);
}
.dm-rate-chart figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--dm-dim);
}
.dm-rate-ex {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dm-rate-ex li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-left: 3px solid var(--dm-red);
  background: var(--dm-surface);
}
.dm-rate-ex span {
  font-size: 13.5px;
  color: var(--dm-dim);
}
.dm-rate-ex strong {
  font-size: 16px;
  color: var(--dm-white);
}

/* ---------- S23 비포·애프터 ---------- */
.dm-ba-list {
  display: grid;
  gap: 16px;
}
.dm-ba {
  padding: 20px 22px;
  background: var(--dm-surface);
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius);
}
.dm-ba h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 18px;
  color: var(--dm-white);
}
.dm-ba-no {
  font-family: var(--dm-font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--dm-red);
}
.dm-ba-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.dm-ba-cols p {
  margin: 0;
  padding: 14px 16px;
  font-size: 14.5px;
  line-height: 1.65;
  border-radius: 4px;
}
.dm-ba-bad {
  background: rgba(255, 255, 255, 0.03);
  color: var(--dm-dim);
  border: 1px dashed var(--dm-line-hi);
}
.dm-ba-good {
  background: rgba(225, 29, 72, 0.1);
  color: var(--dm-ink);
  border: 1px solid rgba(251, 113, 133, 0.4);
}
.dm-ba-tag {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.dm-ba-bad .dm-ba-tag {
  color: var(--dm-muted);
}
.dm-ba-good .dm-ba-tag {
  color: var(--dm-red-hi);
}

/* ---------- S08 규칙 퀴즈 ---------- */
.dm-quiz {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dm-quiz-item {
  padding: 20px;
  background: var(--dm-surface);
  border: 1px solid var(--dm-line);
  border-top: 3px solid var(--dm-red);
  border-radius: var(--dm-radius);
}
.dm-quiz-q {
  margin: 0 0 14px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--dm-white);
}
.dm-quiz-no {
  margin-right: 8px;
  font-family: var(--dm-font-display);
  font-weight: 400;
  color: var(--dm-red-hi);
}
.dm-quiz-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dm-quiz-opt {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--dm-line-hi);
  border-radius: 4px;
  background: var(--dm-bg);
  color: var(--dm-ink);
  font: 600 14.5px/1 var(--dm-font-body);
  cursor: pointer;
}
.dm-quiz-opt:hover:not(:disabled) {
  border-color: var(--dm-red-hi);
}
.dm-quiz-opt:disabled {
  cursor: default;
  opacity: 0.6;
}
.dm-quiz-opt.is-ans {
  opacity: 1;
  border-color: var(--dm-ok);
  color: var(--dm-ok);
}
.dm-quiz-opt.is-wrong {
  opacity: 1;
  border-color: var(--dm-red-hi);
  color: var(--dm-red-hi);
  text-decoration: line-through;
}
.dm-quiz-exp {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--dm-muted);
}
.dm-quiz-res {
  color: var(--dm-white);
}
.dm-quiz-score {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--dm-dim);
}

/* ---------- S24 용어 검색 ---------- */
.dm-find {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.dm-find-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.dm-find-q {
  flex: 1 1 260px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--dm-line-hi);
  border-radius: 4px;
  background: var(--dm-bg);
  color: var(--dm-white);
  font: 15px var(--dm-font-body);
}
.dm-find-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dm-find-cat {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--dm-line-hi);
  border-radius: 999px;
  background: transparent;
  color: var(--dm-muted);
  font: 600 14px/1 var(--dm-font-body);
  cursor: pointer;
}
.dm-find-cat.is-on {
  background: var(--dm-red-btn);
  border-color: var(--dm-red);
  color: #ffffff;
}
.dm-terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.dm-term {
  padding: 16px 18px;
  background: var(--dm-surface);
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius);
}
.dm-term[hidden] {
  display: none;
}
.dm-term dt {
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--dm-white);
}
.dm-term-cat {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  border: 1px solid var(--dm-line-hi);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dm-red-hi);
  vertical-align: 2px;
}
.dm-term dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--dm-muted);
}
.dm-find-none {
  margin: 16px 0 0;
  color: var(--dm-dim);
}

/* ---------- Responsive (Tablet & Mobile 390px) ---------- */
@media (max-width: 980px) {
  .dm-rate-grid,
  .dm-post-more .dm-guides-grid {
    grid-template-columns: 1fr;
  }
  .ad-slot.ad-grid .wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dm-nav-btn {
    display: flex;
  }
  .dm-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 20px 18px;
    background: #141418;
    border-bottom: 1px solid var(--dm-line-hi);
  }
  .dm-nav.is-open {
    display: flex;
  }
  .dm-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
  }
  .dm-hero {
    padding: 44px 0 40px;
  }
  .dm-hero::after {
    display: none;
  }
  .dm-facts strong {
    font-size: 28px;
  }
  .dm-sec {
    padding: 46px 0;
  }
  .dm-panel {
    padding: 20px 18px;
  }
  .dm-panel-list,
  .dm-ba-cols,
  .dm-quiz,
  .dm-terms,
  .dm-tier-grid,
  .dm-guides-grid,
  .dm-ft-in,
  .ad-slot.ad-grid .wrap {
    grid-template-columns: 1fr;
  }
  .dm-hero-act a {
    width: 100%;
  }
}
