/* Shared styles for the static SEO pages (/명당/…, /회차/…). Mirrors the app's tokens in src/index.css. */
:root {
  --desk: #e9ecf2;
  --card: #f7f8fb;
  --paper: #fff8f8;
  --slip: #e0324b;
  --slip-soft: #f7cdd3;
  --ink: #141821;
  --navy: #1e2a4a;
  --mute: #646c7e;
  --line: #d5d9e2;
  --yellow: #f7be00;
  --blue: #4db3e6;
  --red: #f25c5c;
  --gray: #9aa0a8;
  --green: #8cc63f;
  --display: 'Black Han Sans', 'Pretendard Variable', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family:
    'Pretendard Variable',
    Pretendard,
    -apple-system,
    'Apple SD Gothic Neo',
    'Malgun Gothic',
    sans-serif;
  line-height: 1.6;
  word-break: keep-all;
  font-feature-settings: 'tnum';
}
a {
  color: var(--navy);
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  border-radius: 6px;
}
.top,
.crumbs,
main,
.foot {
  max-width: 960px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 10px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 36px;
  border: 2px solid var(--slip);
  border-radius: 6px;
  background: var(--paper);
}
.mark i {
  width: 10px;
  height: 20px;
  border-radius: 2px;
  background: var(--ink);
}
.logo b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
  color: var(--navy);
}
.logo small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--slip);
}
.btn-top {
  background: var(--slip);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 14px;
  border-radius: 12px;
  box-shadow: 0 3px 0 #a8203a;
}
.crumbs {
  font-size: 13px;
  color: var(--mute);
  padding-bottom: 6px;
}
.crumbs a {
  color: var(--mute);
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}
.crumbs .sep {
  margin: 0 6px;
}
.crumbs [aria-current] {
  color: var(--navy);
  font-weight: 600;
}

/* sections */
main section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  margin-top: 14px;
}
main section.hero {
  background: var(--navy);
  color: #fff;
  border: 0;
}
h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.5px;
}
h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 21px;
  color: var(--navy);
  margin: 0 0 12px;
}
.hero .lead {
  color: rgb(255 255 255 / 0.85);
  margin: 10px 0 0;
  font-size: 16px;
}
.hero .lead b {
  color: var(--yellow);
}
.eyebrow {
  margin: 0 0 4px;
  color: rgb(255 255 255 / 0.7);
  font-size: 14px;
}
.empty {
  color: var(--mute);
  margin: 0;
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  margin: 16px 0 0;
}
.stats div {
  background: rgb(255 255 255 / 0.08);
  border-radius: 14px;
  padding: 10px 12px;
}
.stats dt {
  font-size: 12px;
  color: rgb(255 255 255 / 0.65);
}
.stats dd {
  margin: 2px 0 0;
  font-size: 15px;
}
.stats dd b {
  color: var(--yellow);
}
.stats a {
  color: #fff;
}
.stats small {
  color: rgb(255 255 255 / 0.6);
}

/* CTA */
.cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--slip);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 5px 0 #a8203a;
}
.cta b {
  display: block;
  font-size: 16px;
}
.cta small {
  display: block;
  font-size: 12px;
  opacity: 0.8;
}
.cta span:nth-child(2) {
  flex: 1;
}
main > .cta {
  margin-top: 14px;
}

/* balls */
.balls {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  box-shadow:
    inset -3px -4px 0 rgb(0 0 0 / 0.13),
    inset 2px 2px 0 rgb(255 255 255 / 0.35);
}
.ball.lg {
  width: 44px;
  height: 44px;
  font-size: 18px;
}
.ball.sm {
  width: 26px;
  height: 26px;
  font-size: 12px;
  margin-right: 3px;
}
.b-yellow {
  background: var(--yellow);
  color: var(--ink);
}
.b-blue {
  background: var(--blue);
}
.b-red {
  background: var(--red);
}
.b-gray {
  background: var(--gray);
}
.b-green {
  background: var(--green);
  color: var(--ink);
}
.plus {
  color: rgb(255 255 255 / 0.6);
  font-weight: 700;
}
section:not(.hero) .plus {
  color: var(--mute);
}
.draw {
  margin-top: 14px;
}
@media (max-width: 400px) {
  .ball.lg {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}

/* shop list */
.shops {
  list-style: none;
  margin: 0;
  padding: 0;
}
.shop {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.shop:first-child {
  border-top: 0;
  padding-top: 4px;
}
.shop .rank {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--desk);
  color: var(--mute);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
}
.shop .rank.top1 {
  background: var(--yellow);
  color: var(--ink);
}
.shop .rank.top2,
.shop .rank.top3 {
  background: var(--navy);
  color: #fff;
}
.shop .info {
  min-width: 0;
}
.shop:not(:has(.rank)) .info,
.shop:not(:has(.rank)) .maps {
  grid-column: 1 / -1;
}
.shop h3 {
  font-size: 17px;
  margin: 0;
  color: var(--navy);
}
.shop .addr {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--mute);
}
.shop .meta {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--mute);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}
.shop .wins {
  background: var(--slip);
  color: #fff;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
}
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  background: var(--desk);
  color: var(--mute);
  padding: 1px 6px;
  border-radius: 6px;
  vertical-align: middle;
}
.badge.method {
  background: var(--paper);
  color: var(--slip);
}
.shop.closed h3 {
  color: var(--mute);
}
.maps {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.maps a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 10px;
}
.maps .kakao {
  background: #fee500;
  color: var(--ink);
}
.maps .naver {
  background: #03c75a;
  color: #fff;
}
.compact .shop {
  padding: 10px 0;
}
.compact .maps {
  display: none;
}
@media (min-width: 720px) {
  .shop {
    grid-template-columns: auto 1fr 210px;
    align-items: center;
  }
  .shop .rank {
    grid-row: auto;
  }
  .maps {
    margin-top: 0;
  }
  .shop:not(:has(.rank)) {
    grid-template-columns: 1fr 210px;
  }
  .shop:not(:has(.rank)) .info,
  .shop:not(:has(.rank)) .maps {
    grid-column: auto;
  }
}
.online {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: var(--card);
  border-radius: 12px;
  font-size: 14px;
}

/* tiles & chips */
.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}
.tiles a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  background: var(--card);
}
.tiles b {
  display: block;
  font-size: 17px;
  color: var(--navy);
}
.tiles span {
  font-size: 12px;
  color: var(--mute);
}
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.chips span {
  font-weight: 400;
  color: var(--mute);
  font-size: 12px;
}

/* rounds */
.recent,
.rounds {
  list-style: none;
  margin: 0;
  padding: 0;
}
.recent li a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.recent li:first-child a {
  border-top: 0;
}
.recent b {
  min-width: 64px;
  color: var(--navy);
}
.recent small {
  color: var(--mute);
  min-width: 80px;
}
.rounds {
  columns: 2 280px;
  column-gap: 20px;
  font-size: 14px;
}
.rounds li {
  break-inside: avoid;
}
.rounds a {
  display: block;
  padding: 4px 0;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
}
.rounds a b {
  font-family: 'Pretendard Variable', sans-serif;
  color: var(--navy);
  display: inline-block;
  min-width: 56px;
}
.rounds a span {
  color: var(--mute);
}
.rounds a:hover {
  color: var(--slip);
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
}
.pager a,
.pager span {
  flex: 1;
}
.pager a {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  text-decoration: none;
  font-weight: 700;
}

/* prize table */
.sub {
  margin: -6px 0 12px;
  font-size: 14px;
  color: var(--mute);
}
.table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
}
.prize {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.prize th,
.prize td {
  padding: 10px 6px;
  text-align: right;
  vertical-align: top;
  border-top: 1px solid var(--line);
  font-weight: 400;
}
.prize thead th {
  border-top: 0;
  padding-top: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
  white-space: nowrap;
}
.prize th:first-child {
  text-align: left;
  white-space: nowrap;
}
.prize tbody th b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 17px;
  color: var(--navy);
}
.prize td b {
  font-weight: 700;
  white-space: nowrap;
}
.prize small {
  display: block;
  font-size: 11px;
  color: var(--mute);
  white-space: nowrap;
}
.prize .who {
  color: var(--ink);
  margin-top: 2px;
}
.prize .exact {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: -0.3px;
}
.prize .net b {
  color: var(--slip);
}
.prize .r1 {
  background: var(--paper);
}
.prize .r1 th,
.prize .r1 td {
  border-top-color: var(--slip-soft);
}
.prize .r1 th b {
  color: var(--slip);
}
.prize tbody tr > :first-child {
  padding-left: 10px;
}
.prize tbody tr > :last-child {
  padding-right: 10px;
}
.prize .none td {
  color: var(--mute);
}
.prize .none td[colspan] {
  text-align: left;
  font-size: 13px;
  vertical-align: middle;
}
@media (max-width: 400px) {
  .prize {
    font-size: 13px;
  }
  .prize th,
  .prize td {
    padding: 9px 4px;
  }
}
.fine {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--mute);
  line-height: 1.55;
}

/* guides & articles */
.byline {
  margin: 12px 0 0;
  font-size: 13px;
  color: rgb(255 255 255 / 0.6);
}
.prose {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 20px 24px;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.8;
}
.prose h2 {
  font-size: 22px;
  margin: 28px 0 8px;
}
.prose h3 {
  font-size: 17px;
  color: var(--navy);
  margin: 22px 0 6px;
}
.prose p,
.prose ul,
.prose ol {
  margin: 0 0 12px;
  max-width: 68ch;
}
.prose ul,
.prose ol {
  padding-left: 22px;
}
.prose li {
  margin: 4px 0;
}
.prose li::marker {
  color: var(--slip);
  font-weight: 700;
}
.prose b {
  color: var(--navy);
}
.prose a {
  text-underline-offset: 3px;
}
.prose .table-wrap {
  margin: 4px 0 14px;
}
.plain {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}
.plain th,
.plain td {
  padding: 9px 8px;
  border-top: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}
.plain th:first-child,
.plain td:first-child {
  text-align: left;
}
.plain thead th {
  border-top: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
}
.plain tbody th {
  font-weight: 700;
  color: var(--navy);
}
.plain .base {
  background: var(--card);
  color: var(--mute);
}
.bars {
  display: grid;
  gap: 8px;
  margin: 6px 0 14px;
}
.bar {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: center;
  font-size: 14px;
}
.bar span {
  grid-row: span 2;
  font-weight: 700;
  color: var(--navy);
}
.bar i {
  display: block;
  height: 12px;
  width: var(--w);
  min-width: 4px;
  border-radius: 6px;
  background: var(--slip);
}
.bar:nth-child(2) i {
  background: var(--navy);
}
.bar:nth-child(3) i {
  background: var(--gray);
}
.bar b {
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
}
.formula {
  font-weight: 800;
  font-size: 16px;
  color: var(--slip);
  background: var(--paper);
  border: 1px solid var(--slip-soft);
  border-radius: 12px;
  padding: 10px 14px;
  display: inline-block;
}
.source {
  font-size: 13px;
  color: var(--mute);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 20px !important;
}
.mail a {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--slip);
  word-break: break-all;
}
.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.guide-list a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  text-decoration: none;
}
.guide-list a:hover {
  border-color: var(--slip-soft);
  background: var(--paper);
}
.guide-list b {
  display: block;
  font-size: 17px;
  color: var(--navy);
}
.guide-list span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--mute);
  line-height: 1.5;
}
@media (max-width: 400px) {
  .prose {
    padding: 4px 16px 20px;
    font-size: 15px;
  }
  .plain th,
  .plain td {
    padding: 8px 5px;
    font-size: 13px;
  }
}

/* 응원하기 */
main section.support {
  background: var(--paper);
  border-color: var(--slip-soft);
}
.support .kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--slip);
}
.support h2 {
  margin: 2px 0 6px;
}
.support > p {
  margin: 0;
  font-size: 14px;
}
.support > p.fine {
  margin-top: 12px;
}
.sup-in {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sup-opts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.sup-opt {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
}
.sup-opt b {
  display: block;
  font-size: 13px;
}
.sup-opt span {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  color: var(--navy);
}
#sup-coffee:checked ~ .sup-opts .sup-opt-coffee,
#sup-meal:checked ~ .sup-opts .sup-opt-meal,
#sup-cheer:checked ~ .sup-opts .sup-opt-cheer {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
#sup-coffee:checked ~ .sup-opts .sup-opt-coffee span,
#sup-meal:checked ~ .sup-opts .sup-opt-meal span,
#sup-cheer:checked ~ .sup-opts .sup-opt-cheer span {
  color: #fff;
}
#sup-coffee:focus-visible ~ .sup-opts .sup-opt-coffee,
#sup-meal:focus-visible ~ .sup-opts .sup-opt-meal,
#sup-cheer:focus-visible ~ .sup-opts .sup-opt-cheer {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}
.sup-pay {
  display: none;
  margin-top: 12px;
}
#sup-coffee:checked ~ .sup-pay-coffee,
#sup-meal:checked ~ .sup-pay-meal,
#sup-cheer:checked ~ .sup-pay-cheer {
  display: block;
}
.sup-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sup-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.sup-toss {
  background: #3182f6;
  color: #fff !important;
}
.sup-kakaopay {
  background: #fee500;
  color: var(--ink) !important;
}
.sup-qr {
  display: none;
  gap: 16px;
  flex-wrap: wrap;
}
.sup-qr figure {
  margin: 0;
  text-align: center;
}
.sup-qr img {
  display: block;
  width: 132px;
  height: 132px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
}
.sup-qr figcaption {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}
.sup-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--mute);
}
.sup-hint .d {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .sup-links,
  .sup-hint .m {
    display: none;
  }
  .sup-qr {
    display: flex;
  }
  .sup-hint .d {
    display: inline;
  }
}

/* note & footer */
.note {
  margin-top: 14px;
  background: var(--paper);
  border: 1px solid var(--slip-soft);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--ink);
}
.note b {
  color: var(--slip);
  margin-right: 4px;
}
.foot {
  margin-top: 32px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--mute);
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 16px 0 4px;
}
.foot-links a {
  font-weight: 600;
  font-size: 13px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
