/* ===============================================
   RESET
   =============================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

* {
  min-width: 0;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'JetBrains Mono', monospace;
}

html {
  overscroll-behavior: contain;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: always;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.1;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

img, picture, video, canvas, svg, embed, iframe, object, audio {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ===============================================
   FONTS
   =============================================== */

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../Source/Font/JetBrainsMono-2.304/fonts/webfonts/JetBrainsMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../Source/Font/JetBrainsMono-2.304/fonts/webfonts/JetBrainsMono-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../Source/Font/JetBrainsMono-2.304/fonts/webfonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===============================================
   HEADER / FOOTER BREAKPOINT SWITCH
   =============================================== */

.header-d-wrap,
.header-p-wrap,
.footer-d-wrap,
.footer-p-wrap {
  width: 100%;
  flex-shrink: 0;
}

.header-p-wrap,
.footer-p-wrap {
  display: none;
}

.headerc-d-logo img,
.headerc-p-logo img {
  max-width: none;
  height: 148%;
}

/* ===============================================
   LAYOUT
   =============================================== */

html, body {
  height: 100%;
}

body {
  background: #090909;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100vh;
  height: 100svh;
}

.cp-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 32px;
  padding: 36px 150px;
  box-sizing: border-box;
  overflow: hidden;
}

.cp-title {
  flex-shrink: 0;
  width: 100%;
  font-weight: 700;
  font-size: 40px;
  color: #3d0018;
  text-shadow: 0px 1px 1px rgba(0, 255, 146, 0.5);
}

.cp-content {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.cp-desc {
  flex-shrink: 0;
  width: 100%;
  font-weight: 400;
  font-size: 22px;
  color: #cdcdcd;
}

/* ===== SCROLL WRAPPERS (inert on desktop, custom scrollbar on phone) ===== */

.cp-scroll-outer,
.cp-scroll-inner,
.cp-scroll-wrap,
.cp-scroll-col {
  display: contents;
}

.cp-scrollbar-track {
  display: none;
}

/* ===== PREDICT COINS ===== */

.cp-coins-row {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
}

.cp-coin-card {
  flex-shrink: 0;
  width: 160px;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: rgba(6, 6, 6, 0.7);
  box-shadow: 0px 2px 2px 0px rgba(77, 225, 255, 0.5), inset 0px 0px 20px 0px rgba(205, 205, 205, 0.05);
  box-sizing: border-box;
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  outline: none;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: center;
}

.cp-coin-icon {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
}

.cp-coin-num {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 50px;
  color: #cdcdcd;
  text-align: center;
}

/* ===== PREDICTION & FIX ===== */

.cp-footer-row {
  flex-shrink: 0;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
}

.cp-prediction {
  flex-shrink: 0;
  width: 170px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #3d0018;
  border: 3px solid #000000;
  box-shadow: inset 0px 0px 10px 5px black;
  box-sizing: border-box;
  font-weight: 800;
  font-size: 20px;
  color: #cdcdcd;
  overflow: hidden;
  white-space: nowrap;
}

.cp-fix-btn {
  flex-shrink: 0;
  width: 170px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-appearance: none;
  appearance: none;
  border: 3px solid #000000;
  background: #00ff92;
  color: #000000;
  font-weight: 800;
  font-size: 16px;
  text-align: center;
  box-shadow: inset 0px 0px 10px 5px black;
  transition: filter 0.7s ease;
  box-sizing: border-box;
}

.cp-fix-btn:hover {
  filter: blur(2px);
}

/* ===== TOAST ===== */

.cp-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(10px);
  background: #000000;
  border: 1px solid #00ff92;
  color: #00ff92;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  box-shadow: 0px 0px 10px 0px rgba(0, 255, 146, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2000;
  white-space: nowrap;
}

.cp-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===============================================
   RESPONSIVE - PHONE (max-width: 768px)
   =============================================== */
@media (max-width: 768px) {

  .header-d-wrap,
  .footer-d-wrap {
    display: none;
  }

  .header-p-wrap,
  .footer-p-wrap {
    display: block;
  }

  .cp-body {
    gap: 46px;
    padding: 36px 20px;
  }

  .cp-title {
    font-size: 30px;
  }

  .cp-desc {
    font-size: 18px;
  }

  .cp-content {
    gap: 20px;
  }

  /* ===== SCROLL WRAPPERS: real scroll container + custom scrollbar ===== */

  .cp-scroll-outer {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow: hidden;
    justify-content: center;
    position: relative;
  }

  .cp-scroll-inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 6px;
    width: auto;
    height: 100%;
  }

  .cp-scroll-wrap {
    display: block;
    flex: 0 0 auto;
    width: 170px;
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .cp-scroll-wrap::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .cp-scroll-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    padding: 10px 0;
    box-sizing: border-box;
  }

  .cp-scrollbar-track {
    display: block;
    flex-shrink: 0;
    align-self: stretch;
    width: 4px;
    padding: 4px 1px;
    box-sizing: border-box;
    background: #000000;
    position: relative;
  }

  .cp-scrollbar-thumb {
    position: absolute;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: #00ff92;
    filter: blur(0.5px);
    cursor: pointer;
  }

  .cp-coins-row {
    flex-direction: column;
    gap: 10px;
    width: 170px;
    padding: 0;
    margin: 0 auto;
  }

  .cp-coin-card {
    flex-direction: row;
    justify-content: space-between;
    width: 170px;
    height: 120px;
    padding: 0 14px;
  }

  .cp-coin-icon {
    width: 90px;
    height: 90px;
  }

  .cp-coin-num {
    font-size: 40px;
  }

  .cp-footer-row {
    padding: 0;
  }
}
