/* Shared public navigation and language controls. */
.header-actions { display:flex; align-items:center; gap:12px; margin-left:auto; }
.header-account { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:44px; padding:10px 17px; border:1px solid #8b96d94d; border-radius:12px; color:#f4f5ff; background:linear-gradient(145deg,#242e55,#151c35); font-size:14px; font-weight:600; white-space:nowrap; }
.header-account:hover { border-color:#9ba6ff; background:#2b3561; }
.arena-product__action { display:flex; justify-content:center; position:relative; z-index:2; margin-top:-20px; }
.arena-product__action .button { min-width:248px; }
.round-lounge .calculator.core-buy { padding:24px; }
.core-buy__head { margin-bottom:14px; }
.core-buy__account { flex-direction:row; align-items:center; gap:8px; padding:7px 9px; border-radius:14px; background:linear-gradient(130deg,#24305b80,#0a142a); box-shadow:inset 0 1px #ffffff0a; }
.core-buy__account-icon { display:flex; flex-shrink:0; }
.core-buy__account-icon img { width:32px; height:32px; }
.core-buy__account-copy { text-align:left; display:grid; gap:2px; }
.core-buy__account strong { font-variant-numeric:tabular-nums; font-size:13px; }
.core-buy__account small { font-size:var(--f10, 10px); }
.core-buy__unit { font-size:var(--f10, 10px); color:#a9b4e7; }
.core-buy__account-arrow { color:#aab6fb; margin-left:3px; }
.core-buy__field { padding:12px 16px 14px; }
.core-buy__amount input,.core-buy__core { font-size:34px; }
.core-buy__presets { margin-top:8px; }
.core-buy__tabs { margin-bottom:12px; }
.core-buy__options { gap:8px; margin-top:14px; }
.core-buy__summary { margin-top:14px; padding-top:12px; }
/* Language switch: a compact pill and a list of languages in their own names. */
.lang-switch { position:relative; display:inline-flex; }
.lang-switch__button { position:relative; display:inline-flex; align-items:center; gap:6px; height:36px; padding:0 9px 0 10px; border:1px solid #8d98ff38; border-radius:11px; background:#10172ed9; color:#ccd3f0; font-family:inherit; font-size:var(--f125, 12.5px); font-weight:600; line-height:1; letter-spacing:.5px; cursor:pointer; transition:border-color .15s, background .15s, color .15s; }
.lang-switch__button::before { content:''; position:absolute; inset:-4px; }
.lang-switch__button:hover, .lang-switch__button[aria-expanded=true] { border-color:#a0aaff73; background:#18213f; color:#fff; }
.lang-switch__globe { flex-shrink:0; color:#94a0d4; }
.lang-switch__chevron { flex-shrink:0; margin-left:-1px; color:#8390bf; transition:transform .15s; }
.lang-switch__button[aria-expanded=true] .lang-switch__chevron { transform:rotate(180deg); }
.lang-switch__menu { position:absolute; top:calc(100% + 8px); right:0; z-index:60; width:232px; padding:6px; border:1px solid transparent; border-radius:16px; background:linear-gradient(#10172e,#10172e) padding-box, linear-gradient(180deg,#aab6ff47,#aab6ff12 42%,#aab6ff0d) border-box; box-shadow:0 24px 60px -18px #000000e6; transform-origin:top right; animation:lang-menu-in .14s ease-out; }
.lang-switch__menu[hidden] { display:none; }
@keyframes lang-menu-in { from { opacity:0; transform:translateY(-4px) scale(.98); } }
.lang-switch__title { margin:0; padding:8px 10px 6px; color:#7d88b4; font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.lang-switch__menu ul { display:grid; gap:2px; margin:0; padding:0; list-style:none; }
.lang-switch__item { display:flex; align-items:center; gap:10px; height:40px; padding:0 10px 0 12px; border-radius:10px; color:#c3cbea; font-size:14px; font-weight:500; text-decoration:none; transition:background .12s, color .12s; }
.lang-switch__item small { margin-left:auto; color:#6d78a5; font-size:11px; font-weight:600; letter-spacing:.06em; }
.lang-switch__item:hover, .lang-switch__item:focus-visible { background:#18213f; color:#fff; }
.lang-switch__item[aria-current=true] { background:#5b6bff24; color:#fff; font-weight:600; }
.lang-switch__item[aria-current=true] small { display:none; }
.lang-switch__check { margin-left:auto; color:#8d98ff; }
.lang-switch__button:focus-visible, .header-account:focus-visible { outline:2px solid #a0aaff; outline-offset:3px; }
.lang-switch__item:focus-visible { outline:2px solid #a0aaff; outline-offset:-2px; }
@media (prefers-reduced-motion: reduce) { .lang-switch__menu { animation:none; } }
/* Typography: balanced headings, no lone last words, table figures never split. */
h1, h2, h3 { text-wrap: balance; }
p, li, dd, summary, figcaption { text-wrap: pretty; }
.terms-page td:nth-child(n+2), .terms-page th { white-space: nowrap; }
.faq-heading .text-link { white-space: nowrap; }
/* FAQ on phones: the heading takes the full width, the book sits beside the text below it. */
@media (max-width: 650px) {
  .faq-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; min-height: 0; }
  .faq-heading h2 { grid-column: 1 / -1; max-width: none; }
  .faq-heading p, .faq-heading .text-link { grid-column: 1; max-width: none; }
  .faq-art { position: static; grid-column: 2; grid-row: 2 / span 2; width: clamp(104px, 30vw, 140px); max-width: none; margin: 0 -6px 0 0; }
}
/* Next-step track: labels keep apart and the status lines stay on one baseline. */
.arena-next__track { grid-template-rows: auto auto auto; }
.arena-next__track li { grid-row: span 3; grid-template-rows: subgrid; padding-inline: 6px; }
.arena-next__track b { text-wrap: balance; }
/* Profit split chips stay on one row. */
.money-split { gap: 4px; }
.money-split i { padding: 3px 8px; white-space: nowrap; }
@media (max-width: 700px) { .money-split i { padding: 3px 6px; font-size: 11px; letter-spacing: 0; } }
/* Desktop: headings stop before the coin art; translated two-line intros keep air above the ledger. */
@media (min-width: 901px) {
  .stemx-future h2 { max-width: calc(52 * var(--vw, 1vw)); }
  /* Longer translations take a smaller size where the Russian title fits two lines. */
  html[lang="es"] .stemx-future h2 { font-size: calc(clamp(45px, calc(5.08 * var(--vw, 1vw)), 88px) * .86); }
  html[lang="fr"] .stemx-future h2, html[lang="pl"] .stemx-future h2 { font-size: calc(clamp(45px, calc(5.08 * var(--vw, 1vw)), 88px) * .92); }
  html[lang="uk"] .stemx-future h2 { font-size: calc(clamp(45px, calc(5.08 * var(--vw, 1vw)), 88px) * .86); }
  html[lang="en"] #round-title, html[lang="fr"] #round-title { font-size: calc(3.44 * var(--vw, 1vw)); }
  html[lang="es"] #round-title { font-size: calc(3.2 * var(--vw, 1vw)); }
  html:not([lang="ru"]) .economy-ledger__allocation { margin-top: 14px; }
}
/* Hero headline: languages with longer words take a smaller size, so it stays on two lines. */
html[lang="en"] .arena-hero, html[lang="de"] .arena-hero, html[lang="es"] .arena-hero { --hero-scale: .8; }
html[lang="fr"] .arena-hero { --hero-scale: .94; }
/* Phones: section titles shrink with the screen, so long words keep whole lines down to 320px. */
@media (max-width: 700px) {
  #product-title, #story-title, #versus-title, #inside-title, #flow-title, #economy-title, #round-title, #tokenomics-title, #stemx-title, #migration-title, #faq-title, #closing-title { font-size: clamp(24px, 7.7vw, 30px); }
}
@media (max-width: 370px) {
  .lounge-copy #round-title, .tokenomics-glass__heading #tokenomics-title { font-size: clamp(23px, 7vw, 26px); }
  .economy-ledger__shares li { grid-template-columns: 96px 1fr; gap: 12px; }
  .economy-ledger__percent { font-size: 50px; letter-spacing: -2.4px; }
  .economy-ledger__shares li > div { padding-left: 14px; }
  .economy-ledger__shares h3 { font-size: 16px; }
  .terms-page h2 { font-size: 22px; }
  .terms-page h1 { font-size: 26px; }
  .stemx-future__buyback h3 { font-size: 18px; }
  .stemx-future__buyback p { font-size: 14px; }
}
/* Short lists and card notes wrap evenly instead of leaving one word behind. */
.arena-product__sports, .stemx-future__buyback p, .economy-ledger__shares p, .terms-page td { text-wrap: balance; }
/* Phone tokenomics list: every row keeps the same right edge. */
@media (max-width: 700px) { .supply-shares > .supply-share { padding-right: 8px; } }
/* Tablets: the product title sits in a narrow column beside its lead; it keeps two lines in every language. */
@media (max-width: 1000px) and (min-width: 701px) { .arena-product h2 { font-size: clamp(26px, 3.75vw, 38px); } }
@media (max-width: 900px) { html[lang="en"] #round-title, html[lang="es"] #round-title, html[lang="fr"] #round-title { font-size: 5.2vw; } }
@media (max-width: 700px) { html[lang="en"] #round-title, html[lang="es"] #round-title, html[lang="fr"] #round-title { font-size: clamp(22px, 6.7vw, 26px); } }
@media (max-width: 650px) { .terms-page h1 { font-size: clamp(26px, 8.4vw, 34px); } }
@media (max-width: 360px) { .holders-eyebrow { letter-spacing: .06em; } }
/* FAQ glow fades out before the content edge, so it leaves no visible seam. */
.faq-section::before { background: radial-gradient(ellipse closest-side at 28% 47%, #33294540, transparent); }
/* Long words never leave their box; German compounds are hyphenated. */
h1, h2, h3, h4 { overflow-wrap: break-word; }
:lang(de) :is(h1, h2, h3, h4) { -webkit-hyphens: auto; hyphens: auto; }
.core-buy__account { flex-shrink: 0; }
.inside-media img[data-localized-preview],
.inside-phone__screen img[data-localized-preview] { display:block; width:100%; height:100%; object-fit:contain; object-position:50% 0; }
.site-header .lang-switch__button { height:44px; padding:0 12px 0 13px; border-radius:12px; }
@media(min-width:1001px) { .nav-shell { gap:24px; } .site-header nav { gap:22px; } }
@media(max-width:1100px) and (min-width:701px) { .core-buy__account-icon { display:none; } .site-header nav { gap:13px; } .site-header nav a { font-size:12px; } .header-actions { gap:8px; } }
@media(max-width:700px) {
  .site-header .nav-shell { gap:8px; }
  .site-header .brand-arena { gap:8px; flex-shrink:1; min-width:0; }
  .site-header .brand-arena img { width:26px; height:20px; }
  .site-header .brand-arena span { font-size:15px; letter-spacing:.4px; }
  .header-actions { gap:6px; }
  .site-header .header-account { position:relative; width:38px; min-height:38px; height:38px; padding:0; border-radius:11px; flex-shrink:0; }
  .site-header .header-account::before, .site-header .menu-button::before { content:''; position:absolute; inset:-3px; }
  .site-header .header-account svg { display:block; width:18px; height:18px; }
  .header-account span { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .site-header .menu-button { position:relative; width:38px; height:38px; border-radius:11px; }
  .lang-switch__chevron { display:none; }
  .lang-switch__button { padding:0 10px 0 9px; gap:5px; }
  .site-header .lang-switch__button { height:38px; padding:0 10px 0 9px; border-radius:11px; }
  .lang-switch__menu { width:min(240px, calc(100vw - 24px)); }
  .arena-product__action { margin-top:0; } .arena-product__action .button { min-width:0; width:min(100%,340px); }
  .round-lounge .lounge-layout { gap:24px; }
  .round-lounge .calculator.core-buy { padding:18px; grid-template-areas:"head" "tabs" "pay" "err" "panel"; }
  .core-buy__head { position:static; grid-area:head; flex-wrap:wrap; gap:10px; margin:0 0 14px; }
  .core-buy__title { gap:8px; }
  .core-buy__title strong { font-size:16px; }
  .core-buy__account { margin-left:auto; }
  .core-buy__field { padding:12px 14px; } .core-buy__options { margin-top:12px; }
  .core-buy__presets button,.core-buy__chip { min-height:40px; }
  .core-buy__account-icon { display:none; }
}
/* Terms page header: brand, language and the buy link share one row on phones. */
@media(max-width:480px) {
  .site-header.terms-header .brand-arena { gap:8px; }
  .site-header.terms-header .brand-arena img { width:26px; height:20px; }
  .site-header.terms-header .brand-arena > span { font-size:15px; letter-spacing:.4px; }
  .site-header.terms-header .header-actions { gap:6px; }
  .site-header.terms-header .button-small { min-height:38px; height:38px; padding:0 12px; border-radius:11px; font-size:var(--f125, 12.5px); white-space:nowrap; }
  .site-header.terms-header .lang-switch__globe { display:none; }
  .site-header.terms-header .lang-switch__button { padding:0 10px; }
}
/* The page keeps its own links back to CORE; the header keeps brand and language. */
@media(max-width:400px) { .site-header.terms-header .button-small { display:none; } }
@media(max-width:340px) {
  .site-header .nav-shell { gap:6px; }
  .site-header .brand-arena span { font-size:13px; letter-spacing:.1px; }
}
@media(max-width:360px) {
  .site-header .brand-arena span { font-size:var(--f135, 13.5px); letter-spacing:.2px; }
  .site-header .brand-arena { gap:7px; }
  .header-actions { gap:4px; }
  .lang-switch__globe { display:none; }
  .lang-switch__button, .site-header .lang-switch__button { padding:0 10px; }
}

/* Until the page is in the visitor's language (lang-gate.js), its content stays hidden, so the Russian words never show
   and the layout never jumps when the translation replaces them. */
html.i18n-wait body > * { visibility: hidden; }
/* The terms page wears the landing's header (audit of 14 Nov 2026): 72 px tall and 60 on phones, its hairline drawn
   inside so it adds nothing; the same column at every width; from 901 px the same narrow language button and buy button. */
.site-header.terms-header { border-bottom: 0; box-shadow: inset 0 -1px 0 #161c33; }
@media (min-width: 1191px) { .site-header.terms-header .nav-shell { width: min(1304px, 87.5%); } }
@media (min-width: 701px) and (max-width: 900px) { .site-header.terms-header .nav-shell { width: calc(100% - 64px); } }
@media (max-width: 700px) { .site-header.terms-header .nav-shell { width: calc(100% - 40px); height: 60px; } }
@media (min-width: 901px) {
  .site-header.terms-header .header-actions { gap: 8px; }
  .site-header.terms-header .header-actions .lang-switch__button { height: 40px; padding: 0 11px; gap: 6px; border-radius: 11px; }
  .site-header.terms-header .header-actions .lang-switch__chevron { display: none; }
}
@media (min-width: 701px) { .site-header.terms-header .button-small { min-height: 40px; height: 40px; padding: 9px 18px; border-radius: 11px; font-size: 14px; } }
