:root {
  --tpg-bg: #100f0d;
  --tpg-ink: #f4eee4;
  --tpg-muted: rgba(244,238,228,.68);
  --tpg-soft: rgba(255,255,255,.055);
  --tpg-line: rgba(255,255,255,.12);
  --tpg-accent: #c9a96b;
}

html.tpg-fullscreen-active,
body.tpg-fullscreen-active {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  background: var(--tpg-bg) !important;
}

body.tpg-fullscreen-active header,
body.tpg-fullscreen-active footer,
body.tpg-fullscreen-active .site-header,
body.tpg-fullscreen-active .site-footer,
body.tpg-fullscreen-active #masthead,
body.tpg-fullscreen-active #colophon,
body.tpg-fullscreen-active .entry-title,
body.tpg-fullscreen-active .page-title,
body.tpg-fullscreen-active .wp-block-post-title {
  display: none !important;
}

body.tpg-fullscreen-active .entry-content,
body.tpg-fullscreen-active .wp-block-post-content,
body.tpg-fullscreen-active main,
body.tpg-fullscreen-active article,
body.tpg-fullscreen-active .site-main,
body.tpg-fullscreen-active .content-area {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

#tpg-app, #tpg-app * { box-sizing: border-box; }
#tpg-app {
  min-height: 100vh;
  width: 100%;
  color: var(--tpg-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--tpg-bg);
}
#tpg-app button, #tpg-app input, #tpg-app select { font: inherit; }

.tpg-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 520px);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 5vw, 58px);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 5%, color-mix(in srgb, var(--tpg-accent), transparent 72%), transparent 34%),
    radial-gradient(circle at 82% 92%, rgba(112,80,58,.24), transparent 36%),
    linear-gradient(135deg, #15120f 0%, #0d0c0b 62%, #19150f 100%);
}

.tpg-atmosphere { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tpg-atmosphere span { position: absolute; display: block; border-radius: 999px; filter: blur(42px); opacity: .52; }
.tpg-atmosphere span:nth-child(1) { width: 420px; height: 420px; left: -120px; top: -160px; background: color-mix(in srgb, var(--tpg-accent), transparent 72%); }
.tpg-atmosphere span:nth-child(2) { width: 520px; height: 520px; right: -180px; bottom: -220px; background: rgba(88,72,58,.44); }
.tpg-atmosphere span:nth-child(3) { width: 300px; height: 300px; left: 48%; top: 12%; background: rgba(255,255,255,.07); }

.tpg-editorial {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: clamp(12px, 2vw, 30px);
}
.tpg-brandline,
.tpg-kicker,
.tpg-topline,
.tpg-card small,
.tpg-animal-card small,
.tpg-field span,
.tpg-editorial-grid small {
  text-transform: uppercase;
  letter-spacing: .19em;
  font-size: 11px;
}
.tpg-brandline { color: var(--tpg-accent); }
.tpg-editorial h2 {
  max-width: 10ch;
  margin: 28px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 8vw, 112px);
  line-height: .88;
  font-weight: 400;
  letter-spacing: -.06em;
  color: var(--tpg-ink);
}
.tpg-editorial p {
  max-width: 520px;
  margin: 28px 0 0;
  color: var(--tpg-muted);
  font-size: 15px;
  line-height: 1.85;
}
.tpg-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin-top: 34px;
}
.tpg-editorial-grid div {
  min-height: 104px;
  border: 1px solid var(--tpg-line);
  border-radius: 26px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 70px rgba(0,0,0,.18);
}
.tpg-editorial-grid small { display: block; color: rgba(244,238,228,.44); }
.tpg-editorial-grid strong {
  display: block;
  margin-top: 16px;
  font-family: Georgia, serif;
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
  color: var(--tpg-ink);
}

.tpg-device-wrap { position: relative; z-index: 3; display: flex; justify-content: center; }
.tpg-phone {
  position: relative;
  width: min(430px, 100%);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  box-shadow: 0 34px 100px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(24px);
}
.tpg-notch {
  position: absolute;
  z-index: 8;
  top: 18px;
  left: 50%;
  width: 126px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: rgba(0,0,0,.72);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.07);
}
.tpg-screen {
  position: relative;
  height: min(820px, calc(100svh - 84px));
  overflow-y: auto;
  border-radius: 34px;
  padding: 58px 24px 92px;
  scrollbar-width: none;
  background:
    radial-gradient(circle at 50% 12%, color-mix(in srgb, var(--tpg-accent), transparent 77%), transparent 23%),
    radial-gradient(circle at 100% 100%, rgba(255,255,255,.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.015)),
    #15120f;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.tpg-screen::-webkit-scrollbar { display: none; }

.tpg-progress {
  position: sticky;
  z-index: 5;
  top: -58px;
  display: flex;
  gap: 5px;
  padding: 9px 0 18px;
  background: linear-gradient(#15120f 60%, rgba(21,18,15,0));
}
.tpg-progress span { height: 6px; flex: 1; border-radius: 99px; background: rgba(255,255,255,.13); }
.tpg-progress span.is-active { background: var(--tpg-accent); box-shadow: 0 0 18px color-mix(in srgb, var(--tpg-accent), transparent 60%); }
.tpg-topline { display: flex; justify-content: space-between; color: rgba(244,238,228,.58); margin: 8px 0 26px; }

.tpg-view { min-height: calc(100% - 60px); display: flex; flex-direction: column; gap: 22px; }
.tpg-intro { justify-content: space-between; }
.tpg-kicker {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 99px;
  padding: 9px 12px;
  background: rgba(255,255,255,.045);
  color: rgba(244,238,228,.70);
}
.tpg-view h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 13vw, 66px);
  line-height: .92;
  font-weight: 400;
  letter-spacing: -.055em;
  color: var(--tpg-ink);
}
.tpg-view p { margin: 0; color: var(--tpg-muted); font-size: 14px; line-height: 1.78; }
.tpg-intro h1 { max-width: 7.6ch; margin-top: 32px; }
.tpg-intro p { max-width: 31ch; margin-top: 18px; }

.tpg-animal-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 30px;
  border: 1px solid var(--tpg-line);
  border-radius: 28px;
  padding: 16px;
  background: rgba(0,0,0,.24);
  box-shadow: 0 22px 70px rgba(0,0,0,.25);
}
.tpg-animal-card small { display: block; color: var(--tpg-accent); }
.tpg-animal-card strong {
  display: block;
  margin-top: 7px;
  font-family: Georgia, serif;
  font-size: 29px;
  line-height: 1;
  font-weight: 400;
}
.tpg-animal-card em { display: block; margin-top: 6px; color: rgba(244,238,228,.52); font-size: 13px; }
.tpg-orb, .tpg-loader-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 36% 24%, rgba(255,255,255,.42), transparent 21%),
    linear-gradient(135deg, color-mix(in srgb, var(--tpg-accent), white 10%), rgba(255,255,255,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 22px 50px color-mix(in srgb, var(--tpg-accent), transparent 78%);
}
.tpg-orb span { font-family: Georgia, serif; font-size: 38px; color: rgba(15,14,12,.82); }

.tpg-options { display: grid; gap: 10px; }
.tpg-tile {
  position: relative;
  width: 100%;
  min-height: 62px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 16px 17px;
  background: linear-gradient(180deg, rgba(255,255,255,.058), rgba(255,255,255,.026));
  color: var(--tpg-ink);
  text-align: left;
  line-height: 1.42;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.tpg-tile:hover { transform: translateY(-1px); background: rgba(255,255,255,.075); }
.tpg-tile.is-selected {
  border-color: color-mix(in srgb, var(--tpg-accent), transparent 20%);
  background: color-mix(in srgb, var(--tpg-accent), transparent 87%);
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
.tpg-tile.is-selected::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--tpg-accent);
  box-shadow: 0 0 18px var(--tpg-accent);
}
.tpg-animal-tile span { display: block; font-family: Georgia, serif; font-size: 25px; line-height: 1; font-weight: 400; padding-right: 20px; }
.tpg-animal-tile small { display: block; margin-top: 8px; color: rgba(244,238,228,.56); line-height: 1.45; }

.tpg-actions { margin-top: auto; display: grid; gap: 10px; padding-top: 8px; }
.tpg-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 20px;
  padding: 17px 18px;
  background: var(--tpg-ink);
  color: #13110e;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(0,0,0,.26);
}
.tpg-button:hover { transform: translateY(-1px); }
.tpg-secondary { border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.055); color: var(--tpg-ink); box-shadow: none; }
.tpg-arrow { opacity: .75; }

.tpg-form-stack { display: grid; gap: 12px; }
.tpg-field {
  display: block;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  padding: 15px 16px;
  background: rgba(255,255,255,.045);
}
.tpg-field span { display: block; margin-bottom: 10px; color: var(--tpg-accent); }
.tpg-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tpg-ink);
  font-size: 20px;
}
.tpg-field input::placeholder { color: rgba(244,238,228,.32); }
.tpg-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  padding: 13px;
  color: rgba(244,238,228,.68);
  line-height: 1.5;
  font-size: 13px;
  background: rgba(0,0,0,.16);
}
.tpg-check input { margin-top: 4px; accent-color: var(--tpg-accent); }
.tpg-privacy { color: var(--tpg-accent); font-size: 13px; text-decoration: none; }

.tpg-generation { align-items: center; justify-content: center; text-align: center; }
.tpg-generation h1 { max-width: 7.5ch; margin-top: 18px; }
.tpg-generation p { max-width: 30ch; }
.tpg-loader-orb { width: 136px; height: 136px; border-radius: 999px; animation: tpg-pulse 1.8s ease-in-out infinite; }
.tpg-loader-orb span { width: 72%; height: 72%; border-radius: 999px; border: 1px solid rgba(255,255,255,.32); border-top-color: rgba(255,255,255,.88); animation: tpg-spin 1.3s linear infinite; }
@keyframes tpg-spin { to { transform: rotate(360deg); } }
@keyframes tpg-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.035); } }

.tpg-result-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 28px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--tpg-accent), transparent 70%), transparent 25%),
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.025));
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
  padding: 0;
  cursor: default;
  appearance: none;
}
.tpg-result-image.is-clickable { cursor: pointer; }
.tpg-result-image img { width: 100%; height: 100%; object-fit: cover; }
.tpg-result-image.is-clickable::after {
  content: "Apri";
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(11, 10, 9, .72);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff7ea;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tpg-image-placeholder span { font-family: Georgia, serif; font-size: 86px; color: var(--tpg-accent); opacity: .68; }
.tpg-result-hint {
  margin-top: -8px;
  color: rgba(244,238,228,.58);
  font-size: 12px;
  line-height: 1.5;
}

.tpg-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
}
.tpg-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, .74);
  backdrop-filter: blur(14px);
}
.tpg-preview-card {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: calc(100svh - 36px);
  overflow: auto;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.12);
  padding: 18px;
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--tpg-accent), transparent 78%), transparent 26%),
    linear-gradient(180deg, rgba(27, 23, 19, .96), rgba(12, 11, 10, .98));
  box-shadow: 0 34px 100px rgba(0,0,0,.56);
}
.tpg-preview-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--tpg-ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.tpg-preview-copy h2 {
  margin: 12px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 9vw, 48px);
  line-height: .95;
  font-weight: 400;
  letter-spacing: -.05em;
}
.tpg-preview-copy p {
  margin: 0 0 16px;
  color: var(--tpg-muted);
  font-size: 14px;
  line-height: 1.7;
}
.tpg-preview-media {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.tpg-preview-media img {
  display: block;
  width: 100%;
  height: auto;
}
.tpg-preview-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.tpg-preview-feedback {
  margin-top: 12px;
  color: color-mix(in srgb, var(--tpg-accent), white 18%);
  font-size: 13px;
  line-height: 1.45;
}

.tpg-back {
  position: fixed;
  z-index: 12;
  left: calc(50% + min(215px, 44vw) - 416px);
  bottom: 34px;
  width: 46px;
  height: 46px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.34);
  color: var(--tpg-ink);
  font-size: 30px;
  cursor: pointer;
  backdrop-filter: blur(16px);
}
.tpg-error {
  border: 1px solid rgba(255,110,110,.34);
  background: rgba(120,20,20,.22);
  color: #ffdada;
  border-radius: 18px;
  padding: 12px 14px;
  margin-bottom: 16px;
  line-height: 1.4;
}
.tpg-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 14px;
  color: var(--tpg-ink);
  background: var(--tpg-bg);
  text-align: center;
}
.tpg-loader-mark { width: 42px; height: 42px; border-radius: 99px; border: 1px solid rgba(255,255,255,.22); border-top-color: var(--tpg-accent); animation: tpg-spin 1s linear infinite; }

@media (max-width: 980px) {
  .tpg-shell { grid-template-columns: 1fr; padding: 18px; }
  .tpg-editorial { display: none; }
  .tpg-back { left: 34px; }
}

@media (max-width: 520px) {
  .tpg-shell { display: block; padding: 0; }
  .tpg-device-wrap { display: block; }
  .tpg-phone { width: 100%; min-height: 100vh; min-height: 100svh; border: 0; border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
  .tpg-notch { display: none; }
  .tpg-screen { min-height: 100vh; min-height: 100svh; height: 100vh; height: 100svh; border-radius: 0; padding: 28px 20px 92px; }
  .tpg-progress { top: -28px; }
  .tpg-view h1 { font-size: clamp(44px, 15vw, 62px); }
  .tpg-intro h1 { margin-top: 26px; }
  .tpg-animal-card { grid-template-columns: 72px 1fr; border-radius: 24px; }
  .tpg-orb { width: 66px; height: 66px; border-radius: 22px; }
  .tpg-back { left: 20px; bottom: 20px; }
}


/* TPG 0.1.6 refinements */
.tpg-editorial h2 {
  font-size: clamp(44px, 6.4vw, 86px);
  max-width: 12ch;
  line-height: .94;
}
.tpg-editorial p { font-size: 14px; line-height: 1.75; }
.tpg-view { gap: 18px; }
.tpg-view h1 {
  font-size: clamp(34px, 9.5vw, 52px);
  line-height: .98;
  letter-spacing: -.045em;
}
.tpg-intro h1 { max-width: 9ch; margin-top: 26px; }
.tpg-question-view h1,
.tpg-choice-view h1,
.tpg-profile-view h1 { max-width: 11.5ch; }
.tpg-kicker { font-size: 10px; padding: 8px 11px; }
.tpg-options { gap: 8px; }
.tpg-tile {
  min-height: 54px;
  border-radius: 18px;
  padding: 14px 15px;
  font-size: 14px;
  line-height: 1.36;
}
.tpg-animal-tile span { font-size: 22px; }
.tpg-animal-tile small { font-size: 12px; }
.tpg-autonote {
  margin-top: -4px !important;
  color: rgba(244,238,228,.46) !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}
.tpg-back {
  display: grid;
  place-items: center;
  line-height: 1;
}
@media (max-width: 520px) {
  .tpg-view h1 { font-size: clamp(32px, 10.8vw, 46px); }
  .tpg-screen { padding-top: 24px; }
  .tpg-topline { margin-bottom: 20px; }
  .tpg-tile { font-size: 13.5px; min-height: 52px; }
}

/* TPG 0.2.1 interests + generation waiting refinements */
.tpg-interest-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.tpg-interest-tile {
  min-height: 48px;
  text-align: center;
  padding: 13px 12px;
}
.tpg-inline-actions {
  margin-top: 0;
  padding-top: 0;
}
.tpg-generation {
  min-height: calc(100% - 78px);
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 10px 0 22px;
}
.tpg-generation h1 {
  max-width: 11ch;
  margin: 8px auto 0;
  font-size: clamp(31px, 8.6vw, 44px);
  line-height: 1;
}
.tpg-generation p {
  max-width: 32ch;
  margin: 0 auto;
  font-size: 13.5px;
  line-height: 1.65;
}
.tpg-loader-scene {
  position: relative;
  display: grid;
  place-items: center;
  width: 174px;
  height: 174px;
  margin: 0 auto 2px;
}
.tpg-loader-scene::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--tpg-accent), transparent 74%), transparent 62%);
  filter: blur(8px);
  animation: tpg-soft-breathe 2.4s ease-in-out infinite;
}
.tpg-loader-scene i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--tpg-accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--tpg-accent), transparent 25%);
  opacity: .75;
  animation: tpg-float-dot 2.8s ease-in-out infinite;
}
.tpg-loader-scene i:nth-of-type(1) { left: 24px; top: 54px; animation-delay: 0s; }
.tpg-loader-scene i:nth-of-type(2) { right: 26px; top: 42px; animation-delay: .35s; }
.tpg-loader-scene i:nth-of-type(3) { left: 42px; bottom: 34px; animation-delay: .7s; }
.tpg-loader-scene i:nth-of-type(4) { right: 38px; bottom: 44px; animation-delay: 1.05s; }
.tpg-generation .tpg-loader-orb {
  z-index: 2;
  width: 116px;
  height: 116px;
  margin: 0;
}
.tpg-wait-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  padding: 8px 13px;
  color: rgba(244,238,228,.64);
  background: rgba(0,0,0,.18);
  font-size: 12px;
  line-height: 1.35;
}
@keyframes tpg-soft-breathe { 0%,100% { transform: scale(.96); opacity: .55; } 50% { transform: scale(1.05); opacity: .9; } }
@keyframes tpg-float-dot { 0%,100% { transform: translate3d(0,0,0) scale(.85); opacity: .45; } 50% { transform: translate3d(0,-10px,0) scale(1); opacity: .95; } }

@media (max-width: 520px) {
  .tpg-interest-options { grid-template-columns: 1fr 1fr; }
  .tpg-interest-tile { min-height: 46px; padding: 12px 9px; font-size: 13px; }
  .tpg-loader-scene { width: 150px; height: 150px; }
  .tpg-generation .tpg-loader-orb { width: 100px; height: 100px; }
  .tpg-generation h1 { font-size: clamp(29px, 9.3vw, 38px); }
  .tpg-generation p { font-size: 13px; max-width: 31ch; }
}

/* TPG 0.2.2 magical waiting state + stronger visual coherence */
.tpg-loader-magic {
  width: 204px;
  height: 204px;
  margin-bottom: 4px;
  perspective: 800px;
}
.tpg-loader-magic::before {
  inset: 18px;
  background:
    radial-gradient(circle, rgba(255,255,255,.20) 0 2px, transparent 3px 100%),
    radial-gradient(circle, color-mix(in srgb, var(--tpg-accent), transparent 70%), transparent 62%);
  background-size: 34px 34px, auto;
  filter: blur(5px);
  animation: tpg-soft-breathe 2.6s ease-in-out infinite, tpg-stardust-pan 5.5s linear infinite;
}
.tpg-loader-ring {
  position: absolute;
  inset: 24px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--tpg-accent), transparent 42%);
  box-shadow:
    0 0 24px color-mix(in srgb, var(--tpg-accent), transparent 72%),
    inset 0 0 28px rgba(255,255,255,.055);
  transform-style: preserve-3d;
}
.tpg-ring-one {
  animation: tpg-ring-orbit 4.2s linear infinite;
}
.tpg-ring-two {
  inset: 43px;
  opacity: .65;
  border-style: dashed;
  animation: tpg-ring-orbit-reverse 6.2s linear infinite;
}
.tpg-loader-magic .tpg-loader-orb {
  background:
    radial-gradient(circle at 38% 28%, rgba(255,255,255,.92), transparent 13%),
    radial-gradient(circle at 54% 48%, color-mix(in srgb, var(--tpg-accent), white 14%), color-mix(in srgb, var(--tpg-accent), black 35%) 44%, rgba(0,0,0,.28) 73%);
  box-shadow:
    0 0 26px color-mix(in srgb, var(--tpg-accent), transparent 26%),
    0 18px 48px rgba(0,0,0,.45),
    inset -18px -22px 34px rgba(0,0,0,.24),
    inset 12px 10px 18px rgba(255,255,255,.18);
  animation: tpg-orb-levitate 3.2s ease-in-out infinite;
}
.tpg-loader-magic .tpg-loader-orb span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(125deg, transparent 18%, rgba(255,255,255,.20) 31%, transparent 44%),
    radial-gradient(circle at 62% 38%, rgba(255,255,255,.16), transparent 22%);
  mix-blend-mode: screen;
  animation: tpg-orb-sheen 2.8s ease-in-out infinite;
}
.tpg-loader-magic i {
  width: 5px;
  height: 5px;
  background: rgba(255,245,218,.92);
  box-shadow: 0 0 14px rgba(255,236,184,.9), 0 0 26px color-mix(in srgb, var(--tpg-accent), transparent 32%);
}
.tpg-loader-magic i:nth-of-type(1) { left: 18px; top: 78px; animation-delay: 0s; }
.tpg-loader-magic i:nth-of-type(2) { right: 22px; top: 50px; animation-delay: .25s; }
.tpg-loader-magic i:nth-of-type(3) { left: 48px; bottom: 30px; animation-delay: .55s; }
.tpg-loader-magic i:nth-of-type(4) { right: 44px; bottom: 42px; animation-delay: .85s; }
.tpg-loader-magic i:nth-of-type(5) { left: 78px; top: 22px; animation-delay: 1.15s; }
.tpg-loader-magic i:nth-of-type(6) { right: 76px; bottom: 18px; animation-delay: 1.45s; }
.tpg-sigil {
  position: absolute;
  color: rgba(255,244,214,.72);
  font-weight: 400;
  font-size: 17px;
  text-shadow: 0 0 18px color-mix(in srgb, var(--tpg-accent), transparent 15%);
  animation: tpg-sigil-float 3.4s ease-in-out infinite;
}
.tpg-sigil:nth-of-type(1) { left: 34px; top: 38px; animation-delay: 0s; }
.tpg-sigil:nth-of-type(2) { right: 31px; top: 86px; animation-delay: .55s; }
.tpg-sigil:nth-of-type(3) { left: 91px; bottom: 27px; animation-delay: 1.1s; }
.tpg-spell-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: -4px auto 2px;
}
.tpg-spell-steps span {
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255,255,255,.045);
  color: rgba(244,238,228,.55);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  animation: tpg-step-glow 3s ease-in-out infinite;
}
.tpg-spell-steps span:nth-child(2) { animation-delay: .6s; }
.tpg-spell-steps span:nth-child(3) { animation-delay: 1.2s; }
.tpg-generation h1 { max-width: 12.5ch; }
.tpg-generation p { max-width: 35ch; color: rgba(244,238,228,.72); }

@keyframes tpg-ring-orbit {
  from { transform: rotateX(64deg) rotateZ(0deg); }
  to { transform: rotateX(64deg) rotateZ(360deg); }
}
@keyframes tpg-ring-orbit-reverse {
  from { transform: rotateY(58deg) rotateZ(360deg); }
  to { transform: rotateY(58deg) rotateZ(0deg); }
}
@keyframes tpg-orb-levitate {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.025); }
}
@keyframes tpg-orb-sheen {
  0%, 100% { transform: rotate(0deg); opacity: .65; }
  50% { transform: rotate(14deg); opacity: 1; }
}
@keyframes tpg-sigil-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(.92); opacity: .35; }
  50% { transform: translate3d(0, -11px, 0) scale(1.05); opacity: .9; }
}
@keyframes tpg-step-glow {
  0%, 100% { border-color: rgba(255,255,255,.10); color: rgba(244,238,228,.45); }
  50% { border-color: color-mix(in srgb, var(--tpg-accent), transparent 55%); color: rgba(255,244,214,.86); }
}
@keyframes tpg-stardust-pan {
  from { background-position: 0 0, center; }
  to { background-position: 34px -34px, center; }
}

@media (max-width: 520px) {
  .tpg-loader-magic { width: 174px; height: 174px; }
  .tpg-loader-ring { inset: 20px; }
  .tpg-ring-two { inset: 36px; }
  .tpg-spell-steps span { font-size: 9px; padding: 5px 7px; }
}

.tpg-variant-message {
  border: 1px solid rgba(201,169,107,.28);
  background: rgba(201,169,107,.10);
  color: rgba(255,248,231,.92);
  border-radius: 18px;
  padding: 12px 14px;
  margin: 6px 0 14px;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
