:root {
  --spruce: #6b2fb8;
  --spruce-deep: #4c1d78;
  --spruce-lift: #ede7ff;
  --paper: #f4f0ff;
  --ticket: #ffffff;
  --red: #6b2fb8;
  --red-btn: #6b2fb8;
  --red-btn-hover: #4c1d78;
  --brass: #ffca58;
  --mint: #7ef0c2;
  --ink: #201629;
  --fog: #ddd5ee;
  --muted: #6d6477;
  --line: #ddd5ee;
  --ice: #e9e3f8;
  --on-dark: #f4f0ff;
  --on-dark-dim: #d9d0e8;
  --shadow: 0 10px 30px rgba(43, 25, 67, 0.12);
  --font: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --display: "Archivo Black", "Space Grotesk", Arial, sans-serif;
  --wrap: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.25;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--spruce);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.header :focus-visible,
.scoreboard :focus-visible,
.promo :focus-visible,
.page-hero :focus-visible {
  outline-color: var(--ink);
}

.footer :focus-visible {
  outline-color: var(--ink);
}

.footer-bar :focus-visible {
  outline-color: var(--spruce);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  color: #fff;
  border-bottom: 1px solid var(--line);
}

.util {
  background: #fff;
  font-size: 0.875rem;
}

.util-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  min-height: 40px;
}

.util a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.util a:hover {
  color: var(--red);
}

.mainbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand nav tools";
  gap: 20px 28px;
  align-items: center;
  min-height: 76px;
  padding-block: 12px;
}

.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
  padding: 6px;
  background: var(--spruce);
  border-radius: 50%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-sub {
  display: none;
}

.nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
}

a.btn {
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.tools {
  grid-area: tools;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search input {
  width: 180px;
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  padding: 9px 16px;
  min-height: 44px;
}

.search input:focus {
  background: #fff;
  border-color: var(--red);
  outline: none;
}

.search input::placeholder {
  color: var(--muted);
}

.menu-btn {
  display: none;
  grid-area: menu;
  min-height: 44px;
  padding: 8px 16px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn-red {
  background: var(--red-btn);
  color: #fff;
}

.btn-red:hover {
  background: var(--red-btn-hover);
}

.btn-ghost {
  background: #fff;
  color: var(--red);
  border-color: var(--red);
}

.btn-ghost:hover {
  background: var(--ice);
}

#login-link.btn-ghost {
  background: var(--red-btn);
  color: #fff;
  border-color: transparent;
}

#login-link.btn-ghost:hover {
  background: var(--red-btn-hover);
}

#join-link.btn-red {
  background: #fff;
  color: var(--red);
  border-color: var(--red);
}

#join-link.btn-red:hover {
  background: var(--ice);
}

.btn-line {
  background: #fff;
  color: var(--red);
  border-color: #c7cfdb;
  min-height: 40px;
}

.btn-line:hover {
  background: var(--ice);
  border-color: var(--red);
  color: var(--red);
}

.btn-large {
  min-height: 48px;
  padding-inline: 18px;
}

.btn-block {
  width: 100%;
  margin-top: auto;
}

.scoreboard {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.scoreboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.7fr);
  gap: 36px;
  align-items: center;
  padding-block: 8px 4px;
}

.kicker {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  margin-bottom: 8px;
}

.scoreboard h1,
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.jackpot {
  margin-top: 8px;
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}

.draw-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  color: var(--muted);
}

.draw-line time {
  color: var(--ink);
  font-weight: 700;
}

.clock {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.clock-cell {
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 0 10px 0 0;
  text-align: left;
}

.clock-cell span {
  display: inline;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.clock-cell small {
  display: inline;
  margin-left: 3px;
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.text-link {
  color: var(--red);
  font-weight: 600;
}

.text-link:hover {
  text-decoration-thickness: 2px;
}

.last-draw {
  padding-bottom: 6px;
}

.balls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.ball {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--spruce);
  color: var(--ink);
  border: 0;
  box-shadow: 0 2px 0 #e2c200;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
}

.ball-extra {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--spruce);
}

.extra-label {
  margin-top: 10px;
  text-align: right;
  color: var(--muted);
  font-size: 0.85rem;
}

.lotto-band,
.home {
  background: transparent;
  padding: 28px 0 8px;
}

.home-title {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 600;
}

.lotto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(230px, 0.9fr) minmax(280px, 340px);
  column-gap: 22px;
  align-items: stretch;
}

.lotto-grid.is-signed-in {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
}

.lotto-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  height: 100%;
}

.lotto-feature,
.hero-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: var(--spruce);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-card:hover,
.lotto-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.lotto-feature img,
.hero-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-card-media {
  display: block;
  flex: 1 1 auto;
  min-height: 240px;
  overflow: hidden;
  background: #5b2d86;
}

.lotto-feature-copy,
.hero-card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 18px 20px 20px;
  background: var(--spruce);
}

.lotto-feature-copy p {
  margin: 0;
  font-weight: 700;
}

.lotto-pot,
.hero-card-pot {
  margin-top: 2px;
  font-family: var(--font);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-card-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.hero-card-pot,
.hero-card-meta {
  margin: 0;
}

.lotto-until,
.hero-card-meta {
  margin-top: 2px;
  color: #3d3514;
  font-size: 0.95rem;
  font-weight: 400;
}

.hero-card .clock {
  margin-top: 4px;
}

.hero-card .clock-cell small,
.hero-card .extra-label {
  color: #3d3514;
}

.hero-card .balls {
  justify-content: flex-start;
  margin-top: 8px;
}

.hero-card .ball {
  width: 36px;
  height: 36px;
  background: #fff;
  box-shadow: none;
  font-size: 0.95rem;
}

.hero-card .ball-extra {
  background: #070708;
  color: var(--spruce);
}

.hero-card-btn {
  margin-top: 12px;
  pointer-events: none;
}

.lotto-title {
  margin: 0;
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lotto-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.lotto-card a {
  display: grid;
  flex: 1 1 0;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.lotto-card a:last-child {
  border-bottom: 0;
}

.lotto-card a:hover {
  background: var(--paper);
}

.lotto-card a:hover strong {
  color: var(--red);
}

.lotto-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  background: #fff;
}

.lotto-card strong,
.lotto-card small {
  display: block;
}

.lotto-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.92rem;
}

.lotto-card svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.lotto-login {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  padding: 28px 24px 20px;
  box-shadow: var(--shadow);
}

.lotto-login h2 {
  margin: 0 0 18px;
  text-align: center;
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 700;
}

.lotto-login .form-error {
  margin-bottom: 10px;
}

.lotto-login input {
  margin-bottom: 12px;
  border-radius: 10px;
  min-height: 46px;
}

.lotto-login .btn {
  width: 100%;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: #c5c8cc;
  color: #fff;
}

.lotto-login form:valid .btn {
  background: var(--red-btn);
}

.lotto-login form:valid .btn:hover {
  background: var(--red-btn-hover);
}

.lotto-forgot {
  display: block;
  margin-top: 16px;
  text-align: center;
  color: var(--red);
  font-size: 0.95rem;
  line-height: 1.35;
}

.band {
  padding-block: 42px 8px;
}

#pelit {
  padding-bottom: 42px;
}

.band-tight {
  padding-top: 28px;
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2,
.promo h2,
.footer h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-weight: 600;
}

.section-head p,
.promo-copy {
  margin-top: 6px;
  max-width: 46rem;
  color: var(--muted);
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.section-head-row p {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.rail {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 8px 0 14px;
}

.stamps,
.rail-row {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}

.stamp {
  flex: 0 0 92px;
  scroll-snap-align: start;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 6px 4px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.15;
}

.stamp-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--spruce);
  color: var(--ink);
}

.stamp svg,
.stamp-icon img {
  width: 28px;
  height: 28px;
}

.stamp-hot .stamp-icon {
  background: var(--spruce);
}

.stamp-revontuli .stamp-icon { background: #c5b3ff; }
.stamp-satama .stamp-icon { background: #9ec5ff; }
.stamp-kymppi .stamp-icon { background: #ffb3ea; }
.stamp-aamu .stamp-icon { background: #ffe08a; }
.stamp-kuura .stamp-icon { background: #d5e6f5; }
.stamp-havu .stamp-icon { background: #b7e4c7; }
.stamp-kaista .stamp-icon { background: #b9d4ff; }

.stamp:hover {
  color: var(--red);
}

.stamp:hover .stamp-icon {
  transform: translateY(-2px);
}

.recent {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.recent li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.recent li:last-child {
  border-bottom: 0;
}

.recent-code {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--spruce);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0;
}

.recent strong {
  display: block;
  letter-spacing: -0.03em;
}

.recent li span {
  color: var(--muted);
  font-size: 0.92rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.chip {
  min-height: 40px;
  padding: 6px 16px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #c7cfdb;
  border-radius: 999px;
  font-weight: 600;
}

.chip:hover {
  border-color: var(--red);
  color: var(--red);
}

.chip[aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.ticket-grid,
.handy-grid {
  display: grid;
  gap: 12px;
  align-items: stretch;
}

.ticket-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.handy-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding-bottom: 36px;
}

.ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  padding: 0 0 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 0;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ticket-art {
  display: block;
  width: 100%;
  height: 132px;
  margin: 0 0 12px;
  object-fit: cover;
  object-position: center;
  background: #ebeff5;
}

.ticket:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.ticket[hidden] {
  display: none;
}

.ticket-kind,
.ticket h3,
.ticket-when,
.ticket-pot,
.ticket-price {
  padding-inline: 14px;
}

.ticket-kind {
  min-height: 0;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.ticket h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.ticket-when,
.ticket-pot {
  color: var(--muted);
  font-size: 0.86rem;
}

.ticket .btn-block {
  width: calc(100% - 28px);
  margin: 12px 14px 0;
}

.ticket-price {
  position: static;
  z-index: auto;
  margin: 2px 0 0;
  border: 0;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  letter-spacing: 0;
  padding: 0 14px;
  background: transparent;
  transform: none;
  font-variant-numeric: tabular-nums;
}

.ticket-small {
  min-height: 210px;
}

.ticket-small .ticket-art {
  height: 112px;
}

.ticket-small .ticket-price {
  font-size: 0.95rem;
}

.empty {
  margin-top: 8px;
  padding: 22px 0 8px;
  font-weight: 600;
}

.promo {
  background: transparent;
  color: var(--ink);
  padding-block: 12px 28px;
}

.promo-grid,
.promo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--ice);
  border-radius: 12px;
  padding: 28px 32px;
}

.promo h2 {
  font-size: 1.5rem;
  font-weight: 600;
  max-width: 28rem;
  line-height: 1.25;
}

.promo-copy {
  color: var(--ink);
  margin: 8px 0 0;
  max-width: 36rem;
}

.promo-art {
  background: var(--spruce-deep);
}

.promo-art svg {
  width: 100%;
  height: auto;
}

.footer {
  background: #fff;
  color: var(--ink);
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.page-hero .last-draw {
  background: var(--paper);
  border-radius: 12px;
  padding: 16px 18px;
}

.footer h2 {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 12px;
}

.footer .wrap {
  width: min(var(--wrap), 100%);
  max-width: 100%;
  box-sizing: border-box;
  padding-inline: 20px;
}

.footer-main {
  padding-block: 52px 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 36px 28px;
  min-width: 0;
}

.footer-col,
.footer-legal,
.footer-legal nav {
  min-width: 0;
  max-width: 100%;
}

.footer-col p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-hours {
  color: var(--ink);
  font-weight: 700;
}

.footer-grid a {
  display: block;
  text-decoration: none;
  padding: 4px 0;
  color: #3e4740;
}

.footer-grid a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-grid a.footer-chat {
  display: inline-flex;
  width: auto;
  margin-top: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
}

.footer-grid a.footer-chat:hover {
  background: var(--red-btn-hover);
  color: #fff;
  text-decoration: none;
}

.footer-games {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
}

.trust {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.trust-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 20px;
  margin-bottom: 16px;
}

.trust-head strong {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.trust-head span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px 12px;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  max-width: none;
  min-height: 0;
  padding: 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}

.trust-badge img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
}

.trust-badge-age {
  width: auto;
  justify-content: flex-start;
}

.trust-age {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.trust-badge:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.trust :focus-visible,
.disclosure :focus-visible {
  outline-color: var(--spruce);
}

.disclosure {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}

.disclosure-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--spruce);
  color: #171a17;
  font-weight: 800;
}

.disclosure p {
  margin: 0;
  font-size: 0.92rem;
}

.disclosure strong {
  color: var(--ink);
}

.footer-license {
  margin: 22px 0 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-license strong {
  color: var(--ink);
  font-weight: 600;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-lang {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
}

.fi-flag {
  width: 22px;
  height: 14px;
  flex: none;
  background:
    linear-gradient(#fff, #fff) 6px 0 / 5px 100% no-repeat,
    linear-gradient(#fff, #fff) 0 5px / 100% 4px no-repeat,
    #003580;
}

.footer-bar {
  background: #1c1e1c;
  color: var(--on-dark);
  text-align: center;
}

.footer-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding-block: 16px;
}

.footer-bar p {
  margin: 0;
  min-width: 0;
  max-width: min(48rem, 100%);
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: left;
}

.footer-bar a {
  color: #fff;
}

.age {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: 8px;
  border: 2px solid var(--on-dark);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}

@media (max-width: 1100px) {
  .ticket-grid,
  .handy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .mainbar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand menu"
      "tools tools"
      "nav nav";
    gap: 10px;
  }

  .menu-btn {
    display: inline-flex;
    justify-self: end;
    align-self: center;
  }

  .nav {
    display: none;
    flex-direction: column;
    gap: 0;
    padding-bottom: 8px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(23, 26, 23, 0.22);
  }

  .tools {
    flex-wrap: wrap;
  }

  .search {
    flex: 1 1 100%;
  }

  .search input {
    width: 100%;
  }

  .scoreboard-grid,
  .promo-grid,
  .lotto-grid,
  .lotto-grid.is-signed-in {
    grid-template-columns: 1fr;
  }

  .lotto-feature img,
  .hero-card-media {
    flex: none;
    height: 200px;
    min-height: 200px;
    aspect-ratio: auto;
  }

  .promo-grid,
  .promo-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 18px;
  }

  .lotto-card a {
    flex: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .balls,
  .extra-label {
    justify-content: flex-start;
    text-align: left;
  }

  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Sumoi Lottery foundation header, recoloured for Sumoi Lottery. */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  border: 0;
  background: var(--spruce);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.header .resp-bar {
  height: 40px;
  background: var(--spruce-deep);
}

.header .resp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.header .resp-toggle svg {
  width: 24px;
  height: 24px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
}

.header .mainbar {
  display: flex;
  width: 100%;
  min-height: 80px;
  margin: 0;
  padding: 0 24px;
  gap: 0;
  align-items: stretch;
}

.header .brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-width: 76px;
  margin-right: 12px;
  color: #fff;
}

.header .brand-mark {
  width: 50px;
  height: 39px;
  padding: 0;
  color: #fff;
  background: transparent;
  border-radius: 0;
}

.header .brand-name {
  display: none;
}

.header .nav {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  gap: 0;
  min-width: 0;
}

.header .nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 clamp(12px, 1.55vw, 24px);
  border: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.header .nav a:hover,
.header .nav a[aria-current="page"] {
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.14);
}

.header .tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.header .tools .btn {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 24px;
  white-space: nowrap;
}

.header .transfer-link {
  background: #fff;
  color: var(--ink);
}

.header .tool-link {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.header #login-link.btn-ghost {
  gap: 8px;
  min-width: 216px;
  background: #4c1d78;
  color: #fff;
  border-color: #4c1d78;
}

.header #login-link svg {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.header .search {
  position: relative;
  width: 40px;
  height: 40px;
}

.header .search input {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0;
  cursor: pointer;
  transition: width 0.18s ease, opacity 0.18s ease, padding 0.18s ease;
}

.header .search:focus-within input,
.header .search.is-open input {
  width: 180px;
  padding: 0 42px 0 14px;
  background: #fff;
  opacity: 1;
  cursor: text;
}

.header .search-btn {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #fff;
}

.header .search:focus-within .search-btn,
.header .search.is-open .search-btn {
  color: #6b2fb8;
}

.header .search-btn svg {
  width: 24px;
  height: 24px;
}

.header .pagebar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 30px 0 40px;
  background: #4c1d78;
}

.header .pagebar-links,
.header .pagebar-pills {
  display: flex;
  align-items: stretch;
  gap: 22px;
}

.header .pagebar a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.header .pagebar-links a:hover,
.header .pagebar-links a[aria-current="page"] {
  color: #fff;
}

.header .pagebar-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: #54e1be;
}

.header .pagebar-pills {
  align-items: center;
  gap: 12px;
}

.header .pagebar-pills a {
  min-height: 30px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  color: #fff;
}

.header .menu-btn {
  display: none;
}

@media (max-width: 1180px) {
  .header .mainbar { padding-inline: 16px; }
  .header .nav a { padding-inline: 11px; }
  .header .tools { gap: 8px; }
  .header .transfer-link { display: none; }
  .header #login-link.btn-ghost { min-width: 0; }
  .header .pagebar-links { gap: 14px; }
}

@media (max-width: 900px) {
  .header { position: relative; }
  .header .resp-bar { height: 36px; }
  .header .resp-toggle { height: 36px; padding-inline: 12px; }
  .header .mainbar {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "brand tools" "nav nav";
    min-height: 68px;
    padding: 0 12px;
    align-items: center;
  }
  .header .brand { grid-area: brand; min-width: 0; margin: 0; }
  .header .brand-mark { width: 44px; height: 34px; }
  .header .tools { grid-area: tools; justify-self: end; margin-right: 76px; }
  .header .tool-link,
  .header .search,
  .header .login-long { display: none; }
  .header #login-link.btn-ghost { min-width: 0; padding: 0 12px; }
  .header .menu-btn {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    justify-self: end;
    min-height: 40px;
    margin-left: 8px;
    padding: 0 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-weight: 700;
  }
  .menu-lines,
  .menu-lines::before,
  .menu-lines::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
  }
  .menu-lines { position: relative; }
  .menu-lines::before,
  .menu-lines::after { content: ""; position: absolute; left: 0; }
  .menu-lines::before { top: -6px; }
  .menu-lines::after { top: 6px; }
  .header .nav {
    grid-area: nav;
    display: none;
    flex-direction: column;
    margin: 0 -12px;
    padding: 8px 12px 12px;
    background: var(--spruce);
  }
  .header .nav.is-open { display: flex; }
  .header .nav a { min-height: 44px; padding: 0 12px; border-bottom: 1px solid rgba(255,255,255,.2); }
  .header .pagebar { display: none; }
}

@media (max-width: 480px) {
  .header .tools { margin-right: 48px; }
  .header #login-link.btn-ghost span { display: none; }
  .header #login-link.btn-ghost { width: 40px; padding: 0; }
  .header #login-link svg { width: 25px; height: 25px; }
  .header .menu-btn span:last-child { display: none; }
}

/* Sumoi Lottery foundation footer, adapted to Sumoi Lottery content and colours. */
.reference-footer {
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: #fff;
  color: #00114c;
}

.footer-center {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 32px 48px;
}

.footer-logo {
  position: absolute;
  top: 64px;
  left: 32px;
  display: flex;
  color: var(--red);
  text-decoration: none;
}

.footer-logo svg {
  width: 48px;
  height: auto;
  fill: currentColor;
}

.reference-footer-links {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  min-height: 260px;
  padding: 0 72px 64px 13%;
}

.reference-footer-column {
  min-width: 0;
}

.reference-footer .reference-footer-column h2 {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.reference-footer-column > a {
  display: block;
  padding: 2px 0;
  color: #00114c;
  font-size: 0.875rem;
  line-height: 1.5rem;
  text-decoration: none;
}

.reference-footer-column small {
  font-size: 0.75rem;
}

.external-icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 2px;
  vertical-align: -2px;
}

.reference-footer-column > a:hover,
.footer-bottom-links a:hover {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reference-footer-column .footer-chat-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin-top: 22px;
  padding: 3px 16px;
  border: 1px solid var(--red);
  border-radius: 20px;
  color: var(--red);
  font-weight: 700;
}

.reference-footer-column .footer-chat-button:hover {
  background: var(--red);
  color: #fff;
  text-decoration: none;
}

.footer-chat-button svg {
  width: 16px;
  height: 16px;
}

.footer-quick-links {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-quick-links a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: var(--ice);
  color: var(--red);
}

.footer-quick-links a:hover {
  background: var(--red);
  color: #fff;
}

.footer-quick-links svg {
  width: 18px;
  height: 18px;
}

.footer-language {
  position: absolute;
  right: 32px;
  bottom: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  font-size: 0.875rem;
  font-weight: 600;
}

.footer-language > svg {
  width: 10px;
  height: 10px;
}

.footer-language .fi-flag {
  width: 32px;
  height: 20px;
  border: 1px solid #e1e7f0;
  border-radius: 3px;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 32px;
  color: #00114c;
  opacity: 0.72;
  font-size: 0.75rem;
}

.footer-bottom-links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
}

.footer-bottom-links a {
  color: #00114c;
  line-height: 1.5rem;
  text-decoration: none;
}

.footer-disclaimer {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 112px;
  padding: 32px;
  background: #26282b;
  color: #fff;
}

.footer-disclaimer p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 760px;
  margin: 0;
  font-size: 0.92rem;
}

.footer-disclaimer svg {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  color: #fff;
}

.footer-disclaimer a {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .reference-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 28px;
    padding: 0 72px 72px 96px;
  }
  .footer-quick-links {
    top: auto;
    right: auto;
    bottom: 30px;
    left: 0;
    flex-direction: row;
  }
}

@media (max-width: 600px) {
  .footer-center { padding: 40px 24px 56px; }
  .footer-logo { position: static; align-items: flex-start; width: max-content; margin-bottom: 28px; }
  .footer-language { top: 54px; right: 24px; bottom: auto; }
  .reference-footer-links {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 0 80px;
  }
  .footer-quick-links { left: 0; bottom: 28px; }
  .footer-bottom-links { align-items: flex-start; flex-direction: column; gap: 18px; }
  .footer-disclaimer { padding: 40px 24px; }
  .footer-disclaimer p { flex-direction: column; gap: 18px; text-align: center; }
}

@media (max-width: 680px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 28px));
  }

  .ticket-grid,
  .handy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-lang {
    margin-left: 0;
  }

  .trust-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 10px;
  }

  .footer-bar-inner {
    align-items: flex-start;
  }

  .recent li {
    grid-template-columns: auto 1fr;
  }

  .recent .btn {
    grid-column: 1 / -1;
  }

  .clock-cell {
    min-width: 0;
    flex: 1 1 0;
  }

  .balls {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
  }

  .ball {
    width: auto;
    height: auto;
    aspect-ratio: 1;
    font-size: 1.15rem;
  }

  .jackpot,
  .jackpot-small,
  .hero-card-pot {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }
}

@media (max-width: 420px) {
  .ticket-grid,
  .handy-grid {
    grid-template-columns: 1fr;
  }

  .tools .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 8px;
  }
}

@media (max-width: 360px) {
  .wrap {
    width: calc(100% - 20px);
  }

  .panel {
    padding: 12px;
  }

  .num-grid {
    gap: 4px;
  }

  .num {
    min-height: 36px;
    height: auto;
    font-size: 1rem;
  }

  .slip-ball {
    width: 30px;
    height: 30px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .jackpot,
  .hero-card-pot {
    font-size: 1.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ticket,
  .btn,
  .stamp,
  .nav a {
    transition: none;
  }
}

.page-hero {
  background: #fff;
  color: var(--ink);
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.crumb {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.875rem;
}

.crumb a {
  color: var(--red);
  text-decoration: none;
}

.crumb a:hover {
  text-decoration: underline;
}

.lead {
  max-width: 40rem;
  margin-top: 8px;
  color: var(--muted);
}

.jackpot-small {
  margin-top: 12px;
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brass);
}

.page-hero .balls {
  gap: 6px;
}

.page-hero .ball {
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
}

.sheet {
  padding: 28px 0 56px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.7fr);
  gap: 22px;
  align-items: start;
}

.panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.panel p + p {
  margin-top: 8px;
}

.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.summary-price {
  font-family: var(--font);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.form label,
.stack-label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
}

.form input,
.form select,
.form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #c7cfdb;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
}

.check input {
  width: auto;
  min-height: 0;
  margin-top: 4px;
}

.form-error {
  background: #fde8e6;
  color: #7a1c16;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.form-ok {
  background: var(--ice);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.slip {
  display: grid;
  grid-template-columns: max-content minmax(200px, 240px);
  gap: 20px 28px;
  align-items: start;
}

.slip-board {
  width: max-content;
  max-width: 100%;
}

.slip-label {
  margin: 8px 0 0;
  font-weight: 600;
}

.slip-preview {
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 16px;
}

.slip-preview-title {
  margin: 0;
  font-weight: 700;
}

.slip-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #fff8d6;
}

.slip-ball {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px dashed #b7b39a;
  border-radius: 50%;
  background: #fff;
  font-weight: 700;
}

.slip-ball.is-on {
  border-style: solid;
  border-color: var(--spruce);
  background: var(--spruce);
}

.slip-ball-extra.is-on {
  background: #070708;
  border-color: #070708;
  color: var(--spruce);
}

.slip-preview .muted {
  margin: 10px 0 0;
}

#group-form {
  max-width: 860px;
}

#group-form > .btn {
  width: min(100%, 360px);
  margin-top: 16px;
}

.num-grid {
  display: grid;
  grid-template-columns: repeat(7, 44px);
  gap: 6px;
  width: max-content;
  max-width: 100%;
  margin: 10px 0 14px;
}

.num {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #c7cfdb;
  border-radius: 50%;
  background: #fff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
}

.num:hover {
  border-color: #e2c200;
}

.num[aria-pressed="true"] {
  background: var(--spruce);
  color: var(--ink);
  border-color: var(--spruce);
}

.num-extra[aria-pressed="true"] {
  background: #070708;
  color: var(--spruce);
  border-color: #070708;
}

.row-actions,
.qty {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.row-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  padding-inline: 8px;
}

@media (max-width: 480px) {
  .row-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .row-actions .btn {
    width: 100%;
    white-space: nowrap;
    font-size: 0.9rem;
    line-height: 1.15;
  }

  .row-actions .btn:nth-child(3) {
    grid-column: 1 / -1;
  }
}

#play-form {
  margin-top: 14px;
}

#play-form .btn {
  width: 100%;
}

.qty-value {
  min-width: 2ch;
  text-align: center;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
}

.row-list li,
.coupon-list li,
.message-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.row-list button,
.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose {
  max-width: 44rem;
}

.prose-wide {
  max-width: none;
}

.info-stack {
  display: grid;
  gap: 12px;
}

.prose h2 {
  margin: 22px 0 8px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.prose p,
.prose li {
  margin-bottom: 10px;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.draw-group {
  padding-bottom: 12px;
}

.draw-group h2 {
  margin: 18px 0 8px;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.draw-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.draw-card .balls {
  justify-content: flex-end;
}

.code-pill {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
}

.receipt {
  max-width: 680px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 24px 20px 18px;
  position: relative;
}

.split {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.narrow-form {
  max-width: 460px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.info-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 18px 18px 20px;
}

.info-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.info-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.faq {
  display: grid;
  gap: 0;
  margin-top: 8px;
}

.faq article {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.faq h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.store-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 18px;
}

.store-table th,
.store-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.store-table th {
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 860px) {
  .layout,
  .draw-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .draw-card .balls {
    justify-content: flex-start;
  }

  .slip {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .slip-board,
  .layout,
  .panel,
  .num-grid {
    width: 100%;
    min-width: 0;
  }

  .num-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .num {
    width: auto;
    max-width: 100%;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* Reference homepage */
.vk-main {
  background: #fff;
  color: #171923;
  padding-bottom: 72px;
}

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

.vk-categories {
  padding: 28px 0 20px;
  background: #fff;
}

.vk-categories .vk-page {
  display: grid;
  grid-template-columns: repeat(10, minmax(70px, 1fr));
  gap: 22px;
}

.vk-categories a {
  min-width: 0;
  color: #191b24;
  text-align: center;
  text-decoration: none;
  font-size: .78rem;
}

.vk-categories a span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 9px;
  background: #f7f8fa;
  overflow: hidden;
}

.vk-categories img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vk-categories strong {
  display: block;
  white-space: nowrap;
}

.vk-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
}

.vk-content > *,
.vk-section,
.vk-shelf,
.vk-deadlines {
  min-width: 0;
  max-width: 100%;
}

.vk-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .92fr) minmax(0, 1.02fr);
  gap: 22px;
  align-items: stretch;
}

.vk-feature,
.vk-draw-list,
.vk-login {
  min-height: 385px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 6px 26px rgba(15, 28, 56, .12);
  overflow: hidden;
}

.vk-feature {
  display: grid;
  grid-template-rows: 250px 1fr;
  color: inherit;
  text-decoration: none;
}

.vk-feature > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vk-feature > span {
  display: flex;
  flex-direction: column;
  padding: 18px 22px;
}

.vk-feature strong {
  font-size: 1.2rem;
  line-height: 1.15;
}

.vk-feature small {
  margin-top: 8px;
  color: #606675;
}

.vk-draw-list {
  overflow: visible;
  box-shadow: none;
  background: transparent;
}

.vk-draw-list h1 {
  height: 44px;
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
}

.vk-draw-list > div {
  height: calc(100% - 44px);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 6px 26px rgba(15, 28, 56, .12);
  overflow: hidden;
}

.vk-draw-list a {
  display: grid;
  grid-template-columns: 58px 1fr 20px;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 9px 18px;
  border-bottom: 1px solid #e6e8ed;
  color: inherit;
  text-decoration: none;
}

.vk-draw-list a:last-child { border-bottom: 0; }
.vk-draw-list img { width: 58px; height: 58px; object-fit: contain; }
.vk-draw-list span { display: grid; gap: 2px; }
.vk-draw-list small { color: #4e5565; }
.vk-draw-list svg { width: 18px; }

.vk-login {
  align-self: end;
  min-height: 341px;
  padding: 42px 42px 30px;
  color: #171923;
}

.vk-hero-grid.is-signed-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.vk-login h2 {
  margin: 0 0 28px;
  text-align: center;
  font-size: 1.15rem;
}

.vk-login .form { gap: 16px; }
.vk-login input { height: 48px; border-color: #7f8794; }
.vk-login .btn { height: 48px; border-radius: 999px; background: #9ba3ad; border-color: #9ba3ad; }
.vk-login .lotto-forgot { display: block; margin-top: 15px; text-align: center; color: #0571ce; font-size: .76rem; }

.vk-section > h2,
.vk-section-heading h2,
.vk-today > h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -.025em;
}

.vk-promo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.vk-promo-card {
  display: grid;
  grid-template-rows: 230px 1fr;
  min-height: 365px;
  color: inherit;
  text-decoration: none;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 22px rgba(15, 28, 56, .11);
  overflow: hidden;
}

.vk-promo-art {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #48b5d7;
}

.vk-promo-art.p1 { background: #bd6f21; }
.vk-promo-art.p2 { background: #39b6d2; }
.vk-promo-art.p3 { background: #bae1e2; }
.vk-promo-art.p4 { background: #071128; }

.vk-promo-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vk-card-copy {
  display: flex;
  flex-direction: column;
  padding: 17px 18px 15px;
}

.vk-card-copy strong { margin-bottom: 7px; font-size: .94rem; }
.vk-card-copy small { color: #747b88; }
.vk-card-copy em { margin-top: auto; padding-top: 15px; font-style: normal; font-size: .78rem; }

.vk-news > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.vk-news a {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  line-height: 1.25;
}

.vk-news img { width: 68px; height: 48px; object-fit: cover; border-radius: 6px; }
.vk-news strong { font-size: .84rem; }

.vk-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vk-shelf-controls { color: #969ca7; font-size: 1.45rem; }
.vk-deadline-track, .vk-shelf-track { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 10px; }
.vk-deadline-track::-webkit-scrollbar, .vk-shelf-track::-webkit-scrollbar { display: none; }

.vk-deadline-track a {
  flex: 0 0 228px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.vk-deadline-track b {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 9px;
  color: #fff;
  font-size: .9rem;
}

.deadline-purple { background: #7b19d8; }
.deadline-orange { background: #ff9200; }
.deadline-red { background: #df3562; }
.deadline-green { background: #70dec1; }
.vk-deadline-track span { display: grid; gap: 3px; }
.vk-deadline-track strong { font-size: .8rem; }
.vk-deadline-track small { color: #737986; font-size: .75rem; }

.vk-game-card {
  flex: 0 0 195px;
  color: inherit;
  text-decoration: none;
}

.vk-game-art {
  position: relative;
  display: block;
  height: 122px;
  margin-bottom: 9px;
  border-radius: 9px;
  overflow: hidden;
  background: #e8eaf0;
}

.vk-game-art::before {
  content: "Uutuus";
  position: absolute;
  z-index: 1;
  top: 7px;
  left: 7px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #ffdf00;
  font-size: .62rem;
  font-weight: 700;
}

.vk-game-art.casino::before { content: "Uudistettu"; }
.vk-game-art img { width: 100%; height: 100%; object-fit: cover; }
.vk-game-card strong, .vk-game-card small { display: block; }
.vk-game-card strong { font-size: .82rem; }
.vk-game-card small { margin-top: 4px; color: #717785; font-size: .72rem; }

.vk-quick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 12px 0;
}

.vk-quick-row a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #282c37;
  text-decoration: none;
  font-size: .87rem;
  font-weight: 650;
}

.vk-quick-row b {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eaf7ff;
  color: #082dff;
  font-size: 1.3rem;
}

.vk-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) repeat(2, minmax(0, 1fr));
  grid-template-rows: 330px 330px;
  gap: 20px;
}

.vk-editorial-grid > a,
.vk-editorial-bottom > a {
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 22px rgba(15, 28, 56, .11);
  color: inherit;
  text-decoration: none;
}

.vk-editorial-grid > a > img { width: 100%; height: 205px; object-fit: cover; }
.vk-editorial-grid > a > span { display: flex; min-height: 125px; flex-direction: column; padding: 16px 18px; }
.vk-editorial-grid > a strong { line-height: 1.2; }
.vk-editorial-grid > a small { margin-top: 8px; color: #757b87; font-size: .76rem; }
.vk-editorial-grid > a em { margin-top: auto; padding-top: 12px; font-size: .72rem; font-style: normal; }

.vk-editorial-grid .vk-editorial-lead {
  grid-row: 1 / 3;
  grid-template-rows: 1fr auto;
  background: #05045e;
  color: #fff;
}

.vk-editorial-grid .vk-editorial-lead > img { height: 520px; object-fit: cover; }
.vk-editorial-grid .vk-editorial-lead > span { min-height: 140px; padding: 28px 42px; }
.vk-editorial-grid .vk-editorial-lead strong { font-size: 2rem; }
.vk-editorial-grid .vk-editorial-lead small { color: #ccd0f1; }

.vk-editorial-bottom {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.vk-editorial-bottom > a { grid-template-rows: 205px auto auto; min-height: 300px; }
.vk-editorial-bottom img { width: 100%; height: 205px; object-fit: cover; }
.vk-editorial-bottom strong { padding: 14px 18px 5px; font-size: .86rem; }
.vk-editorial-bottom small { padding: 0 18px 18px; color: #747b88; font-size: .72rem; }

@media (max-width: 1050px) {
  .vk-categories .vk-page { grid-template-columns: repeat(5, 1fr); }
  .vk-hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vk-login { grid-column: 1 / -1; min-height: 0; }
  .vk-promo-grid { grid-template-columns: repeat(2, 1fr); }
  .vk-editorial-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .vk-editorial-grid .vk-editorial-lead { grid-row: 1 / 3; }
  .vk-editorial-grid > a:nth-child(4), .vk-editorial-grid > a:nth-child(5) { display: none; }
}

@media (max-width: 700px) {
  .header .mainbar { grid-template-columns: minmax(0, 1fr) auto; }
  .header .tools { margin-right: 48px; }
  .header #login-link.btn-ghost {
    width: 40px;
    min-width: 40px;
    padding: 0;
  }
  .header #login-link.btn-ghost span { display: none; }
  .header .brand-name { font-size: 1rem; }
  .vk-main { padding-bottom: 44px; }
  .vk-page { width: min(100% - 28px, 1280px); }
  .vk-categories { padding: 18px 0 10px; overflow: hidden; }
  .vk-categories .vk-page { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }
  .vk-categories a { flex: 0 0 70px; }
  .vk-categories a span { width: 58px; height: 58px; }
  .vk-content { gap: 25px; }
  .vk-hero-grid { grid-template-columns: 1fr; }
  .vk-feature, .vk-draw-list, .vk-login { min-height: 0; }
  .vk-feature { grid-template-rows: 210px auto; }
  .vk-draw-list h1 { height: auto; margin-bottom: 10px; }
  .vk-login { grid-column: auto; padding: 28px 22px; }
  .vk-hero-grid.is-signed-in { grid-template-columns: 1fr; }
  .vk-promo-grid { display: flex; overflow-x: auto; padding-bottom: 10px; }
  .vk-promo-card { flex: 0 0 280px; grid-template-rows: 175px 1fr; min-height: 310px; }
  .vk-news > div { grid-template-columns: 1fr; gap: 14px; }
  .vk-game-card { flex-basis: 168px; }
  .vk-game-art { height: 105px; }
  .vk-quick-row { grid-template-columns: 1fr 1fr; gap: 15px; }
  .vk-quick-row a { min-width: 0; font-size: .76rem; }
  .vk-quick-row b { flex: 0 0 44px; width: 44px; height: 44px; }
  .vk-editorial-grid { display: flex; overflow-x: auto; padding-bottom: 10px; }
  .vk-editorial-grid > a, .vk-editorial-grid .vk-editorial-lead { display: grid; flex: 0 0 280px; grid-template-rows: 190px auto; }
  .vk-editorial-grid .vk-editorial-lead > img { height: 190px; }
  .vk-editorial-grid .vk-editorial-lead > span { min-height: 130px; padding: 18px; }
  .vk-editorial-grid .vk-editorial-lead strong { font-size: 1.35rem; }
  .vk-editorial-bottom { display: flex; overflow-x: auto; }
  .vk-editorial-bottom > a { flex: 0 0 250px; }
}

/* Sumoi Lottery — orbital plum, mint and gold identity. */
body {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 18%, transparent 0 74px, rgba(107, 47, 184, .055) 75px 77px, transparent 78px),
    radial-gradient(circle at 88% 64%, transparent 0 112px, rgba(24, 167, 122, .05) 113px 115px, transparent 116px);
  background-size: 520px 520px, 680px 680px;
}

h1,
h2,
h3,
.brand-name,
.btn,
.nav a,
.pagebar a {
  font-family: var(--display);
}

.header {
  background: linear-gradient(105deg, #4c1d78 0 34%, #6b2fb8 72%, #7f42ca 100%);
  color: #f4f0ff;
  box-shadow: 0 2px 0 #201629;
}

.header .resp-bar { background: #201629; }
.header .resp-toggle svg { background: var(--spruce); }
.header .mainbar {
  max-width: 1536px;
  margin-inline: auto;
  padding-inline: 18px;
}

.header .brand {
  min-width: 215px;
  gap: 8px;
  color: #f4f0ff;
}

.header .brand-mark {
  width: 54px;
  height: 54px;
  padding: 2px;
  border-radius: 50%;
  background: #f4f0ff;
  object-fit: contain;
}

.header .brand-name {
  display: block;
  color: #f4f0ff;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.header .nav { flex-wrap: nowrap; }
.header .nav a { padding-inline: clamp(8px, 1vw, 14px); font-size: .92rem; letter-spacing: .01em; }
.header .tools { gap: 10px; }
.header #login-link.btn-ghost { min-width: 190px; }
.header .nav a:hover,
.header .nav a[aria-current="page"] { background: rgba(33, 26, 23, .2); }
.header #login-link.btn-ghost {
  background: #201629;
  border-color: #201629;
}
.header .transfer-link { background: #f4f0ff; color: #201629; }
.header .tool-link { border-color: #f4f0ff; color: #f4f0ff; }
.header .search:focus-within .search-btn,
.header .search.is-open .search-btn { color: var(--spruce); }
.header .pagebar { background: #201629; }
.header .pagebar-links a[aria-current="page"]::after { background: var(--mint); }
.header .pagebar-pills a { border-color: rgba(255, 248, 232, .65); }

.vk-main {
  background: transparent;
  color: var(--ink);
}
.vk-categories { background: rgba(244, 240, 255, .95); }
.vk-categories a { color: var(--ink); }
.vk-categories a span {
  width: 74px;
  height: 74px;
  border: 2px solid var(--ink);
  border-radius: 22px 6px 22px 6px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--brass);
}
.vk-categories img { object-fit: cover; }
.vk-categories strong { font-family: var(--display); font-size: .92rem; letter-spacing: .02em; }
.vk-feature,
.vk-draw-list > div,
.vk-login,
.vk-promo-card,
.vk-editorial-grid > a,
.vk-editorial-bottom > a {
  border: 1px solid rgba(33, 26, 23, .2);
  border-radius: 22px 7px 22px 7px;
  box-shadow: 6px 7px 0 rgba(33, 26, 23, .12);
}
.vk-feature { background: #201629; color: #f4f0ff; border-color: #7ef0c2; }
.vk-feature > span { position: relative; padding: 20px 24px 22px; }
.vk-feature small { color: #d9d0e8; }
.vk-kicker {
  width: max-content;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brass);
  color: var(--ink);
  font-size: .68rem;
  letter-spacing: .08em;
}
.vk-draw-list h1,
.vk-section h2 { color: var(--ink); }
.vk-draw-list a { border-color: var(--line); }
.vk-draw-list img { border-radius: 50%; object-fit: cover; }
.vk-login { background: #fbf9ff; color: var(--ink); }
.vk-login .btn { background: var(--spruce); border-color: var(--spruce); color: #fff; }
.vk-login .lotto-forgot { color: var(--spruce-deep); }
.vk-promo-art.p1,
.vk-promo-art.p2,
.vk-promo-art.p3,
.vk-promo-art.p4 { background: var(--ink); }
.vk-card-copy { background: #fbf9ff; }
.vk-game-art { border: 1px solid var(--ink); border-radius: 14px; }
.vk-game-art::before { background: var(--brass); color: var(--ink); }
.vk-quick-row b { background: var(--mint); color: var(--ink); }
.vk-editorial-grid .vk-editorial-lead { background: #201629; }
.vk-editorial-grid .vk-editorial-lead small { color: #d9d0e8; }
.deadline-purple { background: #2a315c; }
.deadline-orange { background: #d98224; }
.deadline-red { background: #6b2fb8; }
.deadline-green { background: #18a77a; }

.page-hero { background: #eee8ff; border-bottom-color: var(--ink); }
.panel,
.info-card,
.receipt { border: 1px solid rgba(33, 26, 23, .18); }

.reference-footer { background: #ece7f7; color: var(--ink); border-top: 2px solid var(--ink); }
.footer-logo { width: 58px; height: 58px; border-radius: 50%; background: #f4f0ff; }
.footer-logo img { width: 58px; height: 58px; object-fit: contain; }
.reference-footer .reference-footer-column h2 { color: var(--spruce-deep); font-family: var(--display); font-size: 1.12rem; }
.reference-footer-column > a,
.footer-bottom-links,
.footer-bottom-links a { color: var(--ink); }
.footer-quick-links a { background: #f4f0ff; color: var(--spruce); }
.footer-disclaimer { background: #201629; }

@media (max-width: 1180px) {
  .header .brand { min-width: 176px; }
  .header .brand-name { font-size: 1.2rem; }
}

@media (max-width: 900px) {
  .header .brand { min-width: 0; }
  .header .brand-mark { width: 44px; height: 44px; }
  .header .brand-name { display: block; font-size: 1.12rem; }
  .header .nav { background: var(--spruce-deep); }
}

@media (max-width: 700px) {
  .header .tools { display: none; }
  .header .mainbar { grid-template-columns: minmax(0, 1fr) auto; }
  .header .menu-btn { right: 12px; }
}

@media (max-width: 480px) {
  .header .brand-name { font-size: 1rem; }
  .vk-categories a span { box-shadow: 3px 3px 0 var(--brass); }
}
