/* FantasyCraft official site. No build step: edit and deploy. */
:root {
  --bg: #11131a;
  --bg-2: #171a23;
  --panel: rgba(29, 33, 45, 0.78);
  --panel-solid: #1d212d;
  --line: rgba(232, 199, 125, 0.24);
  --line-soft: rgba(255, 255, 255, 0.07);
  --gold: #e8c77d;
  --gold-strong: #f6d995;
  --text: #ece4d3;
  --muted: #a4acba;
  --sakura: #f3a9c2;
  --sky-1: #161b2c;
  --sky-2: #2a2440;
  --sky-3: #4a3550;
  --radius: 14px;
  --max: 1160px;
  --font: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-strong); text-decoration: underline; }
.pixel { image-rendering: pixelated; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--gold); color: #111; padding: 6px 12px; border-radius: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(17, 19, 26, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: 0.04em; font-size: 19px; }
.brand:hover { color: var(--gold-strong); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; color: var(--gold); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 70% 110%, rgba(243, 169, 194, 0.20), transparent 60%),
    radial-gradient(900px 420px at 15% 100%, rgba(232, 199, 125, 0.16), transparent 60%),
    linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-3) 100%);
  border-bottom: 1px solid var(--line-soft);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 32%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 24%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 40%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 38%, #fff 50%, transparent 51%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: center; min-height: 600px; padding: 56px 0 32px; }
.eyebrow { display: inline-block; color: var(--gold); border: 1px solid var(--line); background: rgba(232, 199, 125, 0.08); padding: 3px 14px; border-radius: 999px; font-size: 14px; letter-spacing: 0.08em; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.12; margin: 18px 0 14px; letter-spacing: 0.02em; }
.hero h1 .accent { background: linear-gradient(180deg, var(--gold-strong), #d8a95a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: #d6cfc0; font-size: 19px; max-width: 32em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px; font-weight: 700; font-size: 16px;
  border: 1px solid var(--line); color: var(--text); background: var(--panel);
}
.btn:hover { text-decoration: none; border-color: var(--gold); color: var(--gold-strong); }
.btn-primary { background: linear-gradient(180deg, #f2d48f, #d5a654); color: #2a1f0e; border-color: transparent; box-shadow: 0 8px 24px rgba(213, 166, 84, 0.25); }
.btn-primary:hover { color: #1c140a; filter: brightness(1.06); }
.btn[aria-disabled="true"] { opacity: 0.85; cursor: default; }
.note { color: var(--muted); font-size: 14px; }

.diorama { position: relative; height: 520px; }
.diorama img { position: absolute; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.45)); }
.diorama .d1 { width: 56%; left: 22%; bottom: 4%; z-index: 3; animation: float 7s ease-in-out infinite; }
.diorama .d2 { width: 40%; left: -2%; bottom: 16%; z-index: 2; animation: float 8s ease-in-out -2s infinite; }
.diorama .d3 { width: 36%; right: -2%; bottom: 20%; z-index: 2; animation: float 9s ease-in-out -4s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .diorama img { animation: none !important; } html { scroll-behavior: auto; } }

/* ---------- sections ---------- */
section.block { padding: 88px 0; }
section.block.alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 10px 0 8px; letter-spacing: 0.03em; }
.section-head p { color: var(--muted); margin: 0; }
.kicker { color: var(--gold); font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 72px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip .media { order: 2; }
.feature h3 { font-size: 28px; margin: 6px 0 12px; }
.feature p { color: #d3ccbd; margin: 0 0 14px; }
.feature ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.feature li { margin: 4px 0; }
.media {
  position: relative; border-radius: var(--radius); padding: 28px;
  background: radial-gradient(circle at 50% 70%, rgba(232, 199, 125, 0.10), transparent 65%), var(--panel-solid);
  border: 1px solid var(--line); display: grid; place-items: center; min-height: 320px;
}
.media img { max-height: 380px; width: auto; }
.media.wide img { width: 100%; max-height: none; }
.decor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; }
.decor-grid img { border-radius: 10px; width: 100%; border: 1px solid var(--line-soft); }
.tag { display: inline-block; font-size: 13px; color: var(--sakura); border: 1px solid rgba(243, 169, 194, 0.35); border-radius: 999px; padding: 1px 10px; margin-right: 6px; }

/* ---------- launcher ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; margin-bottom: 12px;
  background: rgba(232, 199, 125, 0.12); color: var(--gold-strong); font-weight: 800; border: 1px solid var(--line);
}
.step h3 { margin: 0 0 6px; font-size: 20px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 10px; font-size: 19px; color: var(--gold-strong); }
.card ul { margin: 0; padding-left: 1.2em; color: #d3ccbd; }
.card li { margin: 6px 0; }

/* ---------- roadmap ---------- */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.milestone { border-top: 3px solid var(--line); padding-top: 14px; }
.milestone.now { border-top-color: var(--gold); }
.milestone .when { color: var(--gold); font-size: 14px; letter-spacing: 0.06em; }
.milestone h3 { margin: 4px 0 6px; font-size: 18px; }
.milestone p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; padding: 4px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; float: right; color: var(--gold); }
.faq details[open] summary::after { content: "－"; }
.faq details p { margin: 0 0 16px; color: #d3ccbd; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
.disclaimer { font-size: 13px; color: #7f8796; }

/* ---------- legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 64px 0 88px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin: 0 0 36px; }
.legal h2 { font-size: 22px; margin: 40px 0 10px; color: var(--gold-strong); }
.legal p, .legal li { color: #d6cfc0; }
.legal ul { padding-left: 1.3em; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.legal th { color: var(--gold); font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .diorama { height: 380px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip .media { order: 0; }
  .steps, .facts { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav a:not(.lang) { display: none; }
  .roadmap { grid-template-columns: 1fr; }
  .decor-grid { grid-template-columns: repeat(2, 1fr); }
  section.block { padding: 64px 0; }
}
