/* Lunadale's website (Website/build.cjs) in the bright fantasy look of the owner's reference: a clear sky blue touched
   with light lavender (2026-11-29, "ฟ้าใสสว่าง แซมด้วยม่วงอ่อน"), white frosted-glass cards, sky-blue pill buttons, a dark
   see-through strip over the key art, headings without loops (Kanit), the mark in Cinzel with a little gold. The wiki
   (Website/wiki.cjs) is drawn with the same pieces. */

:root {
  --sky: #eef7ff;
  --sky-2: #dcefff;
  --glass: rgba(255, 255, 255, 0.8);
  --glass-line: rgba(255, 255, 255, 0.92);
  --ink: #1b2a41;
  --ink-2: #44546d;
  --ink-dim: #7a879b;
  --blue: #3d9be9;
  --blue-2: #8fd3fb;
  --blue-deep: #1f6fbf;
  --lav: #b6a5f2;
  --lav-soft: #eeeaff;
  --pink: #f06aa6;
  --sky-blue: #5fbfe0;
  --gold: #d9ae55;
  --gold-2: #f4dc9a;
  --line: rgba(30, 100, 170, 0.13);
  --shadow: 0 14px 40px rgba(30, 90, 150, 0.12);
  --shadow-soft: 0 6px 18px rgba(30, 90, 150, 0.09);
  --round: 18px;
  --serif: "Kanit", system-ui, sans-serif;
  --body: "Kanit", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); font-weight: 400; font-size: 16px; line-height: 1.65; color: var(--ink);
  background: radial-gradient(1200px 600px at 85% -10%, #ece6ff 0, transparent 60%), radial-gradient(1000px 700px at -10% 30%, #d7efff 0, transparent 55%), var(--sky);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 40px); margin: 0 auto; }
.serif, .display, .page-title, .wiki-h2 { font-family: var(--serif); font-weight: 700; }
.serif em, .display .dot { font-style: italic; color: var(--blue); }
.dot { color: var(--blue); font-style: normal; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.chev { font-size: 1.3em; line-height: 0; margin-left: 2px; }

/* The bar along the top: glass over the key art on the home page. */
.bar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px max(20px, calc((100% - 1200px) / 2)); background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8); box-shadow: 0 4px 20px rgba(30, 90, 150, 0.06);
}
.home .bar { position: fixed; left: 0; right: 0; background: linear-gradient(180deg, rgba(14, 32, 58, 0.42), rgba(14, 32, 58, 0)); border-bottom: 0; box-shadow: none; backdrop-filter: none; }
.home .bar nav a { color: #fff; text-shadow: 0 1px 8px rgba(14, 32, 58, 0.4); transition: color 0.2s ease; }
.home .bar { transition: background 0.25s ease, box-shadow 0.25s ease; }
.home .bar.scrolled { background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(14px); box-shadow: 0 4px 20px rgba(30, 90, 150, 0.08); }
.home .bar.scrolled nav a { color: var(--ink); text-shadow: none; }
.home .bar.scrolled .menu-button { color: var(--ink); }
.mark img { height: auto; filter: drop-shadow(0 2px 6px rgba(14, 32, 58, 0.35)); }
.bar nav { display: flex; align-items: center; gap: 26px; }
.bar nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink); position: relative; }
.bar nav a.here::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: currentColor; }
.bar nav a:hover { opacity: 0.8; }
.bar nav a.lang { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.globe { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.menu-toggle, .menu-button { display: none; }

/* Buttons: a sky-blue pill with a glow, and a pill of glass. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 500; border-radius: 999px;
  padding: 11px 24px; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.button.sky, .button.dark { color: #fff; background: linear-gradient(135deg, var(--blue-2), var(--blue) 50%, var(--blue-deep)); box-shadow: 0 8px 22px rgba(61, 155, 233, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.button.sky:hover, .button.dark:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(61, 155, 233, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.button.glass, .button.line { color: #fff; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.75); backdrop-filter: blur(8px); }
.inner .button.line, .panel .button.line { color: var(--blue-deep); border-color: var(--blue); background: #fff; }
.button.glass:hover, .button.line:hover { background: rgba(255, 255, 255, 0.3); }
.button.big { padding: 14px 30px; font-size: 17px; }
.button.small { padding: 8px 20px; font-size: 14px; }
.home .bar .button.sky { text-shadow: none; }

/* The hero: the key art across the whole width, the words on its open sky, the strip of what the game has. */
.hero { position: relative; min-height: 760px; color: #fff; overflow: hidden; padding-bottom: 40px; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 32, 58, 0.55) 0, rgba(14, 32, 58, 0.28) 38%, transparent 62%), linear-gradient(180deg, transparent 60%, rgba(244, 241, 255, 0.95) 100%); }
.hero-in { position: relative; padding-top: 120px; max-width: 1200px; }
.hero-in > * { max-width: 520px; }
.hero-logo { width: 440px; max-width: 80vw; filter: drop-shadow(0 6px 22px rgba(14, 32, 58, 0.55)); margin-left: -8px; }
.hero-title { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 36px); line-height: 1.25; margin: 10px 0 14px; text-shadow: 0 2px 14px rgba(14, 32, 58, 0.55); }
.hero-text { font-size: 16.5px; font-weight: 300; text-shadow: 0 1px 10px rgba(14, 32, 58, 0.6); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 18px; }
.platforms { font-size: 14px; opacity: 0.92; text-shadow: 0 1px 8px rgba(14, 32, 58, 0.6); }
.features {
  position: relative; margin-top: 46px; display: grid; grid-template-columns: repeat(5, 1fr); border-radius: 999px; padding: 14px 26px;
  background: rgba(14, 32, 58, 0.36); border: 1px solid rgba(255, 255, 255, 0.55); backdrop-filter: blur(14px); box-shadow: 0 12px 36px rgba(14, 32, 58, 0.25);
}
.feature { display: flex; align-items: center; gap: 12px; padding: 4px 14px; border-left: 1px solid rgba(255, 255, 255, 0.25); }
.feature:first-child { border-left: 0; }
.feature svg { width: 34px; height: 34px; flex: none; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature strong { display: block; font-weight: 500; font-size: 15px; }
.feature span { display: block; font-size: 12.5px; opacity: 0.85; font-weight: 300; }

/* The world: a large picture beside the regions' paintings. */
.band { padding: 54px 0; }
.band.top { padding-top: 40px; }
.explore-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; align-items: center; }
.media { position: relative; display: block; border-radius: var(--round); overflow: hidden; box-shadow: var(--shadow); border: 4px solid #fff; aspect-ratio: 16 / 10; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.media:hover img { transform: scale(1.04); }
.media-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; color: #fff; background: linear-gradient(180deg, transparent, rgba(14, 32, 58, 0.75)); }
.media-cap strong { display: block; font-family: var(--serif); font-size: 20px; }
.media-cap em { font-style: normal; font-size: 13px; opacity: 0.85; }
.explore-grid > *, .pair > * { min-width: 0; }
.explore-side h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 12px; }
.places-wrap { position: relative; margin-top: 20px; }
.places { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 14px; scrollbar-width: none; }
.places::-webkit-scrollbar { display: none; }
.place { position: relative; display: block; border-radius: 14px; overflow: hidden; scroll-snap-align: start; box-shadow: var(--shadow-soft); border: 3px solid #fff; text-decoration: none; color: #fff; }
.place:first-child { outline: 3px solid var(--blue-2); outline-offset: 1px; }
.place img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.4s ease; }
.place:hover img { transform: scale(1.06); }
.place-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 10px; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 5px; background: linear-gradient(180deg, transparent, rgba(14, 32, 58, 0.75)); }
.place-levels { position: absolute; top: 8px; left: 8px; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); color: var(--blue-deep); font-weight: 500; }
.pin { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.round-arrow { position: absolute; right: -16px; top: 42%; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 22px; box-shadow: var(--shadow-soft); cursor: pointer; }

/* News beside the wiki, each a panel of glass. */
.pair { display: grid; grid-template-columns: 1.45fr 1fr; gap: 24px; align-items: stretch; }
.panel-glass, .panel { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 22px; padding: 22px 24px; box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-head h2 { font-size: 28px; }
.panel-head .muted { margin: 2px 0 0; }
.link { text-decoration: none; color: var(--blue); font-weight: 500; font-size: 14px; white-space: nowrap; }
.link:hover { color: var(--blue-deep); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.news-card { display: flex; flex-direction: column; text-decoration: none; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-soft); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-art { position: relative; display: block; }
.news-art img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.badge { position: absolute; left: 10px; top: 10px; font-size: 12px; font-weight: 500; color: #fff; padding: 2px 12px; border-radius: 999px; background: var(--blue); }
.badge.event { background: var(--pink); }
.badge.notice { background: var(--sky-blue); }
.news-text { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.news-text strong { font-weight: 500; font-size: 15.5px; line-height: 1.35; }
.news-text .summary { font-size: 13.5px; color: var(--ink-2); font-weight: 300; flex: 1; }
.news-text time { font-size: 12.5px; color: var(--ink-dim); margin-top: 6px; }
.wiki-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wiki-tiles .wiki-tile { display: grid; justify-items: center; gap: 6px; padding: 16px 8px 14px; background: #fff; border-radius: 14px; text-decoration: none; box-shadow: var(--shadow-soft); font-size: 14px; text-align: center; transition: transform 0.15s ease; }
.wiki-tiles .wiki-tile:hover { transform: translateY(-3px); }
.wiki-tiles .wiki-tile img { width: 58px; height: 58px; object-fit: contain; }

/* The closing banner. */
.call { position: relative; min-height: clamp(420px, 40vw, 560px); display: grid; align-items: center; overflow: hidden; margin-top: 20px; }
.call-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 20%; }
.call-shade { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky) 0, transparent 18%), linear-gradient(90deg, transparent 30%, rgba(255, 255, 255, 0.55) 60%, rgba(255, 255, 255, 0.35)); }
.call-in { position: relative; display: grid; justify-items: center; justify-content: end; text-align: center; padding: 60px 0; }
.call h2 { font-size: clamp(30px, 3.6vw, 44px); color: var(--ink); margin-bottom: 22px; text-shadow: 0 2px 12px rgba(255, 255, 255, 0.8); }
.call h2 em { color: var(--blue-deep); }

/* The foot. */
.foot { background: linear-gradient(180deg, #2e2468, #1f1848); color: #e9e5ff; padding: 40px 0 34px; }
.foot-in { display: grid; grid-template-columns: 1fr 2fr auto; gap: 26px; align-items: start; }
.foot-tag { font-size: 13px; opacity: 0.75; margin: 8px 0 0; font-weight: 300; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-nav a { text-decoration: none; font-size: 14px; color: #e9e5ff; }
.foot-nav a:hover { color: #fff; text-decoration: underline; }
.foot-small { font-size: 13px; opacity: 0.7; margin: 0; }

/* Inner pages: a heading in serif on the sky, their parts on glass. */
.inner main { padding-bottom: 30px; }
.kicker { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); font-weight: 500; margin-bottom: 8px; }
.kicker a { text-decoration: none; }
.page-title { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 22px; }
.post-title { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 42px); line-height: 1.25; margin-bottom: 16px; }
.prose { max-width: 820px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 22px; padding: 30px 34px; box-shadow: var(--shadow); }
.prose h2 { font-family: var(--serif); font-size: 26px; margin: 1.4em 0 0.5em; color: var(--blue-deep); }
.prose h3 { font-size: 18px; font-weight: 500; margin: 1.2em 0 0.3em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 0.3em 0; }
.prose li::marker { color: var(--blue); }
.prose a { color: var(--blue); }
.post-art { width: 100%; max-height: 380px; object-fit: cover; border-radius: 16px; margin: 6px 0 22px; box-shadow: var(--shadow-soft); }
.draft { background: #fff4d8; border-radius: 12px; padding: 10px 14px; font-size: 14px; color: #7a5510; }
.table { overflow-x: auto; background: #fff; border-radius: 16px; box-shadow: var(--shadow-soft); margin-bottom: 22px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th { text-align: left; padding: 11px 14px; background: var(--sky-2); color: var(--blue-deep); font-weight: 500; font-size: 13.5px; }
td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
tr:hover td { background: #f4faff; }
.panels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.panel h2 { font-family: var(--serif); font-size: 28px; margin: 4px 0 10px; }
.panel .num { color: var(--blue); font-weight: 500; }
.panel .label { display: block; margin: 20px 0 4px; font-weight: 500; }
.note { font-weight: 400; }
.note.small { color: var(--ink-2); font-size: 15px; }
.inner .news-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

/* Labels that head parts of the wiki's pages. */
.label-row { display: flex; align-items: center; gap: 12px; margin: 8px 0 14px; }
.label { font-family: var(--serif); font-size: 21px; color: var(--ink); }
.label-row .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--blue-2), transparent); }
.label-link { text-decoration: none; color: var(--blue); font-size: 14px; }

/* The wiki. */
.wiki .page-title { margin-bottom: 14px; }
.wiki-search { position: relative; max-width: 560px; margin: 0 0 24px auto; }
.wiki-search input { width: 100%; font: 400 15px var(--body); padding: 12px 20px; border: 1px solid var(--glass-line); border-radius: 999px; background: #fff; color: var(--ink); box-shadow: var(--shadow-soft); }
.wiki-search input:focus { outline: 2px solid var(--blue-2); outline-offset: 1px; }
.results { position: absolute; z-index: 15; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 16px; box-shadow: var(--shadow); max-height: 420px; overflow: auto; }
.results a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; text-decoration: none; }
.results a:hover { background: var(--sky-2); }
.results em { font-size: 12px; color: var(--ink-dim); font-style: normal; white-space: nowrap; }
.results .none { padding: 10px 12px; color: var(--ink-dim); }
.lead-left { max-width: 640px; color: var(--ink-2); margin-bottom: 26px; }
.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.works.three { grid-template-columns: repeat(3, 1fr); }
.work { background: #fff; border-radius: var(--round); overflow: hidden; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.work:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.work-art { position: relative; display: block; overflow: hidden; }
.work-art img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.wiki-tile-card .work-art img, .work.wiki-tile .work-art img { aspect-ratio: 16 / 9; }
.work .num { position: absolute; left: 10px; top: 10px; font-size: 12px; font-weight: 500; background: rgba(255, 255, 255, 0.9); color: var(--blue-deep); padding: 1px 9px; border-radius: 999px; }
.work-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 12px 16px 14px; flex: 1; }
.work-foot h3 { font-family: var(--serif); font-size: 19px; }
.work-foot h3 a { text-decoration: none; }
.work-foot .meta { color: var(--ink-dim); margin: 2px 0 0; font-size: 13px; }
.work-foot .arrow { color: var(--blue); font-size: 22px; line-height: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.tag { display: inline-block; font-size: 12.5px; padding: 2px 11px; border-radius: 999px; background: var(--sky-2); color: var(--blue-deep); margin-right: 4px; }
.tag.mvp { background: linear-gradient(135deg, #ffd36e, var(--gold)); color: #5a3a00; }
.tag.boss { background: var(--blue); color: #fff; }
.tag.aggro { background: #ffe3ee; color: #b0306a; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 0 0 10px; }
.facts div { background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow-soft); }
.facts dt { font-size: 12.5px; color: var(--ink-dim); }
.facts dd { margin: 2px 0 0; font-weight: 500; }
.entry { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; margin-bottom: 26px; }
.entry-art { width: 100%; border-radius: 16px; box-shadow: var(--shadow); }
.entry-art.portrait { background: linear-gradient(180deg, #fff, var(--sky-2)); }
.entry-icon { width: 160px; height: 160px; display: grid; place-items: center; background: #fff; border-radius: 20px; box-shadow: var(--shadow); }
.entry-icon .icon { width: 120px; height: 120px; }
.entry-words { font-size: 17px; color: var(--ink-2); max-width: 680px; }
.icon { display: inline-block; object-fit: contain; vertical-align: middle; }
.icon.card { border-radius: 3px; object-fit: cover; }
.icon.blank { display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--blue); color: #fff; font-size: 10px; border-radius: 6px; }
.thing { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; }
.thing:hover span { color: var(--blue); }
.wiki-h2 { font-size: 28px; margin: 32px 0 14px; color: var(--ink); }
.wiki-h2 small { font-family: var(--body); font-size: 14px; color: var(--blue); margin-left: 6px; font-weight: 400; }
.wiki-h2 a { text-decoration: none; }
.wiki-h3 { font-size: 15px; font-weight: 500; color: var(--blue-deep); margin: 16px 0 8px; }
.jump { font-size: 14px; }
.jump a { text-decoration: none; color: var(--blue); }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-bottom: 8px; }
.item-grid.small { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.item-cell { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #fff; border-radius: 12px; text-decoration: none; box-shadow: var(--shadow-soft); }
.item-cell:hover { background: #f4faff; }
.item-cell span { display: grid; line-height: 1.3; }
.item-cell strong { font-weight: 500; font-size: 14.5px; }
.item-cell em { font-size: 12px; font-style: normal; color: var(--ink-dim); }
.lands { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 20px; }
.lands figure { margin: 0; }
.lands img { width: 100%; border-radius: 14px; box-shadow: var(--shadow-soft); }
.lands .meta { font-size: 13px; color: var(--ink-dim); }
.mini-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; margin-bottom: 24px; }
.mini-card { display: grid; gap: 4px; text-decoration: none; }
.mini-card img { width: 100%; border-radius: 10px; box-shadow: var(--shadow-soft); }
.mini-card span { font-weight: 500; font-size: 14px; line-height: 1.25; }
.mini-card em { font-size: 12px; font-style: normal; color: var(--ink-dim); }
.work-art.portrait { background: linear-gradient(180deg, #fff, var(--sky-2)); display: grid; place-items: end center; aspect-ratio: 1 / 1; }
.work-art.portrait img { aspect-ratio: auto; object-fit: contain; height: 100%; width: auto; }
.blank-portrait { font-family: var(--serif); font-size: 64px; align-self: center; color: var(--blue); }
.plain { list-style: none; padding: 0; margin: 0 0 24px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-soft); overflow: hidden; }
.plain li { padding: 10px 16px; border-top: 1px solid var(--line); }
.plain li:first-child { border-top: 0; }
.quest-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.quest { background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-soft); scroll-margin-top: 90px; border-top: 3px solid var(--blue-2); }
.quest:target { outline: 3px solid var(--blue-2); }
.quest h3 { font-family: var(--serif); font-size: 18px; margin-bottom: 6px; }
.quest-offer { font-size: 14.5px; color: var(--ink-2); font-style: italic; font-weight: 300; }
.quest-task { margin: 6px 0 0; font-size: 14.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.quest-task .label { font-family: var(--body); font-size: 13px; color: var(--blue); min-width: 60px; }
.class-block { margin-bottom: 34px; scroll-margin-top: 90px; }
.class-title { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.faces { display: flex; }
.faces img { width: 52px; height: 52px; border-radius: 50%; border: 3px solid #fff; background: var(--sky-2); object-fit: cover; margin-right: -10px; box-shadow: var(--shadow-soft); }
.class-title .wiki-h2 { margin: 0; }
.class-title .meta { color: var(--ink-dim); font-size: 13px; margin: 2px 0 0; }
.skill-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.skill { display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 12px 14px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-soft); }
.skill img { background: linear-gradient(135deg, var(--blue-2), var(--blue-deep)); border-radius: 12px; padding: 3px; }
.skill h3 { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.skill p { font-size: 14px; margin: 0 0 4px; color: var(--ink-2); }
.skill .meta { font-size: 12px; color: var(--ink-dim); }

/* Narrower screens. */
@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(3, 1fr); border-radius: 26px; gap: 10px; }
  .feature:nth-child(4) { border-left: 0; }
  .explore-grid, .pair { grid-template-columns: 1fr; }
  .works { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .menu-button { display: grid; gap: 5px; cursor: pointer; padding: 8px 4px; }
  .menu-button span { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
  .home .menu-button { color: #fff; }
  .bar nav { display: none; position: absolute; top: 100%; left: 12px; right: 12px; flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 20px; background: rgba(255, 255, 255, 0.96); border-radius: 18px; box-shadow: var(--shadow); }
  .home .bar nav a { color: var(--ink); text-shadow: none; }
  .menu-toggle:checked ~ nav { display: flex; }
  .hero { min-height: 680px; }
  .hero-in { padding-top: 96px; }
  .hero-shade { background: linear-gradient(180deg, rgba(14, 32, 58, 0.25), rgba(14, 32, 58, 0.55) 55%, rgba(244, 241, 255, 0.96) 100%); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature { border-left: 0; }
  .entry { grid-template-columns: 1fr; }
  .entry-art { max-width: 260px; }
  .works.three { grid-template-columns: 1fr 1fr; }
  .wiki-search { margin-left: 0; }
  .foot-in { grid-template-columns: 1fr; }
  .panels { grid-template-columns: 1fr; }
  .call-in { justify-content: center; }
  .call-shade { background: rgba(255, 255, 255, 0.5); }
}
@media (max-width: 560px) {
  .news-grid, .works, .works.three { grid-template-columns: 1fr; }
  .wiki-tiles { grid-template-columns: repeat(2, 1fr); }
  .quest-list, .skill-list { grid-template-columns: 1fr; }
  .prose { padding: 22px 18px; }
  .round-arrow { display: none; }
  .features { padding: 14px 10px; gap: 14px 6px; }
  .feature { flex-direction: column; text-align: center; gap: 6px; padding: 4px; }
  .feature:last-child { grid-column: 1 / -1; }
  .hero-buttons .button { width: 100%; }
}

/* ---- Clear sky (2026-11-29) ---------------------------------------------------------------------------------------- */
h1, h2, h3, .serif, .page-title, .wiki-h2, .post-title, .hero-title { font-family: var(--serif); font-weight: 600; letter-spacing: -0.005em; }
.serif em, .call h2 em, .page-title .dot { font-style: normal; background: linear-gradient(90deg, var(--blue-deep), #7d6ad9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dot { color: var(--blue); }

.logo { display: block; height: auto; color: var(--ink); overflow: visible; }
.logo.small { width: 150px; }
.logo.big { width: 460px; max-width: 82vw; color: #fff; filter: drop-shadow(0 4px 18px rgba(14, 32, 58, 0.45)); margin-left: -18px; }
.mark { display: block; }
.mark img { display: none; }
.home .bar .logo { color: #fff; filter: drop-shadow(0 1px 6px rgba(14, 32, 58, 0.45)); }
.home .bar.scrolled .logo { color: var(--ink); filter: none; }
.hero-mark { margin: 0; }

.button.sky, .button.dark { color: #fff; background: linear-gradient(135deg, var(--blue-2), var(--blue) 55%, var(--blue-deep)); box-shadow: 0 8px 22px rgba(61, 155, 233, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.button.sky:hover, .button.dark:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(61, 155, 233, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.inner .button.line, .panel .button.line { color: var(--blue-deep); border-color: var(--blue); }

/* The hero: the key art's own bright sky, only a light veil where the words are; the strip of what the game has in
   dark see-through glass. */
.hero-shade { background: linear-gradient(90deg, rgba(14, 40, 80, 0.38) 0, rgba(14, 40, 80, 0.16) 34%, transparent 55%), linear-gradient(180deg, rgba(14, 40, 80, 0.18) 0, transparent 22%, transparent 70%, var(--sky) 100%); }
.hero-title, .hero-text, .platforms { text-shadow: 0 2px 12px rgba(14, 32, 58, 0.55); }
.features { background: rgba(8, 14, 26, 0.48); border: 1px solid rgba(255, 255, 255, 0.22); box-shadow: 0 14px 36px rgba(8, 20, 40, 0.28); }
.feature { border-left-color: rgba(255, 255, 255, 0.18); }
.feature svg { stroke: var(--gold-2); }

/* The world: a faint painted land behind it. */
.band.explore { position: relative; background: linear-gradient(180deg, var(--sky) 0, rgba(238, 247, 255, 0.3) 20%, rgba(238, 247, 255, 0.22) 70%, var(--sky) 100%), url(/img/explore-bg.jpg) center 40% / cover no-repeat; }
.media.video { background: #0e2036; aspect-ratio: auto; }
/* The player itself 16:9 inside the frame's white edge: YouTube's player and its cover are 16:9, and the 16:10 of .media cut the cover's sides (2026-11-29). */
.media.video iframe, .media.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.media.soon { cursor: default; }
.video-card { display: flex; flex-direction: column; gap: 12px; }
.video-tabs { display: flex; gap: 8px; }
.video-tabs button { font: inherit; font-size: 14px; font-weight: 500; padding: 7px 18px; border-radius: 999px; border: 1px solid rgba(183, 138, 53, 0.45); background: rgba(255, 255, 255, 0.7); color: #3b2a07; cursor: pointer; }
.video-tabs button.on { background: linear-gradient(180deg, #fff1c4 0%, #e9c97a 45%, #b78a35 100%); border-color: transparent; color: #2a1a05; box-shadow: 0 4px 14px rgba(183, 138, 53, 0.35); }
.play { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.25); border: 2px solid rgba(255, 255, 255, 0.85); backdrop-filter: blur(6px); box-shadow: 0 8px 30px rgba(14, 32, 58, 0.35); }
.play svg { width: 34px; height: 34px; fill: #fff; margin-left: 4px; }
.media-cap em { display: inline-block; margin-top: 4px; font-size: 12px; padding: 1px 10px; border-radius: 999px; background: var(--gold); color: #3b2a07; opacity: 1; font-weight: 500; }
.place:first-child { outline-color: var(--blue-2); }
.place-levels { color: var(--blue-deep); }

.badge { background: var(--blue); }
.badge.event { background: var(--pink); }
.badge.notice { background: var(--lav); }
.tag { background: var(--sky-2); color: var(--blue-deep); }
.tag.boss { background: var(--lav); color: #fff; }
.skill img { background: linear-gradient(135deg, var(--blue-2), var(--blue-deep)); }
.quest { border-top-color: var(--blue-2); }

/* The closing banner, and a light foot. */
.call-shade { background: linear-gradient(180deg, var(--sky) 0, transparent 16%), linear-gradient(90deg, transparent 32%, rgba(255, 255, 255, 0.62) 64%, rgba(255, 255, 255, 0.45)); }
.call h2 { color: var(--ink); text-shadow: 0 2px 16px rgba(255, 255, 255, 0.95); }
.call h2 em { text-shadow: none; filter: drop-shadow(0 1px 8px rgba(255, 255, 255, 0.9)); }
.explore-side h2, .explore-side .muted { text-shadow: 0 1px 10px rgba(255, 255, 255, 0.9); }
.foot { background: linear-gradient(180deg, #dcefff, #cbe5fa); color: var(--ink); border-top: 1px solid rgba(255, 255, 255, 0.9); }
.foot .logo { color: var(--ink); }
.foot-nav a { color: var(--ink-2); }
.foot-nav a:hover { color: var(--blue-deep); }
.foot-tag, .foot-small { color: var(--ink-2); opacity: 1; }

/* ---- Shadows of the reference (2026-11-29, the owner: a dark shade over the hero and the menu, purple buttons, the
   foot darker) --------------------------------------------------------------------------------------------------- */
:root { --violet: #7c5cf0; --violet-2: #a990ff; --violet-deep: #5a3dd6; --night: #0a1222; }

/* The menu: a dark shade over the key art, dark glass once scrolled and on the other pages; words and mark in white. */
.bar { background: rgba(9, 15, 28, 0.8); border-bottom: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 6px 24px rgba(4, 8, 18, 0.28); backdrop-filter: blur(14px); }
.bar nav a, .bar .logo, .home .bar.scrolled nav a, .home .bar.scrolled .logo { color: #fff; text-shadow: none; filter: none; }
.bar nav a.here::after { background: var(--violet-2); }
.menu-button, .home .bar.scrolled .menu-button { color: #fff; }
.home .bar { background: linear-gradient(180deg, rgba(4, 8, 18, 0.72) 0, rgba(4, 8, 18, 0.35) 60%, rgba(4, 8, 18, 0) 100%); border-bottom: 0; box-shadow: none; backdrop-filter: none; padding-bottom: 26px; }
.home .bar.scrolled { background: rgba(9, 15, 28, 0.8); backdrop-filter: blur(14px); box-shadow: 0 6px 24px rgba(4, 8, 18, 0.28); padding-bottom: 10px; }
.home .bar nav a, .home .bar .logo { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }

/* The hero: dark at the top behind the menu, on the left behind the words, and toward the foot behind the strip. */
.hero-shade { background:
  linear-gradient(180deg, rgba(4, 8, 18, 0.5) 0, rgba(4, 8, 18, 0) 26%, rgba(4, 8, 18, 0) 58%, rgba(4, 8, 18, 0.5) 100%),
  linear-gradient(90deg, rgba(6, 12, 26, 0.62) 0, rgba(6, 12, 26, 0.32) 34%, rgba(6, 12, 26, 0) 58%); }
.hero { background: var(--night); }
.features { background: rgba(4, 8, 16, 0.55); }

/* Buttons: purple pills with a glow. */
.button.violet, .button.dark { color: #fff; background: linear-gradient(135deg, var(--violet-2), var(--violet) 55%, var(--violet-deep)); box-shadow: 0 8px 22px rgba(124, 92, 240, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.button.violet:hover, .button.dark:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(124, 92, 240, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.inner .button.line, .panel .button.line { color: var(--violet-deep); border-color: var(--violet); }

/* The foot: night with a thin line of gold over it. */
.foot { position: relative; background: linear-gradient(180deg, #111c31, #070d18); color: rgba(255, 255, 255, 0.86); border-top: 0; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-2) 50%, var(--gold) 70%, transparent); }
.foot .logo { color: #fff; }
.foot-nav a { color: rgba(255, 255, 255, 0.82); }
.foot-nav a:hover { color: var(--gold-2); text-decoration: none; }
.foot-tag, .foot-small { color: rgba(255, 255, 255, 0.6); }

@media (max-width: 800px) {
  .bar nav, .home .bar nav { background: rgba(9, 15, 28, 0.96); border: 1px solid rgba(255, 255, 255, 0.1); }
  .bar nav a, .home .bar nav a { color: #fff; text-shadow: none; }
  .hero-shade { background: linear-gradient(180deg, rgba(4, 8, 18, 0.55) 0, rgba(4, 8, 18, 0.35) 30%, rgba(4, 8, 18, 0.5) 60%, rgba(4, 8, 18, 0.7) 100%); }
}

/* ---- The game's Slate colours on the foot (the buttons went back to purple the same day) (2026-11-29, the owner: "ลองเปลี่ยนปุ่ม ,footer เป็นสี slate",
   after Ocean): HudTheme's Slate set, its panel #33363b to #1f2024, its frame #3d424d, its action #5c6675 and its
   pale gold line #ccc7b8 / #d9cca8. ------------------------------------------------------------------------------- */
:root { --slate-top: #33363b; --slate-foot: #1f2024; --slate-frame: #3d424d; --slate-action: #5c6675; --slate-light: #7a8494; --slate-line: #ccc7b8; --slate-gilt: #d9cca8; }
.bar nav a.here::after { background: var(--slate-gilt); }
.foot { background: linear-gradient(180deg, var(--slate-top), var(--slate-foot)); }
.foot::before { background: linear-gradient(90deg, transparent, var(--slate-line) 30%, var(--slate-gilt) 50%, var(--slate-line) 70%, transparent); }
.foot-nav a:hover { color: var(--slate-gilt); }

/* ---- The home page's other parts in the new look (2026-11-29, as the editorial page had them): how you play, the
   classes, the end game, about. ---------------------------------------------------------------------------------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(28px, 3vw, 38px); }
/* How you play as the editorial page laid it out (the owner asked for that layout back the same day): a dark band, a
   spaced label with a rule, three columns parted by thin lines, each an ink sketch beside a big number, a short pink
   stroke, a heavy title on two lines and its words. */
.how-dark { padding: 34px 0; }
.how-dark .wrap { position: relative; overflow: hidden; color: #eceaf2; padding: 26px 34px 28px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(520px 220px at 88% 0%, rgba(124, 92, 240, 0.28), transparent 70%), radial-gradient(420px 200px at 8% 100%, rgba(61, 155, 233, 0.18), transparent 70%), linear-gradient(135deg, #121a2e, #0b111f);
  box-shadow: 0 18px 44px rgba(9, 15, 28, 0.28); }
.how-label { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; font-size: 14px; font-weight: 500; letter-spacing: 0.12em; }
.how-label i { flex: 0 0 110px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--violet-2), rgba(169, 144, 255, 0)); }
.how-label a { margin-left: auto; text-decoration: none; color: var(--violet-2); letter-spacing: 0.06em; }
.how-label a:hover { color: #fff; }
/* On a phone the head row has no room for its link: a button under the steps goes to the guide instead (2026-11-30). */
.how-more { display: none; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; padding: 4px 26px; border-left: 1px solid rgba(236, 234, 242, 0.16); }
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar-art { width: 100%; opacity: 0.9; }
.pillar-num { display: block; font-family: "Anton", "Kanit", sans-serif; font-size: 24px; line-height: 1; letter-spacing: 0.02em; color: #fff; }
.tick { display: block; width: 22px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--violet-2), var(--violet)); margin: 8px 0 8px; }
.pillar h3 { font-family: "Kanit", sans-serif; font-weight: 700; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.2; margin-bottom: 6px; }
.pillar p { margin: 0; font-size: clamp(13.5px, 1vw, 14.5px); line-height: 1.6; color: rgba(236, 234, 242, 0.75); font-weight: 300; }

.classes-band { background: linear-gradient(180deg, transparent, rgba(220, 239, 255, 0.7) 30%, rgba(220, 239, 255, 0.7) 70%, transparent); }
.classes-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 34px; align-items: center; }
.classes-side h2 { font-size: clamp(32px, 3.6vw, 46px); margin-bottom: 10px; }
.classes-side .button { margin-top: 8px; }
.paths { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.path { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-soft); }
.path .faces { display: flex; flex: none; }
.path .faces img { width: 54px; height: 54px; border-radius: 50%; border: 3px solid #fff; background: linear-gradient(180deg, var(--sky-2), var(--lav-soft)); object-fit: cover; box-shadow: var(--shadow-soft); }
.path .faces img + img { margin-left: -14px; }
.path strong { display: block; font-weight: 500; font-size: 15.5px; }
.path span { display: block; font-size: 13.5px; color: var(--ink-dim); }
.path span::before { content: "→ "; color: var(--violet); }

.end-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.end-card { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; border: 3px solid #fff; }
.end-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.end-card:hover img { transform: scale(1.06); }
.end-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 18px 18px; color: #fff; background: linear-gradient(180deg, transparent, rgba(6, 12, 26, 0.85)); }
.end-text h3 { font-size: 19px; margin-bottom: 4px; }
.end-text p { margin: 0; font-size: 13.5px; opacity: 0.88; font-weight: 300; }

.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.about-copy h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 14px; }
.about-copy .muted { font-size: 16.5px; }
.about-pic img { width: 100%; border-radius: 24px; border: 4px solid #fff; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }

@media (max-width: 1000px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar:first-child { border-left: 0; padding: 14px 0; border-top: 1px solid rgba(236, 234, 242, 0.14); grid-template-columns: 96px 1fr; }
  .pillar:first-child { border-top: 0; }
  .classes-grid, .about-grid { grid-template-columns: 1fr; }
  .paths { grid-template-columns: 1fr 1fr; }
  .end-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .paths { grid-template-columns: 1fr; }
  .pillar, .pillar:first-child { grid-template-columns: 78px 1fr; gap: 14px; }
  .how-dark .wrap { padding: 22px 18px; }
  .how-label a { display: none; }
  .how-more { display: flex; justify-content: center; width: 100%; margin-top: 16px; }
  .end-card { aspect-ratio: 4 / 5; }
}

/* ---- Pictures from the game (2026-11-29): a grid of eight, each opening large in a viewer with arrows. -------------- */
.gallery-band { padding-top: 26px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shot { position: relative; display: block; padding: 0; border: 3px solid #fff; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: #0b111f; box-shadow: var(--shadow-soft); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.5s ease; }
.shot:hover img { transform: scale(1.05); }
.shot-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 9px; font-size: 12.5px; line-height: 1.35; color: #fff; text-align: left; background: linear-gradient(180deg, transparent, rgba(6, 12, 26, 0.82)); opacity: 0; transition: opacity 0.2s ease; }
.shot:hover .shot-cap, .shot:focus-visible .shot-cap { opacity: 1; }
.viewer { width: min(1200px, 94vw); max-height: 94vh; padding: 0; border: 0; border-radius: 18px; background: #0b111f; color: #fff; overflow: visible; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.viewer::backdrop { background: rgba(6, 10, 20, 0.82); backdrop-filter: blur(4px); }
.viewer figure { margin: 0; }
.viewer img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 18px 18px 0 0; background: #0b111f; }
.viewer figcaption { padding: 12px 18px 14px; font-size: 15px; }
.viewer-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.viewer-step { position: absolute; top: 42%; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(9, 15, 28, 0.6); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); }
.viewer-step.prev { left: 12px; }
.viewer-step.next { right: 12px; }
.viewer-step:hover { background: linear-gradient(135deg, var(--violet-2), var(--violet)); }
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { gap: 10px; } .shot-cap { display: none; } .viewer-close { top: 8px; right: 8px; } }

/* ---- Gold buttons (2026-11-29, the owner: "ลองเปลี่ยนปุ่มบนเว็บเป็นสีทองหน่อย"): the logo's gold, lit at its top, night
   ink on it. The viewer's arrows and the gallery keep their purple hover. ------------------------------------------- */
.button.violet, .button.dark { color: #1a1406; background: linear-gradient(180deg, #fff1c6 0, #f0cf7c 38%, #d9ae55 70%, #b98b36 100%); border: 1px solid rgba(140, 100, 30, 0.55); box-shadow: 0 8px 22px rgba(185, 139, 54, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.75); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35); }
.button.violet:hover, .button.dark:hover { transform: translateY(-1px); background: linear-gradient(180deg, #fff6d8 0, #f5d88d 38%, #e2b961 70%, #c3963f 100%); box-shadow: 0 12px 28px rgba(185, 139, 54, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.85); }
.inner .button.line, .panel .button.line { color: #8a6420; border-color: #d9ae55; }
.bar nav a.here::after { background: #e9c66f; }

/* ---- The guide (2026-11-30, the owner: more beautiful, pictures and icons, cards the width of the page): a picture
   at its head with the parts as chips, then each part a white card the full width, a night badge with a gold icon,
   key caps, step cards, tiles with the game's pictures, chances as bars. ------------------------------------------ */
.guide { --g-night: linear-gradient(145deg, #1d2742, #0c1324); --g-gold: #e2bb62; }
.g-hero { position: relative; overflow: hidden; border-radius: 26px; min-height: 300px; display: grid; align-items: end; box-shadow: var(--shadow); border: 3px solid #fff; background: #0b111f; }
.g-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.g-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 12, 26, 0.86) 0, rgba(6, 12, 26, 0.55) 45%, rgba(6, 12, 26, 0.05) 80%), linear-gradient(0deg, rgba(6, 12, 26, 0.5), transparent 50%); }
.g-hero-in { position: relative; z-index: 1; max-width: 640px; padding: 40px 40px 36px; color: #fff; }
.g-hero .kicker { color: var(--gold-2); }
.g-hero .page-title { color: #fff; margin-bottom: 10px; }
.g-hero-in p:not(.kicker) { font-size: 17px; font-weight: 300; opacity: 0.92; margin: 0 0 20px; }
.g-toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; padding: 14px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow-soft); }
.g-toc a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: #fff; text-decoration: none; font-size: 14px; color: var(--ink); box-shadow: 0 2px 8px rgba(30, 90, 150, 0.08); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.g-toc a:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.g-toc .g-svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--g-night); stroke: var(--g-gold); }
.g-svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.g-list { display: grid; gap: 24px; }
.g-part { scroll-margin-top: 84px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 26px; padding: 28px 32px 30px; box-shadow: var(--shadow); }
.g-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.g-badge { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--g-night); box-shadow: 0 8px 20px rgba(12, 19, 36, 0.28), inset 0 0 0 1px rgba(226, 187, 98, 0.45); }
.g-badge .g-svg { width: 30px; height: 30px; stroke: var(--g-gold); }
.g-num { display: block; font-family: "Anton", "Kanit", sans-serif; font-size: 14px; letter-spacing: 0.1em; color: #b98b36; }
.g-head h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; color: var(--ink); }
.g-lead { font-size: 16.5px; color: var(--ink-2); margin: 0 0 18px; max-width: 900px; }
.g-words > :last-child, .g-group > :last-child { margin-bottom: 0; }
.g-note { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; background: #fff8e6; border: 1px solid #f1dfae; color: #6b5214; font-size: 14.5px; }
.g-note .g-svg { width: 20px; height: 20px; flex: none; margin-top: 2px; stroke: #b98b36; }
.guide kbd { display: inline-block; min-width: 30px; padding: 3px 9px 4px; border-radius: 8px; font: 500 13.5px/1.25 var(--body); text-align: center; color: var(--ink); background: linear-gradient(180deg, #fff, #eef3fa); border: 1px solid #c9d5e6; box-shadow: 0 2px 0 #b9c7db, 0 3px 6px rgba(30, 60, 100, 0.08); white-space: nowrap; }
.g-chip { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px 1px 2px; margin: 0 2px; border-radius: 999px; background: #fff; border: 1px solid #ecdcae; font-weight: 500; white-space: nowrap; vertical-align: middle; }
.g-chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: #f6efdc; }

/* Steps: five cards across, a round picture, a number, the words. */
.g-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.g-steps li { position: relative; display: grid; align-content: start; justify-items: start; gap: 8px; padding: 18px 16px 16px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.g-steps li:not(:last-child)::after { content: "›"; position: absolute; right: -12px; top: 34px; z-index: 1; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; line-height: 1; color: #fff; background: #d9ae55; box-shadow: 0 2px 6px rgba(185, 139, 54, 0.4); }
.g-step-pic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: var(--g-night); box-shadow: inset 0 0 0 2px rgba(226, 187, 98, 0.6); }
.g-step-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.g-step-pic .g-svg { width: 30px; height: 30px; stroke: var(--g-gold); }
.g-step-num { font-family: "Anton", "Kanit", sans-serif; font-size: 20px; line-height: 1; color: #b98b36; }
.g-steps p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

/* A picture across the card, its words over its foot. */
.g-banner { position: relative; margin: 0 0 20px; border-radius: 18px; overflow: hidden; border: 3px solid #fff; box-shadow: var(--shadow-soft); }
.g-banner img { width: 100%; height: clamp(160px, 22vw, 260px); object-fit: cover; object-position: 50% 45%; }
.g-banner figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 14px; color: #fff; font-size: 15px; background: linear-gradient(180deg, transparent, rgba(6, 12, 26, 0.8)); }

/* Parts of a part, side by side: the keys' three groups, where to refine and its helps. */
.g-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 18px; }
.g-group { padding: 18px 18px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.7); border: 1px solid #e3ecf7; }
.g-group h3 { display: flex; align-items: center; gap: 10px; font-size: 16.5px; font-weight: 600; margin: 0 0 12px; color: var(--ink); }
.g-group h3::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: linear-gradient(180deg, #f0cf7c, #b98b36); }

/* Keys: each a row of caps and what it does. */
.g-keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.g-keys li { display: grid; grid-template-columns: minmax(118px, auto) 1fr; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 12px; background: #fff; box-shadow: 0 1px 4px rgba(30, 90, 150, 0.07); font-size: 14.5px; }
.g-caps { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--ink-dim); }

/* Tiles: a picture of the name, the name, its words. */
.g-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.g-tile { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-soft); transition: transform 0.15s ease; }
.g-tile:hover { transform: translateY(-2px); }
.g-tile-pic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; overflow: hidden; background: linear-gradient(145deg, #f7f1e1, #efe4c6); box-shadow: inset 0 0 0 1px #ead9a8; }
.g-tile-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.g-tile-pic img[src*="/items/"], .g-tile-pic img[src*="/skills/"] { object-fit: contain; padding: 5px; }
.g-tile-pic .g-svg { width: 28px; height: 28px; stroke: #9a7120; }
.g-tile strong { display: block; font-size: 16px; font-weight: 600; margin: 2px 0 2px; color: var(--ink); }
.g-tile p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.g-stat strong { font-family: "Anton", "Kanit", sans-serif; font-weight: 400; font-size: 19px; letter-spacing: 0.06em; color: #b98b36; }
.g-groups .g-tiles { grid-template-columns: 1fr; }

/* Words beside a drawing: the phone, the cards. */
.g-split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px; align-items: center; }
.g-split .g-tiles { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.g-phone { margin: 0; }
.g-phone svg { width: 100%; height: auto; filter: drop-shadow(0 14px 26px rgba(12, 19, 36, 0.25)); }
.ph-body { fill: #141b2e; stroke: #2d3753; stroke-width: 2; }
.ph-screen { fill: #8fc7ee; }
.ph-ground { fill: #7cbf72; }
.ph-hero { fill: #fff; stroke: #1b2a41; stroke-width: 1.5; }
.ph-ring { fill: rgba(255, 255, 255, 0.35); stroke: #fff; stroke-width: 2; }
.ph-knob { fill: #fff; }
.ph-skill { fill: #1d2742; stroke: #e2bb62; stroke-width: 2; }
.ph-attack { fill: #e2bb62; stroke: #fff; stroke-width: 3; }
.ph-dash { fill: #5a3dd6; stroke: #fff; stroke-width: 2; }
.ph-wing { fill: #fff; }
.ph-label { font: 600 12px var(--body); fill: #0c1324; text-anchor: middle; paint-order: stroke; stroke: rgba(255, 255, 255, 0.85); stroke-width: 3px; }
.g-fan { margin: 0; text-align: center; }
.g-fan div { position: relative; height: 270px; }
.g-fan img { position: absolute; top: 10px; left: 50%; width: 150px; height: 225px; object-fit: cover; border-radius: 12px; border: 3px solid #fff; box-shadow: 0 12px 26px rgba(12, 19, 36, 0.3); transition: transform 0.25s ease; }
.g-fan img:nth-child(1) { transform: translateX(-118%) rotate(-10deg); }
.g-fan img:nth-child(2) { transform: translateX(-50%) translateY(-6px); z-index: 1; }
.g-fan img:nth-child(3) { transform: translateX(18%) rotate(10deg); }
.g-fan:hover img:nth-child(1) { transform: translateX(-128%) rotate(-14deg); }
.g-fan:hover img:nth-child(3) { transform: translateX(28%) rotate(14deg); }
.g-fan figcaption { font-size: 13px; color: var(--ink-dim); }

/* Refining: a pill for the level, the chance as a bar. */
.g-table td { padding: 9px 14px; }
.g-level { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--g-night); color: var(--gold-2); font-weight: 500; font-size: 13.5px; white-space: nowrap; }
.g-chance { min-width: 190px; }
.g-chance b { font-weight: 500; font-size: 14px; }
.g-meter { display: block; height: 7px; border-radius: 7px; background: #e8eef6; overflow: hidden; margin: 2px 0 4px; max-width: 160px; }
.g-meter i { display: block; height: 100%; border-radius: 7px; }
.g-meter.high i { background: linear-gradient(90deg, #6fd39a, #2fae6b); }
.g-meter.mid i { background: linear-gradient(90deg, #f6d27a, #e0a63a); }
.g-meter.low i { background: linear-gradient(90deg, #f6a08f, #e05a4b); }

/* The classes: Wayfarer, then six paths of two. */
.g-tree { display: grid; grid-template-columns: 210px 1fr; gap: 18px; align-items: center; margin-top: 4px; }
.g-root { display: grid; justify-items: center; gap: 4px; padding: 20px 14px; border-radius: 20px; background: var(--g-night); color: #fff; text-align: center; box-shadow: 0 10px 24px rgba(12, 19, 36, 0.25); }
.g-root-faces { display: flex; }
.g-root-faces img { width: 74px; height: 74px; border-radius: 50%; border: 2px solid var(--g-gold); background: #26314f; object-fit: cover; }
.g-root-faces img + img { margin-left: -14px; }
.g-root strong { font-size: 19px; margin-top: 6px; color: var(--gold-2); }
.g-root span { font-size: 13px; opacity: 0.8; }
.g-paths ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; }
.g-paths li { display: grid; grid-template-columns: 1fr 26px 1fr; align-items: center; padding: 8px 10px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-soft); }
.g-cls { display: flex; align-items: center; gap: 10px; min-width: 0; }
.g-cls img { width: 46px; height: 46px; flex: none; border-radius: 50%; background: #eef3fa; border: 2px solid #ecdcae; object-fit: cover; }
.g-cls > span { display: grid; min-width: 0; line-height: 1.25; }
.g-cls b { font-weight: 500; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
.g-cls small i { font-style: normal; }
.g-cls small { font-size: 11.5px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-arrow { text-align: center; color: #b98b36; font-size: 22px; line-height: 1; }
.g-ends { margin-top: 18px; }
.g-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 30px 0 10px; }

@media (max-width: 1000px) {
  .g-steps { grid-template-columns: repeat(3, 1fr); }
  .g-steps li:not(:last-child)::after { display: none; }
  .g-split, .g-tree { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .g-hero { min-height: 0; }
  .g-hero-in { padding: 110px 20px 22px; }
  .g-hero::after { background: linear-gradient(0deg, rgba(6, 12, 26, 0.9) 0, rgba(6, 12, 26, 0.55) 60%, rgba(6, 12, 26, 0.15)); }
  .g-hero-in p:not(.kicker) { font-size: 15.5px; }
  .g-toc { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 14px 0 20px; padding: 10px; }
  .g-toc::-webkit-scrollbar { display: none; }
  .g-toc a { flex: none; }
  .g-part { padding: 20px 16px 22px; border-radius: 22px; }
  .g-badge { width: 48px; height: 48px; border-radius: 15px; }
  .g-badge .g-svg { width: 25px; height: 25px; }
  .g-steps { grid-template-columns: 1fr; }
  .g-steps li { grid-template-columns: 52px 1fr; column-gap: 14px; row-gap: 2px; padding: 14px; }
  .g-step-pic { grid-row: span 2; width: 52px; height: 52px; }
  .g-step-pic .g-svg { width: 26px; height: 26px; }
  .g-groups { grid-template-columns: 1fr; }
  .g-group { padding: 14px 12px; }
  .g-keys li { grid-template-columns: minmax(92px, 38%) 1fr; gap: 10px; padding: 8px 10px; font-size: 14px; }
  .guide kbd { min-width: 26px; padding: 2px 7px 3px; font-size: 12.5px; }
  .g-paths ol { grid-template-columns: 1fr; }
  .g-paths li { grid-template-columns: 1fr 18px 1fr; padding: 8px; }
  .g-cls { gap: 8px; }
  .g-cls img { width: 38px; height: 38px; }
  .g-cls b { font-size: 13.5px; }
  .g-cls small i { display: none; }
  .g-table table { font-size: 13.5px; }
  .g-meter { max-width: 80px; }
  .g-level { font-size: 12.5px; padding: 2px 8px; }
  .g-fan div { height: 230px; }
  .g-fan img { width: 124px; height: 186px; }
  .g-chance { min-width: 0; width: 92px; }
  .g-table td, .g-table th { padding: 8px 10px; }
}

/* ---- Life on the page (2026-12-02, the owner: "เพิ่มความสวยงามและ effect ให้กับ website ให้ดูมีชีวิตชีวา"). The key art
   breathes and drifts behind the words as you scroll, a few motes of light rise through the hero and the last call (few,
   like the game's ambient effects), the logo's moon glows and a glint crosses its letters now and then, the gold buttons
   catch a sweep of light, parts rise into place as they come into view, and pictures lean toward the pointer. The script
   at the foot of every page adds .motion to <html>; without it (or with reduced motion asked for) nothing hides or moves. */

@keyframes ld-breathe { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.09) translate3d(-1.2%, -0.8%, 0); } }
@keyframes ld-rise { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }
@keyframes ld-pop { from { opacity: 0; transform: scale(0.92); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes ld-glow { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes ld-halo { 0%, 100% { opacity: 0.35; transform: scale(1); } 50% { opacity: 0.9; transform: scale(1.12); } }
@keyframes ld-sweep { 0% { transform: translateX(-130%) skewX(-20deg); } 100% { transform: translateX(260%) skewX(-20deg); } }
@keyframes ld-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -7px, 0); } }
@keyframes ld-aurora { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes ld-shimmer { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }

.motion-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hero .hero-shade { z-index: 0; }
.hero-in, .hero > .wrap { position: relative; z-index: 2; }
.call-in { z-index: 2; }
.progress { position: fixed; left: 0; top: 0; z-index: 40; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #f4dc9a, #d9ae55, #b6a5f2); box-shadow: 0 0 8px rgba(217, 174, 85, 0.6); pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
  /* The hero: the art breathes; the parallax moves its frame (--lift is set by the script while the hero is in sight). */
  .motion .hero picture { position: absolute; inset: 0; display: block; transform: translate3d(0, var(--lift, 0px), 0); will-change: transform; }
  .motion .hero-art { animation: ld-breathe 26s ease-in-out infinite alternate; transform-origin: 62% 40%; }
  .motion .call-art { animation: ld-breathe 30s ease-in-out infinite alternate-reverse; transform-origin: 30% 30%; }
  .motion .hero-mark { animation: ld-pop 1.1s cubic-bezier(.2, .8, .2, 1) both; }
  .motion .hero-title, .motion .hero-text, .motion .hero-buttons, .motion .platforms, .motion .features { animation: ld-rise 0.9s cubic-bezier(.2, .8, .2, 1) both; }
  .motion .hero-title { animation-delay: 0.25s; }
  .motion .hero-text { animation-delay: 0.4s; }
  .motion .hero-buttons { animation-delay: 0.55s; }
  .motion .platforms { animation-delay: 0.7s; }
  .motion .features { animation-delay: 0.85s; }
  .motion .feature svg { animation: ld-float 5s ease-in-out infinite; }
  .motion .feature:nth-child(2) svg { animation-delay: -1s; }
  .motion .feature:nth-child(3) svg { animation-delay: -2s; }
  .motion .feature:nth-child(4) svg { animation-delay: -3s; }
  .motion .feature:nth-child(5) svg { animation-delay: -4s; }
  .feature { transition: background 0.25s ease; border-radius: 999px; }
  .feature:hover { background: rgba(255, 255, 255, 0.08); }

  /* The logo's moon: its ring breathes and the disc glows. */
  .logo .moon-halo { transform-box: fill-box; transform-origin: center; animation: ld-halo 4.5s ease-in-out infinite; }
  .logo .moon-disc { animation: ld-glow 4.5s ease-in-out infinite; }
  .logo.big .moon-disc { filter: drop-shadow(0 0 6px rgba(255, 226, 150, 0.9)); }

  /* Gold buttons: a sweep of light on hover, and now and then on the hero's big one by itself. */
  .button.violet, .button.dark { position: relative; overflow: hidden; isolation: isolate; }
  .button.violet::after, .button.dark::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: 0; width: 38%; z-index: -1; pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0)); transform: translateX(-130%) skewX(-20deg); }
  .button.violet:hover::after, .button.dark:hover::after { animation: ld-sweep 0.8s ease; }
  .motion .hero-buttons .button.violet::after, .motion .call .button.violet::after { animation: ld-sweep 1.1s ease 2.2s; }
  .motion .hero-buttons .button.violet.shine::after, .motion .call .button.violet.shine::after { animation: ld-sweep 1.1s ease; }
  .button.violet:active, .button.dark:active { transform: translateY(1px) scale(0.98); }

  /* Things that rise into place as they come into view (.rv set by the script, .in when seen; --i staggers a row). */
  .motion .rv { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity 0.8s cubic-bezier(.2, .8, .2, 1), transform 0.8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
  .motion .rv.in { opacity: 1; transform: none; }
  .motion .rv.in.done { transition-delay: 0s; }
  .motion .rv-zoom { transform: scale(0.94); }
  .motion .rv-left { transform: translate3d(-34px, 0, 0); }
  .motion .rv-right { transform: translate3d(34px, 0, 0); }

  /* Headings' coloured words: a slow sheen of sky into lavender. */
  .band .serif em, .call h2 em { background: linear-gradient(90deg, var(--blue-deep), #7c5cf0, var(--blue), var(--blue-deep)); background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; animation: ld-shimmer 8s linear infinite; }
  .call h2 em { filter: none; }

  /* How to play: the dark panel's lights drift; the sketches float. */
  .how-dark .wrap::before { content: ""; position: absolute; inset: -40%; z-index: 0; pointer-events: none; opacity: 0.55;
    background: radial-gradient(closest-side, rgba(124, 92, 240, 0.35), transparent) 20% 30% / 50% 50% no-repeat, radial-gradient(closest-side, rgba(95, 191, 224, 0.25), transparent) 80% 70% / 45% 45% no-repeat;
    animation: ld-aurora 22s ease-in-out infinite; background-size: 140% 140%; }
  .how-dark .wrap > * { position: relative; z-index: 1; }
  .pillar-art { animation: ld-float 6s ease-in-out infinite; }
  .pillar:nth-child(2) .pillar-art { animation-delay: -2s; }
  .pillar:nth-child(3) .pillar-art { animation-delay: -4s; }

  /* Pictures that lean toward the pointer (the script sets --rx/--ry and --gx/--gy for the glare). */
  .tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, var(--ty, 0px), 0); transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s ease; }
  .tilt.tilting { transition: transform 0.08s linear, box-shadow 0.35s ease; --ty: -4px; box-shadow: 0 22px 48px rgba(14, 32, 58, 0.25); }
  .tilt::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity 0.3s ease;
    background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.28), transparent 45%); }
  .tilt.tilting::before { opacity: 1; }

  /* The classes: the two faces of a path part a little on hover; the card lifts. */
  .path { transition: transform 0.25s ease, box-shadow 0.25s ease; }
  .path:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .path .faces img { transition: transform 0.3s cubic-bezier(.2, .8, .2, 1), margin 0.3s cubic-bezier(.2, .8, .2, 1); }
  .path:hover .faces img:first-child { transform: rotate(-6deg); }
  .path:hover .faces img + img { margin-left: -4px; transform: rotate(6deg); }
  .wiki-tiles .wiki-tile:hover img, .g-tile:hover img { animation: ld-float 1.6s ease-in-out infinite; }
  .wiki-tiles .wiki-tile:hover { transform: translateY(-3px); }
}
.logo-shine { pointer-events: none; mix-blend-mode: screen; }
@media (prefers-reduced-motion: reduce) { .logo-shine { display: none; } }
.band .serif em, .call h2 em { text-shadow: none; }
/* What slides in from the side must not make the page scroll sideways (clip, unlike hidden, keeps the sticky bar). */
html, body { overflow-x: clip; }

/* ---- Community (2026-12-02, the owner: Discord and Facebook on the home page "ให้เด่นๆ ทำให้สวยๆให้คนกดเข้าร่วมได้ง่ายๆ", and
   the foot's links set out anew): two big cards in the communities' own colours, small pills under the hero's buttons,
   and a foot of titled columns with round marks. ------------------------------------------------------------------ */
:root { --discord: #5865f2; --discord-deep: #3c45c9; --facebook: #1877f2; --facebook-deep: #0b5bc4; }
.brand-mark { width: 1em; height: 1em; flex: none; display: block; }

.hero-social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.hero-social > span { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); text-shadow: 0 1px 8px rgba(14, 32, 58, 0.6); margin-right: 2px; }
.social.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border-radius: 999px; text-decoration: none; color: #fff; font-size: 14.5px; font-weight: 500;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.55); backdrop-filter: blur(8px); transition: background 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.social.pill .brand-mark { font-size: 19px; }
.social.pill.discord:hover { background: var(--discord); border-color: var(--discord); box-shadow: 0 8px 22px rgba(88, 101, 242, 0.5); transform: translateY(-1px); }
.social.pill.facebook:hover { background: var(--facebook); border-color: var(--facebook); box-shadow: 0 8px 22px rgba(24, 119, 242, 0.5); transform: translateY(-1px); }

.community-band { padding-top: 34px; }
.community-head { text-align: center; max-width: 640px; margin: 0 auto 26px; }
.community-head h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 10px; }
.community-head .muted { margin: 0; }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.join-card { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 18px 20px; align-items: center;
  padding: 28px 28px 26px; border-radius: 24px; color: #fff; text-decoration: none; min-height: 210px;
  box-shadow: 0 18px 40px rgba(20, 30, 90, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.25); transition: transform 0.25s cubic-bezier(.2, .8, .2, 1), box-shadow 0.25s; }
.join-card.discord { background: radial-gradient(120% 140% at 0% 0%, #7b86ff 0, var(--discord) 45%, var(--discord-deep) 100%); }
.join-card.facebook { background: radial-gradient(120% 140% at 0% 0%, #4c9bff 0, var(--facebook) 45%, var(--facebook-deep) 100%); }
.join-card:hover { transform: translateY(-4px); }
.join-card.discord:hover { box-shadow: 0 24px 50px rgba(88, 101, 242, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.join-card.facebook:hover { box-shadow: 0 24px 50px rgba(24, 119, 242, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.join-ghost { position: absolute; right: -34px; bottom: -46px; z-index: -1; font-size: 220px; color: rgba(255, 255, 255, 0.1); transform: rotate(-12deg); transition: transform 0.6s cubic-bezier(.2, .8, .2, 1); }
.join-card:hover .join-ghost { transform: rotate(-4deg) scale(1.06); }
.join-mark { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; font-size: 42px;
  background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 20px rgba(0, 0, 0, 0.12); }
.join-text { display: grid; gap: 4px; }
.join-text strong { font-size: 26px; font-weight: 700; line-height: 1.15; }
.join-text > span { font-size: 15.5px; font-weight: 300; opacity: 0.95; }
.join-link { font-style: normal; font-size: 13px; opacity: 0.75; letter-spacing: 0.02em; }
.join-go { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
  background: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16); transition: transform 0.2s, box-shadow 0.2s; }
.join-card.discord .join-go { color: var(--discord-deep); }
.join-card.facebook .join-go { color: var(--facebook-deep); }
.join-card:hover .join-go { transform: translateX(3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22); }

.foot { padding: 46px 0 22px; }
.foot-in { grid-template-columns: minmax(200px, 1.4fr) repeat(4, auto); justify-content: space-between; gap: 28px 40px; }
.foot-brand .foot-tag { max-width: 260px; }
.foot-play { margin-top: 16px; }
.foot-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.foot-col h3 { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-gilt); margin: 4px 0 10px; }
.foot-col a { text-decoration: none; font-size: 14.5px; color: rgba(255, 255, 255, 0.8); padding: 3px 0; transition: color 0.2s, transform 0.2s; width: fit-content; max-width: 100%; }
.foot-col a:hover { color: var(--slate-gilt); transform: translateX(2px); }
.foot-mail { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.foot-mail .brand-mark { font-size: 16px; opacity: 0.8; }
.foot-rounds { display: flex; gap: 10px; }
.social.round { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; color: #fff; padding: 0;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); transition: background 0.2s, transform 0.2s, border-color 0.2s; }
.social.round span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.social.round:hover { transform: translateY(-2px); color: #fff; }
.social.round.discord:hover { background: var(--discord); border-color: var(--discord); }
.social.round.facebook:hover { background: var(--facebook); border-color: var(--facebook); }
.foot-base { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); }

@media (max-width: 1000px) {
  .foot-in { grid-template-columns: repeat(4, auto); }
  .foot-brand { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
  .foot-brand .foot-tag { margin: 0; max-width: none; flex: 1 1 220px; }
  .foot-play { margin: 0; }
}
@media (max-width: 800px) {
  .join-grid { grid-template-columns: 1fr; gap: 16px; }
  .join-card { min-height: 0; padding: 22px 20px 20px; }
  .join-mark { width: 62px; height: 62px; font-size: 34px; border-radius: 18px; }
  .join-text strong { font-size: 22px; }
  .join-go { justify-self: stretch; justify-content: center; }
  .foot-in { grid-template-columns: 1fr 1fr; justify-content: stretch; gap: 26px 20px; }
}
@media (max-width: 560px) {
  .foot-mail { font-size: 13.5px; }
  .foot-mail .brand-mark { display: none; }
  .hero-social { justify-content: center; }
  .hero-social > span { width: 100%; text-align: center; margin: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .motion .hero-social { animation: ld-rise 0.9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: 0.85s; }
}

/* ---- The closed beta soon and what is still to come (2026-12-03): a gold badge in the hero, a dark panel with the
   community's buttons, and four cards like the end game's with a tag that they are being made. ------------------------- */
.obt-badge { display: inline-flex; align-items: center; gap: 9px; margin: 14px 0 2px; padding: 6px 16px 6px 12px; border-radius: 999px; text-decoration: none;
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: #3b2a07; background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 6px 18px rgba(217, 174, 85, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.obt-badge:hover { text-decoration: none; transform: translateY(-1px); }
.obt-badge i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: obt-pulse 2s ease-out infinite; }
@keyframes obt-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.85); } 75%, 100% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } }
.coming-band { padding-top: 10px; }
.obt-panel { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 44px; padding: 32px 36px;
  border-radius: 24px; color: #fff; border: 1px solid rgba(244, 220, 154, 0.6); box-shadow: var(--shadow);
  background: linear-gradient(115deg, rgba(10, 18, 34, 0.94) 0%, rgba(30, 26, 78, 0.9) 55%, rgba(90, 61, 214, 0.78) 100%), url(/img/key-call.jpg) center 40% / cover no-repeat; }
.obt-copy { max-width: 640px; }
.obt-chip { display: inline-block; margin: 0 0 10px; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  color: #3b2a07; background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.obt-panel h2 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 38px); color: #fff; }
.obt-panel h2 em, .motion .obt-panel h2 em { background: none; -webkit-text-fill-color: var(--gold-2); color: var(--gold-2); animation: none; font-style: normal; }
.obt-panel p { margin: 0; color: rgba(255, 255, 255, 0.88); }
.obt-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }
.coming-card .soon-tag { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
  color: #fff; background: rgba(90, 61, 214, 0.82); border: 1px solid rgba(255, 255, 255, 0.65); backdrop-filter: blur(6px); }
.coming-card .end-text { background: linear-gradient(180deg, transparent, rgba(6, 12, 26, 0.62) 38%, rgba(6, 12, 26, 0.92)); }
@media (max-width: 760px) {
  .obt-panel { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) { .obt-badge i { animation: none; } }
@media (prefers-reduced-motion: no-preference) { .motion .obt-badge { animation: ld-rise 0.9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: 0.15s; } }
