@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --tpm-ink: #102321;
  --tpm-ink-soft: #40514e;
  --tpm-felt: #0d3d36;
  --tpm-felt-deep: #072a27;
  --tpm-paper: #f7f1e7;
  --tpm-paper-deep: #eadfce;
  --tpm-card: #fffdf8;
  --tpm-gold: #d5ac58;
  --tpm-accent: #c9563e;
  --tpm-accent-strong: #9e3725;
  --tpm-line: rgba(16, 35, 33, 0.16);
  --tpm-shadow: 0 26px 70px rgba(7, 42, 39, 0.18);
  --tpm-radius: 22px;
  --tpm-max: 1160px;
}

body.site-one {
  --tpm-felt: #173b4d;
  --tpm-felt-deep: #0b2733;
  --tpm-gold: #d6a763;
  --tpm-accent: #bd4c37;
}

body.site-online {
  --tpm-felt: #40312c;
  --tpm-felt-deep: #251b18;
  --tpm-gold: #e0b859;
  --tpm-accent: #a94737;
}

html {
  scroll-behavior: smooth;
}

body.site-core,
body.site-core button,
body.site-core input,
body.site-core textarea,
body.site-core select {
  font-family: "Manrope", sans-serif;
}

body.site-core {
  margin: 0;
  color: var(--tpm-ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(213, 172, 88, 0.14), transparent 26rem),
    var(--tpm-paper);
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.site-core *,
body.site-core *::before,
body.site-core *::after {
  box-sizing: border-box;
}

body.site-core img {
  max-width: 100%;
  height: auto;
}

body.site-core a {
  color: var(--tpm-accent-strong);
  text-underline-offset: 0.2em;
}

body.site-core a:hover {
  text-decoration-thickness: 2px;
}

body.site-core :focus-visible {
  outline: 3px solid var(--tpm-gold);
  outline-offset: 4px;
  border-radius: 6px;
}

.tpm-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 10px 14px;
  color: #fff !important;
  background: var(--tpm-felt-deep);
  transform: translateY(-160%);
}

.tpm-skip-link:focus {
  transform: none;
}

.tpm-trust-bar {
  position: relative;
  z-index: 40;
  padding: 9px 18px;
  color: #fef8e9;
  background: var(--tpm-felt-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-align: center;
  text-transform: uppercase;
}

.tpm-header {
  position: sticky;
  top: 0;
  z-index: 35;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 42, 39, 0.94);
  backdrop-filter: blur(16px);
}

.site-one .tpm-header,
.site-online .tpm-header {
  background: color-mix(in srgb, var(--tpm-felt-deep) 94%, transparent);
}

.tpm-header__inner {
  width: min(calc(100% - 36px), var(--tpm-max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tpm-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff !important;
  text-decoration: none;
}

.tpm-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 11px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.24));
}

.tpm-brand__text {
  display: grid;
  line-height: 1.06;
}

.tpm-brand__text strong {
  font-family: "Fraunces", serif;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.tpm-brand__text small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.tpm-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tpm-nav a {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.tpm-nav a:hover,
.tpm-nav a[aria-current="page"] {
  color: #fff !important;
}

.tpm-nav__download,
.tpm-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff !important;
  background: var(--tpm-accent);
  box-shadow: 0 14px 30px rgba(158, 55, 37, 0.24);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.tpm-nav__download {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 0.78rem;
}

.tpm-button:hover,
.tpm-nav__download:hover {
  color: #fff !important;
  background: var(--tpm-accent-strong);
  box-shadow: 0 18px 36px rgba(158, 55, 37, 0.32);
  transform: translateY(-2px);
}

.tpm-button--quiet {
  color: var(--tpm-ink) !important;
  background: transparent;
  border-color: var(--tpm-line);
  box-shadow: none;
}

.tpm-button--quiet:hover {
  color: var(--tpm-ink) !important;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: none;
}

.tpm-shell {
  width: min(calc(100% - 36px), var(--tpm-max));
  margin-inline: auto;
}

.tpm-hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(112deg, rgba(7, 42, 39, 0.98) 0%, rgba(13, 61, 54, 0.94) 57%, rgba(13, 61, 54, 0.72) 100%),
    var(--tpm-felt);
}

.tpm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cpath d='M45 16c-7 10-16 18-16 29 0 9 7 16 16 16s16-7 16-16c0-11-9-19-16-29Z' fill='none' stroke='%23f7f1e7' stroke-width='1'/%3E%3Ccircle cx='45' cy='45' r='3' fill='%23f7f1e7'/%3E%3C/svg%3E");
}

.tpm-hero__grid {
  position: relative;
  z-index: 2;
  min-height: 700px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: 70px;
  padding: 80px 0 90px;
}

.tpm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--tpm-gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tpm-eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
}

.tpm-hero h1,
.tpm-page-hero h1,
.tpm-section-heading,
.tpm-prose h1,
.tpm-prose h2 {
  font-family: "Fraunces", serif;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.tpm-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6.7rem);
  line-height: 0.96;
}

.tpm-hero h1 em {
  color: var(--tpm-gold);
  font-style: normal;
}

.tpm-hero__lede {
  max-width: 660px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
}

.tpm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.tpm-hero .tpm-button--quiet {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.25);
}

.tpm-hero .tpm-button--quiet:hover {
  background: rgba(255, 255, 255, 0.08);
}

.tpm-file-note {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.78rem;
}

.tpm-card-fan {
  position: relative;
  min-height: 430px;
  perspective: 1100px;
}

.tpm-playing-card {
  position: absolute;
  top: 48%;
  left: 50%;
  width: min(250px, 62vw);
  aspect-ratio: 0.68;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 20px;
  background: linear-gradient(145deg, #fffdf8, #e9dbc6);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.35);
  transform-origin: 50% 110%;
}

.tpm-playing-card img {
  width: 72%;
  max-height: 74%;
  object-fit: contain;
}

.tpm-playing-card::before,
.tpm-playing-card::after {
  position: absolute;
  color: var(--tpm-accent);
  font-family: "Fraunces", serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.tpm-playing-card::before {
  content: "A\A◆";
  top: 18px;
  left: 18px;
  white-space: pre;
}

.tpm-playing-card::after {
  content: "A\A◆";
  right: 18px;
  bottom: 18px;
  white-space: pre;
  transform: rotate(180deg);
}

.tpm-playing-card--left {
  transform: translate(-62%, -50%) rotate(-15deg);
}

.tpm-playing-card--middle {
  z-index: 2;
  transform: translate(-50%, -54%) rotate(1deg);
}

.tpm-playing-card--right {
  transform: translate(-38%, -48%) rotate(17deg);
}

.tpm-playing-card--left img,
.tpm-playing-card--right img {
  opacity: 0.34;
  filter: grayscale(1);
}

.tpm-status-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: -44px;
  overflow: hidden;
  border: 1px solid var(--tpm-line);
  border-radius: var(--tpm-radius);
  background: var(--tpm-card);
  box-shadow: var(--tpm-shadow);
}

.tpm-status-item {
  min-height: 132px;
  padding: 26px 30px;
  border-right: 1px solid var(--tpm-line);
}

.tpm-status-item:last-child {
  border-right: 0;
}

.tpm-status-item small {
  display: block;
  margin-bottom: 7px;
  color: var(--tpm-ink-soft);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.tpm-status-item strong {
  font-family: "Fraunces", serif;
  font-size: clamp(1.2rem, 2.1vw, 1.72rem);
  line-height: 1.2;
}

.tpm-section {
  padding: 100px 0;
}

.tpm-section--tight {
  padding: 68px 0;
}

.tpm-section--dark {
  color: #fff;
  background: var(--tpm-felt-deep);
}

.tpm-section-heading {
  max-width: 800px;
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 1.02;
}

.tpm-section-intro {
  max-width: 720px;
  margin: 0;
  color: var(--tpm-ink-soft);
  font-size: 1.05rem;
}

.tpm-section--dark .tpm-section-intro {
  color: rgba(255, 255, 255, 0.68);
}

.tpm-grid-3,
.tpm-grid-2 {
  display: grid;
  gap: 20px;
  margin-top: 42px;
}

.tpm-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tpm-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tpm-info-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--tpm-line);
  border-radius: var(--tpm-radius);
  background: rgba(255, 253, 248, 0.8);
}

.tpm-info-card__number {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--tpm-felt);
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
}

.tpm-info-card h3 {
  margin: 0 0 10px;
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
  line-height: 1.2;
}

.tpm-info-card p {
  margin: 0;
  color: var(--tpm-ink-soft);
}

.tpm-checklist {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.tpm-checklist li {
  position: relative;
  padding-left: 30px;
}

.tpm-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--tpm-gold);
  font-weight: 900;
}

.tpm-checklist--limits li::before {
  content: "—";
  color: var(--tpm-accent);
}

.tpm-fact-table {
  width: 100%;
  margin-top: 34px;
  overflow: hidden;
  border-spacing: 0;
  border: 1px solid var(--tpm-line);
  border-radius: var(--tpm-radius);
  background: var(--tpm-card);
}

.tpm-fact-table th,
.tpm-fact-table td {
  padding: 17px 22px;
  border-bottom: 1px solid var(--tpm-line);
  text-align: left;
  vertical-align: top;
}

.tpm-fact-table tr:last-child th,
.tpm-fact-table tr:last-child td {
  border-bottom: 0;
}

.tpm-fact-table th {
  width: 30%;
  color: var(--tpm-ink-soft);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tpm-notice {
  padding: 28px 30px;
  border-left: 5px solid var(--tpm-gold);
  border-radius: 0 var(--tpm-radius) var(--tpm-radius) 0;
  background: #fff8df;
}

.tpm-notice strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
}

.tpm-notice p:last-child {
  margin-bottom: 0;
}

.tpm-page-hero {
  padding: 88px 0 76px;
  color: #fff;
  background: var(--tpm-felt);
}

.tpm-page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.98;
}

.tpm-page-hero p {
  max-width: 700px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.07rem;
}

.tpm-prose {
  width: min(calc(100% - 36px), 860px);
  margin: 0 auto;
  padding: 76px 0 110px;
}

.tpm-prose h1 {
  font-size: 3rem;
}

.tpm-prose h2 {
  margin: 2.2em 0 0.55em;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.tpm-prose h3 {
  margin-top: 2em;
  font-size: 1.2rem;
}

.tpm-prose p,
.tpm-prose li {
  color: #263b38;
}

.tpm-prose li + li {
  margin-top: 0.55em;
}

.tpm-byline,
.tpm-editorial-note {
  margin: 28px 0;
  padding: 22px 24px;
  border: 1px solid var(--tpm-line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.86);
}

.tpm-byline {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 15px;
}

.tpm-byline__mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--tpm-felt);
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
}

.tpm-byline p,
.tpm-editorial-note p {
  margin: 0;
}

.tpm-byline small,
.tpm-editorial-note small {
  color: var(--tpm-ink-soft);
}

.tpm-faq {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.tpm-faq details {
  border: 1px solid var(--tpm-line);
  border-radius: 16px;
  background: var(--tpm-card);
}

.tpm-faq summary {
  padding: 20px 22px;
  font-weight: 800;
  cursor: pointer;
}

.tpm-faq details p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--tpm-ink-soft);
}

.tpm-footer {
  color: rgba(255, 255, 255, 0.72);
  background: var(--tpm-felt-deep);
}

.tpm-footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 48px;
  padding: 68px 0 48px;
}

.tpm-footer h2,
.tpm-footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-family: "Fraunces", serif;
}

.tpm-footer h2 {
  font-size: 1.8rem;
}

.tpm-footer h3 {
  font-size: 1.1rem;
}

.tpm-footer p {
  margin: 0;
  font-size: 0.88rem;
}

.tpm-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tpm-footer li + li {
  margin-top: 8px;
}

.tpm-footer a {
  color: rgba(255, 255, 255, 0.76) !important;
  font-size: 0.88rem;
}

.tpm-footer__bottom {
  padding: 20px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.74rem;
}

.tpm-mobile-download {
  display: none;
}

.tpm-back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--tpm-felt);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 160ms ease;
}

.tpm-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* Legacy page bridge: preserve article content while replacing weak global chrome. */
.legacy-core #containerSticky,
.legacy-core .index-header-yindu,
.legacy-core footer:not(.tpm-footer),
.legacy-core .fd,
.legacy-core .sub-nav {
  display: none !important;
}

.legacy-core .tpm-legacy-main {
  display: block;
}

.legacy-core .tpm-legacy-main > section,
.legacy-core .tpm-legacy-main > article,
.legacy-core .tpm-legacy-main > main,
.legacy-core .article-content,
.legacy-core .blog-content,
.legacy-core .container {
  max-width: 960px;
  margin-inline: auto;
}

.legacy-core .article-content,
.legacy-core .blog-content {
  padding-inline: 18px;
}

.legacy-core .tpm-editorial-note {
  width: min(calc(100% - 36px), 900px);
  margin: 40px auto;
}

.legacy-core .download-btn,
.legacy-core [data-apk-download] {
  cursor: pointer;
}

@media (max-width: 900px) {
  .tpm-nav a:not(.tpm-nav__download) {
    display: none;
  }

  .tpm-hero,
  .tpm-hero__grid {
    min-height: auto;
  }

  .tpm-hero__grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 68px 0 120px;
  }

  .tpm-card-fan {
    min-height: 330px;
  }

  .tpm-playing-card {
    width: 190px;
  }

  .tpm-status-grid {
    grid-template-columns: 1fr;
    margin-top: -62px;
  }

  .tpm-status-item {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--tpm-line);
  }

  .tpm-grid-3,
  .tpm-grid-2,
  .tpm-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .tpm-trust-bar {
    padding-inline: 10px;
    font-size: 0.64rem;
    letter-spacing: 0.05em;
  }

  .tpm-header__inner {
    min-height: 64px;
  }

  .tpm-brand__text small,
  .tpm-nav__download {
    display: none;
  }

  .tpm-brand img {
    width: 38px;
    height: 38px;
  }

  .tpm-hero h1 {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .tpm-card-fan {
    min-height: 290px;
  }

  .tpm-playing-card {
    width: 165px;
  }

  .tpm-section {
    padding: 74px 0;
  }

  .tpm-grid-3,
  .tpm-grid-2 {
    margin-top: 30px;
  }

  .tpm-fact-table,
  .tpm-fact-table tbody,
  .tpm-fact-table tr,
  .tpm-fact-table th,
  .tpm-fact-table td {
    display: block;
    width: 100%;
  }

  .tpm-fact-table th {
    padding-bottom: 5px;
    border-bottom: 0;
  }

  .tpm-fact-table td {
    padding-top: 0;
  }

  .tpm-mobile-download {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 32;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    color: #fff;
    background: rgba(7, 42, 39, 0.96);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px);
  }

  .tpm-mobile-download span {
    font-size: 0.78rem;
    font-weight: 700;
  }

  .tpm-mobile-download .tpm-button {
    min-height: 40px;
    padding: 9px 14px;
    font-size: 0.76rem;
  }

  .tpm-back-to-top {
    bottom: 86px;
  }

  .tpm-footer__bottom {
    padding-bottom: 110px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .tpm-hero__copy {
    animation: tpm-rise 620ms both ease-out;
  }

  .tpm-playing-card--left {
    animation: tpm-card-left 720ms 90ms both cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .tpm-playing-card--middle {
    animation: tpm-card-middle 720ms 160ms both cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .tpm-playing-card--right {
    animation: tpm-card-right 720ms 230ms both cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  @keyframes tpm-rise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes tpm-card-left {
    from { opacity: 0; transform: translate(-56%, -40%) rotate(-2deg); }
    to { opacity: 1; transform: translate(-62%, -50%) rotate(-15deg); }
  }

  @keyframes tpm-card-middle {
    from { opacity: 0; transform: translate(-50%, -38%) rotate(0); }
    to { opacity: 1; transform: translate(-50%, -54%) rotate(1deg); }
  }

  @keyframes tpm-card-right {
    from { opacity: 0; transform: translate(-44%, -40%) rotate(2deg); }
    to { opacity: 1; transform: translate(-38%, -48%) rotate(17deg); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
