/* Luarvex 工作室首頁和作品頁共用：夜晚的海（和各款遊戲自己的頁面風格分開）。 */
:root {
  --bg: #f5f7fb;
  --bg-alt: #eceff8;
  --card: #ffffff;
  --ink: #141b2d;
  --muted: #56607a;
  --line: #dde3ef;
  --brand: #4f46e5;
  --chip: #e8e7fd;
  --chip-ink: #3730a3;
  --glow: #fbbf24;
  --hero-1: #1e1b4b;
  --hero-2: #312e81;
  --hero-ink: #f5f3ff;
  --shadow: 0 2px 6px rgba(20, 27, 45, .06), 0 14px 34px rgba(20, 27, 45, .1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1020; --bg-alt: #121631; --card: #161a30; --ink: #eceffa; --muted: #a8b0c8; --line: #262b47;
    --brand: #a5b4fc; --chip: #24285a; --chip-ink: #c7d2fe;
    --shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 14px 34px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1020; --bg-alt: #121631; --card: #161a30; --ink: #eceffa; --muted: #a8b0c8; --line: #262b47;
  --brand: #a5b4fc; --chip: #24285a; --chip-ink: #c7d2fe;
  --shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 14px 34px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.75 "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
a { color: var(--brand); }
a:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.px { image-rendering: pixelated; }
.muted { color: var(--muted); }

/* 頁首和主視覺 */
.top { position: absolute; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px max(16px, calc((100% - 1040px) / 2)); color: var(--hero-ink); z-index: 1; }
.brand { color: inherit; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: .04em; }
.top nav { display: flex; gap: 20px; }
.top nav a { color: inherit; text-decoration: none; opacity: .85; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

.hero { position: relative; padding: 140px max(16px, calc((100% - 1040px) / 2)) 96px; color: var(--hero-ink); background: radial-gradient(circle at 82% 30%, rgba(251, 191, 36, .28), transparent 22%), linear-gradient(180deg, var(--hero-1), var(--hero-2)); overflow: hidden; }
.hero::after { content: ""; position: absolute; right: max(16px, calc((100% - 1040px) / 2 + 40px)); top: 92px; width: 64px; height: 64px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 60px rgba(251, 191, 36, .55); }
.hero.small { padding-bottom: 64px; }
.kicker { margin: 0 0 8px; font-size: 14px; letter-spacing: .2em; opacity: .8; }
.hero h1 { margin: 0; font-size: clamp(34px, 7vw, 56px); line-height: 1.2; max-width: 12em; }
.lead { margin: 18px 0 0; max-width: 32em; font-size: 18px; opacity: .9; }
.cta { display: inline-block; margin-top: 28px; padding: 10px 22px; border-radius: 999px; background: var(--glow); color: #1e1b4b; font-weight: 700; text-decoration: none; }
.cta:hover { filter: brightness(1.05); }

/* 內容區塊 */
.block { padding: 64px max(16px, calc((100% - 1040px) / 2)); }
.block.alt { background: var(--bg-alt); }
.block h2 { margin: 0 0 20px; font-size: 28px; line-height: 1.3; }
.prose { max-width: 40em; }
.prose p { margin: 0 0 14px; }
.head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.more { font-weight: 700; text-decoration: none; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.value h3 { margin: 0 0 8px; font-size: 19px; }
.value p { margin: 0; color: var(--muted); }

.mini-games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mini { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s ease; }
.mini:hover { transform: translateY(-3px); }
.mini .icon { flex: none; border-radius: 12px; }
.mini strong { display: block; font-size: 20px; }
.mini span { color: var(--muted); font-size: 15px; }

.mails { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 700; }
.mails a { overflow-wrap: anywhere; }

/* 作品頁 */
.products { display: grid; gap: 28px; }
.product { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.shot { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border-radius: 14px; }
.name { display: flex; align-items: center; gap: 12px; }
.name h2 { margin: 0; font-size: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.tags span { padding: 2px 12px; border-radius: 999px; background: var(--chip); color: var(--chip-ink); font-size: 14px; font-weight: 700; }
.info > p:not(.tags) { margin: 16px 0 0; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 20px; }
.links a { font-size: 15px; }
.links .primary { padding: 8px 20px; border-radius: 999px; background: var(--brand); color: var(--card); font-weight: 700; font-size: 16px; text-decoration: none; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 28px max(16px, calc((100% - 1040px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: inherit; }

@media (max-width: 760px) {
  .values, .mini-games { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; gap: 20px; padding: 18px; }
  .shot { aspect-ratio: auto; max-height: 340px; }
}
@media (max-width: 640px) {
  .top nav { gap: 14px; }
  .hero { padding-top: 112px; padding-bottom: 72px; }
  .hero.small { padding-bottom: 48px; }
  .hero::after { top: 70px; width: 44px; height: 44px; }
  .block { padding-top: 48px; padding-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) { .mini { transition: none; } }
