/* The working terminal, added in the workshop's own language: paper, irregular ink,
   pink controls, Courier labels. style.css, pad.css, pad-mobile.css, theme.css and
   cinema.css are untouched; every addition for the live launch code is in this file.
   Colours outside the terminal come from the theme variables, so light and dark follow. */

:root {
  --good: #1d7a47;
  --bad: #b3260f;
  --light-live: #27a35f;
  --light-wait: #d99a00;
  --light-done: #3b7bd6;
  --light-bad: #d0412b;
}
:root[data-theme="dark"] {
  --good: #85dfac;
  --bad: #ffad9e;
  --light-live: #85dfac;
  --light-wait: #ffe48c;
  --light-done: #a7cfff;
  --light-bad: #ffad9e;
}
[hidden] {
  display: none !important;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------ status light, by launch phase
   (pad.css keys the same colours on .live/.graduated/...; the code sets data-phase) */
.terminal[data-phase="bonding"] .status-light,
.terminal[data-phase="reopened"] .status-light {
  background: #85dfac;
}
.terminal[data-phase="graduated"] .status-light {
  background: #ffe48c;
}
.terminal[data-phase="migrated"] .status-light {
  background: #a7cfff;
}
.terminal[data-phase="error"] .status-light,
.terminal[data-phase="fallback"] .status-light,
.terminal[data-phase="tampered"] .status-light {
  background: #ffad9e;
}

/* ------------------------------------------------ terminal: top line, tabs, ticket */
.terminal-top small {
  text-transform: uppercase;
}
#network[data-cluster="devnet"],
#network[data-cluster="localnet"] {
  color: #ffe48c;
}
.trade-tabs button[aria-pressed="true"],
.trade-tabs button[aria-pressed="true"]:hover {
  background: var(--pink);
  color: #26151d;
  border-color: var(--pink);
}
.trade-box :disabled {
  cursor: not-allowed;
}
.amount-input input[data-size="medium"] {
  font-size: clamp(28px, 3vw, 40px);
}
.amount-input input[data-size="small"] {
  font-size: clamp(19px, 2vw, 26px);
}
.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -8px 0 22px;
}
.quick-chip,
.copy {
  font: 700 13px/1.2 var(--mono);
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
}
.quick-chip {
  min-height: 38px;
  padding: 8px 12px;
  color: #ded8e0;
  border-color: #8a818f;
  background: #242126;
}
.quick-chip:hover:not(:disabled) {
  color: #fff;
  border-color: var(--pink);
}
.copy {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}
.copy:hover {
  background: var(--pink-pale);
}
.terminal .copy {
  color: #f4ecf7;
  border-color: #95899e;
}
.terminal .copy:hover {
  background: #363039;
}
.trade-box[data-closed="true"] .trade-tabs,
.trade-box[data-closed="true"] > label,
.trade-box[data-closed="true"] .amount-input,
.trade-box[data-closed="true"] .quick,
.trade-box[data-closed="true"] .slippage-row,
.trade-box[data-closed="true"] .quote {
  opacity: 0.45;
}
.form-note {
  min-height: 1.6em;
}
.form-note[data-tone="bad"] {
  color: #ffad9e;
}
.form-note[data-tone="ok"] {
  color: #85dfac;
}
.form-note a {
  color: #fff;
  white-space: nowrap;
}

/* ------------------------------------------------ stats column */
#fdv-sol {
  font: 400 14px/1.4 var(--mono);
  color: #c5bdcb;
  white-space: nowrap;
}
.quote.mine {
  margin: 16px 0 0;
}
.quote.mine > div:last-child {
  padding-bottom: 0;
}

/* ------------------------------------------------ token, curve chart and latest trades */
.market-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.75fr);
  gap: 24px;
  margin-top: 24px;
}
.curve-chart,
.tape {
  border: 1px solid #514e55;
  padding: 25px;
  min-width: 0;
  background: #202023;
  border-radius: 2px;
}
.token-id {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}
.token-id img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  background: #fff;
  border: 1.5px solid #f4ecf7;
  border-radius: 48% 51% 47% 49%;
}
.token-id strong {
  display: block;
  font: 800 24px/1.1 var(--sans);
  letter-spacing: -0.05em;
}
.token-id small {
  color: #c5bdcb;
  font-size: 13px;
}
.chart-plot {
  width: 100%;
}
#curve-chart {
  display: block;
  width: 100%;
  overflow: visible;
}
#curve-chart .grid {
  display: inline; /* style.css uses .grid for the meme layout; these are chart lines */
  stroke: #49434e;
  stroke-width: 1;
  stroke-dasharray: 3 6;
}
#curve-chart .tick {
  fill: #c5bdcb;
  font: 700 12px var(--mono);
}
#curve-chart .curve-rest {
  fill: none;
  stroke: #8a818f;
  stroke-width: 2;
  stroke-dasharray: 1 7;
  stroke-linecap: round;
}
#curve-chart .curve-done {
  fill: none;
  stroke: var(--pink);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#curve-chart .curve-area {
  fill: var(--pink);
  fill-opacity: 0.16;
}
#curve-chart .here-halo {
  fill: var(--pink);
  fill-opacity: 0.28;
}
#curve-chart .here-dot {
  fill: var(--pink);
  stroke: #1c1c1f;
  stroke-width: 2;
}
#curve-chart .preview-line {
  stroke: #fafafa;
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}
#curve-chart .preview-dot {
  fill: #1c1c1f;
  stroke: #fafafa;
  stroke-width: 2;
}
.curve-chart figcaption {
  margin-top: 10px;
}
.tape > small {
  color: #c5bdcb;
  font-size: 13px;
}
.tape ol {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.tape li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1.25fr) 34px;
  column-gap: 8px;
  padding: 9px 0;
  border-top: 1px solid #49434e;
  font: 13px/1.45 var(--mono);
}
.tape-side {
  font-weight: 700;
}
.tape .buy .tape-side {
  color: #85dfac;
}
.tape .sell .tape-side {
  color: #ffad9e;
}
.tape-tokens,
.tape-sol,
.tape-time {
  text-align: right;
}
.tape-time {
  grid-column: 4;
  grid-row: 1;
  color: #c5bdcb;
}
/* who traded sits on a second line, so the row fits the narrow column */
.tape-who {
  grid-column: 2 / -1;
  grid-row: 2;
  text-align: right;
  font-size: 12px;
  color: #c5bdcb;
}
.tape-who a {
  color: inherit;
}
.tape .form-note {
  margin-top: 12px;
}
/* beside the chart, the seven newest trades match its height */
@media (min-width: 851px) {
  .tape li:nth-child(n + 8) {
    display: none;
  }
}

/* ------------------------------------------------ addresses with copy buttons */
.addr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  min-width: 0;
}
.address-row .addr code {
  flex: 1 1 100%;
  margin: 0;
}
.address-row .addr .dim {
  font: 14px/1.6 var(--mono);
  color: #f6f1fa;
}

/* ------------------------------------------------ "Check the launch yourself"
   laid out like the rules section: heading on the left, ruled list on the right */
.verify {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 65px;
  padding: 42px 0;
  margin-top: 0;
}
.verify h2 {
  font-size: clamp(34px, 3.8vw, 54px);
  margin: 14px 0 24px;
  max-width: 13ch;
}
.verify-intro p {
  font-size: 16px;
  line-height: 1.65;
}
.verify-intro p + p {
  margin-top: 14px;
}
.verify code,
.dialog code,
.now code {
  font: 14px/1.5 var(--mono);
  overflow-wrap: anywhere;
}
button.chip {
  color: var(--ink);
  cursor: pointer;
}
.verify-intro .chip {
  margin-top: 24px;
}
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
}
.checks > li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 15px;
  padding: 19px 0;
  border-bottom: 1px solid var(--rule);
}
.checks > li:first-child {
  border-top: 1px solid var(--rule);
}
.checks h3 {
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0;
}
.checks p {
  font-size: 16px;
  line-height: 1.65;
  margin-top: 6px;
}
.checks .chip {
  margin-top: 14px;
  min-height: 44px;
}
.check-extra ul {
  margin: 8px 0 0;
  padding-left: 20px;
  font-size: 16px;
  color: var(--bad);
}
.mark {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-top: 1px;
  border: 1.5px solid var(--ink);
  border-radius: 3px 1px 3px 2px;
  background: var(--white);
  font: 700 15px/1 var(--sans);
  transform: rotate(-2deg);
}
.mark::before {
  content: "…";
}
[data-state="wait"] > .mark {
  border-style: dashed;
}
[data-state="ok"] > .mark {
  background: var(--pink);
  color: #21151a;
}
[data-state="ok"] > .mark::before {
  content: "✓";
}
[data-state="bad"] > .mark {
  background: var(--bad);
  border-color: var(--bad);
  color: var(--paper);
}
[data-state="bad"] > .mark::before {
  content: "✕";
}
[data-state="info"] > .mark {
  background: var(--pink-pale);
}
[data-state="info"] > .mark::before {
  content: "i";
}
[data-state="unknown"] > .mark {
  border-style: dashed;
}
[data-state="unknown"] > .mark::before {
  content: "?";
}
/* Hamsternomics is no longer the first section after the terminal, so it gets the
   same top rule as every other section. */
.verify + .economics {
  border-top: 2px solid var(--ink);
  padding-top: 36px;
  margin-top: 0;
}
:root[data-theme="dark"] .verify + .economics {
  border-color: var(--rule);
}

/* ------------------------------------------------ wallet dialog */
.dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 26px;
  border: 2px solid var(--ink);
  border-radius: 3px 2px 4px 2px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--pink);
}
.dialog::backdrop {
  background: rgba(20, 18, 22, 0.66);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.dialog h2 {
  font-size: 32px;
}
.dialog .copy {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 13px;
}
.wallet-list {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.wallet-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 11px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 3px 1px 3px 2px;
  background: var(--white);
  color: var(--ink);
  font: 700 15px/1.2 var(--mono);
  text-align: left;
  cursor: pointer;
}
.wallet-option:hover {
  background: var(--pink-pale);
  box-shadow: 3px 3px 0 var(--pink);
}
.wallet-option img {
  border-radius: 4px;
}
.wallet-current {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.wallet-current p,
.wallet-empty p {
  font-size: 16px;
  line-height: 1.6;
}
.wallet-empty p + p {
  margin-top: 10px;
}
:root .btn.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: none;
  cursor: pointer;
}
:root .btn.btn-quiet:hover,
:root .btn.btn-quiet:focus-visible {
  background: var(--pink-pale);
  color: var(--ink);
  box-shadow: none;
}

/* ------------------------------------------------ live status on the home and how-to-buy pages */
.now {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
  font: 14px/1.55 var(--mono);
  color: var(--ink);
}
.now .status-light {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin: 0;
  border-radius: 50%;
  background: #a9a4ab;
}
.now[data-phase="bonding"] .status-light,
.now[data-phase="reopened"] .status-light {
  background: var(--light-live);
}
.now[data-phase="graduated"] .status-light {
  background: var(--light-wait);
}
.now[data-phase="migrated"] .status-light {
  background: var(--light-done);
}
.now[data-phase="error"] .status-light,
.now[data-phase="fallback"] .status-light,
.now[data-phase="tampered"] .status-light {
  background: var(--light-bad);
}
.now b {
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.now #now-text {
  flex: 1 1 100%;
}
.now .plain {
  font: 700 14px/1.35 var(--mono);
  min-height: 44px;
}
/* home: a note under the two buttons */
.pitch .now {
  max-width: 38ch;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 2px dashed var(--rule);
}
/* how to buy: a card inside "I have SOL" */
.now.venue {
  margin: 0 0 26px;
  padding: 15px 17px;
  border: 1.5px solid var(--ink);
  border-radius: 3px 1px 3px 2px;
  background: var(--white);
}
.now.venue small {
  flex: 1 1 100%;
  margin-top: 8px;
  font-size: 13px;
}
.now.venue .addr {
  flex: 1 1 100%;
  margin-top: 0;
}
:root[data-theme="dark"] .now.venue {
  border-color: var(--rule);
}

/* ------------------------------------------------ smaller screens, at the design's own breakpoints */
@media (max-width: 1100px) {
  .verify {
    gap: 35px;
  }
}
@media (max-width: 850px) {
  .market-row {
    grid-template-columns: 1fr;
  }
  .verify {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .verify h2 {
    max-width: 20ch;
  }
}
@media (max-width: 760px) {
  .curve-chart,
  .tape {
    padding: 21px;
  }
  .verify {
    padding: 30px 0;
  }
  .verify h2 {
    font-size: 39px;
  }
  .pitch .now {
    max-width: none;
    margin-top: 22px;
  }
}
@media (max-width: 540px) {
  .curve-chart,
  .tape {
    padding: 16px;
  }
  .market-row {
    gap: 16px;
    margin-top: 16px;
  }
  .tape li:nth-child(n + 9) {
    display: none;
  }
  .quick-chip {
    flex: 1 1 auto;
    min-height: 42px;
    padding: 9px 6px;
  }
  .copy {
    min-height: 36px;
    padding: 7px 10px;
  }
  .amount-input input[data-size="medium"] {
    font-size: 30px;
  }
  .amount-input input[data-size="small"] {
    font-size: 20px;
  }
  .token-id strong {
    font-size: 22px;
  }
  .verify h2 {
    font-size: 36px;
  }
  .checks h3 {
    font-size: 17px;
  }
  .dialog {
    padding: 20px;
    box-shadow: 4px 4px 0 var(--pink);
  }
}
