﻿:root {
  --ink: #211913;
  --muted: #705f52;
  --line: #eadccd;
  --paper: #fffaf3;
  --panel: #ffffff;
  --accent: #b62323;
  --accent-dark: #821818;
  --gold: #d59b3d;
  --green: #16835c;
  --shadow: 0 18px 48px rgba(54, 31, 14, .18);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans Thai", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 6%, rgba(213,155,61,.18), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(182,35,35,.10), transparent 24%),
    var(--paper);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(255, 250, 243, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #e0a33c);
  color: #fff;
  font-weight: 800;
}
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand small { color: var(--muted); font-size: 12px; }
.nav { display: flex; align-items: center; gap: 14px; color: #47372c; font-weight: 700; }
.nav a:hover { color: var(--accent); }
.nav-link-strong,
.nav-link-discord {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
}
.nav-link-strong {
  background: var(--accent);
  color: #fffaf3;
}
.nav-link-strong:hover { color: #fff; background: var(--accent-dark); }
.nav-link-discord {
  border: 1px solid #d7c4b3;
  background: #fffaf3;
}
.page-bg-video {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .88;
  pointer-events: none;
}
.page-bg-shade {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(255,250,243,.56), rgba(255,247,234,.42) 48%, rgba(43,23,18,.54)),
    radial-gradient(circle at 18% 18%, rgba(213,155,61,.14), transparent 28%),
    radial-gradient(circle at 84% 44%, rgba(182,35,35,.10), transparent 28%);
  pointer-events: none;
}
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #2b1712;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .95;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 48%, rgba(213,155,61,.20), transparent 28%),
    linear-gradient(90deg, rgba(24, 16, 11, .84), rgba(24, 16, 11, .50) 55%, rgba(255, 250, 243, .16));
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  background: linear-gradient(0deg, rgba(255,250,243,1), rgba(255,250,243,0));
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 48px));
  margin-left: clamp(24px, 7vw, 96px);
  color: #fff;
  padding: 56px 0;
}
.falling-leaves {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.maple-leaf {
  position: absolute;
  top: -72px;
  left: var(--leaf-left);
  width: var(--leaf-size);
  height: var(--leaf-size);
  opacity: var(--leaf-opacity);
  filter: drop-shadow(0 8px 8px rgba(50,20,8,.22));
  animation:
    leaf-fall var(--leaf-duration) linear var(--leaf-delay) infinite,
    leaf-sway calc(var(--leaf-duration) * .42) ease-in-out var(--leaf-delay) infinite alternate;
}
.maple-leaf::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #c5301f, #e69b36 58%, #9f241b);
  clip-path: polygon(50% 0, 58% 24%, 78% 12%, 70% 36%, 100% 35%, 75% 52%, 88% 75%, 60% 66%, 55% 100%, 45% 100%, 40% 66%, 12% 75%, 25% 52%, 0 35%, 30% 36%, 22% 12%, 42% 24%);
  transform: rotate(var(--leaf-rotate));
}
@keyframes leaf-fall {
  0% { transform: translate3d(0, -12vh, 0) rotate(0deg); }
  100% { transform: translate3d(var(--leaf-drift), 112vh, 0) rotate(420deg); }
}
@keyframes leaf-sway {
  from { margin-left: -28px; }
  to { margin-left: 28px; }
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: .98;
}
.lead {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: 20px;
  color: #fff4e6;
}
.hero-actions, .download-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid transparent;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.secondary { background: #fff; color: var(--accent-dark); border-color: #fff; }
.btn.ghost { border-color: var(--line); background: #fffaf3; color: var(--accent-dark); }
.btn.ghost:hover { background: #fff1df; border-color: #e6b36a; }
.sound-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.50);
  border-radius: 8px;
  background: rgba(43,23,18,.88);
  color: #fff7ed;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(20,10,6,.26);
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.sound-toggle:hover {
  background: rgba(126,33,24,.94);
}
.sound-toggle[aria-pressed="true"] {
  background: rgba(182,35,35,.92);
}
.enter-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(20,16,12,.72), rgba(20,16,12,.82)),
    #191714;
  color: #fff;
}
.enter-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 20%, rgba(213,155,61,.28), transparent 30%),
    radial-gradient(circle at 82% 72%, rgba(182,35,35,.26), transparent 32%);
  pointer-events: none;
}
.enter-gate-card {
  position: relative;
  width: min(980px, 100%);
  padding: clamp(22px, 4vw, 40px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  backdrop-filter: none;
}
.enter-gate-logo {
  display: block;
  width: min(820px, 100%);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 18px 36px rgba(0,0,0,.34));
}
.enter-loading {
  width: min(440px, 88%);
  margin: 24px auto 0;
  display: grid;
  gap: 10px;
}
.enter-loading-text {
  color: #ffe6a6;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.enter-loading-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.20);
  border: 1px solid rgba(255,255,255,.26);
}
.enter-loading-bar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8f251b, #f2c55f, #fff4b8);
  transform-origin: left center;
  animation: enter-load 1.55s ease-out forwards;
}
.enter-gate-button {
  margin-top: 28px;
  width: min(520px, 86vw);
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  cursor: pointer;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.42));
  transform: translateY(0) scale(1);
  transition: transform .18s ease, filter .18s ease;
}
.enter-gate-button:hover {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 22px 34px rgba(0,0,0,.48)) drop-shadow(0 0 16px rgba(255,198,73,.28));
}
.enter-gate-button:active {
  transform: translateY(1px) scale(.99);
}
.enter-gate-button:focus-visible {
  outline: 0;
}
.enter-gate-button img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.enter-gate-button[hidden],
.enter-loading[hidden] {
  display: none;
}
.enter-gate.is-ready .enter-gate-card {
  filter: drop-shadow(0 18px 48px rgba(0,0,0,.28));
}
.enter-gate.is-leaving {
  opacity: 0;
  transition: opacity .34s ease;
}
body.is-gated {
  overflow: hidden;
}
@keyframes enter-load {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.server-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  max-width: 720px;
  margin: 34px 0 0;
}
.server-stats div {
  padding: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.22);
}
dt { color: #f4c77f; font-size: 12px; font-weight: 800; }
dd { margin: 3px 0 0; font-weight: 800; }
.notice-band {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 18px clamp(24px, 7vw, 96px);
  background: #311b15;
  color: #fff7ed;
}
.notice-band strong { margin-right: 14px; color: #ffc66d; }
.notice-band a { color: #fff; font-weight: 800; border-bottom: 2px solid var(--gold); }
.content-video-zone {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,250,243,.94), rgba(245,234,220,.90)),
    url("t_login.jpg") center/cover fixed;
}
.content-bg-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .88;
}
.content-video-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255,250,243,.56), rgba(255,247,234,.42) 48%, rgba(43,23,18,.54)),
    radial-gradient(circle at 18% 18%, rgba(213,155,61,.14), transparent 28%),
    radial-gradient(circle at 84% 44%, rgba(182,35,35,.10), transparent 28%);
  pointer-events: none;
}
.content-video-zone .section {
  position: relative;
}
.content-video-zone .section-head h2 {
  text-shadow: 0 1px 0 rgba(255,255,255,.65);
}
.section { padding: 82px clamp(24px, 7vw, 96px); }
.section-head { max-width: 760px; margin-bottom: 26px; }
h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.15; }
.page-title { margin: 0; font-size: clamp(38px, 6vw, 68px); line-height: 1.05; color: var(--accent-dark); }
h3 { margin: 0 0 8px; font-size: 22px; }
p { margin: 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.90), rgba(255,248,236,.82)),
    var(--panel);
  box-shadow: 0 14px 34px rgba(54,31,14,.13);
  backdrop-filter: blur(7px);
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -34px -48px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(213,155,61,.12);
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(54,31,14,.12);
}
.feature-card {
  transition: transform .22s ease, box-shadow .22s ease;
}
.feature-card p, .steps span, .timeline p, .site-footer span, .download-section p, .pet-panel p { color: var(--muted); }
.icon {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--accent);
  font-weight: 800;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 36px;
  align-items: start;
  background: rgba(245, 234, 220, .58);
  backdrop-filter: blur(4px);
}
.steps { padding: 0; margin: 28px 0 0; list-style: none; display: grid; gap: 14px; }
.steps li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #dfcbbb;
}
.steps strong { color: var(--accent-dark); }
.info-panel {
  padding: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(7px);
}
.info-panel ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.info-panel li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.info-panel span { color: var(--muted); }
.online { color: var(--green); }
.pet-section {
  background: #fff7ea;
}
.pet-section .section-head p:not(.eyebrow) {
  max-width: 820px;
  margin-top: 12px;
  color: var(--muted);
}
.pet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 16px;
}
.pet-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(54,31,14,.06);
}
.pet-panel-main {
  grid-row: span 2;
}
.check-list,
.rule-box ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}
.check-list li,
.rule-box li {
  position: relative;
  padding-left: 24px;
  color: #4f3d31;
}
.check-list li::before,
.rule-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
}
.rule-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
  background: #fff4e2;
  border: 1px solid #efd5af;
}
.rule-box strong {
  color: var(--accent-dark);
}
.pet-summary {
  background: #2b1712;
  color: #fff;
}
.pet-summary p {
  color: #f3dcc6;
}
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.timeline article {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-left: 4px solid var(--accent);
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,247,234,.78));
  border-radius: 8px;
  border: 1px solid var(--line);
}
.timeline article::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(182,35,35,.08);
}
.timeline span { color: var(--gold); font-weight: 800; }
.download-section {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  background: rgba(43, 23, 18, .88);
  color: #fff;
  backdrop-filter: blur(3px);
}
.download-section p { max-width: 760px; color: #f3dcc6; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(24px, 7vw, 96px);
  background: #160f0c;
  color: #fff;
}
@media (max-width: 900px) {
  .site-header { height: auto; padding: 14px 18px; align-items: flex-start; gap: 14px; flex-direction: column; }
  .nav { width: 100%; overflow-x: auto; gap: 16px; padding-bottom: 4px; }
  .hero { min-height: 760px; }
  .hero-content { margin-left: 24px; }
  .server-stats, .feature-grid, .timeline, .split, .pet-layout { grid-template-columns: 1fr; }
  .pet-panel-main { grid-row: auto; }
  .notice-band, .download-section, .site-footer { flex-direction: column; align-items: flex-start; }
  .steps li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 560px) {
  .hero-content { width: calc(100% - 32px); margin-left: 16px; }
  .lead { font-size: 17px; }
  .section { padding: 58px 18px; }
  .btn { width: 100%; }
  .maple-leaf:nth-child(n+11) { display: none; }
  .sound-toggle {
    right: 14px;
    bottom: 14px;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .maple-leaf { display: none; }
  .feature-card { transition: none; }
}


