/* Homepage only. Deployed separately from the previous homepage stylesheet. */
:root {
  color-scheme: light;
  --ink: #201D24;
  --soft: #625D69;
  --lavender: #E0CEE9;
  --sage: #BEE0C6;
  --surface: #F5F3F7;
  --line: #E6E1EA;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 650; }
.wrap { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.header-inner { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; font-size: 27px; font-weight: 750; letter-spacing: -.04em; }
.brand > span { padding-left: 14px; border-left: 1px solid var(--line); font-size: 14px; font-weight: 500; letter-spacing: .1em; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--soft); font-size: 14px; }
.site-header nav .nav-player { gap: 20px; border-radius: 8px; padding-inline: 18px; background: var(--surface); color: var(--ink); }
.site-header nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; padding-block: 76px 80px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--soft); font-size: 13px; font-weight: 500; letter-spacing: .05em; }
.brand-dot { width: 8px; height: 8px; background: var(--sage); border-radius: 50%; }
h1 { margin-top: 22px; font-size: clamp(36px, 3.5vw, 49px); line-height: 1.48; letter-spacing: -.045em; }
h1 span { text-decoration: underline; text-decoration-color: var(--lavender); text-decoration-thickness: 7px; text-underline-offset: 8px; text-decoration-skip-ink: none; }
.hero-description { margin-top: 25px; color: var(--soft); font-size: 15px; line-height: 2; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 30px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 32px; min-height: 50px; padding: 12px 22px; border: 0; border-radius: 8px; font-size: 14px; font-weight: 650; line-height: 1.6; }
.button-primary { color: var(--ink); background: var(--lavender); }
.button-primary:hover { background: #F4C2F4; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; font-size: 14px; font-weight: 550; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.server-info { display: flex; align-items: center; gap: 12px; margin-top: 22px; color: var(--soft); font-size: 12px; flex-wrap: wrap; }
code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 1em; }
.copy-inline { min-height: 44px; padding: 6px 8px; margin-left: -6px; border: 0; background: transparent; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.copy-inline:hover { color: var(--ink); }
.hero-art { position: relative; }
.hero-art img { width: 100%; border-radius: 14px; }
.hero-art figcaption { position: absolute; right: 13px; bottom: 10px; color: var(--soft); font-size: 10px; }
h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.5; letter-spacing: -.035em; }
.enchant-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; padding: 48px 56px; border-radius: 14px; background: var(--surface); }
.enchant-intro { align-self: center; }
.enchant-intro h2 { margin-top: 14px; }
.enchant-intro > p:not(.eyebrow) { margin-top: 18px; color: var(--soft); font-size: 14px; line-height: 2; }
.enchant-intro .text-link { margin-top: 18px; }
.catalog-note { display: block; color: var(--soft); font-size: 12px; line-height: 1.8; }
.enchant-example { display: flex; align-items: flex-start; gap: 22px; padding-block: 22px; border-bottom: 1px solid #DFD8E5; }
.enchant-example:first-child { padding-top: 0; }
.example-number { min-width: 24px; margin-top: 1px; color: var(--soft); font: 14px/1.8 ui-monospace, monospace; }
.example-kind { color: var(--soft); font-size: 11px; letter-spacing: .06em; }
.enchant-example h3 { margin-top: 2px; font-size: 18px; line-height: 1.6; }
.enchant-example h3 + p { margin-top: 5px; color: var(--soft); font-size: 14px; line-height: 1.9; }
.enchant-note { margin-top: 13px; color: var(--soft); font-size: 12px; line-height: 1.9; }
.life-section { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 82px; padding-block: 100px; }
.photo-frame { aspect-ratio: 1.4; overflow: hidden; border-radius: 12px; background: var(--surface); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; transform: scale(1.26); }
.community-photo figcaption { display: flex; flex-direction: column; gap: 3px; margin-top: 12px; color: var(--soft); font-size: 11px; line-height: 1.8; }
.community-photo figcaption > span:first-child { color: var(--ink); font-size: 12px; }
.life-copy h2 { margin-top: 13px; }
.life-item { margin-top: 22px; }
.life-item h3 { font-size: 15px; }
.life-item p { margin-top: 4px; color: var(--soft); font-size: 14px; line-height: 1.95; }
.join-section { background: var(--surface); padding-block: 64px 40px; }
.join-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.join-heading h2 { margin-top: 10px; }
.join-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 42px 0 34px; padding: 0; list-style: none; }
.step-number { color: var(--soft); font: 12px/1.8 ui-monospace, monospace; }
.join-steps h3 { margin-top: 8px; font-size: 16px; }
.join-steps p { margin-top: 6px; font-size: 13px; color: var(--soft); }
.join-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 18px; border-top: 1px solid #DFD8E5; }
.join-bottom p { font-size: 13px; color: var(--soft); }
.rules { border-top: 1px solid #DFD8E5; }
summary { cursor: pointer; }
.rules summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-block: 19px; font-size: 12px; color: var(--soft); list-style: none; }
.rules summary::-webkit-details-marker { display: none; }
.rules[open] summary > span { transform: rotate(45deg); }
.rules ul { margin: 0; padding: 0 0 10px 20px; color: var(--soft); font-size: 13px; line-height: 2.2; }
.site-footer { padding-block: 36px 26px; }
.footer-main, .footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-main .brand { font-size: 23px; }
.footer-main nav { display: flex; gap: 25px; flex-wrap: wrap; color: var(--soft); font-size: 12px; }
.footer-main nav a { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; }
.footer-bottom { align-items: flex-start; margin-top: 22px; font-size: 10px; color: var(--soft); }
.server-status { text-align: right; max-width: 55%; }
.server-status summary { min-height: 28px; }
.server-status img { margin-top: 10px; width: 360px; max-width: 100%; height: auto; }
.copy-status { position: fixed; z-index: 20; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 8px; background: var(--ink); color: var(--surface); font-size: 13px; text-align: center; box-shadow: 0 6px 24px #201D2420; }
.copy-status:empty { padding: 0; background: transparent; box-shadow: none; }
.skip-link { position: fixed; z-index: 30; top: -100px; left: 16px; padding: 12px 18px; border-radius: 6px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }
:is(a, button, summary):focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 30px; padding-block: 56px; }
  h1 { font-size: 38px; }
  .desktop-break { display: none; }
  .enchant-section { padding: 36px; gap: 40px; }
  .life-section { gap: 42px; padding-block: 72px; }
  .hero-actions { gap: 16px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { height: 70px; gap: 12px; }
  .brand { font-size: 24px; gap: 10px; }
  .brand > span { padding-left: 10px; font-size: 12px; }
  .site-header nav { gap: 16px; }
  .site-header nav a { font-size: 12px; }
  .site-header nav .nav-player { gap: 12px; padding-inline: 13px; }
  .site-header .nav-gameplay { display: none; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-block: 38px 40px; }
  h1 { font-size: clamp(30px, 6.5vw, 44px); line-height: 1.5; margin-top: 16px; }
  h1 span { text-decoration-thickness: 6px; text-underline-offset: 6px; }
  .hero-description { font-size: 14px; margin-top: 20px; max-width: 33em; }
  .hero-actions { margin-top: 22px; gap: 23px; }
  .hero-art { width: 100%; max-width: 540px; margin-inline: auto; }
  .hero-art img { max-height: 320px; object-fit: contain; background: #EEE8F4; }
  .hero-art figcaption { font-size: 9px; }
  .server-info { margin-top: 12px; }
  .eyebrow { font-size: 11px; }
  h2 { font-size: 28px; }
  .enchant-section { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px; }
  .enchant-intro h2 br { display: none; }
  .enchant-intro > p:not(.eyebrow) { margin-top: 12px; }
  .enchant-intro .text-link { margin-top: 12px; }
  .enchant-example { padding-block: 18px; gap: 18px; }
  .life-section { grid-template-columns: 1fr; gap: 28px; padding-block: 54px; }
  .life-copy { grid-row: 1; }
  .life-copy h2 br { display: none; }
  .photo-frame { aspect-ratio: 1.65; }
  .community-photo figcaption { gap: 0; }
  .life-item { margin-top: 18px; }
  .join-section { padding-block: 36px 20px; }
  .join-heading { flex-direction: column; align-items: flex-start; gap: 20px; }
  .join-heading .button { width: 100%; justify-content: space-between; }
  .join-steps { grid-template-columns: 1fr; gap: 24px; margin-block: 32px; }
  .join-steps li { position: relative; padding-left: 38px; }
  .step-number { position: absolute; left: 0; top: 3px; }
  .join-steps h3 { margin-top: 0; }
  .join-steps p { margin-top: 3px; }
  .join-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-main { flex-direction: column; align-items: flex-start; gap: 15px; }
  .footer-main nav { gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 6px; margin-top: 12px; }
  .server-status { text-align: left; max-width: 100%; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .brand > span { display: none; }
  .site-header nav { gap: 14px; }
  h1 { font-size: 29px; }
  .hero-actions { gap: 14px; }
  .hero-actions .button { padding-inline: 16px; gap: 18px; }
  .text-link { font-size: 13px; gap: 10px; }
  .enchant-section { padding: 25px 20px; }
  h2 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
