:root {
  --bg: #09060a;
  --bg-soft: #151015;
  --panel: rgba(29, 20, 29, 0.78);
  --panel-strong: rgba(18, 12, 18, 0.9);
  --line: rgba(255, 217, 136, 0.14);
  --line-strong: rgba(255, 217, 136, 0.28);
  --text: #f8f1e7;
  --muted: #bcae9d;
  --gold: #f3c77a;
  --gold-strong: #ffdfaa;
  --red: #d85b42;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at 50% 62%, rgba(255, 179, 82, 0.18), transparent 14%),
    radial-gradient(circle at 50% 48%, rgba(177, 43, 18, 0.24), transparent 24%),
    radial-gradient(circle at 50% 18%, rgba(255, 239, 214, 0.05), transparent 28%),
    linear-gradient(180deg, #120a0f 0%, #09060a 48%, #040304 100%);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 224, 170, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 24% 28%, rgba(255, 215, 145, 0.65) 0 1px, transparent 1.6px),
    radial-gradient(circle at 68% 16%, rgba(255, 226, 182, 0.7) 0 1px, transparent 1.4px),
    radial-gradient(circle at 82% 24%, rgba(255, 205, 120, 0.55) 0 1px, transparent 1.6px),
    radial-gradient(circle at 92% 10%, rgba(255, 240, 220, 0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 42% 8%, rgba(255, 214, 138, 0.55) 0 1px, transparent 1.6px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 35%);
  background-size: 340px 340px, 420px 420px, 390px 390px, 460px 460px, 520px 520px, 600px 600px, 100% 100%;
  opacity: 0.8;
  animation: starDrift 24s linear infinite;
}

body::after {
  inset: auto 0 0 0;
  height: 46vh;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 173, 76, 0.9), rgba(255, 173, 76, 0.04) 8px, transparent 18px),
    linear-gradient(180deg, rgba(255, 143, 57, 0.6), transparent 28%),
    linear-gradient(0deg, rgba(5, 5, 7, 0.96) 0%, rgba(10, 8, 11, 0.6) 40%, transparent 100%);
  animation: horizonPulse 7s ease-in-out infinite;
}

a {
  color: inherit;
}

.app-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 48px;
  position: relative;
}

.app-shell::before,
.app-shell::after {
  content: "";
  position: fixed;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.app-shell::before {
  bottom: 34vh;
  height: 28vh;
  z-index: -1;
  opacity: 0.8;
  background:
    linear-gradient(180deg, transparent 0%, rgba(10, 6, 10, 0.18) 40%, rgba(7, 5, 8, 0.86) 100%);
  clip-path: polygon(
    0% 82%,
    7% 56%,
    13% 66%,
    18% 42%,
    24% 60%,
    29% 45%,
    35% 71%,
    41% 54%,
    48% 80%,
    56% 58%,
    61% 68%,
    68% 44%,
    74% 63%,
    81% 38%,
    87% 58%,
    93% 47%,
    100% 72%,
    100% 100%,
    0% 100%
  );
  animation: mountainFloat 11s ease-in-out infinite;
}

.app-shell::after {
  bottom: 0;
  height: 34vh;
  z-index: -1;
  opacity: 0.68;
  background:
    linear-gradient(180deg, rgba(255, 189, 102, 0.14), rgba(255, 189, 102, 0.02) 14%, transparent 18%),
    linear-gradient(90deg, rgba(255, 193, 111, 0.32) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 193, 111, 0.24) 1px, transparent 1px);
  background-size: 100% 100%, 56px 100%, 100% 28px;
  transform-origin: bottom center;
  transform: perspective(1200px) rotateX(74deg) scale(1.45, 1.05);
  animation: gridGlow 7.4s ease-in-out infinite;
}

.app-shell > * {
  position: relative;
  z-index: 1;
}

.app-shell > *::before {
  pointer-events: none;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}

.brand__eyebrow {
  color: var(--muted);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 11px;
}

.brand__title {
  font-family: "Cinzel", serif;
  font-size: 36px;
  letter-spacing: 0.08em;
  color: var(--gold-strong);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.main-nav__link {
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--muted);
}

.main-nav__link.is-active {
  color: var(--gold-strong);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(243, 199, 122, 0.14), rgba(243, 199, 122, 0.05));
  box-shadow: 0 0 24px rgba(243, 199, 122, 0.08);
}

.wallet-btn,
.action-btn,
.inline-link-btn,
.preset-group button,
.asset-switcher__btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.wallet-btn,
.action-btn {
  min-height: 50px;
  padding: 0 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wallet-btn {
  color: var(--gold-strong);
}

.wallet-btn:hover,
.action-btn:hover,
.asset-switcher__btn:hover,
.preset-group button:hover,
.main-nav__link:hover {
  border-color: rgba(243, 199, 122, 0.42);
  transform: translateY(-1px);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.action-btn--primary {
  background: linear-gradient(180deg, rgba(243, 199, 122, 0.2), rgba(243, 199, 122, 0.08));
  border-color: rgba(243, 199, 122, 0.34);
  color: #fff4da;
  box-shadow: 0 0 28px rgba(243, 199, 122, 0.12);
}

.action-btn--ghost {
  color: var(--muted);
}

.inline-link-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.hero-layout,
.stake-layout,
.invite-layout {
  display: grid;
  gap: 24px;
}

.trade-main {
  display: grid;
  gap: 24px;
}

.hero-layout {
  grid-template-columns: 1.2fr 0.95fr;
}

.stake-layout,
.invite-layout {
  grid-template-columns: 1.1fr 0.7fr;
}

.stake-layout--compact {
  grid-template-columns: 1.05fr 0.65fr;
  align-items: start;
}

.stake-layout--minimal {
  grid-template-columns: 1fr;
}

.hero-panel,
.action-panel,
.stake-panel,
.invite-panel,
.secondary-panel__box,
.status-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-panel,
.action-panel,
.stake-panel,
.invite-panel,
.secondary-panel__box {
  padding: 28px;
}

.action-panel--wide {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

.hero-panel__eyebrow,
.panel-head__eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
}

.hero-panel__title,
.panel-head h1,
.panel-head h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  letter-spacing: 0.05em;
}

.hero-panel__title {
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.96;
}

.hero-panel__copy,
.panel-note {
  color: var(--muted);
  line-height: 1.75;
}

.hero-stats,
.metric-grid,
.status-strip,
.cta-grid {
  display: grid;
  gap: 12px;
}

.hero-stats,
.metric-grid,
.status-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-stat,
.metric-card,
.status-card,
.single-stat,
.preview-box,
.secondary-list div,
.wallet-line,
.primary-input {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--panel-strong);
}

.hero-stat,
.metric-card,
.status-card,
.single-stat,
.wallet-line {
  padding: 14px 16px;
}

.hero-stat span,
.metric-card span,
.status-card span,
.single-stat span,
.wallet-line span,
.primary-input span,
.preview-row span,
.secondary-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-stat strong,
.metric-card strong,
.status-card a,
.single-stat strong,
.wallet-line strong,
.wallet-line em,
.preview-row strong,
.secondary-list strong {
  display: block;
  margin-top: 8px;
  font-style: normal;
  word-break: break-all;
}

.wallet-line--block {
  display: grid;
  gap: 6px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.mini-badge {
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: var(--gold-strong);
  background: rgba(243, 199, 122, 0.08);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  box-shadow: inset 0 0 18px rgba(243, 199, 122, 0.06);
}

.asset-switcher,
.preset-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.preset-group {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.asset-switcher__btn,
.preset-group button {
  min-height: 46px;
}

.asset-switcher {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: stretch;
  gap: 0;
  padding: 6px;
  border: 1px solid rgba(243, 199, 122, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    rgba(20, 15, 20, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.asset-switcher__btn.is-active {
  border-color: var(--line-strong);
  background: rgba(243, 199, 122, 0.14);
}

.asset-switcher__btn {
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  letter-spacing: 0.04em;
  font-weight: 500;
  border-radius: 12px;
}

.asset-switcher__btn.is-active {
  color: var(--gold-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 0 0 1px rgba(243, 199, 122, 0.18),
    0 8px 20px rgba(0, 0, 0, 0.14);
}

.preset-group {
  grid-template-columns: repeat(3, minmax(0, max-content));
  justify-content: start;
  gap: 10px;
}

.preset-group button {
  min-height: 36px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.primary-input {
  display: grid;
  gap: 12px;
  padding: 18px 18px 14px;
  border-radius: 16px;
}

.primary-input input {
  min-height: 54px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 34px;
  font-family: "Cinzel", serif;
}

.single-stat--range {
  margin-top: 18px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  border-color: rgba(243, 199, 122, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.single-stat--range strong {
  margin-top: 10px;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.preview-box {
  padding: 16px;
  display: grid;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.preview-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 231, 189, 0.06) 48%, transparent 100%);
  transform: translateX(-120%);
  animation: sheenSweep 5.8s ease-in-out infinite;
}

.preview-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.preview-row strong {
  margin-top: 0;
  text-align: right;
  max-width: 62%;
}

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

.cta-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.secondary-panel__box h2 {
  margin: 0 0 16px;
  font-family: "Cinzel", serif;
}

.alias-hero {
  margin-bottom: 28px;
}

.alias-link-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--panel-strong);
  margin-bottom: 16px;
}

.alias-link-card__meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alias-link-card__meta strong {
  display: block;
  margin-top: 8px;
  word-break: break-all;
  font-size: 18px;
  line-height: 1.35;
}

.alias-input {
  margin-bottom: 16px;
}

.alias-register-btn {
  width: 100%;
  margin-bottom: 14px;
}

#inviteConnectButton {
  min-width: 160px;
}

.invite-panel .cta-grid {
  margin-top: 14px;
}

.invite-panel .wallet-line {
  border-radius: 16px;
}

.invite-panel .wallet-line strong {
  font-size: 18px;
  color: var(--gold-strong);
}

.invite-panel .wallet-line em {
  color: var(--muted);
  line-height: 1.6;
}

.invite-panel #inviteConnectInlineButton,
.invite-panel #inviteSaveReferrerButton,
.invite-panel #inviteClaimRewardButton,
.invite-panel #inviteCopyLinkButton {
  min-height: 54px;
  border-radius: 14px;
}

.invite-panel #inviteConnectInlineButton {
  border-color: rgba(243, 199, 122, 0.28);
  background:
    linear-gradient(180deg, rgba(243, 199, 122, 0.14), rgba(243, 199, 122, 0.05)),
    rgba(255, 255, 255, 0.015);
  color: var(--gold-strong);
}

.alias-link-card .action-btn {
  min-height: 44px;
  min-width: 132px;
  padding: 0 14px;
  font-size: 14px;
}

.stake-panel--compact .wallet-line {
  margin-bottom: 18px;
  border-radius: 18px;
}

.stake-wallet-card {
  padding: 18px 20px;
}

.stake-overview-box {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--panel-strong);
  border-radius: 22px;
}

.panel-head--tight {
  margin-bottom: 14px;
}

.stake-overview-list {
  display: grid;
  gap: 14px;
}

.stake-overview-item {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  background: rgba(18, 12, 18, 0.92);
}

.stake-overview-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.stake-overview-item strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.1;
  word-break: break-word;
}

.stake-summary-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stake-summary-strip--minimal {
  margin-bottom: 20px;
}

.stake-summary-box {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  background: var(--panel-strong);
  color: var(--text);
}

.stake-summary-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.stake-summary-box strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  line-height: 1;
  color: var(--text);
}

.stake-action-list {
  display: grid;
  gap: 14px;
}

.stake-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.stake-actions-card,
.secondary-panel__box--minimal {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--panel-strong);
  border-radius: 22px;
}

.panel-head--minimal {
  margin-bottom: 20px;
}

.stake-action-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  align-items: center;
}

.stake-action-row__button {
  min-height: 56px;
  border-radius: 16px;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  background: var(--panel-strong);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 15px;
}

.stake-action-row__button.action-btn--primary {
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: none;
}

.stake-action-row__button[disabled] {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(248, 241, 231, 0.38);
  border-color: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  cursor: not-allowed;
}

.stake-action-row__value {
  min-height: 56px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  background: var(--panel-strong);
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  font-family: "Inter", "Noto Sans SC", sans-serif;
  font-weight: 600;
}

.stake-action-row__value--input {
  width: 100%;
  outline: 0;
}

.secondary-list {
  display: grid;
  gap: 10px;
}

.secondary-list div {
  padding: 14px 16px;
}

.status-strip {
  margin-top: 24px;
}

.action-panel .cta-grid {
  gap: 14px;
}

.action-panel .action-btn {
  min-height: 58px;
  border-radius: 14px;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.action-panel .action-btn--primary {
  background:
    linear-gradient(90deg, #b8651f 0%, #d37a26 48%, #c86d1c 100%);
  border-color: rgba(255, 190, 104, 0.2);
  color: #fff7e8;
  box-shadow:
    0 14px 30px rgba(191, 104, 28, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.action-panel .action-btn--ghost,
.action-panel .action-btn:not(.action-btn--primary) {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(243, 199, 122, 0.12);
}

.status-card {
  padding: 16px;
}

.status-card a {
  text-decoration: none;
}

.legacy-hidden {
  display: none !important;
}

.wallet-modal-open {
  overflow-x: hidden;
  overflow-y: auto;
}

.wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
}

.wallet-modal[hidden] {
  display: none;
}

.wallet-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(243, 199, 122, 0.12), transparent 22%),
    rgba(7, 5, 8, 0.8);
  backdrop-filter: blur(10px);
}

.wallet-modal__panel {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 32px));
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(21, 16, 21, 0.96);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(12px);
  padding: 24px;
}

.wallet-modal__header,
.wallet-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wallet-modal__header {
  margin-bottom: 18px;
}

.wallet-modal__header h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 28px;
  letter-spacing: 0.06em;
  color: var(--gold-strong);
}

.wallet-modal__close,
.wallet-modal__utility,
.wallet-modal__option {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.wallet-modal__close,
.wallet-modal__utility {
  min-height: 42px;
  padding: 0 14px;
}

.wallet-modal__intro {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.wallet-modal__intro strong {
  color: var(--gold-strong);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.wallet-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.wallet-modal__option {
  display: grid;
  gap: 10px;
  min-height: 160px;
  padding: 18px;
  text-align: left;
  align-content: start;
}

.wallet-modal__option strong {
  font-family: "Cinzel", serif;
  font-size: 22px;
  letter-spacing: 0.05em;
  color: var(--gold-strong);
}

.wallet-modal__option span {
  color: var(--muted);
  line-height: 1.7;
}

.wallet-modal__actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.wallet-modal__hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.wallet-modal__hint--ok {
  color: #d9f7d2;
}

.wallet-modal__hint--warn {
  color: #ffe2a8;
}

.wallet-modal__hint--error {
  color: #ffb7aa;
}

.wallet-modal__close:hover,
.wallet-modal__utility:hover,
.wallet-modal__option:hover {
  border-color: rgba(243, 199, 122, 0.42);
  transform: translateY(-1px);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  box-shadow: 0 0 24px rgba(243, 199, 122, 0.08);
}

body::selection {
  background: rgba(243, 199, 122, 0.28);
}

@keyframes starDrift {
  0% {
    transform: translateY(0);
    opacity: 0.76;
  }
  50% {
    transform: translateY(8px);
    opacity: 0.9;
  }
  100% {
    transform: translateY(0);
    opacity: 0.76;
  }
}

@keyframes horizonPulse {
  0%,
  100% {
    opacity: 0.92;
    filter: saturate(1);
  }
  50% {
    opacity: 1;
    filter: saturate(1.18);
  }
}

@keyframes mountainFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@keyframes gridGlow {
  0%,
  100% {
    opacity: 0.6;
    filter: brightness(0.95);
    transform: perspective(1200px) rotateX(74deg) scale(1.45, 1.05);
  }
  50% {
    opacity: 0.82;
    filter: brightness(1.12);
    transform: perspective(1200px) rotateX(74deg) scale(1.47, 1.06);
  }
}

@keyframes sheenSweep {
  0% {
    transform: translateX(-120%);
  }
  45%,
  100% {
    transform: translateX(120%);
  }
}

@media (max-width: 980px) {
  .topbar,
  .hero-layout,
  .stake-layout,
  .invite-layout {
    grid-template-columns: 1fr;
  }

  .stake-content-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .metric-grid,
  .status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }

  .trade-main {
    justify-items: center;
  }

  .action-panel--wide {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 16px;
  }

  .brand__title {
    font-size: 30px;
  }

  .hero-panel__title {
    font-size: 42px;
  }

  .hero-stats,
  .metric-grid,
  .status-strip,
  .asset-switcher,
  .preset-group,
  .cta-grid,
  .cta-grid--two {
    grid-template-columns: 1fr;
  }

  .primary-input input {
    font-size: 24px;
  }

  .single-stat--range,
  .primary-input,
  .preview-box {
    padding-left: 14px;
    padding-right: 14px;
  }

  .preview-box {
    width: 100%;
    overflow: hidden;
  }

  .preview-row {
    flex-direction: column;
    gap: 6px;
  }

  .preview-row strong {
    max-width: 100%;
    text-align: left;
    word-break: break-word;
  }

  .wallet-modal {
    padding: 16px;
  }

  .wallet-modal__panel {
    width: min(100vw - 20px, 720px);
    padding: 18px;
  }

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

  .wallet-modal__header,
  .wallet-modal__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .alias-link-card {
    grid-template-columns: 1fr;
  }

  .alias-link-card__meta strong {
    font-size: 20px;
  }

  .stake-summary-strip {
    grid-template-columns: 1fr;
  }

  .stake-content-grid {
    gap: 14px;
  }

  .stake-action-row {
    grid-template-columns: 120px 1fr;
    gap: 10px;
    align-items: center;
  }

  .stake-action-row__button {
    min-height: 48px;
    font-size: 12px;
    padding: 0 10px;
    border-radius: 14px;
  }

  .stake-action-row__value {
    min-height: 48px;
    padding: 0 16px;
    font-size: 12px;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .app-shell {
    width: calc(100% - 16px);
    padding-top: 14px;
    padding-bottom: 28px;
  }

  .topbar {
    gap: 10px;
    margin-bottom: 16px;
  }

  .brand__eyebrow {
    font-size: 10px;
    letter-spacing: 0.2em;
  }

  .brand__title {
    font-size: 24px;
  }

  .main-nav {
    gap: 6px;
  }

  .main-nav__link {
    padding: 10px 10px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .wallet-btn {
    min-height: 42px;
    padding: 0 10px;
    font-size: 11px;
    letter-spacing: 0.02em;
  }

  .action-panel--wide {
    padding: 16px 12px;
  }

  .panel-head h2 {
    font-size: 18px;
  }

  .asset-switcher {
    padding: 4px;
  }

  .asset-switcher__btn {
    min-height: 42px;
    padding: 0 6px;
    font-size: 13px;
  }

  .single-stat--range strong {
    font-size: 16px;
  }

  .primary-input input {
    min-height: 42px;
    font-size: 18px;
  }

  .preset-group button {
    min-height: 32px;
    font-size: 11px;
  }

  .preview-box {
    padding: 12px;
  }

  .preview-row span,
  .preview-row strong {
    font-size: 12px;
    line-height: 1.5;
  }

  .action-panel .action-btn {
    min-height: 50px;
    font-size: 13px;
  }

  .panel-note {
    font-size: 12px;
    line-height: 1.55;
  }
}

.jackpot-layout {
  display: grid;
  gap: 24px;
}

.jackpot-top-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.jackpot-hero,
.jackpot-trend-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  padding: 28px;
}

.jackpot-hero {
  text-align: center;
}

.jackpot-trend-panel {
  border-color: rgba(58, 96, 142, 0.34);
  background:
    linear-gradient(180deg, rgba(8, 20, 35, 0.94), rgba(10, 18, 31, 0.92)),
    var(--panel);
}

.jackpot-epoch-meta,
.jackpot-status-line {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.jackpot-epoch-meta {
  margin-bottom: 14px;
}

.jackpot-countdown {
  margin: 0 auto 20px;
  font-family: "Cinzel", serif;
  font-size: clamp(64px, 14vw, 180px);
  line-height: 0.92;
  color: #fff1c9;
  letter-spacing: 0.04em;
  text-shadow: 0 0 38px rgba(243, 199, 122, 0.18);
}

.jackpot-hero-grid,
.jackpot-summary-grid,
.jackpot-grid {
  display: grid;
  gap: 16px;
}

.jackpot-hero-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.jackpot-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.jackpot-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.jackpot-grid--focus,
.jackpot-grid--notes {
  grid-template-columns: 1fr;
}

.jackpot-grid--leaders {
  grid-template-columns: 1fr 1fr;
}

.jackpot-hero-card,
.jackpot-summary-card,
.jackpot-chart-card,
.jackpot-row {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--panel-strong);
}

.jackpot-trend-panel .jackpot-summary-card,
.current-players-panel,
.jackpot-trend-panel .jackpot-chart-card {
  border-color: rgba(76, 120, 172, 0.28);
}

.jackpot-hero-card,
.jackpot-summary-card {
  padding: 18px;
}

.jackpot-hero-card span,
.jackpot-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jackpot-hero-card strong,
.jackpot-summary-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.05;
  word-break: break-word;
}

.jackpot-hero-card strong {
  font-size: clamp(20px, 2vw, 34px);
}

.jackpot-summary-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.jackpot-trend__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.jackpot-trend__stat {
  border: 1px solid rgba(82, 120, 170, 0.22);
  background: rgba(15, 29, 45, 0.82);
  border-radius: 24px;
  padding: 18px 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.jackpot-trend__stat span {
  display: block;
  color: #93a9c6;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.jackpot-trend__stat strong {
  display: block;
  margin-top: 10px;
  color: #fff1c9;
  font-size: clamp(28px, 2.6vw, 52px);
  line-height: 1;
  font-weight: 700;
}

.jackpot-trend__stat small {
  display: block;
  margin-top: 12px;
  color: #91a3ba;
  line-height: 1.55;
}

.current-players-panel .panel-note {
  margin: 16px 0 0;
  font-size: 18px;
  color: #d5d7dd;
}

.jackpot-status-line,
.jackpot-hero-actions,
.jackpot-toolbar,
.jackpot-controls,
.jackpot-chart-head {
  display: flex;
  gap: 12px;
}

.jackpot-status-line,
.jackpot-toolbar,
.jackpot-chart-head {
  justify-content: center;
  flex-wrap: wrap;
}

.jackpot-status-line {
  margin-bottom: 18px;
}

.jackpot-hero-actions {
  justify-content: center;
  margin-top: 10px;
  align-items: stretch;
}

.jackpot-hero-link {
  min-width: 220px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
  padding-top: 0;
  padding-bottom: 0;
}

.mini-badge--cool {
  color: #d7e8ff;
  border-color: rgba(96, 167, 255, 0.24);
  background: rgba(96, 167, 255, 0.1);
}

.jackpot-controls {
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.jackpot-control {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.jackpot-control.is-active {
  color: var(--gold-strong);
  border-color: var(--line-strong);
  background: rgba(243, 199, 122, 0.12);
}

.jackpot-control--refresh {
  color: var(--text);
}

.jackpot-chart-card {
  padding: 16px;
  overflow: hidden;
}

.jackpot-chart-head {
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jackpot-chart-grid {
  min-height: 260px;
  margin-top: 12px;
}

.jackpot-chart-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.jackpot-chart-legend,
.jackpot-chart-axis {
  margin-top: 12px;
  color: var(--muted);
}

.jackpot-table {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.jackpot-row {
  display: grid;
  grid-template-columns: 1.55fr 1fr 0.9fr 0.9fr;
  gap: 14px;
  padding: 18px 20px;
  align-items: center;
  border-radius: 20px;
}

.current-players-panel .jackpot-table {
  gap: 14px;
}

.jackpot-row--head {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  border-color: rgba(86, 123, 173, 0.24);
  background: rgba(14, 26, 42, 0.86);
}

.jackpot-row span,
.jackpot-row strong {
  word-break: break-word;
}

.current-players-panel .jackpot-row:not(.jackpot-row--head) {
  background: rgba(10, 17, 27, 0.92);
  border-color: rgba(82, 120, 170, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    0 8px 18px rgba(0, 0, 0, 0.14);
  border-radius: 20px;
}

.current-players-panel .jackpot-row strong,
.current-players-panel .jackpot-row span {
  font-size: 15px;
  display: flex;
  align-items: center;
}

.current-players-panel h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  letter-spacing: 0.02em;
}

.current-players-panel .jackpot-row > :nth-child(2),
.current-players-panel .jackpot-row > :nth-child(3),
.current-players-panel .jackpot-row > :nth-child(4) {
  text-align: right;
  justify-content: flex-start;
}

.current-players-panel .jackpot-row--head > :nth-child(2),
.current-players-panel .jackpot-row--head > :nth-child(3),
.current-players-panel .jackpot-row--head > :nth-child(4) {
  text-align: left;
  justify-content: flex-start;
}

.current-players-panel .feed-row__copy-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  min-height: 28px;
  padding: 0 10px;
  cursor: pointer;
}

@media (max-width: 980px) {
  .jackpot-hero-grid,
  .jackpot-summary-grid,
  .jackpot-trend__summary,
  .jackpot-grid,
  .jackpot-grid--leaders {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .jackpot-hero,
  .jackpot-trend-panel {
    padding: 20px;
  }

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

  .current-players-panel .jackpot-row {
    grid-template-columns: 1.2fr 1fr 0.7fr 0.7fr;
    gap: 8px;
    padding: 14px 12px;
  }

  .current-players-panel .jackpot-row strong,
  .current-players-panel .jackpot-row span {
    font-size: 11px;
    line-height: 1.35;
    white-space: nowrap;
  }

  .current-players-panel .feed-row__copy-btn {
    min-height: 22px;
    padding: 0 6px;
    font-size: 10px;
  }

  .current-players-panel h2 {
    font-size: 20px;
  }

  .current-players-panel .panel-note {
    font-size: 14px;
    line-height: 1.5;
  }

  .jackpot-status-line,
  .jackpot-hero-actions,
  .jackpot-toolbar,
  .jackpot-controls,
  .jackpot-chart-head {
    flex-direction: column;
    align-items: stretch;
  }
}
