:root {
  --bg: #170A14;
  --bg-2: #1E0E1A;
  --panel: #2A1425;
  --line: #3A2233;
  --line-2: #6B3F5A;
  --text: #F7ECF1;
  --muted: #D9C4CF;
  --pink: #FF6B9D;
  --pink-soft: #FFC2D6;
  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  text-wrap: balance;
}

a {
  color: var(--pink);
}

a:hover {
  color: var(--pink-soft);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--pink-soft);
  outline-offset: 3px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.pink {
  color: var(--pink);
}

/* 按鈕 */
.btn {
  display: inline-block;
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary,
.btn-primary:hover {
  background: var(--pink);
  color: var(--bg);
}

.btn-big {
  font-size: 19px;
  padding: 17px 38px;
}

.btn-dark,
.btn-dark:hover {
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  padding: 16px 28px;
}

.btn-outline,
.btn-outline:hover {
  border: 1.5px solid var(--bg);
  color: var(--bg);
  font-size: 17px;
  padding: 15px 28px;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  font-weight: 500;
}

.btn-ghost:hover {
  color: var(--text);
}

/* 頁首 */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--serif);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 2px;
}

.logo:hover {
  color: var(--text);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  font-size: 15px;
}

.nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  padding: 12px 0;
}

.nav a:not(.btn):hover {
  color: var(--pink-soft);
}

/* 主視覺：一顆莓果 */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 64px;
}

.avatar {
  flex: 0 0 auto;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: var(--panel);
  border: 1.5px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-text {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eyebrow {
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--pink);
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.15;
  font-weight: 900;
}

.about-body {
  font-size: 18px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 30em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
}

/* 主打遊戲：慾海莊園 */
.feature {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.badge {
  border: 1px solid var(--pink);
  color: var(--pink);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.feature-title {
  font-size: clamp(52px, 10vw, 108px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 4px;
}

.feature-desc {
  font-size: 18px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 28em;
}

.feature-actions {
  padding-top: 6px;
}

.btn[hidden],
.unlock[hidden] {
  display: none;
}

.unlock {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
}

.unlock-label {
  font-size: 15px;
  color: var(--muted);
}

.unlock-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.unlock-input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 12px 20px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text);
  font: inherit;
}

.unlock-input::placeholder {
  color: #A98C9B;
}

.unlock-input:focus-visible {
  outline: 2px solid var(--pink-soft);
  outline-offset: 2px;
}

.unlock-msg {
  margin-top: 12px;
  font-size: 14px;
  color: var(--pink-soft);
}

.feature-note {
  font-size: 14px;
  color: var(--muted);
}

/* 遊戲清單 */
.games {
  padding-top: 72px;
  padding-bottom: 8px;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: 2px;
}

.section-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.game-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-card a {
  display: block;
  height: 100%;
  padding: 22px 22px 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, border-color 0.15s;
}

.game-card a:hover,
.game-card a:focus-visible {
  transform: translateY(-3px);
  border-color: var(--pink);
}

.game-card h3 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
}

.game-card p {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 15px;
}

.card-go {
  color: var(--pink);
  font-size: 14px;
  font-weight: 700;
}

/* 社群 */
.community {
  padding-top: 72px;
  padding-bottom: 88px;
}

.community-card {
  background: var(--pink);
  color: var(--bg);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
}

.community-text {
  flex: 2 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.community-eyebrow {
  font-size: 13px;
  letter-spacing: 4px;
  font-weight: 700;
}

.community-text h2 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.25;
}

.community-text p:last-child {
  font-size: 17px;
  line-height: 1.9;
  max-width: 30em;
}

.community-links {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 頁尾 */
.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 48px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* 年齡確認 */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 10, 20, 0.97);
}

html.age-ok .age-gate,
.age-gate[hidden] {
  display: none;
}

.age-card {
  width: min(420px, 100%);
  padding: 32px 28px 28px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 24px;
  text-align: center;
}

.age-card[hidden] {
  display: none;
}

.age-mark {
  margin: 0 auto 8px;
}

.age-brand {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--pink);
}

.age-card h1 {
  margin: 8px 0 10px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 2px;
}

.age-copy {
  margin-bottom: 22px;
  color: var(--muted);
}

.age-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.age-leave {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--muted);
}

@media (min-width: 640px) {
  .game-list {
    grid-template-columns: 1fr 1fr;
  }

  .age-actions {
    flex-direction: row;
    justify-content: center;
  }

  .age-actions .btn {
    min-width: 160px;
  }
}

@media (min-width: 960px) {
  .game-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .game-card a {
    transition: none;
  }

  .btn:hover,
  .game-card a:hover {
    transform: none;
  }
}
