.twcr-tutorial {
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  margin: 14px 0 0;
  padding: clamp(18px, 3vw, 34px);
  border: 2px solid #2c4a50;
  border-radius: 22px;
  background: linear-gradient(112deg, #f4ecd9, #fffaf0 62%, #f7e8c9);
  box-shadow: 0 7px 0 #2c4a50, 0 16px 34px rgb(44 74 80 / 12%);
}

.entry-page--landing .twcr-layout,
.entry-page--consent .twcr-layout {
  padding-top: 24px;
}

.twcr-tutorial-copy {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.twcr-tutorial-media {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  gap: 14px;
}

.twcr-video-kicker {
  margin: 0 0 8px;
  color: #a94b35;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.twcr-tutorial-copy h2 {
  margin: 0;
  color: #243a3e;
  font: 700 clamp(27px, 3.2vw, 38px)/1.04 "Fraunces", Georgia, serif;
  letter-spacing: -.025em;
}

.twcr-tutorial-copy > p:not(.twcr-video-kicker) {
  max-width: 34ch;
  margin: 10px 0 18px;
  color: #536d68;
  font-size: 15px;
  line-height: 1.5;
}

.twcr-video-frame {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 3px solid #2c4a50;
  border-radius: 18px;
  background: #243a3e;
  box-shadow: 0 5px 0 #c8ae72, 0 12px 24px rgb(36 58 62 / 18%);
  isolation: isolate;
}

.twcr-video-frame > img,
.twcr-video-embed {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.twcr-video-frame > img {
  object-fit: cover;
}

.twcr-video-frame > img.twcr-gameplay-poster {
  object-fit: contain;
  background: #243a3e;
}

.twcr-tutorial .twcr-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fffaf0;
  background: linear-gradient(180deg, rgb(22 43 47 / 8%), rgb(22 43 47 / 54%));
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  text-shadow: 0 2px 6px rgb(0 0 0 / 55%);
  transition: background-color .18s ease, transform .18s ease;
}

.twcr-tutorial .twcr-video-play:hover {
  background-color: rgb(22 43 47 / 14%);
}

.twcr-tutorial .twcr-video-play:focus-visible {
  outline: 3px solid #8a6cc9;
  outline-offset: 4px;
}

.twcr-video-play-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 3px solid #ffe08b;
  border-radius: 50%;
  color: #fffaf0;
  background: #d45d4f;
  box-shadow: 0 4px 0 rgb(35 59 62 / 38%);
}

.twcr-video-play-icon svg {
  width: 29px;
  height: 29px;
  margin-left: 3px;
}

.twcr-video-frame.is-playing {
  background: #172f36;
}

.twcr-social {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 2px solid #2c4a50;
  border-radius: 16px;
  background: linear-gradient(112deg, #fffaf0, #f4ecd9);
  box-shadow: 0 5px 0 #c8ae72, 0 10px 20px rgb(36 58 62 / 12%);
}

.twcr-social-copy { min-width: 0; }

.twcr-social-copy h3 {
  margin: 0;
  color: #243a3e;
  font: 700 clamp(16px, 1.8vw, 21px)/1.1 "Fraunces", Georgia, serif;
}

.twcr-social-copy p {
  margin: 4px 0 0;
  color: #62777a;
  font-size: 12px;
  font-weight: 600;
}

.twcr-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.twcr-social-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border: 1px solid #d9c9a8;
  border-radius: 999px;
  color: #263d43;
  background: #fffdf7;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.twcr-social-link:hover {
  transform: translateY(-2px);
  border-color: #d86f50;
  box-shadow: 0 4px 9px rgb(36 58 62 / 14%);
}

.twcr-social-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
}

.twcr-social-icon svg { width: 21px; height: 21px; }
.twcr-social-link--youtube .twcr-social-icon { background: #e03131; }
.twcr-social-link--tiktok .twcr-social-icon { background: #18252b; }

@media (max-width: 850px) {
  .twcr-tutorial {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .twcr-tutorial-media {
    grid-column: 1;
    grid-row: 1;
  }

  .twcr-tutorial-copy { grid-column: 1; grid-row: 2; }
  .twcr-tutorial-copy > p:not(.twcr-video-kicker) { max-width: 52ch; }
}

@media (max-width: 520px) {
  .twcr-tutorial {
    gap: 10px;
    margin-top: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  .twcr-tutorial-media { gap: 10px; }
  .twcr-video-frame { border-radius: 12px; }
  .twcr-video-play { gap: 7px; font-size: 12px; }
  .twcr-video-play-icon { width: 50px; height: 50px; }
  .twcr-video-play-icon svg { width: 24px; height: 24px; }
  .twcr-tutorial-copy h2 { font-size: clamp(23px, 6.2vw, 29px); }
  .twcr-tutorial-copy > p:not(.twcr-video-kicker) { margin: 6px 0 10px; font-size: 12px; line-height: 1.35; }
  .twcr-video-kicker { margin-bottom: 4px; font-size: 9px; }
  .twcr-social {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 11px 12px;
    border-radius: 13px;
  }
  .twcr-social-copy h3 { font-size: 17px; }
  .twcr-social-copy p { margin-top: 2px; font-size: 11px; }
  .twcr-social-links { justify-content: stretch; }
  .twcr-social-link { min-height: 42px; flex: 1 1 120px; justify-content: center; }
  .twcr-social-icon { width: 32px; height: 32px; flex-basis: 32px; }
  .twcr-social-icon svg { width: 19px; height: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .twcr-video-play,
  .twcr-social-link { transition: none; }
  .twcr-social-link:hover { transform: none; }
}
