/* Y9 WordPress Theme - ported from Next.js globals.css */
:root {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.y9-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(177, 108, 255, 0.28), transparent 28rem),
    radial-gradient(circle at 85% 26%, rgba(250, 204, 21, 0.13), transparent 24rem),
    linear-gradient(180deg, #2d1b4e 0%, #220036 42%, #12001d 100%);
}

.y9-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.y9-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(250, 204, 21, 0.2);
  background: rgba(26, 0, 40, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.y9-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
}

.y9-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.y9-logo-link img {
  display: block;
  height: 64px;
  width: auto;
  object-fit: contain;
}

.y9-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.y9-nav a {
  position: relative;
  padding: 12px 20px;
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: 16px;
  color: transparent;
  background: linear-gradient(to right, #fef08a, #facc15, #fef9c3);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.y9-nav a:hover {
  transform: translateY(-2px);
  border-color: rgba(253, 224, 71, 0.7);
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.25);
}

.y9-nav-mobile { display: none; }

.y9-auth {
  display: flex;
  align-items: center;
  gap: 12px;
}

.y9-auth a {
  display: inline-block;
  padding: 16px 32px;
  border: 1px solid rgba(253, 224, 71, 0.3);
  border-radius: 16px;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.y9-auth a:hover { transform: scale(1.05); }
.y9-auth .login { color: #5c00a3; background: #ffffff; box-shadow: 0 0 30px rgba(255,255,255,0.25); }
.y9-auth .signup { color: #ffffff; background: linear-gradient(to right, #8c52ff, #b16cff); box-shadow: 0 0 30px rgba(177,108,255,0.4); }

.y9-floating {
  position: fixed;
  right: 20px;
  top: 50%;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(-50%);
}

.y9-floating a {
  display: block;
  transition: transform 0.2s ease;
}

.y9-floating a:hover { transform: scale(1.1); }

.y9-floating span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  overflow: hidden;
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 999px;
  background: #2a004a;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.25);
}

.y9-floating img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
}

.promo-section {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.promo-section h1 {
  margin: 0 0 32px;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 24px rgba(250, 204, 21, 0.42), 0 10px 34px rgba(0,0,0,0.45);
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.promo-card {
  overflow: hidden;
  border: 1px solid rgba(192, 132, 252, 0.4);
  border-radius: 24px;
  background: rgba(20, 0, 32, 0.95);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.promo-card:hover {
  transform: translateY(-6px);
  border-color: rgba(250, 204, 21, 0.72);
  box-shadow: 0 24px 80px rgba(177,108,255,0.28), 0 0 26px rgba(250,204,21,0.12);
}

.promo-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.promo-image {
  position: relative;
  width: 100%;
  aspect-ratio: 900 / 470;
  overflow: hidden;
  background: #1a0027;
}

.promo-image img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
  object-position: center;
}

.promo-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.promo-copy h2 {
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
}

.promo-copy span {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 8px 14px;
  border: 1px solid rgba(192, 132, 252, 0.4);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(to right, #3b0066, #5b00a0);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.y9-footer {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid rgba(250, 204, 21, 0.2);
  background: linear-gradient(#1a0027, #12001d);
}

.footer-glow {
  position: absolute;
  inset: -30% -10% auto;
  height: 260px;
  background: radial-gradient(circle, rgba(177,108,255,0.22), transparent 60%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1fr;
  gap: 36px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 34px;
}

.footer-brand img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.footer-brand p {
  max-width: 420px;
  margin: 18px 0 0;
  color: #e8ddf9;
  font-size: 15px;
  line-height: 1.8;
}

.footer-column h3 {
  margin: 0 0 16px;
  color: #facc15;
  font-size: 18px;
  font-weight: 900;
}

.footer-column a {
  display: block;
  margin: 10px 0;
  color: #e8ddf9;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-column a:hover { color: #fde047; }

.footer-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #a1a1aa;
  font-size: 14px;
}

.footer-bottom p { margin: 0; }
.footer-bottom div { display: flex; gap: 12px; color: #fde047; }

@media (max-width: 1100px) {
  .y9-header-inner { grid-template-columns: 1fr auto; }
  .y9-header-inner .y9-nav { display: none; }
  .y9-nav-mobile {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 14px;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .y9-nav-mobile::-webkit-scrollbar {
    display: none;
  }
  .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .y9-header-inner { gap: 12px; padding: 10px 0; }
  .y9-logo-link img { height: 40px; }
  .y9-auth { gap: 8px; }
  .y9-auth a { padding: 8px 16px; border-radius: 14px; font-size: 14px; }
  .y9-nav-mobile { gap: 8px; justify-content: center; }
  .y9-nav a { padding: 9px 14px; border-radius: 14px; font-size: 15px; white-space: nowrap; }
  .y9-floating {
    right: 50%;
    top: auto;
    bottom: 14px;
    flex-direction: row;
    transform: translateX(50%);
  }
  .y9-floating span { width: 40px; height: 40px; }
  .promo-section { padding: 28px 0 64px; }
  .promo-section h1 { margin-bottom: 22px; }
  .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .promo-copy { padding: 13px; }
  .promo-copy h2 { font-size: 17px; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; padding: 42px 0 24px; }
  .footer-brand img { height: 44px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding-bottom: 82px; }
}

.y9-hero {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid rgba(250, 204, 21, 0.25);
  border-radius: 30px;
  background: rgba(20, 0, 32, 0.72);
  box-shadow: 0 30px 90px rgba(0,0,0,0.35), 0 0 60px rgba(177,108,255,0.18);
}

.hero-slider {
  display: flex;
  width: 300%;
  animation: y9-banner-slide 18s infinite;
}

.hero-slider img {
  display: block;
  width: 33.3333%;
  aspect-ratio: 1280 / 520;
  object-fit: cover;
}

@keyframes y9-banner-slide {
  0%, 28% { transform: translateX(0); }
  34%, 62% { transform: translateX(-33.3333%); }
  68%, 96% { transform: translateX(-66.6666%); }
  100% { transform: translateX(0); }
}

.y9-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 82px;
}

.y9-section-title {
  margin: 46px auto 24px;
  text-align: center;
}

.y9-section-title p,
.eyebrow {
  margin: 0 0 10px;
  color: #fde047;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.y9-section-title h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 0 24px rgba(250, 204, 21, 0.32);
}

.y9-section-title span {
  display: block;
  margin-top: 12px;
  color: #e8ddf9;
}

.y9-prose {
  margin: 22px auto;
  padding: 26px;
  border: 1px solid rgba(192,132,252,0.35);
  border-radius: 26px;
  color: #e8ddf9;
  background: rgba(20, 0, 32, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.y9-prose h3 {
  margin: 0 0 12px;
  color: #fde047;
  font-size: 24px;
  font-weight: 900;
}

.y9-prose p {
  margin: 10px 0;
  font-size: 17px;
  line-height: 1.9;
}

.feature-grid,
.review-grid,
.mini-grid {
  display: grid;
  gap: 22px;
}

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

.game-tile,
.review-card,
.mini-grid article {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(192,132,252,0.4);
  border-radius: 24px;
  color: #ffffff;
  background: rgba(20, 0, 32, 0.82);
  text-decoration: none;
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.game-tile:hover,
.review-card:hover {
  transform: translateY(-5px);
  border-color: rgba(250,204,21,0.68);
  box-shadow: 0 24px 70px rgba(177,108,255,0.24);
}

.game-tile img,
.review-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.game-tile h3,
.review-card h3,
.mini-grid h3 {
  margin: 16px 18px 8px;
  color: #fde047;
  font-size: 20px;
  font-weight: 900;
}

.game-tile p,
.mini-grid p {
  margin: 0 18px 20px;
  color: #e8ddf9;
  line-height: 1.7;
}

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

.center {
  display: flex;
  justify-content: center;
  margin: 24px 0 4px;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid rgba(250,204,21,0.5);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(to right, #3b0066, #5b00a0);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 0 26px rgba(177,108,255,0.25);
}

.trust-block {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 34px;
  align-items: center;
  margin-top: 58px;
}

.trust-block > img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  filter: drop-shadow(0 22px 45px rgba(0,0,0,0.35));
}

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

.mini-grid article {
  padding: 18px;
}

.payment-row,
.contact-row,
.provider-grid {
  display: grid;
  gap: 18px;
  align-items: center;
  justify-items: center;
}

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

.payment-row img,
.contact-row img,
.provider-grid img {
  border: 1px solid rgba(192,132,252,0.32);
  border-radius: 22px;
  background: rgba(255,255,255,0.08);
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
}

.payment-row img { width: 160px; padding: 20px; }
.contact-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.contact-row img { width: 112px; padding: 18px; }
.provider-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.provider-grid img { width: 110px; aspect-ratio: 1; object-fit: contain; padding: 16px; }

.y9-detail {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 84px;
  text-align: center;
}

.y9-detail h1 {
  margin: 0 0 26px;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 24px rgba(250,204,21,0.42), 0 10px 34px rgba(0,0,0,0.45);
}

.y9-detail > img {
  display: block;
  width: min(760px, 100%);
  margin: 0 auto 26px;
  border: 1px solid rgba(250,204,21,0.28);
  border-radius: 28px;
  background: rgba(20,0,32,0.82);
  box-shadow: 0 24px 80px rgba(0,0,0,0.34);
}

.promo-detail-subtitle {
  margin: -12px 0 26px;
  color: #7c3aed;
  font-size: 20px;
  font-weight: 800;
}

.promo-article {
  text-align: left;
}

.promo-article > img {
  display: block;
  width: min(760px, 100%);
  margin: 28px auto;
  border-radius: 18px;
  background: #e8ddf9;
}

.promo-article h2 {
  margin: 34px 0 16px;
  color: #d09a00;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.2;
}

.promo-article ul {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.promo-article li {
  position: relative;
  padding-left: 24px;
  color: #5b4b73;
  font-size: 17px;
  line-height: 1.8;
}

.promo-article li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: #d09a00;
  font-weight: 900;
}

.article-detail {
  width: min(1120px, calc(100% - 32px));
}

.article-detail h1 {
  color: #2d1b4e;
  text-shadow: none;
}

.article-detail > img {
  width: min(840px, 100%);
  border: 8px solid #ffffff;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(45, 27, 78, 0.16);
}

.article-body {
  position: relative;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 30px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(140, 82, 255, 0.38), rgba(250, 204, 21, 0.34)) border-box;
  box-shadow: 0 24px 70px rgba(45, 27, 78, 0.12);
  text-align: left;
}

.article-body > p {
  margin: 0 0 16px;
  padding: 18px 20px;
  border: 1px solid rgba(124, 58, 237, 0.10);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbf8ff 100%);
  box-shadow: 0 10px 24px rgba(45, 27, 78, 0.05);
}

.article-body > p:first-child,
.article-body > p:last-child {
  border-color: rgba(208, 154, 0, 0.22);
  background: linear-gradient(135deg, #fff8dc, #f3ecff);
}

.article-keywords a {
  display: inline-flex;
  margin: 0 2px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #5b21b6;
  background: rgba(140, 82, 255, 0.10);
  font-weight: 900;
  text-decoration: none;
}

.article-keywords a:hover {
  color: #ffffff;
  background: #7c3aed;
}

.related-articles {
  width: min(860px, 100%);
  margin: 28px auto 0;
  padding: 20px;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(45, 27, 78, 0.09);
  text-align: left;
}

.related-articles-heading {
  margin-bottom: 14px;
  text-align: center;
}

.related-articles-heading p {
  margin: 0 0 6px;
  color: #7c3aed;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.related-articles-heading h2 {
  margin: 0;
  color: #2d1b4e;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
}

.related-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.related-article-card {
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 14px;
  color: #2d1b4e;
  background: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(45, 27, 78, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.related-article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(208, 154, 0, 0.42);
  box-shadow: 0 18px 38px rgba(45, 27, 78, 0.14);
}

.related-article-card img {
  display: block;
  width: 100%;
  max-height: 132px;
  object-fit: cover;
  background: #e8ddf9;
}

.related-article-card span {
  display: block;
  padding: 9px 10px 11px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .y9-game-grid,
  .review-grid,
  .mini-grid,
  .payment-row,
  .contact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trust-block { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .y9-hero { margin-top: 16px; border-radius: 20px; }
  .y9-content { padding-top: 28px; }
  .y9-game-grid,
  .review-grid,
  .mini-grid,
  .payment-row,
  .contact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .provider-grid img { width: 86px; padding: 12px; }
  .y9-prose { padding: 18px; }
  .article-body > p { padding: 14px; }
  .related-articles { padding: 20px; }
  .related-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.faq-list {
  display: grid;
  gap: 14px;
  margin: 22px auto 0;
}

.faq-item {
  overflow: hidden;
  border: 1px solid rgba(192, 132, 252, 0.38);
  border-radius: 18px;
  background: rgba(20, 0, 32, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  color: #ffffff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #2d0052;
  background: #fde047;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.35);
}

.faq-item[open] summary span {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: #e8ddf9;
  font-size: 16px;
  line-height: 1.8;
  text-align: left;
}

.category-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 30px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 34px;
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(26,0,40,0.92), rgba(58,0,98,0.72));
  box-shadow: 0 30px 90px rgba(0,0,0,0.36), 0 0 60px rgba(177,108,255,0.18);
}

.category-hero h1 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 26px rgba(250,204,21,0.38);
}

.category-hero span {
  display: block;
  margin-bottom: 24px;
  color: #e8ddf9;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.7;
}

.category-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(192,132,252,0.36);
  border-radius: 28px;
  box-shadow: 0 22px 70px rgba(0,0,0,0.34);
}

.category-content {
  padding-top: 26px;
}

.link-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.category-content .game-tile img {
  background: rgba(255,255,255,0.06);
}

@media (max-width: 900px) {
  .category-hero {
    grid-template-columns: 1fr;
    padding: 22px;
    border-radius: 26px;
  }
}

/* Homepage fidelity pass: match y9win.win light page flow. */
body {
  background: #f3ecff;
}

.y9-page {
  color: #2d1b4e;
  background: #f3ecff;
}

.y9-page::before {
  display: none;
}

.y9-hero {
  width: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #e8ddf9;
  box-shadow: none;
}

.hero-slider img {
  width: 33.3333%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1280 / 519;
  object-fit: cover;
}

.y9-content {
  width: min(1400px, calc(100% - 32px));
  padding: 0 24px 64px;
}

.y9-section-title {
  margin: 0 auto;
  padding: 48px 0 24px;
}

.y9-section-title h2 {
  color: #2d1b4e;
  text-shadow: none;
}

.y9-section-title p,
.eyebrow {
  color: #7c3aed;
}

.y9-section-title span,
.y9-prose,
.y9-prose p,
.game-tile p,
.mini-grid p,
.footer-brand p,
.footer-column a {
  color: #5b4b73;
}

.y9-prose {
  margin: 0 auto 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.y9-prose h3 {
  color: #2d1b4e;
}

.y9-prose p {
  font-size: 18px;
  line-height: 1.9;
}

.y9-game-grid,
.review-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.game-tile,
.review-card {
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(45, 27, 78, 0.10);
}

.game-tile img,
.review-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.game-tile h3,
.review-card h3,
.mini-grid h3 {
  color: #2d1b4e;
}

.y9-content .promo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.y9-content .promo-card {
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(45, 27, 78, 0.10);
}

.y9-content .promo-image {
  aspect-ratio: 4 / 3;
  background: #e8ddf9;
}

.y9-content .promo-image img {
  padding: 4px;
  object-fit: contain;
}

.promo-copy {
  gap: 8px;
}

.promo-copy time {
  color: #7c3aed;
  font-size: 13px;
  font-weight: 700;
}

.promo-copy h2 {
  color: #2d1b4e;
  font-size: 18px;
}

.promo-copy p {
  margin: 0;
  color: #6b5b83;
  font-size: 14px;
  line-height: 1.55;
}

.trust-block {
  grid-template-columns: 384px 1fr;
  margin-top: 48px;
}

.trust-block > img {
  max-height: 543px;
}

.mini-grid article,
.faq-item {
  border-color: rgba(124, 58, 237, 0.18);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(45, 27, 78, 0.08);
}

.faq-item summary {
  color: #2d1b4e;
}

.faq-item p {
  color: #5b4b73;
}

.payment-row img {
  width: 96px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.contact-row img {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

.provider-grid img {
  width: 86px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.y9-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #1a0027;
}

.y9-footer .footer-brand p,
.y9-footer .footer-column a,
.y9-footer .footer-bottom {
  color: #e8ddf9;
}

@media (max-width: 1100px) {
  .y9-content .promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .y9-content {
    padding-left: 0;
    padding-right: 0;
  }
  .y9-game-grid,
  .review-grid,
  .y9-content .promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trust-block {
    grid-template-columns: 1fr;
  }
}

/* Category hero fidelity pass: original category pages use a full-width purple stage. */
.category-hero {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: none;
  min-height: 435px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #eee7fb 0%, #c9b8e3 35%, #675585 100%);
  box-shadow: none;
}

.category-hero-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4px;
  pointer-events: none;
}

.category-hero-media img,
.category-hero > img {
  width: min(430px, 48vw);
  height: min(430px, 48vw);
  aspect-ratio: 1;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.category-hero-copy {
  position: absolute;
  left: 28px;
  bottom: 34px;
  z-index: 2;
  max-width: 560px;
  color: #ffffff;
}

.category-hero-copy h1 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 18px rgba(0,0,0,0.3);
}

.category-hero-copy p {
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-shadow: 0 3px 12px rgba(0,0,0,0.25);
}

.category-content {
  width: min(1400px, calc(100% - 32px));
  padding: 0 24px 64px;
}

.category-content .y9-section-title {
  text-align: left;
}

.category-content .y9-section-title h2 {
  color: #d09a00;
  font-size: 34px;
}

.promo-hero .category-hero-media img {
  max-width: min(560px, 52vw);
  max-height: 430px;
}

@media (max-width: 900px) {
  .category-hero {
    min-height: 390px;
  }
  .category-hero-media img,
  .category-hero > img {
    width: min(420px, 74vw);
    height: min(420px, 74vw);
  }
}

@media (max-width: 640px) {
  .category-hero {
    min-height: 330px;
  }
  .category-hero-copy {
    left: 20px;
    right: 20px;
    bottom: 24px;
  }
  .category-hero-copy h1 {
    font-size: 34px;
  }
  .category-hero-copy p {
    font-size: 14px;
  }
  .promo-hero .category-hero-media img {
    max-width: min(420px, 78vw);
  }
}

/* Image fidelity pass: let image boxes follow the source image ratio. */
.game-tile,
.review-card,
.promo-card {
  height: auto;
}

.game-tile img,
.review-card img,
.category-content .game-tile img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
}

.y9-content .promo-image,
.promo-image {
  height: auto;
  aspect-ratio: auto;
  background: #e8ddf9;
}

.y9-content .promo-image img,
.promo-image img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
}

.review-card img {
  background: #e8ddf9;
}

.category-content .game-tile img {
  background: rgba(255,255,255,0.06);
}

.category-hero-media img,
.category-hero > img {
  object-fit: contain;
}

.y9-detail > img {
  height: auto;
  object-fit: contain;
}

/* Final no-crop pass: content image wrappers must grow with the image. */
.y9-page .game-tile,
.y9-page .review-card,
.y9-page .promo-card,
.y9-page .promo-image {
  overflow: visible !important;
}

.y9-page .game-tile img,
.y9-page .review-card img,
.y9-page .promo-image img,
.y9-page .payment-row img,
.y9-page .contact-row img,
.y9-page .provider-grid img,
.y9-page .y9-detail > img,
.y9-page .trust-block > img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}

.y9-page .promo-image,
.y9-page .game-tile img,
.y9-page .review-card img {
  aspect-ratio: auto !important;
  height: auto !important;
}

.y9-page .category-hero-media img,
.y9-page .category-hero > img {
  width: auto !important;
  height: auto !important;
  max-width: min(430px, 48vw) !important;
  max-height: 430px !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}

.y9-page .hero-slider img {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}

/* Keep only intentional icon crops for floating circular buttons. */
.y9-floating span {
  overflow: hidden !important;
}

.y9-floating img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* VIP page dedicated layout matching original /vip/. */
.vip-hero {
  position: relative;
  z-index: 1;
  height: 155px;
  overflow: hidden;
  background: linear-gradient(180deg, #8c7aae 0%, #5f4c80 100%);
}

.vip-hero img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 540px;
  height: 155px;
  object-fit: cover;
  transform: translateX(-18%);
  opacity: 0.78;
}

.vip-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(70,52,101,0.9) 0%, rgba(70,52,101,0.55) 31%, rgba(70,52,101,0.25) 67%, rgba(70,52,101,0.6) 100%);
}

.vip-hero-copy {
  position: absolute;
  left: 28px;
  top: 24px;
  z-index: 2;
  color: #ffffff;
}

.vip-hero-copy h1 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 14px rgba(0,0,0,0.22);
}

.vip-hero-copy p {
  margin: 0;
  color: rgba(255,255,255,0.88);
  font-size: 16px;
  font-weight: 600;
}

.vip-benefits-section {
  position: relative;
  z-index: 1;
  padding: 62px 28px 70px;
  border-bottom: 1px solid rgba(124,58,237,0.12);
  background: #f3ecff;
}

.vip-benefits-section h2 {
  width: min(1240px, 100%);
  margin: 0 auto 34px;
  color: #c99200;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.vip-benefits-grid {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 560px);
  gap: 54px;
  align-items: center;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.vip-benefits-copy ul {
  display: grid;
  gap: 22px;
  margin: 0 0 34px;
  padding: 0;
  color: #57476f;
  font-size: 16px;
  line-height: 1.7;
  list-style: none;
}

.vip-benefits-copy li::first-letter {
  color: #facc15;
}

.vip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 16px 26px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #8c52ff, #b16cff);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(140,82,255,0.26);
}

.vip-poster-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 18px;
  background: #e9ddfb;
}

.vip-poster-wrap img {
  display: block;
  width: min(440px, 100%);
  height: auto;
  object-fit: contain;
}

.vip-content {
  padding-top: 36px;
}

@media (max-width: 900px) {
  .vip-benefits-grid {
    grid-template-columns: 1fr;
  }
  .vip-hero img {
    transform: translateX(-5%);
  }
}

@media (max-width: 640px) {
  .vip-hero-copy h1 {
    font-size: 34px;
  }
  .vip-hero-copy {
    left: 20px;
  }
  .vip-benefits-section {
    padding: 42px 20px 52px;
  }
}

/* VIP hard override after no-crop rules. */
.y9-page .vip-hero {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 155px !important;
  min-height: 155px !important;
  max-height: 155px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, #8c7aae 0%, #5f4c80 100%) !important;
}

.y9-page .vip-hero > img {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  display: block !important;
  width: 540px !important;
  height: 155px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  transform: translateX(-18%) !important;
  opacity: 0.78 !important;
}

.y9-page .vip-hero-copy {
  position: absolute !important;
  left: 28px !important;
  top: 24px !important;
  z-index: 2 !important;
}

.y9-page .vip-poster-wrap img {
  width: min(440px, 100%) !important;
  height: auto !important;
  max-width: 440px !important;
  max-height: none !important;
  object-fit: contain !important;
}

/* VIP hero image should display fully, not cropped. */
.y9-page .vip-hero {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  display: grid !important;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr) !important;
  align-items: center !important;
  gap: 20px !important;
  padding: 18px 28px !important;
  background: linear-gradient(180deg, #8c7aae 0%, #5f4c80 100%) !important;
}

.y9-page .vip-hero::after {
  display: none !important;
}

.y9-page .vip-hero > img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  max-width: 560px !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  transform: none !important;
  opacity: 0.88 !important;
  justify-self: center !important;
}

.y9-page .vip-hero-copy {
  position: static !important;
  z-index: 2 !important;
  align-self: center !important;
}

@media (max-width: 760px) {
  .y9-page .vip-hero {
    grid-template-columns: 1fr !important;
    padding: 18px 20px !important;
  }
}

/* Final VIP fidelity: top banner matches original crop, poster stays full. */
.y9-page .vip-hero {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 155px !important;
  min-height: 155px !important;
  max-height: 155px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, #8c7aae 0%, #5f4c80 100%) !important;
}

.y9-page .vip-hero::after {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: linear-gradient(90deg, rgba(70, 52, 101, 0.92) 0%, rgba(70, 52, 101, 0.68) 34%, rgba(70, 52, 101, 0.22) 68%, rgba(70, 52, 101, 0.60) 100%) !important;
  pointer-events: none !important;
}

.y9-page .vip-hero > img {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  z-index: 0 !important;
  display: block !important;
  width: 540px !important;
  height: 155px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center 42% !important;
  transform: translate(-18%, -50%) !important;
  opacity: 0.86 !important;
}

.y9-page .vip-hero-copy {
  position: absolute !important;
  left: 28px !important;
  top: 24px !important;
  z-index: 2 !important;
  max-width: 470px !important;
  color: #ffffff !important;
}

.y9-page .vip-hero-copy h1 {
  margin: 0 0 10px !important;
  color: #ffffff !important;
  font-size: 46px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: -0.04em !important;
}

.y9-page .vip-hero-copy p {
  margin: 0 !important;
  color: rgba(255,255,255,0.9) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

.y9-page .vip-benefits-section {
  padding: 62px 28px 70px !important;
  background: #f3ecff !important;
}

.y9-page .vip-benefits-grid {
  display: grid !important;
  grid-template-columns: 1fr minmax(360px, 560px) !important;
  gap: 54px !important;
  align-items: center !important;
  width: min(1240px, 100%) !important;
  margin: 0 auto !important;
}

.y9-page .vip-poster-wrap img {
  position: static !important;
  display: block !important;
  width: min(440px, 100%) !important;
  height: auto !important;
  max-width: 440px !important;
  max-height: none !important;
  object-fit: contain !important;
  transform: none !important;
  opacity: 1 !important;
}

@media (max-width: 900px) {
  .y9-page .vip-benefits-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Payment, contact, and provider logos stay compact on desktop too. */
.y9-page .payment-row {
  grid-template-columns: repeat(3, minmax(0, 96px)) !important;
  justify-content: center !important;
  gap: 18px !important;
}

.y9-page .contact-row {
  grid-template-columns: repeat(4, minmax(0, 72px)) !important;
  justify-content: center !important;
  gap: 18px !important;
}

.y9-page .provider-grid {
  grid-template-columns: repeat(7, minmax(0, 76px)) !important;
  justify-content: center !important;
  gap: 18px !important;
}

.y9-page .payment-row img {
  width: 70px !important;
  max-width: 70px !important;
  padding: 0 !important;
}

.y9-page .contact-row img {
  width: 52px !important;
  max-width: 52px !important;
  height: 52px !important;
  padding: 0 !important;
}

.y9-page .provider-grid img {
  width: 76px !important;
  max-width: 76px !important;
  height: 76px !important;
  padding: 4px !important;
  border: 2px solid rgba(208, 154, 0, 0.42) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 18px rgba(45, 27, 78, 0.10) !important;
  object-fit: contain !important;
}

/* Final mobile card layout: keep all card grids in two columns. */
@media (max-width: 640px) {
  .y9-page .y9-game-grid,
  .y9-page .review-grid,
  .y9-page .promo-grid,
  .y9-page .related-article-grid,
  .y9-page .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .y9-page .game-tile h3,
  .y9-page .review-card h3,
  .y9-page .promo-copy h2,
  .y9-page .related-article-card span,
  .y9-page .mini-grid h3 {
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  .y9-page .game-tile p,
  .y9-page .mini-grid p {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  .y9-page .related-articles {
    padding: 14px !important;
  }

  .y9-page .related-articles-heading {
    margin-bottom: 10px !important;
  }

  .y9-page .related-articles-heading h2 {
    font-size: 22px !important;
  }

  .y9-page .related-article-card img {
    max-height: 92px !important;
  }

  .y9-page .payment-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .y9-page .contact-row {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .y9-page .provider-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .y9-page .payment-row img {
    width: 58px !important;
    max-width: 58px !important;
    padding: 0 !important;
  }

  .y9-page .contact-row img {
    width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
  }

  .y9-page .provider-grid img {
    width: 58px !important;
    max-width: 58px !important;
    height: 58px !important;
    padding: 3px !important;
    border: 2px solid rgba(208, 154, 0, 0.42) !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    object-fit: contain !important;
  }

  .y9-page .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px 12px !important;
  }

  .y9-page .footer-brand {
    grid-column: 1 / -1 !important;
  }

  .y9-page .footer-column h3 {
    margin-bottom: 10px !important;
    font-size: 15px !important;
  }

  .y9-page .footer-column a {
    margin: 7px 0 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
  }
}

.y9-page .promo-hero .category-hero-media img {
  max-width: min(560px, 52vw) !important;
  max-height: 430px !important;
}

@media (max-width: 640px) {
  .y9-page .promo-hero .category-hero-media img {
    max-width: min(420px, 78vw) !important;
  }
}

.y9-breadcrumbs {
  margin: 0 0 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.y9-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.y9-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.y9-breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: rgba(255, 255, 255, 0.35);
}

.y9-breadcrumbs a {
  color: #e8c45c;
  text-decoration: none;
}

.y9-breadcrumbs a:hover {
  text-decoration: underline;
}

.y9-breadcrumbs span[aria-current="page"] {
  color: rgba(255, 255, 255, 0.92);
}

.y9-not-found {
  min-height: 48vh;
  padding-top: 36px;
  padding-bottom: 48px;
}

.y9-not-found h1 {
  margin-bottom: 12px;
}

.y9-not-found .link-grid {
  margin-top: 24px;
}


/* WordPress theme safeguards */
.y9-page .y9-hero {
  min-height: clamp(180px, 28vw, 420px);
}

.y9-page .hero-slider img {
  aspect-ratio: 1280 / 519 !important;
  object-fit: cover !important;
}
