.training-tv {
  background: linear-gradient(100deg, #170b0c9e, #170b0c43 62%, #170b0c80),
    var(--check-in-room-art) center 55% / cover no-repeat #231316;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.training-tv.has-class-artwork {
  --tv-artwork-color: #737778;
  --tv-artwork-shade: color-mix(in srgb, var(--tv-artwork-color) 39%, #101415);
  --tv-artwork-deep: color-mix(in srgb, var(--tv-artwork-color) 18%, #090c0e);
  --tv-artwork-highlight: color-mix(in srgb, var(--tv-artwork-color) 54%, white);
  --tv-artwork-outline: color-mix(in srgb, var(--tv-artwork-color) 56%, transparent);
  background: var(--tv-artwork-deep);
}
.training-tv .tv-close {
  position: fixed;
  z-index: 2;
  inset-block-start: clamp(.55rem, 1.6vh, 1rem);
  inset-inline-end: clamp(.55rem, 1.6vw, 1.2rem);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #ffffffb8;
  font: 1.75rem/1 system-ui, sans-serif;
  text-decoration: none;
}
.training-tv .tv-close:is(:hover, :focus-visible) { color: #fff; }
.tv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(.75rem, 1.8vh, 1.7rem) 4vw;
  padding-inline-end: max(4vw, 4.75rem);
  background: linear-gradient(180deg, #190b0fa1, #190b0f36);
  border-bottom: 1px solid #efdadd2b;
}
.tv-header img { display: block; object-fit: contain; object-position: left; width: clamp(9rem, 18vw, 17rem); height: auto; }
.tv-header img, .tv-general-logo, .tv-card-brand { filter: brightness(0) invert(1); }
.training-tv .tv-header .attendance-button.secondary {
  background: #38191cdb;
  border-color: #f0ced45c;
  color: #fff;
}
.training-tv .tv-header .attendance-button.secondary:hover { background: #63222add; }
.has-class-artwork .tv-header {
  background: linear-gradient(110deg, var(--tv-artwork-shade), var(--tv-artwork-deep));
  border-color: var(--tv-artwork-outline);
}
.training-tv.has-class-artwork .tv-header .attendance-button.secondary {
  background: color-mix(in srgb, var(--tv-artwork-color) 22%, var(--tv-artwork-deep));
  border-color: var(--tv-artwork-outline);
  color: #fff;
}
.training-tv.has-class-artwork .tv-header .attendance-button.secondary:hover {
  background: color-mix(in srgb, var(--tv-artwork-color) 36%, var(--tv-artwork-deep));
  border-color: var(--tv-artwork-highlight);
}
.training-tv.has-class-artwork :focus-visible { outline-color: var(--tv-artwork-highlight); }
.tv-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 1 1 auto;
  display: grid;
  align-items: center;
  padding: clamp(1.3rem, 4vw, 4.5rem) 4vw;
  box-shadow: inset 0 -.46rem var(--kw-red);
}
.tv-details {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .85fr);
  align-items: center;
  gap: 3vw;
}
.tv-details:has(.tv-code[hidden]) { grid-template-columns: minmax(0, 1fr); }
.tv-stage.has-artwork {
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .9fr);
  gap: clamp(1.5rem, 4vw, 5rem);
  padding-block: clamp(1rem, 2.6vh, 3rem);
  background: radial-gradient(ellipse at 12% 68%, var(--tv-artwork-shade), var(--tv-artwork-deep) 82%);
  box-shadow: none;
}
.tv-stage.has-artwork::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(105deg,
    color-mix(in srgb, var(--tv-artwork-shade) 36%, transparent),
    color-mix(in srgb, var(--tv-artwork-deep) 92%, transparent) 62%,
    var(--tv-artwork-deep));
}
.tv-backdrop {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  filter: blur(48px) saturate(1.12);
  opacity: .65;
}
.tv-stage.has-artwork .tv-details {
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-items: center;
  gap: 0;
}
.tv-stage.has-artwork .tv-intro { gap: 0; text-align: center; }
.tv-stage.has-artwork :is(.tv-calendar, h1, .tv-time),
.tv-stage.has-artwork[data-check-in-state="open"] .tv-state {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.tv-intro { display: grid; gap: clamp(.55rem, 1.4vw, 1.35rem); overflow-wrap: anywhere; }
.tv-intro h1 { font-size: clamp(2rem, 5vw, 5.9rem); line-height: 1.02; }
.tv-calendar { font-size: clamp(.94rem, 1.65vw, 1.6rem); font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.tv-time { font-size: clamp(1.08rem, 2.1vw, 2.4rem); color: #f5e8e8; }
.tv-state { font-size: clamp(.94rem, 1.65vw, 1.6rem); color: #ded1d2; }
.tv-time:empty, .tv-state:empty { display: none; }
.tv-stage.has-artwork .tv-state { color: color-mix(in srgb, var(--tv-artwork-color) 32%, white); }
.tv-stage.has-artwork:not([data-check-in-state="open"]) .tv-state { margin-block-end: 1rem; }
.tv-flyer {
  min-width: 0;
  margin: 0;
  display: grid;
  justify-items: center;
}
.tv-flyer img {
  max-width: 100%;
  max-height: 79vh;
  display: block;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 16px 48px #10101388;
}
.tv-stage.has-artwork .tv-flyer img { outline: 1px solid var(--tv-artwork-outline); }
.tv-code {
  justify-self: end;
  width: min(100%, 41vh, 31rem);
  padding: clamp(.36rem, 1vw, .8rem);
  background: #fff;
  color: #231f20;
  border-radius: 12px;
  text-align: center;
}
.tv-code img { display: block; width: 100%; height: auto; }
.tv-code p { padding: 0 .5rem .6rem; font-size: clamp(1rem, 2vw, 2.05rem); font-weight: 800; }
.tv-general-logo, .tv-scan-banner { display: none; }
.tv-stage:where(:not(.has-artwork, .is-class-picker)) .tv-intro {
  padding: clamp(1rem, 3vw, 3.25rem);
  border: 1px solid #efdadd38;
  border-radius: 14px;
  background: #170d0fa8;
}
.tv-stage:where(:not(.has-artwork)) .tv-intro h1 {
  font-size: clamp(2rem, min(4.2vw, 7.8vh), 5.45rem);
  text-shadow: 0 .06em .18em #14070b9e;
  text-wrap: balance;
}
.tv-stage:where(:not(.has-artwork)) .tv-intro h1::before {
  content: "";
  display: block;
  width: clamp(3rem, 7.5vw, 9rem);
  height: clamp(.2rem, .3vw, .33rem);
  margin: 0 0 clamp(.7rem, 1.4vw, 1.4rem);
  border-radius: 99px;
  background: #e8303d;
}
.tv-stage:where(:not(.has-artwork)) .tv-code {
  padding: 0 clamp(.65rem, 1.55vw, 1.45rem) clamp(.65rem, 1.5vw, 1.3rem);
  border: 1px solid #e9dddd;
  box-shadow: 0 1.1rem 2.8rem #1306088c;
}
.tv-stage:where(:not(.has-artwork)) .tv-code a { display: block; }

.is-general-tv .tv-header { display: none; }
.is-general-tv .tv-stage { padding: clamp(1.4rem, 5vw, 6rem); }
.is-general-tv .tv-details {
  width: min(100%, 102rem);
  margin-inline: auto;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .9fr);
  gap: clamp(1.25rem, 3.6vw, 5rem);
}
.is-general-tv .tv-intro {
  justify-items: center;
  gap: clamp(.8rem, 1.8vw, 1.8rem);
  padding: clamp(1.1rem, 3.25vw, 3.6rem) clamp(.65rem, 2.25vw, 2.5rem);
  text-align: center;
}
.is-general-tv .tv-general-logo { display: block; width: min(76%, 21rem); height: auto; }
.is-general-tv .tv-intro h1 {
  font: 900 clamp(2.35rem, 6.05vw, 7.15rem)/.98 var(--check-in-display-font);
  letter-spacing: -.018em;
  text-transform: uppercase;
  text-shadow: 0 0 .19em #de172b75, 0 .045em .13em #100001;
  white-space: pre-line;
  overflow-wrap: normal;
}
.is-general-tv .tv-intro h1::before, .tv-stage.is-class-picker h1::before { margin-inline: auto; }
.is-general-tv .tv-state { color: #f7edee; }
.is-general-tv .tv-code, .tv-stage.has-artwork .tv-code {
  justify-self: center;
  width: min(100%, 34rem);
  padding: 0 clamp(.85rem, 2vw, 1.65rem) clamp(.75rem, 1.6vw, 1.4rem);
}
.tv-stage.has-artwork .tv-code {
  width: min(100%, 54vh, 34rem);
  border: 1px solid var(--tv-artwork-outline);
  box-shadow: 0 16px 48px #0006;
}
.tv-stage .tv-scan-banner {
  display: block;
  margin-top: -.7rem;
  padding: .62em .55em;
  border: 1px solid #a50712;
  border-radius: 5px;
  background: var(--check-in-ribbon);
  box-shadow: 0 4px 0 #60081234;
  color: #fff;
  font-size: clamp(.9rem, 1.53vw, 1.51rem);
  line-height: 1.17;
  text-transform: uppercase;
  text-wrap: balance;
}
.tv-stage.has-artwork .tv-scan-banner {
  background: linear-gradient(115deg, var(--tv-artwork-shade), var(--tv-artwork-deep));
  border-color: var(--tv-artwork-outline);
  box-shadow: 0 4px 0 var(--tv-artwork-outline);
}
.is-general-tv .tv-code a, .tv-stage.has-artwork .tv-code a {
  display: block;
  width: min(100%, 54vh, 27rem);
  margin: .55rem auto 0;
}
.tv-code .tv-qr-url {
  padding: .15rem 0 .25rem;
  color: #970a16;
  font-size: clamp(.78rem, 1.27vw, 1.22rem);
  overflow-wrap: anywhere;
}
.tv-stage.has-artwork .tv-qr-url { color: color-mix(in srgb, var(--tv-artwork-color) 32%, #141717); }
.tv-stage.is-class-picker .tv-intro { justify-items: center; gap: clamp(1.2rem, 3vh, 2rem); }
.tv-stage.is-class-picker h1 {
  font-size: clamp(2rem, min(4vw, 5.75vh), 4.75rem);
  text-align: center;
}
.tv-class-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: clamp(.7rem, 1.28vw, 1.6rem);
  width: min(100%, 55rem);
}
.tv-class-picker:has(.tv-class-card:nth-child(3)) { width: 100%; }
.training-tv .tv-class-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  padding: 0;
  border: 1px solid #e9cece5c;
  border-radius: 14px;
  background: #30282a;
  color: #fff;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 12px 36px #110b0d55;
  cursor: pointer;
}
.training-tv .tv-class-card:hover { border-color: #ffe3e3; background: #463437; }
.training-tv .tv-class-card:focus-visible { outline-color: #ffc0c0; }
.tv-card-art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  height: clamp(8rem, 30vh, 21rem);
  overflow: hidden;
  background: linear-gradient(125deg, #6a121acb, #231316e8), var(--check-in-room-art) center / cover;
}
.tv-card-art:has(.tv-card-flyer:not([hidden])) { background: #1c1719; }
.tv-card-flyer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tv-card-brand { display: block; width: min(73%, 14rem); height: auto; }
.tv-card-copy {
  display: grid;
  align-content: start;
  gap: .42rem;
  padding: clamp(.7rem, 1.2vw, 1.26rem);
  overflow-wrap: anywhere;
}
.tv-card-title { font-size: clamp(1.1rem, 1.55vw, 1.65rem); font-weight: 780; line-height: 1.14; }
.tv-card-time { color: #f5e8e8; font-size: clamp(.86rem, 1.12vw, 1.15rem); line-height: 1.3; }
.tv-card-source { color: #e0ced0; font-size: clamp(.75rem, .93vw, .98rem); }
@media (max-width: 60rem) {
  .tv-card-art { height: clamp(8rem, 22vh, 15rem); }
}
@media (max-width: 50rem) {
  .tv-stage.has-artwork { grid-template-columns: minmax(0, 1fr); }
  .tv-flyer img { max-height: 65vh; }
  .tv-code { width: min(100%, 23rem); }
}
@media (max-width: 44rem) {
  .tv-header { flex-wrap: wrap; }
  .is-general-tv .tv-details { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .is-general-tv .tv-intro h1 { font-size: clamp(2.4rem, 10.5vw, 4rem); }
  .is-general-tv .tv-code { width: min(100%, 21rem); }
}
@media (max-width: 27rem) {
  .tv-details { grid-template-columns: 1fr; }
  .tv-code { justify-self: center; max-width: 12rem; }
  .is-general-tv .tv-code { max-width: 17rem; }
}
