/* KAS電子 site — deep-sea luxury: abyss navy, caustic teal light, gold accents (matches 海神之叉). */
:root {
  --abyss: #030b1d;
  --deep: #061733;
  --sea: #0b2a55;
  --teal: #5fd0ff;
  --gold: #f6c955;
  --gold-hi: #fff2b0;
  --gold-deep: #b9771c;
  --ink: #e9eef7;
  --muted: #9fb1cc;
  --line: rgba(246, 201, 85, 0.28);
  --serif: 'Noto Serif TC', 'PingFang TC', 'Microsoft JhengHei', serif;
  --sans: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', system-ui, sans-serif;
  --latin: 'Cinzel', 'Noto Serif TC', serif;
  --hdr: 72px;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(95, 208, 255, 0.12), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(30, 90, 170, 0.18), transparent 60%),
    linear-gradient(180deg, var(--deep), var(--abyss) 40%);
  background-color: var(--abyss);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
/* Fine grain over everything (fixed, non-interactive) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.center { text-align: center; margin-top: 2.2rem; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.62rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1.5px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.96); }
.btn-lg { padding: 0.8rem 2rem; font-size: 1.05rem; }
.btn-gold { color: #2b1704; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 50%, var(--gold-deep)); box-shadow: 0 6px 22px rgba(246, 201, 85, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn-gold:hover { box-shadow: 0 8px 30px rgba(246, 201, 85, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6); transform: translateY(-1px); }
.btn-ghost { color: var(--gold-hi); border-color: rgba(246, 201, 85, 0.6); background: rgba(3, 11, 29, 0.45); }
.btn-ghost:hover { background: rgba(246, 201, 85, 0.12); box-shadow: 0 0 20px rgba(246, 201, 85, 0.25); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--hdr);
  transition: background 0.25s, box-shadow 0.25s;
}
.site-header.scrolled, body:not([data-page='home']) .site-header { background: rgba(3, 11, 29, 0.88); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.hdr-inner { width: min(1280px, 100% - 2rem); margin-inline: auto; height: 100%; display: flex; align-items: center; gap: 2rem; }
.logo { display: inline-flex; align-items: baseline; gap: 0.3rem; line-height: 1; }
.logo-mark {
  font-family: var(--latin);
  font-weight: 900;
  font-size: 1.85rem;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.5));
}
.logo-zh { font-family: var(--serif); font-weight: 900; font-size: 1.15rem; letter-spacing: 0.15em; color: var(--ink); }
.nav { display: flex; gap: 0.4rem; margin-left: auto; }
.nav a { position: relative; display: grid; justify-items: center; padding: 0.35rem 1rem; line-height: 1.25; border-radius: 10px; transition: background 0.2s; }
.nav a span { font-weight: 700; letter-spacing: 0.12em; }
.nav a small { font-family: var(--latin); font-size: 0.62rem; letter-spacing: 0.2em; color: var(--muted); }
.nav a::after { content: ''; position: absolute; left: 30%; right: 30%; bottom: -2px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform 0.25s; }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
.nav a.on span { color: var(--gold); }
.lang { position: relative; }
.lang-btn { padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(3, 11, 29, 0.5); font-size: 0.85rem; color: var(--muted); }
.lang-btn b { color: var(--ink); font-weight: 500; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; margin: 0; padding: 0.4rem; list-style: none; border-radius: 12px; background: rgba(6, 23, 51, 0.97); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 0.18s, transform 0.18s; }
.lang-open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu li { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.4rem 0.7rem; border-radius: 8px; font-size: 0.88rem; }
.lang-menu li.on { color: var(--gold); background: rgba(246, 201, 85, 0.1); }
.lang-menu li.soon { color: var(--muted); }
.lang-menu em { font-style: normal; font-size: 0.7rem; opacity: 0.7; }
.burger { display: none; width: 42px; height: 42px; margin-left: auto; border: 1px solid var(--line); border-radius: 10px; background: rgba(3, 11, 29, 0.5); padding: 0 10px; }
.burger i { display: block; height: 2px; margin: 5px 0; background: var(--gold-hi); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.open .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.open .burger i:nth-child(2) { opacity: 0; }
.open .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero carousel ---------- */
.hero { position: relative; margin-top: calc(var(--hdr) * -1); height: min(100svh, 860px); min-height: 560px; overflow: hidden; touch-action: pan-y; }
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-top: var(--hdr);
  background: linear-gradient(90deg, rgba(3, 11, 29, 0.92) 0%, rgba(3, 11, 29, 0.55) 45%, rgba(3, 11, 29, 0.1) 75%), var(--bg) center / cover no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s 0.9s;
}
.slide::after { content: ''; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, var(--abyss)); pointer-events: none; }
.slide.on { opacity: 1; visibility: visible; transition: opacity 0.9s ease; }
.slide-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 2rem; }
.slide-copy > * { opacity: 0; transform: translateY(24px); }
.slide.on .slide-copy > * { animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.slide.on .slide-copy > :nth-child(2) { animation-delay: 0.1s; }
.slide.on .slide-copy > :nth-child(3) { animation-delay: 0.2s; }
.slide.on .slide-copy > :nth-child(4) { animation-delay: 0.3s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.badge { display: inline-block; padding: 0.25rem 0.9rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.15em; color: #2b1704; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.slide h1, .slide-title {
  margin: 0.8rem 0 0.4rem;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1.05;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #fff 0%, var(--gold-hi) 35%, var(--gold) 65%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 rgba(40, 20, 0, 0.6)) drop-shadow(0 0 24px rgba(246, 201, 85, 0.25));
}
.slide-title { font-size: clamp(2.2rem, 5.6vw, 4.4rem); }
.slide h1 small, .slide-title small { display: block; margin-top: 0.5rem; font-family: var(--latin); font-size: 0.26em; letter-spacing: 0.35em; -webkit-text-fill-color: var(--teal); color: var(--teal); filter: none; }
.slide-max { margin: 0 0 1.8rem; font-size: clamp(1.05rem, 2vw, 1.4rem); color: var(--ink); }
.slide-max b { font-family: var(--serif); font-weight: 900; font-size: 1.5em; color: var(--gold); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.slide-hero { justify-self: end; max-height: calc(min(100svh, 860px) - var(--hdr) - 40px); width: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(95, 208, 255, 0.25)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.hero-arrow { position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 1px solid var(--line); background: rgba(3, 11, 29, 0.5); font-size: 1.8rem; line-height: 1; color: var(--gold-hi); transition: background 0.2s; }
.hero-arrow:hover { background: rgba(246, 201, 85, 0.15); }
.hero-prev { left: 1.2rem; }
.hero-next { right: 1.2rem; }
.hero-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 2.2rem; display: flex; justify-content: center; gap: 0.6rem; }
.hero-dots button { width: 34px; height: 4px; padding: 0; border: none; border-radius: 4px; background: rgba(255, 255, 255, 0.3); transition: background 0.3s, width 0.3s; }
.hero-dots button.on { width: 56px; background: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.sec-title { margin: 0 0 2.4rem; text-align: center; font-family: var(--serif); font-weight: 900; font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: 0.12em; color: var(--ink); }
.sec-title small { display: block; margin-top: 0.3rem; font-family: var(--sans); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.15em; color: var(--gold); }
.sec-title.left { text-align: left; }
.sec-title::after { content: ''; display: block; width: 64px; height: 2px; margin: 1rem auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.sec-title.left::after { margin-left: 0; background: linear-gradient(90deg, var(--gold), transparent); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Game cards ---------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.game-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, rgba(11, 42, 85, 0.75), rgba(6, 23, 51, 0.9)); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.game-card:not(.soon):hover { transform: translateY(-6px); border-color: rgba(246, 201, 85, 0.65); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(246, 201, 85, 0.18); }
.gc-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sea); }
.gc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.game-card:hover .gc-thumb img { transform: scale(1.06); }
.gc-tag { position: absolute; left: 0.7rem; top: 0.7rem; padding: 0.15rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; color: #2b1704; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.gc-body { display: flex; flex-direction: column; gap: 0.7rem; padding: 1rem 1.1rem 1.2rem; flex: 1; }
.gc-body h3 { margin: 0; font-family: var(--serif); font-weight: 900; font-size: 1.35rem; letter-spacing: 0.08em; }
.gc-body h3 small { display: block; font-family: var(--latin); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.22em; color: var(--teal); }
.gc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0; }
.gc-meta div { padding: 0.45rem 0.6rem; border-radius: 10px; background: rgba(3, 11, 29, 0.5); }
.gc-meta dt { font-size: 0.72rem; color: var(--muted); }
.gc-meta dd { margin: 0; font-family: var(--serif); font-weight: 900; font-size: 1.05rem; color: var(--gold); }
.gc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: auto; }
.gc-btns .btn { padding: 0.5rem 0.6rem; font-size: 0.9rem; }
.game-card.soon { border-style: dashed; background: rgba(6, 23, 51, 0.5); }
.game-card.soon .gc-thumb { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(95, 208, 255, 0.14), transparent 60%), var(--deep); }
.soon-mark, .empty-mark { font-family: var(--latin); font-weight: 900; font-size: 2.4rem; letter-spacing: 0.1em; color: rgba(246, 201, 85, 0.28); }
.soon-text { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- Developer stats ---------- */
.dev { background: linear-gradient(180deg, transparent, rgba(11, 42, 85, 0.35), transparent); }
.dev-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.dev-copy p { color: var(--muted); margin: 0 0 1.6rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat { padding: 1.4rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(3, 11, 29, 0.55); }
.stat b { display: block; font-family: var(--serif); font-weight: 900; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); letter-spacing: 0.1em; }

/* ---------- Jackpot ---------- */
.jp { position: relative; overflow: hidden; background: radial-gradient(800px 360px at 50% 30%, rgba(246, 201, 85, 0.12), transparent 70%); }
.jp-board { display: flex; justify-content: center; align-items: center; gap: 0.3rem; width: fit-content; max-width: 100%; margin: 0 auto 2.6rem; padding: clamp(0.8rem, 2vw, 1.3rem) clamp(1rem, 3vw, 2rem); border-radius: 20px; border: 2px solid rgba(246, 201, 85, 0.7); background: linear-gradient(180deg, #0b1f45, #040d22); box-shadow: 0 0 50px rgba(246, 201, 85, 0.22), inset 0 0 30px rgba(0, 0, 0, 0.6); }
.jp-cur, .jp-sep, .jp-digit { font-family: var(--serif); font-weight: 900; font-size: clamp(1.7rem, 5.6vw, 4rem); line-height: 1.15; color: var(--gold); }
.jp-digits { display: flex; align-items: center; }
.jp-digit { display: inline-block; height: 1.15em; overflow: hidden; width: 0.66em; text-align: center; border-radius: 6px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.25)); margin: 0 0.04em; }
.jp-strip { display: flex; flex-direction: column; transition: transform 0.9s cubic-bezier(0.25, 1.1, 0.4, 1); }
.jp-strip i { font-style: normal; height: 1.15em; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.jp-sep { width: 0.3em; text-align: center; }
.jp-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.jp-features article, .feature { padding: 1.4rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(6, 23, 51, 0.7); }
.jp-features span, .feature-no { font-family: var(--latin); font-weight: 900; font-size: 1.6rem; color: rgba(246, 201, 85, 0.55); }
.jp-features h3, .feature h3 { margin: 0.3rem 0 0.4rem; font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.06em; }
.jp-features p, .feature p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.fine { margin: 1.4rem 0 0; text-align: center; font-size: 0.78rem; color: var(--muted); opacity: 0.8; }

/* ---------- Partners / CTA ---------- */
.partners { text-align: center; }
.partners p { color: var(--muted); margin: -1rem 0 1.8rem; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner { position: relative; padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem); text-align: center; background: linear-gradient(180deg, rgba(3, 11, 29, 0.35), var(--abyss)), url('/.netlify/images?url=/img/bg.jpg&w=1920&fm=webp&q=70') center 40% / cover; border-bottom: 1px solid var(--line); }
.page-banner h1 { margin: 0; font-family: var(--serif); font-weight: 900; font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: 0.15em; background: linear-gradient(180deg, #fff, var(--gold-hi) 40%, var(--gold) 70%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-banner h1 small { display: block; font-family: var(--latin); font-size: 0.3em; letter-spacing: 0.4em; -webkit-text-fill-color: var(--teal); }
.page-banner p { margin: 0.6rem 0 0; color: var(--muted); }

/* ---------- Games page ---------- */
.games-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cat-tabs button { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(6, 23, 51, 0.7); font-weight: 700; letter-spacing: 0.08em; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.cat-tabs button span { min-width: 1.5em; padding: 0 0.35em; border-radius: 999px; font-size: 0.72rem; background: rgba(255, 255, 255, 0.1); }
.cat-tabs button:hover { border-color: rgba(246, 201, 85, 0.6); }
.cat-tabs button.on { color: #2b1704; border-color: transparent; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 50%, var(--gold-deep)); }
.cat-tabs button.on span { background: rgba(43, 23, 4, 0.2); }
.search input { width: min(280px, 80vw); padding: 0.6rem 1.1rem 0.6rem 2.4rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font: inherit; background: rgba(3, 11, 29, 0.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23f6c955' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") 0.85rem center no-repeat; }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(246, 201, 85, 0.2); }
.empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 0.5rem; padding: 3.5rem 1rem; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); background: rgba(6, 23, 51, 0.45); }
.empty h3 { margin: 0; font-family: var(--serif); font-size: 1.3rem; }
.empty p { margin: 0 0 0.8rem; color: var(--muted); }

/* ---------- Game detail ---------- */
.detail-hero { position: relative; margin-top: calc(var(--hdr) * -1); padding: calc(var(--hdr) + 2rem) 0 2rem; background: linear-gradient(90deg, rgba(3, 11, 29, 0.95), rgba(3, 11, 29, 0.6) 55%, rgba(3, 11, 29, 0.25)), var(--bg) center / cover; overflow: hidden; }
.detail-hero::after { content: ''; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(transparent, var(--abyss)); }
.detail-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center; }
.kicker { margin: 0; color: var(--teal); letter-spacing: 0.2em; font-weight: 700; font-size: 0.9rem; }
.detail-copy h1 { margin: 0.4rem 0 1rem; font-family: var(--serif); font-weight: 900; font-size: clamp(2.6rem, 6.5vw, 4.8rem); line-height: 1.05; letter-spacing: 0.06em; background: linear-gradient(180deg, #fff, var(--gold-hi) 35%, var(--gold) 65%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.detail-copy h1 small { display: block; margin-top: 0.4rem; font-family: var(--latin); font-size: 0.28em; letter-spacing: 0.35em; -webkit-text-fill-color: var(--teal); }
.lead { max-width: 36em; margin: 0 0 1.8rem; color: #d4dceb; font-size: 1.05rem; }
.detail-hero-img { justify-self: end; max-height: 560px; width: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6)); }
.detail-specs { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, 1fr); margin-top: -1rem; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(6, 23, 51, 0.9); overflow: hidden; }
.detail-specs div { padding: 1.1rem 1rem; text-align: center; }
.detail-specs div + div { border-left: 1px solid var(--line); }
.detail-specs span { display: block; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.1em; }
.detail-specs b { font-family: var(--serif); font-weight: 900; font-size: 1.4rem; color: var(--gold); }
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.shots img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }

/* ---------- News ---------- */
.news-list { display: grid; gap: 1.4rem; }
.news-item { display: grid; grid-template-columns: 340px 1fr; gap: 1.6rem; padding: 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(6, 23, 51, 0.7); transition: border-color 0.2s, transform 0.2s; }
.news-item:hover { border-color: rgba(246, 201, 85, 0.6); transform: translateY(-3px); }
.news-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-item:hover .news-img img { transform: scale(1.05); }
.news-body { display: flex; flex-direction: column; justify-content: center; }
.news-meta { display: flex; gap: 0.8rem; align-items: center; margin: 0; font-size: 0.85rem; color: var(--muted); }
.news-meta span { padding: 0.05rem 0.6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--gold); }
.news-body h3 { margin: 0.4rem 0; font-family: var(--serif); font-size: 1.35rem; }
.news-body h3 a:hover { color: var(--gold); }
.news-body p { margin: 0 0 0.6rem; color: var(--muted); }
.more { color: var(--gold); font-weight: 700; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-copy p { color: var(--muted); }
.about-img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info p { color: var(--muted); }
.contact-info ul { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.8rem; }
.contact-info li { display: grid; padding: 0.9rem 1.1rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(6, 23, 51, 0.6); }
.contact-info li b { font-family: var(--serif); color: var(--gold); }
.contact-info li span { color: var(--muted); font-size: 0.92rem; }
.contact-form { display: grid; gap: 1rem; padding: clamp(1.2rem, 3vw, 2rem); border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(11, 42, 85, 0.7), rgba(6, 23, 51, 0.9)); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); }
.contact-form label { display: grid; gap: 0.35rem; }
.contact-form label > span { font-size: 0.9rem; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 0.7rem 0.9rem; border-radius: 10px; border: 1px solid rgba(159, 177, 204, 0.3); background: rgba(3, 11, 29, 0.7); color: var(--ink); font: inherit; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(246, 201, 85, 0.2); }
.contact-form input:user-invalid, .contact-form textarea:user-invalid { border-color: #ff7a6b; }
.contact-form button { justify-self: start; }
.contact-form button:disabled { opacity: 0.6; cursor: wait; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; min-height: 1.5em; font-size: 0.95rem; }
.form-status.ok { color: #7ee2a8; }
.form-status.err { color: #ff8f80; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(2, 7, 18, 0.9); }
.ftr-inner { display: grid; justify-items: center; gap: 1rem; padding: 2.6rem 1rem calc(2rem + env(safe-area-inset-bottom)); text-align: center; }
.ftr-nav, .social { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.4rem; }
.ftr-nav a { color: var(--muted); }
.ftr-nav a:hover { color: var(--gold); }
.social a { padding: 0.35rem 0.9rem; border-radius: 999px; border: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); transition: color 0.2s, border-color 0.2s; }
.social a:hover { color: var(--gold); border-color: var(--gold); }
.copy, .note { margin: 0; font-size: 0.8rem; color: var(--muted); }
.note { opacity: 0.75; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --hdr: 62px; }
  .burger { display: block; }
  .nav { position: fixed; top: var(--hdr); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 0.5rem 1rem 1rem; background: rgba(3, 11, 29, 0.97); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
  .open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { grid-auto-flow: column; justify-content: space-between; padding: 0.9rem 0.4rem; border-bottom: 1px solid rgba(246, 201, 85, 0.12); }
  .nav a::after { display: none; }
  .lang { margin-left: auto; }
  .burger { margin-left: 0.5rem; }
  .lang-btn { font-size: 0.75rem; padding: 0.35rem 0.7rem; }
  .hdr-inner { gap: 0.8rem; }
  .slide { background: linear-gradient(180deg, rgba(3, 11, 29, 0.35), rgba(3, 11, 29, 0.85) 70%), var(--bg) center / cover no-repeat; align-items: flex-end; padding-bottom: 5rem; }
  .slide-grid { grid-template-columns: 1fr; }
  .slide-hero { position: absolute; right: -10%; top: -40vh; height: 60vh; max-height: none; opacity: 0.55; z-index: -1; }
  .hero-arrow { display: none; }
  .dev-grid, .about-grid, .contact-grid, .detail-grid { grid-template-columns: 1fr; }
  .detail-hero-img { display: none; }
  .detail-specs { grid-template-columns: repeat(3, 1fr); }
  .detail-specs div:nth-child(4) { border-left: none; }
  .detail-specs div:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .jp-features { grid-template-columns: 1fr 1fr; }
  .news-item { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .logo-mark { font-size: 1.5rem; }
  .logo-zh { font-size: 0.95rem; }
  .lang-btn .lang-lbl { display: none; }
  /* One placeholder card is enough on a phone */
  .game-card.soon ~ .game-card.soon { display: none; }
  .jp-features { grid-template-columns: 1fr; }
  .stats { gap: 0.7rem; }
  .gc-btns .btn { font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .slide-copy > * { opacity: 1; transform: none; }
}
