:root {
  --bg: #f6faf4; --card: #ffffff; --mint: #e8f4e3; --mint2: #f1f8ee; --rule: #d3e5cc; --ink: #10230f; --text: #273826; --soft: #5a6b58;
  --green: #006719; --green2: #008f23; --deep: #004a12; --gold: #ffe900; --gold2: #fed304; --on-gold: #1d2a00; --cream: #fffbe0;
  --bank: #d0232a; --play: #1554c0; --tie: #138a3a;
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rad: 14px; --text-w: 720px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.8 var(--font); word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-color: var(--gold2); text-decoration-thickness: 3px; text-underline-offset: 3px; }
a:hover { color: var(--deep); }
.jd-skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.jd-skip:focus { left: 8px; }

/* top: green band with mark, demo button and the outbound pill; white menu row */
.jd-top { position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 10px rgba(0, 50, 10, .12); }
.jd-top__band { background: linear-gradient(180deg, var(--green2), var(--green)); }
.jd-top__band { display: flex; align-items: center; gap: 12px; padding: 10px max(18px, calc((100% - 1160px) / 2)); }
.jd-top__logo { text-decoration: none; }
.jd-top__logo img, .jd-word { display: block; }
.jd-word { color: var(--gold); font-size: 22px; font-weight: 900; font-style: italic; letter-spacing: -.02em; }
.jd-top__acts { margin-left: auto; display: flex; gap: 8px; }
.jd-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 20px; border-radius: 99px; background: linear-gradient(180deg, var(--gold), var(--gold2)); color: var(--on-gold); font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.jd-pill:hover { color: var(--on-gold); filter: brightness(1.04); }
.jd-pill--line { background: var(--cream); color: var(--green); box-shadow: none; }
.jd-pill--line:hover { color: var(--deep); }
.jd-pill--big { min-height: 54px; padding: 0 34px; font-size: 17px; }
.jd-burger { display: none; width: 42px; height: 40px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .14); cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.jd-burger span { display: block; height: 2px; background: #fff; border-radius: 2px; }
.jd-burger i { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.jd-nav { background: var(--card); border-bottom: 1px solid var(--rule); }
.jd-nav__list { list-style: none; margin: 0 auto; max-width: 1160px; padding: 0 10px; display: flex; flex-wrap: wrap; }
.jd-nav__list a { display: block; padding: 11px 14px; color: var(--ink); text-decoration: none; font-size: 15.5px; font-weight: 700; position: relative; }
.jd-nav__list a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.jd-nav__list a:hover::after, .jd-nav__list .is-here a::after { background: var(--green); }

/* page head */
.jd-head { max-width: 1046px; margin: 0 auto; padding: 34px 18px 4px; }
.jd-head--front { padding-top: 26px; }
.jd-h1 { max-width: 880px; font-size: clamp(29px, 4.2vw, 44px); line-height: 1.28; margin: 0 0 10px; color: var(--ink); font-weight: 900; letter-spacing: -.025em; }
.jd-by { margin: 0 0 16px; font-size: 14px; color: var(--soft); }
.jd-by a { color: var(--green); font-weight: 800; text-decoration: none; }
.jd-head__lead p { max-width: 820px; font-size: 19px; line-height: 1.75; color: var(--ink); margin: 0 0 18px; }
.jd-head__pic { margin-top: 20px; }
.jd-head__pic img { border-radius: var(--rad); }
.jd-lost { padding-bottom: 100px; }

/* front desk of sections */
.jd-desk { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 8px 0 6px; }
.jd-desk__card { display: grid; gap: 1px; align-content: start; padding: 14px 12px; background: var(--card); border: 1px solid var(--rule); border-bottom: 3px solid var(--green); border-radius: 12px; text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s; }
.jd-desk__card:hover { transform: translateY(-2px); border-bottom-color: var(--gold2); color: var(--ink); }
.jd-desk__card svg { width: 28px; height: 28px; fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.jd-desk__card b { font-size: 15.5px; line-height: 1.35; }
.jd-desk__card span { font-size: 13px; line-height: 1.4; color: var(--soft); }

/* banner reel */
.jd-reel { max-width: 1160px; margin: 20px auto 0; padding: 0 18px; }
.jd-reel__rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; }
.jd-reel__rail::-webkit-scrollbar { display: none; }
.jd-reel__slide { flex: 0 0 100%; scroll-snap-align: start; display: block; }
.jd-reel__slide img { width: 100%; border-radius: 18px; }
.jd-reel__dots { display: flex; justify-content: center; gap: 7px; margin-top: 10px; }
.jd-reel__dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; padding: 0; background: var(--rule); cursor: pointer; transition: width .2s; }
.jd-reel__dots button[aria-current] { width: 28px; background: var(--green); }

/* body: section rail beside the text */
.jd-body { max-width: 1160px; margin: 0 auto; padding: 16px 18px 70px; }
.jd-body--rail { display: grid; grid-template-columns: 250px minmax(0, var(--text-w)); gap: 40px; justify-content: center; }
.jd-body:not(.jd-body--rail) .jd-text { max-width: var(--text-w); margin: 0 auto; }
.jd-body__side { position: relative; }
.jd-rail { position: sticky; top: 130px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--rad); padding: 6px 16px 12px; }
.jd-rail summary { cursor: pointer; padding: 8px 0; font-size: 14px; font-weight: 900; color: var(--green); }
.jd-rail ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.jd-rail li { counter-increment: s; margin: 2px 0; font-size: 14.5px; line-height: 1.45; display: flex; gap: 8px; }
.jd-rail li::before { content: counter(s, decimal-leading-zero); flex: none; white-space: nowrap; word-break: normal; color: var(--green2); font-weight: 800; font-size: 12.5px; padding-top: 2px; }
.jd-rail a { color: var(--text); text-decoration: none; }
.jd-rail a:hover { color: var(--green); }
.jd-text { background: var(--card); border: 1px solid var(--rule); border-radius: var(--rad); padding: 8px 34px 34px; }
.jd-text h2 { font-size: clamp(23px, 2.8vw, 29px); line-height: 1.38; margin: 46px 0 14px; color: var(--ink); font-weight: 900; letter-spacing: -.02em; padding-left: 14px; border-left: 5px solid var(--green); }
.jd-text h3 { font-size: 20.5px; line-height: 1.45; margin: 30px 0 10px; color: var(--green); }
.jd-text h4 { font-size: 18px; margin: 22px 0 8px; color: var(--ink); }
.jd-text strong, .jd-text b { color: var(--ink); }
.jd-text ul, .jd-text ol { padding-left: 22px; }
.jd-text li { margin: 6px 0; }
.jd-text li::marker { color: var(--green2); font-weight: 800; }

/* tables */
.jd-grid { margin: 24px 0; }
.jd-grid__x { overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; }
.jd-grid table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.jd-grid th { background: var(--green); color: #fff; text-align: left; padding: 11px 14px; font-size: 14px; }
.jd-grid td { padding: 11px 14px; border-top: 1px solid var(--rule); vertical-align: top; }
.jd-grid tr:nth-child(even) td { background: var(--mint2); }

/* components */
.jd-tip { margin: 24px 0; padding: 14px 18px; background: var(--cream); border: 1px solid #f1e28a; border-radius: 12px; }
.jd-tip p { margin: 0; }
.jd-tip__tag { font-weight: 900; color: var(--deep); }
.jd-sheet { margin: 24px 0; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--mint2); }
.jd-sheet table { width: 100%; border-collapse: collapse; }
.jd-sheet th, .jd-sheet td { padding: 10px 16px; text-align: left; border-top: 1px solid var(--rule); font-size: 15.5px; }
.jd-sheet thead th { border-top: 0; background: var(--mint); font-size: 13px; color: var(--soft); }
.jd-sheet td:first-child { color: var(--soft); width: 40%; }
.jd-sheet td:last-child { color: var(--ink); font-weight: 800; }
.jd-sheet dl { margin: 0; display: grid; grid-template-columns: minmax(0, 40%) 1fr; }
.jd-sheet dt, .jd-sheet dd { margin: 0; padding: 10px 16px; border-top: 1px solid var(--rule); }
.jd-sheet dt { color: var(--soft); } .jd-sheet dd { color: var(--ink); font-weight: 800; }
.jd-steps { margin: 26px 0; padding: 0; list-style: none; counter-reset: st; }
.jd-steps li { counter-increment: st; position: relative; margin: 0 0 14px; padding: 2px 0 0 48px; min-height: 34px; }
.jd-steps li::before { content: counter(st); position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: 99px; background: var(--green); color: var(--gold); font-weight: 900; font-size: 15px; display: grid; place-items: center; }
.jd-vs { margin: 26px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jd-vs__side { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--rule); }
.jd-vs__a { background: var(--mint2); }
.jd-vs__b { background: var(--card); border-color: var(--green); }
.jd-vs__tag { display: block; font-size: 12.5px; font-weight: 900; letter-spacing: .03em; color: var(--soft); margin-bottom: 6px; }
.jd-vs__b .jd-vs__tag { color: var(--green); }
.jd-vs p { margin: 0; }
.jd-pic { margin: 30px 0; }
.jd-pic img { border-radius: 12px; }
.jd-pic__cap, .jd-pic figcaption { font-size: 14px; line-height: 1.55; color: var(--soft); margin-top: 8px; text-align: center; }
.jd-go { margin: 34px 0; padding: 22px; display: flex; justify-content: center; background: linear-gradient(135deg, var(--green), var(--deep)); border-radius: var(--rad); }

/* FAQ */
.jd-faq { margin-top: 46px; }
.jd-faq__q { border: 1px solid var(--rule); border-radius: 12px; margin: 8px 0; background: var(--mint2); }
.jd-faq__q summary { cursor: pointer; padding: 13px 44px 13px 16px; font-weight: 800; color: var(--ink); list-style: none; position: relative; }
.jd-faq__q summary::-webkit-details-marker { display: none; }
.jd-faq__q summary::after { content: ""; position: absolute; right: 18px; top: 20px; width: 9px; height: 9px; border-right: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(45deg); transition: transform .15s; }
.jd-faq__q[open] summary::after { transform: rotate(-135deg); top: 24px; }
.jd-faq__a { padding: 0 16px 10px; }

/* demo tiles */
.jd-slots { margin: 22px 0 30px; }
.jd-slots__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.jd-slot { display: grid; gap: 2px; padding: 0 0 10px; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); overflow: hidden; cursor: pointer; text-align: left; font: inherit; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.jd-slot:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 60, 15, .14); }
.jd-slot img { width: 100%; aspect-ratio: 300 / 207; object-fit: cover; margin-bottom: 6px; }
.jd-slot b { padding: 0 10px; font-size: 14.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jd-slot span { padding: 0 10px; font-size: 12.5px; color: var(--soft); }
.jd-slot--more { display: none; }
.jd-slots--all .jd-slot--more { display: grid; }
.jd-slots__all { display: block; margin: 12px auto 0; min-height: 42px; padding: 0 22px; border: 2px solid var(--green); border-radius: 99px; background: var(--card); color: var(--green); font: 800 15px var(--font); cursor: pointer; }
.jd-slots__note { font-size: 13.5px; color: var(--soft); text-align: center; margin: 10px 0 0; }
.jd-play { width: min(1000px, 96vw); height: min(640px, 88vh); padding: 0; border: 0; border-radius: 16px; background: #000; overflow: hidden; }
.jd-play[open] { display: flex; flex-direction: column; }
.jd-play::backdrop { background: rgba(0, 20, 5, .78); }
.jd-play__bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; background: var(--green); color: #fff; }
.jd-play__bar b { margin-right: auto; font-size: 15px; }
.jd-play__bar .jd-pill { min-height: 34px; font-size: 14px; }
.jd-play__x { width: 34px; height: 34px; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.jd-play iframe { flex: 1; width: 100%; border: 0; }

/* baccarat road reader */
.jd-road { --cell: 26px; margin: 24px 0 30px; padding: 18px; border: 1px solid var(--rule); border-radius: var(--rad); background: var(--mint2); }
.jd-road__keys { display: flex; flex-wrap: wrap; gap: 8px; }
.jd-road__keys button { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 0; font: 800 15px var(--font); cursor: pointer; color: #fff; }
.jd-road__b { background: var(--bank); } .jd-road__p { background: var(--play); } .jd-road__t { background: var(--tie); }
.jd-road__op { background: var(--card) !important; color: var(--ink) !important; border: 1px solid var(--rule) !important; font-weight: 700 !important; }
.jd-road__sum { margin: 12px 0 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
.jd-road__boards { display: grid; gap: 12px; }
.jd-road__boards figure { margin: 0; }
.jd-road__boards figcaption { font-size: 13.5px; font-weight: 800; color: var(--green); margin-bottom: 5px; }
.jd-road__bead, .jd-road__big, .jd-road__eye { display: grid; grid-template-rows: repeat(6, var(--cell)); grid-auto-flow: column; overflow-x: auto; background-color: #fff; background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: var(--cell) var(--cell); border: 1px solid var(--rule); border-radius: 8px; }
.jd-road__eye { --cell: 18px; }
.jd-dot { position: relative; margin: 3px; border-radius: 99px; border: 3px solid; display: grid; place-items: center; font-size: 10px; font-weight: 900; color: #fff; }
.jd-dot--B { border-color: var(--bank); } .jd-dot--P { border-color: var(--play); }
.jd-dot--R { border-color: var(--bank); border-width: 2px; } .jd-dot--U { border-color: var(--play); border-width: 2px; }
.jd-dot--fill.jd-dot--B { background: var(--bank); } .jd-dot--fill.jd-dot--P { background: var(--play); } .jd-dot--T { border-color: var(--tie); } .jd-dot--fill.jd-dot--T { background: var(--tie); }
.jd-dot i { position: absolute; inset: 0; font-style: normal; font-size: 9px; color: var(--tie); display: grid; place-items: center; }
.jd-dot i::before { content: ""; position: absolute; width: 140%; height: 2px; background: var(--tie); transform: rotate(-45deg); }
.jd-road__note { margin: 12px 0 0; font-size: 13.5px; color: var(--soft); }

/* footer */
.jd-foot { background: var(--deep); color: #cfe2c9; }
.jd-foot__grid { max-width: 1160px; margin: 0 auto; padding: 38px 18px 18px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 30px; }
.jd-foot__mark p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.65; }
.jd-foot__links { display: grid; gap: 14px; align-content: start; }
.jd-foot__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.jd-foot__list a { color: #fff; text-decoration: none; font-size: 15px; }
.jd-foot__list--fine a { color: #a9c9a1; font-size: 14px; }
.jd-foot__age { max-width: 1160px; margin: 0 auto; padding: 14px 18px 30px; font-size: 13px; border-top: 1px solid rgba(255, 255, 255, .14); }
.jd-foot__age b { display: inline-block; color: var(--on-gold); background: var(--gold); border-radius: 5px; padding: 0 6px; margin-right: 6px; }

@media (max-width: 1000px) {
  .jd-body--rail { display: block; }
  .jd-rail { position: static; margin-bottom: 12px; }
  .jd-desk { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .jd-burger { display: flex; }
  .jd-nav { display: none; }
  .jd-open .jd-nav { display: block; }
  .jd-nav__list { flex-direction: column; padding: 4px 8px 10px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .jd-top__band { flex-wrap: wrap; gap: 8px; padding: 8px 14px; }
  .jd-top__logo img { width: 128px; height: auto; }
  .jd-top__acts { order: 3; width: 100%; margin: 0; }
  .jd-top__acts .jd-pill { flex: 1; min-height: 38px; padding: 0 10px; font-size: 14px; }
  .jd-burger { margin-left: auto; }
  .jd-head, .jd-body, .jd-reel { padding-left: 16px; padding-right: 16px; }
  .jd-text { padding: 4px 16px 24px; border-radius: 12px; }
  .jd-desk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jd-slots__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jd-vs, .jd-foot__grid { grid-template-columns: 1fr; }
  .jd-pill--big { width: 100%; }
  .jd-road { padding: 12px; --cell: 22px; }
  .jd-road__keys button { flex: 1 1 30%; padding: 0 8px; }
  .jd-grid--stack table, .jd-grid--stack tbody, .jd-grid--stack tr, .jd-grid--stack td { display: block; width: 100%; }
  .jd-grid--stack thead { display: none; }
  .jd-grid--stack tr { border-top: 1px solid var(--rule); padding: 6px 0; }
  .jd-grid--stack td { border: 0; padding: 4px 14px; background: none !important; }
  .jd-grid--stack td::before { content: attr(data-k); display: block; font-size: 12px; color: var(--soft); }
}
