/* ============================================================
   KCASINO — project5 NEW light design (kentguide.net)
   Palette: slate #0f172a · orange #f97316 · teal #0d9488 · paper #fafaf7
   ============================================================ */
:root {
  --bg: #fafaf7;
  --bg-2: #f1f0ea;
  --surface: #ffffff;
  --surface-2: #f6f5f0;
  --line: #e6e3da;
  --line-strong: #d8d4c8;
  --text: #1f2328;
  --text-soft: #47505a;
  --muted: #6b7280;
  --ink: #0f172a;
  --accent: #f97316;
  --accent-2: #ea580c;
  --teal: #0d9488;
  --teal-2: #0f766e;
  --rose: #e11d48;
  --max: 1200px;
  --narrow: 760px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.05);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0 0 1rem; }
code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.9em; padding: 0.1em 0.35em; border-radius: 4px; background: #fff1e6; color: var(--accent-2); }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.container--narrow { width: min(100% - 2rem, var(--narrow)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0.5rem; z-index: 200; padding: 0.5rem 1rem; background: var(--accent); color: #fff; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 0.5rem; }

/* topbar */
.topbar {
  background: var(--ink);
  color: #e2e8f0;
  font-size: 0.78rem;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; flex-wrap: wrap; }
.topbar .age-badge { display: inline-block; padding: 0.1rem 0.45rem; margin-right: 0.4rem; border-radius: 4px; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.72rem; }
.topbar-links { display: flex; gap: 0.6rem; align-items: center; }
.topbar-links a { color: #cbd5e1; }
.topbar-links a:hover { color: #fff; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,247,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--ink); color: var(--accent);
  display: grid; place-items: center; font-weight: 900; font-size: 1.05rem;
  box-shadow: 0 6px 14px rgba(15,23,42,0.18);
}
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name span { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.main-nav { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.main-nav a { padding: 0.45rem 0.7rem; border-radius: 8px; font-size: 0.92rem; font-weight: 600; color: var(--text-soft); }
.main-nav a:hover { background: var(--bg-2); color: var(--ink); }
.main-nav .cta { background: var(--accent); color: #fff; }
.main-nav .cta:hover { background: var(--accent-2); color: #fff; }
.menu-toggle { display: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; transition: 0.2s; }
.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(4px); }

/* hero */
.hero { padding: 3.5rem 0 2rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 1.05rem; color: var(--text-soft); margin-top: 1.2rem; max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.75rem 1.25rem; border-radius: 10px; font-weight: 700; font-size: 0.95rem;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(249,115,22,0.28); }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--bg-2); }
.btn--sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
.btn--lg { padding: 0.9rem 1.5rem; font-size: 1rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.hero-facts li { padding: 0.35rem 0.7rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.82rem; font-weight: 600; color: var(--text-soft); }
.hero-note { font-size: 0.85rem; color: var(--muted); margin-top: 1.2rem; max-width: 60ch; }
.hero-visual { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; box-shadow: var(--shadow); }
.verify-card { display: grid; gap: 0.8rem; }
.verify-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px dashed var(--line); }
.verify-row:last-child { border-bottom: 0; }
.verify-row dt { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.verify-row dd { font-weight: 700; color: var(--ink); text-align: right; }
.verify-badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.7rem; border-radius: 999px; background: #fff1e6; color: var(--accent-2); font-weight: 700; font-size: 0.8rem; }

/* trust strip */
.trust-strip { background: var(--ink); color: #e2e8f0; padding: 1.2rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.trust-item { display: flex; flex-direction: column; gap: 0.15rem; }
.trust-k { font-size: 0.72rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.trust-v { font-weight: 700; font-size: 0.95rem; }

/* sections */
.section { padding: 4rem 0; }
.section--alt { background: var(--bg-2); }
.section-head { margin-bottom: 2rem; max-width: 720px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 0.6rem; }
.section-head h2 em { font-style: normal; color: var(--accent); }
.section-head p { color: var(--text-soft); }
.section-head--split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; max-width: none; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-soft); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card__k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.6rem; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card p { color: var(--text-soft); font-size: 0.95rem; }
.card ul { margin-top: 0.6rem; display: grid; gap: 0.35rem; }
.card ul li { font-size: 0.9rem; color: var(--text-soft); padding-left: 1rem; position: relative; }
.card ul li::before { content: "•"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* check grid */
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.check-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: relative; overflow: hidden; }
.check-card__n { font-size: 2.4rem; font-weight: 900; color: #fde6d5; line-height: 1; margin-bottom: 0.6rem; }
.check-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.check-card p { color: var(--text-soft); font-size: 0.92rem; }

/* game grid */
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.game-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.game-card__tag { display: inline-block; padding: 0.2rem 0.55rem; border-radius: 6px; background: var(--bg-2); font-size: 0.72rem; font-weight: 700; color: var(--muted); margin-bottom: 0.6rem; }
.game-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.game-card p { color: var(--text-soft); font-size: 0.9rem; }

/* payments */
.process { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; }
.process h3 { margin-bottom: 1rem; }
.process ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: none; }
.process ol li { display: grid; gap: 0.3rem; }
.process ol li span { font-size: 0.72rem; font-weight: 800; color: var(--accent); letter-spacing: 0.1em; }
.process ol li strong { font-size: 1rem; color: var(--ink); }
.process ol li p { font-size: 0.85rem; color: var(--text-soft); margin: 0; }
.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; }
.limit-rows { display: grid; gap: 0.7rem; }
.limit-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px dashed var(--line); }
.limit-row:last-child { border-bottom: 0; }
.limit-row span { color: var(--text-soft); font-size: 0.9rem; }
.limit-row strong { color: var(--ink); font-size: 0.9rem; }

/* domain box */
.domain-box { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center; background: linear-gradient(135deg, #fff1e6, #fff); border: 1px solid #fcd9bd; border-radius: var(--radius-lg); padding: 2rem; }
.domain-tips { display: grid; gap: 0.9rem; }
.domain-tips li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1rem; }
.domain-tips li strong { display: block; color: var(--ink); font-size: 0.92rem; margin-bottom: 0.2rem; }
.domain-tips li span { color: var(--text-soft); font-size: 0.88rem; }

/* license */
.license { display: grid; grid-template-columns: 1fr 0.9fr; gap: 2rem; align-items: start; }
.verify-list { display: grid; gap: 0.9rem; margin-top: 1.2rem; }
.verify-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.verify-list li span { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; }
.verify-list li div strong { display: block; color: var(--ink); margin-bottom: 0.2rem; }
.verify-list li div p { color: var(--text-soft); font-size: 0.9rem; margin: 0; }
.license-card { background: var(--ink); color: #e2e8f0; border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow); }
.license-card__kicker { font-size: 0.72rem; letter-spacing: 0.12em; color: var(--accent); font-weight: 700; }
.license-card__mark { font-size: 2rem; font-weight: 900; color: #fff; margin: 0.4rem 0 1rem; }
.license-card__mark span { color: var(--accent); }
.license-card dl { display: grid; gap: 0.6rem; }
.license-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.license-card dl div:last-child { border-bottom: 0; }
.license-card dt { font-size: 0.82rem; color: #94a3b8; }
.license-card dd { font-weight: 700; color: #fff; text-align: right; font-size: 0.9rem; }
.license-card__note { font-size: 0.78rem; color: #94a3b8; margin-top: 1rem; }

/* responsible */
.signal-list { display: grid; gap: 0.7rem; }
.signal-list li { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.signal-list li span { flex: 0 0 28px; height: 28px; border-radius: 50%; background: #fee2e2; color: var(--rose); display: grid; place-items: center; font-weight: 800; font-size: 0.75rem; }
.signal-list li p { margin: 0; color: var(--text-soft); font-size: 0.92rem; }
.self-check { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; }
.self-check h3 { margin-bottom: 0.4rem; }
.self-check__list { display: grid; gap: 0.5rem; margin-top: 0.8rem; }
.self-check__list li label { display: flex; gap: 0.6rem; align-items: flex-start; cursor: pointer; font-size: 0.92rem; color: var(--text-soft); }
.self-check__list input { margin-top: 0.25rem; accent-color: var(--accent); }
.self-check__result { margin-top: 1rem; padding: 0.8rem 1rem; border-radius: var(--radius); background: var(--bg-2); font-size: 0.9rem; font-weight: 600; color: var(--ink); }

/* blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.post-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card__visual { padding: 1.6rem; background: linear-gradient(135deg, var(--ink), #1e293b); color: #fff; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.3rem; }
.post-card__visual span { font-size: 0.72rem; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; }
.post-card__visual strong { font-size: 1.25rem; line-height: 1.25; }
.post-card__visual em { font-style: normal; color: var(--accent); }
.post-card__body { padding: 1.2rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.6rem; }
.post-meta span + span::before { content: "·"; margin-right: 0.5rem; color: var(--line-strong); }
.post-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.post-card p { color: var(--text-soft); font-size: 0.9rem; }
.post-card__more { display: inline-block; margin-top: 0.6rem; font-weight: 700; color: var(--accent); font-size: 0.9rem; }

/* faq */
.faq-list { display: grid; gap: 0.8rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { padding: 1rem 1.2rem; cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 1.2rem 1rem; color: var(--text-soft); margin: 0; }

/* final cta */
.final-cta { background: var(--ink); color: #e2e8f0; padding: 3.5rem 0; }
.final-cta__inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center; }
.final-cta h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.final-cta h2 em { font-style: normal; color: var(--accent); }
.final-cta p { color: #cbd5e1; }
.final-cta__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: flex-end; }

/* footer */
.site-footer { background: #0b1220; color: #cbd5e1; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-brand .brand-name span { color: #94a3b8; }
.footer-brand p { color: #94a3b8; font-size: 0.9rem; margin-top: 0.8rem; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.footer-badges span { padding: 0.25rem 0.6rem; border-radius: 6px; background: rgba(255,255,255,0.06); font-size: 0.75rem; color: #cbd5e1; }
.footer-col h3 { color: #fff; font-size: 0.95rem; margin-bottom: 0.8rem; }
.footer-col ul { display: grid; gap: 0.4rem; }
.footer-col a { color: #94a3b8; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-col dl { display: grid; gap: 0.4rem; }
.footer-col dl div { display: flex; justify-content: space-between; gap: 1rem; }
.footer-col dt { color: #64748b; font-size: 0.82rem; }
.footer-col dd { color: #cbd5e1; font-size: 0.85rem; text-align: right; }
.footer-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.8rem; color: #64748b; display: grid; gap: 0.4rem; }
.footer-bottom a { color: #94a3b8; }

/* reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* responsive */
@media (max-width: 900px) {
  .hero-grid, .section-head--split, .license, .domain-box, .limits, .final-cta__inner { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4, .game-grid, .check-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .process ol { grid-template-columns: repeat(2, 1fr); }
  .final-cta__actions { justify-content: flex-start; }
  .menu-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 1rem; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav .cta { text-align: center; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4, .game-grid, .check-grid, .blog-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .process ol { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 2.5rem; }
}