/* Where you are and where else to go (owner, 2026-11-06).
   - The logo names the place: STEMX ARENA over CORE (the token site), Биржа (the exchange, a demo for now) or Кабинет
     (the holder's account). It leads to the start of that place and opens nothing.
   - The two other places are plain links in the header, on the right, each with its own icon.
   - Where the header has no room, they live in the menu (☰): on the token site in its phone menu, elsewhere in a
     small menu of the three places.
   Shared by the token site, the terms and the cabinet; the exchange keeps a copy in its styles. */
/* Text sizes that sit between whole pixels, or under 11 px, are tokens (the three sites use them as
   var(--f125, 12.5px)). A desktop keeps them as they were; a phone rounds each up, so nothing there is under 11 px and
   the small sizes are whole: 11, 12, 13, 14, 15, 16. The same scale as on the exchange. */
:root { --f9: 9px; --f10: 10px; --f105: 10.5px; --f115: 11.5px; --f125: 12.5px; --f135: 13.5px; --f145: 14.5px; --f155: 15.5px; }
@media (max-width: 760px) {
  :root { --f9: 11px; --f10: 11px; --f105: 11px; --f115: 12px; --f125: 13px; --f135: 14px; --f145: 15px; --f155: 16px; }
}
.place { display: inline-flex; flex: none; align-items: center; gap: 12px; min-width: 0; margin-left: -9px; padding: 6px 10px 6px 9px; border-radius: 13px; color: #fff; text-decoration: none; transition: background .15s; }
.place:hover { background: #ffffff0d; }
.place:focus-visible { outline: 2px solid #a0aaff; outline-offset: 2px; }
.place > img { flex: none; width: 34px; height: 26px; }
/* The mark keeps its own proportions in any box (a 28 x 22 box stretched it by 3%). */
img[src$="arena-mark-coin.svg"] { object-fit: contain; }
.place__name { display: grid; gap: 5px; min-width: 0; }
.place__name small { color: #8f9bbd; font: 700 9.5px/1 var(--heading, var(--display)); letter-spacing: .2em; white-space: nowrap; }
.place__name b { display: flex; align-items: center; gap: 7px; font: 700 19px/1 var(--heading, var(--display)); letter-spacing: .3px; white-space: nowrap; }
.place__demo { padding: 3px 6px; border-radius: 5px; background: #22c98b1f; color: #5ff0bd; font: 700 var(--f10, 10px)/1 system-ui, sans-serif; font-style: normal; letter-spacing: .06em; text-transform: uppercase; }

/* The two other places, on the right of the header; a thin line keeps them apart from the language and the main action. */
.elsewhere { display: flex; flex: none; align-items: center; gap: 2px; margin-right: 6px; padding-right: 12px; border-right: 1px solid #ffffff1f; }
.elsewhere__link { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px; border-radius: 11px; color: #c3cbea; font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.elsewhere__link:hover { background: #ffffff0d; color: #fff; }
.elsewhere__link:focus-visible { outline: 2px solid #a0aaff; outline-offset: 2px; }
.elsewhere__link svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.elsewhere__link--core svg { color: #aab4ff; }
.elsewhere__link--arena svg { color: #5ff0bd; }
.elsewhere__link--cabinet svg { color: #8cc8ff; }

/* The three places as rows: an icon, the name with «Вы здесь» on the place you are in, one line on what it is for. */
.place__title { margin: 0; padding: 8px 10px 6px; color: #7d88b4; font-size: 11px; font-weight: 600; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; }
.place__item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 12px; padding: 10px; border-radius: 12px; color: #c3cbea; text-decoration: none; transition: background .12s, color .12s; }
.place__item + .place__item { margin-top: 2px; }
.place__item > span { display: contents; }
.place__item:hover, .place__item:focus-visible { background: #18213f; color: #fff; }
.place__item:focus-visible { outline: 2px solid #a0aaff; outline-offset: -2px; }
.place__item.is-here { background: #5b6bff24; }
.place__item b { grid-row: 1; grid-column: 2; display: flex; align-items: center; gap: 7px; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.2; }
.place__item small { grid-row: 2; grid-column: 2 / 4; display: block; margin-top: 3px; color: #8f9bbd; font-size: 13px; font-weight: 500; line-height: 1.35; }
.place__here { grid-row: 1; grid-column: 3; color: #9aa6ff; font-size: var(--f115, 11.5px); font-style: normal; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.place__ico { grid-row: 1 / 3; grid-column: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; }
.place__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.place__ico--core { background: #6f7cff24; color: #aab4ff; box-shadow: inset 0 0 0 1px #8f9cff33; }
.place__ico--arena { background: #22c98b1c; color: #5ff0bd; box-shadow: inset 0 0 0 1px #22c98b33; }
.place__ico--cabinet { background: #4fa8ff1c; color: #8cc8ff; box-shadow: inset 0 0 0 1px #4fa8ff33; }

/* The menu (☰) of the three places, where the header has no room for the links. */
.places-menu { position: relative; display: none; flex: none; }
.places-menu__button { position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #8d98ff38; border-radius: 11px; background: #10172ed9; color: #ccd3f0; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.places-menu__button::before { content: ''; position: absolute; inset: -4px; }
.places-menu__button:hover, .places-menu__button[aria-expanded=true] { border-color: #a0aaff73; background: #18213f; color: #fff; }
.places-menu__button:focus-visible { outline: 2px solid #a0aaff; outline-offset: 3px; }
.places-menu__button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.places-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 70; width: 344px; max-width: calc(100vw - 24px); 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: places-panel-in .14s ease-out; }
.places-panel[hidden] { display: none; }
@keyframes places-panel-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .places-panel { animation: none; } }

/* The token site and the terms: links from 901 px; below, the token site's phone menu holds the rows, the terms get ☰. */
.places-list { display: none; }
@media (max-width: 1060px) and (min-width: 901px) { .site-header .elsewhere { margin-right: 2px; padding-right: 8px; } .site-header .elsewhere__link { padding: 0 8px; font-size: 13px; } }
@media (max-width: 900px) {
  .site-header .elsewhere { display: none; }
  .site-header .places-menu { display: block; }
  .site-header nav .places-list { display: block; margin: 22px 0 18px; padding: 6px; border-radius: 16px; background: #ffffff08; box-shadow: inset 0 0 0 1px #ffffff12; }
  .site-header nav .places-list a.place__item { display: grid; min-height: 0; padding: 10px; border-bottom: 0; font-size: 15px; }
  .site-header nav .places-list a.place__item b { font-size: 16px; }
}
/* The cabinet: links from 1280 px, ☰ below. Signed in, its header also holds the sections, the balance and the account
   button, so that button shows the initial only; the email stays in its menu («Вы вошли как»). */
.topbar .me span { display: none; }
@media (max-width: 1279px) { .topbar .elsewhere { display: none; } .topbar .places-menu { display: block; } }

@media (max-width: 700px) {
  .place { gap: 9px; margin-left: -7px; padding: 5px 8px 5px 7px; border-radius: 11px; }
  .place > img { width: 28px; height: 22px; }
  .place__name { gap: 4px; }
  /* 11 px, the smallest size on a phone (it was 8.5). */
  .place__name small { font-size: 11px; letter-spacing: .08em; }
  .place__name b { gap: 6px; font-size: 16px; }
  .places-menu__button { width: 38px; height: 38px; }
}
@media (max-width: 360px) {
  .place { gap: 7px; }
  .place > img { width: 24px; height: 19px; }
  .place__name b { font-size: 15px; }
}

/* Support contacts (2026-11-06): landing footer and FAQ, terms, cabinet footer and payment screen. */
.support-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.support-line a { color: #c9d4f2; text-decoration: underline; text-decoration-color: #ffffff38; text-underline-offset: 3px; overflow-wrap: anywhere; }
.support-line a:hover { color: #fff; text-decoration-color: currentColor; }
.faq-heading .support-line--faq { margin-top: 26px; font-size: 14px; color: #8f9bbb; }
.faq-heading .support-line--faq > span { flex-basis: 100%; }
.support-line--pay { margin: 0 26px 18px; font-size: 13px; color: #8f9bbb; }
@media (max-width: 760px) { .support-line--pay { margin: 0 18px 16px; } }
.footer-bottom .support-line { flex: none; }
#contacts + p a { color: #c9d4f2; text-decoration: underline; text-decoration-color: #ffffff38; text-underline-offset: 3px; }
#contacts + p a:hover { color: #fff; text-decoration-color: currentColor; }
@media (max-width: 650px) { .footer-bottom .support-line { flex: initial; } .footer-bottom .support-line > span { flex-basis: 100%; } }

/* ---------- Touch targets (11 Nov 2026) ----------
   On a touch screen a control answers to a touch of at least 44 x 44 px (Apple HIG; WCAG 2.2, SC 2.5.5), whatever its
   drawn size: an invisible pad, centred on the control, takes the touch. Links inside a sentence are left as they are. */
@media (pointer: coarse) {
  :where(.place, .link, .back-link, .btn-ghost, .link-button, .row-link, .row-open, .copy, .fact-act, .presets button, .segmented button, .password-toggle, .wallet, .me, .menu-button, .core-buy__presets button, .core-buy__chip, .story-mark, .foot > a, .support-line > a, .footer-bottom a) { position: relative; }
  :where(.place, .link, .back-link, .btn-ghost, .link-button, .row-link, .row-open, .copy, .fact-act, .presets button, .segmented button, .password-toggle, .menu-button, .core-buy__presets button, .core-buy__chip, .story-mark, .foot > a, .support-line > a, .footer-bottom a)::after { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
  .skip, .skip-link { min-height: 44px; }
  /* The wide layout on a touch screen (a tablet): the controls the phone rules do not reach. */
  :where(.footer-top a, .core-buy__tabs button, .text-link, #main-nav > a, .elsewhere__link, .header-buy, .button-small) { position: relative; }
  :where(.footer-top a, .core-buy__tabs button, .text-link, #main-nav > a, .elsewhere__link, .header-buy, .button-small)::after { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
  /* Links standing one under another: pads would lie on each other, so the rows themselves are 44 px. */
  .terms-page .terms-toc li { display: flex; align-items: center; margin-bottom: 0; }
  .terms-toc a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* «Skip to content»: white on the accent fill, 5.1:1 (it was 3.9:1 on the lighter blue). */
.skip-link { background: #4d5cf0; color: #fff; }

/* Controls for the self-running market illustration and desktop recordings. */
.market-motion { display:flex; align-items:center; justify-content:center; gap:12px; margin-top:18px; }
.market-motion .arena-markets__note { margin:0; }
.arena-markets__duo.is-paused *, .arena-markets__duo.is-paused *::before, .arena-markets__duo.is-paused *::after { animation-play-state:paused !important; }
.inside-media .inside-video-pause { position:absolute; z-index:3; top:12px; right:12px; }
.arena-product__stage .product-video-pause { position:absolute; z-index:3; right:12px; bottom:12px; }
