:root {
  --black: #0a0a0a;
  --white: #f0efe9;
  --card: #141414;
  --card2: #1c1c1c;
  --border: #242424;
  --muted: #666;
  --accent: #c8ff00;
  --p1: #c8ff00;
  --p2: #00d4ff;
  --p3: #ff6b35;
}

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

body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
}

.hdr {
  padding: 2.5rem 2rem 2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hdr::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(200, 255, 0, .06) 0%, transparent 65%);
  pointer-events: none;
}

.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: .65rem;
  letter-spacing: .2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: .6rem;
}

h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: .9;
  letter-spacing: .02em;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.2rem;
}

.pill {
  font-family: 'DM Mono', monospace;
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
}

.main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.slabel {
  font-family: 'DM Mono', monospace;
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .8rem;
}

.ptabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.ptab {
  flex: 1;
  padding: .9rem .5rem;
  background: none;
  border: none;
  border-right: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  font-family: 'DM Mono', monospace;
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .15s, color .15s;
  line-height: 1.4;
}

.ptab:last-child { border-right: none; }

.ptab .tn {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  margin-top: .15rem;
  letter-spacing: 0;
  text-transform: none;
}

.ptab.a1 { background: var(--p1); color: #000; }
.ptab.a2 { background: var(--p2); color: #000; }
.ptab.a3 { background: var(--p3); color: #000; }

.ppanel { display: none; }
.ppanel.vis { display: block; }

.pintro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.pintro h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: .4rem;
}

.pintro p {
  font-size: .82rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.6;
}

.pbadge {
  font-family: 'DM Mono', monospace;
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem .8rem;
  border-radius: 2px;
  color: #000;
  font-weight: 500;
  white-space: nowrap;
  align-self: flex-start;
}

.b1 { background: var(--p1); }
.b2 { background: var(--p2); }
.b3 { background: var(--p3); }

.dgrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .5rem;
  margin-bottom: 1.2rem;
}

.dc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .65rem .3rem .5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s;
  user-select: none;
}

.dc:hover { border-color: #444; }
.dc.s1 { border-color: var(--p1); }
.dc.s2 { border-color: var(--p2); }
.dc.s3 { border-color: var(--p3); }

.dcn {
  font-family: 'DM Mono', monospace;
  font-size: .55rem;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: .3rem;
}

.dct {
  font-size: .68rem;
  font-weight: 500;
  line-height: 1.3;
}

.ts .dct { color: var(--p1); }
.tc .dct { color: var(--p2); }
.tm .dct { color: #888; }
.tt .dct { color: var(--p3); }
.tr .dct { color: #444; }

.dcd {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin: .35rem auto 0;
}

.ts .dcd { background: var(--p1); }
.tc .dcd { background: var(--p2); }
.tm .dcd { background: #555; }
.tt .dcd { background: var(--p3); }
.tr .dcd { background: #2a2a2a; }

.wbox {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.4rem;
  margin-bottom: 2rem;
  min-height: 80px;
}

.wbox-prompt {
  color: var(--muted);
  font-size: .82rem;
  font-style: italic;
}

.wbox-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: .2rem;
}

.wbox-sub {
  font-family: 'DM Mono', monospace;
  font-size: .6rem;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.ex-row {
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
}

.ex-row:last-child { border-bottom: none; }

.ex-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.ex-left {
  flex: 1;
  cursor: pointer;
}

.ex-name {
  font-weight: 500;
  font-size: .9rem;
}

.ex-note {
  font-size: .73rem;
  color: var(--muted);
  margin-top: .15rem;
  line-height: 1.4;
}

.ex-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .35rem;
  flex-shrink: 0;
}

.ex-sets {
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  white-space: nowrap;
}

.sc1 { color: var(--p1); }
.sc2 { color: var(--p2); }
.sc3 { color: var(--p3); }

.ex-btn {
  font-family: 'DM Mono', monospace;
  font-size: .55rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: .2rem .5rem;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, color .15s;
}

.ex-btn:hover {
  border-color: #555;
  color: var(--white);
}

.ex-btn.open {
  color: var(--accent);
  border-color: var(--accent);
}

.ex-guide {
  display: none;
  margin-top: .9rem;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.ex-guide.vis { display: block; }

.guide-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.gtab {
  flex: 1;
  padding: .55rem .5rem;
  background: none;
  border: none;
  border-right: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  font-family: 'DM Mono', monospace;
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .12s, color .12s;
}

.gtab:last-child { border-right: none; }
.gtab.ga { background: rgba(200, 255, 0, .05); color: var(--accent); }

.guide-pane {
  display: none;
  padding: 1rem;
}

.guide-pane.gvis { display: block; }

.cue-list { list-style: none; }

.cue-list li {
  font-size: .8rem;
  color: #ccc;
  line-height: 1.65;
  padding: .18rem 0 .18rem 1.2rem;
  position: relative;
}

.cue-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: .7rem;
  top: .22rem;
}

.mistake-list li::before { color: var(--p3); }

.no-mistakes {
  color: var(--muted);
  font-style: italic;
}

.vid-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  margin-top: .25rem;
}

.vid-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.no-vid {
  font-size: .78rem;
  color: var(--muted);
  font-style: italic;
  padding: .25rem 0;
}

.tbar {
  background: var(--border);
  height: 2px;
  border-radius: 1px;
  overflow: hidden;
  margin-top: 1.2rem;
}

.tbar-fill {
  height: 100%;
  border-radius: 1px;
  width: 0;
  transition: width .5s ease;
}

.f1 { background: var(--p1); }
.f2 { background: var(--p2); }
.f3 { background: var(--p3); }

.tbar-lbl {
  font-family: 'DM Mono', monospace;
  font-size: .6rem;
  color: var(--muted);
  text-align: right;
  margin-top: .3rem;
}

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  margin-bottom: 2rem;
}

.principle {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.1rem;
}

.pnum {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: .25rem;
}

.principle h4 {
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: .3rem;
}

.principle p {
  font-size: .76rem;
  color: var(--muted);
  line-height: 1.55;
}

.tstats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem;
  margin-bottom: 1.2rem;
}

.sbox {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .8rem 1rem;
}

.sval {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

.slbl2 {
  font-family: 'DM Mono', monospace;
  font-size: .55rem;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: .2rem;
}

.tgrid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: .4rem;
  margin-bottom: .4rem;
}

.tdot {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--border);
  cursor: pointer;
  transition: background .12s, transform .1s;
}

.tdot:hover { transform: scale(1.15); }
.tdot.d1 { background: var(--p1); }
.tdot.d2 { background: var(--p2); }
.tdot.d3 { background: var(--p3); }

.thint {
  font-size: .72rem;
  color: var(--muted);
  margin-top: .6rem;
}

.note-box {
  background: rgba(200, 255, 0, .03);
  border: 1px solid rgba(200, 255, 0, .12);
  border-radius: 4px;
  padding: .9rem 1.1rem;
  margin-bottom: 2rem;
  font-size: .8rem;
  color: #aaa;
  line-height: 1.6;
}

.note-box strong {
  color: var(--accent);
  font-weight: 500;
}

.spacer { margin-top: 2rem; }

@media (max-width: 580px) {
  .dgrid { grid-template-columns: repeat(4, 1fr); }
  .principles { grid-template-columns: 1fr; }
  .tstats { grid-template-columns: repeat(2, 1fr); }
  .tgrid { grid-template-columns: repeat(6, 1fr); }
  .ptabs { flex-direction: column; }
  .ptab { border-right: none; border-bottom: 1px solid var(--border); }
  .ptab:last-child { border-bottom: none; }
}