:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #080202;
  color: #fff4e2;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(8, 2, 2, 0.94), rgba(12, 3, 3, 0.7) 46%, rgba(8, 2, 2, 0.25)),
    radial-gradient(circle at 10% 35%, rgba(215, 32, 32, 0.5), transparent 34%),
    url("/rugpull-hero.png") center / cover fixed;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1440px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 0;
  display: grid;
  align-content: center;
  gap: 24px;
}

.order-surface {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 480px);
  gap: 40px;
  align-items: center;
}

.copy {
  min-width: 0;
  max-width: 760px;
  padding: 24px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: #f4c46b;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 100%;
  margin-bottom: 14px;
  color: #fff0dc;
  font-size: clamp(4.2rem, 6.6vw, 6.7rem);
  line-height: 0.76;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 2px 0 #d72020,
    0 10px 36px rgba(215, 32, 32, 0.7),
    0 24px 70px rgba(0, 0, 0, 0.92);
}

h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  color: #ffe4be;
  font-size: 1.3rem;
  line-height: 1.55;
  font-weight: 750;
}

.ruin-copy {
  max-width: 650px;
  margin-bottom: 0;
  border-left: 4px solid #d72020;
  padding: 12px 0 12px 14px;
  color: #fff0dc;
  font-size: 1.03rem;
  font-weight: 850;
  line-height: 1.45;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.84);
}

.copy-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.copy-facts p {
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(244, 196, 107, 0.42);
  background: rgba(18, 12, 9, 0.82);
  color: #f8d99a;
  font-size: 0.86rem;
  font-weight: 800;
}

.ticket-card,
.orders-section {
  border: 1px solid rgba(244, 196, 107, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(44, 8, 8, 0.92), rgba(11, 4, 4, 0.94)),
    rgba(16, 10, 8, 0.9);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 244, 226, 0.08);
}

.ticket-card {
  padding: 20px;
}

.picker-panel,
.deposit-panel {
  display: grid;
  gap: 16px;
}

.form-title {
  display: grid;
  gap: 2px;
}

.form-title .eyebrow {
  margin-bottom: 0;
}

label {
  display: grid;
  gap: 8px;
  color: #f8d99a;
  font-size: 0.86rem;
  font-weight: 800;
}

input {
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(244, 196, 107, 0.28);
  border-radius: 6px;
  background: #fff0dc;
  color: #190907;
  padding: 0 12px;
  box-shadow: inset 0 2px 8px rgba(38, 5, 5, 0.18);
}

.tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #f8d99a;
  font-size: 0.86rem;
  font-weight: 800;
}

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

.picker-action {
  min-height: 36px;
  border: 1px solid rgba(244, 196, 107, 0.34);
  border-radius: 6px;
  background: rgba(255, 244, 226, 0.08);
  color: #fff0dc;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.picker-action:hover,
.picker-action:focus-visible,
.picker-action.active {
  border-color: #f4c46b;
  background: rgba(244, 196, 107, 0.18);
  outline: none;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.tile {
  aspect-ratio: 1;
  border: 1px solid rgba(255, 244, 226, 0.18);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.24)),
    var(--tile-color);
  color: var(--tile-ink);
  cursor: pointer;
  font-weight: 950;
  text-shadow: var(--tile-shadow);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 16px rgba(0, 0, 0, 0.34);
  transition:
    filter 120ms ease,
    transform 120ms ease,
    opacity 120ms ease;
}

.tile:hover,
.tile:focus-visible {
  border-color: #f4c46b;
  outline: none;
  transform: translateY(-1px);
  filter: saturate(1.16) brightness(1.08);
}

.tile:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  transform: none;
}

.tile.selected {
  border-color: #fff0dc;
  outline: 2px solid #f4c46b;
  outline-offset: 1px;
  font-weight: 900;
  filter: saturate(1.25) brightness(1.12);
  box-shadow:
    0 0 0 2px rgba(215, 32, 32, 0.52),
    0 0 24px rgba(244, 196, 107, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.primary-action,
.secondary-action,
.ghost-action {
  min-height: 46px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
}

.primary-action {
  border: 0;
  background:
    linear-gradient(180deg, #ff3d33, #a60910);
  color: #fff7ea;
  box-shadow: 0 14px 28px rgba(215, 32, 32, 0.3);
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.72;
}

.secondary-action {
  border: 0;
  background: linear-gradient(180deg, #ffd983, #c68b21);
  color: #170806;
}

.ghost-action {
  border: 1px solid rgba(244, 196, 107, 0.42);
  background: rgba(255, 244, 226, 0.06);
  color: #fff0dc;
}

.form-error {
  min-height: 1.4em;
  margin-bottom: 0;
  color: #ff9c8f;
  font-weight: 700;
}

.address-box {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  border: 1px solid rgba(255, 247, 234, 0.18);
  border-radius: 6px;
  background: #090403;
  color: #fff7ea;
  padding: 14px;
}

.panel-copy {
  margin: 8px 0 0;
  color: #ffe4be;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.45;
}

.deposit-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.qr-frame {
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 196, 107, 0.34);
  border-radius: 8px;
  background: #fff0dc;
  padding: 10px;
}

.qr-frame img {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
}

.deposit-details {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.deposit-details > div,
.address-stack {
  display: grid;
  gap: 5px;
}

.deposit-details span,
.address-stack > span {
  color: #f8d99a;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.deposit-details strong,
.deposit-details code {
  min-width: 0;
  color: #fff7ea;
  font-size: 0.92rem;
}

.deposit-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: 10px;
}

.orders-section {
  padding: 18px;
}

.orders-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.orders-head p:last-child {
  max-width: 520px;
  margin-bottom: 0;
  color: #ffe4be;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.orders-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 244, 226, 0.12);
  border-radius: 8px;
  background: rgba(9, 4, 3, 0.62);
}

.orders-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

.orders-table th,
.orders-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 244, 226, 0.1);
  text-align: left;
  vertical-align: top;
}

.orders-table th {
  color: #f8d99a;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.orders-table td {
  color: #fff7ea;
  font-size: 0.85rem;
  font-weight: 750;
}

.orders-table tr:last-child td {
  border-bottom: 0;
}

.scroll-code {
  display: block;
  max-width: 340px;
  overflow-x: auto;
  white-space: nowrap;
  border: 1px solid rgba(255, 247, 234, 0.16);
  border-radius: 6px;
  background: #090403;
  color: #fff7ea;
  padding: 8px;
  font-size: 0.78rem;
}

.empty-orders {
  margin: 12px 0 0;
  color: #ffe4be;
  font-weight: 800;
}

@media (max-width: 980px) {
  body {
    background-position: 62% center;
  }

  .shell {
    min-height: auto;
    padding: 24px 0;
    width: min(720px, calc(100% - 28px));
  }

  .order-surface {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 4.4rem;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 24px, 440px);
  }

  h1 {
    font-size: 3.3rem;
  }

  .lead {
    font-size: 1.05rem;
  }

  .copy-facts,
  .orders-head,
  .deposit-layout,
  .deposit-actions {
    grid-template-columns: 1fr;
  }

  .copy-facts,
  .orders-head {
    display: grid;
  }

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

  .tile-actions {
    grid-template-columns: 1fr;
  }

  .deposit-layout {
    display: grid;
  }

  .qr-frame {
    max-width: 220px;
  }

  .orders-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .orders-table,
  .orders-table thead,
  .orders-table tbody,
  .orders-table tr,
  .orders-table th,
  .orders-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .orders-table thead {
    display: none;
  }

  .orders-table tr {
    margin-bottom: 12px;
    border: 1px solid rgba(255, 244, 226, 0.12);
    border-radius: 8px;
    background: rgba(9, 4, 3, 0.62);
    overflow: hidden;
  }

  .orders-table td {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
  }

  .orders-table td::before {
    content: attr(data-label);
    color: #f8d99a;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .scroll-code {
    max-width: 100%;
  }
}
