/* TubeTune retro art shell — decorative images + real HTML controls.
   Loaded after workshop.css. Version 1. */

/* ---------- hero header ---------- */
.tt-hero {
  position: relative;
  margin: 0;
  background: #2a1650 url('header-bg.webp') center / cover no-repeat;
  border-bottom: 4px solid #14081f;
  overflow: hidden;
}
.tt-hero-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.tt-hero-logo {
  width: clamp(84px, 22vw, 132px);
  height: auto;
  filter: drop-shadow(4px 4px 0 rgba(0,0,0,.55));
  flex: none;
}
.tt-hero-titlewrap { text-align: center; }
.tt-graffiti {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(38px, 11vw, 88px);
  line-height: 1.05;
  background: linear-gradient(180deg, #ff6ec7 5%, #ffe14d 38%, #4dd2ff 72%, #7dff5e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 2px #14081f;
  filter: drop-shadow(4px 4px 0 #14081f);
  letter-spacing: 2px;
}
.tt-tagline-bar {
  display: inline-block;
  margin-top: 10px;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(9px, 2.6vw, 14px);
  color: #ffe14d;
  background: #14081f;
  padding: 10px 14px;
  border: 3px solid #ffe14d;
  box-shadow: 4px 4px 0 #000;
}
.tt-uc-row { position: relative; text-align: center; padding: 2px 12px 16px; }
.tt-uc {
  display: inline-block;
  padding: 7px;
  background: repeating-linear-gradient(45deg, #14081f 0 12px, #ffb300 12px 24px);
  border: 3px solid #14081f;
  transform: rotate(-2deg);
  box-shadow: 4px 4px 0 #000;
}
.tt-uc span {
  display: inline-block;
  background: #ffb300;
  color: #14081f;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(9px, 2.8vw, 13px);
  padding: 9px 15px;
  border: 2px solid #14081f;
  white-space: nowrap;
}
.tt-hero-nav {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 12px 18px;
}
.tt-hero-nav a {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: #14081f;
  background: #4dd2ff;
  border: 3px solid #14081f;
  padding: 10px 14px;
  text-decoration: none;
  box-shadow: 4px 4px 0 #000;
}
.tt-hero-nav a:active { transform: translate(4px,4px); box-shadow: none; }

/* ---------- TV stage: white with multicolored stars (like the mockup) ---------- */
.tt-stage {
  position: relative;
  background: #ffffff;
  padding: 26px 12px 18px;
  border-bottom: 4px solid #14081f;
  overflow: hidden;
}
.tt-starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.tt-starfield span {
  position: absolute;
  line-height: 1;
  text-shadow: 2px 2px 0 rgba(20,8,31,.12);
}
.tt-tv {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.tt-tv-img { width: 100%; height: auto; display: block; }
/* screen overlay — blends into the blank black screen */
.tt-screen {
  position: absolute;
  left: 6.5%; top: 20%;
  width: 86%; height: 47.5%;
  min-height: 0;
  padding: 0;
  border: none;
  background: #000;
  border-radius: 3% / 5%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.tt-screen #screenPrompt {
  text-align: center;
  padding: 12px;
  font-family: 'Press Start 2P', monospace;
  color: #7dff5e;
}
.tt-screen #screenPrompt .tt-drop-title {
  font-size: clamp(14px, 4.5vw, 26px);
  line-height: 1.4;
  margin: 0 0 10px;
  text-shadow: 2px 2px 0 #0a3d12;
}
.tt-screen #screenPrompt .tt-drop-sub {
  font-family: Verdana, sans-serif;
  font-size: clamp(10px, 3vw, 13px);
  color: #4dd2ff;
  font-weight: bold;
  margin: 0;
}
.tt-screen #screenThumb,
.tt-screen #screenVideo {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
/* VCR slot = a real visible button filling the tape slot */
.tt-slotzone {
  position: absolute;
  left: 24%; top: 78.5%;
  width: 56%; height: 10.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
  background: rgba(8, 8, 8, .78);
  border: 3px dashed #7dff5e;
  border-radius: 8px;
  color: #7dff5e;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(8px, 2.8vw, 14px);
  text-shadow: 0 0 8px rgba(125,255,94,.7);
  cursor: pointer;
}
.tt-slotzone:active { background: rgba(125,255,94,.28); }
/* VCR clock display — live timer (sized to fit the tiny bezel) */
.tt-vcr-display {
  position: absolute;
  left: 10%; top: 83.8%;
  width: 9.5%; height: 3.2%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#vcrTimer {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(6px, 1.7vw, 10px);
  color: #39ff5e;
  text-shadow: 0 0 6px rgba(57,255,94,.8);
  letter-spacing: 0;
  white-space: nowrap;
  line-height: 1;
}
#vcrTimer.blink { animation: tt-blink 1.1s steps(2, start) infinite; }
@keyframes tt-blink { to { visibility: hidden; } }
.tt-badge-row { text-align: center; margin-top: 16px; }

/* 4-step how-it-works strip */
.tt-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 16px auto 4px;
  padding: 0 12px;
  max-width: 680px;
  font-family: Verdana, sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: #14081f;
}
.tt-steps b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #ffe14d;
  color: #14081f;
  border: 2px solid #14081f;
  border-radius: 50%;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  margin-right: 7px;
  vertical-align: -6px;
}

/* ---------- toolbox ---------- */
.tt-toolbox {
  background: #2a1650 url('toolbox-bg.png') 0 0 / 100% 100% no-repeat;
  padding: 26px 12px 34px;
  text-align: center;
  border-bottom: 4px solid #14081f;
  align-items: center;
}
.tt-toolbox .tt-burst {
  font-size: clamp(14px, 4vw, 20px);
  background: #ff6ec7;
  color: #fff;
  -webkit-text-stroke: 1px #14081f;
  margin-bottom: 22px;
}
.tt-pills {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}
/* checkerboard ring lives on the wrapper — never over the pill face */
.tt-pillwrap {
  width: min(94%, 400px);
  border-radius: 999px;
  padding: 9px;
  background: repeating-conic-gradient(#14081f 0 25%, #fff 0 50%) 0 0 / 18px 18px;
  border: 3px solid #14081f;
  box-shadow: 5px 5px 0 #000;
  cursor: pointer;
  transition: transform .12s;
}
.tt-pillwrap:active { transform: translate(5px,5px); box-shadow: none; }
.tt-pillwrap.active { outline: 4px dashed #ffe14d; outline-offset: 6px; }
.tt-pill {
  width: 100%;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(10px, 3.2vw, 14px);
  padding: 18px 16px;
  border: 4px solid #14081f;
  border-radius: 999px;
  color: #14081f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tt-pill i { font-style: normal; font-size: 1.3em; }
.p-yellow { background: #ffe14d; }
.p-cyan { background: #4dd2ff; }
.p-green { background: #7dff5e; }
.p-pink { background: #ff6ec7; }
.p-orange { background: #ff9a3d; }
.p-blue { background: #4da6ff; }
.p-lime { background: #b6ff4d; }

/* ---------- workbench ---------- */
.tt-workbench {
  background: #1d0f38;
  padding: 26px 14px 30px;
  border-bottom: 4px solid #14081f;
}
.tt-workbench .tt-page-title { color: #ffe14d; text-align: center; }
.tt-workbench .tt-page-sub { color: #e8ddff; text-align: center; }
.tt-workbench .tt-hint { color: #cfc3ee; }
.tt-workbench .tt-status-line { color: #ffe14d; text-align: center; }
.tt-workbench .tt-status-detail { color: #e8ddff; text-align: center; }
.tt-workbench .tt-field label { color: #ffe14d; }
#workbench { margin: 6px 0 4px; }
#workbench .tt-meter-wrap { max-width: 520px; margin: 14px auto; }

/* ---------- links bar / saves / footer ---------- */
.tt-linksbar {
  background: #4dd2ff;
  border-top: 4px solid #14081f;
  border-bottom: 4px solid #14081f;
  padding: 14px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(8px, 2.6vw, 12px);
  color: #14081f;
}
.tt-linksbar a { color: #14081f; text-decoration: underline; }
.tt-saverow {
  background: #2a1650;
  padding: 16px;
  text-align: center;
  border-bottom: 4px solid #14081f;
}
.tt-saverow .tt-counter {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(10px, 3.4vw, 16px);
  color: #7dff5e;
  background: #000;
  border: 4px solid #7dff5e;
  padding: 12px 18px;
  box-shadow: 4px 4px 0 #000;
}
.tt-footer .tt-marquee {
  overflow: hidden;
  white-space: nowrap;
  background: #ff6ec7;
  border-top: 4px solid #14081f;
  padding: 10px 0;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: #14081f;
}
.tt-footer .tt-marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: tt-marquee 18s linear infinite;
}
@keyframes tt-marquee { to { transform: translateX(-100%); } }

/* rainbow pixel cursor while the engine works lives in workshop.css
   (body.tt-working) — do not override it here. */

@media (min-width: 700px) {
  .tt-pills { gap: 22px; }
  .tt-stage { padding: 34px 20px 24px; }
}
