:root {
  --record-black: #080b11;
  --record-navy: #0d1420;
  --record-panel: #121b29;
  --record-cream: #ede6d8;
  --record-muted: #9ba3af;
  --record-gold: #b7955d;
  --record-line: rgba(237, 230, 216, .16);
  --record-serif: "Iowan Old Style", "Noto Serif KR", "Batang", serif;
}

body.lotto-scanner-open { overflow: hidden; }

.lotto-scanner[hidden] { display: none; }
.lotto-scanner {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  min-height: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  color: #f7f1e5;
  background: #05070b;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.lotto-scanner-topbar {
  position: relative;
  z-index: 4;
  display: flex;
  min-height: 74px;
  padding: max(12px, env(safe-area-inset-top)) 18px 10px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(5, 7, 11, .94);
  border-bottom: 1px solid rgba(255, 215, 100, .2);
}

.lotto-scanner-topbar small { color: #d4ad55; font-size: .62rem; font-weight: 800; letter-spacing: .14em; }
.lotto-scanner-topbar h2 { margin: 2px 0 0; color: #fff; font-family: var(--record-serif); font-size: 1.25rem; letter-spacing: -.02em; }
.lotto-scanner-close,
.lotto-scanner-retry {
  min-height: 42px;
  padding: 0 15px;
  color: #fff;
  background: #242936;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}

.lotto-camera-stage { position: relative; display: flex; min-height: 0; overflow: hidden; align-items: center; justify-content: center; background: #000; }
#lotto-live-reader { position: relative; width: 100%; flex: 0 0 100%; overflow: hidden; background: #000; }

.lotto-scanner-info {
  position: relative;
  z-index: 4;
  max-height: 46vh;
  padding: 12px 16px max(16px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background: rgba(9, 12, 18, .98);
  border-top: 1px solid rgba(255,255,255,.12);
}

.lotto-live-status { margin: 0; color: #f4e8ce; text-align: center; font-size: .9rem; line-height: 1.45; }
.lotto-live-status.error { color: #ffaaa7; font-weight: 800; }
.lotto-scanner-retry { display: block; margin: 10px auto 0; color: #161008; background: #ffd45e; border-color: #ffd45e; }
.lotto-scanner-retry[hidden] { display: none; }
.lotto-live-result { margin-top: 12px; padding: 14px; background: #141924; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; }
.lotto-result-head { display: flex; align-items: center; gap: 12px; }
.lotto-result-head > strong { min-width: 72px; color: #111; background: #ffd45e; border-radius: 999px; padding: 7px 12px; text-align: center; font-size: 1.05rem; }
.lotto-result-head > strong.lose { color: #fff; background: #4c5360; }
.lotto-result-head > strong.pending { color: #241c0d; background: #d6bd83; }
.lotto-result-head > span { color: #b9c0cc; font-size: .82rem; }
.lotto-live-games { display: grid; margin-top: 12px; gap: 8px; }
.lotto-live-game { display: grid; padding-top: 8px; align-items: center; border-top: 1px solid rgba(255,255,255,.1); grid-template-columns: 22px 1fr auto; gap: 8px; }
.lotto-live-game > b { color: #ffd45e; }
.lotto-live-game > strong { color: #aeb6c3; font-size: .78rem; }
.lotto-live-game > strong.win { color: #ffe17c; }
.lotto-live-balls { display: flex; flex-wrap: wrap; gap: 5px; }
.lotto-live-ball { display: grid; width: 29px; height: 29px; color: #fff; background: #343b49; border-radius: 50%; place-items: center; font-size: .69rem; font-weight: 800; }
.lotto-live-ball.match { color: #171108; background: #ffe173; outline: 2px solid #fff; }
.lotto-live-ball.bonus { color: #190d24; background: #bf91ff; outline: 2px solid #f1e5ff; }

@media (min-width: 760px) {
  .lotto-scanner { grid-template-columns: minmax(0, 1fr) minmax(330px, 430px); grid-template-rows: auto minmax(0, 1fr); }
  .lotto-scanner-topbar { grid-column: 1 / -1; }
  .lotto-scanner-info { max-height: none; padding: 24px; border-top: 0; border-left: 1px solid rgba(255,255,255,.12); }
  .lotto-live-status { text-align: left; }
}

.record-home {
  background: var(--record-black);
  color: var(--record-cream);
}

.record-home .wrap { width: min(calc(100% - 48px), 1180px); }

.record-header {
  background: rgba(8, 11, 17, .9);
  border-color: var(--record-line);
}

.record-header .brand { color: var(--record-cream); }
.record-header .brand-mark { color: var(--record-gold); border-color: var(--record-gold); }
.record-header .menu { color: #b7bec8; }
.record-header .menu a:hover,
.record-header .menu a[aria-current="page"] { color: var(--record-cream); border-color: var(--record-gold); }
.record-header .youtube-menu { color: #d9b7b9 !important; }
.record-header .menu-toggle { color: var(--record-cream); border-color: var(--record-line); }

.record-kicker,
.section-index {
  color: var(--record-gold);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .22em;
}

.record-hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 11, 17, .99) 0%, rgba(8, 11, 17, .94) 51%, rgba(13, 20, 32, .88) 100%),
    radial-gradient(circle at 78% 35%, rgba(183, 149, 93, .14), transparent 30%);
  border-bottom: 1px solid var(--record-line);
}

.record-hero::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, transparent, black 50%, black);
  content: "";
}

.hero-orbit {
  position: absolute;
  top: 50%;
  right: -170px;
  width: 720px;
  height: 720px;
  border: 1px solid rgba(183, 149, 93, .16);
  border-radius: 50%;
  transform: translateY(-50%);
}

.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  border: 1px solid rgba(183, 149, 93, .1);
  border-radius: 50%;
  content: "";
}

.hero-orbit::before { inset: 74px; }
.hero-orbit::after { inset: 158px; }

.record-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: calc(100vh - 146px);
  padding: 70px 0 45px;
  grid-template-columns: 1.13fr .87fr;
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.record-hero-copy h1 {
  margin: 1rem 0 1.5rem;
  color: #f3eee5;
  font-size: clamp(3.5rem, 6.8vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: 1.05;
}

.record-hero-copy h1 em { color: var(--record-gold); font-style: normal; }
.record-hero-copy > p { max-width: 650px; margin: 0; color: var(--record-muted); font-size: 1.08rem; }

.record-actions { display: flex; margin-top: 2.2rem; gap: .75rem; flex-wrap: wrap; }

.record-btn {
  display: inline-flex;
  min-height: 50px;
  padding: 0 1.25rem;
  align-items: center;
  justify-content: center;
  color: var(--record-cream);
  border: 1px solid rgba(237, 230, 216, .38);
  font-size: .82rem;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}

.record-btn.primary { color: #11151c; background: var(--record-gold); border-color: var(--record-gold); }
.record-btn:hover { background: rgba(255,255,255,.07); transform: translateY(-2px); }
.record-btn.primary:hover { background: #c4a46e; }

.record-manifesto {
  position: relative;
  padding: 2.8rem;
  background: rgba(18, 27, 41, .66);
  border: 1px solid var(--record-line);
  box-shadow: 28px 28px 0 rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
}

.manifesto-number {
  color: rgba(237, 230, 216, .12);
  font-family: var(--record-serif);
  font-size: clamp(7rem, 13vw, 10.5rem);
  letter-spacing: -.08em;
  line-height: .73;
}

.manifesto-rule { width: 48px; height: 1px; margin: 2.2rem 0 1.6rem; background: var(--record-gold); }
.record-manifesto blockquote { margin: 0; color: #e9e2d6; font-family: var(--record-serif); font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.55; }
.record-manifesto dl { display: grid; margin: 2.4rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--record-line); grid-template-columns: 1fr 1fr; gap: 1rem; }
.record-manifesto dl div { display: grid; gap: .2rem; }
.record-manifesto dt { color: var(--record-gold); font-family: var(--record-serif); font-size: 1.55rem; }
.record-manifesto dd { margin: 0; color: #8e98a7; font-size: .72rem; }

.latest-lotto-banner { margin-top: 2rem; padding: 1.15rem; background: rgba(5, 9, 15, .72); border: 1px solid rgba(183, 149, 93, .35); }
.latest-lotto-head { display: flex; padding-bottom: .7rem; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--record-line); }
.latest-lotto-head span { color: var(--record-gold); font-size: .58rem; font-weight: 800; letter-spacing: .11em; }
.latest-lotto-head b { color: #9da6b3; font-size: .58rem; white-space: nowrap; }
.latest-winning-row { display: flex; padding: 1rem 0; align-items: center; gap: 5px; }
.latest-winning-row i { display: grid; width: 34px; height: 34px; color: white; border: 2px solid rgba(255,255,255,.34); border-radius: 50%; place-items: center; font-size: .66rem; font-style: normal; font-weight: 800; box-shadow: inset 0 -4px 0 rgba(0,0,0,.16); }
.latest-winning-row .blue { background: #2e76c8; }
.latest-winning-row .red { background: #b6454e; }
.latest-winning-row .gray { background: #6f7680; }
.latest-winning-row .yellow { color: #16120b; background: #d2a83f; }
.latest-winning-row > span { margin: 0 2px; color: #707b89; }
.latest-winning-row .bonus { outline: 1px solid var(--record-gold); outline-offset: 2px; }
.latest-lotto-foot { display: flex; justify-content: space-between; gap: 1rem; }
.latest-lotto-foot a { color: #7f8996; font-size: .6rem; }
.latest-lotto-foot a:last-child { color: #d6bd91; font-weight: 800; }
.today-thought-banner { display: grid; margin-top: .65rem; padding: .9rem 1rem; color: #ded7e3; background: linear-gradient(100deg, rgba(75,50,91,.46), rgba(18,18,28,.76)); border-left: 2px solid #84629a; gap: .18rem; }
.today-thought-label { color: #b597c7; font-size: .56rem; font-weight: 800; letter-spacing: .12em; }
.today-thought-banner strong { font-family: var(--record-serif); font-size: 1.02rem; font-weight: 500; }
.today-thought-banner small { color: #8e8793; font-size: .58rem; }
.today-thought-banner small b { float: right; color: #c5abcF; }
.today-thought-banner:hover { background: linear-gradient(100deg, rgba(88,58,107,.58), rgba(22,21,33,.86)); }
.manifesto-quote { margin-top: 1.35rem !important; color: #cfc7ba !important; font-size: 1.05rem !important; }

.hero-footnote {
  position: relative;
  z-index: 1;
  display: flex;
  height: 70px;
  align-items: center;
  justify-content: space-between;
  color: #6f7885;
  border-top: 1px solid var(--record-line);
  font-size: .66rem;
  letter-spacing: .14em;
}

.hero-footnote b { color: #a7a093; font-weight: 500; letter-spacing: .05em; }

.record-intro { padding: 120px 0; background: #0c111a; border-bottom: 1px solid var(--record-line); }
.intro-grid { display: grid; grid-template-columns: .45fr 1.2fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.intro-grid h2,
.record-section-head h2,
.philosophy-grid h2,
.future-grid h2 { margin: .55rem 0 1rem; color: #eee8dd; font-size: clamp(2.7rem, 5vw, 4.8rem); font-weight: 500; letter-spacing: -.065em; line-height: 1.15; }
.intro-grid p { max-width: 600px; margin: 0; color: var(--record-muted); }
.intro-paths { border-top: 1px solid var(--record-line); }
.intro-paths a { display: grid; padding: 1.35rem 0; border-bottom: 1px solid var(--record-line); grid-template-columns: auto 1fr; column-gap: 1rem; }
.intro-paths small { grid-row: 1/3; padding-top: .15rem; color: var(--record-gold); font-size: .58rem; font-weight: 800; letter-spacing: .14em; }
.intro-paths strong { color: #e8e2d8; font-family: var(--record-serif); font-size: 1.12rem; }
.intro-paths span { color: #7f8996; font-size: .7rem; }
.intro-paths a:hover strong { color: var(--record-gold); }

.record-series { padding: 130px 0; background: var(--record-black); }
.record-section-head { display: grid; margin-bottom: 4rem; grid-template-columns: 1fr .75fr; align-items: end; gap: 4rem; }
.record-section-head p { max-width: 520px; margin: 0; color: var(--record-muted); }

.lead-episode { display: grid; min-height: 520px; background: #111927; border: 1px solid var(--record-line); grid-template-columns: 1.08fr .92fr; }
.episode-art {
  position: relative;
  display: flex;
  min-height: 520px;
  padding: 2rem;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(183,149,93,.18), transparent 42%),
    linear-gradient(145deg, #171e28, #090d14);
  border-right: 1px solid var(--record-line);
}
.episode-art::before { position: absolute; width: 330px; height: 330px; border: 1px solid rgba(183,149,93,.3); border-radius: 50%; content: ""; }
.episode-art::after { position: absolute; width: 440px; height: 440px; border: 1px solid rgba(183,149,93,.12); border-radius: 50%; content: ""; }
.episode-art > span { position: absolute; top: 26px; left: 28px; color: #7f8997; font-size: .62rem; font-weight: 800; letter-spacing: .17em; }
.episode-art strong { position: relative; z-index: 2; color: #d0b27e; font-family: var(--record-serif); font-size: clamp(6rem, 12vw, 10rem); font-weight: 400; letter-spacing: -.08em; }
.episode-art i { position: absolute; z-index: 2; right: 3rem; bottom: 3rem; color: #b4a993; font-family: var(--record-serif); font-size: 1.1rem; font-style: normal; }
.episode-copy { display: flex; padding: clamp(2.4rem, 5vw, 4.8rem); flex-direction: column; justify-content: center; }
.episode-label { color: var(--record-gold); font-size: .66rem; font-weight: 800; letter-spacing: .16em; }
.episode-copy h3 { margin: 1.1rem 0 1.5rem; color: #f0eae0; font-size: clamp(2.25rem, 4vw, 3.5rem); font-weight: 500; letter-spacing: -.055em; line-height: 1.2; }
.episode-copy p { margin: 0 0 2rem; color: var(--record-muted); }
.line-link { align-self: flex-start; padding-bottom: .25rem; color: #d4bd93; border-bottom: 1px solid var(--record-gold); font-size: .78rem; font-weight: 800; }

.episode-list { margin-top: 1.2rem; border-top: 1px solid var(--record-line); }
.episode-list article { display: grid; padding: 1.45rem 1rem; border-bottom: 1px solid var(--record-line); grid-template-columns: 72px 1fr; align-items: center; }
.episode-list article > span { color: var(--record-gold); font-family: var(--record-serif); font-size: 1.3rem; }
.episode-list small { color: #656f7d; font-size: .56rem; font-weight: 800; letter-spacing: .15em; }
.episode-list h3 { margin: .25rem 0 0; color: #c9c3ba; font-size: 1.15rem; font-weight: 500; }

.daily-tools { padding: 130px 0; color: var(--record-cream); background: #111823; border-block: 1px solid var(--record-line); }
.daily-tools .section-index { color: var(--record-gold); }
.light-head h2 { color: #eee8dd; }
.light-head p { color: var(--record-muted); }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.tool-card { overflow: hidden; background: #171f2b; border: 1px solid var(--record-line); }
.tool-screen { min-height: 330px; padding: 1.6rem; color: #edf2f7; background: linear-gradient(145deg, #111c2d, #060b13); }
.screen-top { display: flex; margin-bottom: 3.5rem; padding-bottom: .9rem; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.12); }
.screen-top span { color: #95a3b6; font-size: .6rem; font-weight: 800; letter-spacing: .13em; }
.screen-top b { color: #d4bc91; font-size: .6rem; }
.tool-screen > small { color: #b9c2cf; font-size: .7rem; }
.number-balls { display: flex; margin: 1.2rem 0 2.3rem; gap: 8px; flex-wrap: wrap; }
.number-balls i { display: grid; width: 46px; height: 46px; color: white; background: #2e76c8; border: 2px solid rgba(255,255,255,.35); border-radius: 50%; place-items: center; font-size: .82rem; font-style: normal; font-weight: 800; box-shadow: inset 0 -5px 0 rgba(0,0,0,.14); }
.number-balls i:nth-child(3), .number-balls i:nth-child(4) { background: #b6454e; }
.number-balls i:nth-child(5) { background: #6f7680; }
.number-balls i:nth-child(6) { background: #a17835; }
.fake-action { display: flex; min-height: 48px; padding: 0 1rem; align-items: center; justify-content: space-between; background: #7652a4; font-size: .76rem; font-weight: 800; }
.philosophy-screen { background: radial-gradient(circle at 80% 20%, rgba(125,83,151,.25), transparent 35%), linear-gradient(145deg, #181222, #080a10); }
.philosophy-screen .screen-top { margin-bottom: 2.2rem; }
.philosophy-screen blockquote { margin: .65rem 0 1.8rem; color: #eee7f2; font-family: var(--record-serif); font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.4; }
.philosopher-answer { display: grid; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.13); grid-template-columns: auto 1fr; gap: 1rem; }
.philosopher-answer span { color: #cfaaea; font-size: .7rem; font-weight: 800; }
.philosopher-answer p { margin: 0; color: #a9a1b0; font-size: .73rem; }
.constitution-screen { background: radial-gradient(circle at 82% 18%, rgba(183,149,93,.2), transparent 34%), linear-gradient(145deg, #17324d, #08111a); }
.constitution-screen .screen-top { margin-bottom: 2.2rem; }
.constitution-screen blockquote { margin: .65rem 0 1.8rem; color: #f4efe7; font-family: var(--record-serif); font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.4; }
.constitution-answer { display: grid; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.13); grid-template-columns: auto 1fr; gap: 1rem; }
.constitution-answer span { color: #d8b96e; font-size: .7rem; font-weight: 800; }
.constitution-answer p { margin: 0; color: #c7d6e1; font-size: .73rem; }
.tool-copy { padding: 2rem; }
.tool-copy > span { color: var(--record-gold); font-size: .62rem; font-weight: 800; letter-spacing: .15em; }
.tool-copy h3 { margin: .45rem 0 .7rem; color: #eee8dd; font-size: 1.8rem; }
.tool-copy p { min-height: 56px; margin: 0 0 1.3rem; color: var(--record-muted); font-size: .88rem; }
.tool-copy a { color: #d5bd92; border-bottom: 1px solid var(--record-gold); font-size: .76rem; font-weight: 800; }
.tool-note { margin: 1.1rem 0 0; color: #788290; font-size: .68rem; text-align: right; }

.philosophy-records { padding: 125px 0; background: #0c111a; border-bottom: 1px solid var(--record-line); }
.philosophy-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(3rem, 7vw, 7rem); align-items: end; }
.philosophy-grid h2 { font-size: clamp(2.6rem, 4.6vw, 4.25rem); }
.philosophy-links { border-top: 1px solid var(--record-line); }
.philosophy-links a { display: grid; padding: 1.35rem .2rem; color: var(--record-cream); border-bottom: 1px solid var(--record-line); grid-template-columns: 120px 1fr auto; align-items: center; gap: 1rem; }
.philosophy-links span { color: var(--record-gold); font-size: .68rem; }
.philosophy-links b { font-family: var(--record-serif); font-size: 1rem; font-weight: 500; }
.philosophy-links i { color: #6c7684; font-style: normal; }
.philosophy-links a:hover i { color: var(--record-gold); }

.future-tools { padding: 105px 0; background: #161d27; }
.future-grid { display: grid; grid-template-columns: .35fr 1.3fr auto; gap: 3rem; align-items: center; }
.future-grid h2 { font-size: clamp(2.3rem, 4vw, 3.8rem); }
.future-grid p { max-width: 690px; margin: 0; color: var(--record-muted); }
.future-grid .record-btn { white-space: nowrap; }

.record-footer { background: #05070b; border-top: 1px solid var(--record-line); }
.record-footer p { color: #838c99; }

@media (max-width: 960px) {
  .record-header .menu { background: #0c111a; color: #b7bec8; }
  .record-hero { min-height: auto; }
  .record-hero-grid { min-height: auto; padding: 90px 0 70px; grid-template-columns: 1fr; }
  .record-manifesto { max-width: 620px; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-grid > .section-index { margin-bottom: -1rem; }
  .record-section-head,
  .philosophy-grid,
  .future-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .lead-episode { grid-template-columns: 1fr; }
  .episode-art { min-height: 440px; border-right: 0; border-bottom: 1px solid var(--record-line); }
  .future-grid .record-btn { justify-self: start; }
}

@media (max-width: 680px) {
  .record-home .wrap { width: min(calc(100% - 30px), 1180px); }
  .record-hero-grid { padding: 55px 0 48px; gap: 2.5rem; }
  .record-hero-copy h1 { font-size: clamp(3rem, 14vw, 4.4rem); }
  .record-manifesto { padding: 2rem; box-shadow: 12px 12px 0 rgba(0,0,0,.18); }
  .manifesto-number { font-size: 7rem; }
  .latest-lotto-banner { margin-top: 1.5rem; padding: 1rem; }
  .latest-winning-row { gap: 4px; }
  .latest-winning-row i { width: 31px; height: 31px; }
  .today-thought-banner small b { display: block; float: none; margin-top: .2rem; }
  .hero-footnote { display: none; }
  .record-intro,
  .record-series,
  .daily-tools,
  .philosophy-records { padding: 82px 0; }
  .record-section-head { margin-bottom: 2.5rem; }
  .lead-episode,
  .episode-art { min-height: 380px; }
  .episode-art strong { font-size: 6rem; }
  .episode-art i { right: 1.5rem; bottom: 2rem; }
  .episode-copy { padding: 2rem; }
  .episode-list article { grid-template-columns: 45px 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-screen { min-height: 300px; }
  .tool-note { text-align: left; }
  .philosophy-links a { grid-template-columns: 1fr auto; }
  .philosophy-links span { grid-column: 1 / -1; }
  .future-tools { padding: 75px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .record-btn { transition: none; }
}
