/* mc.tim945.com — 清交 交清 虛擬交流服務器 */

/* 像素字型「俐方體11號」(Cubic 11)，建置時會自動裁切成只含網站用到的字 */
@font-face {
  font-family: "Cubic11";
  src: url("/assets/fonts/cubic11.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #1f2333;
  --ink-soft: #4b5168;
  --muted: #6b7189;
  --cream: #fff8ef;
  --paper: #ffffff;
  --line: #1f2333;
  --sky-1: #d6e9fc;
  --sky-2: #f3f8ff;
  --night-1: #141a33;
  --night-2: #222b55;
  --grass: #62c043;
  --grass-dark: #3f8a2c;
  --dirt: #5b3a1e;
  --glow: #ffc93d;
  --glow-dark: #f29b18;
  --pink: #f59ac4;
  --blue: #3d7fe0;
  --discord: #5865f2;
  --online: #4fdc63;
  --offline: #ff5a5f;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
  --font-pixel: "Cubic11", var(--font-body);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --container: 1120px;
  --topbar-h: 64px;

  /* 像素裝飾（SVG data URI） */
  --px-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='24' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff8ef' d='M0 16h8v8h-8zM8 16h8v8h-8zM16 12h8v12h-8zM24 8h8v16h-8zM32 8h8v16h-8zM40 12h8v12h-8zM48 16h8v8h-8zM56 20h8v4h-8zM64 20h8v4h-8zM72 16h8v8h-8zM80 12h8v12h-8zM88 12h8v12h-8zM96 8h8v16h-8zM104 4h8v20h-8zM112 8h8v16h-8zM120 16h8v8h-8z'/%3E%3C/svg%3E");
  --px-grass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8' shape-rendering='crispEdges'%3E%3Cpath fill='%235b3a1e' d='M0 0h16v8H0z'/%3E%3Cpath fill='%2362c043' d='M0 0h1v4h-1zM1 0h1v3h-1zM2 0h1v5h-1zM3 0h1v4h-1zM4 0h1v3h-1zM5 0h1v4h-1zM6 0h1v6h-1zM7 0h1v4h-1zM8 0h1v3h-1zM9 0h1v4h-1zM10 0h1v5h-1zM11 0h1v3h-1zM12 0h1v4h-1zM13 0h1v4h-1zM14 0h1v5h-1zM15 0h1v3h-1z'/%3E%3Cpath fill='%237fd35c' d='M1 0h1v1h-1zM2 0h1v1h-1zM6 1h1v1h-1zM9 0h1v1h-1zM10 0h1v1h-1zM13 1h1v1h-1z'/%3E%3Cpath fill='%234a2f17' d='M1 6h1v1h-1zM5 7h1v1h-1zM9 6h1v1h-1zM12 7h1v1h-1zM14 6h1v1h-1zM3 5h1v1h-1zM7 7h1v1h-1z'/%3E%3Cpath fill='%2370482a' d='M0 5h1v1h-1zM4 6h1v1h-1zM10 7h1v1h-1zM13 5h1v1h-1zM8 5h1v1h-1z'/%3E%3C/svg%3E");
  --px-stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' shape-rendering='crispEdges'%3E%3Crect x='1' y='71' width='3' height='3' fill='%23fff' fill-opacity='0.60'/%3E%3Crect x='109' y='216' width='2' height='2' fill='%23fff' fill-opacity='0.67'/%3E%3Crect x='220' y='67' width='2' height='2' fill='%23fff' fill-opacity='0.86'/%3E%3Crect x='61' y='158' width='2' height='2' fill='%23fff' fill-opacity='0.69'/%3E%3Crect x='55' y='64' width='2' height='2' fill='%23fff' fill-opacity='0.45'/%3E%3Crect x='123' y='0' width='2' height='2' fill='%23fff' fill-opacity='0.51'/%3E%3Crect x='148' y='223' width='2' height='2' fill='%23fff' fill-opacity='0.92'/%3E%3Crect x='28' y='147' width='2' height='2' fill='%23fff' fill-opacity='0.52'/%3E%3Crect x='4' y='201' width='2' height='2' fill='%23fff' fill-opacity='0.46'/%3E%3Crect x='199' y='190' width='2' height='2' fill='%23fff' fill-opacity='0.50'/%3E%3Crect x='106' y='120' width='2' height='2' fill='%23fff' fill-opacity='0.90'/%3E%3Crect x='161' y='162' width='2' height='2' fill='%23fff' fill-opacity='0.38'/%3E%3Crect x='167' y='96' width='2' height='2' fill='%23fff' fill-opacity='0.62'/%3E%3Crect x='164' y='185' width='2' height='2' fill='%23fff' fill-opacity='0.56'/%3E%3Crect x='179' y='67' width='3' height='3' fill='%23fff' fill-opacity='0.49'/%3E%3Crect x='211' y='182' width='2' height='2' fill='%23fff' fill-opacity='0.64'/%3E%3Crect x='88' y='190' width='2' height='2' fill='%23fff' fill-opacity='0.80'/%3E%3Crect x='150' y='163' width='3' height='3' fill='%23fff' fill-opacity='0.36'/%3E%3Crect x='198' y='131' width='2' height='2' fill='%23fff' fill-opacity='0.89'/%3E%3Crect x='53' y='77' width='2' height='2' fill='%23fff' fill-opacity='0.86'/%3E%3Crect x='67' y='110' width='2' height='2' fill='%23fff' fill-opacity='0.70'/%3E%3Crect x='116' y='216' width='2' height='2' fill='%23fff' fill-opacity='0.66'/%3E%3Crect x='115' y='165' width='2' height='2' fill='%23fff' fill-opacity='0.63'/%3E%3Crect x='167' y='10' width='2' height='2' fill='%23fff' fill-opacity='0.62'/%3E%3Crect x='98' y='53' width='2' height='2' fill='%23fff' fill-opacity='0.68'/%3E%3Crect x='177' y='42' width='2' height='2' fill='%23fff' fill-opacity='0.66'/%3E%3C/svg%3E");
  --px-cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='8' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M4 0h10v2h6v2h4v4H0V4h2V2h2z'/%3E%3Cpath fill='%23e3eefb' d='M0 7h24v1H0z'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
strong { font-weight: 700; }
code {
  font-family: var(--font-mono);
  font-size: .92em;
  padding: .1em .45em;
  background: rgba(31, 35, 51, .07);
  border: 1px solid rgba(31, 35, 51, .14);
  white-space: nowrap;
}
::selection { background: var(--glow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--glow-dark); outline-offset: 3px; }

.pixel { font-family: var(--font-pixel); font-weight: 400; letter-spacing: 0; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.copy-buffer { position: fixed; top: 0; left: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.muted { color: var(--muted); font-weight: 400; }

/* 16×16 像素圖示：尺寸維持 16 的倍數才會銳利 */
.icon { width: 16px; height: 16px; flex: none; }
.icon--md { width: 32px; height: 32px; }
.icon--xl { width: 48px; height: 48px; }
.icon--xxl { width: 64px; height: 64px; }
.icon--smooth { width: 20px; height: 20px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  font-weight: 700;
  color: var(--ink);
  background: var(--glow);
  border: 3px solid var(--line);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: 10px 22px;
  font: 700 16px/1.2 var(--font-body);
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 3px solid var(--line);
  border-radius: 0;
  box-shadow:
    inset -4px -4px 0 rgba(0, 0, 0, .22),
    inset 4px 4px 0 rgba(255, 255, 255, .32),
    0 4px 0 var(--line);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.07); }
.btn:active {
  transform: translateY(4px);
  box-shadow:
    inset -4px -4px 0 rgba(0, 0, 0, .22),
    inset 4px 4px 0 rgba(255, 255, 255, .32),
    0 0 0 var(--line);
}
.btn--grass { --btn-bg: var(--grass); --btn-fg: #102a08; }
.btn--glow { --btn-bg: var(--glow); --btn-fg: var(--ink); }
.btn--discord { --btn-bg: var(--discord); --btn-fg: #fff; }
.btn--lg { min-height: 56px; padding: 12px 28px; font-size: 18px; }
.btn--sm {
  min-height: 40px;
  padding: 6px 14px;
  font-size: 15px;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .22), inset 3px 3px 0 rgba(255, 255, 255, .3), 0 3px 0 var(--line);
}
.btn--xs {
  min-height: 30px;
  padding: 2px 10px;
  font-size: 13px;
  border-width: 2px;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .2), inset 2px 2px 0 rgba(255, 255, 255, .3), 0 2px 0 var(--line);
}
.btn--xs:active { transform: translateY(2px); }
.btn.is-copied { --btn-bg: var(--online); }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--topbar-h);
  color: #fff;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.topbar.is-scrolled,
.nav-open .topbar {
  background: rgba(20, 26, 51, .94);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.topbar__inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
}
.brand__logo { width: 36px; height: 36px; border: 2px solid #fff; }
.brand__name { font-size: 24px; line-height: 1; text-shadow: 2px 2px 0 rgba(0, 0, 0, .45); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) {
  padding: 6px 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
.nav a:not(.btn):hover { background: rgba(255, 255, 255, .14); }
.nav .btn { margin-left: 10px; }
.nav-toggle { display: none; }

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-grid;
    place-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(0, 0, 0, .3);
    border: 2px solid rgba(255, 255, 255, .75);
    cursor: pointer;
  }
  .nav-toggle span { display: block; width: 20px; height: 3px; background: #fff; transition: transform .2s, opacity .2s; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .nav {
    position: absolute;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 20px 20px;
    background: rgba(20, 26, 51, .97);
    border-bottom: 3px solid rgba(0, 0, 0, .35);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .nav { visibility: visible; opacity: 1; transform: none; }
  .nav a:not(.btn) { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav .btn { margin: 16px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--topbar-h) + 28px) 0 104px;
  color: #fff;
  background: #1b2340;
}
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg { z-index: -3; }
.hero__bg img { object-fit: cover; object-position: 50% 45%; }
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(16, 20, 44, .28), rgba(16, 20, 44, .6)),
    linear-gradient(180deg, rgba(16, 20, 44, .55) 0%, rgba(16, 20, 44, .2) 28%, rgba(16, 20, 44, .3) 62%, rgba(16, 20, 44, .72) 100%);
}
/* 底部像素地形，接到下一段 */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 48px;
  background: var(--px-edge) repeat-x left bottom / 256px 48px;
}

.hero__blocks { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fb {
  --s: 20px;
  --c: var(--glow);
  --halo: rgba(255, 201, 61, .55);
  --d: 7s;
  --delay: 0s;
  position: absolute;
  width: var(--s);
  height: var(--s);
  background: var(--c);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .2), inset 3px 3px 0 rgba(255, 255, 255, .5), 0 0 26px var(--halo);
  opacity: .92;
  animation: float var(--d) ease-in-out var(--delay) infinite alternate;
}
.fb1 { top: 17%; left: 7%; --s: 26px; --d: 8s; }
.fb2 { top: 31%; left: 17%; --s: 14px; --c: var(--pink); --halo: rgba(245, 154, 196, .5); --d: 6s; --delay: -2s; }
.fb3 { top: 61%; left: 5%; --s: 18px; --c: #fff; --halo: rgba(255, 255, 255, .45); --delay: -4s; }
.fb4 { top: 77%; left: 21%; --s: 12px; --d: 9s; --delay: -1s; }
.fb5 { top: 15%; right: 9%; --s: 18px; --c: #c9f5b5; --halo: rgba(160, 240, 140, .45); --d: 7.5s; --delay: -3s; }
.fb6 { top: 38%; right: 5%; --s: 28px; --d: 9s; --delay: -5s; }
.fb7 { top: 66%; right: 15%; --s: 14px; --c: var(--pink); --halo: rgba(245, 154, 196, .5); --d: 6.5s; }
.fb8 { top: 81%; right: 6%; --s: 20px; --c: #fff; --halo: rgba(255, 255, 255, .45); --d: 8.5s; --delay: -2.5s; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-16px); } }

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.hero__logo {
  width: 96px;
  height: 96px;
  margin-bottom: 4px;
  border: 4px solid #fff;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .35), 0 0 48px rgba(255, 201, 61, .35);
}
.hero__eyebrow {
  padding: 6px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--glow);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .4);
}
.hero__title { font-size: 36px; line-height: 1.15; text-shadow: 3px 3px 0 rgba(0, 0, 0, .55); }
.hero__subtitle { font-size: 24px; line-height: 1.3; color: var(--glow); text-shadow: 2px 2px 0 rgba(0, 0, 0, .6); }
.hero__lead { max-width: 34em; font-size: 17px; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); text-wrap: balance; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 600;
  background: rgba(12, 16, 36, .62);
  border: 2px solid rgba(255, 255, 255, .35);
}
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: none;
  background: #9aa3b5;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .25);
}
[data-state="online"] .dot,
.discord__counts .dot {
  background: var(--online);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .25), 0 0 10px var(--online);
  animation: blink 2.4s ease-in-out infinite;
}
[data-state="offline"] .dot { background: var(--offline); }
[data-state="loading"] .dot { animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .4; } }

.address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  padding: 10px 10px 10px 18px;
  background: rgba(12, 16, 36, .68);
  border: 3px solid #fff;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .35);
}
.address__label { font-size: 14px; opacity: .85; }
.address__value {
  font-family: var(--font-pixel);
  font-size: 24px;
  line-height: 1.2;
  color: var(--glow);
  background: none;
  border: 0;
  padding: 0;
}
.address .btn { min-height: 40px; padding: 6px 14px; font-size: 15px; }

.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 6px; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 8px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, .14);
  border: 2px solid rgba(255, 255, 255, .35);
}

@media (min-width: 400px) {
  .hero__title { font-size: 48px; text-shadow: 4px 4px 0 rgba(0, 0, 0, .5); }
}
@media (min-width: 900px) {
  .hero__title { font-size: 72px; text-shadow: 6px 6px 0 rgba(0, 0, 0, .45); }
  .hero__logo { width: 112px; height: 112px; }
  .hero__lead { font-size: 18px; }
}
@media (max-width: 640px) {
  .fb2, .fb3, .fb4, .fb6, .fb7, .fb8 { display: none; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 88px 0; background: var(--paper); }
.section--cream { background: var(--cream); }
.section--sky { overflow: hidden; background: linear-gradient(180deg, var(--sky-1), var(--sky-2)); }
.section--sky::before,
.section--sky::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 80px;
  background: var(--px-cloud) no-repeat 0 0 / 100% 100%;
  opacity: .9;
  pointer-events: none;
}
.section--sky::before { top: 32px; left: -48px; }
.section--sky::after { top: 112px; right: -56px; width: 192px; height: 64px; }
.section--night {
  color: #e8ecff;
  background: var(--px-stars) repeat 0 0 / 240px 240px, linear-gradient(180deg, var(--night-1), var(--night-2));
}
.section--discord { color: #fff; background: linear-gradient(160deg, #5865f2 0%, #4a55dc 55%, #3c45bd 100%); }

.section-head { position: relative; max-width: 760px; margin: 0 auto 44px; text-align: center; }
.kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--glow);
  box-shadow: 0 3px 0 var(--line);
}
.section--night .kicker { box-shadow: 0 3px 0 rgba(0, 0, 0, .55); }
.section-title { font-size: 24px; line-height: 1.4; text-wrap: balance; }
.section-intro { margin-top: 12px; font-size: 17px; color: var(--ink-soft); text-wrap: balance; }
.section--night .section-intro { color: #c3c9e6; }

.panel {
  background: var(--paper);
  border: 3px solid var(--line);
  box-shadow: inset -4px -4px 0 rgba(31, 35, 51, .07), 0 6px 0 rgba(31, 35, 51, .15);
}

@media (min-width: 640px) {
  .section-title { font-size: 36px; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
}

/* ---------- 介紹 ---------- */
.about { display: grid; gap: 44px; align-items: center; }
.about__text .section-title { margin-bottom: 18px; }
.about__text p + p { margin-top: 12px; }
.lead { font-size: 19px; font-weight: 700; }
.about__shot {
  position: relative;
  border: 4px solid var(--line);
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--grass);
}
.about__shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.about__shot figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(20, 26, 51, .82);
}

.features {
  display: grid;
  gap: 20px;
  margin-top: 64px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.feature { padding: 24px 22px 22px; }
.feature .icon { margin-bottom: 14px; }
.feature h3 { margin-bottom: 4px; font-size: 18px; }
.feature p { font-size: 15px; color: var(--ink-soft); }

@media (min-width: 900px) {
  .about { grid-template-columns: 1fr 1.05fr; gap: 64px; }
}

/* ---------- 支援平台 ---------- */
.platforms { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 28px 20px 24px;
  text-align: center;
  transition: translate .15s ease;
}
.platform:hover { translate: 0 -4px; }
.platform .icon { margin-bottom: 12px; }
.platform h3 { font-size: 20px; }
.platform p { font-size: 15px; color: var(--ink-soft); }

/* ---------- 加入方式 ---------- */
.join-grid { display: grid; gap: 24px; }
.join-card { display: flex; flex-direction: column; padding-bottom: 24px; }
.join-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: linear-gradient(180deg, #ecf9e4, #d6f0c8);
  border-bottom: 3px solid var(--line);
}
.join-card--bedrock .join-card__head { background: linear-gradient(180deg, #e6f0fd, #d0e1f8); }
.join-card__head h3 { font-size: 22px; line-height: 1.3; }
.edition-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.edition-status::before { content: ""; width: 10px; height: 10px; flex: none; background: #9aa3b5; }
.edition-status[data-state="online"]::before { background: var(--online); box-shadow: 0 0 8px var(--online); }
.edition-status[data-state="offline"]::before { background: var(--offline); }

.kv { margin: 20px 22px 0; border: 2px solid rgba(31, 35, 51, .14); }
.kv > div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center; padding: 10px 14px; }
.kv > div + div { border-top: 2px dashed rgba(31, 35, 51, .14); }
.kv dt { font-size: 14px; font-weight: 600; color: var(--muted); }
.kv dd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-weight: 700; }
.kv code { font-size: 15px; }

.steps { counter-reset: step; display: grid; gap: 12px; margin: 20px 22px 0; }
.steps li { counter-increment: step; position: relative; padding-left: 42px; font-size: 15px; color: var(--ink-soft); }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font: 12px/1 var(--font-pixel);
  color: #fff;
  background: var(--grass-dark);
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .25), inset 2px 2px 0 rgba(255, 255, 255, .2);
}
.join-card--bedrock .steps li::before { background: var(--blue); }
.join-card--console .join-card__head { background: linear-gradient(180deg, #fff6da, #ffe8ad); }
.join-card--console .steps li::before { color: var(--ink); background: var(--glow); }
.edition-status--plain::before { display: none; }
.ext-link { font-weight: 700; color: var(--blue); }
.ext-link[target="_blank"]::after { content: " ↗"; }
.ui { white-space: nowrap; }
.steps a { font-weight: 700; color: var(--blue); }

.note {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  margin: 32px auto 0;
  padding: 14px 18px;
  font-size: 15px;
  background: #fff6d3;
  border: 2px solid #efc14a;
}
.note .icon { width: 32px; height: 32px; }
.note a { font-weight: 700; color: var(--blue); }

.players { margin-top: 28px; padding: 20px 22px; }
.players__title { margin-bottom: 12px; font-size: 16px; }
.players__list { display: flex; flex-wrap: wrap; gap: 8px; }
.players__list li {
  padding: 2px 10px;
  font-size: 14px;
  font-weight: 700;
  background: #eef8e8;
  border: 2px solid var(--grass-dark);
}

@media (min-width: 900px) {
  .join-grid { grid-template-columns: 1fr 1fr; }
  .join-card--console { grid-column: 1 / -1; }
  .join-card--console .join-card__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: start; }
}
@media (max-width: 400px) {
  .join-card__head { padding: 16px; }
  .kv { margin: 16px 16px 0; }
  .kv > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 12px; }
  .steps { margin: 18px 16px 0; }
}

/* ---------- 規則 ---------- */
.rules { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.rule {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .06);
  border: 3px solid rgba(255, 255, 255, .18);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .28);
}
.rule h3 { font-size: 18px; color: #fff; }
.rule p { margin-top: 2px; font-size: 14px; color: #c3c9e6; }

.callout {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 36px;
  padding: 22px 24px;
  color: var(--ink);
  background: #fff3c4;
  border: 3px solid var(--line);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .4);
}
.callout__title { margin-bottom: 6px; font: 24px/1.4 var(--font-pixel); }

/* ---------- 基岩版須知 ---------- */
.tips { display: grid; gap: 18px; }
@media (min-width: 760px) {
  .tips { grid-template-columns: 1fr 1fr; }
}
.tip { display: flex; align-items: flex-start; gap: 16px; padding: 20px; }
.tip__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font-size: 24px;
  color: #fff;
  background: var(--grass);
  border: 3px solid var(--line);
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, .22), inset 4px 4px 0 rgba(255, 255, 255, .3);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .3);
}
.tip h3 { font-size: 17px; line-height: 1.55; }
.tip p { margin-top: 4px; font-size: 15px; color: var(--ink-soft); }

.stamp {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 36px auto 0;
  padding: 8px 16px;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  color: #c62f35;
  border: 3px solid #c62f35;
  background: rgba(255, 255, 255, .6);
  transform: rotate(-1.5deg);
}
@media (min-width: 640px) {
  .stamp { font-size: 24px; }
}

/* ---------- Discord ---------- */
.discord { display: grid; gap: 40px; align-items: center; }
.discord__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 28px 28px;
  text-align: center;
  color: var(--ink);
  box-shadow: inset -4px -4px 0 rgba(31, 35, 51, .07), 0 8px 0 rgba(0, 0, 0, .25);
}
.discord__card .kicker { margin: 6px 0 4px; }
.discord__icon { width: 96px; height: 96px; border: 3px solid var(--line); }
.discord__guild { font-weight: 700; color: var(--ink-soft); }
.discord__counts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-size: 15px; color: var(--ink-soft); }
.discord__counts span { display: inline-flex; align-items: center; gap: 6px; }
.discord__counts b { font-size: 18px; color: var(--ink); }
.discord__card .btn { margin-top: 10px; }
.discord__url { font-size: 13px; color: var(--muted); }
.discord__url code { font-size: 13px; }

.discord__intro { margin-bottom: 18px; font: 24px/1.4 var(--font-pixel); text-shadow: 2px 2px 0 rgba(0, 0, 0, .25); }
.discord__features { display: grid; gap: 16px; }
.discord__features li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .1);
  border: 3px solid rgba(255, 255, 255, .28);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .18);
}
.discord__features h3 { font-size: 18px; }
.discord__features p { font-size: 15px; color: rgba(255, 255, 255, .9); }

@media (min-width: 900px) {
  .discord { grid-template-columns: minmax(0, 460px) 1fr; gap: 56px; }
}

/* ---------- 帳號綁定 ---------- */
.link-steps { display: grid; gap: 28px; }
.link-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 34px 22px 24px;
  text-align: center;
}
.link-step__num {
  position: absolute;
  top: -20px;
  left: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: var(--ink);
  background: var(--glow);
  border: 3px solid var(--line);
  transform: translateX(-50%);
}
.link-step .icon { margin-bottom: 4px; }
.link-step h3 { font-size: 18px; }
.link-step p { font-size: 15px; color: var(--ink-soft); }

.cmd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px auto 0;
  padding: 0;
  vertical-align: middle;
  background: none;
  border: 0;
  cursor: pointer;
}
.cmd code { font-size: 15px; font-weight: 700; color: var(--ink); background: #eef0f6; }
.cmd .icon { color: var(--muted); }
.cmd:hover code { background: #fff3c4; }

.link-notes { display: grid; gap: 10px; max-width: 760px; margin: 36px auto 0; }
.link-notes li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink-soft); }
.link-notes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 10px;
  height: 10px;
  background: var(--grass);
  box-shadow: 0 0 0 2px var(--line);
}

@media (min-width: 900px) {
  .link-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  isolation: isolate;
  padding: 96px 0 128px;
  color: #fff;
  text-align: center;
  background: #1b2340 url("/assets/img/hero-1706.jpg") center / cover no-repeat;
  background-image: image-set(url("/assets/img/hero-1706.webp") type("image/webp"), url("/assets/img/hero-1706.jpg") type("image/jpeg"));
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(16, 20, 44, .84), rgba(16, 20, 44, .66));
}
/* 草方塊邊，接到頁尾泥土 */
.cta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24px;
  background: var(--px-grass) repeat-x 0 0 / 48px 24px;
}
.cta__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta__title { font-size: 36px; line-height: 1.3; text-shadow: 4px 4px 0 rgba(0, 0, 0, .5); }
.cta__inner > p { font-size: 17px; }
@media (min-width: 640px) {
  .cta__title { font-size: 48px; }
}

/* ---------- Footer ---------- */
.footer { padding: 36px 0 32px; color: #f3e6d6; background: var(--dirt); }
.footer__inner { display: grid; gap: 22px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { width: 48px; height: 48px; border: 3px solid #f3e6d6; }
.footer__name { font-size: 24px; line-height: 1.2; color: #fff; }
.footer__brand p:not(.footer__name) { font-size: 14px; opacity: .85; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__nav a { font-size: 14px; font-weight: 600; text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; }
.footer__legal { padding-top: 18px; font-size: 13px; color: rgba(243, 230, 214, .78); border-top: 2px solid rgba(255, 255, 255, .12); }

@media (min-width: 900px) {
  .footer__inner { grid-template-columns: auto 1fr; align-items: center; }
  .footer__nav { justify-content: flex-end; }
  .footer__legal { grid-column: 1 / -1; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 24px;
  z-index: 100;
  width: fit-content;
  max-width: calc(100% - 40px);
  margin-inline: auto;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: var(--glow);
  border: 3px solid var(--line);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: none; }

/* ---------- Scroll reveal（JS 啟用時才隱藏） ---------- */
.can-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.can-reveal .reveal.is-in { opacity: 1; transform: none; }

@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  .topbar, .hero__blocks, .toast { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--px-stars) repeat 0 0 / 240px 240px, linear-gradient(180deg, var(--night-1), var(--night-2));
}
.notfound__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 440px;
  padding: 36px 28px 32px;
  text-align: center;
}
.notfound__box .kicker { margin: 4px 0 0; }
.notfound__box p:not(.kicker) { color: var(--ink-soft); }
.notfound__box .btn { margin-top: 8px; }
