@charset "UTF-8";

:root {
  --ink: #170d08;
  --ink-soft: #2a1710;
  --paper: #f4ead7;
  --paper-bright: #fff9ea;
  --red: #c83a2f;
  --red-deep: #8f201d;
  --jade: #1c624b;
  --jade-deep: #0d362b;
  --gold: #d5ad67;
  --muted: #786957;
  --rule: rgba(23, 13, 8, 0.15);
  --display: "Noto Serif TC", "Songti TC", "PMingLiU", "Times New Roman", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
  -webkit-text-size-adjust: 100%;
}

body,
body.support-page {
  margin: 0;
  background:
    linear-gradient(rgba(23, 13, 8, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 13, 8, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--red);
  color: white;
}

a {
  color: var(--red-deep);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-150%);
  border-radius: 5px;
  background: var(--paper-bright);
  color: var(--ink);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  margin: 0;
  padding: 12px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 249, 234, 0.14);
  background: rgba(23, 13, 8, 0.94);
  color: var(--paper);
  backdrop-filter: blur(18px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
}

.site-brand:hover {
  color: var(--paper-bright);
}

.site-brand img {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.3);
}

.site-brand span {
  display: grid;
  line-height: 1.08;
}

.site-brand strong {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.08em;
}

.site-brand small {
  margin-top: 6px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 12px;
  font-weight: 750;
}

.top-nav a {
  color: rgba(244, 234, 215, 0.75);
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  color: var(--gold);
}

.top-nav .game-link {
  padding: 8px 13px;
  border: 1px solid rgba(244, 234, 215, 0.34);
  border-radius: 4px;
}

.top-nav .game-link:hover {
  border-color: var(--paper-bright);
  background: var(--paper-bright);
  color: var(--ink);
}

.wrap,
body.support-page .wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 46px 24px 80px;
}

header.masthead,
body.support-page header.masthead {
  position: relative;
  margin: 0 0 18px;
  padding: clamp(40px, 7vw, 72px);
  overflow: hidden;
  border: 1px solid rgba(255, 249, 234, 0.12);
  border-radius: 0;
  background:
    radial-gradient(circle at 80% 28%, rgba(28, 98, 75, 0.34), transparent 30%),
    linear-gradient(135deg, #2b1710, #100907 72%);
  color: var(--paper-bright);
  box-shadow: 0 26px 65px rgba(60, 35, 20, 0.22);
}

header.masthead::before,
body.support-page header.masthead::before {
  position: absolute;
  top: 50%;
  right: 3%;
  content: "中";
  transform: translateY(-50%) rotate(5deg);
  color: rgba(255, 249, 234, 0.055);
  font-family: var(--display);
  font-size: clamp(150px, 30vw, 330px);
  font-weight: 800;
  line-height: 1;
}

.kicker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.kicker::before {
  width: 30px;
  height: 1px;
  content: "";
  background: currentColor;
}

header.masthead h1,
body.support-page header.masthead h1 {
  position: relative;
  z-index: 1;
  max-width: 730px;
  margin: 0;
  color: var(--paper-bright);
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

header.masthead .appname {
  display: block;
  margin-top: 10px;
  color: var(--red);
  font-size: 0.76em;
}

.dates,
body.support-page .sub {
  position: relative;
  z-index: 1;
  margin: 24px 0 0;
  color: rgba(244, 234, 215, 0.55);
  font-family: "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
}

nav.lang {
  position: sticky;
  z-index: 80;
  top: 76px;
  display: flex;
  gap: 8px;
  margin: 0 0 30px;
  padding: 13px 14px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: rgba(244, 234, 215, 0.92);
  font-size: 12px;
  backdrop-filter: blur(14px);
}

nav.lang a {
  margin: 0;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--red-deep);
  font-weight: 800;
  text-decoration: none;
}

nav.lang a:hover,
nav.lang a:focus-visible {
  border-color: var(--red-deep);
  background: var(--paper-bright);
}

section.policy {
  max-width: 820px;
  margin: 0 auto;
  padding-top: 28px;
}

.policy .lead {
  position: relative;
  margin: 0 0 38px;
  padding: 26px 28px 26px 30px;
  border: 1px solid rgba(28, 98, 75, 0.22);
  border-left: 5px solid var(--jade);
  border-radius: 0;
  background: var(--paper-bright);
  box-shadow: 0 14px 32px rgba(70, 43, 24, 0.08);
  color: #35261d;
  font-size: 15px;
}

section.policy h2 {
  margin: 54px 0 18px;
  padding: 20px 0 0;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--display);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

section.policy > h2:first-of-type {
  border-top: 0;
}

section.policy h2::after {
  display: block;
  width: 38px;
  height: 3px;
  margin-top: 12px;
  content: "";
  background: var(--red);
}

section.policy h3,
body.support-page h3 {
  margin: 30px 0 8px;
  color: var(--jade-deep);
  font-size: 17px;
  font-weight: 800;
}

section.policy p,
section.policy li,
body.support-page p,
body.support-page li {
  color: #3c3027;
}

section.policy p,
section.policy ul {
  margin-block: 12px;
}

section.policy ul {
  padding-left: 1.4em;
}

section.policy li {
  margin: 8px 0;
  padding-left: 4px;
}

section.policy li::marker {
  color: var(--red);
}

code {
  padding: 2px 7px;
  border: 1px solid rgba(23, 13, 8, 0.08);
  border-radius: 4px;
  background: #eaddc5;
  color: var(--ink-soft);
  font-size: 0.85em;
}

.contact-box,
body.support-page .card {
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(200, 58, 47, 0.22);
  border-radius: 0;
  background: var(--paper-bright);
  box-shadow: 0 12px 28px rgba(70, 43, 24, 0.07);
}

.divider,
body.support-page .lang-divider {
  max-width: 820px;
  margin: 78px auto 28px;
  border: 0;
  border-top: 1px solid var(--rule);
}

.toplink {
  margin-top: 32px;
  font-size: 12px;
  font-weight: 750;
}

footer,
body.support-page footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 70px;
  padding: 26px 0 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 11px;
  text-align: left;
}

footer a {
  font-weight: 750;
}

body.support-page .wrap {
  max-width: 900px;
}

body.support-page .wrap > h2 {
  margin: 46px 0 14px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 30px;
}

body.support-page .wrap > h2::after {
  display: block;
  width: 38px;
  height: 3px;
  margin-top: 10px;
  content: "";
  background: var(--red);
}

body.support-page .card {
  border-left: 5px solid var(--red);
}

body.support-page h3 + p {
  margin: 0;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--rule);
}

body.support-page .email {
  font-weight: 800;
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 132px;
  }

  .site-header {
    min-height: 68px;
    padding: 10px 16px;
  }

  .site-brand img {
    width: 40px;
    height: 40px;
  }

  .site-brand strong {
    font-size: 14px;
  }

  .site-brand small,
  .top-nav a:not(.game-link) {
    display: none;
  }

  .top-nav .game-link {
    padding: 7px 10px;
    font-size: 10px;
  }

  .wrap,
  body.support-page .wrap {
    padding: 24px 16px 58px;
  }

  header.masthead,
  body.support-page header.masthead {
    padding: 40px 25px;
  }

  header.masthead h1,
  body.support-page header.masthead h1 {
    font-size: clamp(33px, 11vw, 48px);
  }

  .dates,
  body.support-page .sub {
    margin-top: 18px;
    line-height: 1.7;
  }

  nav.lang {
    top: 68px;
    margin-bottom: 15px;
    overflow-x: auto;
  }

  nav.lang a {
    white-space: nowrap;
  }

  section.policy {
    padding-top: 20px;
  }

  .policy .lead {
    padding: 22px 20px;
  }

  section.policy h2 {
    margin-top: 44px;
    font-size: 24px;
  }

  footer,
  body.support-page footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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