/* Theme */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

:root {
  --bg: #0d0d0d;
  --text: #fff;
  --muted: #cfcfcf;
  --card: #141414;
  --line: #262626;
  --primary: #ff4d00;
  --accent: #ff8c00;
  --font: 'Inter', sans-serif
}

html {
  scroll-behavior: smooth
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
  cursor: none
}

/* Progress bar + cursor */
/* Progress bar + cursor styles removed to inherit from shared-styles.css */


/* Hero */
#hero {
  position: relative;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 1
}

.title {
  color: var(--primary);
  font-size: clamp(2.6rem, 5vw, 4.4rem)
}

#typed {
  color: var(--accent);
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  margin-top: 10px
}

#typed::after {
  content: '|';
  margin-left: .1em;
  animation: blink 1s steps(2, start) infinite
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

.handles {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap
}

.pill {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 0;
  background: #1a1a1a;
  color: var(--text);
  border: 1px solid var(--line);
  text-decoration: none
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px
}

.section-title {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 6px
}

.section-kicker {
  color: var(--muted);
  margin-bottom: 18px
}

/* Spotlight videos */
.video-grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px
}

.card {
  position: relative;
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  padding: 14px
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  color: #000;
  font-weight: 700;
  border-radius: 0;
  padding: 6px 10px;
  font-size: .8rem;
  z-index: 5
}

.ratio {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(255, 77, 0, .35);
  background: #000
}

.ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0
}

.card-title {
  margin: 10px 4px 4px;
  font-size: 1.05rem
}

.card-note {
  color: var(--muted);
  margin: 0 4px 6px
}

/* Stats */
.stats-grid {
  margin-top: 10px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

.stat {
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px;
  border-radius: 0;
  text-align: center;
  transition: all 0.3s;
}

.stat:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
  background: rgba(26, 26, 26, 0.9);
  box-shadow: 0 0 10px rgba(255, 77, 0, 0.2);
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary)
}

.stat-label {
  font-size: .9rem;
  color: var(--muted);
  margin-top: 4px
}

/* Skills Used */
.skills-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.skill-card {
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  padding: 16px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(255, 77, 0, .35);
}

.skill-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
}

.skill-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--primary);
  opacity: .95;
}

.skill-title {
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.skill-notes {
  color: var(--muted);
  line-height: 1.7;
  padding-left: 18px;
}

/* Production Workflow timeline */
.wf {
  counter-reset: step;
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.wf-step {
  position: relative;
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  padding: 14px 14px 14px 54px;
  transition: all 0.3s;
}

.wf-step:hover {
  border-color: var(--accent-color);
  background: rgba(26, 26, 26, 0.9);
  box-shadow: 0 0 10px rgba(255, 77, 0, 0.2);
}

.wf-step h4 {
  color: var(--primary);
  margin-bottom: 6px;
}

.wf-step p {
  color: var(--muted);
}

.wf-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #000;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  box-shadow: 0 0 10px rgba(255, 77, 0, .35);
}

@media (min-width: 900px) {
  .wf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* About + footer */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px
}

.about-card {
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  padding: 16px
}

.about-card h4 {
  color: var(--primary);
  margin-bottom: 8px
}

.about-card ul {
  padding-left: 18px;
  line-height: 1.8
}

.back-btn {
  margin-top: 18px
}

footer {
  text-align: center;
  padding: 24px 0;
  color: var(--text);
  opacity: .95
}

/* back-to-top: inherits from shared-styles.css */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s, transform .6s
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0)
}

/* Responsive */
@media (max-width:1100px) {
  .video-grid.two {
    grid-template-columns: 1fr
  }

  .about-grid {
    grid-template-columns: 1fr
  }
}

@media (max-width:480px) {
  .btn {
    padding: 10px 14px;
    font-size: .95rem
  }

  .pill {
    padding: 7px 12px
  }
}

/* ===== Buttons: black → gold gradient on hover ===== */
.btn {
  --gold: linear-gradient(45deg, var(--primary), var(--accent));
  --ring: rgba(255, 77, 0, .55);

  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .56rem .95rem;
  border-radius: 0;
  font-weight: 700;
  letter-spacing: .2px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: #0f0f0f;
  /* black base */
  color: #fff;
  /* white text on black */
  box-shadow: none;
  transform: translateY(0);
  transition:
    background .25s ease, color .25s ease, border-color .25s ease,
    box-shadow .25s ease, transform .2s ease;
}

.btn.small {
  padding: .52rem .9rem;
}

.btn .icon {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  fill: currentColor;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

/* Modifier: turn gold on hover/focus */
.btn.gold-hover:hover,
.btn.gold-hover:focus-visible {
  background: var(--gold);
  color: #000;
  /* black text on gold */
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(255, 77, 0, .28), 0 1px 0 rgba(255, 255, 255, .05) inset;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Keep things chill for users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none
  }
}

/* Action row spacing */
.cheat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 6px
}

/* Action rows */
.cheat-actions,
.exp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

/* Respect reduced motion preferences (keep it chill) */
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* Cheat cards */
.cheat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px
}

.cheat {
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  padding: 16px;
  transition: all 0.3s;
}

.cheat:hover {
  border-color: var(--accent-color);
  background: rgba(26, 26, 26, 0.9);
  box-shadow: 0 0 10px rgba(255, 77, 0, 0.2);
}

.cheat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px
}

.cheat h4 {
  color: var(--primary);
  font-size: 1.1rem
}

.cheat-line {
  color: #fff;
  margin: 4px 0 8px
}

.cheat-bullets {
  color: var(--muted);
  padding-left: 18px;
  line-height: 1.7;
  margin-bottom: 12px
}

.pill.small {
  padding: 6px 10px;
  font-size: .8rem;
  border-radius: 0
}

.ghost {
  background: #1a1a1a;
  border: 1px solid var(--line)
}

/* Channel moments */
.moments-wrap {
  display: grid;
  grid-template-columns: minmax(280px, 520px) 1fr;
  gap: 18px;
  align-items: start
}

.mom-side {
  display: flex;
  flex-direction: column;
  gap: 10px
}

@media (max-width:1100px) {
  .moments-wrap {
    grid-template-columns: 1fr
  }
}

/* optional: make the solid button feel primary and ghost feel secondary */
.cheat-actions .btn.small {
  margin-top: 6px;
}

/* Chessboard Integration */
#board-traxler,
#board-scotch {
  width: 100%;
  max-width: 400px;
  /* Constrain max width for desktop */
  margin: 15px auto;
  /* Center visually */
  border: 2px solid var(--primary);
  /* Gold border to match theme */
  box-shadow: 0 0 20px rgba(255, 77, 0, 0.2);
  /* Subtle glow */
  border-radius: 0;
  /* Slight rounding */
}

/* Ensure pieces are visible on top of any overlapping elements */
.chessboard-63f37 img {
  z-index: 50 !important;
}

/* Responsive adjustment for mobile */
@media (max-width: 480px) {

  #board-traxler,
  #board-scotch {
    max-width: 100%;
  }
}