/* Kaikki lottopelit – reference-driven lottery hub */
.lottery-hub-page {
  --lottery-yellow: #ffd400;
  --lottery-yellow-soft: #fff5a6;
  --lottery-blue: #073b82;
  --lottery-ink: #171923;
  --lottery-muted: #687180;
  --lottery-line: #dfe5ed;
  background: #fff;
  color: var(--lottery-ink);
  max-width: 100%;
  overflow-x: hidden;
}

.lottery-hub-page .header .pagebar { display: none; }

.lottery-subnav {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid #e3b500;
  background: var(--lottery-yellow);
}

.lottery-subnav-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: min(1380px, calc(100% - 48px));
  min-height: 54px;
  margin-inline: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.lottery-subnav-track::-webkit-scrollbar { display: none; }
.lottery-subnav a {
  position: relative;
  flex: 0 0 auto;
  padding: 18px 2px 15px;
  color: #171923;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
}
.lottery-subnav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: #e52800;
}

.lottery-page {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

.lottery-hub-main { padding: 38px 0 74px; }
.lottery-breadcrumb { margin: 0 0 22px; color: var(--lottery-muted); font-size: .84rem; }
.lottery-breadcrumb a { color: var(--lottery-blue); text-decoration: none; }
.lottery-title-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.lottery-kicker { margin: 0 0 5px; color: var(--lottery-blue); font-size: .78rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.lottery-title-row h1 { margin: 0; color: #102d5b; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: .96; letter-spacing: -.05em; }
.lottery-title-row > p { max-width: 470px; margin: 0 0 4px; color: #536071; font-size: 1.03rem; line-height: 1.5; }

.lottery-hero {
  position: relative;
  min-height: 390px;
  margin-bottom: 48px;
  overflow: hidden;
  border-radius: 14px;
  background: #f2f6f9;
  box-shadow: 0 12px 34px rgba(9, 41, 84, .13);
}
.lottery-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lottery-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(46%, 510px);
  min-height: 390px;
  padding: 44px;
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.91) 74%, rgba(255,255,255,0) 100%);
}
.lottery-hero-copy span { padding: 5px 10px; border-radius: 999px; background: var(--lottery-yellow); color: #17213a; font-size: .76rem; font-weight: 800; }
.lottery-hero-copy h2 { max-width: 410px; margin: 13px 0 10px; color: #0a3475; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -.04em; }
.lottery-hero-copy p { max-width: 40ch; margin: 0 0 20px; color: #465267; line-height: 1.52; }
.lottery-hero-copy .btn { background: var(--lottery-blue); border-color: var(--lottery-blue); color: #fff; }

.lottery-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.lottery-section-head h2 { margin: 0; color: #102d5b; font-size: 1.65rem; }
.lottery-section-head p { margin: 0; color: var(--lottery-muted); }
.lottery-card-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.lottery-game-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e3e8ef;
  border-radius: 11px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(16, 37, 70, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}
.lottery-game-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(16, 37, 70, .12); }
.lottery-game-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f3f6f9; }
.lottery-card-copy { display: flex; min-height: 128px; flex-direction: column; padding: 15px 16px 16px; }
.lottery-card-copy strong { color: #102d5b; font-size: 1.02rem; line-height: 1.15; }
.lottery-card-copy small { margin-top: 6px; color: var(--lottery-muted); line-height: 1.35; }
.lottery-card-copy em { margin-top: auto; padding-top: 14px; color: #07489d; font-size: .78rem; font-style: normal; font-weight: 800; }

.lottery-wide-promo {
  display: grid;
  grid-template-columns: 1.7fr .8fr;
  min-height: 300px;
  margin-top: 48px;
  overflow: hidden;
  border-radius: 14px;
  background: #f6a515;
}
.lottery-wide-promo img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.lottery-wide-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 38px; color: #13264a; }
.lottery-wide-copy h2 { margin: 0 0 10px; font-size: 2rem; line-height: 1.05; }
.lottery-wide-copy p { margin: 0 0 18px; line-height: 1.5; }
.lottery-wide-copy a { color: #0b367a; font-weight: 800; }

.lottery-quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--lottery-line); }
.lottery-quick-links a { display: flex; align-items: center; gap: 12px; color: #17213a; text-decoration: none; font-weight: 700; }
.lottery-quick-links b { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--lottery-yellow-soft); color: var(--lottery-blue); font-size: 1.2rem; }

@media (max-width: 1040px) {
  .lottery-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lottery-title-row { display: block; }
  .lottery-title-row > p { margin-top: 14px; }
}

@media (max-width: 760px) {
  .lottery-subnav-track { width: calc(100% - 24px); gap: 24px; }
  .lottery-page { width: calc(100% - 28px); }
  .lottery-hub-main { padding-top: 25px; }
  .lottery-hero { min-height: 0; background: #f4f7fa; }
  .lottery-hero > img { position: static; height: auto; aspect-ratio: 2.45 / 1; }
  .lottery-hero-copy { width: auto; min-height: 0; padding: 25px 22px 28px; background: #f4f7fa; }
  .lottery-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .lottery-card-copy { min-height: 122px; padding: 13px; }
  .lottery-wide-promo { grid-template-columns: 1fr; }
  .lottery-wide-promo img { min-height: 0; aspect-ratio: 2.45 / 1; }
  .lottery-quick-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 430px) {
  .lottery-title-row h1 { font-size: 2.55rem; }
  .lottery-title-row > p,
  .lottery-hero-copy h2 { overflow-wrap: anywhere; }
  .lottery-card-grid { grid-template-columns: 1fr; }
  .lottery-game-card img { aspect-ratio: 1 / 1; }
  .lottery-card-copy strong { font-size: .9rem; }
  .lottery-card-copy small { font-size: .72rem; }
  .lottery-quick-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .lottery-game-card, .lottery-game-card img { transition: none; }
}
