/* Eigenes Layout. Farben selbst gewählt, im gelben Ton typischer Lotterie-Seiten,
   ohne fremde Logos, Wortmarken, Icons, Bilder oder Code zu übernehmen. */
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-700-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Eigenes Layout. Farben selbst gewählt, im gelben Ton typischer Lotterie-Seiten,
   ohne fremde Logos, Wortmarken, Icons, Bilder oder Code zu übernehmen. */
:root {
  --yellow: #f5da14;
  --yellow-deep: #c9b00c;
  --ink: #2a353c;
  --on-yellow: #2a353c; /* immer dunkel auf Gelb, auch im Dark Mode */
  --header-ink: #2a353c;
  --muted: #3e4a50;
  --red: #b10e0e;
  --green: #0b6b3c;
  --line: #c5c9cc;
  --ball-ring: #8e9498;
  --bg: #ffffff;
  --card: #fafafa;
  --soft: #f3f4f5;
  --focus: #2a353c;
  --inv-bg: #2a353c;
  --inv-fg: #ffffff;
  --space: 6px;
  --font: "Source Sans 3", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: 1.0625rem; /* 17px */
  --lh: 1.55;
  --prose: 65ch;
  --wrap: 72rem;
  --radius: 4px;
  --header-h: 56px;
  --shadow: 0 1px 0 rgba(42, 53, 60, 0.12);
}

html[data-theme="dark"] {
  --bg: #171d21;
  --card: #232c32;
  --ink: #e8ecee;
  --muted: #c5cbce;
  --line: #3c484e;
  --soft: #1c2429;
  --ball-ring: #9aa0a4;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  --focus: #e8ecee;
  --inv-bg: #e8ecee;
  --inv-fg: #171d21;
  --on-yellow: #2a353c;
  --header-ink: #2a353c;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
html[data-theme="dark"] { color-scheme: dark; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: var(--lh);
  font-size: var(--text);
  display: flex;
  flex-direction: column;
}

img, svg { max-width: 100%; height: auto; }
.nums, .amount, .stat-value, .ball, td.num, .countdown, table {
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--ink);
  text-underline-offset: 0.15em;
}
a:hover { text-decoration-thickness: 2px; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--yellow);
}

/* Gelbe Flächen: immer dunkle Schrift (#2a353c), nie Weiß oder --ink aus dem Dark Mode */
.site-head,
.crumbs,
.foot,
.btn-primary,
input[type="submit"],
.preset-row a[aria-current="true"],
.year-nav a[aria-current="page"],
.year-nav a:hover,
.ball.bonus {
  color: var(--on-yellow);
}
.site-head a,
.site-head .wordmark a,
.site-head .nav a,
.crumbs a,
.crumbs span,
.foot a,
.foot p,
.legal-acc > summary {
  color: var(--on-yellow);
}

.site-head :focus-visible,
.crumbs :focus-visible,
.foot :focus-visible,
.legal-acc > summary:focus-visible,
.lang-menu > summary:focus-visible,
.notify-menu > summary:focus-visible,
.nav-menu-toggle:focus-visible {
  outline-color: var(--on-yellow);
  box-shadow: 0 0 0 6px #fff;
}

.skip {
  position: absolute;
  left: var(--space);
  top: -4rem;
  z-index: 100;
  background: #2a353c;
  color: #fff;
  padding: 8px 12px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip:focus, .skip:focus-visible {
  top: var(--space);
  color: #fff;
  background: #2a353c;
  outline: 3px solid #fff;
  box-shadow: 0 0 0 6px var(--yellow);
}

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--yellow);
  color: var(--on-yellow);
  box-shadow: var(--shadow);
  overflow: visible;
}
.site-head a { text-decoration: none; }
.site-head .wordmark a:hover,
.site-head .nav a:hover,
.site-head .wordmark a:focus-visible,
.site-head .nav a:focus-visible { text-decoration: underline; }

.head-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px 8px;
  min-height: var(--header-h);
  padding-block: 0;
}
.wordmark {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.2;
  flex: 0 0 auto;
}
.wordmark a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
}
.nav-desktop {
  margin-inline-start: 4px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}
.nav-desktop > a,
.nav-desktop > .nav-drop {
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
}
.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  min-width: 44px;
  padding: 4px 10px;
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius);
  color: var(--on-yellow);
  white-space: nowrap;
}
.nav a[aria-current="page"],
.nav a[aria-current="true"] {
  background: var(--on-yellow);
  color: var(--yellow);
  text-decoration: none;
}

/* Theme, Sprache, Mobilmenü: rechts, ohne Trennlinie */
.header-tools {
  display: flex;
  align-items: center;
  gap: 0;
  margin-inline-start: auto;
  padding: 0;
  border: 0;
  flex: 0 0 auto;
}

/* Account control: left of the bell. position:relative only on .user-menu, never on .header-tools. */
.user-slot {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  line-height: 0;
}
.user-signin,
.user-drawer-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  margin: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--on-yellow);
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}
.user-signin:hover,
.user-signin:focus-visible,
.user-menu > summary:hover,
.user-menu > summary:focus-visible,
.user-menu[open] > summary,
.user-drawer-signin:hover,
.user-drawer-signin:focus-visible {
  background: rgba(42, 53, 60, 0.08);
}
.user-signin .icon-user,
.user-drawer-signin .icon-user {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}
.user-menu {
  margin: 0;
  padding: 0;
  line-height: 0;
  position: relative;
}
.user-menu:not([open]) > .user-panel { display: none; }
.user-menu > summary {
  display: list-item;
  list-style: none;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  line-height: 0;
  color: var(--on-yellow);
  cursor: pointer;
  border-radius: var(--radius);
  background: transparent;
  border: 0;
}
.user-menu > summary::-webkit-details-marker,
.user-menu > summary::marker {
  display: none;
  content: none;
  width: 0;
  height: 0;
  font-size: 0;
}
.user-menu > summary .summary-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}
.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(42, 53, 60, 0.12);
  color: var(--on-yellow);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}
.user-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  z-index: 70;
  box-sizing: border-box;
  min-width: 10.5rem;
  margin: 0;
  padding: 6px 0;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(42, 53, 60, 0.18);
  line-height: 1.4;
}
.user-panel a,
.user-panel button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  min-height: 44px;
}
.user-panel a:hover,
.user-panel a:focus-visible,
.user-panel button:hover,
.user-panel button:focus-visible {
  background: var(--soft);
}
.user-panel form { margin: 0; }
.user-drawer-slot {
  margin: 0 0 6px;
  padding: 0 0 6px;
  border-bottom: 1px solid rgba(42, 53, 60, 0.18);
}
.user-drawer-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-height: 44px;
  color: var(--on-yellow);
}
.user-drawer-in a,
.user-drawer-in button {
  color: var(--on-yellow);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 600;
  padding: 8px 0;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
}
.foot-legal { margin: 0 0 8px; }
.foot-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.foot-legal a:hover,
.foot-legal a:focus-visible { text-decoration-thickness: 2px; }

.auth-page { max-width: 40rem; }
.auth-form, .account-panel { margin: 0 0 1.25rem; }
.auth-age {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
}
.auth-age input { margin-top: 0.3em; flex: 0 0 auto; width: 1.1em; height: 1.1em; }
.auth-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.btn-auth { min-height: 44px; }
.btn-auth:disabled { opacity: 0.55; cursor: not-allowed; }
.auth-soon { font-weight: 500; opacity: 0.8; margin-inline-start: 0.35em; }
.auth-error, .auth-ok { margin: 0 0 12px; padding: 8px 10px; border-radius: var(--radius); }
.auth-error { background: #fde8e8; color: #7a1f1f; }
.auth-ok { background: #e7f6e7; color: #1a4d1a; }
html[data-theme="dark"] .auth-error { background: #3a1c1c; color: #ffc9c9; }
html[data-theme="dark"] .auth-ok { background: #1c3a1c; color: #c9f0c9; }
.account-facts { display: grid; gap: 8px 16px; margin: 0 0 16px; }
.account-facts div { margin: 0; }
.account-facts dt { font-size: 0.8125rem; opacity: 0.75; }
.account-facts dd { margin: 0; font-weight: 600; }
.account-username label { display: block; font-weight: 700; }
.account-username input[type="text"] {
  display: block;
  width: 100%;
  max-width: 20rem;
  min-height: 44px;
  margin-top: 4px;
  padding: 4px 8px;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}
.account-delete { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.btn-danger { color: #7a1f1f; border-color: #c98989; }
.btn-danger:disabled { opacity: 0.55; cursor: not-allowed; }
html[data-theme="dark"] .btn-danger { color: #ffc9c9; border-color: #8a4a4a; }
.legal-draft {
  margin: 0 0 12px;
  padding: 8px 10px;
  background: rgba(245, 218, 20, 0.28);
  border-radius: var(--radius);
  font-weight: 600;
}
.legal-page .prose { max-width: 42rem; }
.legal-page .prose h2 { margin: 1.25rem 0 0.5rem; font-size: 1.125rem; }
.legal-page .prose ul { margin: 0 0 1rem; padding-inline-start: 1.2rem; }

.theme-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--on-yellow);
  cursor: pointer;
}

.notify-menu {
  margin: 0;
  padding: 0;
  line-height: 0;
  position: relative; /* tooltip containing block only — never set this on .header-tools */
}
.notify-menu:not([open]) > .notify-panel { display: none; }
.notify-menu > summary {
  display: list-item;
  list-style: none;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  line-height: 0;
  color: var(--on-yellow);
  cursor: pointer;
  border-radius: var(--radius);
  background: transparent;
  border: 0;
}
.notify-menu > summary::-webkit-details-marker,
.notify-menu > summary::marker {
  display: none;
  content: none;
  width: 0;
  height: 0;
  font-size: 0;
}
.notify-menu > summary .summary-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  line-height: 0;
}
.notify-menu > summary .icon-bell {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}
.notify-menu > summary:hover,
.notify-menu > summary:focus-visible,
.notify-menu[open] > summary {
  background: rgba(42, 53, 60, 0.08);
}
.notify-panel {
  /* Positioned against .notify-menu (not .header-tools) so the mobile drawer
     still uses .site-head as its containing block and stays full width. */
  --notify-shift: 0px;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  right: auto;
  z-index: 70;
  box-sizing: border-box;
  width: max-content;
  max-width: min(260px, calc(100vw - 24px));
  margin: 0;
  padding: 10px 12px;
  background: #f5da14;
  color: #2a353c;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(42, 53, 60, 0.18), 0 1px 3px rgba(42, 53, 60, 0.12);
  transform: translateX(calc(-50% + var(--notify-shift)));
  overflow: visible;
  line-height: 1.4;
}
.notify-panel::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-bottom-color: #f5da14;
  border-top-width: 0;
  transform: translateX(calc(-50% - var(--notify-shift)));
  pointer-events: none;
}
.notify-panel .notify-title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.3;
  color: #2a353c;
}
.notify-panel p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #2a353c;
}
html[data-theme="dark"] .notify-panel,
html[data-theme="dark"] .notify-panel .notify-title,
html[data-theme="dark"] .notify-panel p {
  background: #f5da14;
  color: #2a353c;
}
html[data-theme="dark"] .notify-panel::after {
  border-bottom-color: #f5da14;
}
.nav-menu-toggle {
  appearance: none;
  display: list-item;
  list-style: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--on-yellow);
  cursor: pointer;
  box-sizing: border-box;
  line-height: 0;
}
.nav-menu-toggle .summary-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  gap: 0;
  line-height: 0;
}
.nav-menu-toggle::-webkit-details-marker,
.nav-menu-toggle::marker {
  display: none;
  content: none;
  width: 0;
  height: 0;
  font-size: 0;
}
.theme-toggle:hover,
.theme-toggle:focus-visible,
.notify-menu > summary:hover,
.notify-menu > summary:focus-visible,
.notify-menu[open] > summary,
.nav-menu-toggle:hover,
.nav-menu-toggle:focus-visible,
.nav-menu[open] > .nav-menu-toggle {
  background: rgba(42, 53, 60, 0.08);
}
.theme-toggle svg,
.nav-menu-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}
html:not([data-theme="dark"]) .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.nav-menu-toggle .icon-close { display: none; }
.nav-menu[open] > .nav-menu-toggle .icon-hamburger { display: none; }
.nav-menu[open] > .nav-menu-toggle .icon-close { display: block; }

.lang {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 0;
}
.lang-menu {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  line-height: 0;
}
.lang-menu > summary {
  display: list-item;
  list-style: none;
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  min-width: 44px;
  margin: 0;
  padding: 0 8px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 0;
  color: var(--on-yellow);
  cursor: pointer;
  border-radius: var(--radius);
  border: 1px solid transparent;
}
.lang-menu > summary::-webkit-details-marker,
.lang-menu > summary::marker {
  display: none;
  content: none;
  width: 0;
  height: 0;
  font-size: 0;
}
/* Inner flex wrapper fills the 44px hit area; never display:flex on summary (Safari). */
.lang-menu > summary .summary-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  gap: 6px;
  line-height: 1;
}
.lang-menu > summary .summary-inner::after {
  content: "";
  display: block;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin: 0;
  flex-shrink: 0;
  box-sizing: border-box;
}
.lang-menu[open] > summary .summary-inner::after {
  transform: rotate(225deg);
  margin: 0;
}
.lang-menu[open] > summary {
  background: rgba(42, 53, 60, 0.08);
  border-color: var(--on-yellow);
}
.lang-code { font-weight: 700; letter-spacing: 0.02em; line-height: 1; }
.flag-svg {
  width: 1.15rem;
  height: 0.75rem;
  display: block;
  flex-shrink: 0;
  border: 1px solid rgba(42, 53, 60, 0.45);
  border-radius: 1px;
  background: #fff;
}
.lang-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 70;
  margin: 0;
  padding: 4px;
  list-style: none;
  min-width: 11.5rem;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(42, 53, 60, 0.2);
}
.lang-panel a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: var(--radius);
  color: var(--ink) !important;
  text-decoration: none;
  font-weight: 600;
}
.lang-panel a:hover,
.lang-panel a:focus-visible { background: var(--soft); text-decoration: none; }
.lang-panel a[aria-current="true"] {
  background: var(--yellow);
  color: var(--on-yellow) !important;
}
.lang-panel a:focus-visible {
  outline-color: var(--ink);
  box-shadow: 0 0 0 3px var(--yellow);
}

/* Lotterien-Dropdown: Hover Desktop; Mobilgruppen standardmäßig zu, außer aktuelle Sektion */
.nav-drop { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; min-width: max-content; white-space: nowrap; }
.nav-drop-link { position: relative; }
.nav-drop-trigger {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: max-content;
  min-height: 44px;
  white-space: nowrap;
  border-radius: var(--radius);
}
.nav-drop-trigger > a.nav-drop-link,
.nav-drop-trigger > button.nav-drop-link {
  padding-inline-end: 2px;
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}
.nav-drop-label { white-space: nowrap; }
.nav-drop-toggle {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  margin: 0;
  padding: 0 8px 0 2px;
  font: inherit;
  color: var(--on-yellow);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 44px;
  border-radius: 0 var(--radius) var(--radius) 0;
  flex: 0 0 auto;
}
.nav-drop-toggle:focus { outline: none; }
.nav-desktop .nav-drop-trigger:focus-within {
  outline: 3px solid var(--on-yellow);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #fff;
}
.nav-desktop .nav-drop-trigger:focus-within > .nav-drop-link:focus-visible,
.nav-desktop .nav-drop-trigger:focus-within > .nav-drop-toggle:focus-visible {
  outline: none;
  box-shadow: none;
}
.nav-chevron {
  width: 0.7em;
  height: 0.7em;
  display: block;
  flex: 0 0 auto;
  margin-inline-start: 0.15em;
  transform-origin: center center;
  transition: transform 0.15s ease;
}
@media (prefers-reduced-motion: reduce) {
  .nav-chevron { transition: none; }
}
.nav-desktop .nav-drop:hover .nav-chevron,
.nav-desktop .nav-drop:focus-within .nav-chevron,
.nav-drop.is-open .nav-chevron {
  transform: rotate(180deg);
}
.nav-desktop .nav-drop-trigger:hover {
  background: var(--yellow-soft);
  color: var(--ink);
}
.nav-desktop .nav-drop-trigger:hover > .nav-drop-link,
.nav-desktop .nav-drop-trigger:hover > .nav-drop-toggle {
  background: transparent;
  color: inherit;
  text-decoration: none;
}
.nav-desktop .nav-drop-trigger:has(> [aria-current="page"]),
.nav-desktop .nav-drop-trigger:has(> [aria-current="true"]) {
  background: var(--on-yellow);
  color: var(--yellow);
}
.nav-desktop .nav-drop-trigger:has(> [aria-current="page"]) > .nav-drop-link,
.nav-desktop .nav-drop-trigger:has(> [aria-current="true"]) > .nav-drop-link,
.nav-desktop .nav-drop-trigger:has(> [aria-current="page"]) > .nav-drop-toggle,
.nav-desktop .nav-drop-trigger:has(> [aria-current="true"]) > .nav-drop-toggle {
  background: transparent;
  color: inherit;
  text-decoration: none;
}
.nav button.nav-drop-link {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  margin: 0;
  font: inherit;
  font-size: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 4px 10px;
  border-radius: var(--radius);
  color: var(--on-yellow);
  white-space: nowrap;
}
.nav button.nav-drop-link:hover,
.nav button.nav-drop-link:focus-visible { text-decoration: underline; }
.nav button.nav-drop-link[aria-current="true"],
.nav button.nav-drop-link[aria-current="page"] {
  background: var(--on-yellow);
  color: var(--yellow);
  text-decoration: none;
}
/* Icon + label share a 1.2em text band so icons sit on the same cap-height as neighbouring items. */
.nav-label-inner,
.nav-info-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  height: 1.2em;
  line-height: 1.2;
  white-space: nowrap;
  min-width: max-content;
}
.nav-item-icon,
.nav-info-icon {
  display: block;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  margin: 0;
  overflow: visible;
}
.nav-item-label,
.nav-info-label,
.nav-drop-label {
  display: block;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
}
.site-head button.nav-drop-link:focus-visible {
  outline: 3px solid var(--on-yellow);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #fff;
}

.nav-drop-panel {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 60;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 100%;
  width: max-content;
  background: var(--yellow);
  color: var(--on-yellow);
  box-shadow: 0 4px 10px rgba(42, 53, 60, 0.18);
}
@media (hover: hover) and (pointer: fine) {
  .nav-desktop .nav-drop:hover > .nav-drop-panel,
  .nav-desktop .nav-drop:focus-within > .nav-drop-panel { display: block; }
}
@media (hover: none), (pointer: coarse) {
  .nav-desktop .nav-drop.is-open > .nav-drop-panel,
  .nav-desktop .nav-drop:focus-within > .nav-drop-panel { display: block; }
}
.site-head .nav .nav-drop-panel a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  min-width: 44px;
  width: 100%;
  padding: 4px 10px;
  font-weight: 600;
  border-radius: 0;
  color: var(--on-yellow) !important;
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
}
.site-head .nav .nav-drop-panel a:hover,
.site-head .nav .nav-drop-panel a:focus-visible { text-decoration: underline; }
.site-head .nav .nav-drop-panel a[aria-current="page"] {
  background: var(--on-yellow);
  color: var(--yellow) !important;
  text-decoration: none;
}
.site-head .nav .nav-drop-panel a:focus-visible {
  outline-color: var(--on-yellow);
  box-shadow: 0 0 0 6px #fff;
}
.site-head .nav .nav-drop-panel a.nav-lottery-link {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  min-height: 44px;
  padding-block: 6px;
  white-space: nowrap;
}
.nav-lottery-name {
  display: block;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.nav-lottery-jp {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
  color: rgba(42, 53, 60, 0.72);
}
.site-head .nav .nav-drop-panel a.nav-lottery-link[aria-current="page"] .nav-lottery-jp {
  color: rgba(245, 218, 20, 0.88);
}

/* Mobil: eine kompakte Zeile, Navigation im Hamburger */
.nav-drawer { display: none; }

@media (max-width: 859px) {
  .user-signin-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .user-signin { padding: 0; width: 44px; }
  .nav-desktop { display: none; }
  .wordmark { font-size: 1.0625rem; letter-spacing: -0.03em; }
  .head-row { gap: 0 4px; }
  .site-head .lang-code,
  .site-head .lang-menu > summary .summary-inner::after { display: none; }
  .site-head .lang-menu > summary { padding: 0; width: 44px; }
  .nav-menu[open] > .nav-drawer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--yellow);
    color: var(--on-yellow);
    padding: 6px 12px 10px;
    box-shadow: 0 8px 16px rgba(42, 53, 60, 0.18);
    border-top: 1px solid rgba(42, 53, 60, 0.18);
  }
  .nav-drawer a,
  .nav-drawer button.nav-drop-link {
    justify-content: flex-start;
    width: 100%;
  }
  .nav-drawer .nav-drop {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
  }
  .nav-drawer .nav-drop-trigger {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: stretch;
  }
  .nav-drawer .nav-drop-trigger > a.nav-drop-link,
  .nav-drawer .nav-drop-trigger > button.nav-drop-link {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    justify-content: flex-start;
    padding-inline-end: 8px;
  }
  .nav-drawer .nav-drop-toggle {
    flex: 0 0 auto;
    min-width: 44px;
    padding: 0;
    margin-inline-start: auto;
    color: var(--on-yellow);
  }
  .nav-drawer .nav-drop-toggle:focus-visible {
    outline: 3px solid var(--on-yellow);
    outline-offset: -3px;
    box-shadow: none;
  }
  .nav-drawer button.nav-drop-link .nav-label-inner,
  .nav-drawer button.nav-drop-link .nav-info-inner {
    width: 100%;
    justify-content: flex-start;
  }
  .nav-drawer a .nav-label-inner {
    justify-content: flex-start;
  }
  .nav-drawer button.nav-drop-link .nav-chevron {
    margin-inline-start: auto;
  }
  .nav-drawer .nav-drop-panel {
    display: none;
    position: static;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    padding-inline-start: 12px;
    background: transparent;
  }
  .nav-drawer .nav-drop.is-open > .nav-drop-panel {
    display: block;
  }
}

@media (min-width: 860px) {
  .nav-menu { display: none; }
  .nav-desktop { display: flex; flex-wrap: nowrap; align-items: center; overflow: visible; }
  .head-row { flex-wrap: nowrap; }

  /* Mehr Luft unter dem Header, ohne das Mobile-Layout zu ändern */
  .wrap { width: min(100% - 40px, var(--wrap)); }
  main { padding-block: 28px 36px; }
  .crumbs ol { padding: 6px 0 10px; gap: 0 8px; }
  .intro { margin-bottom: 20px; }
  .intro-row { gap: 8px 20px; margin-bottom: 10px; }
  .intro h1, h1 { margin: 0 0 10px; }
  h2 { margin: 0 0 12px; }
  .board { gap: 20px; }
  .card { padding: 18px 20px; }
  .hub-cards { gap: 20px; }
  .intro-compact { margin: 16px 0 18px; }
  .intro-compact h1 { margin: 0 0 8px; }
  .stand-short { margin: 0 0 14px; }
  .insight-tabs a,
  .sort-tabs a,
  .tablist a.tab { padding-inline: 18px; }
  .tablist-wrap { margin: 0 0 20px; }
  .sort-tabs { margin: 0 0 16px; }
  .kpi-row { gap: 14px; margin: 0 0 24px; }
  .kpi-row li { padding: 14px 16px; }
  .insight-notes { margin: 20px 0 32px; }
  .insight-board { gap: 16px; margin: 16px 0 24px; }
}

@media (min-width: 860px) and (max-width: 1180px) {
  .nav a,
  .nav button.nav-drop-link { padding-inline: 7px; }
  .nav-desktop .nav-drop-trigger > a.nav-drop-link,
  .nav-desktop .nav-drop-trigger > button.nav-drop-link { padding-inline-end: 2px; }
  .nav-drop-toggle { padding: 0 6px 0 0; min-width: 28px; }
  .wordmark { font-size: 1.125rem; }
}

@media (max-width: 379px) {
  .wordmark { font-size: 1rem; letter-spacing: -0.04em; }
  .wordmark a { padding-inline: 2px; }
  .head-row { gap: 0 2px; }
}

.crumbs {
  background: var(--yellow);
  color: var(--on-yellow);
  border-top: 1px solid rgba(42, 53, 60, 0.18);
  padding-block: 0;
}
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin: 0;
  padding: 2px 0 4px;
  font-size: 0.95rem;
}
.crumbs li { display: flex; align-items: center; gap: 6px; }
.crumbs a, .crumbs span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding-inline: 4px;
  color: var(--on-yellow);
}
.crumbs li + li::before {
  content: "/";
  color: var(--on-yellow);
  opacity: 0.7;
}

main { flex: 1; padding-block: 16px 24px; }

.intro { max-width: var(--prose); margin-bottom: 12px; }
.intro-home { max-width: none; }
.intro-home .intro-row h1 { flex: 1 1 22rem; }
.intro-home .intro-row .stand { flex: 0 0 auto; }
.intro-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 4px;
}
.intro h1, h1 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 1.6vw + 1rem, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.intro-row h1 { margin: 0; }
h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.25;
}
h3 { margin: 0 0 4px; font-size: 1.05rem; line-height: 1.3; }
.lead { margin: 0 0 6px; }
.stand, .meta, .muted, .hint { color: var(--muted); margin: 0; }
.hint { font-size: 1rem; margin: 0 0 8px; }

.board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 800px) {
  .board.two { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.card h2 { margin-top: 0; }
.card-kicker {
  margin: 0 0 2px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.jackpot-label { margin: 0; color: var(--muted); font-size: 0.95rem; }
.jackpot {
  margin: 0 0 2px;
  font-size: clamp(1.6rem, 2.2vw + 0.8rem, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.jackpot.is-unknown { font-size: 1.25rem; color: var(--muted); font-weight: 600; }
.jp-odds {
  display: block;
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.35;
}
.jp-odds-legend { margin: 0 0 0.6rem; }
.jp-odds-th {
  display: block;
  margin: 0.15rem 0 0;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--muted);
}
.countdown { margin: 0 0 8px; font-weight: 600; font-size: 1rem; }
.flag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}
.flag-yes { background: #e7f4ec; color: var(--green); }
.flag-no { background: #f8e8e8; color: var(--red); }
html[data-theme="dark"] {
  .flag-yes { background: #163326; color: #8ed9b0; }
  .flag-no { background: #3a1818; color: #f0a8a8; }
}

.balls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
}
.ball {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #2a353c;
  border: 3px solid var(--ball-ring);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}
.ball.bonus {
  border-color: #2a353c;
  background: var(--yellow);
  color: #2a353c;
}
.addon { margin: 0 0 4px; font-size: 1rem; }
.addon span { font-weight: 700; font-variant-numeric: tabular-nums; }

.quotes { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 1rem; }
.quotes th, .quotes td, .data-table th, .data-table td {
  text-align: start;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 1rem;
}
.quotes th, .data-table th { font-weight: 700; }
.quotes td.num, .data-table td.num, .data-table td.amount { text-align: end; font-variant-numeric: tabular-nums; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table caption, .chart-caption {
  text-align: start;
  font-weight: 700;
  margin-bottom: 6px;
  caption-side: top;
}

.status, .empty, .error-box {
  border-radius: var(--radius);
  padding: 10px 14px;
  margin: 0 0 12px;
  border: 1px solid var(--line);
  background: var(--card);
}
.error-box { border-color: var(--red); }
.status[hidden], [hidden] { display: none !important; }

/* Zeitraumwahl: eine kompakte Zeile */
.filters {
  display: block;
  margin-bottom: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.filters fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.filters legend, .filters .sr-legend {
  font-weight: 700;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  float: none;
  width: auto;
}
.preset-row, .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.preset-row a, .btn, button, input[type="submit"], input[type="date"], select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 4px 10px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--soft);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
}
.preset-row a[aria-current="true"], .btn-primary, input[type="submit"] {
  background: var(--yellow);
  color: var(--on-yellow);
  border-color: var(--on-yellow);
}
.preset-row a:hover, .btn:hover { border-color: var(--ink); }
label { font-weight: 600; }
.field { display: flex; align-items: center; gap: 6px; }
.field input, .field select { min-width: 9.5rem; }
.filter-row.custom-inline label { font-size: 0.95rem; }

.chart-panel { margin: 0 0 16px; }
.chart-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 6px 6px;
  overflow-x: auto;
}
.chart-svg { display: block; width: 100%; height: auto; min-height: 200px; }
.chart-svg .axis, .chart-svg .grid { stroke: var(--line); fill: none; }
.chart-svg .axis-label { fill: var(--muted); font-size: 12px; font-family: var(--font); font-weight: 600; }
.chart-svg .line { fill: none; stroke: #2a353c; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .dot { fill: #2a353c; }
.chart-svg .bar { fill: #2a353c; }
.chart-svg .bar:hover, .chart-svg .dot:hover, .chart-svg .hit:focus { fill: var(--yellow-deep); }
.chart-svg .hit { fill: transparent; stroke: none; }
html[data-theme="dark"] {
  .chart-svg .line, .chart-svg .dot, .chart-svg .bar { stroke: #e8ecee; fill: #e8ecee; }
  .chart-svg .line { fill: none; }
  .chart-svg .axis-label { fill: #c5cbce; }
}
.chart-note, .coverage { margin: 6px 0 10px; color: var(--muted); max-width: var(--prose); }
.tooltip {
  position: absolute;
  z-index: 30;
  background: #2a353c;
  color: #fff;
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  max-width: 16rem;
}
.table-alt { margin-top: 8px; }
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  max-width: 100%;
}

.freq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.freq-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  font-size: 0.9rem;
}
.freq-grid .n { font-weight: 700; }

.year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 8px 0 0;
  list-style: none;
}
.year-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 4px 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.year-nav a[aria-current="page"], .year-nav a:hover {
  background: var(--yellow);
  color: var(--on-yellow);
  border-color: var(--on-yellow);
}

/* Gemeinsame Akkordeons: native details/summary, Pfeil, Fokus, crawlbar */
.acc,
.faq details,
.draws-year,
.draws-month,
.legal-acc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  margin: 0 0 8px;
  padding: 0;
  color: var(--ink);
}
.acc > summary,
.faq details > summary,
.draws-year > summary,
.draws-month > summary,
.legal-acc > summary,
.app-details > summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: list-item;
  list-style: none;
  padding: 6px 10px;
  border-radius: var(--radius);
}
.acc > summary .summary-inner,
.faq details > summary .summary-inner,
.draws-year > summary .summary-inner,
.draws-month > summary .summary-inner,
.legal-acc > summary .summary-inner,
.app-details > summary .summary-inner,
.acc-region > summary .summary-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  min-width: 0;
  vertical-align: middle;
}
/* Stretch the inner row so the count badge sits on the right without overlapping
   the month/title or the chevron. Flex is on the inner span, never on summary (Safari). */
.draws-month > summary .summary-inner,
.draws-year > summary .summary-inner,
.acc > summary .summary-inner,
.acc-region > summary .summary-inner {
  width: calc(100% - 1.35rem);
  max-width: calc(100% - 1.35rem);
}
.summary-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.acc > summary::-webkit-details-marker,
.faq details > summary::-webkit-details-marker,
.draws-year > summary::-webkit-details-marker,
.draws-month > summary::-webkit-details-marker,
.legal-acc > summary::-webkit-details-marker,
.acc-region > summary::-webkit-details-marker { display: none; }
.acc > summary::before,
.faq details > summary::before,
.draws-year > summary::before,
.draws-month > summary::before,
.legal-acc > summary::before,
.acc-region > summary::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  display: inline-block;
  vertical-align: middle;
  margin-inline-end: 8px;
  flex-shrink: 0;
}
.acc[open] > summary::before,
.faq details[open] > summary::before,
.draws-year[open] > summary::before,
.draws-month[open] > summary::before,
.legal-acc[open] > summary::before,
.acc-region[open] > summary::before {
  transform: rotate(45deg);
  margin-top: -2px;
}
.acc > summary:focus-visible,
.faq details > summary:focus-visible,
.draws-year > summary:focus-visible,
.draws-month > summary:focus-visible,
.legal-acc > summary:focus-visible,
.acc-region > summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--yellow);
}
.acc-body, .acc > :not(summary), .faq details p,
.draws-year > :not(summary), .draws-month > :not(summary),
.legal-acc > :not(summary) {
  padding: 0 12px 12px;
}
.acc-count, .summary-meta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline-start: auto;
  padding: 2px 8px;
  min-height: 1.5rem;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.acc-quotes { margin: 8px 0 0; }
.acc-lead { margin: 8px 0 0; max-width: var(--prose); }

.wrap.page-notes {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.page-notes .acc-foot,
.acc-foot.about-page {
  margin: 0 0 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
  max-width: var(--prose);
  border-radius: 0;
}
.acc-foot > summary {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--muted);
  min-height: 40px;
  padding: 6px 0;
}
.acc-foot > summary .summary-inner {
  min-height: 0;
}
.acc-foot > :not(summary) {
  padding: 0 0 8px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}
.page-notes p {
  margin: 0 0 8px;
  font-size: inherit;
  color: inherit;
}
.page-notes p:last-child { margin-bottom: 0; }
.legal-note,
.gen-protect {
  max-width: none;
  width: 100%;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}
.legal-note a,
.gen-protect a {
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq { max-width: var(--prose); margin: 16px auto 0; }
.faq h2 { margin-bottom: 8px; }
.faq details { margin: 0 0 4px; }
.faq details p { margin: 0; }

.hub-cards { display: grid; gap: 12px; }
@media (min-width: 800px) { .hub-cards { grid-template-columns: 1fr 1fr; } }

.draw-groups { margin: 0 0 12px; }
.draws-year { margin: 0 0 6px; }
.draws-month { margin: 0 0 6px; border-color: var(--line); }
.draws-month .draw-list { margin: 0; padding: 0 4px 8px; }

.balls-sm { gap: 4px; margin: 0; }
.balls-sm .ball {
  width: 28px;
  height: 28px;
  border-width: 2px;
  font-size: 0.8rem;
}

.draw-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.draw-row {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
  padding: 6px 2px;
  border-bottom: 1px solid var(--line);
}
.draw-row:last-child { border-bottom: 0; }
.draw-date {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  line-height: 1.25;
}
.draw-jp {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: end;
  white-space: nowrap;
  font-size: 0.95rem;
}
.draw-extra {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}
.draw-row .draw-quotes {
  grid-column: 1 / -1;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
}
.draw-row .draw-quotes > summary {
  min-height: 36px;
  padding: 2px 0;
  font-size: 0.95rem;
  background: transparent;
}
.draw-row .draw-quotes > :not(summary) { padding: 0 0 8px; }

@media (max-width: 700px) {
  .draw-row {
    grid-template-columns: 1fr auto;
  }
  .draw-row .balls { grid-column: 1 / -1; }
  .draw-date { grid-column: 1; }
  .draw-jp { grid-column: 2; }
}

.draw-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.draw-filter label { font-size: 0.95rem; }
.draw-filter input[type="search"] {
  min-width: 12rem;
  flex: 1 1 12rem;
  max-width: 22rem;
  min-height: 44px;
}
.draw-row[hidden], .draws-month[hidden], [data-filter-empty][hidden] { display: none !important; }
.year-latest-link { margin: 8px 0 12px; }

.foot {
  background: var(--yellow);
  color: var(--on-yellow);
  padding: 12px 0;
  margin-top: auto;
}
.foot a { color: var(--on-yellow); font-weight: 600; }
.foot p { margin: 0 0 8px; max-width: 75ch; }
.foot p:last-child { margin-bottom: 0; }
.foot-short { margin: 0 0 8px; font-weight: 600; }
.foot,
.foot .wrap,
.foot-nav,
.foot-lang {
  overflow: visible;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 8px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--on-yellow);
  max-width: none;
}
.foot-nav .foot-lang,
.foot-nav .foot-legal {
  display: inline-flex;
  align-items: center;
  position: relative;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  opacity: 1;
  color: inherit;
}
.foot-nav .foot-lang {
  line-height: 0;
  flex: 0 0 auto;
}
.foot-lang-menu .lang-panel {
  top: auto;
  bottom: calc(100% + 4px);
  right: auto;
  left: 0;
}
.foot-lang .lang-panel a,
.foot-lang .lang-panel a:hover,
.foot-lang .lang-panel a:focus-visible,
.foot-lang .lang-panel a[aria-current="true"] {
  text-decoration: none;
  font-weight: 600;
}
.foot-nav-item {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.foot-nav-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.foot-nav-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding-inline: 10px;
  font-weight: inherit;
  font-size: inherit;
  color: inherit;
  opacity: 1;
}
.foot-nav-gap {
  padding-inline: 16px;
}
@media (max-width: 859px) {
  .foot-nav-gap { padding-inline: 12px; }
}
.foot-lang a,
.foot-nav a {
  color: inherit;
  font-weight: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.foot-lang a:hover,
.foot-lang a:focus-visible,
.foot-nav a:hover,
.foot-nav a:focus-visible { text-decoration-thickness: 2px; }
.foot-lang a[aria-current="true"] {
  text-decoration: none;
  font-weight: inherit;
}
.foot p.foot-legal-line {
  margin: 0 0 8px;
  max-width: none;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--on-yellow);
}
.foot-lang a:hover,
.foot-lang a:focus-visible { text-decoration: underline; }
.foot-lang a[aria-current="true"] {
  font-weight: 700;
  text-decoration: none;
}
.foot-lang-sep {
  margin: 0 0.1em;
  font-weight: 400;
  opacity: 0.7;
}
.foot-copy, .foot-noplay { margin: 0 0 6px; }
.foot-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
  margin: 0 0 6px;
  max-width: none;
}
.foot-meta .foot-copy { margin: 0; }
.foot-stand {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  opacity: 1;
}
a.ext-link::after {
  content: "↗";
  font-size: 0.75em;
  margin-inline-start: 0.15em;
  opacity: 0.65;
  speak: never;
}
.legal-acc {
  background: transparent;
  border-color: rgba(42, 53, 60, 0.35);
  color: var(--on-yellow);
}
.foot .legal-acc,
.foot .legal-acc > :not(summary),
.foot .legal-acc p {
  max-width: none;
  width: 100%;
}
.legal-acc > summary { color: var(--on-yellow); }
.legal-acc > summary:focus-visible {
  outline-color: var(--on-yellow);
  box-shadow: 0 0 0 6px #fff;
}

.skeleton {
  min-height: 10rem;
  background: linear-gradient(90deg, var(--soft) 0%, var(--card) 50%, var(--soft) 100%);
  background-size: 200% 100%;
  animation: pulse 1.2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
}
@keyframes pulse { 0% { background-position: 0 0; } 100% { background-position: -200% 0; } }

.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;
}


/* Insights / Apps */
.insight-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 12px 0 16px;
}
@media (min-width: 800px) {
  .insight-board { grid-template-columns: 1fr 1fr 1fr; }
  .insight-board:has(.provider-card) { grid-template-columns: 1fr 1fr; }
}
.insight-card h2, .provider-card h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.insight-card p, .provider-card p { margin: 0 0 8px; }
.insight-links { margin: 8px 0 0; }
.apps-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 12px;
  margin: 0 0 12px;
}
.apps-filter label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.95rem;
}
.apps-filter select, .apps-filter button {
  min-height: 44px;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 8px;
}
.apps-filter button {
  font-weight: 600;
  cursor: pointer;
  background: var(--yellow);
  color: var(--on-yellow);
  border-color: var(--yellow-deep);
}
.apps-filter button:focus-visible,
.apps-filter select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.app-entry { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.app-entry h3 { margin: 0 0 4px; font-size: 1.05rem; }
.app-stores { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 6px; }
.feat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 12px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.feat-k { color: var(--muted); }
.feat-yes { font-weight: 600; }
.app-details { margin: 4px 0 0; }
.app-details { margin: 4px 0 0; }
.app-details > summary { font-weight: 600; }
.chart-block { margin: 12px 0; }
.chart-svg.chart-bars { height: auto; }
.rank-table td .meta { margin: 0; font-size: 1rem; }
@media (max-width: 700px) {
  .feat-list { grid-template-columns: 1fr; }
  .rank-table thead { display: none; }
  .rank-table, .rank-table tbody, .rank-table tr, .rank-table td {
    display: block;
    width: 100%;
  }
  .rank-table tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }
  .rank-table td {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 8px;
    padding: 8px 0;
    border: 0;
    text-align: start;
    font-size: 1rem;
  }
  .rank-table td.num { text-align: start; }
  .rank-table td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 600;
    margin-inline-end: auto;
  }
  .insight-board { grid-template-columns: 1fr; }
}
.chart-svg .line.chart-s0, .chart-svg .dot.chart-s0 { stroke: #0b6b3c; fill: #0b6b3c; }
.chart-svg .line.chart-s1, .chart-svg .dot.chart-s1 { stroke: #1d4f91; fill: #1d4f91; }
.chart-svg .line.chart-s2, .chart-svg .dot.chart-s2 { stroke: #b10e0e; fill: #b10e0e; }
.chart-svg .line.chart-s3, .chart-svg .dot.chart-s3 { stroke: #7a3e00; fill: #7a3e00; }
.chart-svg .line.chart-s4, .chart-svg .dot.chart-s4 { stroke: #5b2a8c; fill: #5b2a8c; }
.chart-svg .line.chart-s5, .chart-svg .dot.chart-s5 { stroke: #0a5a6a; fill: #0a5a6a; }
.chart-svg .line.chart-s6, .chart-svg .dot.chart-s6 { stroke: #2a353c; fill: #2a353c; }
.chart-svg .line.chart-s7, .chart-svg .dot.chart-s7 { stroke: #3e4a50; fill: #3e4a50; }
html[data-theme="dark"] {
  .chart-svg .line.chart-s0, .chart-svg .dot.chart-s0 { stroke: #7dcea0; fill: #7dcea0; }
  .chart-svg .line.chart-s1, .chart-svg .dot.chart-s1 { stroke: #8ab4f8; fill: #8ab4f8; }
  .chart-svg .line.chart-s2, .chart-svg .dot.chart-s2 { stroke: #f5a3a3; fill: #f5a3a3; }
  .chart-svg .line.chart-s3, .chart-svg .dot.chart-s3 { stroke: #f0c674; fill: #f0c674; }
  .chart-svg .line.chart-s4, .chart-svg .dot.chart-s4 { stroke: #d4b0f5; fill: #d4b0f5; }
  .chart-svg .line.chart-s5, .chart-svg .dot.chart-s5 { stroke: #7fd4e0; fill: #7fd4e0; }
  .chart-svg .line.chart-s6, .chart-svg .dot.chart-s6 { stroke: #e8ecee; fill: #e8ecee; }
  .chart-svg .line.chart-s7, .chart-svg .dot.chart-s7 { stroke: #c5cbce; fill: #c5cbce; }
}

/* Scanner */
.scanner-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 12px 0 16px;
}
@media (min-width: 880px) {
  .scanner-board { grid-template-columns: 1fr 1fr; }
}
.scan-drop {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--soft);
  text-align: center;
}
.scan-drop.is-over { border-color: var(--ink); background: var(--card); }
.scan-drop-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 14px;
  margin: 0 0 8px;
  font-weight: 700;
  background: var(--yellow);
  color: var(--on-yellow);
  border: 2px solid var(--yellow-deep);
  border-radius: var(--radius);
  cursor: pointer;
}
.scan-drop img[data-scan-preview] {
  display: block;
  margin: 10px auto 0;
  max-height: 240px;
  width: auto;
  border: 1px solid var(--line);
  background: var(--card);
}
.scan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.btn-quiet {
  background: var(--card);
  font-weight: 600;
}
.scanner-page form fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 10px;
  padding: 8px 10px;
  min-width: 0;
}
.scanner-page form legend { font-weight: 700; padding: 0 4px; }
.scanner-page label { display: block; margin: 0 0 8px; }
.scanner-page label.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  min-height: 44px;
  margin: 0;
}
.scanner-page input[type="text"],
.scanner-page input[type="number"],
.scanner-page input[type="date"] {
  display: block;
  width: 100%;
  max-width: 28rem;
  min-height: 44px;
  margin-top: 4px;
  padding: 4px 8px;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}
.scanner-page input[type="checkbox"],
.scanner-page input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--ink);
}
.scanner-page [data-tip] input[data-main],
.scanner-page [data-tip] input[data-euro] {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.scan-draw {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin: 0 0 10px;
  background: var(--soft);
}
.scan-draw h3 { margin: 0 0 4px; font-size: 1.1rem; }
.scan-draw.is-win { border-color: var(--green); }
.scan-banner { font-weight: 700; margin: 6px 0; }
.scan-banner.is-win, .scan-win, .scan-win strong { color: var(--green); }
.scan-nowin { margin: 4px 0; }
.scan-tip { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line); }
.scan-tip .nums { margin: 0; font-weight: 700; }
.scan-tip .meta, .scan-draw .meta { margin: 2px 0; color: var(--muted); }
.scanner-faq { margin: 16px 0 8px; }
html[data-theme="dark"] {
  .scan-draw.is-win { border-color: #7dcea0; }
  .scan-banner.is-win, .scan-win, .scan-win strong { color: #7dcea0; }
}
@media (max-width: 700px) {
  .scan-actions .btn { flex: 1 1 auto; }
}

/* Lottery hubs and slim archive index */
.hub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 14px;
}
.hub-facts {
  margin: 0;
  padding-inline-start: 1.15rem;
}
.hub-facts li { margin: 0 0 4px; }
.hub-more { margin: 8px 0 0; }
.archive-hub-block .balls { margin: 6px 0 8px; }
.archive-hub-block .meta { margin: 0 0 4px; color: var(--muted); }

/* Worldwide lotteries overview */
.lotto-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 4px;
}
.lotto-filter label { font-weight: 600; }
.lotto-filter input[type="search"] {
  min-height: 44px;
  min-width: 12rem;
  flex: 1 1 12rem;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
}
.lotto-filter button {
  min-height: 44px;
  padding: 4px 14px;
  font-weight: 600;
  border: 0;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--on-yellow);
  cursor: pointer;
}
.lotto-region { margin: 12px auto; }
.lotto-region.wrap, section.lotto-region {
  width: min(100% - 24px, var(--wrap));
}
.acc-region > summary { font-size: 1.15rem; }
.lotto-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  min-width: 40rem;
}
.lotto-table th, .lotto-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 1rem;
}
.lotto-table thead th {
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 2;
}
.lotto-table tbody th, .lotto-table thead th:first-child {
  position: sticky;
  left: 0;
  background: var(--card);
  z-index: 1;
  min-width: 9rem;
}
.lotto-table thead th:first-child { z-index: 3; }
.lotto-table tbody th { font-weight: 600; }
.lotto-table .jp-cell { white-space: normal; }
.jp-main { display: block; font-weight: 600; }
.jp-fx { display: block; font-size: 0.9375rem; color: var(--muted, #4a585e); }
.jp-asof { display: block; font-size: 0.9375rem; color: var(--muted, #4a585e); margin-top: 0.15rem; }
.lotto-facts { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 1rem; }
.lotto-facts th, .lotto-facts td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.lotto-facts th { width: 12rem; font-weight: 600; }
.legal-banner {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 2px solid var(--on-yellow);
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--on-yellow);
}
.legal-banner p { margin: 0 0 6px; }
.legal-banner p:last-child { margin: 0; }
.legal-ok { margin-top: 8px; }
.lotto-detail .jackpot { margin-top: 0; }
@media (max-width: 700px) {
  .lotto-facts, .lotto-facts tbody, .lotto-facts tr, .lotto-facts th, .lotto-facts td {
    display: block;
    width: 100%;
  }
  .lotto-facts th {
    width: auto;
    border-bottom: 0;
    padding-bottom: 0;
    color: var(--muted);
    font-size: 0.9375rem;
  }
  .lotto-facts td { padding-top: 4px; }
  .quotes, .quotes thead, .quotes tbody, .quotes tr, .quotes th, .quotes td,
  .odds-table, .odds-table thead, .odds-table tbody, .odds-table tr, .odds-table th, .odds-table td {
    display: block;
    width: 100%;
  }
  .quotes thead, .odds-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .quotes tr, .odds-table tr {
    margin: 0 0 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    background: var(--card);
  }
  .quotes th, .quotes td, .odds-table th, .odds-table td {
    padding: 6px 4px;
    border-bottom: 0;
    text-align: start;
  }
  .quotes [data-label]::before,
  .odds-table [data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 700;
  }
  .quotes td.num, .odds-table td.num { text-align: start; }
}

/* Lottery SEO copy + readable tables */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.lottery-seo {
  margin: 16px 0 8px;
  max-width: var(--prose);
}
.lottery-seo .seo-intro p,
.seo-prose p,
.seo-prose li,
.lottery-faq p {
  max-width: var(--prose);
  line-height: 1.6;
}
.seo-intro p { margin: 0 0 10px; }
.seo-list { margin: 0 0 10px; padding-left: 1.2em; }
.seo-list li { margin: 0 0 6px; }
.acc-seo > summary {
  list-style: none;
}
.seo-sum {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  font-family: inherit;
  color: inherit;
}
.odds-table { min-width: 0; }
.odds-table th, .odds-table td { font-size: 1rem; }
.seo-related { margin: 20px 0 8px; }
.seo-related h2 { font-size: 1.15rem; margin: 0 0 8px; }
.seo-related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.seo-related a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 2px;
}

.page-seo {
  margin: 28px 0 20px;
  max-width: none;
  width: 100%;
}
.page-seo h2 {
  font-size: 1.35rem;
  margin: 0 0 12px;
  line-height: 1.3;
}
.page-seo h3 {
  font-size: 1.12rem;
  margin: 1.15em 0 0.45em;
  line-height: 1.35;
}
.page-seo .seo-intro p,
.page-seo .seo-prose p,
.page-seo .seo-prose li,
.page-seo .lottery-faq p,
.page-seo .seo-disclaimer,
.page-seo .seo-faq {
  max-width: none;
}
.page-seo .seo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 4px 0 8px;
}
@media (min-width: 701px) {
  .page-seo .seo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}
@media (min-width: 961px) {
  .page-seo .seo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.page-seo .seo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 12px 14px 14px;
  min-width: 0;
  min-height: 100%;
}
.page-seo .seo-card h3 {
  margin: 0 0 8px;
}
.page-seo .seo-card > p {
  margin: 0 0 8px;
  line-height: 1.6;
}
.page-seo .seo-card > p:last-child {
  margin-bottom: 0;
}
.page-seo .seo-card .acc {
  margin: 8px 0 0;
}
.page-seo .seo-card .acc-body,
.page-seo .seo-card .acc > :not(summary) {
  padding: 0 10px 10px;
}
.page-seo .seo-card .acc-body p,
.page-seo .lottery-faq .acc-body p {
  margin: 0 0 8px;
  line-height: 1.6;
}
.page-seo .seo-card .acc-body p:last-child,
.page-seo .lottery-faq .acc-body p:last-child {
  margin-bottom: 0;
}
.page-seo .seo-related {
  margin-top: 8px;
}
.page-seo .lottery-faq {
  margin: 16px 0 0;
}
.page-seo .seo-faq {
  margin: 0;
}
.page-seo .seo-disclaimer,
.seo-disclaimer {
  margin: 16px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}
.page-seo .seo-disclaimer {
  max-width: none;
}
.seo-faq {
  margin: 0;
  max-width: var(--prose);
}
.seo-faq dt {
  font-weight: 700;
  margin: 12px 0 4px;
}
.seo-faq dd {
  margin: 0 0 8px;
  line-height: 1.6;
}
.data-table { font-size: 1rem; }
/* Sticky first column for wide scroll tables (not stacked cards) */
@media (min-width: 701px) {
  .data-table th:first-child, .data-table td:first-child,
  .quotes th:first-child, .quotes td:first-child {
    position: sticky;
    left: 0;
    background: var(--card);
    z-index: 1;
  }
}


/* Insights tabs and compact layout */
.intro-compact { margin: 12px 0 10px; }
.intro-compact h1 { margin: 0 0 4px; }
.stand-short { margin: 0 0 8px; color: var(--muted); font-size: 0.95rem; }
.insight-notes { margin: 16px 0 24px; max-width: var(--prose); }

.insight-tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.insight-tabs-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.insight-tabs a,
.sort-tabs a,
.tablist a.tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
  border-bottom: 3px solid transparent;
}
.insight-tabs a:hover,
.sort-tabs a:hover,
.tablist a.tab:hover { text-decoration: none; background: var(--soft); }
.insight-tabs a[aria-current="page"],
.sort-tabs a[aria-current="true"],
.tablist a.tab[aria-selected="true"],
.tablist a.tab.is-active {
  border-bottom-color: var(--yellow-deep);
  color: var(--ink);
}
.insight-tabs a:focus-visible,
.sort-tabs a:focus-visible,
.tablist a.tab:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.tablist-wrap {
  position: sticky;
  top: calc(var(--header-h) + 44px);
  z-index: 29;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  margin: 0 0 12px;
}
.tablist {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  gap: 0;
}
.sort-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  gap: 0;
  margin: 0 0 10px;
  border-bottom: 1px solid var(--line);
}

html.js .tab-panel { display: none; }
html.js .tab-panel.is-active { display: block; }
html:not(.js) .tab-panel { display: none; }
html:not(.js) .tab-panels:not(:has(:target)) .tab-panel:first-child,
html:not(.js) .tab-panel:target { display: block; }

.kpi-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) {
  .kpi-row { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .kpi-row { grid-template-columns: repeat(5, 1fr); }
}
.kpi-row li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  min-height: 44px;
}
.kpi-l { display: block; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.kpi-n { display: block; font-weight: 700; margin-top: 2px; }

.apps-table { width: 100%; border-collapse: collapse; }
.apps-table th, .apps-table td,
.rank-table th, .rank-table td {
  text-align: start;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.apps-table th, .rank-table th { font-weight: 700; }
@media (max-width: 700px) {
  .apps-table thead { display: none; }
  .apps-table, .apps-table tbody, .apps-table tr, .apps-table td {
    display: block;
    width: 100%;
  }
  .apps-table tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }
  .apps-table td {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 8px;
    padding: 6px 0;
    border: 0;
  }
  .apps-table td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 600;
    margin-inline-end: auto;
  }
}

/* Lottozahlen-Generator und Astro-Tipp */
.gen-form { margin: 0 0 16px; }
.gen-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
  margin: 0 0 8px;
}
.gen-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-weight: 600;
}
.gen-toolbar select { min-width: 5.5rem; }
.gen-keno-field { margin: 0; }
.gen-results { margin: 0 0 20px; }
.gen-tip { margin: 0 0 12px; }
.gen-tip h3 { margin: 0 0 6px; }
.gen-tabs { margin: 0 0 8px; }
.astro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) {
  .astro-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (min-width: 1100px) {
  .astro-grid { grid-template-columns: repeat(4, 1fr); }
}
.astro-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 108px;
  padding: 12px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.astro-card:hover,
.astro-card:focus-visible { border-color: var(--ink); text-decoration: none; }
.astro-symbol {
  font-size: 2rem;
  line-height: 1;
  font-family: "Segoe UI Symbol", "Noto Sans Symbols", "Apple Symbols", var(--font);
}
.astro-symbol-lg { font-size: 3rem; margin: 0 0 6px; }
.astro-card-name { font-weight: 700; }
.astro-card-dates { font-size: 0.9rem; color: var(--muted); font-weight: 400; }
.astro-sign-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 16px 0 20px;
}
.astro-sign-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 2px;
  font-weight: 600;
}

/* Wiki */
.wiki-page { max-width: var(--wrap); }
.wiki-prose { max-width: var(--prose); }
.wiki-prose h2 { margin: 1.4rem 0 0.4rem; font-size: 1.25rem; }
.wiki-prose h3 { margin: 1.1rem 0 0.35rem; font-size: 1.08rem; }
.wiki-prose p { margin: 0 0 0.75rem; }
.wiki-prose ul, .wiki-prose ol { margin: 0 0 0.85rem; padding-left: 1.2rem; }
.wiki-prose li { margin: 0 0 0.25rem; }
.wiki-updated { margin: 0 0 0.6rem; color: var(--muted); font-size: 0.9rem; }
.wiki-facts { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 0 0 1rem; }
.wiki-facts dl { margin: 0; }
.wiki-fact { display: grid; grid-template-columns: minmax(7rem, 32%) 1fr; gap: 4px 12px; padding: 4px 0; border-top: 1px solid var(--line); }
.wiki-fact:first-child { border-top: 0; padding-top: 0; }
.wiki-fact dt { font-weight: 600; }
.wiki-fact dd { margin: 0; }
.wiki-toc { margin: 0 0 1rem; }
.wiki-toc ol { margin: 8px 0 0; padding-left: 1.2rem; }
.wiki-cards, .wiki-az, .wiki-related ul, .wiki-sources ul, .wiki-more ul { margin: 0 0 1rem; padding: 0; list-style: none; }
.wiki-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 10px; }
.wiki-card { margin: 0; }
.wiki-card a { display: block; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: inherit; }
.wiki-card a:hover, .wiki-card a:focus-visible { border-color: var(--ink); }
.wiki-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.wiki-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.wiki-az { columns: 2; column-gap: 1.5rem; }
.wiki-az li, .wiki-related li, .wiki-sources li, .wiki-more li { break-inside: avoid; margin: 0 0 0.3rem; }
.wiki-cluster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 10px; margin: 0 0 1.2rem; }
.wiki-cluster-card h3 { margin-top: 0; }
.wiki-cluster-card ul { margin: 0; padding-left: 1.15rem; }
.wiki-related, .wiki-sources, .wiki-more, .wiki-faq { margin: 1.25rem 0; }
.wiki-more { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 1rem 0; }
.wiki-more h2, .wiki-related h2, .wiki-sources h2 { margin-top: 0; font-size: 1.1rem; }
.wiki-to-money, .wiki-lottery-link { margin: 0.8rem 0 0; }
@media (max-width: 640px) {
  .wiki-az { columns: 1; }
  .wiki-fact { grid-template-columns: 1fr; }
}


/* New Year lotteries subcategory */
.ny-teaser {
  margin: 8px auto 16px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 4px solid var(--yellow, #f5da14);
}
.ny-teaser h2 { margin: 0 0 6px; font-size: 1.15rem; }
.ny-teaser p { margin: 0 0 10px; }
.ny-teaser p:last-child { margin: 0; }
.ny-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
  gap: 12px;
  margin: 0 0 8px;
}
.ny-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-height: 44px;
}
.ny-card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  line-height: 1.3;
}
.ny-card h3 a {
  display: inline;
  min-height: 0;
  padding: 0;
}
.ny-flag { font-style: normal; }
.ny-card p { margin: 0 0 6px; }
.ny-card p:last-child { margin: 0; }
.ny-legal-line {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.4;
}
.ny-countdown {
  font-weight: 600;
  margin: 0 0 8px;
}
.ny-countdown.is-past,
.ny-countdown-unknown { font-weight: 400; color: var(--muted); }
.ny-note {
  margin: 12px auto 16px;
  padding: 12px 14px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.ny-region { margin: 16px auto; }
.ny-region h2 { margin: 0 0 10px; font-size: 1.2rem; }
.ny-wiki { width: min(100% - 24px, var(--wrap)); margin-left: auto; margin-right: auto; }
.ny-detail .ny-countdown { font-size: 1.05rem; }

.chart-legend { margin: 6px 0 10px; color: var(--muted); font-size: 0.95rem; }
.legend-s0::before, .legend-s1::before {
  content: "";
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-right: 0.35em;
  vertical-align: -0.1em;
  border-radius: 2px;
}
.legend-s0::before { background: #0b6b3c; }
.legend-s1::before { background: #1d4f91; }
:root[data-theme="dark"] .legend-s0::before, html.dark .legend-s0::before { background: #7dcea0; }
:root[data-theme="dark"] .legend-s1::before, html.dark .legend-s1::before { background: #8ab4f8; }
.stakes-lottery { margin: 0 0 24px; }

.chart-svg .line.chart-day-b { stroke-dasharray: 7 5; }

/* Stakes charts: colorblind-friendly, high-contrast series (Okabe–Ito inspired).
   Brand yellow #f5da14 is not used here — too weak on light backgrounds. */
.chart-block {
  --stakes-stake-a: #0b7a4b;
  --stakes-jackpot-a: #005a9e;
  --stakes-stake-b: #c44e00;
  --stakes-jackpot-b: #9a2e7a;
}
html[data-theme="dark"] .chart-block {
  --stakes-stake-a: #3ddb9a;
  --stakes-jackpot-a: #6cb6ff;
  --stakes-stake-b: #ff8c42;
  --stakes-jackpot-b: #e090d0;
}
.chart-svg.chart-stakes .line {
  stroke-width: 2.6;
  fill: none;
}
.chart-svg.chart-stakes .line.chart-s0.chart-day-a { stroke: var(--stakes-stake-a); fill: none; }
.chart-svg.chart-stakes .line.chart-s1.chart-day-a { stroke: var(--stakes-jackpot-a); fill: none; }
.chart-svg.chart-stakes .line.chart-s0.chart-day-b { stroke: var(--stakes-stake-b); fill: none; }
.chart-svg.chart-stakes .line.chart-s1.chart-day-b { stroke: var(--stakes-jackpot-b); fill: none; }
.chart-svg.chart-stakes .dot.chart-s0.chart-day-a { stroke: var(--stakes-stake-a); fill: var(--stakes-stake-a); }
.chart-svg.chart-stakes .dot.chart-s1.chart-day-a { stroke: var(--stakes-jackpot-a); fill: var(--stakes-jackpot-a); }
.chart-svg.chart-stakes .dot.chart-s0.chart-day-b { stroke: var(--stakes-stake-b); fill: var(--stakes-stake-b); }
.chart-svg.chart-stakes .dot.chart-s1.chart-day-b { stroke: var(--stakes-jackpot-b); fill: var(--stakes-jackpot-b); }
.chart-svg.chart-stakes .dot {
  stroke: var(--card);
  stroke-width: 1;
}
.chart-svg.chart-stakes .dot:hover {
  fill: inherit;
  stroke: var(--ink);
  stroke-width: 1.5;
}

.stakes-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  color: var(--ink);
}
.stakes-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 1.5rem;
}
.stakes-legend .chart-s0::before,
.stakes-legend .chart-s1::before {
  content: "";
  display: inline-block;
  width: 1.15em;
  height: 0.22em;
  margin: 0;
  vertical-align: middle;
  border-radius: 1px;
  background: var(--stakes-stake-a);
  flex: 0 0 auto;
}
.stakes-legend .chart-s1::before { background: var(--stakes-jackpot-a); }
.stakes-legend .chart-s0.chart-day-b::before {
  background: repeating-linear-gradient(90deg, var(--stakes-stake-b) 0 0.32em, transparent 0.32em 0.5em);
}
.stakes-legend .chart-s1.chart-day-b::before {
  background: repeating-linear-gradient(90deg, var(--stakes-jackpot-b) 0 0.32em, transparent 0.32em 0.5em);
}
.stakes-legend .chart-s0::after,
.stakes-legend .chart-s1::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-inline-start: -0.2em;
  flex: 0 0 auto;
  background: var(--stakes-stake-a);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--card);
}
.stakes-legend .chart-s1::after { background: var(--stakes-jackpot-a); }
.stakes-legend .chart-s0.chart-day-b::after {
  background: var(--stakes-stake-b);
  border-radius: 1px;
}
.stakes-legend .chart-s1.chart-day-b::after {
  background: var(--stakes-jackpot-b);
  border-radius: 1px;
}

/* Generic (non-stakes) chart legend colors for other insights charts. */
.chart-legend:not(.stakes-legend) .chart-s0::before,
.chart-legend:not(.stakes-legend) .chart-s1::before {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.28em;
  margin-right: 0.35em;
  vertical-align: 0.12em;
  border-radius: 1px;
}
.chart-legend:not(.stakes-legend) .chart-s0::before { background: #0b6b3c; }
.chart-legend:not(.stakes-legend) .chart-s1::before { background: #1d4f91; }
html[data-theme="dark"] .chart-legend:not(.stakes-legend) .chart-s0::before { background: #7dcea0; }
html[data-theme="dark"] .chart-legend:not(.stakes-legend) .chart-s1::before { background: #8ab4f8; }
.stakes-day-filter {
  margin: 0 0 12px;
  padding: 8px 0;
  border: 0;
  min-width: 0;
}
.stakes-day-filter legend {
  font-weight: 700;
  padding: 0;
  margin: 0 0 6px;
}
.stakes-day-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
}
.stakes-day-filter .choice {
  margin: 0;
}
.stakes-day-hint { margin: 6px 0 0; }
.stakes-view[hidden] { display: none !important; }
.stakes-table { font-variant-numeric: tabular-nums; }
.chart-svg.chart-stakes .line.chart-s0,
.chart-svg.chart-stakes .line.chart-s1,
.chart-svg.chart-stakes .line.chart-s2,
.chart-svg.chart-stakes .line.chart-s3 {
  fill: none;
}

/* First-party cookie banner: bottom bar, does not block the page. */
body.consent-open {
  padding-bottom: var(--consent-offset, 0px);
}
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  box-sizing: border-box;
  background: var(--card);
  color: var(--ink);
  border-top: 3px solid var(--yellow, #f5da14);
  box-shadow: 0 -6px 20px rgba(42, 53, 60, 0.16);
  padding: 12px 16px 14px;
}
.consent-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  max-width: var(--wrap, 72rem);
  margin: 0 auto;
}
.consent-copy { flex: 1 1 18rem; min-width: 0; }
.consent-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.consent-text, .consent-hint, .consent-more {
  margin: 0 0 6px;
  font-size: 0.875rem;
  line-height: 1.45;
}
.consent-more { display: inline-block; font-weight: 600; }
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 1 auto;
  align-items: stretch;
}
.consent-btn {
  min-height: 44px;
  min-width: 10.5rem;
  margin: 0;
  font-weight: 700;
  flex: 1 1 10.5rem;
}
.consent-btn-settings {
  font-weight: 600;
}
.consent-settings {
  max-width: var(--wrap, 72rem);
  margin: 10px auto 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.consent-settings-title {
  margin: 0 0 8px;
  font-weight: 700;
}
.consent-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  min-height: 44px;
}
.consent-toggle input {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
}
@media (max-width: 859px) {
  .consent-banner { padding: 12px; }
  .consent-actions { width: 100%; }
  .consent-btn { flex: 1 1 100%; min-width: 0; }
}
.cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: 0.9375rem;
}
.cookies-table th,
.cookies-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: start;
  vertical-align: top;
}
.cookies-table th { background: var(--soft); font-weight: 700; }


/* Unified form controls (select, checkbox, radio): appearance none, lotto-bw yellow,
   44px targets, focus-visible ring, hover/disabled, light+dark, Safari-safe.
   No component-type changes; no inline styles; no external assets. */
:root {
  --control-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232a353c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
  --control-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232a353c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E");
  --control-radio: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='4' fill='%232a353c'/%3E%3C/svg%3E");
}
html[data-theme="dark"] {
  --control-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23e8ecee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
}

select,
.field select,
.gen-toolbar select,
.apps-filter select,
.lotto-filter select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  max-width: 100%;
  padding: 4px 2.35rem 4px 10px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  background-color: var(--card);
  background-image: var(--control-arrow);
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 0.85rem 0.85rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  accent-color: var(--yellow);
}
select::-ms-expand { display: none; }
select:hover:not(:disabled) { border-color: var(--ink); }
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--yellow);
}
select:disabled,
select[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  background-color: var(--soft);
  color: var(--muted);
}

input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  margin: 0;
  flex: 0 0 auto;
  vertical-align: middle;
  border: 2px solid var(--line);
  background-color: var(--card);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.85rem 0.85rem;
  accent-color: var(--yellow);
  cursor: pointer;
  color: var(--on-yellow);
}
input[type="checkbox"] { border-radius: 3px; }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:hover:not(:disabled),
input[type="radio"]:hover:not(:disabled) {
  border-color: var(--ink);
}
input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background-color: var(--yellow);
  border-color: var(--on-yellow);
}
input[type="checkbox"]:checked {
  background-image: var(--control-check);
}
input[type="radio"]:checked {
  background-image: var(--control-radio);
}
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--yellow);
}
input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background-color: var(--soft);
}

.consent-toggle,
.auth-age,
label.choice,
.scanner-page label.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}
.auth-age { font-weight: 600; }

@media (forced-colors: active) {
  select,
  input[type="checkbox"],
  input[type="radio"] {
    appearance: auto;
    -webkit-appearance: auto;
    background: ButtonFace;
    border-color: ButtonText;
    forced-color-adjust: auto;
  }
}

/* Wiki hint/link blocks placed just above the footer must share the content
   container inset (.wrap uses 100% - 24px). Only when they are not already
   inside a .wrap (they are then a direct child of main). */
main > .wiki-more,
main > .wiki-lottery-link,
main > .wiki-to-money {
  width: min(100% - 24px, var(--wrap));
  margin-inline: auto;
}
