:root {
  --bg: #191919; --panel: #212325; --panel2: #2a2d31; --line: #363a40; --ink: #f5f7f9; --text: #d0d5db; --soft: #949ba3;
  --green: #3cda11; --green2: #31a413; --on-green: #0c2600; --violet: #0d5aa6; --violet2: #094989; --amber: #ffd34d;
  --blue: #3b82ff; --blue2: #1b63cc; --navy: #094989;
  --win: #3cda11; --lose: #ff5d6c; --push: #ffd34d;
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rad: 12px; --text-w: 740px;
}
*, *::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: #6ea4ff; text-decoration-color: rgba(59, 130, 255, .5); text-decoration-thickness: 3px; text-underline-offset: 3px; }
a:hover { color: #a9c8ff; }
.yb-skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: var(--on-green); padding: 8px 14px; border-radius: 8px; z-index: 99; }
.yb-skip:focus { left: 8px; }

/* bar: wordmark, menu and the login / join pair on one navy row; warning ticker under it */
.yb-bar { position: sticky; top: 0; z-index: 40; background: rgba(20, 20, 20, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.yb-bar__row { display: flex; align-items: center; gap: 18px; max-width: 1240px; margin: 0 auto; padding: 10px 20px; }
.yb-bar__mark { flex: none; text-decoration: none; }
.yb-bar__mark img, .yb-word { display: block; }
.yb-word { color: var(--ink); font-size: 24px; font-weight: 900; letter-spacing: -.01em; }
.yb-word { color: var(--blue); }
.yb-word i { font-style: normal; color: var(--green); }
.yb-nav { flex: 1; min-width: 0; }
.yb-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.yb-nav__list a { display: block; padding: 8px 11px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 700; }
.yb-nav__list a:hover { color: var(--ink); background: var(--panel2); }
.yb-nav__list .is-here a { color: var(--ink); box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.yb-bar__acts { flex: none; display: flex; gap: 8px; }
.yb-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border-radius: 8px; background: linear-gradient(180deg, var(--green), var(--green2)); color: var(--on-green); font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; }
.yb-pill:hover { color: var(--on-green); filter: brightness(1.06); }
.yb-pill--calc { background: transparent; border: 2px solid var(--blue); color: #fff; }
.yb-pill--calc:hover { color: #fff; background: rgba(59, 130, 255, .14); }
.yb-pill--big { min-height: 54px; padding: 0 34px; font-size: 17px; }
.yb-burger { display: none; width: 42px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.yb-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.yb-burger i { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.yb-ticker { margin: 0; padding: 7px 20px; display: flex; justify-content: center; align-items: center; gap: 8px; background: var(--navy); border-top: 0; color: #fff; font-size: 13.5px; font-weight: 700; line-height: 1.5; text-align: center; }
.yb-ticker svg { flex: none; width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }

/* page head */
.yb-head { max-width: 1086px; margin: 0 auto; padding: 36px 20px 4px; }
.yb-head--front { padding-top: 26px; }
.yb-h1 { max-width: 900px; font-size: clamp(29px, 4.2vw, 44px); line-height: 1.28; margin: 0 0 10px; color: var(--ink); font-weight: 900; letter-spacing: -.025em; }
.yb-by { margin: 0 0 18px; font-size: 14px; color: var(--soft); }
.yb-by span:first-child { color: var(--green); font-weight: 800; }
.yb-head__lead p { max-width: 840px; font-size: 19px; line-height: 1.75; color: var(--ink); margin: 0 0 18px; }
.yb-head__pic { margin-top: 20px; }
.yb-head__pic img { border-radius: var(--rad); }

/* front match board */
.yb-board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 10px 0 6px; }
.yb-board__card { position: relative; display: grid; gap: 2px; align-content: start; padding: 16px 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s; }
.yb-board__card:hover { border-color: var(--green); background: var(--panel2); color: var(--ink); }
.yb-board__card em { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 11px; font-weight: 800; color: var(--on-green); background: var(--green); border-radius: 4px; padding: 0 5px; }
.yb-board__card svg { width: 28px; height: 28px; fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.yb-board__card b { font-size: 15.5px; line-height: 1.35; }
.yb-board__card span { font-size: 13px; line-height: 1.4; color: var(--soft); }

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

/* body: section rail beside the text */
.yb-body { max-width: 1240px; margin: 0 auto; padding: 16px 18px 70px; }
.yb-body--rail { display: grid; grid-template-columns: 250px minmax(0, var(--text-w)); gap: 40px; justify-content: center; }
.yb-body:not(.yb-body--rail) .yb-text { max-width: var(--text-w); margin: 0 auto; }
.yb-body__side { position: relative; }
.yb-rail { position: sticky; top: 130px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad); padding: 6px 16px 12px; }
.yb-rail summary { cursor: pointer; padding: 8px 0; font-size: 14px; font-weight: 900; color: var(--green); }
.yb-rail ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.yb-rail li { counter-increment: s; margin: 2px 0; font-size: 14.5px; line-height: 1.45; display: flex; gap: 8px; }
.yb-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; }
.yb-rail a { color: var(--text); text-decoration: none; }
.yb-rail a:hover { color: var(--green); }
.yb-text { padding: 0 0 30px; }
.yb-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; border-left: 0; }
.yb-text h3 { font-size: 20.5px; line-height: 1.45; margin: 30px 0 10px; color: var(--green); }
.yb-text h2::before { content: ""; display: block; width: 42px; height: 4px; border-radius: 4px; background: var(--green); margin-bottom: 12px; }
.yb-text h4 { font-size: 18px; margin: 22px 0 8px; color: var(--ink); }
.yb-text strong, .yb-text b { color: var(--ink); }
.yb-text ul, .yb-text ol { padding-left: 22px; }
.yb-text li { margin: 6px 0; }
.yb-text li::marker { color: var(--green2); font-weight: 800; }

/* tables */
.yb-grid { margin: 24px 0; }
.yb-grid__x { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.yb-grid table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.yb-grid th { background: var(--panel2); color: var(--green); text-align: left; padding: 11px 14px; font-size: 14px; }
.yb-grid td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.yb-grid tr:nth-child(even) td { background: rgba(255, 255, 255, .025); }

/* components */
.yb-tip { margin: 24px 0; padding: 14px 18px; background: rgba(255, 200, 74, .08); border: 1px solid rgba(255, 200, 74, .35); border-radius: 10px; }
.yb-tip p { margin: 0; }
.yb-tip__tag { font-weight: 900; color: var(--amber); }
.yb-sheet { margin: 24px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.yb-sheet table { width: 100%; border-collapse: collapse; }
.yb-sheet th, .yb-sheet td { padding: 10px 16px; text-align: left; border-top: 1px solid var(--line); font-size: 15.5px; }
.yb-sheet thead th { border-top: 0; background: var(--panel2); font-size: 13px; color: var(--soft); }
.yb-sheet td:first-child { color: var(--soft); width: 40%; }
.yb-sheet td:last-child { color: var(--ink); font-weight: 800; }
.yb-sheet dl { margin: 0; display: grid; grid-template-columns: minmax(0, 40%) 1fr; }
.yb-sheet dt, .yb-sheet dd { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); }
.yb-sheet dt { color: var(--soft); } .yb-sheet dd { color: var(--ink); font-weight: 800; }
.yb-steps { margin: 26px 0; padding: 0; list-style: none; counter-reset: st; }
.yb-steps li { counter-increment: st; position: relative; margin: 0 0 14px; padding: 2px 0 0 48px; min-height: 34px; }
.yb-steps li::before { content: counter(st); position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: 8px; background: var(--green); color: var(--on-green); font-weight: 900; font-size: 15px; display: grid; place-items: center; }
.yb-vs { margin: 26px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yb-vs__side { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); }
.yb-vs__a { background: var(--panel); }
.yb-vs__b { background: var(--panel2); border-color: var(--green); }
.yb-vs__tag { display: block; font-size: 12.5px; font-weight: 900; letter-spacing: .03em; color: var(--soft); margin-bottom: 6px; }
.yb-vs__b .yb-vs__tag { color: var(--green); }
.yb-vs p { margin: 0; }
.yb-pic { margin: 30px 0; }
.yb-pic img { border-radius: 12px; }
.yb-pic__cap, .yb-pic figcaption { font-size: 14px; line-height: 1.55; color: var(--soft); margin-top: 8px; text-align: center; }
.yb-go { margin: 34px 0; padding: 24px; display: flex; justify-content: center; background: radial-gradient(120% 140% at 0% 0%, rgba(59, 130, 255, .35), transparent 60%), var(--panel2); border: 1px solid var(--line); border-radius: var(--rad); }

/* FAQ */
.yb-faq { margin-top: 46px; }
.yb-faq__q { border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; background: var(--panel); }
.yb-faq__q summary { cursor: pointer; padding: 13px 44px 13px 16px; font-weight: 800; color: var(--ink); list-style: none; position: relative; }
.yb-faq__q summary::-webkit-details-marker { display: none; }
.yb-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; }
.yb-faq__q[open] summary::after { transform: rotate(-135deg); top: 24px; }
.yb-faq__a { padding: 0 16px 10px; }

/* rolling calculator */
.yb-roll { margin: 24px 0 30px; border: 1px solid var(--line); border-radius: var(--rad); background: var(--panel); overflow: hidden; }
.yb-roll__in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 18px; }
.yb-roll label { display: grid; gap: 4px; font-size: 13.5px; font-weight: 700; color: var(--soft); }
.yb-roll select, .yb-roll input { width: 100%; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: 700 16px var(--font); }
.yb-roll select:focus, .yb-roll input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.yb-roll .yb-roll__edge { display: none; }
.yb-roll.yb-roll--custom .yb-roll__edge { display: grid; }
.yb-roll__out { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 3px solid var(--navy); background: var(--panel2); }
.yb-roll__out div { padding: 14px 16px; border-right: 1px solid var(--line); }
.yb-roll__out div:last-child { border-right: 0; }
.yb-roll__out dt { font-size: 12.5px; color: var(--soft); }
.yb-roll__out dd { margin: 2px 0 0; font-size: 20px; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.yb-roll__out .is-key dd { color: var(--green); }
.yb-roll__out .is-warn dd { color: var(--lose); }
.yb-roll__how { margin: 0; padding: 12px 18px; font-size: 14.5px; color: var(--text); border-top: 1px solid var(--line); }
.yb-roll__note { margin: 0; padding: 0 18px 16px; font-size: 13px; color: var(--soft); }

/* footer */
.yb-foot { background: #111213; border-top: 1px solid var(--line); color: var(--soft); }
.yb-foot__grid { max-width: 1240px; margin: 0 auto; padding: 40px 20px 20px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 30px; }
.yb-foot__mark p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.65; }
.yb-foot__col b { display: block; margin-bottom: 10px; color: var(--ink); font-size: 14px; }
.yb-foot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.yb-foot__list a { color: var(--text); text-decoration: none; font-size: 14.5px; }
.yb-foot__list a:hover { color: var(--green); }
.yb-foot__age { max-width: 1240px; margin: 0 auto; padding: 14px 20px 30px; font-size: 13px; border-top: 1px solid var(--line); }
.yb-foot__age b { display: inline-block; color: var(--on-green); background: var(--green); border-radius: 4px; padding: 0 6px; margin-right: 6px; }

@media (max-width: 1100px) {
  .yb-body--rail { display: block; }
  .yb-rail { position: static; margin-bottom: 12px; }
  .yb-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .yb-burger { display: flex; margin-left: auto; }
  .yb-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); }
  .yb-open .yb-nav { display: block; }
  .yb-nav__list { flex-direction: column; padding: 6px 12px 12px; }
  .yb-bar__row { position: relative; }
  .yb-bar__acts { margin-left: auto; }
  .yb-burger { margin-left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .yb-bar__row { flex-wrap: wrap; gap: 8px; padding: 8px 16px; }
  .yb-bar__mark img { width: 124px; height: auto; }
  .yb-bar__acts { order: 3; width: 100%; margin: 0; }
  .yb-bar__acts .yb-pill { flex: 1; min-height: 38px; padding: 0 10px; font-size: 14px; }
  .yb-burger { margin-left: auto; }
  .yb-ticker { padding: 6px 16px; font-size: 12.5px; }
  .yb-head, .yb-body, .yb-reel { padding-left: 16px; padding-right: 16px; }
  .yb-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yb-roll__in, .yb-roll__out { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yb-roll__out div:nth-child(2) { border-right: 0; }
  .yb-roll__out div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .yb-vs, .yb-foot__grid { grid-template-columns: 1fr; }
  .yb-pill--big { width: 100%; }
  .yb-grid--stack table, .yb-grid--stack tbody, .yb-grid--stack tr, .yb-grid--stack td { display: block; width: 100%; }
  .yb-grid--stack thead { display: none; }
  .yb-grid--stack tr { border-top: 1px solid var(--line); padding: 6px 0; }
  .yb-grid--stack td { border: 0; padding: 4px 14px; background: none !important; }
  .yb-grid--stack td::before { content: attr(data-k); display: block; font-size: 12px; color: var(--soft); }
}
