:root {
    --bg: #0a0d14;
    --bg-soft: #0e1420;
    --card: #151b29;
    --card-hi: #1a2132;
    --card-edge: rgba(212, 168, 92, .17);
    --gold: #d4a85c;
    --gold-bright: #f0cb8a;
    --jade: #a4d6a4;
    --text: #ece7da;
    --text-dim: #98a1b4;
    --serif: "Palatino", "Songti SC", "STSong", Georgia, serif;
    --sans: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.78;
    -webkit-font-smoothing: antialiased;
    position: relative;
  }
  /* faint gold star-dust, fading out below the fold */
  body::before {
    content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image: radial-gradient(rgba(212, 168, 92, .09) 1px, transparent 1px);
    background-size: 27px 27px;
    -webkit-mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, #000 25%, transparent 72%);
    mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, #000 25%, transparent 72%);
  }
  body > * { position: relative; z-index: 1; }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: 1060px; margin: 0 auto; padding: 0 28px; }

  /* ---------- scroll reveal (visual only) ---------- */
  .js-anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.3,1); }
  .js-anim .reveal.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) { .js-anim .reveal { opacity: 1; transform: none; transition: none; } }

  /* ---------- header ---------- */
  header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10, 13, 20, .8);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(212, 168, 92, .13);
  }
  .nav { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 20px; }
  .brand { display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); }
  .brand .en-name { font-size: 20px; letter-spacing: .045em; color: var(--gold-bright); }
  .brand .zh-name { font-size: 14px; color: var(--text-dim); letter-spacing: .3em; }
  .nav-right { display: flex; align-items: center; gap: 26px; }
  nav.links { display: flex; gap: 28px; font-size: 14.5px; }
  nav.links a { color: var(--text-dim); transition: color .22s; letter-spacing: .02em; position: relative; }
  nav.links a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent); transition: right .28s ease;
  }
  nav.links a:hover { color: var(--gold-bright); }
  nav.links a:hover::after { right: 0; }
  .lang-btn {
    font-family: var(--sans); font-size: 13px; letter-spacing: .05em;
    padding: 6px 16px; border-radius: 999px;
    border: 1px solid rgba(212, 168, 92, .38);
    background: rgba(212, 168, 92, .06);
    color: var(--gold-bright); cursor: pointer; transition: all .22s;
  }
  .lang-btn:hover { background: rgba(212, 168, 92, .18); border-color: rgba(212, 168, 92, .6); }

  /* ---------- hero ---------- */
  .hero {
    position: relative;
    padding: 120px 0 118px;
    text-align: center;
    overflow: hidden;
    background:
      radial-gradient(ellipse 58% 46% at 50% -8%, rgba(212, 168, 92, .17), transparent 68%),
      var(--bg);
  }
  .hero::after {
    content: "";
    position: absolute; inset: auto 0 0 0; height: 230px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 220" preserveAspectRatio="none"><path d="M0 220 L0 160 Q150 90 300 150 Q380 180 460 140 Q560 90 680 150 Q800 205 920 140 Q1050 75 1200 150 L1200 220 Z" fill="%230e1420"/><path d="M0 220 L0 190 Q200 140 400 185 Q600 225 800 180 Q1000 140 1200 190 L1200 220 Z" fill="%23151b29" opacity="0.85"/></svg>') bottom center / cover no-repeat;
    pointer-events: none;
  }
  .hero > .wrap { position: relative; z-index: 2; }
  .hero h1 {
    font-family: var(--serif);
    font-size: clamp(35px, 5.6vw, 58px);
    font-weight: 500;
    letter-spacing: .015em;
    line-height: 1.28;
    color: var(--text);
    text-shadow: 0 2px 30px rgba(0, 0, 0, .5);
  }
  .hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, #f4d69c, #d4a85c 60%, #f0cb8a);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .hero .subline {
    margin-top: 18px;
    font-size: 12px; letter-spacing: .38em; text-indent: .38em;
    text-transform: uppercase;
    color: var(--text-dim);
    display: flex; align-items: center; justify-content: center; gap: 18px;
  }
  .hero .subline::before, .hero .subline::after {
    content: ""; width: 44px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 92, .55));
  }
  .hero .subline::after { transform: scaleX(-1); }
  .hero p.tag {
    max-width: 560px; margin: 26px auto 0;
    color: var(--text-dim); font-size: 16.5px;
  }
  .hero .cta {
    display: inline-block; margin-top: 42px;
    padding: 14px 38px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e6bd76, #c1954a);
    color: #17110a; font-size: 15.5px; font-weight: 600; letter-spacing: .05em;
    box-shadow: 0 10px 30px rgba(212, 168, 92, .26);
    transition: transform .25s, box-shadow .25s, filter .25s;
  }
  .hero .cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 16px 40px rgba(212, 168, 92, .4);
  }

  /* ---------- sections ---------- */
  section { padding: 96px 0; }
  #games { background: var(--bg-soft); }
  .sec-head { text-align: center; margin-bottom: 60px; }
  .sec-head .kicker {
    font-size: 12px; letter-spacing: .36em; text-indent: .36em;
    text-transform: uppercase; color: var(--gold);
  }
  .sec-head h2 {
    margin-top: 12px;
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(27px, 3.7vw, 37px);
    letter-spacing: .015em;
  }
  /* diamond ornament instead of a plain hairline */
  .sec-head .rule {
    position: relative; width: 96px; height: 10px; margin: 22px auto 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"><rect x="2.4" y="2.4" width="7.2" height="7.2" transform="rotate(45 6 6)" fill="none" stroke="%23d4a85c" stroke-width="1.1"/></svg>') center / 11px 11px no-repeat;
  }
  .sec-head .rule::before, .sec-head .rule::after {
    content: ""; position: absolute; top: 4.5px; width: 36px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
  }
  .sec-head .rule::before { left: 0; }
  .sec-head .rule::after { right: 0; transform: scaleX(-1); }

  /* ---------- game cards ---------- */
  .games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 34px;
    max-width: 940px; margin: 0 auto;
  }
  .game-card {
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, var(--card-hi), var(--card));
    border: 1px solid var(--card-edge);
    border-radius: 20px;
    overflow: hidden;
    transition: transform .32s cubic-bezier(.2,.7,.3,1), box-shadow .32s, border-color .32s;
  }
  .game-card:hover {
    transform: translateY(-7px);
    border-color: rgba(212, 168, 92, .46);
    box-shadow: 0 28px 56px rgba(0, 0, 0, .55), 0 6px 26px rgba(212, 168, 92, .09);
  }
  .cover {
    position: relative;
    aspect-ratio: 460 / 215;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
  }
  .cover img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    z-index: 2;
    transition: transform .6s cubic-bezier(.2,.7,.3,1);
  }
  .cover img.failed { display: none; }
  .game-card:hover .cover img { transform: scale(1.055); }
  .cover::after {
    content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background: linear-gradient(to top, rgba(10, 13, 20, .5), transparent 42%);
    opacity: .9; transition: opacity .32s;
  }
  .game-card:hover .cover::after { opacity: .65; }
  /* fallback art shown when Steam image cannot load */
  .cover .fallback {
    position: absolute; inset: 0; z-index: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px;
  }
  .cover .fallback .glyph { font-size: 44px; }
  .cover .fallback .name {
    font-family: var(--serif); font-size: 24px; letter-spacing: .05em;
    color: rgba(255, 250, 235, .92);
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
  }
  .fb-immortal {
    background:
      radial-gradient(circle at 78% 22%, rgba(238, 194, 122, .35), transparent 42%),
      radial-gradient(circle at 22% 80%, rgba(90, 60, 140, .5), transparent 55%),
      linear-gradient(150deg, #1b1430, #2c1f4a 55%, #472a52);
  }
  .fb-harvest {
    background:
      radial-gradient(circle at 80% 18%, rgba(255, 220, 130, .38), transparent 45%),
      radial-gradient(circle at 15% 85%, rgba(70, 120, 60, .55), transparent 55%),
      linear-gradient(150deg, #14260f, #2b4416 55%, #6b5a1c);
  }
  .card-body { padding: 25px 27px 27px; display: flex; flex-direction: column; flex: 1; }
  .title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .card-body h3 {
    font-family: var(--serif); font-weight: 500;
    font-size: 24px; letter-spacing: .02em;
  }
  .badge {
    flex-shrink: 0;
    font-size: 11.5px; letter-spacing: .06em;
    padding: 4px 13px; border-radius: 999px;
    border: 1px solid rgba(212, 168, 92, .4);
    color: var(--gold-bright);
    background: rgba(212, 168, 92, .08);
    white-space: nowrap;
  }
  .badge.green { border-color: rgba(120, 190, 120, .42); color: var(--jade); background: rgba(120, 190, 120, .09); }
  .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
  .tags span {
    font-size: 12px; color: var(--text-dim);
    padding: 3px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
    transition: border-color .25s, color .25s;
  }
  .game-card:hover .tags span { border-color: rgba(212, 168, 92, .2); }
  .card-body p.desc {
    margin-top: 16px; font-size: 14.5px; color: var(--text-dim); flex: 1;
  }
  .meta {
    margin-top: 20px; padding-top: 17px;
    border-top: 1px solid rgba(212, 168, 92, .13);
    font-size: 13px; color: var(--text-dim);
    display: flex; gap: 20px; flex-wrap: wrap;
  }
  .meta b { color: var(--text); font-weight: 500; }
  .steam-btn {
    margin-top: 22px;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 12px 20px;
    border-radius: 11px;
    background: linear-gradient(135deg, #1b2838, #2a475e);
    border: 1px solid rgba(102, 192, 244, .3);
    color: #cfe6f5; font-size: 14.5px; letter-spacing: .03em;
    transition: all .25s;
  }
  .steam-btn:hover {
    border-color: rgba(102, 192, 244, .7);
    box-shadow: 0 8px 24px rgba(102, 192, 244, .18);
    color: #fff;
  }
  .steam-btn svg { width: 19px; height: 19px; flex-shrink: 0; }
  .btn-row { display: flex; gap: 12px; margin-top: 20px; }
  .btn-row .steam-btn { margin-top: 0; flex: 1; }
  .buy-btn {
    flex: 1.15;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; border-radius: 11px;
    background: linear-gradient(135deg, #e6bd76, #b98c3f);
    color: #17110a; font-size: 14.5px; font-weight: 600; letter-spacing: .02em;
    transition: transform .25s, box-shadow .25s, filter .25s;
    box-shadow: 0 6px 20px rgba(212, 168, 92, .18);
  }
  .buy-btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 12px 30px rgba(212, 168, 92, .32); }

  /* ---------- about ---------- */
  #about .about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center;
  }
  #about .art {
    border: 1px solid var(--card-edge); border-radius: 20px;
    aspect-ratio: 5 / 4;
    background:
      radial-gradient(circle at 70% 25%, rgba(212, 168, 92, .17), transparent 52%),
      linear-gradient(160deg, #0e1420, #161d2e);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  }
  #about .art .shot {
    position: absolute;
    width: 66%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .6);
    transition: transform .5s cubic-bezier(.2,.7,.3,1);
  }
  #about .art .shot.a { top: 13%; left: 7%; transform: rotate(-5deg); z-index: 2; }
  #about .art .shot.b { bottom: 16%; right: 7%; transform: rotate(4deg); }
  #about .art:hover .shot.a { transform: rotate(-6deg) translateY(-6px); }
  #about .art:hover .shot.b { transform: rotate(5deg) translateY(6px); }
  #about .art .cap {
    position: absolute; bottom: 18px; left: 0; right: 0; z-index: 3;
    text-align: center; font-size: 12.5px; letter-spacing: .3em; text-indent: .3em;
    color: var(--text-dim);
  }
  #about h2 {
    font-family: var(--serif); font-weight: 500; font-size: 33px; margin-bottom: 6px;
  }
  #about .sub { color: var(--gold); font-size: 13.5px; letter-spacing: .14em; margin-bottom: 24px; }
  #about p { color: var(--text-dim); font-size: 15.5px; margin-bottom: 16px; }
  #about p b { color: var(--text); font-weight: 600; }

  /* ---------- contact ---------- */
  #contact { background: var(--bg-soft); }
  .contact-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px; max-width: 900px; margin: 0 auto;
  }
  .c-item {
    background: var(--card);
    border: 1px solid var(--card-edge);
    border-radius: 18px;
    padding: 32px 24px 28px;
    text-align: center;
    transition: border-color .25s, transform .25s, box-shadow .25s, background .25s;
  }
  .c-item:hover {
    border-color: rgba(212, 168, 92, .42); transform: translateY(-4px);
    background: var(--card-hi);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .42);
  }
  .c-item .ico { font-size: 25px; margin-bottom: 14px; }
  .c-item .label {
    font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 8px;
  }
  .c-item .val { font-size: 14.5px; color: var(--text); word-break: break-word; }
  .c-item .val a { color: var(--gold-bright); transition: color .2s; }
  .c-item .val a:hover { color: #fff; }
  .c-item .val small { display: block; color: var(--text-dim); font-size: 12.5px; margin-top: 6px; }
  .c-item.wide { grid-column: 1 / -1; }
  .contact-note {
    max-width: 880px; margin: 28px auto 0; text-align: center;
    font-size: 13.5px; color: var(--text-dim);
  }

  /* ---------- footer ---------- */
  footer {
    border-top: 1px solid rgba(212, 168, 92, .11);
    padding: 38px 0 44px;
    text-align: center; font-size: 13.5px; color: var(--text-dim);
  }
  footer .fbrand { font-family: var(--serif); color: var(--gold-bright); font-size: 16px; margin-bottom: 7px; letter-spacing: .04em; }
  footer a { color: var(--gold); transition: color .2s; }
  footer a:hover { color: var(--gold-bright); }

  @media (max-width: 760px) {
    nav.links { display: none; }
    #about .about-grid { grid-template-columns: 1fr; gap: 38px; }
    section { padding: 68px 0; }
    .hero { padding: 82px 0 92px; }
    .hero .subline::before, .hero .subline::after { width: 22px; }
  }

/* ---------- language link (replaces the old JS toggle) ---------- */
a.lang-btn { display: inline-block; text-decoration: none; }

/* ================================================================
   game detail pages  (/games/*, /zh/games/*)
   ================================================================ */
.crumbs {
  font-size: 12.5px; color: var(--text-dim);
  letter-spacing: .04em; margin-bottom: 22px;
}
.crumbs a { color: var(--gold); }
.crumbs a:hover { color: var(--gold-bright); }
.crumbs span { opacity: .5; margin: 0 8px; }

.g-hero { padding: 58px 0 72px; background: var(--bg); }
.g-hero .g-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: start;
}
.g-hero .shot-main {
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--card-edge);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .55);
  aspect-ratio: 460 / 215; background: var(--card);
}
.g-hero .shot-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-hero .kicker {
  font-size: 12px; letter-spacing: .34em; text-indent: .34em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.g-hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 4.4vw, 44px); line-height: 1.24; letter-spacing: .015em;
}
.g-hero .alt-name {
  margin-top: 8px; color: var(--text-dim);
  font-size: 15px; letter-spacing: .06em;
}
.g-hero p.lede { margin-top: 20px; color: var(--text-dim); font-size: 15.5px; }
.g-hero .tags { margin-top: 18px; }

/* ---------- feature grid ---------- */
#features { background: var(--bg-soft); }
.feat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 20px; max-width: 940px; margin: 0 auto;
}
.feat {
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: 16px; padding: 26px 24px;
  transition: border-color .25s, transform .25s, background .25s;
}
.feat:hover { border-color: rgba(212, 168, 92, .4); transform: translateY(-4px); background: var(--card-hi); }
.feat .ico { font-size: 23px; margin-bottom: 12px; }
.feat h3 {
  font-family: var(--serif); font-weight: 500; font-size: 18.5px;
  margin-bottom: 8px; letter-spacing: .02em;
}
.feat p { color: var(--text-dim); font-size: 14px; }

/* ---------- spec table ---------- */
.spec {
  max-width: 720px; margin: 0 auto;
  border: 1px solid var(--card-edge); border-radius: 16px; overflow: hidden;
}
.spec .row {
  display: grid; grid-template-columns: 190px 1fr; gap: 18px;
  padding: 15px 26px; font-size: 14.5px;
  border-bottom: 1px solid rgba(212, 168, 92, .1);
}
.spec .row:last-child { border-bottom: 0; }
.spec .row:nth-child(odd) { background: rgba(255, 255, 255, .017); }
.spec .k { color: var(--gold); letter-spacing: .06em; font-size: 13px; }
.spec .v { color: var(--text); }

.g-cta { text-align: center; }
.g-cta .btn-row { display: inline-flex; gap: 14px; margin-top: 0; }
.g-cta .buy-btn, .g-cta .steam-btn { flex: 0 0 auto; padding: 13px 30px; margin-top: 0; }
.g-cta .note { margin-top: 20px; font-size: 13.5px; color: var(--text-dim); }

@media (max-width: 860px) {
  .g-hero .g-grid { grid-template-columns: 1fr; gap: 34px; }
  .spec .row { grid-template-columns: 1fr; gap: 3px; padding: 14px 20px; }
  .g-cta .btn-row { display: flex; flex-direction: column; }
}

/* alternating section rhythm on the game pages */
#get { background: var(--bg-soft); }
#more .games-grid { max-width: 460px; }
