/* CH 11 · Fim · test pattern.
   End of broadcast: colour bars, a pluge strip, a calibration disc that holds the contact links,
   the credits, and a button that switches the tube off (the collapse is in base.css). */

.ch-fim { padding: clamp(56px, 8vw, 100px) var(--gutter) 24px; background: #000; color: #fff; }
.testcard {
  position: relative; max-width: 1100px; margin: 0 auto; aspect-ratio: 16 / 10; overflow: hidden;
  display: grid; place-items: center; background: #1a1a1a;
}
.tc-bars {
  position: absolute; left: 0; right: 0; top: 0; height: 64%;
  background: linear-gradient(90deg, #BFBFBF 0 14.3%, #BFBF00 14.3% 28.6%, #00BFBF 28.6% 42.9%, #00BF00 42.9% 57.1%, #BF00BF 57.1% 71.4%, #BF0000 71.4% 85.7%, #0000BF 85.7%);
}
.tc-bars::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -9%; height: 9%;
  background: linear-gradient(90deg, #0000BF 0 14.3%, #131313 14.3% 28.6%, #BF00BF 28.6% 42.9%, #131313 42.9% 57.1%, #00BFBF 57.1% 71.4%, #131313 71.4% 85.7%, #BFBFBF 85.7%);
}
.tc-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 27%; display: grid; grid-template-columns: 1.25fr 1.25fr 1.25fr 1.6fr 0.45fr 0.45fr 0.45fr; }
.tc-bottom span:nth-child(1) { background: #00214C; }
.tc-bottom span:nth-child(2) { background: #FFFFFF; }
.tc-bottom span:nth-child(3) { background: #32006A; }
.tc-bottom span:nth-child(4) { background: #131313; }
.tc-bottom span:nth-child(5) { background: #090909; }
.tc-bottom span:nth-child(6) { background: #131313; }
.tc-bottom span:nth-child(7) { background: #1D1D1D; }
.testcard::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, 0.18) 2px 3px), radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.5));
}

.tc-center {
  position: relative; z-index: 2; width: min(600px, 70%); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: 12px; padding: 8%; text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px) 0 0 / 100% 40px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px) 0 0 / 40px 100%,
    #101010;
  border: 6px solid #fff; box-shadow: 0 0 0 5px #000, 0 0 0 9px #fff;
}
.tc-disc { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 4px #101010, 0 0 0 6px #fff; }
.tc-disc svg { width: 56px; fill: #000; }
.tc-title { font-family: var(--f-osd); font-weight: 400; font-size: clamp(44px, 6vw, 84px); line-height: 0.9; letter-spacing: 0.06em; text-transform: uppercase; text-shadow: 3px 0 0 rgba(255, 0, 80, 0.6), -3px 0 0 rgba(0, 200, 255, 0.6); }
.tc-lead { max-width: 30ch; font-size: 16px; line-height: 1.4; color: rgba(255, 255, 255, 0.85); }
.tc-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 420px; }
.tc-links a {
  display: inline-block; padding: 5px 14px 3px; background: #fff; color: #000; text-decoration: none;
  font-family: var(--f-osd); font-size: 24px; line-height: 1; letter-spacing: 0.04em;
}
.tc-links a:hover, .tc-links a:focus-visible { background: #000; color: var(--phosphor); outline: 2px solid var(--phosphor); outline-offset: 0; }
.seed-tc { left: 63%; bottom: 8%; z-index: 4; }
.seed-tc svg { fill: #2a2a2a; }

.credits { max-width: 760px; margin: 40px auto 10px; display: grid; justify-items: center; gap: 10px; text-align: center; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.78); }
.credits-title { font-family: var(--f-osd); font-size: 30px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--phosphor); text-shadow: 0 0 6px rgba(124, 255, 138, 0.6); }
.credits-stats { font-family: var(--f-osd); font-size: 21px; color: #fff; }
.tc-off { margin-top: 8px; padding: 8px 16px; border: 2px solid rgba(255, 255, 255, 0.6); background: none; cursor: pointer; font-family: var(--f-osd); font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; }
.tc-off:hover { border-color: var(--phosphor); color: var(--phosphor); }

.ch-fim .placa { margin-top: 18px; }
.ch-fim > .placa { margin-right: max(var(--gutter), calc((100% - 1100px) / 2)); }
.ch-fim .placa-gralha { fill: #BFBF00; filter: drop-shadow(3px 0 0 #00BFBF) drop-shadow(-3px 0 0 #BF00BF); }

@media (max-width: 760px) {
  .testcard { aspect-ratio: auto; min-height: 640px; }
  .tc-center { width: 92%; aspect-ratio: auto; border-radius: 28px; padding: 30px 18px; }
}
