.tem-invite {
  --tem-display: "Trilli0N Display", Georgia, serif;
  padding: clamp(1.15rem, 2.5vw, 2.5rem);
  background: radial-gradient(ellipse at 94% 7%, #44251c63, transparent 56%), linear-gradient(155deg, #18151a, #0c0b0e 68%);
  border-block: 1px solid #684338;
}

.tem-invite-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  margin: 0 .2rem clamp(1rem, 1.85vw, 1.8rem);
}

.tem-invite-head h2 {
  color: #f8ddbd;
  font: 600 clamp(2.3rem, 4.15vw, 4.5rem)/.98 var(--tem-display);
  letter-spacing: -.03em;
  text-wrap: balance;
}

.tem-invite-head p { margin-top: .65rem; color: #c6b3a9; font-size: .92rem; }
.tem-offer-mark {
  display: block;
  width: clamp(7.25rem, 14vw, 11rem);
  height: clamp(4.25rem, 8.8vw, 6.75rem);
  object-fit: cover;
  object-position: center 52%;
  flex: none;
}

.tem-offers {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  grid-template-areas: "personal clan" "lifetime clan";
  gap: .8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tem-offer {
  --plate-cut: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
  --plate-rim: #593f38;
  --plate-rgb: 179 94 56;
  --plate-body: #1e1719;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem 1.1rem;
  padding: clamp(.92rem, 2vw, 1.65rem);
  min-width: 0;
  position: relative;
  isolation: isolate;
}

.tem-offer::before,
.tem-offer::after {
  content: "";
  position: absolute;
  clip-path: var(--plate-cut);
  pointer-events: none;
}

.tem-offer::before {
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 50% 100%, rgb(var(--plate-rgb) / .92), transparent 68%) 0 0 / 200% 100%,
    linear-gradient(143deg, var(--plate-rim) 12%, #52352a 53%, #241f23 75%, var(--plate-rim));
  transition: filter .25s ease;
}

.tem-offer::after {
  inset: 1.25px;
  z-index: -1;
  background:
    radial-gradient(ellipse 72% 80% at 105% 106%, rgb(var(--plate-rgb) / .16), transparent),
    linear-gradient(143deg, var(--plate-body) 0, #130f13 55%, #100f13 100%);
  transition: inset .25s ease;
}

.tem-offer[data-offer="personal"] { grid-area: personal; }
.tem-offer[data-offer="lifetime"] {
  --plate-rim: #8f694a;
  --plate-rgb: 214 141 72;
  --plate-body: #281e1b;
  grid-area: lifetime;
}

.tem-offer[data-offer="clan"] {
  --plate-rim: #89533d;
  --plate-rgb: 219 99 53;
  --plate-body: #2b1b1d;
  grid-area: clan;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  padding: clamp(1.15rem, 2.7vw, 2.3rem);
}

.tem-offer:is(:hover, :focus-within)::before { filter: brightness(1.55); }
.tem-offer:is(:hover, :focus-within)::after { inset: 1.5px; }
.tem-offer-copy h3 {
  color: #f7dfc1;
  font: 600 clamp(2rem, 3.25vw, 3.55rem)/.95 var(--tem-display);
  letter-spacing: -.026em;
}

.tem-offer-copy p { margin-top: .5rem; color: #d3c1b6; font-size: clamp(.85rem, 1.15vw, 1.02rem); line-height: 1.45; }
.tem-offer[data-offer="clan"] .tem-offer-copy p { max-width: 36ch; }
.tem-offer-buy { min-width: 0; align-self: center; }
.tem-offer[data-offer="clan"] .tem-offer-buy { align-self: end; }
.tem-price-line { display: flex; align-items: baseline; gap: .55rem; white-space: nowrap; }
.tem-price-line strong {
  color: #ffd4a6;
  font: 600 clamp(1.95rem, 3.1vw, 3.45rem)/.95 "Trilli0N Display", Georgia, serif;
  letter-spacing: -.033em;
  font-variant-numeric: tabular-nums;
}

.tem-offer[data-offer="clan"] .tem-price-line strong { font-size: clamp(2.4rem, 4.3vw, 4.7rem); }
.tem-discount {
  color: #ffd5b0;
  background: #4b241a;
  border: 1px solid #9c593a;
  border-radius: 2px;
  padding: .14rem .36rem;
  font: 650 .74rem/1.35 "Segoe UI", sans-serif;
  white-space: nowrap;
}

.tem-base-price { margin-top: .35rem; color: #c6b2a8; font-size: .82rem; line-height: 1.35; white-space: nowrap; }
.tem-base-price del { margin-left: .25rem; color: #e0b69e; text-decoration-color: #c67b59; text-decoration-thickness: 1px; }

.tem-buy {
  width: min(100%, 14.75rem);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  position: relative;
  isolation: isolate;
  margin-top: .85rem;
  padding: .47rem .8rem .52rem;
  color: #281510;
  background: linear-gradient(105deg, #f5cea3, #d88455);
  border: 1px solid #f7bc8e;
  border-radius: 1px 9px 1px 1px;
  font: 650 .94rem/1.15 "Segoe UI", sans-serif;
  transition: background-color .22s ease, box-shadow .22s ease, color .22s ease;
}

.tem-buy::before {
  content: "";
  position: absolute;
  inset: auto 7% -1px;
  z-index: -1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f74b23, #ffefcc, #ff7738, transparent);
  filter: drop-shadow(0 0 5px #ff762c);
}

.tem-buy span { transition: transform .23s ease; }
.tem-buy:is(:hover, :focus-visible) { color: #21110d; background: #ffe0bb; box-shadow: 0 0 1.2rem #fb642344; }
.tem-buy:is(:hover, :focus-visible) span { transform: translate(2px, -2px); }

.tariff-view .tem-detail-price { text-align: right; }
.tariff-view .tem-detail-price .tem-price-line { justify-content: end; }
.tariff-view .tem-detail-price .tem-price-line strong {
  color: #ffd5aa;
  font: 600 clamp(2rem, 3.65vw, 4rem)/.99 "Trilli0N Display", Georgia, serif;
  font-variant-numeric: tabular-nums;
}

.tariff-view #lifetime-rate .tem-detail-price strong { font-size: clamp(1.65rem, 2.6vw, 2.65rem); }
.tariff-view .tem-detail-price .tem-base-price { max-width: none; margin-top: .22rem; color: #c6b2a8; }
.tariff-view .tariff-station { border-top-color: #a2684d; border-radius: 2px 14px 2px 2px; }
.tariff-view .tariff-navigation { background: radial-gradient(ellipse at 0 0, #5933216c, transparent 72%), #161318; }
.tariff-view .tariff-content .rate-lead { background: radial-gradient(ellipse at 104% 5%, #40251f78, transparent 64%), #191519; }
.tariff-view .tariff-content .rate-lead:focus-within { box-shadow: inset 2px 0 #cb8057; }

.site-footer .footer-mark {
  display: block;
  width: clamp(10.5rem, 19.5vw, 16.5rem);
  flex: 0 1 auto;
}

.footer-mark img { display: block; width: 100%; height: auto; }

@media (prefers-reduced-motion: no-preference) {
  .tem-offer::before { animation: tem-ember-trace 8s ease-in-out infinite alternate; }
  .tem-offer[data-offer="lifetime"]::before { animation-delay: -3.25s; }
  .tem-offer[data-offer="clan"]::before { animation-delay: -6.5s; }
  .is-arcane-offscreen .tem-offer::before, html.arcane-paused .tem-offer::before { animation-play-state: paused; }
  @keyframes tem-ember-trace {
    to { background-position: 100% 0, 0 0; }
  }
}
