/* $BTCC readability overrides on top of the base layout stylesheet */
.roadmap__item p {
  color: #fff;
  border-top-color: #ffe400;
}
.tokenomics__cap span {
  color: #fff;
  text-shadow: 0 2px 0 #000;
}
.footer__bottom p {
  max-width: 60rem;
  margin: 0 auto;
  font-size: 0.75rem;
  line-height: 140%;
}

/* ===== Responsive fixes ===== */
.wrapper { overflow-x: hidden; }

/* Tablet and below */
@media (max-width: 61.99875em) {
  .header__container { padding-left: 1rem; padding-right: 1rem; }
  .header__right { flex: 1 1 auto; min-width: 0; justify-content: flex-end; column-gap: 0.75rem; }
  .header__button.button.small { width: auto; min-width: 0; padding: 0 1rem; white-space: nowrap; }
  .footer__bottom p { padding: 0 1rem; }
}

/* Phones */
@media (max-width: 47.99875em) {
  .header__container { padding-left: 0.75rem; padding-right: 0.75rem; }
  .header__logo { max-width: 38vw; }
  .header__logo img { width: 100%; height: auto; }
  .header__right { column-gap: 0.5rem; }
  .header__actions { row-gap: 0.5rem; align-items: flex-end; }
  .header__button.button.small {
    padding: 0 0.75rem;
    height: 2.125rem;
    font-size: 1rem;
  }
  .header__social { column-gap: 0.5rem; }

  .hero__actions { position: relative; z-index: 5; }
  .hero__image { position: relative; z-index: 1; margin-top: -7rem; }

  .tokenomics__ca-item { flex-wrap: nowrap; }
  .tokenomics__ca-item .ca-value {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-all;
    line-height: 120%;
  }
  .footer__top-body { row-gap: 2rem; }
  .footer__bottom p { font-size: 0.7rem; }
}

/* Very small phones */
@media (max-width: 26.5625em) {
  .header__button.button.small { font-size: 0.875rem; padding: 0 0.625rem; }
  .header__logo { max-width: 34vw; }
}

/* Tokenomics: the mobile artwork has no baked-in character, so show the
   illustration and keep the section from stretching into empty space. */
.tokenomics__title img { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35)); }

@media (max-width: 47.99875em) {
  .tokenomics {
    aspect-ratio: auto;
    background-image: url(../img/tokenomics.png);
    background-position: center bottom;
    background-size: 130% auto;
    padding-top: 5.5rem;
  }
  .tokenomics__title { position: relative; top: auto; left: auto; width: 90%; transform: none; margin: 0 auto 1.5rem; }
  .tokenomics__image { aspect-ratio: auto; }
  .tokenomics__image img {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
  }
  .tokenomics__cap { top: 30%; left: 50%; width: 40%; height: auto; }
}

/* ===== Live chart section ===== */
.chart-live {
  position: relative;
  background: #0f0f10;
  padding: 5rem 0 5.5rem;
  border-top: 0.375rem solid #000;
  border-bottom: 0.375rem solid #000;
}
.chart-live__container {
  max-width: 82rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.chart-live__title {
  font-family: "Playtoy", sans-serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 100%;
  text-align: center;
  color: #ffe400;
  text-shadow: 0 0.25rem 0 #000, 0 0 2rem rgba(255, 228, 0, 0.35);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(2rem);
  transition: all 0.6s ease;
}
.chart-live__title._watcher-view,
.chart-live__stats._watcher-view,
.chart-live__frame._watcher-view,
.chart-live__actions._watcher-view,
.gallery__title._watcher-view,
.gallery__lead._watcher-view,
.gallery__item._watcher-view {
  opacity: 1;
  transform: none;
}
.chart-live__stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: all 0.6s ease 0.1s;
}
.chart-live__stat {
  background: #ffe400;
  border: 0.25rem solid #000;
  border-radius: 0.75rem;
  padding: 0.75rem 0.5rem;
  text-align: center;
  box-shadow: 0 0.375rem 0 #000;
}
.chart-live__stat span {
  display: block;
  font-family: "HelveticaNeueBold", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #000;
  opacity: 0.7;
}
.chart-live__stat strong {
  display: block;
  font-family: "RockwellStd-Bold", serif;
  font-size: clamp(0.95rem, 1.6vw, 1.4rem);
  color: #000;
  overflow-wrap: anywhere;
}
.chart-live__stat strong.is-up { color: #0b7a2c; }
.chart-live__stat strong.is-down { color: #b91c0c; }
.chart-live__frame {
  background: #fffdf2;
  border: 0.375rem solid #000;
  border-radius: 1rem;
  box-shadow: 0 0.75rem 0 #000;
  overflow: hidden;
  opacity: 0;
  transform: translateY(2rem);
  transition: all 0.6s ease 0.15s;
}
.chart-live__frame-head,
.chart-live__frame-foot {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  font-family: "HelveticaNeueBold", sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: #000;
  background: #ffe400;
  border-bottom: 0.25rem solid #000;
}
.chart-live__frame-foot {
  border-bottom: 0;
  border-top: 0.25rem solid #000;
  justify-content: space-between;
}
.chart-live__dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #2fd35b;
  border: 0.125rem solid #000;
  animation: btccPulse 1.6s infinite;
}
@keyframes btccPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.chart-live__live { margin-left: auto; }
.chart-live__plot { height: clamp(14rem, 34vw, 22rem); background: #fffdf2; }
.chart-live__plot svg { width: 100%; height: 100%; display: block; }
.chart-live__empty {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: "HelveticaNeueBold", sans-serif;
  color: #000;
}
.chart-live__actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: all 0.6s ease 0.2s;
}

/* ===== Meme gallery ===== */
.gallery {
  background: #ffe400;
  padding: 5rem 0 6rem;
  border-bottom: 0.375rem solid #000;
}
.gallery__container {
  max-width: 88rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.gallery__title {
  font-family: "Playtoy", sans-serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 100%;
  text-align: center;
  color: #fff;
  text-shadow: 0 0.3125rem 0 #000;
  opacity: 0;
  transform: translateY(2rem);
  transition: all 0.6s ease;
}
.gallery__lead {
  max-width: 42rem;
  margin: 1rem auto 2.5rem;
  text-align: center;
  font-family: "HelveticaNeueBold", sans-serif;
  font-size: 1rem;
  line-height: 150%;
  color: #000;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: all 0.6s ease 0.1s;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.gallery__item {
  position: relative;
  display: block;
  padding: 0;
  background: #fff;
  border: 0.25rem solid #000;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 0 #000;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.5s ease, transform 0.25s ease;
}
.gallery__item:hover { transform: translateY(-0.375rem) rotate(-1deg); }
.gallery__item img { display: block; width: 100%; height: auto; }
.gallery__item span {
  display: block;
  padding: 0.5rem 0.625rem;
  border-top: 0.25rem solid #000;
  font-family: "HelveticaNeueBold", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #000;
  text-align: center;
}
.gallery__lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.82);
}
.gallery__lightbox-inner {
  width: min(34rem, 100%);
  background: #fff;
  border: 0.375rem solid #000;
  border-radius: 1rem;
  overflow: hidden;
}
.gallery__lightbox-inner img { display: block; width: 100%; height: auto; }
.gallery__lightbox-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #ffe400;
  border-top: 0.25rem solid #000;
  font-family: "HelveticaNeueBold", sans-serif;
  font-size: 0.875rem;
  color: #000;
}
.gallery__lightbox-bar a { margin-left: auto; color: #000; text-decoration: underline; }
.gallery__lightbox-bar button { background: none; border: 0; cursor: pointer; font-size: 1rem; }

@media (max-width: 61.99875em) {
  .chart-live__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 47.99875em) {
  .chart-live__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .chart-live { padding: 3.5rem 0 4rem; }
  .gallery { padding: 3.5rem 0 4rem; }
}

/* ===== Live chart: controls, axes, detail table ===== */
.chart-live__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(1.25rem);
  transition: all 0.6s ease 0.05s;
}
.chart-live__toolbar._watcher-view,
.chart-live__details._watcher-view { opacity: 1; transform: none; }
.chart-live__refresh, .chart-live__meta { display: flex; align-items: center; gap: 0.625rem; flex-wrap: wrap; }
.chart-live__toolbar-label {
  font-family: "HelveticaNeueBold", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #ffe400;
}
.chart-live__segments {
  display: flex;
  border: 0.1875rem solid #000;
  border-radius: 0.625rem;
  overflow: hidden;
  background: #fffdf2;
  box-shadow: 0 0.25rem 0 #000;
}
.chart-live__segment {
  border: 0;
  border-right: 0.1875rem solid #000;
  background: transparent;
  padding: 0.4rem 0.7rem;
  font-family: "HelveticaNeueBold", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #000;
  cursor: pointer;
}
.chart-live__segment:last-child { border-right: 0; }
.chart-live__segment.is-active { background: #ffe400; }
.chart-live__updated {
  font-family: "HelveticaNeueBold", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #fff;
  opacity: 0.85;
}
.chart-live__refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffe400;
  border: 0.1875rem solid #000;
  border-radius: 0.625rem;
  box-shadow: 0 0.25rem 0 #000;
  padding: 0.4rem 0.8rem;
  font-family: "HelveticaNeueBold", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #000;
  cursor: pointer;
}
.chart-live__refresh-btn:active { transform: translateY(0.125rem); box-shadow: 0 0.125rem 0 #000; }
.chart-live__refresh-btn:disabled { opacity: 0.7; cursor: default; }
.chart-live__refresh-btn .is-spinning { display: inline-block; animation: btccSpin 0.9s linear infinite; }
@keyframes btccSpin { to { transform: rotate(360deg); } }
.chart-live__error {
  margin-bottom: 1rem;
  font-family: "HelveticaNeueBold", sans-serif;
  font-size: 0.8rem;
  color: #ff6a5a;
}
.chart-live__dot.is-off { background: #ff4d3d; animation: none; }
.chart-live__price-tag {
  font-family: "RockwellStd-Bold", serif;
  font-size: 1rem;
  padding-left: 0.5rem;
}
.chart-live__axis {
  font-family: "HelveticaNeueBold", sans-serif;
  font-size: 15px;
  fill: #000;
  opacity: 0.7;
}
.chart-live__axis--bold { opacity: 1; font-size: 17px; }
.chart-live__plot svg { cursor: crosshair; }
.chart-live__details {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: all 0.6s ease 0.1s;
}
.chart-live__table {
  width: 100%;
  border-collapse: collapse;
  background: #fffdf2;
  border: 0.3125rem solid #000;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 0 #000;
  font-family: "HelveticaNeueBold", sans-serif;
}
.chart-live__table th, .chart-live__table td {
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  text-align: right;
  color: #000;
  border-bottom: 0.125rem solid rgba(0, 0, 0, 0.15);
}
.chart-live__table th:first-child, .chart-live__table td:first-child { text-align: left; }
.chart-live__table thead th { background: #ffe400; border-bottom: 0.25rem solid #000; letter-spacing: 0.06em; }
.chart-live__table tbody tr:last-child td { border-bottom: 0; font-family: "RockwellStd-Bold", serif; }
.chart-live__table .is-up { color: #0b7a2c; }
.chart-live__table .is-down { color: #b91c0c; }
.chart-live__pressure {
  background: #fffdf2;
  border: 0.3125rem solid #000;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 0 #000;
  padding: 1rem;
}
.chart-live__pressure .chart-live__toolbar-label { color: #000; }
.chart-live__bar {
  height: 1.125rem;
  margin: 0.6rem 0 0.4rem;
  background: #ff4d3d;
  border: 0.1875rem solid #000;
  border-radius: 999px;
  overflow: hidden;
}
.chart-live__bar-buy { height: 100%; background: #2fd35b; border-right: 0.1875rem solid #000; }
.chart-live__bar-legend {
  display: flex;
  justify-content: space-between;
  font-family: "HelveticaNeueBold", sans-serif;
  font-size: 0.75rem;
}
.chart-live__bar-legend .is-up { color: #0b7a2c; }
.chart-live__bar-legend .is-down { color: #b91c0c; }
.chart-live__facts { list-style: none; margin: 0.9rem 0 0; padding: 0; }
.chart-live__facts li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-top: 0.125rem dashed rgba(0, 0, 0, 0.25);
  font-family: "HelveticaNeueBold", sans-serif;
  font-size: 0.75rem;
  color: #000;
}
.chart-live__facts strong { font-family: "RockwellStd-Bold", serif; overflow-wrap: anywhere; text-align: right; }

@media (max-width: 61.99875em) {
  .chart-live__details { grid-template-columns: 1fr; }
}
@media (max-width: 47.99875em) {
  .chart-live__toolbar { flex-direction: column; align-items: stretch; }
  .chart-live__meta { justify-content: space-between; }
  .chart-live__axis { font-size: 20px; }
  .chart-live__table th, .chart-live__table td { padding: 0.5rem 0.4rem; font-size: 0.7rem; }
}
