/* 皮雀工作室官網：共用樣式（酷炫版：深色、霓虹光暈、流動極光背景）。
   顏色都在 :root，要換色只改這裡。 */
:root {
  --bg: #07060d;
  --bg-2: #0e0c1a;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.10);
  --text: #f2eefc;
  --muted: #a59fbc;
  --neon-1: #ff4fd8;   /* 桃紅 */
  --neon-2: #7c5cff;   /* 紫 */
  --neon-3: #22e1ff;   /* 青 */
  --grad: linear-gradient(110deg, var(--neon-1), var(--neon-2) 45%, var(--neon-3));
  --magic: #ffd27a;    /* 萬物皆可魔：金 */
  --eystran: #ff9a4d;  /* 艾斯托蘭：夕陽橘 */
  --radius: 18px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--neon-3); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 900; letter-spacing: .02em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; position: relative; }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── 流動極光背景＋網格＋顆粒 ── */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-fx .blob { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .32; animation: drift 26s ease-in-out infinite alternate; }
.bg-fx .b1 { background: var(--neon-2); top: -25vmax; left: -15vmax; }
.bg-fx .b2 { background: var(--neon-1); bottom: -30vmax; right: -20vmax; animation-duration: 32s; opacity: .22; }
.bg-fx .b3 { background: var(--neon-3); top: 30%; left: 45%; width: 40vmax; height: 40vmax; animation-duration: 38s; opacity: .14; }
.bg-fx .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(8vmax, 6vmax) scale(1.15); }
  100% { transform: translate(-6vmax, 10vmax) scale(.95); }
}

/* ── 頁首 ── */
.site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(7, 6, 13, .62); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 900; letter-spacing: .06em; }
.brand-logo {
  width: 44px; height: 44px; object-fit: contain; display: block;
  filter: drop-shadow(0 0 10px rgba(124, 92, 255, .55));
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 10px; font-weight: 700; transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-hover); }
.menu-toggle { display: none; margin-left: auto; font-size: 1.5rem; background: none; border: 0; color: var(--text); cursor: pointer; }
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch;
         background: rgba(10, 8, 20, .97); border-bottom: 1px solid var(--line); padding: 8px 16px 18px; }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ── 按鈕 ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px;
  font-weight: 900; letter-spacing: .04em; text-decoration: none; border: 0; cursor: pointer;
  background: var(--grad); color: #0b0716; box-shadow: 0 0 0 rgba(124,92,255,0);
  transition: transform .2s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124, 92, 255, .55); }
.btn-small { padding: 7px 16px; font-size: .9rem; }
.nav .btn { color: #0b0716; margin-left: 10px; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--neon-3), 0 0 24px rgba(34, 225, 255, .35); }
.btn.is-off { background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); cursor: default; transform: none; }

/* ── 區塊 ── */
section { padding: 88px 0; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 900; letter-spacing: .3em; color: var(--neon-3); margin-bottom: 12px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0; }
.section-head a { color: var(--muted); text-decoration: none; font-weight: 700; }
.section-head a:hover { color: var(--text); }

/* ── 首頁主視覺 ── */
.hero { position: relative; min-height: min(calc(100vh - 68px), 920px); display: flex; align-items: center; padding: 64px 0 96px; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 6rem); line-height: 1.08; margin-bottom: .35em; }
.hero h1 .line { display: block; }
.hero .lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 620px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.solo-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .9rem; font-weight: 700; margin-bottom: 26px;
}
.solo-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: #3dff9a; box-shadow: 0 0 12px #3dff9a; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); color: var(--muted); font-size: .8rem; letter-spacing: .3em; }

/* ── 遊戲大卡片 ── */
.games { display: grid; gap: 28px; }
.game-card {
  position: relative; display: grid; grid-template-columns: 1.25fr 1fr; border-radius: 26px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text);
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--accent, var(--neon-2)); box-shadow: 0 20px 60px -20px var(--accent, var(--neon-2)); }
.game-card .art { position: relative; min-height: 300px; overflow: hidden; }
.game-card .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.game-card:hover .art img { transform: scale(1.06); }
.game-card .info { padding: 36px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.game-card h3 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0; }
.game-card .more { margin-top: 10px; font-weight: 900; color: var(--accent); }
.game-card.reverse { grid-template-columns: 1fr 1.25fr; }
.game-card.reverse .art { order: 2; }
.magic { --accent: var(--magic); }
.eystran { --accent: var(--eystran); }
@media (max-width: 820px) {
  .game-card, .game-card.reverse { grid-template-columns: 1fr; }
  .game-card.reverse .art { order: 0; }
  .game-card .art { min-height: 0; aspect-ratio: 16 / 9; }
  .game-card .info { padding: 24px; }
}
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px; border-radius: 999px; font-size: .8rem; font-weight: 900; letter-spacing: .08em;
        color: var(--accent); border: 1px solid currentColor; background: rgba(0,0,0,.25); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

/* ── 遊戲頁 ── */
.game-hero { position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end; padding: 0 0 64px; overflow: hidden; }
.game-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,6,13,.15) 0%, rgba(7,6,13,.35) 45%, var(--bg) 100%); }
.game-hero .wrap { z-index: 1; width: 100%; }
.game-hero h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); margin: 10px 0 8px; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.game-hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 680px; text-shadow: 0 2px 16px rgba(0,0,0,.8); }
.game-hero .links { margin-top: 24px; }
.links { display: flex; gap: 12px; flex-wrap: wrap; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; padding: 0; margin: 0; list-style: none; }
.features li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; overflow: hidden; transition: border-color .3s, transform .3s; }
.features li:hover { border-color: var(--accent, var(--neon-2)); transform: translateY(-3px); }
.features li::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--accent, var(--neon-2)); opacity: .8; }
.features .icon { font-size: 1.8rem; line-height: 1; margin-bottom: 12px; display: block; }
.features strong { display: block; font-size: 1.15rem; margin-bottom: 6px; }
.features span.muted { font-size: .95rem; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.shots button { padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: none; transition: transform .3s, border-color .3s; }
.shots button:hover { transform: scale(1.02); border-color: var(--accent, var(--neon-3)); }
.shots img { width: 100%; aspect-ratio: 16 / 8.5; object-fit: cover; }
.shots .wide { grid-column: 1 / -1; }
.shots .wide img { aspect-ratio: 640 / 332; image-rendering: pixelated; }
.wip-note { margin-top: 14px; font-size: .9rem; }

/* 截圖放大 */
.lightbox { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 16px; background: rgba(4, 3, 8, .92); cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 90vh; border-radius: 12px; box-shadow: 0 20px 80px rgba(0,0,0,.6); }

/* ── 最新消息 ── */
.news-item { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 22px 28px; margin-bottom: 14px; overflow: hidden; transition: border-color .3s, background .3s; }
.news-item:hover { background: var(--surface-hover); }
.news-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent, var(--grad)); }
.news-item h3 { margin: 6px 0; font-size: 1.15rem; }
.news-item p { margin: 0; color: var(--muted); }
.news-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.news-meta time { font-variant-numeric: tabular-nums; letter-spacing: .05em; }
.tag { color: var(--accent, var(--neon-3)); font-weight: 900; }
.tag-soft { color: var(--muted); }

/* ── 關於 ── */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about .big { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 900; line-height: 1.35; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 12px; text-align: center; }
.stat b { display: block; font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .85rem; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; gap: 28px; } }

/* ── 行動呼籲 ── */
.cta { text-align: center; border-radius: 28px; padding: 64px 24px; background: radial-gradient(ellipse at top, rgba(124,92,255,.35), transparent 70%), var(--surface); border: 1px solid var(--line); }
.cta h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
.cta p { color: var(--muted); max-width: 520px; margin: 0 auto 26px; }

/* ── 頁尾 ── */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ── 捲動出現 ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── 神秘新作（第三款，不公開內容） ── */
.mystery { --accent: var(--neon-3); }
.mystery .art {
  display: grid; place-items: center; min-height: 260px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 2px, transparent 2px 4px),
    radial-gradient(circle at 50% 50%, rgba(124,92,255,.45), rgba(7,6,13,.9) 70%);
}
.mystery .qmark {
  font-size: clamp(6rem, 16vw, 10rem); font-weight: 900; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px rgba(124,92,255,.7)); animation: glitch 3.2s infinite steps(1);
}
@keyframes glitch {
  0%, 88%, 100% { transform: none; opacity: 1; }
  90% { transform: translate(-4px, 2px) skewX(8deg); opacity: .7; }
  93% { transform: translate(5px, -2px); opacity: .9; }
  96% { transform: translate(-2px, 0) skewX(-6deg); }
}
.mystery:hover { transform: none; }
@media (max-width: 820px) { .mystery .art { min-height: 0; aspect-ratio: 16 / 9; } }
