:root {
  --bg-1: #120a26;
  --bg-2: #241255;
  --panel: rgba(16, 8, 42, 0.84);
  --panel-2: rgba(25, 12, 58, 0.94);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f7f0e8;
  --muted: #d8cde6;
  --cyan: #63d9ff;
  --peach: #ffb276;
  --pink: #ff77a9;
  --lav: #b792ff;
  --shadow: 0 24px 60px rgba(0,0,0,0.42);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 32%, rgba(255,119,169,0.22), transparent 25%),
    radial-gradient(circle at 88% 45%, rgba(99,217,255,0.14), transparent 28%),
    linear-gradient(90deg, #16103a 0%, #28135c 52%, #172f52 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(255,255,255,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.35) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
}

.page-glow {
  position: fixed;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  pointer-events: none;
}
.glow-left {
  left: -10rem;
  top: 7rem;
  background: rgba(255, 130, 162, 0.65);
}
.glow-right {
  right: -8rem;
  top: 10rem;
  background: rgba(99, 217, 255, 0.48);
}

.shell {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 14px;
  position: relative;
  z-index: 1;
}

.panel {
  width: min(1290px, calc(100vw - 28px));
  height: min(830px, calc(100vh - 28px));
  border-radius: 30px;
  padding: 20px 22px 18px;
  background:
    linear-gradient(180deg, rgba(28, 14, 66, 0.96), rgba(11, 7, 34, 0.96));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 0 0 1px rgba(120,100,255,0.18), var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
}

.kicker {
  font-size: 14px;
  letter-spacing: 0.32em;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 4px;
}

.brand {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #f6f2eb;
  text-shadow: 0 0 22px rgba(99,217,255,0.18);
}

.top-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pill {
  border-radius: 999px;
  padding: 13px 19px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #ddd2ea;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.03em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.22);
}
.pill-primary {
  background: linear-gradient(135deg, var(--peach), var(--pink));
  color: #1b1231;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(255,119,169,0.24);
}

.layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  min-height: 0;
}

.left-col,
.right-col {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.stream-shell {
  background: rgba(8, 6, 34, 0.76);
  border-radius: 28px;
  border: 1px solid rgba(102, 86, 189, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
  padding: 14px;
}

.stream-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 14px;
  color: #beb0d3;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.traffic {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.traffic span {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffb985, #ff7c9f);
  box-shadow: 0 0 10px rgba(255,124,159,0.35);
}

.stream-label {
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stream-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #0b0821;
  border: 1px solid rgba(255,255,255,0.10);
  min-height: 270px;
  aspect-ratio: 16 / 9;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 10px 32px rgba(0,0,0,0.26);
}

.twitch-player,
.twitch-player iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.stream-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(255,179,118,0.16), transparent 35%),
    linear-gradient(180deg, rgba(26,16,65,0.98), rgba(8,6,25,0.98));
}
.stream-fallback.hidden {
  display: none;
}
.fallback-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  color: var(--peach);
}
.stream-fallback p {
  margin: 0 0 14px;
  max-width: 38ch;
  color: var(--muted);
}
.stream-fallback a {
  display: inline-block;
  margin-top: 2px;
  color: var(--cyan);
  font-weight: 700;
}

.copy-block {
  padding: 8px 8px 0;
}

.copy-block h1 {
  margin: 14px 0 12px;
  font-size: clamp(4rem, 6vw, 6.3rem);
  line-height: 0.88;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--peach);
}
.copy-block h1 span {
  background: linear-gradient(90deg, #ff87ad 0%, #ba9cff 55%, #63d9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.copy-block p {
  margin: 0;
  color: #e0d4eb;
  font-size: 16px;
  line-height: 1.72;
  max-width: 55ch;
}

.cta-row {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.meta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.meta-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  min-height: 86px;
}
.meta-card span {
  display: block;
  color: var(--cyan);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}
.meta-card strong {
  font-size: 17px;
  line-height: 1.2;
}

.hero-card {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 28px;
  padding: 24px 24px 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 24%, rgba(255,185,133,0.12), transparent 22%),
    linear-gradient(180deg, #552b68 0%, #2a1057 42%, #110b2f 100%);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-sun {
  position: absolute;
  width: 260px;
  height: 260px;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle at center, #f7c793 0%, #ffb178 48%, #ff8a9a 100%);
  box-shadow: 0 0 65px rgba(255,154,128,0.38);
}
.hero-sun::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    180deg,
    rgba(255,255,255,0.16),
    rgba(255,255,255,0.16) 4px,
    transparent 4px,
    transparent 12px
  );
  mix-blend-mode: soft-light;
}

.hero-tag {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #63e4ff;
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 800;
}

.hero-title {
  position: relative;
  z-index: 2;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(4rem, 6vw, 6.4rem);
  line-height: 0.84;
  letter-spacing: 0.03em;
  text-align: center;
  margin-bottom: 10px;
  color: #faf4ea;
  text-shadow:
    0 2px 0 rgba(255,255,255,0.12),
    0 12px 28px rgba(0,0,0,0.48);
}

.hero-sub {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #e9dbe7;
  font-size: 13px;
  letter-spacing: 0.28em;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-grid {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -4px;
  height: 108px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(99,217,255,0.2) 14%, rgba(99,217,255,0.03) 16%, transparent 18%),
    repeating-linear-gradient(90deg, rgba(99,217,255,0.34) 0 2px, transparent 2px 56px),
    repeating-linear-gradient(180deg, rgba(99,217,255,0.30) 0 2px, transparent 2px 34px);
  transform: perspective(340px) rotateX(72deg);
  transform-origin: bottom;
}

.projects-card {
  margin-top: 16px;
  border-radius: 28px;
  padding: 18px 18px 16px;
  background: rgba(13, 8, 37, 0.94);
  border: 1px solid rgba(255,255,255,0.07);
}

.projects-heading {
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  color: #f8f1e6;
  font-size: 15px;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.project-tile {
  position: relative;
  border-radius: 18px;
  padding: 18px 16px 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.09);
  min-height: 136px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.project-tile:hover {
  transform: translateY(-2px);
}
.project-kicker {
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 800;
  margin-bottom: 8px;
}
.project-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  line-height: 1.05;
  margin-bottom: 10px;
  color: #f9f2e8;
}
.project-desc {
  color: #d2c6df;
  font-size: 13px;
  line-height: 1.5;
}

.perplexing:hover {
  border-color: rgba(99,217,255,0.42);
  box-shadow: 0 0 24px rgba(99,217,255,0.18);
}
.boardwalk:hover {
  border-color: rgba(255,119,169,0.42);
  box-shadow: 0 0 24px rgba(255,119,169,0.18);
}
.curve:hover {
  border-color: rgba(255,178,118,0.42);
  box-shadow: 0 0 24px rgba(255,178,118,0.18);
}

@media (max-width: 1180px) {
  body {
    overflow: auto;
  }

  .panel {
    height: auto;
    min-height: calc(100vh - 28px);
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 440px;
  }
}

@media (max-width: 760px) {
  .shell {
    padding: 10px;
  }

  .panel {
    width: calc(100vw - 20px);
    min-height: calc(100vh - 20px);
    padding: 16px;
    border-radius: 24px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions .pill {
    flex: 1 1 auto;
    text-align: center;
  }

  .stream-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .meta-row,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero-sun {
    width: 210px;
    height: 210px;
    top: 32px;
  }

  .hero-tag {
    top: 260px;
    font-size: 11px;
  }

  .hero-title {
    font-size: 3.25rem;
  }

  .hero-sub,
  .projects-heading {
    letter-spacing: 0.12em;
  }
}
