@font-face {
  font-family: "LiveXG Match";
  src: url("assets/livexg-match.woff") format("woff");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  unicode-range: U+0410, U+041C, U+0422, U+0427;
}
:root {
  color-scheme: light;
  --paper: #f7efe4;
  --ink: #171815;
  --accent: #a54126;
  --line: #a29887;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, select { font: inherit; }
:focus-visible { outline: 2px solid #88502d; outline-offset: 5px; }
header, main, footer { width: min(100% - 36px, 850px); margin-inline: auto; }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 22px; }
.brand { font-weight: 800; font-size: clamp(19px, 3.2vw, 30px); letter-spacing: -.05em; }
.brand span { color: var(--accent); }
nav { display: flex; gap: clamp(10px, 3vw, 34px); align-items: center; font-size: clamp(12px, 2vw, 16px); }
header a, .button { text-decoration: none; }
nav a:hover, .footer-links a:hover, .footer-links button:hover { text-decoration: underline; }
.language { position: relative; }
.language summary { list-style: none; cursor: pointer; font-weight: 700; white-space: nowrap; }
.language summary::-webkit-details-marker { display: none; }
.language ul { position: absolute; z-index: 2; right: 0; list-style: none; margin: 8px 0 0; padding: 10px 16px; background: var(--paper); border: 1px solid var(--line); }
.language li + li { margin-top: 8px; }
main { text-align: center; }
h1, h2, p { margin: 0; }
.hero { padding-top: clamp(24px, 5vw, 64px); }
.hero h1 { line-height: .98; letter-spacing: -.055em; }
.hero h1 strong { display: block; font: 900 clamp(94px, 20vw, 214px)/.9 Impact, "Arial Black", sans-serif; letter-spacing: -.035em; }
html[lang=en] .hero h1 strong { font-size: clamp(55px, 13vw, 160px); }
.hero h1 span { display: block; font-size: clamp(32px, 7.2vw, 74px); font-weight: 350; }
.hero-ball { display: block; width: min(100%, 660px); height: auto; margin: 34px auto 0; }
.about { border-top: 1px solid #90994f; width: min(100%, 680px); margin: 18px auto 0; padding-top: 24px; }
.about h2 { font-size: clamp(34px, 6.7vw, 72px); letter-spacing: -.05em; line-height: 1; }
.about p { max-width: 570px; margin: 14px auto 36px; }
.about p, .offer p, .facts { font-size: clamp(17px, 2.8vw, 25px); line-height: 1.3; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 9px 30px; border: 0; border-radius: 40px; background: var(--ink); color: white; font-weight: 700; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); background: var(--accent); }
.button:active { transform: translateY(0); }
.sports { margin: 44px auto 0; width: min(100%, 720px); }
.facts { display: grid; grid-template-columns: 1fr 1fr; text-align: left; }
.facts p { padding: 0 clamp(12px, 4vw, 50px); }
.facts p + p { border-left: 1px solid var(--line); }
.sports img { width: min(100%, 630px); height: auto; display: block; margin: 18px auto 0; }
.sports ul { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid #b6442d; list-style: none; margin: 0; padding: 8px 0 16px; font-size: clamp(14px, 2.8vw, 23px); }
.offer { padding: 46px 0 64px; }
.offer h2 { display: inline-block; padding-bottom: 8px; border-bottom: 1px solid; text-transform: uppercase; font-size: clamp(21px, 3vw, 27px); font-weight: 500; }
.offer p:first-of-type { margin-top: 30px; }
.offer p + p { margin-top: 20px; }
.offer .button { margin-top: 38px; }
footer { text-align: center; border-top: 1px solid var(--line); padding: 32px 0 46px; font-size: 15px; line-height: 1.45; }
footer p + p { margin-top: 6px; }
.footer-links { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 15px; }
.footer-links a, .footer-links button { text-decoration: none; padding: 0; }
.footer-links button { background: transparent; border: none; color: inherit; cursor: pointer; }
.account { min-height: 65vh; padding: 44px 0 56px; text-align: left; width: min(100% - 36px, 680px); }
.account h1 { font-size: clamp(34px, 7vw, 62px); letter-spacing: -.05em; }
.demo { margin: 10px 0 24px; }
.account label { display: block; margin-bottom: 8px; font-weight: 600; }
select { color: inherit; background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
.balance, .history { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.balance p strong { font-size: 50px; letter-spacing: -.05em; line-height: 1.2; }
.history p, table { margin-top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: clamp(13px, 2.5vw, 16px); }
th, td { padding: 10px 6px; border-bottom: 1px solid var(--line); }
th:last-child, td:last-child { text-align: right; }
dialog { max-width: min(90vw, 440px); background: var(--paper); color: var(--ink); border: 1px solid var(--line); padding: 25px; }
dialog p { margin: 14px 0; }
dialog::backdrop { background: #0007; }
[hidden] { display: none !important; }
#login-status:not(:empty), .telegram-identity { margin-top: 14px; }
#telegram-login, #account-panel form { margin-top: 22px; }

html[lang=ru] {
  font-family: "Century Gothic", "Segoe UI", sans-serif;
}
html[lang=ru] .brand {
  font-family: "Segoe UI", sans-serif;
}
html[lang=ru] .hero h1 {
  letter-spacing: -.045em;
}
html[lang=ru] .hero h1 strong {
  font-family: "LiveXG Match", Impact, "Arial Black", sans-serif;
  font-size: clamp(92px, 30vw, 250px);
  line-height: .83;
  letter-spacing: 0;
}
html[lang=ru] .hero h1 span {
  font-size: clamp(25px, 7vw, 63px);
  line-height: 1.04;
  font-weight: 400;
}
html[lang=ru] .hero h1 b {
  font-family: "Segoe UI", sans-serif;
  font-size: 1.22em;
  line-height: .8;
  font-weight: 900;
}
html[lang=ru] .about h2 {
  font-family: "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -.043em;
  font-size: clamp(32px, 6.3vw, 66px);
}
html[lang=ru] .offer h2 {
  font-weight: 400;
}
html[lang=ru] .button {
  font-size: clamp(15px, 2.4vw, 21px);
}
html[lang=ru] footer {
  font-size: clamp(13px, 2vw, 17px);
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
