:root {
  --navy: #0c2340;
  --navy-deep: #081828;
  --navy-mid: #123052;
  --navy-soft: #1a3d5c;
  --ink: #0c2340;
  --ink-soft: #0f2d4a;
  --teal: #127a6e;
  --teal-dark: #0f6b60;
  --teal-soft: #ecfdf8;
  --purple: #6d5ae0;
  --paper: #f6f7fb;
  --muted: #4a5263;
  --line: #e4e7f0;
  --bg: #ffffff;
  --soft: #f8fafc;
  --font-display: "Hahmlet", "Noto Serif KR", serif;
  --font-body: "Pretendard Variable", Pretendard, "Noto Sans KR", system-ui, sans-serif;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --maxw: 1120px;
  --nav-bg: rgba(12, 35, 64, 0.92);
  --nav-drawer-bg: rgba(12, 35, 64, 0.97);
  --veil-rgb: 12, 35, 64;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: #1c2130;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 200;
  background: #fff;
  padding: 0.5rem 1rem;
  border: 2px solid var(--teal);
}

/* —— Nav (Vibe: fixed · transparent → solid) —— */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
  background: transparent;
  border-bottom: 1px solid transparent;
}

.nav--solid {
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(94, 234, 212, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

#lotto-live,
#features,
#screens,
#get-app,
#howto {
  scroll-margin-top: 4.75rem;
}

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  margin-right: auto;
  letter-spacing: 0.01em;
}

.nav__links {
  display: none;
  gap: 1.35rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav__links a {
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: #fff;
}

.nav__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.nav__drawer {
  display: none;
  flex-direction: column;
  padding: 0.5rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--nav-drawer-bg);
}

.nav__drawer a {
  padding: 0.65rem 0;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__drawer:not([hidden]) {
  display: flex;
}

/* —— Showcase · Three.js hero (Vibe 패턴) —— */
.showcase {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 78% 42%, rgba(18, 122, 110, 0.28), transparent 58%),
    linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 48%, var(--navy-mid) 100%);
  color: #fff;
}

#hero3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.showcase__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(46% 58% at 78% 46%, rgba(18, 122, 110, 0.32) 0%, rgba(109, 90, 224, 0.12) 36%, transparent 72%),
    radial-gradient(28% 36% at 70% 62%, rgba(251, 196, 0, 0.1) 0%, transparent 70%),
    radial-gradient(52% 68% at 16% 48%, rgba(var(--veil-rgb), 0.82) 0%, rgba(var(--veil-rgb), 0.38) 46%, transparent 74%),
    linear-gradient(90deg, rgba(var(--veil-rgb), 0.55) 0%, rgba(var(--veil-rgb), 0.16) 42%, transparent 68%),
    linear-gradient(180deg, rgba(var(--veil-rgb), 0.55) 0%, transparent 20%, transparent 78%, var(--navy) 100%);
}

.showcase__inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 7.5rem 1.25rem 5rem;
  width: 100%;
  pointer-events: none;
}

.showcase__inner a,
.showcase__inner .hero-stats,
.showcase__inner .hero-flow {
  pointer-events: auto;
}

.showcase__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.showcase__eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--teal);
}

.key-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.15rem;
  max-width: 42em;
}

.key-pills span {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  background: rgba(18, 122, 110, 0.28);
  border: 1px solid rgba(94, 234, 212, 0.4);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  letter-spacing: -0.02em;
}

.showcase__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6.5vw, 3.75rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
  max-width: 12em;
  text-wrap: pretty;
}

.showcase__title em {
  font-style: normal;
  color: #5eead4;
}

.kw {
  font-weight: 800;
  color: #5eead4;
}

.showcase__lead {
  max-width: 36em;
  margin: 1.25rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.showcase__note {
  max-width: 36em;
  margin: 1rem 0 0;
  padding: 0.95rem 1.1rem;
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  line-height: 1.65;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(18, 122, 110, 0.22);
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-left: 3px solid #5eead4;
  border-radius: 12px;
}

.showcase__note strong {
  color: #5eead4;
  font-weight: 800;
}

.hero-flow {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 720px;
  pointer-events: none;
}

.hero-flow li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 0;
}

.hero-flow__step {
  width: 1.45rem;
  height: 1.45rem;
  margin-bottom: 0.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #052e2a;
  background: #5eead4;
}

.hero-flow strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero-flow span:not(.hero-flow__step) {
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

.showcase__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
  pointer-events: auto;
}

.showcase__actions--secondary {
  margin-top: 0.85rem;
}

.showcase__store-note {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  pointer-events: auto;
}

.showcase__store-note a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer__stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.85rem 0 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.footer__stores a {
  color: var(--teal-dark, #0f766e);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.screen-stores {
  margin-top: 2.25rem;
  padding: 1.35rem 1.25rem;
  text-align: center;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #d8ebe6;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.06);
}

.screen-stores__lead {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy, #0b1f33);
}

.screen-stores__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.screen-stores__links a {
  color: var(--teal-dark, #0f766e);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.screen-stores__note {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #5b6b7a;
}

.hero-stats {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 760px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 1rem 0.9rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--ac, var(--teal));
  min-width: 0;
  transition: transform 0.2s, background 0.2s;
  color: inherit;
}

.hero-stat:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero-stat__ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ac, var(--teal));
  margin-bottom: 0.5rem;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
}

.hero-stat strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.hero-stat span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  animation: scrollBob 2.4s ease-in-out infinite;
  pointer-events: auto;
}


@keyframes scrollBob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

.hero-enter {
  opacity: 0;
  transform: translateY(18px);
  animation: heroEnter 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--hero-delay, 0ms);
}

@keyframes heroEnter {
  to { opacity: 1; transform: none; }
}

.btn--glow {
  box-shadow: 0 8px 24px rgba(18, 122, 110, 0.35);
  animation: btnGlow 2.8s ease-in-out infinite;
}

.btn--light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn--light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--hero {
  background: #fff;
  color: var(--navy, #0b1f33);
  border-color: #fff;
}

.btn--hero:hover {
  background: #e8f5f2;
  border-color: #e8f5f2;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 8px 24px rgba(18, 122, 110, 0.3); }
  50% { box-shadow: 0 8px 32px rgba(94, 234, 212, 0.35); }
}

/* —— Scroll reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.4s; }

.lotto-live.reveal {
  transform: translateY(20px);
}

.lotto-live.reveal.is-visible {
  transform: none;
}

/* —— Lotto live (전광판) —— */
.lotto-live {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(18, 122, 110, 0.38), transparent 60%),
    radial-gradient(ellipse 40% 40% at 85% 80%, rgba(251, 196, 0, 0.1), transparent 55%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 42%, var(--navy-mid) 100%);
  color: #fff;
  padding: 0.5rem 0 1.5rem;
}

.lotto-live__glow {
  position: absolute;
  inset: -30% 10% auto;
  height: 320px;
  background: radial-gradient(ellipse at 50% 0%, rgba(94, 234, 212, 0.28), transparent 70%);
  pointer-events: none;
  animation: liveGlow 5s ease-in-out infinite alternate;
}

.lotto-live__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 28% 62%, rgba(167, 243, 208, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 48% 28%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 66% 72%, rgba(251, 196, 0, 0.65), transparent),
    radial-gradient(1.5px 1.5px at 82% 22%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 90% 55%, rgba(94, 234, 212, 0.7), transparent);
}

.lotto-live__inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.15rem 1.75rem;
}

.lotto-live__board {
  position: relative;
  padding: 10px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, var(--navy-soft) 0%, var(--navy) 40%, var(--navy-mid) 100%);
  box-shadow:
    0 0 0 1px rgba(94, 234, 212, 0.25),
    0 0 40px rgba(18, 122, 110, 0.3),
    0 24px 60px rgba(8, 24, 40, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lotto-live__bezel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 1.35rem 1.15rem 1.25rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(18, 122, 110, 0.32), transparent 55%),
    linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 50%, var(--navy-deep) 100%);
  border: 1px solid rgba(94, 234, 212, 0.22);
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.lotto-live__corner {
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 3;
  border: 2px solid #fbc400;
  opacity: 0.85;
  pointer-events: none;
}

.lotto-live__corner--tl {
  top: 8px;
  left: 8px;
  border-right: 0;
  border-bottom: 0;
}

.lotto-live__corner--tr {
  top: 8px;
  right: 8px;
  border-left: 0;
  border-bottom: 0;
}

.lotto-live__corner--bl {
  bottom: 8px;
  left: 8px;
  border-right: 0;
  border-top: 0;
}

.lotto-live__corner--br {
  bottom: 8px;
  right: 8px;
  border-left: 0;
  border-top: 0;
}

.lotto-live__scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.45;
}

.lotto-live__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(94, 234, 212, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, 0.35) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}

.lotto-live__head,
.lotto-live__panel,
.lotto-live__stores {
  position: relative;
  z-index: 2;
}

.lotto-live__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.85rem 1.1rem;
  margin-bottom: 1.4rem;
}

.lotto-live__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(74, 222, 128, 0.55);
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.25);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #bbf7d0;
}

.lotto-live__pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: livePulse 2s ease-out infinite;
}

.lotto-live__titles {
  flex: 1;
  min-width: 0;
}

.lotto-live__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: rgba(251, 196, 0, 0.85);
  text-shadow: 0 0 12px rgba(251, 196, 0, 0.35);
}

.lotto-live__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow:
    0 0 24px rgba(94, 234, 212, 0.35),
    0 2px 0 rgba(0, 0, 0, 0.4);
}

.lotto-live__title-accent {
  color: #5eead4;
  text-shadow: 0 0 20px rgba(94, 234, 212, 0.55);
}

.lotto-live__date {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.lotto-live__panel {
  display: grid;
  gap: 1.15rem;
  padding: 1.1rem 1rem;
  border-radius: 14px;
  background: rgba(8, 24, 40, 0.45);
  border: 1px solid rgba(94, 234, 212, 0.18);
  box-shadow: inset 0 0 30px rgba(18, 122, 110, 0.12);
}

.lotto-live__label,
.lotto-live__stat-label,
.lotto-live__stores-label {
  margin: 0 0 0.6rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, 0.75);
}

.lotto-live__balls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.lotto-live__ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.02rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.35),
    inset 0 -6px 10px rgba(0, 0, 0, 0.22),
    inset 0 4px 8px rgba(255, 255, 255, 0.45);
  opacity: 0;
  transform: scale(0.4) translateY(8px);
  animation: ballPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.lotto-live__ball--bonus {
  position: relative;
  margin-left: 0.55rem;
  box-shadow:
    0 0 0 3px rgba(255, 114, 114, 0.35),
    0 8px 18px rgba(0, 0, 0, 0.35),
    inset 0 -6px 10px rgba(0, 0, 0, 0.22),
    inset 0 4px 8px rgba(255, 255, 255, 0.45);
}

.lotto-live__ball--bonus::before {
  content: "+";
  position: absolute;
  left: -0.65rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  font-weight: 800;
  color: #fda4a4;
  text-shadow: 0 0 10px rgba(255, 114, 114, 0.8);
}

.lotto-live__ball--yellow {
  background: radial-gradient(circle at 32% 28%, #fff0a3, #fbc400 48%, #b88600);
  color: #1a1a1a;
}
.lotto-live__ball--blue {
  background: radial-gradient(circle at 32% 28%, #c8f0ff, #69c8f2 48%, #2896cc);
  color: #fff;
}
.lotto-live__ball--red {
  background: radial-gradient(circle at 32% 28%, #ffd0d0, #ff7272 48%, #d93a3a);
  color: #fff;
}
.lotto-live__ball--gray {
  background: radial-gradient(circle at 32% 28%, #dedede, #8a8a8a 48%, #5a5a5a);
  color: #fff;
}
.lotto-live__ball--green {
  background: radial-gradient(circle at 32% 28%, #e2ff8a, #b0d840 48%, #7faa1e);
  color: #fff;
}

.lotto-live__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.lotto-live__stat {
  padding: 0.95rem 1rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(18, 48, 82, 0.92), rgba(8, 24, 40, 0.68));
  border: 1px solid rgba(94, 234, 212, 0.2);
  box-shadow: inset 0 0 20px rgba(18, 122, 110, 0.15);
}

.lotto-live__stat--prize {
  border-color: rgba(251, 196, 0, 0.45);
  box-shadow:
    inset 0 0 24px rgba(251, 196, 0, 0.08),
    0 0 20px rgba(251, 196, 0, 0.08);
}

.lotto-live__stat-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4.2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.lotto-live__stat--prize .lotto-live__stat-value {
  color: #fde68a;
  text-shadow: 0 0 18px rgba(251, 196, 0, 0.45);
}

.lotto-live__shimmer {
  display: inline-block;
  background: linear-gradient(90deg, #fbbf24 0%, #fff7c2 40%, #f59e0b 70%, #fbbf24 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: prizeShimmer 3.2s ease-in-out infinite;
}

.lotto-live__stores {
  margin-top: 1.25rem;
}

.lotto-live__stores-icon {
  margin-right: 0.25rem;
  color: #fbc400;
  text-shadow: 0 0 8px rgba(251, 196, 0, 0.8);
}

.lotto-live__marquee-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--navy-deep);
  border: 1px solid rgba(251, 196, 0, 0.35);
  box-shadow:
    inset 0 0 24px rgba(251, 196, 0, 0.08),
    0 0 16px rgba(251, 196, 0, 0.08);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.lotto-live__marquee-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 1px,
    rgba(251, 196, 0, 0.04) 1px,
    rgba(251, 196, 0, 0.04) 2px
  );
}

.lotto-live__marquee {
  display: flex;
  width: max-content;
  gap: 0;
  animation: storeMarquee 38s linear infinite;
  will-change: transform;
}

.lotto-live__marquee:hover {
  animation-play-state: paused;
}

.lotto-live__store-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem;
  white-space: nowrap;
  font-size: 0.9rem;
  color: #fde68a;
  border-right: 1px solid rgba(251, 196, 0, 0.15);
  text-shadow: 0 0 8px rgba(251, 196, 0, 0.25);
}

.lotto-live__store-name {
  font-weight: 800;
  color: #fff8dc;
}

.lotto-live__store-meta {
  color: rgba(253, 230, 138, 0.72);
  font-size: 0.82rem;
}

.lotto-live__store-pick {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  background: rgba(251, 196, 0, 0.18);
  border: 1px solid rgba(251, 196, 0, 0.35);
  font-size: 0.72rem;
  font-weight: 800;
  color: #fbbf24;
}

.lotto-live__stores-note {
  margin: 0.65rem 0 0;
  font-size: 0.74rem;
  color: rgba(167, 243, 208, 0.55);
}

.lotto-live.is-loading .lotto-live__ball {
  animation: none;
  opacity: 0.35;
  transform: scale(1);
  background: rgba(255, 255, 255, 0.2) !important;
  color: transparent;
}

@keyframes liveGlow {
  from { opacity: 0.55; transform: translateY(0); }
  to { opacity: 1; transform: translateY(8px); }
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.65); }
  70% { box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

@keyframes ballPop {
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes prizeShimmer {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0 0; }
}

@keyframes storeMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (min-width: 768px) {
  .lotto-live__inner {
    padding: 2rem 1.25rem 2.5rem;
  }

  .lotto-live__bezel {
    padding: 1.75rem 1.6rem 1.5rem;
  }

  .lotto-live__panel {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 1.4rem;
    padding: 1.35rem 1.25rem;
  }

  .lotto-live__ball {
    width: 3.15rem;
    height: 3.15rem;
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .scroll-hint,
  .btn--glow,
  .hero-enter {
    animation: none !important;
  }

  .hero-enter {
    opacity: 1;
    transform: none;
  }

  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }

  .lotto-live__glow,
  .lotto-live__pulse,
  .lotto-live__marquee,
  .lotto-live__shimmer,
  .lotto-live__ball {
    animation: none !important;
  }

  .lotto-live__ball {
    opacity: 1;
    transform: none;
  }

  .lotto-live__shimmer {
    color: #fde68a;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
}

/* —— Hero —— */
.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.hero__accent {
  color: var(--teal);
}

.hero__lead {
  max-width: 640px;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.btn--primary:hover {
  background: var(--teal-dark);
}

.btn--ghost {
  background: #fff;
  color: var(--teal);
  border-color: #99f6e4;
}

/* —— Sections —— */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.section--soft {
  background: var(--paper);
  max-width: none;
}

.section--soft > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.section--dark {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  max-width: none;
}

.section--dark > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.section--dark .section__label {
  color: #5eead4;
}

.section--dark .section__title {
  color: #fff;
}

.section--dark .section__title em {
  font-style: normal;
  color: #5eead4;
}

.section--dark .section__lead {
  color: rgba(255, 255, 255, 0.84);
}

.section__label {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4.4vw, 2.65rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  max-width: 16em;
}

.section__title em {
  font-style: normal;
  color: var(--teal);
}

.section__lead {
  margin: 1rem 0 0;
  max-width: 42em;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
  font-weight: 500;
}

.section__lead + .vs-grid,
.section__lead + .screen-gallery,
.section__lead + .feature-grid,
.section__lead + .compare-visual {
  margin-top: 2.5rem;
}

/* —— VS (Vibe vs-grid) —— */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
  margin-top: 2.5rem;
}

.vs-col {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
}

.vs-col h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.vs-col ul {
  margin: 0;
  padding-left: 1.1rem;
  list-style: disc;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.vs-col li + li {
  margin-top: 0.55rem;
}

.vs-col--accent {
  border-color: var(--teal);
  background: rgba(18, 122, 110, 0.05);
}

.vs-col--accent ul {
  color: #334155;
}

.vs-mid {
  align-self: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--muted);
  font-size: 1.1rem;
  padding: 0 0.25rem;
}

/* —— Paper slip X vs mobile QR —— */
.compare-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.75rem 1rem;
  align-items: end;
  max-width: 560px;
  margin: 2rem auto 0;
}

.compare-visual__col {
  margin: 0;
  text-align: center;
}

.compare-visual__frame {
  background: #eef2f6;
  border-radius: 1rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  line-height: 0;
  max-width: 200px;
  margin: 0 auto;
}

.compare-visual__frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.35rem;
}

.compare-visual__phone {
  max-width: 200px;
  margin: 0 auto;
}

.compare-visual__arrow {
  margin: 0;
  align-self: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}

.compare-visual figcaption {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.compare-visual__col--no figcaption {
  color: #b91c1c;
}

.compare-visual__col--yes figcaption {
  color: var(--teal-dark);
}

.compare-visual + .feature-grid {
  margin-top: 2rem;
}

/* —— Screen gallery (실제 앱 화면 3장) —— */
.screen-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin: 2rem auto 0;
  width: min(100%, 720px);
  justify-items: center;
  align-items: start;
}

.screen-card {
  margin: 0;
  width: 100%;
  max-width: 200px;
  text-align: center;
}

.phone-frame {
  width: 100%;
  border-radius: clamp(16px, 2.2vw, 22px);
  border: 2px solid #1e293b;
  background: #0b1630;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  line-height: 0;
}

.phone-frame__img {
  display: block;
  width: 100%;
  height: auto;
}

.screen-card figcaption {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.15rem;
}

.screen-card figcaption strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}

.screen-card figcaption span {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 720px) {
  .screen-gallery {
    width: 100%;
    gap: 0.65rem;
  }

  .screen-card {
    max-width: none;
  }

  .screen-card figcaption span {
    display: none;
  }
}

@media (max-width: 480px) {
  .screen-gallery {
    gap: 0.5rem;
  }

  .phone-frame {
    border-width: 1.5px;
    border-radius: 14px;
  }

  .screen-card figcaption strong {
    font-size: 0.8rem;
  }
}

/* —— Feature grid —— */
.feature-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  border-color: #99f6e4;
  box-shadow: var(--shadow);
}

.feature-card__kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--teal);
}

.feature-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.4;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

.vs-grid + .feature-grid {
  margin-top: 2rem;
}

.howto-inline {
  margin-top: 2.75rem;
}

.howto-inline .section__title {
  margin-bottom: 1.25rem;
}

/* —— Video —— */
.video-wrap {
  margin-top: 2rem;
}

.video-wrap__stage {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  background: #0b1630;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-wrap__player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b1630;
}

.video-wrap__player.is-boot {
  opacity: 0;
  pointer-events: none;
}

.video-wrap__player.is-boot::-webkit-media-controls,
.video-wrap__player.is-boot::-webkit-media-controls-enclosure,
.video-wrap__player.is-boot::-webkit-media-controls-start-playback-button,
.video-wrap__player.is-boot::-webkit-media-controls-overlay-play-button,
.video-wrap__player::-webkit-media-controls-start-playback-button,
.video-wrap__player::-webkit-media-controls-overlay-play-button {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.video-wrap__boot-mask {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: #0b1630;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.video-wrap__boot-mask[hidden] {
  display: none;
}

.video-wrap__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  pointer-events: none;
}

.video-wrap__play {
  position: relative;
  z-index: 1;
  width: 4.5rem;
  height: 4.5rem;
  margin-top: -12%;
  border-radius: 999px;
  background: rgba(12, 35, 64, 0.78);
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.video-wrap__boot-mask:hover .video-wrap__play,
.video-wrap__boot-mask:focus-visible .video-wrap__play {
  transform: scale(1.06);
  background: rgba(18, 122, 110, 0.92);
}

.video-wrap__play::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 0.28rem;
  border-style: solid;
  border-width: 0.72rem 0 0.72rem 1.2rem;
  border-color: transparent transparent transparent #fff;
}

/* —— Notice —— */
.notice {
  border-top: 1px solid var(--line);
}

.notice h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.notice p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* —— Footer —— */
.footer {
  background: linear-gradient(180deg, var(--navy-deep) 0%, #061220 100%);
  color: #94a3b8;
  text-align: center;
  padding: 3rem 1.25rem;
  font-size: 0.875rem;
}

.footer__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.footer__tagline {
  margin: 0.5rem 0 1rem;
  color: #cbd5e1;
}

.footer__legal {
  max-width: 520px;
  margin: 0 auto 1rem;
  line-height: 1.55;
}

.footer__copy {
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
}

/* —— Responsive —— */
@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }

  .nav__menu {
    display: none;
  }

  .nav__drawer {
    display: none !important;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  body { font-size: 17px; }

  .showcase__inner {
    padding: 6.5rem 1.25rem 4rem;
  }

  .hero-flow {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .hero-stats .hero-stat:last-child {
    grid-column: 1 / -1;
  }

  .vs-grid {
    grid-template-columns: 1fr;
  }

  .vs-mid {
    text-align: center;
    padding: 0.5rem 0;
  }

  .compare-visual {
    gap: 0.5rem 0.65rem;
    max-width: 100%;
  }

  .compare-visual__arrow {
    font-size: 1.25rem;
  }

  .section {
    padding: 3.25rem 1.25rem;
  }
}
/* ===== Portal redesign (light shell) ===== */
:root {
  --paper: #f4f7fb;
  --bg: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.94);
  --nav-drawer-bg: #ffffff;
  --mint: #127a6e;
  --mint-soft: #e7f7f4;
  --gold: #c9a227;
}

body.portal {
  background: var(--paper);
  color: #1c2130;
  padding-top: 64px;
}

body.portal main {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: clip;
}

/* Light always-on topbar */
body.portal .nav {
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

body.portal .nav--solid {
  background: #fff;
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(12, 35, 64, 0.06);
}

body.portal .nav__logo {
  color: var(--navy);
}

body.portal .nav__links a {
  color: #334155;
}

body.portal .nav__links a:hover,
body.portal .nav__links a[aria-current="page"] {
  color: var(--teal);
}

body.portal .nav__menu {
  border-color: var(--line);
  background: var(--soft);
  color: var(--navy);
}

body.portal .nav__drawer {
  background: #fff;
  border-bottom-color: var(--line);
}

body.portal .nav__drawer a {
  color: var(--navy);
  border-bottom-color: var(--line);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--teal);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.86rem;
}

.nav__cta:hover {
  background: var(--teal-dark);
  color: #fff !important;
}

body.portal .nav__drawer .nav__cta {
  margin: 0.75rem 0 0;
  text-align: center;
  border: none;
}

/* Short hub hero */
.hub-hero {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(18, 122, 110, 0.12), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  padding: 2.25rem 1.25rem 2rem;
}

.hub-hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

.hub-hero__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--teal);
  text-transform: uppercase;
}

.hub-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4.5vw, 2.55rem);
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.hub-hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.hub-hero__lead {
  margin: 0.85rem 0 0;
  max-width: 40em;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hub-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 20px rgba(18, 122, 110, 0.25);
}

.btn--primary:hover { background: var(--teal-dark); }

.btn--ghost {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}

.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn--navy {
  background: var(--navy);
  color: #fff;
}

/* Shortcut grid */
.shortcuts {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 0.75rem;
}

.shortcuts__head {
  margin-bottom: 0.85rem;
}

.shortcuts__head .portal-kicker { margin-bottom: 0.25rem; }

.shortcuts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.shortcut {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  row-gap: 0.15rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(12, 35, 64, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  min-height: 4.5rem;
}

.shortcut:hover {
  border-color: rgba(18, 122, 110, 0.45);
  box-shadow: 0 10px 24px rgba(18, 122, 110, 0.1);
  transform: translateY(-2px);
}

.shortcut__icon {
  grid-row: 1 / span 2;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--mint-soft);
  color: var(--teal);
  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1;
  margin: 0;
  flex-shrink: 0;
}

.shortcut__label {
  margin: 0;
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.shortcut__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  font-weight: 500;
}

.shortcut--wish .shortcut__icon {
  background: #fff0f5;
  color: #be185d;
}

.shortcut--app .shortcut__icon {
  background: var(--navy);
  color: #5eead4;
}

@media (min-width: 640px) {
  .shortcuts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .shortcuts__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Portal sections */
.portal-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.portal-section--soft {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.portal-section--soft > .portal-section__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.portal-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--teal);
  text-transform: uppercase;
}

.portal-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: var(--navy);
  line-height: 1.3;
}

.portal-lead {
  margin: 0.65rem 0 0;
  color: var(--muted);
  max-width: 42em;
  font-size: 1rem;
}

.portal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.portal-more {
  font-weight: 800;
  color: var(--teal);
  font-size: 0.92rem;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.tool-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(12, 35, 64, 0.04);
}

.tool-card img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--soft);
}

.tool-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.tool-card__link {
  display: inline-block;
  margin-top: 0.55rem;
  font-weight: 800;
  color: var(--teal);
  font-size: 0.88rem;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.mode-chip {
  padding: 0.85rem 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.mode-chip strong {
  display: block;
  color: var(--navy);
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.mode-chip span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.steps {
  display: grid;
  gap: 0.75rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.step h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  color: var(--navy);
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-hero {
  padding: 1.75rem 1.25rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.page-hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}

.page-hero--compact .page-hero__inner {
  text-align: center;
}

.page-hero--compact .page-hero__inner p {
  margin-left: auto;
  margin-right: auto;
  max-width: 36em;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  color: var(--navy);
}

.page-hero p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 40em;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
}

.faq details p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.live-mini {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.15rem;
}

.live-mini__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin-bottom: 0.85rem;
}

.live-mini__round {
  font-weight: 900;
  color: var(--navy);
  font-size: 1.15rem;
}

.live-mini__date {
  color: var(--muted);
  font-size: 0.9rem;
}

.live-mini__balls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.live-mini__ball {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  font-size: 0.9rem;
}

.live-mini__ball--yellow { background: #f4c430; color: #1c2130; }
.live-mini__ball--blue { background: #3b82f6; }
.live-mini__ball--red { background: #ef4444; }
.live-mini__ball--gray { background: #64748b; }
.live-mini__ball--green { background: #16a34a; }
.live-mini__plus {
  font-weight: 800;
  color: var(--muted);
  margin: 0 0.15rem;
}

.store-list {
  display: grid;
  gap: 0.65rem;
}

.store-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

.store-item strong {
  display: block;
  color: var(--navy);
}

.store-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.store-item .pick {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--teal);
}

.disclaimer-box {
  background: #fff8e8;
  border: 1px solid #f1e0a8;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  color: #5c4b12;
  font-size: 0.92rem;
  line-height: 1.6;
}

body.portal .footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 2.5rem 1.25rem;
  margin-top: 1rem;
}

body.portal .footer a { color: #5eead4; }

body.portal .footer__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 0.35rem;
}

body.portal .footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}

body.portal .footer__legal,
body.portal .footer__copy,
body.portal .footer__tagline {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

/* Keep lotto-live full-bleed under portal padding */
body.portal .lotto-live {
  margin-top: 0;
}

@media (min-width: 720px) {
  .hub-hero__inner { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mode-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* —— Wish / Play / Recommend doc —— */
.ios-note {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.ios-note a { color: var(--teal); font-weight: 700; text-decoration: underline; }
.ios-note--drawer { margin: 0.5rem 0 0; padding-bottom: 0.5rem; }
.ios-note--footer { color: rgba(255,255,255,0.55); }
.ios-note--footer a { color: #5eead4; }

.hub-hero--wish .hub-hero__inner { align-items: start; }
.wish-preview-inline { margin-top: 1.25rem; }
.wish-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.wish-cat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.wish-cat__emoji { font-size: 1.25rem; }
.wish-cat strong { color: var(--navy); font-size: 0.92rem; }
.wish-cat span { color: var(--muted); font-size: 0.78rem; line-height: 1.4; }

.play-shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.play-shot__frame { max-width: 220px; width: 100%; transition: transform 0.15s, box-shadow 0.15s; }
.play-shot:hover .play-shot__frame,
.play-shot:hover .play-shot__illust { transform: translateY(-3px); }
.play-shot__caption {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
}
.play-shot__illust {
  display: block;
  width: min(280px, 100%);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 32px rgba(12, 35, 64, 0.08);
}
.play-shot__illust-img { display: block; width: 100%; height: auto; }
.shot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  justify-items: center;
}

.recommend-doc { margin-top: 0.5rem; }
.detail-block {
  margin: 1.5rem 0;
  padding: 1.15rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.detail-block__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
}
.detail-block p { margin: 0; color: #334155; font-size: 0.95rem; line-height: 1.7; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.85rem;
}
.detail-card {
  padding: 1rem 1.05rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.detail-card h3 { margin: 0 0 0.25rem; font-size: 1rem; color: var(--navy); }
.detail-card__tag {
  margin: 0 0 0.5rem !important;
  font-size: 0.8rem !important;
  font-weight: 800;
  color: var(--teal) !important;
}
.detail-card p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.detail-list {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.65;
}
.detail-list li { margin-bottom: 0.45rem; }
.portal-more-wrap { margin: 1rem 0 1.25rem; }
.wish-cta { margin-top: 1.25rem; }

@media (min-width: 720px) {
  .wish-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* —— Download QR (Play + iOS) —— */
.btn--block { width: 100%; }
.dl-qr { margin-top: 1.25rem; }
.dl-qr__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}
.dl-qr__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: 0 10px 28px rgba(12, 35, 64, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.dl-qr__badge {
  display: inline-flex;
  margin: 0 0 0.4rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.dl-qr__badge--ios {
  background: #eef2ff;
  color: #3730a3;
}
.dl-qr__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
}
.dl-qr__desc {
  margin: 0.45rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  min-height: 2.8em;
}
.dl-qr__banner-link { display: block; margin-bottom: 0.85rem; }
.dl-qr__banner {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0c2340;
}
.dl-qr__code-link {
  display: flex;
  justify-content: center;
  margin: 0 auto 0.75rem;
}
.dl-qr__code {
  width: min(200px, 70vw);
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.5rem;
}
.dl-qr__url {
  display: block;
  margin: 0 0 0.85rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal);
  word-break: break-all;
  line-height: 1.4;
  min-height: 2.4em;
}
.dl-qr__card > .btn {
  margin-top: auto;
}
@media (min-width: 800px) {
  .dl-qr__grid { grid-template-columns: 1fr 1fr; }
  .dl-qr__code { width: 180px; }
}
/* —— Recommend stats charts —— */
.stats-board {
  margin: 1.25rem 0 1.75rem;
  padding: 1.25rem 1.2rem 1.4rem;
  background: linear-gradient(180deg, #fff 0%, #f7fafc 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(12, 35, 64, 0.05);
}
.stats-board__title {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  color: var(--navy);
}
.stats-board__lead {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 52em;
}
.stats-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1.1rem 0 1.2rem;
}
.stats-kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
}
.stats-kpi__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.stats-kpi__value {
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.stats-kpi__sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 700;
}
.stats-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
.stats-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.05rem 1.1rem;
}
.stats-card h4 {
  margin: 0;
  font-size: 0.98rem;
  color: var(--navy);
}
.stats-card__hint {
  margin: 0.25rem 0 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.chart-vbars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.35rem;
  min-height: 150px;
  padding-top: 0.25rem;
}
.chart-vbar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
}
.chart-vbar__col {
  width: 100%;
  max-width: 28px;
  border-radius: 8px 8px 4px 4px;
}
.chart-vbar__label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--navy);
}
.chart-vbar__val {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 700;
}
.chart-hbars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.chart-hbars li {
  display: grid;
  grid-template-columns: 4.5rem 1fr 2rem;
  gap: 0.5rem;
  align-items: center;
}
.chart-hbars__name {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--navy);
}
.chart-hbars__track {
  height: 10px;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
}
.chart-hbars__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.chart-hbars__val {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  text-align: right;
}
.stats-card__donut {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.chart-donut {
  --odd: 50;
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(#127a6e 0 calc(var(--odd) * 1%), #94a3b8 0);
}
.chart-donut__ring {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #fff;
}
.chart-donut__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  z-index: 1;
}
.chart-donut__center strong {
  font-size: 1.2rem;
  color: var(--navy);
}
.chart-donut__center span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
}
.chart-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #334155;
}
.chart-legend i {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 3px;
  margin-right: 0.4rem;
}
.flow-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
}
.flow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.flow-step span {
  grid-row: 1 / span 2;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  align-self: center;
}
.flow-step strong {
  color: var(--navy);
  font-size: 0.95rem;
}
.flow-step em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.82rem;
}
.detail-card {
  position: relative;
  padding-top: 1.35rem;
}
.detail-card__num {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  font-size: 0.72rem;
  font-weight: 900;
  color: #94a3b8;
}
.detail-block--rich {
  background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}
@media (min-width: 720px) {
  .stats-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-card--wide { grid-column: 1 / -1; }
  .flow-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .flow-step {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .flow-step span { grid-row: auto; margin-bottom: 0.35rem; }
}
/* —— Lotto search (result / stores) —— */
.ls {
  max-width: min(960px, var(--maxw));
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 1.25rem 2.5rem;
  width: 100%;
  box-sizing: border-box;
}
.ls-toolbar {
  display: grid;
  gap: 0.75rem;
  margin: 0 auto 1.25rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(12, 35, 64, 0.05);
  max-width: 720px;
}
.ls-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}
.ls-toolbar__label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--muted);
  margin-right: 0.25rem;
}
.ls-toolbar input[type="number"],
.ls-toolbar input[type="search"] {
  width: 7.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  color: var(--navy);
}
.ls-toolbar input[type="search"] {
  width: min(100%, 280px);
  flex: 1;
}
.ls-status {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.ls-round {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem 1.25rem 1.5rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 10px 28px rgba(12, 35, 64, 0.04);
  max-width: 720px;
  text-align: center;
}
.ls-round__meta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--navy);
}
.ls-round__meta p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.ls-round__balls {
  margin: 1rem auto 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
}
.ls-round__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 auto 1rem;
  justify-content: center;
  font-size: 0.88rem;
  color: var(--muted);
}
.ls-round__facts strong { color: var(--navy); }
.ls-prize {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin: 0 auto 1.15rem;
  max-width: 520px;
  text-align: left;
}
.ls-prize > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--paper);
  border-radius: 12px;
  border: 1px solid var(--line);
}
.ls-prize span { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.ls-prize strong { font-size: 1.1rem; color: var(--navy); }
.ls-prize em { font-style: normal; font-size: 0.82rem; color: var(--teal); font-weight: 800; }
.ls-stores-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.65rem;
}
.ls-stores-head h3 { margin: 0; font-size: 1.05rem; color: var(--navy); }
.ls-stores-head em { font-style: normal; color: var(--teal); font-weight: 800; font-size: 0.9rem; }
.ls-stores {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.ls-stores li {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.ls-stores strong { display: block; color: var(--navy); }
.ls-stores span { color: var(--muted); font-size: 0.86rem; }
.ls-stores .pick,
.store-item .pick {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--teal);
}
.ls-empty { color: var(--muted); font-size: 0.92rem; }
.ls-more-hint { margin: 0.55rem 0 0; font-size: 0.82rem; color: var(--muted); }
.ls-list-head { margin: 0 0 0.75rem; }
.ls-list-head h2 { margin: 0; font-size: 1.15rem; color: var(--navy); }
.ls-list-head p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.88rem; }
.ls-history { display: grid; gap: 0.4rem; }
.ls-history__row {
  display: grid;
  grid-template-columns: 5.5rem 6.5rem 1fr;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font: inherit;
}
.ls-history__row:hover,
.ls-history__row.is-active {
  border-color: rgba(18, 122, 110, 0.45);
  background: #f3fbf9;
}
.ls-history__no { font-weight: 800; color: var(--navy); font-size: 0.9rem; }
.ls-history__date { color: var(--muted); font-size: 0.8rem; }
.ls-history__balls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: flex-end;
}
.ls-dot {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  font-style: normal;
}
.ls-dot--yellow { background: #f4c430; color: #1c2130; }
.ls-dot--blue { background: #3b82f6; }
.ls-dot--red { background: #ef4444; }
.ls-dot--gray { background: #64748b; }
.ls-dot--green { background: #16a34a; }
.ls-dot--bonus { background: #0c2340; }
.ls-stats { margin-top: 1.75rem; }
.ls-stats__head { margin-bottom: 1rem; }
.ls-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}
.ls-kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
}
.ls-kpi span { display: block; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.ls-kpi strong { font-size: 1.2rem; color: var(--navy); }
.ls-stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.ls-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem 1.05rem;
}
.ls-card h3 { margin: 0 0 0.75rem; font-size: 0.95rem; color: var(--navy); }
.ls-vbars {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  min-height: 110px;
}
.ls-vbar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.ls-vbar__col {
  width: 100%;
  max-width: 26px;
  border-radius: 8px 8px 4px 4px;
}
.ls-vbar span { font-size: 0.7rem; font-weight: 800; color: var(--navy); }
@media (min-width: 720px) {
  .ls-prize { grid-template-columns: 1fr 1fr; }
  .ls-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ls-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ls-history__row { grid-template-columns: 6rem 7rem 1fr; }
}
@media (max-width: 640px) {
  .ls-history__row { grid-template-columns: 1fr 1fr; }
  .ls-history__balls { grid-column: 1 / -1; justify-content: flex-start; }
}
/* —— Result / store search —— */
.page-hero--compact { padding-bottom: 1rem; }
.ls {
  max-width: min(960px, var(--maxw));
  margin: 0 auto;
  padding: 1rem 1.25rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
}
.ls-foot {
  max-width: min(960px, var(--maxw));
  margin: 0 auto;
  padding: 0 1.25rem 2.75rem;
  width: 100%;
  box-sizing: border-box;
}
.dh-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(12, 35, 64, 0.06);
  width: 100%;
}
.dh-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}
.dh-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.95rem 0.5rem;
  font: inherit;
  font-weight: 800;
  color: #64748b;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}
.dh-tab.is-active {
  color: var(--navy);
  background: #fff;
  border-bottom-color: var(--teal);
}
.dh-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.dh-toolbar__label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--navy);
}
.dh-toolbar__or {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 700;
}
.dh-select, .dh-input {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
}
.dh-select { min-width: min(100%, 220px); }
.dh-input { width: 6.5rem; }
.dh-status {
  margin: 0;
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  color: var(--muted);
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.dh-result, .dh-stores, .dh-stats { padding: 1.35rem 1.25rem 1.6rem; }
.dh-result__head { text-align: center; margin-bottom: 1rem; }
.dh-result__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--navy);
}
.dh-result__head em { font-style: normal; color: var(--teal); }
.dh-result__head p { margin: 0.35rem 0 0; color: var(--muted); }
.dh-result__nums {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin: 0.5rem 0 0.75rem;
}
.dh-ball {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.05rem;
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.12);
}
.dh-ball--yellow { background: #fbc400; color: #1a1a1a; }
.dh-ball--blue { background: #69c8f2; }
.dh-ball--red { background: #ff7272; }
.dh-ball--gray { background: #8a8a8a; }
.dh-ball--green { background: #b0d840; color: #1a1a1a; }
.dh-ball--bonus { outline: 2px solid var(--navy); outline-offset: 2px; }
.dh-ball-sep { font-weight: 900; color: #94a3b8; margin: 0 0.15rem; }
.dh-result__meta {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
}
.dh-section-title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  color: var(--navy);
  text-align: center;
}
.dh-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 720px;
  margin: 0 auto;
}
.dh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 520px;
}
.dh-table th, .dh-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.dh-table th {
  background: #0c2340;
  color: #fff;
  font-weight: 800;
}
.dh-table tr:last-child td { border-bottom: 0; }
.dh-table tr:nth-child(even) td { background: #f8fafc; }
.dh-table--stores { min-width: 640px; }
.dh-table--stores td:nth-child(2),
.dh-table--stores td:nth-child(3) { text-align: left; }
.dh-table-wrap:has(.dh-table--stores) { max-width: 100%; }
.dh-note {
  margin: 0.85rem auto 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 40em;
  text-align: center;
}
.dh-actions { margin-top: 1rem; display: flex; justify-content: center; }
.dh-store-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  justify-content: center;
}
.dh-store-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font: inherit;
  font-weight: 800;
  color: #64748b;
  cursor: pointer;
}
.dh-store-tab.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.dh-store-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  justify-content: center;
}
.dh-store-filters select,
.dh-store-filters input {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
}
.dh-store-filters input { flex: 1; min-width: 180px; max-width: 360px; }
.dh-store-count {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.dh-store-count strong { color: var(--navy); }
.dh-pick {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
}
.dh-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  line-height: 1.7;
}
.dh-empty .btn { margin-top: 0.75rem; }
.ls-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}
.ls-stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 720px) {
  .ls-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ls-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .dh-toolbar .btn { flex: 1 1 auto; }
  .dh-ball { width: 2.55rem; height: 2.55rem; font-size: 0.92rem; }
}
