:root {
  --background: #0d1421;
  --header: #101725;
  --surface: #222632;
  --inset: #171e2e;
  --line: #3a4254;
  --text: #f1f4f9;
  --muted: #afb8ca;
  --blue: #3861fb;
  --link: #95b0ff;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font: 18px/1.55 "Inter", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid #a2b8ff; outline-offset: 4px; }
[hidden] { display: none !important; }
.frame { width: min(1320px, calc(100% - 64px)); margin-inline: auto; }
.header { background: var(--header); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; min-height: 72px; gap: 52px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 650; letter-spacing: -.6px; white-space: nowrap; }
.brand svg { width: 29px; height: 29px; fill: none; stroke: #eef3ff; stroke-width: 1.6; }
.brand svg rect { fill: #263b70; stroke: #6d8dfb; stroke-width: 1.2; }
.navigation { display: flex; gap: 30px; align-self: stretch; }
.navigation a { position: relative; display: flex; align-items: center; font-size: 16px; font-weight: 550; color: var(--muted); white-space: nowrap; }
.navigation a[aria-current], .navigation a:hover { color: var(--text); }
.navigation a[aria-current]::after { content: ""; height: 3px; background: #6685ff; position: absolute; left: 0; right: 0; bottom: -1px; }
.header-end { display: flex; gap: 28px; align-items: center; margin-left: auto; font-size: 14px; color: var(--muted); }
.header-end a { color: var(--text); }
.language { border: 1px solid var(--line); border-radius: 6px; padding: 4px 9px; font-size: 12px; }
.tool { padding-top: 27px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
h1 { font-size: 25px; line-height: 1.3; margin: 0; letter-spacing: -.65px; font-weight: 650; }
.page-heading > span { font-size: 14px; color: var(--muted); }
.workspace { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.fields { display: grid; grid-template-columns: 190px minmax(200px,1fr) 250px; gap: 18px; align-items: end; }
.field { min-width: 0; }
.field label { display: block; color: var(--muted); font-size: 15px; line-height: 1.4; margin: 0 0 10px; }
.select-wrap { position: relative; }
.select-wrap select { width: 100%; height: 52px; border: 1px solid #526079; border-radius: 7px; appearance: none; background: var(--inset); color: var(--text); font-size: 17px; font-weight: 500; padding: 0 40px 0 15px; }
.select-wrap svg { position: absolute; width: 14px; height: 14px; pointer-events: none; top: 20px; right: 15px; fill: none; stroke: var(--muted); stroke-width: 1.5; }
.primary { display: flex; align-items: center; justify-content: center; text-align: center; gap: 18px; background: var(--blue); color: white; border: 1px solid #5173fa; border-radius: 7px; height: 52px; padding: 0 18px; font-size: 16px; font-weight: 600; transition: background .15s; white-space: nowrap; }
.primary:hover { background: #2f56e5; }
.primary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.form-note { font-size: 14px; color: var(--muted); margin: 16px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.form-note #scheme-note { color: var(--text); }
.mobile-basis { display: none; }
.result { margin-top: 22px; padding: 20px; background: var(--inset); border: 1px solid #414c63; border-radius: 8px; }
.result h2 { font-size: 16px; font-weight: 550; margin: 0; color: var(--muted); }
.result-value { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 34px; font-weight: 650; letter-spacing: -.8px; font-variant-numeric: tabular-nums; margin: 10px 0; }
.result-value small { color: var(--muted); font-size: 18px; font-weight: 450; }
.result p { color: var(--muted); font-size: 15px; margin: 8px 0 0; max-width: 850px; }
.result .formula { font-size: 14px; margin-top: 7px; }
.catalog { margin-top: 30px; scroll-margin-top: 20px; }
.catalog-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.catalog-title { display: flex; align-items: center; gap: 10px; }
.catalog-title h2 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.4px; }
.count { color: var(--muted); font-size: 13px; background: #252d3e; padding: 2px 8px; border-radius: 5px; font-variant-numeric: tabular-nums; }
.search { position: relative; display: flex; width: 280px; }
.search input { background: var(--surface); color: var(--text); border: 1px solid #4c576d; border-radius: 7px; width: 100%; height: 42px; padding: 0 12px 0 38px; font-size: 14px; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search svg { position: absolute; left: 12px; top: 13px; height: 16px; width: 16px; fill: none; stroke: var(--muted); stroke-width: 1.5; pointer-events: none; }
.catalog-toolbar { display: flex; align-items: center; gap: 8px; margin: 14px 0 17px; }
.filter { border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 14px; font-weight: 550; min-height: 42px; padding: 8px 16px; border-radius: 7px; }
.filter:hover { color: white; background: #202c43; }
.filter[aria-pressed="true"] { color: #c5d3ff; background: #263967; border-color: #4a6399; }
.table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { border-collapse: collapse; border-spacing: 0; width: 100%; table-layout: fixed; }
thead { background: var(--inset); }
th { font-size: 13px; line-height: 1.5; text-align: left; font-weight: 550; color: #c0c8d9; padding: 15px 20px; border-bottom: 1px solid #414b5e; }
th:first-child { width: 30%; }
.country-column { width: 12%; }
.scheme-column { width: 19%; }
.odds-column { width: 25%; text-align: right; }
.action-column { width: 14%; text-align: right; }
.column-note { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
td { padding: 15px 20px; font-size: 15px; line-height: 1.5; color: var(--muted); border-bottom: 1px solid #3a4252; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #2a3141; }
.game-link { display: flex; align-items: center; gap: 12px; background: transparent; border: 0; padding: 0; text-align: left; color: var(--text); min-height: 44px; max-width: 100%; }
.game-link:hover .game-name { color: #b4c8ff; }
.game-symbol { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 8px; color: #c6d6ff; background: #304268; border: 1px solid #4d6087; font-size: 12px; font-weight: 650; }
.game-name { display: block; font-size: 16px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.game-meta { display: none; }
.odds-cell { text-align: right; color: var(--text); font-size: 16px; font-variant-numeric: tabular-nums; }
.odds-prefix { color: var(--muted); font-size: 13px; margin-right: 7px; white-space: nowrap; }
.odds-number { white-space: nowrap; font-weight: 550; }
.row-action { display: inline-flex; align-items: center; justify-content: end; gap: 8px; min-height: 44px; padding: 4px 0; font-size: 13px; font-weight: 550; color: #aac0ff; background: none; border: 0; }
.row-action:hover { color: white; }
.row-action svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.empty-state { padding: 28px 20px; margin: 0; color: var(--muted); font-size: 16px; }
.table-note { color: var(--muted); font-size: 13px; margin: 15px 0 0; }
.balls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ball { display: grid; place-items: center; min-width: 40px; height: 40px; border: 1px solid #7184a6; border-radius: 8px; color: var(--text); font-size: 16px; }
.ball.bonus { background: #304b88; border-color: #95b3ff; }
.ball.match { color: #cbd9ff; border-width: 2px; background: #283e69; }
.balls-label { flex: 0 0 70px; color: var(--muted); font-size: 14px; }
.balls-plus { color: var(--muted); }
.footer { display: flex; align-items: baseline; gap: 24px; margin-top: 38px; padding-top: 21px; padding-bottom: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer > span:first-child { color: #d9e0ee; font-size: 14px; font-weight: 550; }
.footer p { margin: 0; max-width: 880px; }
.version { margin-left: auto; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 1050px) {
  .frame { width: calc(100% - 40px); }
  .header-inner { gap: 30px; }
  .navigation { gap: 23px; }
  .header-end > a { display: none; }
  .fields { grid-template-columns: 150px minmax(180px,1fr) 210px; gap: 15px; }
  .primary { padding-inline: 14px; font-size: 15px; gap: 9px; }
  th, td { padding-inline: 16px; }
  .action-column { display: none; }
  th:first-child { width: 35%; }
  .country-column { width: 13%; }
  .scheme-column { width: 24%; }
  .odds-column { width: 28%; }
}
@media (max-width: 700px) {
  .frame { width: calc(100% - 32px); }
  .header-inner { flex-wrap: wrap; gap: 0; padding-top: 16px; min-height: 0; }
  .brand { font-size: 19px; gap: 8px; }
  .brand svg { width: 26px; height: 26px; }
  .header-end { margin-left: auto; }
  .language { font-size: 11px; padding: 3px 7px; }
  .navigation { order: 3; justify-content: space-between; gap: 12px; width: 100%; margin-top: 13px; }
  .navigation a { min-height: 49px; padding-inline: 3px; font-size: 14px; }
  .tool { padding-top: 22px; }
  .page-heading { margin-bottom: 17px; }
  h1 { font-size: 23px; letter-spacing: -.6px; }
  .page-heading > span { display: none; }
  .workspace { padding: 19px 18px; border-radius: 10px; }
  .fields { grid-template-columns: minmax(0,1fr); gap: 19px; }
  .field label { font-size: 14px; margin-bottom: 9px; }
  .select-wrap select { height: 50px; font-size: 17px; }
  .select-wrap svg { top: 19px; }
  .primary { height: 51px; font-size: 16px; padding-inline: 16px; margin-top: 1px; }
  .form-note { font-size: 13px; gap: 6px; margin-top: 15px; }
  .mobile-basis { display: block; flex-basis: 100%; margin-top: 3px; }
  .result { padding: 16px; }
  .result h2 { font-size: 14px; }
  .result-value { font-size: 28px; letter-spacing: -.5px; gap: 9px; }
  .result-value small { font-size: 16px; }
  .result p { font-size: 14px; }
  .result .formula { font-size: 13px; }
  .catalog { margin-top: 25px; }
  .catalog-heading { flex-wrap: wrap; gap: 16px; }
  .catalog-title h2 { font-size: 21px; }
  .search { width: 100%; }
  .search input { height: 43px; font-size: 15px; }
  .catalog-toolbar { margin: 11px 0 14px; }
  .filter { min-height: 44px; font-size: 14px; padding-inline: 15px; }
  .table-wrap { border-radius: 8px; }
  th { padding: 12px; font-size: 12px; }
  th:first-child { width: 54%; }
  .country-column, .scheme-column { display: none; }
  .odds-column { width: 46%; }
  .column-note { font-size: 10px; line-height: 1.5; }
  td { padding: 15px 12px; }
  .game-link { align-items: start; gap: 0; min-height: 44px; }
  .game-symbol { display: none; }
  .game-name { font-size: 16px; line-height: 1.5; }
  .game-meta { display: block; font-size: 13px; line-height: 1.7; color: var(--muted); margin-top: 4px; }
  .odds-cell { font-size: 16px; }
  .odds-prefix { display: block; font-size: 12px; margin: 0 0 3px; }
  .table-note { font-size: 12px; line-height: 1.7; }
  .ball { min-width: 31px; height: 31px; font-size: 13px; }
  .balls { gap: 6px; }
  .balls-label { flex-basis: 100%; font-size: 13px; }
  .footer { margin-top: 25px; padding-top: 17px; flex-wrap: wrap; gap: 10px; font-size: 11px; }
  .footer p { flex-basis: 100%; order: 3; line-height: 1.7; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
