/* TPower branding, media proportions and project-specific components. */
:root {
  --brand: #bf0001;
  --brand-bright: #dd0002;
  --brand-accent: #ff3535;
  --ink: #fafafa;
  --muted: #bbb8b9;
  --bg: #0b0b0c;
  --panel: #171718;
  --panel-soft: #202021;
  --line: rgba(206, 204, 205, 0.16);
}

body::before {
  background:
    radial-gradient(circle at 10% 5%, rgba(221, 0, 2, 0.11), transparent 30rem),
    radial-gradient(circle at 90% 40%, rgba(221, 0, 2, 0.06), transparent 34rem);
}

.skip-link {
  color: #fff;
  background: var(--brand);
}

.site-header {
  background: rgba(12, 12, 13, 0.9);
}

.desktop-nav {
  color: #dedcdd;
}

.desktop-nav a:hover,
.site-footer a:hover {
  color: var(--brand-accent);
}

.language-button {
  color: var(--muted);
}

.language-button.is-active {
  color: #fff;
  background: var(--brand);
}

.button {
  border: 1px solid var(--brand);
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 26px rgba(221, 0, 2, 0.2);
}

.button:hover {
  border-color: var(--brand-bright);
  background: var(--brand-bright);
  box-shadow: 0 14px 32px rgba(221, 0, 2, 0.3);
}

.button-ghost {
  color: var(--ink);
}

.button-ghost:hover {
  color: #fff;
}

.hero {
  background: #09090a;
}

.hero-carousel {
  background: #0b0b0c;
}

.hero-banner-link:focus-visible {
  outline: 3px solid var(--brand);
}

.hero-slide img {
  object-fit: contain;
}

.hero-carousel::after {
  background: linear-gradient(transparent, #0b0b0c);
}

.carousel-dot.is-active {
  background: var(--brand);
}

.eyebrow {
  color: var(--brand-accent);
}

.info-strip {
  color: #fff;
  background: var(--brand);
}

.section-alt {
  background: rgba(23, 23, 24, 0.72);
}

.tab-button {
  background:
    radial-gradient(circle at 50% 12%, rgba(221, 0, 2, 0.12), transparent 52%),
    linear-gradient(180deg, #202021 0%, #151516 100%);
}

.tab-button::after {
  background: var(--brand);
}

.tab-button:hover {
  border-color: rgba(221, 0, 2, 0.62);
  color: var(--ink);
}

.tab-button:hover .tab-icon img {
  filter: drop-shadow(0 10px 14px rgba(221, 0, 2, 0.25));
}

.tab-button.is-active {
  border-color: var(--brand-bright);
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 8%, rgba(221, 0, 2, 0.28), transparent 56%),
    linear-gradient(180deg, #282122 0%, #1c1819 100%);
  box-shadow:
    0 12px 28px rgba(221, 0, 2, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tab-button.is-active .tab-icon img {
  filter: drop-shadow(0 10px 15px rgba(221, 0, 2, 0.32));
}

.tab-button:focus-visible {
  outline: 3px solid var(--brand-accent);
}

.game-card:hover {
  border-color: var(--brand-bright);
}

.game-card img {
  height: auto;
  aspect-ratio: 203 / 307;
  background: unset;
}

.image-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color 180ms ease;
  position: unset;
  box-shadow: unset;
}

.image-card img {
  display: block;
  height: auto;
  aspect-ratio: 1000 / 451;
  object-fit: contain;
  transition: unset;
}

.image-card-cta {
  display: flex;
  min-height: 44px;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  position: unset;
  right: unset;
  bottom: unset;
  border: unset;
  border-radius: unset;
  background: unset;
  box-shadow: unset;
  transition: unset;
}

.image-card-cta b {
  color: var(--brand-accent);
  font-size: unset;
  line-height: unset;
}

.image-card:hover,
.image-card:focus-visible {
  border-color: var(--brand-bright);
}

.event-arrow {
  border: 1px solid rgba(221, 0, 2, 0.45);
  color: var(--brand-accent);
  background: rgba(23, 23, 24, 0.9);
}

.event-arrow:hover:not(:disabled) {
  border-color: var(--brand-bright);
  color: #fff;
  background: var(--brand);
}

.event-card h3 {
  color: var(--ink);
}

.event-card p {
  color: var(--muted);
}

@media (hover: hover) and (pointer: fine) {
  .event-card:hover {
    z-index: 1;
    border-color: rgba(221, 0, 2, 0.72);
    background: #222022;
    box-shadow:
      0 20px 42px rgba(0, 0, 0, 0.34),
      0 0 0 1px rgba(221, 0, 2, 0.14),
      0 0 28px rgba(221, 0, 2, 0.14);
    transform: translateY(-6px);
  }

  .event-card:hover img {
    filter: brightness(1.06) saturate(1.1);
    transform: scale(1.025);
  }

  .event-card:hover .event-card-copy {
    background: linear-gradient(180deg, rgba(221, 0, 2, 0.08), transparent);
  }
  .feature-card:hover {
    border-color: unset;
    background: unset;
    box-shadow: unset;
    transform: unset;
  }

  .feature-card:hover::after {
    opacity: unset;
    transform: unset;
  }

  .feature-card:hover > span {
    border-color: unset;
    color: unset;
    background: unset;
    transform: unset;
  }

  .feature-card:hover h3 {
    color: unset;
  }
}

.feature-card {
  background: linear-gradient(145deg, rgba(221, 0, 2, 0.08), rgba(23, 23, 24, 0.85));
}

.feature-card::after {
  background: var(--brand);
  box-shadow: 0 0 18px rgba(221, 0, 2, 0.75);
}

.feature-card > span {
  border: 1px solid rgba(221, 0, 2, 0.4);
  color: var(--brand-accent);
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover {
    border-color: rgba(221, 0, 2, 0.62);
    background: linear-gradient(145deg, rgba(221, 0, 2, 0.16), rgba(23, 23, 24, 0.94));
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34), 0 0 28px rgba(221, 0, 2, 0.08);
    transform: translateY(-7px);
  }

  .feature-card:hover::after {
    opacity: 1;
    transform: scaleX(1);
  }

  .feature-card:hover > span {
    border-color: var(--brand-bright);
    color: #fff;
    background: var(--brand);
    transform: scale(1.08);
  }

  .feature-card:hover h3 {
    color: var(--ink);
  }
}

.information-copy article {
  background: linear-gradient(145deg, rgba(221, 0, 2, 0.07), rgba(23, 23, 24, 0.92));
}

.information-copy h3 {
  color: var(--brand-accent);
}

.faq-list details[open] {
  border-color: rgba(221, 0, 2, 0.48);
}

.faq-list summary::after {
  border: 1px solid rgba(221, 0, 2, 0.32);
  color: var(--brand-accent);
}

.faq-index {
  color: #fff;
  background: var(--brand);
}

.faq-guide-answer img {
  border: 1px solid rgba(221, 0, 2, 0.2);
  background: #111112;
}

.seo-topic h2 {
  color: var(--brand-accent);
}

.hero-copy > p a, .seo-topic p a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.seo-card,
.seo-step {
  background: linear-gradient(145deg, rgba(221, 0, 2, 0.07), rgba(23, 23, 24, 0.94));
}

.seo-card h3,
.seo-step h3 {
  color: var(--ink);
}

.seo-step > span {
  color: var(--brand-accent);
}

.cta-trust-note {
  color: var(--muted);
}

.cta-box {
  border: 1px solid rgba(221, 0, 2, 0.32);
  background:
    radial-gradient(circle at 80% 0, rgba(221, 0, 2, 0.22), transparent 22rem),
    var(--panel);
}

.responsible-note {
  border-block: 1px solid rgba(221, 0, 2, 0.18);
  background: rgba(49, 16, 16, 0.25);
}

.responsible-note strong {
  color: var(--ink);
}

.site-footer {
  background: #09090a;
}

.footer-grid h2 {
  color: var(--brand-accent);
}

.footer-bottom {
  color: var(--muted);
}

.back-to-top {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 28px rgba(221, 0, 2, 0.28);
}

:focus-visible {
  outline: 3px solid var(--brand-accent);
}

@media (min-width: 721px) and (max-width: 960px) {
  .promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 18px) / 2);
  }
}

@media (max-width: 720px) {

  .hero-slide img {
    object-fit: contain;
  }

  .mobile-nav {
    background: rgba(27, 27, 29, 0.95);
  }

  .mobile-nav-icon {
    color: var(--ink);
  }

  .icon-contact i::after {
    background: rgba(27, 27, 29, 0.95);
  }

  .mobile-nav-logo img {
    border: 3px solid rgba(221, 0, 2, 0.45);
    background: #161617;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 24px rgba(221, 0, 2, 0.24);
  }
}

.faq-guide-answer > p { padding: 0 20px; color: var(--muted); }

@media (max-width: 720px), (pointer: coarse) {
  .language-button { min-width: 44px; min-height: 44px; }
  .button, .back-to-top { min-height: 44px; }
  .back-to-top { min-width: 44px; }
  .carousel-dots { gap: 0; bottom: 2px; }
  .carousel-dot, .carousel-dot.is-active {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 0;
    background: transparent;
  }
  .carousel-dot::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
  }
  .carousel-dot.is-active::after { width: 25px; background: var(--brand); }
}

.member-shortcuts { display: grid; gap: 1.15rem; }

.member-shortcuts h2 { margin: 0; }

.shortcut-links { display: flex; flex-wrap: wrap; gap: .55rem; }

.shortcut-links a { border: 1px solid var(--line); border-radius: .6rem; padding: .65rem .9rem; background: var(--panel); }

.shortcut-links a:hover { border-color: var(--brand-bright); }

.nav-play-icon { font-size: 24px; line-height: 1; }

.image-card:hover img {
  transform: unset;
}

.image-card:hover .image-card-cta {
  background: unset;
  transform: unset;
}

/* First-party artwork sits in the original template's media and directory slots. */
:root { --blue: var(--brand-accent); --blue-dark: var(--brand); }
.hero { background: #100d0e url('/assets/tpower/official/backdrop-curtain.webp') center 12% / cover; }
#promotions { background: linear-gradient(#100b0bdd,#100b0bed), url('/assets/tpower/official/backdrop-red.webp') center / cover; }
.cta-section { background: #141113 url('/assets/tpower/official/backdrop-dark.webp') center / cover; }
.desktop-action img { width: 16px; height: 20px; object-fit: contain; }
.mobile-nav-item > img { width: 23px; height: 23px; object-fit: contain; }
.tab-icon img { object-fit: contain; }
.event-card img { width: 100%; height: auto; aspect-ratio: 3.2 / 1; object-fit: contain; background: var(--panel); }
.event-card:has(img[src$="news-points.webp"]) img { aspect-ratio: 3.2 / 1; object-fit: contain; }
.event-card-copy { min-height: 0; }
.feature-card a { display: grid; gap: 8px; align-content: start; }
.feature-card a img { width: min(100%,170px); aspect-ratio: 1; height: auto; object-fit: contain; margin: auto; }
.feature-card h3 { margin: 0; text-align: center; }
.information-copy { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.information-copy article { padding: 8px; }
.information-copy img { width: 100%; height: auto; border-radius: 10px; }
.information-copy h3 { margin: 8px 4px 0; }
.resource-cover { display: grid; align-content: start; gap: 5px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.resource-cover img { width: 100%; height: auto; }
.resource-cover span { padding: 4px 12px 8px; font-weight: 650; }
.seo-card-wide { display: grid; align-items: start; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 0; background: none; border: none; }
.seo-trust-grid .resource-cover img { width: min(100%,180px); margin: auto; }
.seo-topic .button-row { justify-content: flex-start; }
.guide-original { display: inline-block; margin: 0 20px 12px; text-decoration: underline; }
.faq-guide-answer > a > img { width: auto; max-width: 100%; height: auto; margin: auto; }
.game-card[data-category=hot] { aspect-ratio: 203 / 307; display: flex; flex-direction: column; background: linear-gradient(#20191a,var(--panel)); }
.game-card[data-category=hot] img { width: 100%; aspect-ratio: 1; height: auto; }
.game-card[data-category=hot][hidden] { display: none; }
.hot-title { flex: 1; display: grid; align-content: center; padding: 6px 9px; font-size: clamp(.74rem,1.4vw,1rem); font-weight: 700; line-height: 1.25; }
@media (max-width: 620px) {
  .seo-card-wide { grid-template-columns: 1fr; }
  .information-copy { gap: 8px; }
  .feature-card img { max-height: 140px; }
}

.game-tabs { max-width: 100%; justify-content: safe center; }
.game-tabs .tab-button { flex-shrink: 0; }
@media (max-width: 960px) { .game-tabs { justify-content: flex-start; } }
