/* Game grid & cards */
.game-grid, .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px,1fr));
  gap: 14px; margin-bottom: 28px;
}
.compact-grid { grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); }

.game-card, .grid .card {
  background: var(--surface);
  border-radius: 14px; overflow: hidden;
  cursor: pointer; transition: all var(--transition);
  border: 1.5px solid var(--border);
  position: relative; box-shadow: none;
}
.game-card:hover, .grid .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(92,110,248,.28);
}
.game-thumb, .grid .card-image {
  width: 100%; aspect-ratio: 4/3; position: relative; overflow: hidden;
}
.game-thumb-img, .grid .card-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s;
}
.game-card:hover .game-thumb-img,
.grid .card:hover .card-image img { transform: scale(1.07); }

.game-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,rgba(26,29,59,.7),transparent);
  opacity: 0; transition: opacity var(--transition);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 10px;
}
.game-card:hover .game-overlay { opacity: 1; }
.play-btn {
  background: #fff; color: var(--accent);
  border: none; border-radius: 40px; padding: 6px 18px;
  font-family: 'Outfit', sans-serif; font-size: 12.5px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; gap: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2); text-decoration: none;
}
.game-tag { position:absolute;top:8px;left:8px;background:var(--accent2);color:#fff;font-size:9.5px;font-weight:800;padding:2px 7px;border-radius:20px;text-transform:uppercase;letter-spacing:.5px }
.game-tag.new { background:var(--accent4) }
.game-tag.hot { background:var(--accent5) }
.game-tag.top { background:var(--accent) }
.game-fav {
  position:absolute;top:8px;right:8px;width:34px;height:34px;
  background:rgba(255,255,255,.94);border:1px solid rgba(255,94,126,.14);
  border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:16px;opacity:0;transition:opacity var(--transition), transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor:pointer;text-decoration:none;color:#ff5e7e;z-index:8;user-select:none;
  box-shadow:0 8px 22px rgba(17,24,39,.10);
}
.game-card:hover .game-fav { opacity:1 }
.game-fav:hover { transform:translateY(-1px) scale(1.04); box-shadow:0 10px 24px rgba(255,94,126,.18) }
.game-fav.is-active,
.game-fav[aria-pressed="true"],
.game-fav[data-active="1"] {
  opacity:1;color:#fff;background:linear-gradient(135deg,#ff6b8a,#ff4d6d);border-color:transparent;
}
.game-fav.is-puffing { animation: gsFavHeartPop .45s ease; }
.game-fav .gs-fav-puffs {
  position:absolute;inset:50% auto auto 50%;width:0;height:0;pointer-events:none;z-index:-1;
}
.game-fav .gs-fav-puff {
  position:absolute;left:0;top:0;width:18px;height:18px;border-radius:999px;
  background:radial-gradient(circle, rgba(255,135,160,.55) 0%, rgba(255,106,138,.28) 45%, rgba(255,106,138,0) 72%);
  opacity:0;transform:translate(-50%,-50%) scale(.2);
  animation: gsFavPuff .65s ease-out forwards;
}
.game-fav .gs-fav-puff:nth-child(1) { --tx:-26px; --ty:-18px; animation-delay:0s; }
.game-fav .gs-fav-puff:nth-child(2) { --tx:24px; --ty:-20px; animation-delay:.03s; }
.game-fav .gs-fav-puff:nth-child(3) { --tx:-22px; --ty:18px; animation-delay:.06s; }
.game-fav .gs-fav-puff:nth-child(4) { --tx:26px; --ty:16px; animation-delay:.09s; }
@keyframes gsFavHeartPop {
  0% { transform:scale(1); }
  35% { transform:scale(1.18); }
  100% { transform:scale(1); }
}
@keyframes gsFavPuff {
  0% { opacity:.85; transform:translate(-50%,-50%) scale(.25); }
  100% { opacity:0; transform:translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.7); }
}
@media (hover:none), (pointer:coarse) {
  .game-fav { opacity:1; }
}
.game-info, .grid .card-content { padding: 9px 11px 11px; }
.game-name, .grid .card-content .title { font-size:13px;font-weight:700;color:var(--text);margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.35 }
.grid .card-content .title a { color: inherit; }
.game-meta, .gs-meta { display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap }
.game-genre, .gs-meta .tag { font-size:11px;color:var(--text3);font-weight:600;background:var(--surface2);border:1px solid var(--border);padding:.4rem .7rem;border-radius:999px }
.game-rating { display:flex;align-items:center;gap:3px;font-size:11px;font-weight:700;color:var(--accent5) }

.grid .buttons, .game-card .buttons { margin-top: 10px; }
.grid .button, .gs-page-wrap .button { border-radius:999px;font-weight:800;padding-inline:1rem;border:1.5px solid var(--border);box-shadow:none }
.button.is-primary {  width: 100%; background:linear-gradient(135deg,var(--accent),#7c8ff8);border-color:transparent }
.button.is-light   { background:var(--surface);color:var(--text2) }
.gs-fav-btn.is-active,
.gs-fav-btn[aria-pressed="true"] { color:var(--danger);border-color:rgba(239,71,111,.24);background:rgba(239,71,111,.08) }
</style>
 <style>
/* =========================
CATEGORY HERO
========================= */

.category-hero{
background:#f3f6fb;
border:1px solid #dfe7f3;
}

.hero-left{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.hero-head{
  display:flex;
  align-items:center;
  gap:18px;
}

.hero-icon{
  width:78px;
  height:78px;
  border-radius:24px;
  background:linear-gradient(135deg,#6d72ff,#8b5cf6);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:36px;
}

.hero-title{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.hero-title h1{
  font-size:28px;
  line-height:1;
 margin:0;
  color:#1f2937;
  
}

.hero-title span{
  font-size:15px;
  color:#6b7280;
  background:#f3f4f8;
  border:1px solid #333333;
  padding:8px 14px;
  border-radius:999px;
}

.hero-desc{
  font-size:18px;
  line-height:1.8;
  color:#6b7280;
}

.hero-left .tags{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.hero-left .tag{
  height:48px;
  padding:0 22px;
  border-radius:16px;
  background:#fff;
  border:1px solid #e7eaf3;
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  color:#1f2937;
  text-decoration:none;
  transition:.2s;
}

.hero-left .tag:hover{
  transform:translateY(-2px);
  border-color:#d6daf0;
}

  .home-intro-stats .home-stat-card {
    min-height: auto;
    padding: 12px 8px;
    justify-content: center;
  }
/* =========================
ADS CARD
========================= */

.ads-card{
  border:1px solid #efe6ff;
  border-radius:24px;
  background:linear-gradient(135deg,#fff,#faf7ff);
  overflow:hidden;
  position:relative;
}

.ads-content{
  width:100%;
  max-height:280px;
  overflow:hidden;
}


/* =========================
RESPONSIVE
========================= */

@media(max-width:1100px){

  .category-hero{
    grid-template-columns:1fr;
  }


}

@media(max-width:768px){

  .category-hero{
    padding:12px 14px;
    border-radius:18px;
    gap:10px;
  }

  .hero-left{
    gap:10px;
  }

  .hero-head{
    gap:10px;
    align-items:center;
  }

  .hero-icon{
    width:52px;
    height:52px;
    border-radius:16px;
    font-size:24px;
    flex:0 0 52px;
  }

  .hero-title{
    gap:8px;
  }

  .hero-title h1{
    font-size:24px;
  }

  .hero-title span{
    font-size:12px;
    padding:4px 9px;
  }

  .hero-desc{
    font-size:14px;
    line-height:1.55;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

  .home-intro-stats,
  .ads-card{
    display:none;
  }
}


/* =========================================================
   Merged: Premium Hero Exact Version
   Source: category-hero-exact.css
========================================================= */

/* =========================================================
   GameIsland Category Hero - Premium Visual Version
   目標：接近示意圖的 Hero 視覺
   用法：HTML 外層加 .gi-category-hero + category-theme-{分類ID}
========================================================= */

.gi-category-hero {
  --cat-main: #5c63ff;
  --cat-main-2: #8b5cf6;
  --cat-soft: rgba(92, 110, 248, .16);
  --cat-soft-2: rgba(139, 92, 246, .16);
  --cat-dark: #071238;
  --cat-muted: #26324f;

  position: relative;
  overflow: hidden;

  width: 100%;
  min-height: 300px;
  margin: 12px 0 18px;
  padding: 24px 68px 24px 80px;

  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 285px;
  align-items: center;
  gap: 32px;

  border-radius: 22px;
  border: 1px solid rgba(92, 110, 248, .14);

  background:
    radial-gradient(520px 260px at 0% 15%, rgba(88, 174, 255, .24), transparent 64%),
    radial-gradient(420px 260px at 100% 50%, rgba(147, 83, 255, .34), transparent 64%),
    linear-gradient(115deg, #dff0ff 0%, #f5f8ff 45%, #ece7ff 72%, #b985ff 100%);

  box-shadow:
    0 14px 38px rgba(15, 23, 42, .08),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}

/* 左側白色弧線 */
.gi-category-hero::before {
  content: "";
  position: absolute;
  left: -78px;
  top: -82px;
  width: 330px;
  height: 430px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.72);
  transform: rotate(-12deg);
  pointer-events: none;
}

/* 右側紫色幾何光塊 */
.gi-category-hero::after {
  content: "";
  position: absolute;
  right: -88px;
  top: -76px;
  width: 355px;
  height: 410px;
  transform: rotate(34deg);
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,0) 42%),
    linear-gradient(135deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.28) 43%, rgba(255,255,255,0) 44%),
    linear-gradient(45deg, rgba(255,255,255,0) 48%, rgba(255,255,255,.22) 49%, rgba(255,255,255,0) 50%);
  opacity: .95;
  pointer-events: none;
}

.gi-hero-dot-left,
.gi-hero-dot-right,
.gi-hero-crosshair {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.gi-hero-dot-left {
  left: 0;
  top: 76px;
  width: 118px;
  height: 118px;
  opacity: .65;
  background-image: radial-gradient(circle, rgba(255,255,255,.85) 1.7px, transparent 1.8px);
  background-size: 12px 12px;
}

.gi-hero-dot-right {
  right: 34px;
  bottom: 42px;
  width: 92px;
  height: 92px;
  opacity: .75;
  background-image: radial-gradient(circle, rgba(255,255,255,.92) 1.6px, transparent 1.8px);
  background-size: 11px 11px;
}

.gi-hero-crosshair {
  left: 64.5%;
  top: 59%;
  width: 118px;
  height: 118px;
  transform: translate(-50%, -50%);
  opacity: .6;
}

.gi-hero-crosshair::before,
.gi-hero-crosshair::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.76);
}

.gi-hero-crosshair::after {
  inset: 47px;
  border-width: 1.5px;
}

.gi-hero-crosshair span::before,
.gi-hero-crosshair span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent 0 12%, rgba(255,255,255,.75) 12% 42%, transparent 42% 58%, rgba(255,255,255,.75) 58% 88%, transparent 88% 100%);
}

.gi-hero-crosshair span::after {
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(to right, transparent 0 12%, rgba(255,255,255,.75) 12% 42%, transparent 42% 58%, rgba(255,255,255,.75) 58% 88%, transparent 88% 100%);
}

/* 左側大圖 */
.gi-hero-art {
  position: relative;
  z-index: 3;
  width: 270px;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  padding: 0;
  overflow: hidden;
  background: #101827;
  box-shadow:
    0 22px 46px rgba(15, 23, 42, .22),
    0 0 0 4px rgba(255,255,255,.95),
    inset 0 1px 0 rgba(255,255,255,.35);
}

.gi-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gi-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), transparent 28%),
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.16), transparent 38%);
  pointer-events: none;
}

/* 中間文案 */
.gi-hero-copy {
  position: relative;
  z-index: 3;
  min-width: 0;
}

.gi-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  color: var(--cat-main);
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.01em;
}

.gi-hero-kicker svg,
.gi-hero-kicker i {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  stroke-width: 2.6;
}

.gi-hero-title {
  margin: 0 0 20px;
  color: var(--cat-dark);
  font-size: clamp(44px, 4.4vw, 64px);
  line-height: .98;
  font-weight: 950;
  letter-spacing: -.08em;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}

.gi-hero-desc {
  max-width: 620px;
  margin: 0 0 29px;
  color: #15213f;
  font-size: 16px;
  line-height: 1.95;
  font-weight: 750;
  letter-spacing: .01em;
}

.gi-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
}

.gi-hero-tags a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-width: 86px;
  min-height: 38px;
  padding: 0 15px;

  border-radius: 8px;
  border: 1px solid rgba(104, 99, 255, .20);
  background: rgba(255,255,255,.78);

  color: var(--cat-main);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;

  box-shadow:
    0 7px 15px rgba(67, 56, 202, .11),
    inset 0 1px 0 rgba(255,255,255,.86);

  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.gi-hero-tags a:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow:
    0 11px 22px rgba(67, 56, 202, .16),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.gi-hero-tags svg,
.gi-hero-tags i {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

/* 右側統計卡 */
.gi-hero-stat {
  position: relative;
  z-index: 3;
  align-self: center;

  width: 285px;
  min-height: 260px;
  padding: 25px 17px 17px;

  border-radius: 18px;
  border: 1.5px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.34);

  box-shadow:
    0 18px 42px rgba(91, 80, 220, .13),
    inset 0 1px 0 rgba(255,255,255,.85);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.gi-hero-stat-number {
  display: block;
  text-align: center;
  margin: 0;
  color: transparent;
  font-size: 72px;
  line-height: .92;
  font-weight: 950;
  letter-spacing: -.045em;
  background: linear-gradient(180deg, #736bff 0%, #4b4df4 54%, #5c63ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 14px 22px rgba(80, 70, 220, .16);
}

.gi-hero-stat-title {
  display: block;
  text-align: center;
  margin: 9px 0 14px;
  color: #101935;
  font-size: 19px;
  line-height: 1.1;
  font-weight: 900;
}

.gi-hero-feature-list {
  display: grid;
  gap: 9px;
}

.gi-hero-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 43px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid rgba(91, 80, 220, .10);
  background: rgba(255,255,255,.72);
  color: #17213d;
  font-size: 15px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
}

.gi-hero-feature .emoji {
  width: 22px;
  text-align: center;
  font-size: 18px;
  flex: 0 0 22px;
}

/* 分類色系，可套全部分類 */
.category-theme-1 { --cat-main:#5c6ef8; --cat-main-2:#22c1a7; --cat-soft:rgba(92,110,248,.14); --cat-soft-2:rgba(34,193,167,.13); }
.category-theme-2 { --cat-main:#ef4444; --cat-main-2:#f97316; --cat-soft:rgba(239,68,68,.13); --cat-soft-2:rgba(249,115,22,.13); }
.category-theme-3 { --cat-main:#5c63ff; --cat-main-2:#8b5cf6; --cat-soft:rgba(92,110,248,.16); --cat-soft-2:rgba(139,92,246,.18); }
.category-theme-4 { --cat-main:#06b6d4; --cat-main-2:#22c55e; --cat-soft:rgba(6,182,212,.13); --cat-soft-2:rgba(34,197,94,.13); }
.category-theme-5 { --cat-main:#8b5cf6; --cat-main-2:#f59e0b; --cat-soft:rgba(139,92,246,.13); --cat-soft-2:rgba(245,158,11,.13); }
.category-theme-6 { --cat-main:#f97316; --cat-main-2:#facc15; --cat-soft:rgba(249,115,22,.13); --cat-soft-2:rgba(250,204,21,.14); }
.category-theme-7 { --cat-main:#16a34a; --cat-main-2:#0ea5e9; --cat-soft:rgba(22,163,74,.13); --cat-soft-2:rgba(14,165,233,.13); }
.category-theme-8 { --cat-main:#334155; --cat-main-2:#6366f1; --cat-soft:rgba(51,65,85,.10); --cat-soft-2:rgba(99,102,241,.13); }
.category-theme-9 { --cat-main:#10b981; --cat-main-2:#92400e; --cat-soft:rgba(16,185,129,.13); --cat-soft-2:rgba(146,64,14,.10); }
.category-theme-10 { --cat-main:#ff6b8a; --cat-main-2:#ff9f43; --cat-soft:rgba(255,107,138,.13); --cat-soft-2:rgba(255,159,67,.13); }
.category-theme-11 { --cat-main:#a855f7; --cat-main-2:#ec4899; --cat-soft:rgba(168,85,247,.13); --cat-soft-2:rgba(236,72,153,.13); }

/* =========================================================
   RWD
========================================================= */

@media (max-width: 1280px) {
  .gi-category-hero {
    grid-template-columns: 245px minmax(0, 1fr) 265px;
    gap: 26px;
    padding-inline: 54px;
  }

  .gi-hero-art { width: 245px; }
  .gi-hero-stat { width: 265px; }
  .gi-hero-title { font-size: clamp(40px, 4.4vw, 56px); }
}

@media (max-width: 1100px) {
  .gi-category-hero {
    min-height: 0;
    grid-template-columns: 190px minmax(0, 1fr);
    grid-template-areas:
      "art copy"
      "stat stat";
    gap: 22px 24px;
    padding: 24px;
  }

  .gi-hero-art { grid-area: art; width: 190px; }
  .gi-hero-copy { grid-area: copy; }
  .gi-hero-stat {
    grid-area: stat;
    width: 100%;
    min-height: auto;
    padding: 15px;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
  }

  .gi-hero-stat-number { font-size: 46px; }
  .gi-hero-stat-title { margin: 5px 0 0; font-size: 15px; }
  .gi-hero-feature-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gi-hero-feature { justify-content: center; text-align: center; }
  .gi-hero-crosshair { display: none; }
}

@media (max-width: 720px) {
  .gi-category-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "art"
      "copy"
      "stat";
    padding: 16px;
    border-radius: 20px;
    gap: 16px;
  }

  .gi-hero-art {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
  }

  .gi-hero-kicker {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .gi-hero-kicker svg,
  .gi-hero-kicker i {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .gi-hero-title {
    margin-bottom: 10px;
    font-size: 34px;
    letter-spacing: -.06em;
  }

  .gi-hero-desc {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .gi-hero-tags { gap: 8px; }
  .gi-hero-tags a {
    min-width: auto;
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 8px;
  }

  .gi-hero-stat {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
  }

  .gi-hero-stat-number { font-size: 42px; }
  .gi-hero-feature-list { grid-template-columns: 1fr; }
  .gi-hero-feature {
    min-height: 38px;
    justify-content: flex-start;
    font-size: 13px;
  }

  .gi-hero-dot-left,
  .gi-hero-dot-right { opacity: .38; }
}
