.stars { display: none; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 28% at 80% 6%, #51226a42, transparent 72%),
    radial-gradient(ellipse 45% 36% at 6% 56%, #a6401c26, transparent 73%),
    linear-gradient(180deg, #0b0418 0%, #090315 48%, #070211 100%);
}

.notice-popup[hidden] { display: none; }
.notice-popup {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: #030108a6;
}
.notice-popup-inner {
  width: min(100%, 520px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: start;
  padding: 30px;
  border: 1px solid #6d468c;
  background: #140923;
  box-shadow: 0 30px 70px #000000b3;
  animation: notice-in .24s cubic-bezier(.2,.9,.2,1);
}
.notice-popup[data-kind="error"] .notice-popup-inner { border-color: #ff7b6e; }
.notice-popup[data-kind="warning"] .notice-popup-inner { border-color: #ffc54b; }
.notice-popup[data-kind="success"] .notice-popup-inner { border-color: #58f5c1; }
.notice-popup p { margin: 0; }
.notice-popup #noticeTitle { color: var(--sun); font-size: 1.25rem; font-weight: 700; }
.notice-popup[data-kind="error"] #noticeTitle { color: #ff978d; }
.notice-popup[data-kind="success"] #noticeTitle { color: var(--good); }
.notice-popup #noticeText { max-width: 42ch; margin-top: 8px; color: #f4edff; line-height: 1.6; }
.notice-close { border: 1px solid #573476; background: transparent; color: var(--ink); padding: 9px 12px; font: 600 .82rem 'Space Grotesk'; cursor: pointer; }
.notice-close:hover,.notice-close:focus-visible { border-color: var(--sun); color: var(--sun); }
@keyframes notice-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 600px) { .notice-popup-inner { padding: 24px; gap: 14px; } .notice-popup #noticeText { font-size: .98rem; } }

.modal-open { overflow: hidden; }
.wallet-modal { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(4, 1, 12, .78); backdrop-filter: blur(12px); }
.wallet-modal[hidden] { display: none; }
.wallet-modal-panel { width: min(560px, 100%); padding: 28px; border: 1px solid #5d3774; background: linear-gradient(145deg, #210d37, #0e061a); box-shadow: 0 24px 70px #000b; animation: wallet-modal-in .22s ease-out; }
.wallet-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.wallet-brand-image { width: 52px; height: 52px; flex: 0 0 auto; border: 1px solid #5c7eaf; border-radius: 50%; object-fit: cover; }
.wallet-modal-head > div { margin-right: auto; }
.wallet-modal h2 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.5rem); letter-spacing: -.065em; }
.wallet-modal-head p, .wallet-modal-foot { margin: 8px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.wallet-modal-close { border: 1px solid #513273; background: transparent; color: var(--ink); padding: 9px 12px; font: 600 .8rem 'Space Grotesk'; cursor: pointer; }
.wallet-modal-close:hover, .wallet-modal-close:focus-visible { border-color: var(--sun); color: var(--sun); }
.wallet-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.wallet-choice { position: relative; display: grid; grid-template-columns: 34px 1fr; align-items: center; column-gap: 12px; min-height: 84px; padding: 15px; border: 1px solid #432760; background: #12081f; color: var(--ink); text-align: left; cursor: pointer; font-family: 'Space Grotesk'; transition: border-color .18s, background .18s, transform .18s; }
.wallet-choice:hover, .wallet-choice:focus-visible { border-color: var(--sun); background: #1c0e30; transform: translateY(-2px); }
.wallet-choice img { grid-row: span 2; width: 32px; height: 32px; object-fit: contain; }
.wallet-choice span { font-size: .98rem; font-weight: 700; }
.wallet-choice small { color: var(--muted); font-size: .73rem; }
.wallet-modal-foot { padding-top: 18px; border-top: 1px solid var(--line); }
.presale-shortcut { display: block; width: fit-content; margin: 15px auto 0; padding-bottom: 2px; border-bottom: 1px solid transparent; font-size: .86rem; }
.presale-shortcut[hidden] { display: none; }
.presale-shortcut:hover, .presale-shortcut:focus-visible { border-color: var(--sun); }
.social-signal { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; color: var(--muted); font-size: .78rem; }
.social-signal > span { margin-right: 4px; }
.social-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: .8rem; font-weight: 600; text-decoration: none; }
.social-link svg, .social-button svg { width: 16px; height: 16px; fill: currentColor; }
.social-link:hover { color: var(--sun); }
.social-link.is-disabled, .social-button.is-disabled { opacity: .46; cursor: not-allowed; pointer-events: none; }
.community-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.social-button { display: inline-flex; align-items: center; gap: 8px; background: #170b28; color: var(--ink); border-color: #74479a; }
.social-button:hover { border-color: var(--sun); color: var(--sun); }
@media (max-width: 760px) { .social-signal { justify-content: center; } .community-actions { justify-content: flex-start; } }
@keyframes wallet-modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 480px) { .wallet-modal { padding: 12px; align-items: end; } .wallet-modal-panel { padding: 22px; } .wallet-choice-grid { grid-template-columns: 1fr; } }

.site-footer { margin-top: 70px; border-top: 1px solid #38204d; background: #090414; }
.referral-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(300px, .8fr); gap: 60px; padding: 70px 0; border-bottom: 1px solid var(--line); }
.referral-section h2, .price-beacon h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.07em; line-height: .95; }
.referral-section p { max-width: 37ch; margin: 14px 0 8px; color: var(--sun); font-size: 1.1rem; font-weight: 600; line-height: 1.45; }
.referral-section span { color: var(--muted); font-size: .9rem; }
.referral-actions { border-top: 1px solid var(--line); padding-top: 4px; }
.referral-actions label { display: block; color: var(--ink); font-size: .88rem; font-weight: 600; }
.referral-actions em { color: var(--muted); font-style: normal; font-weight: 400; }
.referral-actions .hint { margin: 8px 0 0; }
.price-beacon { position: relative; display: grid; grid-template-columns: minmax(0, .72fr) minmax(280px, 1fr); gap: 42px; align-items: center; padding: 54px 0; border-bottom: 1px solid var(--line); }
.price-beacon::before { content: ''; position: absolute; top: 0; left: 0; width: min(250px, 36%); height: 2px; background: linear-gradient(90deg, var(--orange), var(--sun), transparent); }
.price-beacon-copy p { max-width: 29ch; margin: 12px 0 0; color: var(--muted); line-height: 1.5; }
.price-beacon-value { display: flex; justify-content: flex-end; align-items: center; gap: 14px; color: var(--sun); }
.price-beacon-value strong { font-size: clamp(1.8rem, 4vw, 3.65rem); letter-spacing: -.07em; line-height: .95; text-align: right; }
.price-direction { display: inline-flex; align-items: center; gap: 3px; font-size: 1.1rem; }
.price-direction b { font-weight: 700; line-height: 1; }
.price-up { color: var(--good); }
.price-down { color: #e596b9; }
.mascot.mascot-image { background: center / contain no-repeat var(--mascot-image); }
.mascot.mascot-image .sun, .mascot.mascot-image .dog, .mascot.mascot-image p { display: none; }
.footer-main { display: flex; flex-direction: column; align-items: center; gap: 23px; padding: 44px 0 31px; text-align: center; }
.footer-brand p { margin: 10px 0 0; color: var(--muted); line-height: 1.55; font-size: .88rem; }
.footer-contract { color: var(--sun); font-size: .86rem; font-weight: 600; text-decoration: none; }
.footer-links, .footer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.footer-links { justify-content: center; gap: 10px 24px; }
.footer-actions { justify-content: center; gap: 22px; padding-top: 18px; border-top: 1px solid #271535; }
.footer-links a { color: var(--muted); font-size: .86rem; text-decoration: none; }
.footer-links a:hover, .footer-contract:hover { color: var(--sun); }
.footer-bottom { display: flex; justify-content: center; gap: 16px 28px; padding: 19px 0; border-top: 1px solid #271535; color: var(--muted); font-size: .78rem; text-align: center; }
@media (max-width: 760px) { .referral-section, .price-beacon { grid-template-columns: 1fr; gap: 26px; padding: 44px 0; } .price-beacon-value { justify-content: flex-start; } .price-beacon-value strong { text-align: left; } .footer-main { gap: 22px; padding: 36px 0 28px; } .footer-links { gap: 9px 18px; } .footer-bottom { flex-direction: column; } }
