/* Cue Legacy: a TV sports broadcast. Studio black with fine pinstripes,
   slanted plates, broadcast green for you and gold for scores (the game's own
   palette and fonts, docs/BROADCAST_UI.md). */
:root {
  --ground: #080b0b;
  --ground-2: #0c1111;
  --panel: #101717;
  --text: #eef3f1;
  --muted: #9aaba5;
  --green: #1db86c;
  --gold: #f5c451;
  --accent: var(--green);
  --line: rgba(238, 243, 241, 0.12);
  --head-bg: rgba(8, 11, 11, 0.86);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Barlow", "Segoe UI", Roboto, sans-serif;
  --stripes: repeating-linear-gradient(135deg, rgba(255,255,255,0.028) 0 1px, transparent 1px 11px);
}
body { background: var(--ground) var(--stripes); }
.site-head nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }

.cl-tag, .cl-live, .cl-plate span {
  display: inline-block; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  transform: skewX(-12deg); padding: 3px 14px 2px;
}
.cl-tag { background: var(--green); color: #fff; font-size: var(--step--1); margin-bottom: 14px; }
.cl-tag-gold { background: var(--gold); color: #0b0f0f; }
.cl-h2 { font-size: var(--step-3); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: 0.005em; max-width: 22ch; }
.cl-text { color: var(--muted); max-width: 62ch; margin-top: 14px; font-size: var(--step-0); }

/* Hero */
.cl-hero { position: relative; overflow: hidden; padding-top: clamp(28px, 5vw, 64px); }
.cl-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; pointer-events: none;
  background: radial-gradient(closest-side, rgba(29, 184, 108, 0.22), transparent 70%);
}
.cl-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.cl-hero-copy { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.cl-appicon { width: clamp(72px, 8vw, 104px); height: auto; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 14px 34px -12px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08); }
.cl-live { background: #000; color: #fff; border: 1px solid var(--line); font-size: var(--step--1); display: inline-flex; align-items: center; gap: 10px; }
.cl-live .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(29,184,108,.7); animation: pulse 1.8s ease-out infinite; transform: skewX(12deg); }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(29,184,108,0); } 100% { box-shadow: 0 0 0 0 rgba(29,184,108,0); } }
.cl-title { font-size: clamp(3.4rem, 2rem + 7vw, 8.4rem); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 0.86; letter-spacing: -0.01em; }
.cl-plate span { background: var(--gold); color: #0b0f0f; font-size: var(--step-1); font-weight: 800; padding: 4px 18px 3px; }
.cl-lede { font-family: var(--display); font-weight: 700; font-size: var(--step-2); text-transform: uppercase; line-height: 1.1; max-width: 20ch; margin-top: 6px; }
.cl-sub { color: var(--muted); max-width: 52ch; }
.cl-device {
  margin: 0; border-radius: clamp(16px, 2.4vw, 30px); padding: clamp(6px, 1vw, 12px); background: #050707;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 40px 90px -40px rgba(29,184,108,.5), 0 0 0 1px #000;
  transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.cl-device:hover { transform: none; }
.cl-device img { border-radius: clamp(10px, 1.6vw, 20px); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* The scorebug strip */
.cl-bug { margin-top: clamp(28px, 5vw, 56px); background: #000; border-top: 3px solid var(--green); }
.cl-bug-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cl-bug-row p { padding: 16px 12px; border-left: 1px solid var(--line); display: grid; gap: 2px; }
.cl-bug-row p:first-child { border-left: 0; }
.cl-bug-row b { font-family: var(--display); font-weight: 800; font-size: var(--step-3); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.cl-bug-row span { font-size: var(--step--1); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* The news ticker */
.cl-ticker { background: var(--gold); color: #0b0f0f; overflow: hidden; white-space: nowrap; border-block: 2px solid #000; }
.cl-ticker-track { display: inline-flex; animation: ticker 48s linear infinite; }
.cl-ticker:hover .cl-ticker-track { animation-play-state: paused; }
.cl-ticker span { font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.06em; padding: 9px 22px; }
.cl-ticker span::after { content: "◆"; margin-left: 44px; font-size: 0.7em; vertical-align: 0.15em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Segments */
.cl-segment { padding-block: clamp(56px, 8vw, 112px); border-bottom: 1px solid var(--line); }

/* The six levels: a staircase of tables */
.cl-ladder { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; }
.cl-ladder li {
  position: relative; display: grid; gap: 6px; align-content: end; padding: 16px 14px; border-radius: 10px; min-height: 150px;
  background: var(--cloth); box-shadow: inset 0 0 0 7px var(--rail), inset 0 0 40px rgba(0,0,0,.45);
}
.cl-ladder li::before { content: ""; position: absolute; top: 14px; left: 50%; width: 46%; height: 26px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, var(--lamp), transparent); opacity: .9; }
.cl-ladder li:nth-child(2) { min-height: 180px; } .cl-ladder li:nth-child(3) { min-height: 210px; }
.cl-ladder li:nth-child(4) { min-height: 240px; } .cl-ladder li:nth-child(5) { min-height: 270px; } .cl-ladder li:nth-child(6) { min-height: 300px; }
.cl-level { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: var(--step-1); line-height: 1; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.cl-venue { font-size: 0.86rem; line-height: 1.3; color: rgba(255,255,255,.82); }
.t-hall { --cloth: radial-gradient(90% 70% at 50% 20%, #4f7d3c, #24381e); --rail: #4a2f1c; --lamp: rgba(255, 196, 110, .8); }
.t-club { --cloth: radial-gradient(90% 70% at 50% 20%, #2f8a4c, #164226); --rail: #6b4226; --lamp: rgba(255, 226, 170, .6); }
.t-tour { --cloth: radial-gradient(90% 70% at 50% 20%, #29a85e, #126b3a); --rail: #2a2f33; --lamp: rgba(255,255,255,.5); }
.t-tour2 { --cloth: radial-gradient(90% 70% at 50% 20%, #2bb565, #13733e); --rail: #23282c; --lamp: rgba(255,255,255,.55); }
.t-arena { --cloth: radial-gradient(90% 70% at 50% 20%, #2f6fd1, #133b80); --rail: #9aa3ad; --lamp: rgba(200, 225, 255, .6); }
.t-major { --cloth: radial-gradient(90% 70% at 50% 20%, #1e4aa8, #0a1f52); --rail: #0b0b0b; --lamp: rgba(245, 196, 81, .7); box-shadow: inset 0 0 0 7px #0b0b0b, inset 0 0 0 9px var(--gold), inset 0 0 40px rgba(0,0,0,.45) !important; }

/* Copy beside screenshots */
.cl-split-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.cl-flip .cl-split-copy { order: 2; }
.cl-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.cl-list li { padding-left: 26px; position: relative; color: #d6dfdb; }
.cl-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 12px; background: var(--green); transform: skewX(-12deg); }
.cl-shots { position: relative; display: grid; min-width: 0; }
.cl-shots img { width: 88%; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 70px -35px rgba(0,0,0,.9); aspect-ratio: 16 / 9; object-fit: cover; }
.cl-shots img + img { width: 72%; justify-self: end; margin-top: -18%; position: relative; box-shadow: 0 30px 70px -20px rgba(0,0,0,.95), 0 0 0 3px var(--ground); }

/* Tale of the tape */
.cl-tape { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(22px, 4vw, 52px); align-items: start; }
.cl-tape img { border-radius: 12px; border: 1px solid rgba(255,255,255,.08); aspect-ratio: 16 / 9; object-fit: cover; }
.cl-skills { margin: 0; display: grid; gap: 4px; }
.cl-skills div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.cl-skills dt { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gold); font-size: var(--step-1); }
.cl-skills dd { margin: 0; color: #d6dfdb; }

/* Fair and simple */
.cl-fair { margin-top: 30px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.cl-fair p { background: var(--panel); border-top: 3px solid var(--gold); padding: 18px 16px; display: grid; gap: 8px; align-content: start; color: var(--muted); font-size: 0.95rem; }
.cl-fair b { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: var(--step-1); line-height: 1.05; color: var(--text); }

/* Follow and credits */
.cl-follow { border-bottom: 0; }
.cl-follow-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.cl-follow .socials { margin-top: 18px; }
.cl-follow .socials a { display: inline-block; font-family: var(--display); font-weight: 700; text-transform: uppercase; text-decoration: none; background: var(--green); color: #fff; padding: 6px 16px; transform: skewX(-12deg); }
.cl-follow .socials-soon { margin-top: 16px; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.cl-made { background: var(--panel); padding: 22px; border-left: 3px solid var(--green); display: grid; gap: 10px; }
.cl-made h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: var(--step-1); color: var(--text); }

@media (max-width: 900px) {
  .cl-hero-grid, .cl-split-grid, .cl-tape, .cl-follow-grid { grid-template-columns: minmax(0, 1fr); }
  .cl-flip .cl-split-copy { order: 0; }
  .cl-device { transform: none; }
  .cl-bug-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cl-bug-row p:nth-child(4) { border-left: 0; }
  .cl-ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-ladder li, .cl-ladder li:nth-child(n) { min-height: 140px; }
  .cl-fair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .cl-bug-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-bug-row p:nth-child(odd) { border-left: 0; } .cl-bug-row p:nth-child(even) { border-left: 1px solid var(--line); }
  .cl-skills div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .cl-fair { grid-template-columns: minmax(0, 1fr); }
}
