/**
 * NUKE Presale - Stylesheet
 * Explosive red/blue brand identity
 */

/* ============ CSS Variables ============ */
:root {
  /* Brand */
  --color-nuke-red: hsl(357, 72%, 48%);
  --color-nuke-red-hover: hsl(357, 68%, 40%);

  /* Functional */
  --color-success: hsl(152, 55%, 38%);
  --color-warning: hsl(38, 75%, 50%);

  /* Surfaces */
  --color-bg: hsl(0, 0%, 0%);
  --color-bg-raised: hsl(220, 16%, 13%);
  --color-border: hsl(220, 12%, 20%);

  /* Text */
  --color-white: hsl(0, 0%, 100%);
  --color-text: hsl(220, 8%, 85%);
  --color-text-muted: hsl(220, 8%, 38%);

  /* Layout */
  --spacing: 16px;
  --spacing-lg: 24px;

  /* Typography */
  --font-mono: 'Berkeley Mono', 'Consolas', 'Monaco', monospace;
  --font-conduit: 'Conduit ITC', sans-serif;
  --font-impact: 'Impact', 'Arial Narrow', sans-serif;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-xxl: 28px;
  --line-height: 1.5;
}

/* ============ Font Face ============ */
@font-face {
  font-family: 'Merchant Copy';
  src: url('../fonts/MerchantCopy-GOXq.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'Berkeley Mono';
  src: url('../fonts/BerkeleyMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Berkeley Mono';
  src: url('../fonts/BerkeleyMono-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Berkeley Mono';
  src: url('../fonts/BerkeleyMono-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'Only You';
  src: url('../fonts/Only_You_Handwritten_Free_Font.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Conduit ITC';
  src: url('../fonts/Conduit ITC Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}


/* ============ Reset ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: default;
}

html {
  font-size: var(--font-size-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  height: 100%;
}

body {
  font-family: var(--font-mono);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: var(--line-height);
  height: 100%;
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, button * {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
  cursor: text;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ============ Layout ============ */

/* ============ Main Content ============ */
.layout {
  height: calc(100vh - 42px);
  overflow: hidden;
}


.content {
  background: transparent;
  color: var(--color-text);
}

/* ============ Hidden Utility ============ */
.hidden {
  display: none !important;
}



.footer-btn {
  position: absolute;
  top: calc(50% + 184px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-white);
  background: linear-gradient(180deg, hsl(357, 72%, 54%) 0%, hsl(357, 72%, 42%) 100%);
  border: 1px solid hsla(0, 0%, 0%, 0.3);
  cursor: pointer;
  box-shadow: 0 2px 4px hsla(0, 0%, 0%, 0.3), inset 0 1px 0 hsla(0, 0%, 100%, 0.1);
  padding: 0;
  width: 200px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 8px;
  transition: transform 0.35s cubic-bezier(0.22, 1.8, 0.36, 1), background 0.15s ease, color 0.15s ease;
}

.footer-btn:hover:not(.footer-passive):not(.footer-loading):not(.footer-success):not(.footer-warning) {
  transform: translateX(-50%) scale(1.03);
  background: linear-gradient(180deg, hsl(357, 72%, 57%) 0%, hsl(357, 72%, 45%) 100%);
}

.footer-btn:active:not(.footer-passive):not(.footer-loading):not(.footer-success):not(.footer-warning) {
  transform: translateX(-50%) scale(0.95);
  background: linear-gradient(180deg, hsl(357, 72%, 51%) 0%, hsl(357, 72%, 39%) 100%);
}

[data-page="create-account"] .footer-btn:not(.footer-passive):not(.footer-loading):not(.footer-success):not(.footer-warning) {
  background: linear-gradient(180deg, hsl(215, 72%, 54%) 0%, hsl(215, 72%, 42%) 100%);
}
[data-page="create-account"] .footer-btn:hover:not(.footer-passive):not(.footer-loading):not(.footer-success):not(.footer-warning) {
  background: linear-gradient(180deg, hsl(215, 72%, 57%) 0%, hsl(215, 72%, 45%) 100%);
}
[data-page="create-account"] .footer-btn:active:not(.footer-passive):not(.footer-loading):not(.footer-success):not(.footer-warning) {
  background: linear-gradient(180deg, hsl(215, 72%, 51%) 0%, hsl(215, 72%, 39%) 100%);
}

[data-page="presale"] .footer-btn:not(.footer-passive):not(.footer-loading):not(.footer-success):not(.footer-warning) {
  background: linear-gradient(180deg, hsl(152, 55%, 44%) 0%, hsl(152, 55%, 34%) 100%);
}
[data-page="presale"] .footer-btn:hover:not(.footer-passive):not(.footer-loading):not(.footer-success):not(.footer-warning) {
  background: linear-gradient(180deg, hsl(152, 55%, 47%) 0%, hsl(152, 55%, 37%) 100%);
}
[data-page="presale"] .footer-btn:active:not(.footer-passive):not(.footer-loading):not(.footer-success):not(.footer-warning) {
  background: linear-gradient(180deg, hsl(152, 55%, 41%) 0%, hsl(152, 55%, 31%) 100%);
}

[data-page="contribution"] .footer-btn:not(.footer-passive):not(.footer-loading):not(.footer-success):not(.footer-warning) {
  background: linear-gradient(180deg, hsl(38, 75%, 50%) 0%, hsl(38, 75%, 38%) 100%);
}
[data-page="contribution"] .footer-btn:hover:not(.footer-passive):not(.footer-loading):not(.footer-success):not(.footer-warning) {
  background: linear-gradient(180deg, hsl(38, 75%, 53%) 0%, hsl(38, 75%, 41%) 100%);
}
[data-page="contribution"] .footer-btn:active:not(.footer-passive):not(.footer-loading):not(.footer-success):not(.footer-warning) {
  background: linear-gradient(180deg, hsl(38, 75%, 47%) 0%, hsl(38, 75%, 35%) 100%);
}

.footer-btn.footer-export {
  background: linear-gradient(180deg, hsl(270, 55%, 54%) 0%, hsl(270, 55%, 42%) 100%) !important;
}
.footer-btn.footer-export:hover {
  background: linear-gradient(180deg, hsl(270, 55%, 57%) 0%, hsl(270, 55%, 45%) 100%) !important;
}
.footer-btn.footer-export:active {
  background: linear-gradient(180deg, hsl(270, 55%, 51%) 0%, hsl(270, 55%, 39%) 100%) !important;
}

.footer-btn.footer-passive {
  transform: translateX(-50%) scale(0.93);
  background: linear-gradient(180deg, hsl(220, 16%, 18%) 0%, hsl(220, 16%, 12%) 100%);
  box-shadow: 0 2px 4px hsla(0, 0%, 0%, 0.3), inset 0 1px 0 hsla(0, 0%, 100%, 0.05);
  color: var(--color-text-muted);
  pointer-events: none;
  cursor: default;
}

.footer-btn.footer-loading {
  transform: translateX(-50%) scale(0.93);
  background: linear-gradient(180deg, hsl(220, 12%, 24%) 0%, hsl(220, 12%, 18%) 100%);
  box-shadow: 0 2px 4px hsla(0, 0%, 0%, 0.3), inset 0 1px 0 hsla(0, 0%, 100%, 0.05);
  color: var(--color-text-muted);
  pointer-events: none;
  cursor: default;
}

.footer-btn.footer-loading::after {
  content: '';
  animation: loadingDots 1.2s steps(4, end) infinite;
}

@keyframes loadingDots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
}

.footer-btn.footer-success {
  transform: translateX(-50%) scale(0.93);
  background: linear-gradient(180deg, hsl(152, 55%, 42%) 0%, hsl(152, 55%, 32%) 100%);
  box-shadow: 0 2px 4px hsla(0, 0%, 0%, 0.3), inset 0 1px 0 hsla(0, 0%, 100%, 0.1);
  pointer-events: none;
}

.footer-btn.footer-warning {
  transform: translateX(-50%) scale(0.93);
  background: linear-gradient(180deg, hsl(357, 40%, 22%) 0%, hsl(357, 40%, 14%) 100%);
  box-shadow: 0 2px 4px hsla(0, 0%, 0%, 0.3), inset 0 1px 0 hsla(0, 0%, 100%, 0.05);
  color: var(--color-nuke-red);
  pointer-events: none;
}

.music-btn-fixed {
  position: fixed;
  top: 56px;
  left: 24px;
  z-index: 20;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.music-btn-fixed:hover {
  color: var(--color-white);
}

.info-btn-fixed {
  position: fixed;
  top: 56px;
  right: 24px;
  z-index: 20;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.info-btn-fixed:hover {
  color: var(--color-white);
}

/* ============ Hero ============ */
.hero {
  height: calc(100vh - 42px);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero-brand {
  position: absolute;
  top: calc(50% - 52px);
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.info-overlay {
  position: fixed;
  top: 42px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 15;
  opacity: 0;
  transition: opacity 0.5s;
}

.info-heading {
  position: absolute;
  top: calc(50% - 244px);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.info-content-wrap {
  position: absolute;
  top: calc(50% - 144px);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 640px;
  padding: 0 16px;
  text-align: center;
}

.info-overlay.info-visible {
  opacity: 1;
}

.info-section {
  display: none;
  text-align: center;
  max-width: 640px;
  padding: 0 48px;
}

.info-section.info-active {
  display: block;
}

.info-section .info-body {
  opacity: 0;
  transition: opacity 0.4s;
}

.info-section .info-body.text-visible {
  opacity: 1;
}

.info-heading {
  font-family: var(--font-impact);
  font-size: clamp(18px, 9.6vw, 48px);
  font-weight: 400;
  color: var(--color-white);
  margin-top: 0;
  margin-bottom: 16px;
  text-transform: uppercase;
  white-space: nowrap;
}

.info-body {
  font-family: var(--font-conduit);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 16px;
}

.info-nav {
  position: absolute;
  top: calc(50% + 224px);
  left: 50%;
  transform: translate(-50%, -100%);
  display: flex;
  gap: 32px;
}

.info-nav-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
  font-family: var(--font-conduit);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.15s;
}

.info-nav-btn:hover {
  color: var(--color-white);
}


@media screen and (min-width: 769px) {
  .info-heading {
    font-size: 64px;
  }

  .info-body {
    font-size: 18px;
  }
}



.terminal-welcome {
  font-family: var(--font-impact);
  font-size: 128px;
  font-weight: 400;
  color: var(--color-white);
  margin: 0;
  line-height: 1;
  font-kerning: none;
}

.terminal-welcome-word {
  display: block;
  white-space: nowrap;
}

.roll-char {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  height: 1em;
}

.roll-char-inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.22, 1.8, 0.36, 1);
}

.roll-char-inner.roll-animate {
  transform: translateY(-50%);
}

.roll-digit {
  height: 1em;
  line-height: 1;
}



/* ============ Page Containers ============ */
.jiggle { animation: jiggle 0.5s ease; }

@keyframes jiggle {
  0%   { transform: translateX(0); }
  15%  { transform: translateX(-4px); }
  30%  { transform: translateX(4px); }
  45%  { transform: translateX(-3px); }
  60%  { transform: translateX(3px); }
  75%  { transform: translateX(-1px); }
  90%  { transform: translateX(1px); }
  100% { transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.create-account-container {
  position: absolute;
  top: calc(50% + 72px);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
}

.presale-container {
  position: absolute;
  top: calc(50% + 24px);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
}

.contribution-container {
  position: absolute;
  top: calc(50% - 220px);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
}


/* ============ Create Account Page ============ */
.create-account-content {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.signature-field {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto 16px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.signature-x {
  font-family: serif;
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.signature-input-wrap {
  flex: 1;
  position: relative;
  margin-bottom: -8px;
}

.signature-input {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: transparent;
  caret-color: var(--color-white);
  font-family: 'Only You', cursive;
  font-size: 38px;
  line-height: 1;
  outline: none;
  position: relative;
  z-index: 1;
}

.signature-display {
  position: absolute;
  left: 0;
  top: 6px;
  font-family: 'Only You', cursive;
  font-size: 38px;
  line-height: 1;
  pointer-events: none;
  white-space: pre;
  color: var(--color-white);
}

.signature-input::placeholder {
  font-family: var(--font-mono);
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
}


.create-account-error {
  margin-top: var(--spacing);
  padding: 8px var(--spacing);
  background: var(--color-bg-raised);
  color: var(--color-nuke-red);
  border: 1px solid var(--color-nuke-red);
  text-align: left;
  font-size: var(--font-size-sm);
}

/* ============ Shared Components ============ */
.section-title {
  font-size: var(--font-size-xs);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ============ Presale Page ============ */


.presale-user-section {
  padding: 0 16px;
  background-color: hsl(0, 0%, 98%);
  background-image:
    linear-gradient(172deg, transparent 44%, hsla(30, 10%, 70%, 0.05) 44.5%, hsla(30, 10%, 70%, 0.05) 45%, transparent 45.5%),
    linear-gradient(184deg, transparent 62%, hsla(30, 10%, 60%, 0.03) 62.5%, transparent 63%),
    radial-gradient(ellipse 70px 55px at 78% 25%, hsla(35, 40%, 60%, 0.03), transparent),
    radial-gradient(ellipse 40px 35px at 20% 70%, hsla(30, 30%, 55%, 0.02), transparent);
  box-shadow: 0 2px 12px hsla(0, 0%, 0%, 0.2);
  min-height: 380px;
  max-width: 300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 24px;
  padding-bottom: 12px;
  position: relative;
  overflow: visible;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.22, 1.8, 0.36, 1);
  clip-path: polygon(
    0% 0.3%,
    12% 0%,
    45% 0.2%,
    78% 0%,
    100% 0.5%,
    99.8% 15%,
    100% 40%,
    99.6% 65%,
    100% 85%,
    99.8% 100%,
    80% 99.7%,
    50% 100%,
    20% 99.5%,
    0% 100%,
    0.3% 75%,
    0% 50%,
    0.2% 25%
  );
}

.presale-user-section:hover {
  transform: scale(1.02);
}

.presale-user-section:active {
  transform: scale(0.98);
}

.presale-user-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='380'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.15' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}


.receipt-url {
  text-transform: none;
  letter-spacing: 0;
  line-height: 1;
}

.receipt-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.presale-user-section .section-title {
  color: hsl(0, 0%, 0%);
  font-family: 'Merchant Copy', monospace;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  line-height: 1.0;
  padding-left: 32px;
  padding-right: 32px;
  border-top: 1px dashed hsl(0, 0%, 0%);
  padding-top: 4px;
  margin-top: 0;
  border-bottom: 1px dashed hsl(0, 0%, 0%);
  padding-bottom: 4px;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.presale-user-section .section-title::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  border-top: 1px dashed hsl(0, 0%, 0%);
}

.presale-user-section .section-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  border-bottom: 1px dashed hsl(0, 0%, 0%);
}

.presale-user-section .section-title,
.presale-user-stats {
  transform: rotate(-0.2deg);
  filter: url(#ink-bleed);
}

.presale-user-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 1;
}

.receipt-table-header,
.receipt-table-row {
  display: flex;
  font-family: 'Merchant Copy', monospace;
  font-size: 18px;
  color: hsl(0, 0%, 0%);
  padding: 0;
  line-height: 1.0;
}

.receipt-table-header {
  border-bottom: 1px dashed hsl(0, 0%, 0%);
  padding-bottom: 4px;
}

a.receipt-table-row,
.receipt-row-link {
  display: flex;
  text-decoration: none;
  color: hsl(0, 0%, 0%);
  cursor: pointer;
}

a.receipt-table-row:visited {
  color: hsl(0, 0%, 0%);
}

.receipt-row-link:hover .receipt-col-item {
  text-decoration: underline;
}

.receipt-total {
  display: flex;
  font-family: 'Merchant Copy', monospace;
  font-size: 18px;
  color: hsl(0, 0%, 0%);
  line-height: 1.0;
  border-top: 1px dashed hsl(0, 0%, 0%);
  border-bottom: 1px dashed hsl(0, 0%, 0%);
  padding: 4px 0;
  margin-top: 4px;
}

.receipt-signature {
  margin-top: 16px;
  font-family: 'Merchant Copy', monospace;
  font-size: 18px;
  color: hsl(0, 0%, 0%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.receipt-sig-row {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  width: 100%;
}

.receipt-sig-line {
  flex: 1;
  border-bottom: 1px solid hsl(0, 0%, 0%);
  position: relative;
}

.receipt-sig-name {
  position: absolute;
  bottom: 2px;
  left: 4px;
  font-family: 'Only You', cursive;
  font-size: 28px;
  line-height: 1;
  color: hsl(0, 0%, 0%);
  pointer-events: none;
}

.receipt-sig-text {
  text-align: center;
  font-size: 18px;
  margin-top: -4px;
  text-transform: uppercase;
}

.receipt-thankyou {
  text-align: center;
  font-size: 12px;
  margin-top: 10px;
}

.receipt-col-item {
  flex: 1;
  text-align: left;
}

.receipt-col-qty {
  width: 50px;
  text-align: right;
  margin-right: 16px;
}

.receipt-col-price {
  width: 80px;
  text-align: right;
}

.presale-user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed hsl(0, 0%, 0%);
}

.presale-user-row:last-child {
  border-bottom: none;
}

.receipt-meta {
  font-family: 'Merchant Copy', monospace;
  font-size: 18px;
  color: hsl(0, 0%, 0%);
  line-height: 1.0;
  text-align: left;
  padding: 2px 0 8px;
  border-bottom: 1px dashed hsl(0, 0%, 0%);
}

.presale-user-label {
  color: hsl(0, 0%, 0%);
  font-family: 'Merchant Copy', monospace;
  font-size: 18px;
  letter-spacing: 1px;
}

.presale-user-value {
  font-family: 'Merchant Copy', monospace;
  font-size: 18px;
  font-weight: 400;
  color: hsl(0, 0%, 0%);
}

.presale-contribute-section {
  padding: 16px;
  background: transparent;
  border: none;
}

.preset-amounts {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.preset-btn {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--color-white);
  background: linear-gradient(180deg, hsl(38, 75%, 50%) 0%, hsl(38, 75%, 38%) 100%);
  border: 1px solid hsla(0, 0%, 0%, 0.3);
  border-radius: 8px;
  padding: 4px 0;
  width: 72px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 4px hsla(0, 0%, 0%, 0.3), inset 0 1px 0 hsla(0, 0%, 100%, 0.1);
  transition: transform 0.35s cubic-bezier(0.22, 1.8, 0.36, 1), background 0.15s ease;
}

.preset-btn:hover {
  transform: scale(1.03);
  background: linear-gradient(180deg, hsl(38, 75%, 53%) 0%, hsl(38, 75%, 41%) 100%);
}

.preset-btn:active {
  transform: scale(0.95);
  background: linear-gradient(180deg, hsl(38, 75%, 47%) 0%, hsl(38, 75%, 35%) 100%);
}

.preset-btn.preset-active {
  background: linear-gradient(180deg, hsl(38, 75%, 55%) 0%, hsl(38, 75%, 43%) 100%);
}

.presale-input-group {
  display: flex;
  gap: 8px;
}

.presale-input {
  flex: 1;
  padding: 8px 16px;
  border: 1px solid hsla(0, 0%, 0%, 0.15);
  border-radius: 8px;
  background: hsl(40, 20%, 94%);
  color: hsl(0, 0%, 10%);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
  box-shadow: inset 0 2px 4px hsla(0, 0%, 0%, 0.15);
  transition: border-color 0.15s;
}

.presale-input:focus {
  outline: none;
  border-color: hsla(0, 0%, 0%, 0.3);
}

.presale-input::placeholder {
  color: hsl(0, 0%, 55%);
  font-weight: 400;
}


.section-subtext {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-text-muted);
  text-align: center;
  margin: 12px 0 0;
  letter-spacing: 0.5px;
  pointer-events: none;
}

/* ============ Live Activity Ticker ============ */
.presale-feed-section {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  z-index: 10;
}

.presale-feed-section .section-title {
  display: none;
}

/* Main ticker body */
.ticker-body {
  display: flex;
  align-items: stretch;
  height: 40px;
}

/* Scrolling bar */
.ticker-bar {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

/* Accent strip */
.ticker-accent {
  height: 1px;
  background: hsl(0, 0%, 20%);
  position: relative;
  overflow: hidden;
}

.ticker-accent-fill {
  height: 100%;
  background: var(--color-nuke-red);
  width: 0%;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Edge fades */
.ticker-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}

.ticker-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--color-bg), transparent);
}

.ticker-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--color-bg), transparent);
}

/* Feed list container */
.presale-feed-list {
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
}

.ticker-track {
  display: flex;
  align-items: center;
  will-change: transform;
}

/* Feed items */
.feed-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  flex-shrink: 0;
  white-space: nowrap;
  cursor: default;
  position: relative;
}

/* Separator between items */
.feed-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: var(--color-border);
}

.feed-item.userCreated:hover .feed-text {
  color: var(--color-success);
}

.feed-item.contributed:hover .feed-text {
  color: var(--color-warning);
}

.feed-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feed-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.feed-icon.contributed .feed-icon-img {
  width: 40px;
  height: 40px;
  position: relative;
  top: -3px;
}

.feed-text {
  font-family: var(--font-conduit);
  font-size: 15px;
  position: relative;
  top: 2px;
  font-weight: 700;
  color: var(--color-white);
  white-space: nowrap;
  text-transform: uppercase;
  -webkit-text-stroke: 2px hsla(0, 0%, 0%, 0.5);
  paint-order: stroke fill;
  text-shadow: 0 1px 2px hsla(0, 0%, 0%, 0.4);
  transition: color 0.15s ease;
}

.feed-empty {
  color: hsla(0, 0%, 50%, 0.5);
  font-size: var(--font-size-sm);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0 var(--spacing);
  width: 100%;
}

.progress-bar-mobile {
  display: none;
}

/* ============ Responsive ============ */
@media screen and (max-width: 768px) {
  :root {
    --font-size-display: 48px;
  }


  .presale-input-group {
    flex-direction: column;
  }

  .presale-input {
    font-size: 16px;
  }



  body.theme-phantom .ticker-bar {
    background: hsl(0, 0%, 7%);
  }
  body.theme-phantom .ticker-fade-left {
    background: linear-gradient(to right, hsl(0, 0%, 7%), transparent);
  }
  body.theme-phantom .ticker-fade-right {
    background: linear-gradient(to left, hsl(0, 0%, 7%), transparent);
  }

  body.theme-solflare .ticker-bar {
    background: hsl(218, 35%, 5%);
  }
  body.theme-solflare .ticker-fade-left {
    background: linear-gradient(to right, hsl(218, 35%, 5%), transparent);
  }
  body.theme-solflare .ticker-fade-right {
    background: linear-gradient(to left, hsl(218, 35%, 5%), transparent);
  }

  .presale-user-section .section-title,
  .presale-user-stats {
    filter: none;
  }

  .music-btn-fixed {
    top: 48px;
    left: 8px;
  }

  .music-btn-fixed svg,
  .info-btn-fixed svg {
    width: 20px;
    height: 20px;
  }

  .info-btn-fixed {
    top: 48px;
    right: 8px;
  }

  .info-overlay {
    padding: 12px 4px;
  }

  .info-section {
    padding: 0 8px;
  }

  .progress-bar-mobile {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-border);
    z-index: 10;
    overflow: hidden;
  }

  .progress-bar-mobile-fill {
    height: 100%;
    background: var(--color-nuke-red);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@media screen and (max-width: 500px) {
  .terminal-welcome {
    font-size: 25vw;
  }
  .info-heading {
    top: calc(50% - 52px - 37.5vw);
  }
  .info-content-wrap {
    top: calc(50% - 28px - 27.9vw);
  }
}
