﻿:root {
  --bg: #f3f5f8;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #d9e0ea;
  --border: #d9e0ea;
  --line-strong: #c5ceda;
  --panel-soft: #f8fafc;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06), 0 8px 18px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 14px 36px rgba(17, 24, 39, 0.11);
  --blue: #1677c8;
  --blue-soft: #e8f3ff;
  --blue-ink: #075a9c;
  --red: #d92d5b;
  --red-soft: #ffeaf0;
  --red-ink: #981b3d;
  --green: #11845b;
  --green-soft: #e8f7ef;
  --amber: #b7791f;
  --amber-soft: #fff7e6;
  --focus: rgba(22, 119, 200, 0.16);
  --tg-content-safe-top: 0px;
  --tg-controls-safe-top: 0px;
  --chrome-safe-top: max(env(safe-area-inset-top), var(--tg-content-safe-top));
  --safe-top: calc(var(--chrome-safe-top) + var(--tg-controls-safe-top));
  --status-bar-height: 100px;
  --bottom-nav-height: 66px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-bottom: calc(var(--bottom-nav-height) + max(8px, env(safe-area-inset-bottom)));
  padding-top: calc(var(--safe-top) + var(--status-bar-height));
  text-rendering: optimizeLegibility;
}

body.help-open {
  overflow: hidden;
}

.startup-overlay {
  align-items: center;
  background: var(--bg);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: calc(var(--safe-top) + 28px) 18px 28px;
  position: fixed;
  right: 0;
  top: 0;
  transition: opacity 180ms ease, visibility 180ms ease;
  z-index: 80;
}

.startup-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.startup-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 8px;
  max-width: 360px;
  padding: 18px;
  width: 100%;
}

.startup-panel strong {
  color: var(--ink);
  font-size: 18px;
}

.startup-panel span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.startup-skeleton {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.startup-skeleton i {
  animation: startupPulse 1.1s ease-in-out infinite;
  background: linear-gradient(90deg, #eef2f7, #dce6f2, #eef2f7);
  background-size: 200% 100%;
  border-radius: 8px;
  display: block;
  height: 14px;
}

.startup-skeleton i:nth-child(2) {
  width: 82%;
}

.startup-skeleton i:nth-child(3) {
  width: 64%;
}

@keyframes startupPulse {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

button,
input,
select {
  font: inherit;
  font-size: 16px;
  touch-action: manipulation;
}

button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease, transform 140ms ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button:not(:disabled):active {
  transform: translateY(1px);
}

.status-bar {
  align-items: stretch;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
  display: grid;
  gap: 8px;
  grid-template-areas:
    "logo identity"
    "actions actions";
  grid-template-columns: 52px minmax(0, 1fr);
  left: 0;
  min-height: var(--status-bar-height);
  padding: 10px max(12px, env(safe-area-inset-left)) 9px max(12px, env(safe-area-inset-right));
  position: fixed;
  right: 0;
  top: var(--safe-top);
  z-index: 20;
}

.app-logo {
  align-self: center;
  background: #050505;
  border: 1px solid rgba(183, 121, 31, 0.55);
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(7, 16, 34, 0.16);
  display: block;
  grid-area: logo;
  height: 52px;
  object-fit: cover;
  width: 52px;
}

.identity {
  align-items: center;
  display: flex;
  gap: 8px;
  grid-area: identity;
  justify-content: flex-end;
  min-height: 36px;
  min-width: 0;
}

.identity-main {
  flex: 0 1 auto;
  min-width: 0;
  text-align: right;
}

.avatar {
  align-items: center;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.16);
  color: white;
  display: flex;
  flex: 0 0 auto;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.identity p {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 2px;
  max-width: min(54vw, 420px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity strong {
  align-items: baseline;
  color: var(--muted);
  display: inline-flex;
  font-size: 13px;
  gap: 4px;
  justify-content: flex-end;
  line-height: 1.2;
}

.identity span {
  color: var(--ink);
  font-weight: 900;
}

.balance-wallet-link {
  color: var(--blue-ink);
  display: inline-block;
  font-size: 13px;
  font-weight: 900;
  max-width: min(72vw, 520px);
  overflow: hidden;
  text-decoration: underline;
  text-overflow: ellipsis;
  vertical-align: top;
  white-space: nowrap;
}

.header-actions {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-area: actions;
  grid-template-columns: minmax(82px, 1fr) minmax(96px, 1fr) minmax(96px, 1fr);
  min-height: 32px;
  width: 100%;
}

.header-language,
.header-language select,
.discussion-btn,
.help-open-btn {
  width: 100%;
}

.header-language select {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  height: 34px;
  min-height: 34px;
  overflow: hidden;
  padding: 0 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settle-btn,
.place-btn {
  background: var(--ink);
  color: white;
  min-height: 42px;
  padding: 0 16px;
}

.help-open-btn {
  align-items: center;
  background: var(--ink);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.14);
  color: white;
  display: flex;
  font-size: 13px;
  height: 34px;
  justify-content: center;
  min-height: 32px;
  overflow: hidden;
  padding: 0 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discussion-btn {
  align-items: center;
  background: #eff7ff;
  border: 1px solid #c5dcff;
  color: var(--blue-ink);
  display: flex;
  font-size: 13px;
  height: 34px;
  justify-content: center;
  min-height: 32px;
  overflow: hidden;
  padding: 0 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell {
  margin: 0 auto;
  padding: 14px 14px 24px;
  width: min(1120px, 100%);
}

.email-auth-panel {
  align-items: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 199, 0, 0.12), transparent 34%),
    var(--bg);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 90;
}

.email-auth-form {
  background: white;
  border: 1px solid #d9e1ec;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 14px;
  max-width: 400px;
  padding: 22px;
  width: min(100%, 400px);
}

.email-auth-brand {
  align-items: center;
  background: #050505;
  border: 1px solid rgba(255, 199, 0, 0.7);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(7, 16, 34, 0.18);
  display: inline-flex;
  height: 64px;
  justify-content: center;
  overflow: hidden;
  width: 64px;
}

.email-auth-logo {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.email-auth-form h1 {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}

.email-auth-form p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.email-auth-activity {
  background: linear-gradient(135deg, #fff7d6 0%, #fff 45%, #eef6ff 100%);
  border: 1px solid #f2d36b;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.email-auth-activity span {
  color: #9a6b00;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.email-auth-activity strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

.email-auth-activity p {
  color: #475569;
  font-size: 13px;
}

.email-auth-mode {
  background: #eef2f7;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
}

.email-auth-mode button {
  background: transparent;
  color: var(--muted);
  min-height: 36px;
}

.email-auth-mode button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.email-auth-form label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 6px;
}

.email-auth-form input {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: var(--ink);
  font-size: 16px;
  min-height: 46px;
  padding: 0 14px;
}

.email-auth-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.email-auth-actions button {
  border-radius: 8px;
  font-weight: 800;
  min-height: 46px;
}

.email-auth-actions button[type="submit"] {
  background: var(--ink);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.14);
  color: white;
}

.email-auth-actions button[type="button"] {
  background: #eef6ff;
  border: 1px solid #c5dcff;
  color: var(--blue-ink);
}

.email-browse-btn {
  background: linear-gradient(135deg, #111827 0%, #27344a 68%, #c98b00 100%);
  border: 1px solid rgba(242, 211, 107, 0.7);
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.16);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  justify-self: stretch;
  min-height: 48px;
  padding: 0 18px;
  width: 100%;
}

.email-browse-btn:hover {
  border-color: #f2d36b;
}

.email-auth-error {
  color: #b42318;
  font-size: 13px;
  min-height: 18px;
}

.email-auth-note {
  color: var(--muted);
  font-size: 12px;
}

.tabs {
  align-items: end;
  background: rgba(255, 255, 255, 0.98);
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--line);
  bottom: 0;
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  left: 50%;
  margin: 0;
  max-width: 760px;
  padding: 8px max(10px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  position: fixed;
  transform: translateX(-50%);
  width: 100%;
  z-index: 24;
}

.tabs.worldcup-enabled {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tab {
  align-items: center;
  background: transparent;
  border-radius: 0;
  color: #98a2b3;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  font-weight: 900;
  gap: 5px;
  justify-content: flex-end;
  min-height: 50px;
  padding: 4px 2px 0;
}

.tab::before {
  background: #c8d0dc;
  border-radius: 999px;
  content: "";
  display: block;
  height: 5px;
  width: 5px;
}

.tab.active {
  background: transparent;
  box-shadow: none;
  color: var(--ink);
}

.tab.active::before {
  background: var(--ink);
  height: 4px;
  margin-bottom: 3px;
  width: 28px;
}

.tab:not(.active):hover {
  background: var(--panel-soft);
  color: var(--ink);
}

.utility-row {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  margin-bottom: 12px;
}

.search {
  display: none;
  gap: 4px;
}

.search > span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.search-box {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(120px, 1fr) auto;
  width: 100%;
}

input,
select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  padding: 0 12px;
  width: 100%;
}

input:focus,
select:focus {
  border-color: rgba(22, 119, 200, 0.55);
  box-shadow: 0 0 0 3px var(--focus);
  outline: none;
}

.search-btn {
  background: var(--ink);
  color: white;
  min-height: 36px;
  padding: 0 10px;
}

.sort-controls {
  display: flex;
  gap: 6px;
  justify-content: stretch;
}

.sort-controls .filter-btn {
  flex: 1 1 0;
}

.filter-btn {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  min-height: 34px;
  min-width: 86px;
  padding: 0 8px;
}

.filter-btn.active {
  background: #eef6ff;
  border-color: #b7d7ff;
  color: var(--blue-ink);
  box-shadow: 0 6px 14px rgba(22, 119, 200, 0.08);
}

.markets,
.positions,
.high-frequency-list {
  display: grid;
  gap: 12px;
}

.market-card,
.high-frequency-card,
.leaderboard,
.portfolio,
.position-card,
.empty {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.market-card {
  padding: 14px;
  position: relative;
}

.market-card::before,
.high-frequency-card::before {
  background: var(--blue);
  border-radius: 8px 0 0 8px;
  bottom: 0;
  content: "";
  left: 0;
  opacity: 0.78;
  position: absolute;
  top: 0;
  width: 3px;
}

.load-more-btn {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  margin: 12px 0 2px;
  min-height: 44px;
  width: 100%;
}

.high-frequency {
  display: grid;
  gap: 10px;
}

.high-frequency-head {
  align-items: stretch;
  display: grid;
  gap: 8px;
}

.high-frequency-tools {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.high-frequency-tools .filter-btn {
  background: white;
  color: var(--ink);
  font-size: 13px;
  min-height: 34px;
  min-width: 0;
  padding: 0 8px;
  width: 100%;
}

.high-frequency-tools .filter-btn.active {
  background: #eef6ff;
  border-color: #b7d7ff;
  color: var(--blue-ink);
}

.high-frequency-tools #refreshHighFrequencyBtn {
  background: var(--ink);
  box-shadow: 0 7px 16px rgba(17, 24, 39, 0.12);
  color: white;
  font-size: 13px;
  min-height: 34px;
  min-width: 0;
  padding: 0 8px;
  width: 100%;
}

.high-frequency-status {
  display: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin: -4px 0 0;
}

.high-frequency-head h2 {
  font-size: 18px;
  margin: 0;
}

.high-frequency-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  padding: 12px;
  position: relative;
}

.high-frequency-card h2 {
  font-size: 16px;
  line-height: 1.32;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

.high-frequency-card-head {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  margin-bottom: 9px;
  min-width: 0;
  white-space: nowrap;
}

.high-frequency-asset {
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  flex: 0 1 auto;
  font-size: 12px;
  line-height: 1;
  max-width: 28%;
  overflow: hidden;
  padding: 6px 9px;
  text-overflow: ellipsis;
}

.high-frequency-interval,
.high-frequency-time {
  flex: 0 0 auto;
  line-height: 1;
}

.high-frequency-volume {
  flex: 1 1 auto;
  line-height: 1;
  margin-left: auto;
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
}

.high-frequency-price-row {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 10px;
}

.hf-price-item {
  align-items: center;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 5px;
  justify-content: space-between;
  min-height: 32px;
  min-width: 0;
  padding: 5px 8px;
}

.hf-price-item span {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.hf-price-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.time-left {
  color: var(--red);
}

.trend-up {
  background: var(--blue-soft);
  border-radius: 999px;
  color: var(--blue-ink);
  padding: 4px 7px;
}

.trend-down {
  background: var(--red-soft);
  border-radius: 999px;
  color: var(--red-ink);
  padding: 4px 7px;
}

.trend-flat {
  color: var(--muted);
}

.hf-price-item .trend-up,
.hf-price-item .trend-down {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.market-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  margin-bottom: 8px;
}

.track-badge {
  background: var(--amber-soft);
  border: 1px solid #f1d69d;
  border-radius: 999px;
  color: #8a4d12;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 6px 8px;
}

.market-card h2 {
  font-size: 16px;
  line-height: 1.35;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}

.markets.aggregated {
  gap: 14px;
}

.market-event-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.market-event-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 12px;
}

.market-event-head[role="button"] {
  cursor: pointer;
}

.market-event-head-main {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.market-event-head-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.market-event-head h2 {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-event-time {
  background: #f8fafc;
  border-radius: 999px;
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 7px 9px;
}

.market-event-head-live {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  border-radius: 999px;
  color: #027a48;
  flex: 0 0 auto;
  font-size: 13px;
  font-style: normal;
  font-weight: 1000;
  line-height: 1;
  padding: 6px 9px;
}

.market-event-toggle {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 1000;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 32px;
}

.market-event-toggle:active {
  background: #eef6ff;
}

.market-event-rows {
  display: grid;
}

.market-event-skeleton {
  min-height: 58px;
}

.market-event-skeleton-title,
.market-event-skeleton-time {
  animation: skeletonPulse 1.2s ease-in-out infinite;
  background: linear-gradient(90deg, #eef2f7, #f8fafc, #eef2f7);
  background-size: 200% 100%;
  border-radius: 999px;
  display: block;
}

.market-event-skeleton-title {
  height: 18px;
  width: min(220px, 58vw);
}

.market-event-skeleton-time {
  height: 26px;
  width: 74px;
}

.market-event-toggle.is-skeleton {
  color: transparent;
  pointer-events: none;
}

@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.market-event-row {
  align-items: stretch;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  padding: 10px 12px;
}

.market-event-row + .market-event-row {
  border-top: 1px solid var(--line);
}

.market-event-row.is-live {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.08), rgba(255, 255, 255, 0));
}

.market-event-expand {
  background: #f8fafc;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--blue-ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  min-height: 42px;
  padding: 0 12px;
  width: 100%;
}

.market-event-expand:active {
  background: #eef6ff;
}

.market-event-info {
  min-width: 0;
}

.market-event-info strong {
  color: var(--ink);
  display: block;
  font-size: 15px;
  line-height: 1.32;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: anywhere;
}

.market-event-title-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.market-event-title-text {
  color: inherit;
  display: inline;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.market-event-info span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-event-info .market-event-title-text {
  color: inherit;
  display: inline;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  margin-top: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.market-event-live-badge {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  border-radius: 999px;
  color: #027a48;
  display: inline-flex;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  flex: 0 0 auto;
  margin-right: 0;
  padding: 5px 8px;
}

.market-event-prices {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.market-event-choice {
  border-radius: 8px;
  flex-direction: row;
  gap: 7px;
  justify-content: center;
  min-height: 40px;
  min-width: 0;
  padding: 0 10px;
}

.market-event-choice span {
  color: currentColor;
  display: block;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.82;
}

.market-event-choice strong {
  font-size: 16px;
  line-height: 1;
}

.choice-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.choice {
  align-items: center;
  border: 1px solid transparent;
  display: flex;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 12px;
}

.choice span {
  font-size: 13px;
  letter-spacing: 0;
}

.choice strong {
  font-size: 20px;
  letter-spacing: 0;
}

.choice.yes {
  background: var(--blue-soft);
  border-color: #b9dafb;
  color: var(--blue-ink);
}

.choice.no {
  background: var(--red-soft);
  border-color: #ffd0dc;
  color: var(--red-ink);
}

.choice.yes:hover {
  background: #dff0ff;
  box-shadow: 0 8px 18px rgba(22, 119, 200, 0.12);
}

.choice.no:hover {
  background: #ffe1e9;
  box-shadow: 0 8px 18px rgba(217, 45, 91, 0.11);
}

/* High-frequency grouped trading layout. */
.high-frequency-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.high-frequency-summary article:nth-child(n+3) {
  display: none;
}

.high-frequency-summary strong.trend-up {
  color: #039855;
}

.high-frequency-summary strong.trend-down {
  color: #e11d48;
}

.high-frequency-summary strong.trend-flat {
  color: #667085;
}

.high-frequency-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  gap: 10px;
  padding: 12px;
}

.high-frequency-card::before {
  display: none;
}

.high-frequency-card-top {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.high-frequency-card-top h2,
.high-frequency-card h2 {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.32;
  margin: 0;
}

.high-frequency-card-meta {
  color: #667085;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  margin: 7px 0 0;
}

.high-frequency-card-timer {
  background: #f3f6fa;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #667085;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  padding: 8px 10px;
  white-space: nowrap;
}

.high-frequency-card-timer.is-closing {
  background: #fff1f3;
  border-color: #fecdd3;
  color: #e11d48;
}

.high-frequency-price-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.high-frequency-price-row .hf-price-item {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 7px 10px;
}

.high-frequency-price-row .hf-price-item span {
  color: #667085;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.high-frequency-price-row .hf-price-item strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.high-frequency-price-row .hf-price-item strong.trend-up {
  color: #039855;
}

.high-frequency-price-row .hf-price-item strong.trend-down {
  color: #e11d48;
}

.high-frequency-price-row .hf-price-item strong.trend-flat {
  color: #667085;
}

.high-frequency-tags {
  display: none;
}

.high-frequency-card .choice {
  border-radius: 8px;
  border-width: 1px;
  flex-direction: row;
  gap: 7px;
  justify-content: center;
  min-height: 40px;
  padding: 0 10px;
}

.high-frequency-card .choice span {
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.high-frequency-card .choice strong {
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
}

.high-frequency-card .choice.yes {
  background: var(--blue-soft);
  border-color: #b9dafb;
}

.high-frequency-card .choice.yes strong,
.high-frequency-card .choice.yes span {
  color: var(--blue-ink);
}

.high-frequency-card .choice.no {
  background: var(--red-soft);
  border-color: #ffd0dc;
}

.high-frequency-card .choice.no strong,
.high-frequency-card .choice.no span {
  color: var(--red-ink);
}

.leaderboard,
.portfolio {
  margin-top: 14px;
  overflow: hidden;
  padding: 14px;
}

.leaderboard-head,
.portfolio-head {
  align-items: center;
  border-bottom: 1px solid #eef2f7;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: -2px 0 12px;
  padding-bottom: 12px;
}

.leaderboard-head > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.leaderboard-head h2,
.portfolio h2 {
  font-size: 20px;
  margin: 0;
}

.leaderboard-head span {
  background: var(--green-soft);
  border: 1px solid #bdebd1;
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 6px 8px;
  width: fit-content;
}

.leaderboard-claim-btn {
  background: linear-gradient(135deg, #111827 0%, #27344a 58%, #c98b00 100%);
  border: 1px solid rgba(242, 211, 107, 0.65);
  border-radius: 999px;
  box-shadow: 0 9px 18px rgba(17, 24, 39, 0.16);
  color: #fff;
  flex: 0 0 auto;
  font-size: 13px;
  min-height: 38px;
  padding: 0 14px;
}

.avatar {
  cursor: pointer;
}

.leaderboard-list {
  display: grid;
  gap: 8px;
}

.leaderboard-row {
  align-items: center;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: 48px 1fr auto auto;
  min-height: 44px;
  padding: 8px 10px;
}

.leaderboard-row:nth-child(-n + 3) {
  background: #fffaf0;
  border-color: #efd49b;
}

.leaderboard-row.is-me {
  background: #eff6ff;
  border-color: #93c5fd;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.leaderboard-row strong {
  color: var(--amber);
}

.leaderboard-row span {
  align-items: center;
  display: flex;
  gap: 6px;
  font-weight: 900;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-me {
  background: var(--blue-soft);
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: var(--blue-ink);
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  padding: 4px 6px;
}

.leaderboard-row em {
  font-style: normal;
  font-weight: 900;
}

.leaderboard-row small {
  color: var(--muted);
  font-weight: 800;
}

.segmented {
  background: #edf2f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 4px;
  padding: 4px;
}

.segmented button {
  background: transparent;
  color: var(--muted);
  min-height: 34px;
  padding: 0 12px;
}

.segmented button.active {
  background: white;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.08);
  color: var(--ink);
}

.wallet-bind {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  margin-bottom: 12px;
}

.wallet-bind input {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
}

.wallet-bind button,
.share-bet-btn {
  background: var(--ink);
  box-shadow: 0 7px 16px rgba(17, 24, 39, 0.12);
  color: white;
  min-height: 42px;
  padding: 0 14px;
}

.market-volume {
  white-space: nowrap;
}

.market-meta-time {
  margin-left: auto;
  white-space: nowrap;
}

.share-bet-btn {
  margin-top: 10px;
  width: 100%;
}

.share-modal {
  align-items: flex-end;
  background: rgba(15, 23, 42, 0.42);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 16px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 75;
}

.share-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 12px;
  max-width: 460px;
  padding: 18px;
  width: 100%;
}

.share-panel header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.share-panel header p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 2px;
}

.share-panel header h2 {
  font-size: 18px;
  margin: 0;
}

.share-text {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}

.share-preview {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.share-preview:empty {
  display: none;
}

.share-preview-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.share-preview-title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.share-preview-market {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.share-preview-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.share-preview-grid > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.share-preview-grid span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 4px;
}

.share-preview-grid strong {
  color: var(--ink);
  display: block;
  font-size: 15px;
  font-weight: 900;
}

.share-preview-code {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.shareon {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shareon > * {
  min-height: 38px;
  min-width: 38px;
}

.position-card {
  padding: 12px;
}

.position-card header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.position-card p {
  color: var(--muted);
  line-height: 1.4;
  margin: 8px 0;
  overflow-wrap: anywhere;
}

.position-grid {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 10px;
}

.position-grid span {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 0;
  padding: 7px 8px;
  overflow-wrap: anywhere;
}

.position-card.won {
  border-color: rgba(17, 132, 91, 0.35);
}

.position-card.lost {
  border-color: rgba(217, 45, 91, 0.35);
}

.settlement-basis {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 8px;
}

.settlement-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settlement-row-money {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settlement-basis small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}

.settlement-basis em {
  font-style: normal;
  font-weight: 900;
}

.settlement-basis .trend-up,
.settlement-basis .trend-down {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

@media (max-width: 360px) {
  .settlement-row-money {
    grid-template-columns: 1fr;
  }
}

.status {
  border-radius: 999px;
  color: white;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
}

.status.open {
  background: #626f86;
}

.status.won {
  background: var(--green);
}

.status.lost {
  background: var(--red);
}

.status.canceled {
  background: #7a7f89;
}

.empty {
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

.empty.small {
  padding: 12px;
}

.slip-backdrop {
  background: rgba(17, 24, 39, 0.42);
  inset: 0;
  position: fixed;
  z-index: 30;
}

.bet-slip {
  background: white;
  border-radius: 14px 14px 0 0;
  bottom: 0;
  box-shadow: 0 -18px 50px rgba(17, 24, 39, 0.22);
  left: 50%;
  max-width: 760px;
  padding: 10px 16px max(16px, env(safe-area-inset-bottom));
  position: fixed;
  transform: translate(-50%, 100%);
  transition: transform 160ms ease;
  width: 100%;
  z-index: 40;
}

.bet-slip.open {
  transform: translate(-50%, 0);
}

.slip-handle {
  background: #cbd5e1;
  border-radius: 999px;
  height: 4px;
  margin: 0 auto 12px;
  width: 44px;
}

.bet-slip header {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-bottom: 12px;
}

.bet-slip p {
  font-size: 12px;
  font-weight: 900;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.yes-text {
  color: var(--blue);
}

.no-text {
  color: var(--red);
}

.bet-slip h2 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
  overflow-wrap: anywhere;
}

.close-btn {
  background: #edf2f7;
  border: 1px solid var(--line);
  color: var(--ink);
  height: 36px;
  padding: 0;
  width: 36px;
}

.slip-price,
.slip-return {
  align-items: center;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding: 12px;
}

.slip-market-info {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 12px 0 0;
}

.slip-market-info div {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 8px;
}

.slip-market-info span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}

.slip-market-info strong {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slip-price span,
.slip-return span,
.amount-field {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.slip-price strong,
.slip-return strong {
  font-size: 24px;
  letter-spacing: 0;
}

.amount-field {
  display: grid;
  gap: 6px;
  padding: 12px 0 10px;
}

.amount-field input {
  font-size: 20px;
  font-weight: 900;
  text-align: right;
}

.quick-amounts {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
}

.quick-amounts button {
  background: #edf2f7;
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 40px;
}

.quick-amounts button:hover {
  background: white;
  border-color: var(--line-strong);
}

.place-btn {
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
  margin-top: 14px;
  width: 100%;
}

.toast {
  background: var(--ink);
  border-radius: 8px;
  bottom: 18px;
  color: white;
  left: 50%;
  max-width: min(92vw, 440px);
  padding: 12px 14px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 60;
}

.toast.center {
  bottom: auto;
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.2);
  font-weight: 800;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
}

.toast.success {
  border-color: rgba(17, 132, 91, 0.35);
  box-shadow: 0 18px 48px rgba(17, 132, 91, 0.16);
}

.toast.error {
  border-color: rgba(217, 45, 91, 0.35);
  box-shadow: 0 18px 48px rgba(217, 45, 91, 0.16);
}

.toast.success::before,
.toast.error::before {
  border-radius: 50%;
  color: white;
  content: "";
  display: inline-flex;
  flex: 0 0 22px;
  height: 22px;
  margin-right: 8px;
  width: 22px;
}

.toast.success::before {
  background: var(--green);
}

.toast.error::before {
  background: var(--red);
}

.toast.center.success::before,
.toast.center.error::before {
  display: none;
}

.help-modal {
  background: rgba(15, 23, 42, 0.46);
  bottom: 0;
  left: 0;
  padding: calc(var(--safe-top) + 10px) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  position: fixed;
  right: 0;
  top: 0;
  z-index: 80;
}

.help-panel {
  background: white;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-height: 100%;
  max-width: 620px;
  overflow: hidden;
  width: 100%;
}

.help-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 14px;
}

.help-head p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  margin: 0 0 3px;
}

.help-head h2 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}

.help-tabs {
  background: #eef2f7;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 6px;
}

.help-tab {
  background: transparent;
  color: var(--muted);
  min-height: 38px;
}

.help-tab.active {
  background: white;
  color: var(--ink);
}

.help-content {
  overflow: auto;
  padding: 12px 16px 18px;
}

.help-content h3 {
  font-size: 18px;
  margin: 4px 0 12px;
}

.help-content section {
  border-bottom: 1px solid #edf1f6;
  padding: 10px 0;
}

.help-content section:last-child {
  border-bottom: 0;
}

.help-content h4 {
  font-size: 14px;
  margin: 0 0 6px;
}

.help-content p,
.help-content li {
  color: #344054;
  font-size: 13px;
  line-height: 1.58;
  margin: 0;
}

.help-content ul {
  margin: 8px 0;
  padding-left: 18px;
}

.reward-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 10px 0 0;
  overflow: hidden;
}

.reward-list div {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
}

.reward-list div + div {
  border-top: 1px solid var(--line);
}

.reward-list dt,
.reward-list dd {
  font-size: 13px;
  font-weight: 800;
  margin: 0;
}

.reward-list dd {
  color: var(--blue-ink);
}

@media (max-width: 560px) {
  :root {
    --status-bar-height: 100px;
  }

  body {
    padding-top: calc(var(--safe-top) + var(--status-bar-height));
  }

  .status-bar {
    gap: 8px;
  }

  .app-logo {
    height: 48px;
    width: 48px;
  }

  .header-actions {
    gap: 5px;
    grid-template-columns: minmax(72px, 1fr) minmax(86px, 1fr) minmax(82px, 1fr);
    width: 100%;
  }

  .header-language select,
  .discussion-btn,
  .help-open-btn {
    font-size: 12px;
    height: 32px;
    min-height: 32px;
  }

  .header-language select {
    padding: 0 6px;
  }

  .help-open-btn {
    padding: 0 5px;
  }

  .discussion-btn {
    padding: 0 5px;
  }

  .app-shell {
    padding: 10px;
  }

  .tabs {
    gap: 3px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .tabs.worldcup-enabled {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .tab {
    font-size: 13px;
    min-height: 36px;
    padding: 0 2px;
  }

  .utility-row {
    grid-template-columns: 1fr;
  }

  .sort-controls {
    justify-content: stretch;
    overflow-x: auto;
  }

  .sort-controls .filter-btn {
    flex: 1 0 auto;
  }

  .high-frequency-head {
    align-items: stretch;
    display: grid;
  }

  .high-frequency-tools {
    overflow-x: auto;
  }

  .high-frequency-tools .filter-btn {
    flex: 1 0 72px;
  }

  .slip-market-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-card h2 {
    font-size: 16px;
  }

  .choice strong {
    font-size: 18px;
  }

  .leaderboard-row {
    grid-template-columns: 42px 1fr auto;
  }

  .leaderboard-row small {
    display: none;
  }

  .portfolio-head {
    align-items: stretch;
    display: grid;
  }

  .wallet-bind {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .identity p {
    font-size: 16px;
    max-width: 48vw;
  }

  .app-logo {
    height: 44px;
    width: 44px;
  }

  .header-language select,
  .discussion-btn,
  .help-open-btn {
    font-size: 12px;
    padding-left: 5px;
    padding-right: 5px;
  }

  .high-frequency-card h2 {
    font-size: 16px;
  }

  .hf-price-item strong {
    font-size: 12px;
  }

  .choice {
    padding: 0 10px;
  }
}

@media (min-width: 860px) {
  :root {
    --status-bar-height: 74px;
  }

  body {
    padding-top: calc(var(--safe-top) + var(--status-bar-height));
  }

  .status-bar {
    align-items: center;
    gap: 16px;
    grid-template-areas: "logo identity actions";
    grid-template-columns: 52px minmax(320px, 1fr) auto;
    min-height: var(--status-bar-height);
    padding: 12px max(22px, env(safe-area-inset-left)) 12px max(22px, env(safe-area-inset-right));
  }

  .identity {
    justify-content: flex-end;
  }

  .identity-main {
    text-align: right;
  }

  .identity strong {
    justify-content: flex-end;
  }

  .header-actions {
    grid-template-columns: 138px 150px 132px;
    width: auto;
  }

  .app-shell {
    padding: 18px 20px 32px;
  }

  .tabs {
    margin-bottom: 14px;
  }

  .utility-row {
    align-items: center;
    grid-template-columns: minmax(260px, 1fr) auto;
  }

  .markets,
  .high-frequency-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-card,
  .high-frequency-card {
    min-height: 178px;
  }

  .leaderboard,
  .portfolio {
    margin-left: auto;
    margin-right: auto;
    max-width: 820px;
  }

  .bet-slip {
    border: 1px solid var(--line);
    border-radius: 12px;
    bottom: 24px;
    left: auto;
    max-width: 430px;
    padding: 12px 16px 16px;
    right: 24px;
    transform: translateX(calc(100% + 32px));
  }

  .bet-slip.open {
    transform: translateX(0);
  }
}
