/* =============================================
   General
   ============================================= */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-color: #1a1611;
  font-family: "Roboto", sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  color: #ffb000;
}

@media (min-width: 768px) and (min-height: 700px) {
  body { justify-content: center; }
}

/* =============================================
   Main box
   ============================================= */
.bigBox {
  width: 100%;
  box-sizing: border-box;
  background-color: #2d2822;
  padding: clamp(1rem, 5vw, 9rem);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .bigBox {
    max-width: 1200px;
    min-height: unset;
    display: block;
  }
}

/* =============================================
   Typography — 3-tier hierarchy
   h1 = hero (biggest, full amber)
   h2 = section (medium, slightly muted)
   h3 = body text (small, noticeably dimmer)
   ============================================= */
h1 {
  font-size: clamp(2rem, 8vw, 5rem);
  word-break: break-word;
  white-space: normal;
  margin: 0.5em 0 0.15em;
  color: #ffb000;
  font-weight: 700;
}

h2 {
  font-size: clamp(0.95rem, 3.2vw, 1.6rem);
  word-break: break-word;
  white-space: normal;
  margin: 0.3em 0;
  color: #e09800;
  font-weight: 400;
}

h3 {
  font-size: clamp(0.8rem, 2.5vw, 1.05rem);
  word-break: break-word;
  white-space: normal;
  margin: 0.25em 0;
  color: #a07820;
  font-weight: 400;
}

/* Code-style text */
.code-text {
  font-family: monospace;
  color: #ff8c42;
  font-size: 0.9em;
  background: #1a1611;
  padding: 0.1em 0.3em;
  border-radius: 3px;
  margin: 0 0.15em;
}

/* Speech bubble */
.speech-bubble {
  display: inline-block;
  position: relative;
  background: #1a1611;
  color: #ffb000;
  padding: 0.1em 0.5em;
  border-radius: 0.6em;
  margin-left: 0.4em;
  font-weight: 700;
}

.speech-bubble::before {
  content: '';
  position: absolute;
  left: 1em;
  bottom: -0.6em;
  width: 0;
  height: 0;
  border-left: 0.7em solid #1a1611;
  border-bottom: 0.7em solid transparent;
}

/* =============================================
   Scanlines
   ============================================= */
.scanlines {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 300;
  opacity: .6;
  animation: opacityPulse 3s linear infinite;
}

.scanlines::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.5) 51%);
  background-size: 100% 4px;
  animation: scanlines .2s linear infinite;
}

@keyframes scanlines {
  0%   { background-position: 0 0; }
  100% { background-position: 0 4px; }
}

@keyframes opacityPulse {
  0%, 100% { opacity: .6; }
  50%       { opacity: .4; }
}

/* =============================================
   divBox (banner row)
   ============================================= */
.divBox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

/* =============================================
   3D Marquee
   ============================================= */
.banner-section {
  flex: 0 0 auto;
  max-width: 55vw;
}

.box {
  display: flex;
}

.box .inner {
  width: clamp(80px, 25vw, 300px);
  height: clamp(45px, 10vw, 150px);
  line-height: clamp(45px, 10vw, 150px);
  font-size: clamp(0.9rem, 3.5vw, 5rem);
  font-weight: bold;
  white-space: nowrap;
  display: flex;
  overflow: hidden;
  position: relative;
}

.box .inner:first-child {
  background-color: #4a3728;
  color: #ff8c42;
  transform-origin: right;
  transform: perspective(200px) rotateY(-15deg);
}

.box .inner:last-child {
  background-color: #5c4033;
  color: #ffb000;
  transform-origin: left;
  transform: perspective(200px) rotateY(15deg);
}

.box .inner span {
  position: absolute;
  left: 0;
}

@keyframes marquee {
   0%   { transform: translateX(0); }
  100%  { transform: translateX(-50%); }
}

/* =============================================
   Dropping Text
   ============================================= */
.dropping-section {
  flex: 1 1 0;
  min-width: 0;
  height: clamp(45px, 10vw, 150px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.dropping-texts {
  display: block;
  width: 100%;
  height: clamp(45px, 10vw, 150px);
  line-height: clamp(45px, 10vw, 150px);
  position: relative;
}

.dropping-texts > div {
  font-size: 0px;
  opacity: 0;
  position: absolute;
  font-weight: 400;
  color: #ff8c42;
  white-space: nowrap;
}

.dropping-texts > div:nth-child(1) { animation: roll 4s linear infinite 0s; }
.dropping-texts > div:nth-child(2) { animation: roll 4s linear infinite 1s; }
.dropping-texts > div:nth-child(3) { animation: roll 4s linear infinite 2s; }
.dropping-texts > div:nth-child(4) { animation: roll 4s linear infinite 3s; }

@keyframes roll {
  0%   { font-size: 0px;                      opacity: 0; transform: translateY(50px) rotate(0deg); }
  5%   { font-size: clamp(1rem, 5vw, 75px);   opacity: 1; transform: translateY(0px)   rotate(0deg); }
  20%  { font-size: clamp(1rem, 5vw, 75px);   opacity: 1; transform: translateY(0px)   rotate(0deg); }
  25%  { font-size: clamp(1rem, 5vw, 75px);   opacity: 0; transform: translateY(-30px) rotate(0deg); }
  100% { font-size: 0px;                      opacity: 0; }
}

/* =============================================
   CTA Row — visually isolated
   ============================================= */
.cta-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid #3d3228;
  border-bottom: 1px solid #3d3228;
}

.cta-row h2 {
  color: #ffb000;
  font-weight: 700;
  font-size: clamp(1rem, 3.5vw, 1.7rem);
}

/* =============================================
   Button
   ============================================= */
button {
  padding: 10px 20px;
  font-size: clamp(1rem, 3vw, 1.5rem);
  border: none;
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-weight: bold;
  background-color: #ffb000;
  color: #1a1611;
  box-shadow:
    2px 2px 0px #d4960e,
    4px 4px 0px #b87d0c,
    6px 6px 0px #9c640a,
    8px 8px 0px #8a5809,
    10px 10px 0px #764c08,
    12px 12px 0px #613907,
    14px 14px 0px #4c2706,
    16px 16px 0px #371405,
    18px 18px 0px #220104;
}

button:hover {
  background-color: #ff8c42;
  color: #1a1611;
  box-shadow: none;
}

/* =============================================
   Blinking cursor
   ============================================= */
.cursor {
  display: inline-block;
  font-weight: 700;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* =============================================
   Closing quip — reads as a sign-off, not a heading
   ============================================= */
.closing-quip {
  color: #cc9900;
  font-size: clamp(0.9rem, 3vw, 1.3rem);
  font-weight: 700;
  margin: 0.6em 0;
  font-style: italic;
}

/* =============================================
   Divider
   ============================================= */
.divider {
  border: none;
  border-top: 2px dashed #cc9900;
  margin: 1.5rem 0;
}

/* =============================================
   Avatar + ASCII row
   ============================================= */
.avatar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid #ff8c42;
  flex-shrink: 0;
}

/* =============================================
   ASCII Art
   ============================================= */
.ascii-art {
  font-family: monospace;
  font-size: clamp(0.75rem, 2vw, 1rem);
  color: #cc9900;
  margin: 0;
  line-height: 1.4;
}

/* =============================================
   Now Playing
   ============================================= */
.now-playing {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.np-label {
  font-size: clamp(0.8rem, 2.5vw, 1rem);
  color: #cc9900;
}

.np-song {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: #ff8c42;
  font-weight: 700;
  text-decoration: none;
}

.np-song:hover { text-decoration: underline; }

.np-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.np-bars span {
  display: block;
  width: 3px;
  background: #ff8c42;
  border-radius: 1px;
  animation: bar 0.8s ease-in-out infinite alternate;
}

.np-bars span:nth-child(1) { animation-duration: 0.6s; height: 6px; }
.np-bars span:nth-child(2) { animation-duration: 0.9s; height: 10px; }
.np-bars span:nth-child(3) { animation-duration: 0.7s; height: 8px; }
.np-bars span:nth-child(4) { animation-duration: 1.1s; height: 12px; }

@keyframes bar {
  from { transform: scaleY(0.3); }
  to   { transform: scaleY(1); }
}

/* =============================================
   Visitor Counter
   ============================================= */
.visitor-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.vc-label {
  font-size: clamp(0.8rem, 2.5vw, 1rem);
  color: #cc9900;
}

.vc-number {
  font-family: monospace;
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 700;
  color: #ffb000;
  background: #1a1611;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 3px;
}

/* =============================================
   Mobile-only overrides (< 768px)
   ============================================= */
@media (max-width: 767px) {
  .bigBox {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
  }

  h1, h2, h3 { text-align: left; }
  h1 { margin: 0.6em 0 0.15em; }
  h2 { margin: 0.4em 0; }
  h3 { margin: 0.3em 0; }

  .divBox { margin-bottom: 0.8rem; }

  .cta-row {
    overflow: hidden;
    padding-bottom: 20px;
    margin-bottom: -20px;
  }

  button {
    box-shadow:
      2px 2px 0px #d4960e,
      4px 4px 0px #b87d0c,
      6px 6px 0px #9c640a,
      8px 8px 0px #8a5809,
      10px 10px 0px #764c08;
  }

  .cta-row a { margin-top: -7px; }
}

/* =============================================
   Farfetch'd Cursor Chaser (desktop only)
   ============================================= */
.cursor-chaser {
  position: absolute;
  width: 40px;
  height: auto;
  pointer-events: auto;
  cursor: pointer;
  z-index: 200;
  image-rendering: pixelated;
  margin-left: -20px;
  margin-top: -35px;
  left: -100px;
  top: -100px;
}

html {
  overflow-x: hidden;
}

/* =============================================
   Credits Footer
   ============================================= */
.credits {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #3d3228;
  text-align: center;
}

.credits p {
  font-size: 0.55rem;
  color: #8a7030;
  margin: 0.15em 0;
  font-style: italic;
}
