:root {
  --td-deep: #3b0066;
  --td-purple: #6a00ff;
  --td-pink: #ff2d8d;
  --td-magenta: #d600ff;
  --td-ink: #241126;
  --td-muted: #766075;
  --td-soft: #fff7fb;
  --td-card: #ffffff;
}

.truth-dare-body {
  background: var(--td-soft);
}

.truth-dare-page {
  color: var(--td-ink);
  background: linear-gradient(180deg, #fff7fb 0%, #fff 52%, #fff7fb 100%);
}

.td-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.td-game-hero {
  min-height: 100svh;
  padding: 14px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 45, 141, .46), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(214, 0, 255, .36), transparent 28%),
    radial-gradient(circle at 50% 88%, rgba(255, 255, 255, .14), transparent 26%),
    linear-gradient(145deg, #3b0066 0%, #6900d7 46%, #ff2d8d 100%);
  position: relative;
  overflow: hidden;
}

.td-game-hero::before {
  content: "♡ ✦ ◦ ♡ ✧ ◦ ♡ ✦";
  position: absolute;
  inset: 0;
  color: rgba(255, 255, 255, .13);
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: .24em;
  line-height: 1.8;
  transform: rotate(-12deg) scale(1.1);
  pointer-events: none;
}

.td-game-shell {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  min-height: calc(100svh - 28px);
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 15px;
  padding: 16px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .10);
  box-shadow: 0 28px 80px rgba(20, 0, 40, .34);
  backdrop-filter: blur(18px);
}

.td-game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.td-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 950;
  text-shadow: 0 1px 18px rgba(0, 0, 0, .24);
}

.td-logo img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

.td-search-button,
.td-reset-button,
.td-modal__close,
.td-modal__continue,
.td-sticky-app-banner__close {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.td-search-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 1.4rem;
}

.td-level-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-padding-left: 0;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.td-level-tabs::-webkit-scrollbar {
  display: none;
}

.td-level-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: #fff;
  background: rgba(255, 255, 255, .13);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.td-level-tab--active {
  color: #3b0066;
  background: #fff;
  box-shadow: 0 12px 28px rgba(40, 0, 70, .22);
}

.td-level-tab--locked {
  opacity: .82;
}

.td-lock {
  font-size: .78rem;
}

.td-card-area {
  display: grid;
  align-items: center;
  min-height: 330px;
}

.td-card {
  min-height: clamp(310px, 48svh, 440px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: clamp(24px, 7vw, 40px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 45, 141, .16), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 246, 251, .96));
  border: 1px solid rgba(255, 255, 255, .86);
  box-shadow: 0 28px 60px rgba(28, 0, 48, .30);
  text-align: center;
}

.td-card-kicker {
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 45, 141, .13), rgba(106, 0, 255, .12));
  color: #b6156c;
  font-weight: 950;
  letter-spacing: .02em;
}

.td-card-text {
  margin: 0;
  color: #53314f;
  font-size: clamp(1.38rem, 5vw, 2.05rem);
  line-height: 1.42;
  font-weight: 780;
}

.td-card--end .td-card-kicker {
  background: #151518;
  color: #fff;
}

.td-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.td-choice-button,
.td-next-button,
.td-app-cta__button,
.td-sticky-app-banner__button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 54px;
  padding: 0 18px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.td-choice-button {
  color: #fff;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .28);
}

.td-next-button {
  grid-column: 1 / -1;
  color: #fff;
  background: #151518;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
}

.td-game-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, .90);
}

.td-counter {
  margin: 0;
  font-size: .94rem;
  font-weight: 850;
}

.td-reset-button {
  color: #fff;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 850;
}

.td-choice-button:focus-visible,
.td-next-button:focus-visible,
.td-level-tab:focus-visible,
.td-search-button:focus-visible,
.td-reset-button:focus-visible,
.td-app-cta__button:focus-visible,
.td-sticky-app-banner__button:focus-visible,
.td-sticky-app-banner__close:focus-visible,
.td-modal__close:focus-visible,
.td-modal__continue:focus-visible,
.td-store-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .92);
  outline-offset: 3px;
}

.td-modal[hidden],
.td-sticky-app-banner[hidden] {
  display: none;
}

.td-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.td-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(24, 5, 29, .62);
  backdrop-filter: blur(8px);
}

.td-modal__panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: calc(100svh - 24px);
  overflow-y: auto;
  padding: 26px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(20, 0, 35, .34);
  text-align: center;
}

.td-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff0f7;
  color: #7b416f;
  font-size: 1.55rem;
}

.td-modal__icon img {
  border-radius: 18px;
}

.td-modal__eyebrow {
  margin: 12px 0 4px;
  color: #d81d7e;
  font-weight: 950;
}

.td-modal__panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 7vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.td-modal__panel p {
  color: var(--td-muted);
  line-height: 1.58;
}

.td-store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.td-store-button {
  display: inline-flex;
  width: min(211px, 100%);
  min-height: 62px;
  border-radius: 14px;
  overflow: visible;
  background: transparent;
}

.td-store-button img {
  display: block;
  width: 100%;
  height: auto;
}

.td-modal__continue {
  margin-top: 14px;
  color: #7b416f;
  background: transparent;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.td-sticky-app-banner {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translate(-50%, 120%);
  z-index: 900;
  width: min(620px, calc(100% - 22px));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 50px rgba(45, 8, 45, .22);
  border: 1px solid rgba(130, 49, 115, .12);
  transition: transform .24s ease;
}

.td-sticky-app-banner--visible {
  transform: translate(-50%, 0);
}

.td-sticky-app-banner__icon {
  border-radius: 13px;
}

.td-sticky-app-banner__text {
  margin: 0;
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  color: #3d203b;
  line-height: 1.2;
}

.td-sticky-app-banner__text span {
  color: #7d657c;
  font-size: .9rem;
}

.td-sticky-app-banner__button {
  min-height: 42px;
  padding: 0 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--td-pink), var(--td-purple));
}

.td-sticky-app-banner__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #73516d;
  background: #fff0f7;
  font-size: 1.25rem;
}

.td-seo-content {
  padding: clamp(34px, 6vw, 76px) 0;
  background: var(--td-soft);
}

.td-content-wrapper,
.td-toc {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
}

.td-toc {
  margin-bottom: 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(130, 49, 115, .10);
  box-shadow: 0 10px 30px rgba(85, 25, 75, .08);
}

.td-toc summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 950;
}

.td-toc nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 18px 18px;
}

.td-toc a {
  color: #982461;
  font-weight: 850;
  text-decoration: none;
}

.td-content-wrapper {
  display: grid;
  gap: 32px;
}

.td-content-wrapper section {
  scroll-margin-top: 24px;
}

.td-content-wrapper h2 {
  margin: 0 0 12px;
  color: #2d1731;
  font-size: clamp(1.55rem, 4vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.td-content-wrapper p,
.td-content-wrapper li {
  color: #5f4c61;
  font-size: 1.03rem;
  line-height: 1.72;
}

.td-example-grid,
.td-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.td-example-grid article,
.td-link-grid a,
.td-app-cta,
.td-faq-item {
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(130, 49, 115, .10);
  box-shadow: 0 12px 34px rgba(85, 25, 75, .08);
}

.td-example-grid article {
  padding: 18px;
}

.td-example-grid span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #b8156d;
  background: #fff0f7;
  font-weight: 950;
}

.td-example-grid p {
  margin: 0;
  font-weight: 800;
}

.td-steps {
  padding-left: 24px;
}

.td-app-cta {
  padding: clamp(22px, 5vw, 34px);
  background: linear-gradient(135deg, #3b0066, #8a13ff 48%, #ff2d8d);
  color: #fff;
}

.td-app-cta h2,
.td-app-cta p {
  color: #fff;
}

.td-app-cta__button {
  margin-top: 8px;
  color: #3b0066;
  background: #fff;
}

.td-faq-list {
  display: grid;
  gap: 12px;
}

.td-faq-item {
  padding: 0;
}

.td-faq-item summary {
  cursor: pointer;
  padding: 18px;
  font-weight: 950;
}

.td-faq-item p {
  margin: 0;
  padding: 0 18px 18px;
}

.td-link-grid a {
  padding: 16px;
  display: grid;
  gap: 5px;
  text-decoration: none;
  color: #2f1731;
}

.td-link-grid span {
  font-size: 1.45rem;
}

.td-link-grid strong {
  font-size: 1.02rem;
}

.td-link-grid em {
  color: #7b647c;
  font-style: normal;
  line-height: 1.42;
}

@media (min-width: 768px) {
  .td-game-hero {
    padding: 28px;
  }

  .td-game-shell {
    min-height: auto;
    padding: 22px;
  }

  .td-card-area {
    min-height: 380px;
  }

  .td-level-tabs {
    overflow: visible;
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .td-game-shell {
    position: relative;
  }

  .td-game-header {
    padding-right: 58px;
  }

  .td-search-button {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 4;
  }

  .td-choice-button {
    display: none;
  }

  .td-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .td-game-shell {
    border-radius: 26px;
    padding: 12px;
  }

  .td-logo span {
    font-size: .98rem;
  }

  .td-card {
    border-radius: 26px;
  }

  .td-example-grid,
  .td-link-grid {
    grid-template-columns: 1fr;
  }

  .td-modal {
    align-items: center;
    padding: 10px;
  }

  .td-modal__panel {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .td-store-buttons {
    flex-direction: column;
    align-items: center;
  }

  .td-sticky-app-banner__text span {
    display: none;
  }

  .td-sticky-app-banner__button {
    padding: 0 13px;
  }
}
