/* lullaby-game.com home page (game hub).
   Light page (user: white theme) + dark fantasy hero / heroes band / footer, gold accents from the game logo. */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --line: #e3e8f3;
  --navy: #13224d;
  --navy-900: #070e24;
  --navy-800: #0b1533;
  --ink: #1d2540;
  --ink-2: #5a6482;
  --gold: #e8b84a;
  --gold-hi: #ffe39a;
  --gold-lo: #9c6c16;
  --radius: 16px;
  --wrap: 1160px;
  --top: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--top); }
body {
  overflow-x: hidden; margin: 0;
  font: 400 17px/1.7 "Sarabun", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  color: var(--ink); background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
button { font: inherit; }
h1, h2, h3, .btn { font-family: "Kanit", "Sarabun", system-ui, sans-serif; font-weight: 600; line-height: 1.3; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap > * { min-width: 0; }
.narrow { max-width: 800px; }
.muted { color: var(--ink-2); font-size: 15px; }
.nw { white-space: nowrap; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: var(--top); gap: 16px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink-2); text-decoration: none; font: 600 16px "Kanit", sans-serif; position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.nav a:hover { color: var(--navy); }
.nav a:hover::after { transform: scaleX(1); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
@media (max-width: 760px) {
  .menu-btn { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--top);
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(19, 34, 77, .12); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--line); font-size: 17px; }
  .nav a::after { display: none; }
  html:not(.js) .nav { position: static; display: flex; flex-direction: row; flex-wrap: wrap; box-shadow: none; }
}

/* ---------- hero (dark, full screen) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(calc(100svh - var(--top)), 880px);
  display: flex; align-items: center; justify-content: center;
  padding: 56px 0 96px; color: #fff; background: var(--navy-900);
}
.hero-bg { position: absolute; inset: -20px; z-index: -3; background-size: cover; background-position: center 40%; filter: saturate(1.1); animation: drift 30s ease-in-out infinite alternate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(7, 14, 36, .25), rgba(7, 14, 36, .75) 70%),
    linear-gradient(180deg, rgba(7, 14, 36, .35) 0%, rgba(7, 14, 36, .55) 55%, var(--navy-900) 100%);
}
.hero-pattern {
  position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; mix-blend-mode: screen; opacity: .85;
  /* keep the logo area clear so the logo stays crisp */
  -webkit-mask-image: radial-gradient(ellipse 34% 30% at 50% 30%, transparent 40%, #000 100%);
          mask-image: radial-gradient(ellipse 34% 30% at 50% 30%, transparent 40%, #000 100%);
}
.hero-in { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-logo { width: min(620px, 92%); filter: drop-shadow(0 0 2px rgba(0, 0, 0, .9)) drop-shadow(0 10px 30px rgba(0, 0, 0, .7)); animation: rise .9s ease-out both; }
.hero-in::before { content: ""; position: absolute; left: 50%; top: 0; width: min(760px, 100%); height: 60%; transform: translateX(-50%); z-index: -1; background: radial-gradient(ellipse at 50% 45%, rgba(7, 14, 36, .55), transparent 70%); pointer-events: none; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0 14px; }
.badge-beta { background: linear-gradient(180deg, #3a7bff, #2456c9) !important; border-color: #9cc0ff !important; color: #fff !important; }
.beta-note { margin: 14px 0 0; font-size: 14px; color: #dfe5f5; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.badge {
  margin: 0; padding: 5px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 227, 154, .7); background: rgba(7, 14, 36, .55);
  color: var(--gold-hi); font: 600 15px "Kanit", sans-serif; letter-spacing: .02em;
}
.hero h1 { margin: 0 0 10px; font-size: clamp(26px, 4.2vw, 46px); font-weight: 700; text-shadow: 0 3px 16px rgba(0, 0, 0, .7); }
.lead { margin: 0 0 26px; max-width: 640px; font-size: 18px; color: #e6eaf7; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.pill-soon {
  padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: #c9cfe0; background: rgba(255, 255, 255, .08); border: 1px dashed rgba(255, 255, 255, .3);
}
.hero-char { position: absolute; bottom: 0; z-index: 1; width: min(34vw, 470px); filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .55)); pointer-events: none; }
.hero-char-l { left: max(-2vw, calc(50% - 760px)); animation: float 6s ease-in-out infinite; }
.hero-char-r { right: max(-2vw, calc(50% - 760px)); animation: float 6s ease-in-out -3s infinite; }
@media (max-width: 1100px) { .hero-char { width: 30vw; opacity: .55; } }
@media (max-width: 760px) {
  .hero { min-height: min(calc(92svh - var(--top)), 760px); padding: 36px 0 84px; }
  .hero-char { width: 52vw; opacity: .35; }
  .hero-char-l { left: -18vw; } .hero-char-r { right: -18vw; }
  .lead { font-size: 16px; }
  .scroll-hint { display: none; }
}
.scroll-hint { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 14px; z-index: 2; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-hi); animation: wheel 1.8s ease-in-out infinite; }

/* sparkles */
.sparkles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sparkles i { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 8px 2px rgba(255, 227, 154, .8); opacity: 0; animation: spark 9s linear infinite; }
.sparkles i:nth-child(3n) { width: 3px; height: 3px; background: #bfe0ff; box-shadow: 0 0 8px 2px rgba(150, 200, 255, .8); }
.sparkles i:nth-child(1) { left: 43%; animation-delay: -8.5s; animation-duration: 9.4s; }
.sparkles i:nth-child(2) { left: 8%; animation-delay: -0.7s; animation-duration: 10.2s; }
.sparkles i:nth-child(3) { left: 48%; animation-delay: -5.2s; animation-duration: 12.5s; }
.sparkles i:nth-child(4) { left: 29%; animation-delay: -0.3s; animation-duration: 9.6s; }
.sparkles i:nth-child(5) { left: 10%; animation-delay: -2.2s; animation-duration: 10.3s; }
.sparkles i:nth-child(6) { left: 9%; animation-delay: -7.4s; animation-duration: 7.7s; }
.sparkles i:nth-child(7) { left: 30%; animation-delay: -5.7s; animation-duration: 10.5s; }
.sparkles i:nth-child(8) { left: 9%; animation-delay: -5.2s; animation-duration: 9.4s; }
.sparkles i:nth-child(9) { left: 30%; animation-delay: -0.4s; animation-duration: 12.2s; }
.sparkles i:nth-child(10) { left: 39%; animation-delay: -3.8s; animation-duration: 10.2s; }
.sparkles i:nth-child(11) { left: 75%; animation-delay: -2.8s; animation-duration: 11.9s; }
.sparkles i:nth-child(12) { left: 25%; animation-delay: -0.9s; animation-duration: 10.4s; }
.sparkles i:nth-child(13) { left: 26%; animation-delay: -3.4s; animation-duration: 10.3s; }
.sparkles i:nth-child(14) { left: 10%; animation-delay: -5.1s; animation-duration: 10.7s; }
.sparkles i:nth-child(15) { left: 65%; animation-delay: -6.1s; animation-duration: 9.6s; }
.sparkles i:nth-child(16) { left: 42%; animation-delay: -4.2s; animation-duration: 12.5s; }
.sparkles i:nth-child(17) { left: 48%; animation-delay: -2.7s; animation-duration: 11.8s; }
.sparkles i:nth-child(18) { left: 91%; animation-delay: -7.0s; animation-duration: 7.5s; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 8px 22px; border-radius: 14px; text-decoration: none; font-size: 18px; transition: transform .15s, box-shadow .2s, filter .2s; }
.btn small { display: block; font: 600 12px/1.2 "Sarabun", system-ui, sans-serif; opacity: .85; }
.btn span { text-align: left; line-height: 1.15; }
.btn-play {
  color: #2a1700;
  background: linear-gradient(180deg, #fff1b8 0%, var(--gold-hi) 18%, var(--gold) 55%, #d98a1c 100%);
  box-shadow: 0 0 0 2px #fff6d6 inset, 0 0 0 1px #b57a16, 0 8px 24px rgba(232, 160, 40, .45);
}
a.btn-play:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 0 0 2px #fff6d6 inset, 0 0 0 1px #b57a16, 0 12px 32px rgba(232, 160, 40, .6); }
.btn-lg { min-height: 66px; padding: 10px 30px; font-size: 22px; border-radius: 16px; animation: glow 2.6s ease-in-out infinite; }
.btn-lg .play-ico { width: 38px; height: 38px; }
.btn-sm { min-height: 46px; padding: 6px 16px; font-size: 16px; }
.btn-sm .play-ico { width: 26px; height: 26px; }
.btn-line { color: var(--navy); border: 1px solid #c9d1e4; background: #fff; }
.btn-line:hover { border-color: var(--gold); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.hero .btn:focus-visible { outline-color: #fff; }
.is-soon { cursor: default; }
.play-ico { flex: none; background: #fff; border-radius: 8px; padding: 3px; width: 32px; height: 32px; }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.h2 { margin: 0 0 32px; font-size: clamp(26px, 3.2vw, 36px); color: var(--navy); display: flex; align-items: center; gap: 16px; }
.h2::before { content: ""; width: 10px; height: 10px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--gold); flex: none; }
.h2::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
.h2-light { color: #fff; }
.h2-light::before { box-shadow: 0 0 0 3px var(--navy-800), 0 0 0 4px var(--gold); }
.h2-row { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.h2-row .h2 { margin: 0; flex: 1; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 2px 12px rgba(19, 34, 77, .05); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(19, 34, 77, .12); }
.card h3 { margin: 10px 0 6px; font-size: 19px; color: var(--navy); }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* reveal (only when JS runs) */
/* visible by default; JS adds .pre only to blocks below the first screen, then removes it when they scroll in */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.reveal.pre { opacity: 0; transform: translateY(24px); }

/* ---------- games (hub) ---------- */
.games { display: grid; gap: 22px; grid-template-columns: 2fr 1fr 1fr; }
.game-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 22px rgba(19, 34, 77, .08); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.game-card:not(.is-soon):hover { transform: translateY(-6px); box-shadow: 0 0 0 2px var(--gold), 0 20px 40px rgba(19, 34, 77, .18); }
.game-art { display: block; overflow: hidden; aspect-ratio: 1024 / 500; }
.game-art img { width: 100%; transition: transform .5s; }
.game-card:hover .game-art img { transform: scale(1.04); }
.game-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.game-head { display: flex; gap: 14px; align-items: center; }
.game-icon { border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.game-card h3 { margin: 0; font-size: 22px; color: var(--navy); }
.game-meta { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.game-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.game-card.is-soon { background: linear-gradient(160deg, #1a2550, var(--navy-900)); border-color: #26335f; color: #fff; }
.game-card.is-soon h3 { color: #fff; }
.game-card.is-soon .game-meta { color: var(--gold-hi); }
.soon-art { flex: 1; min-height: 160px; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(232, 184, 74, .25), transparent 60%); }
.soon-art span { font: 700 72px/1 "Kanit", sans-serif; color: rgba(255, 227, 154, .85); text-shadow: 0 0 24px rgba(232, 184, 74, .7); animation: pulse 3s ease-in-out infinite; }
@media (max-width: 900px) { .games { grid-template-columns: 1fr 1fr; } .games .game-card:first-child { grid-column: 1 / -1; } .soon-art { min-height: 120px; } }

/* ---------- game detail ---------- */
.game-intro { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 40px; }
.game-intro img { width: min(380px, 80%); }
.game-intro p { max-width: 620px; margin: 8px 0 0; color: var(--ink-2); font-size: 18px; }
.rows { display: grid; gap: 56px; }
.row { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; max-width: 900px; margin: 0 auto; width: 100%; }
.row.is-flip { grid-template-columns: 1fr 300px; }
.row.is-flip .row-img { order: 2; }
.row-img img { border-radius: 22px; aspect-ratio: 9 / 16; object-fit: cover; box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line), 0 24px 48px rgba(19, 34, 77, .2); }
.row-ico { width: 96px; height: 96px; filter: drop-shadow(0 6px 14px rgba(19, 34, 77, .25)); }
.row-text h3 { margin: 10px 0 8px; font-size: clamp(24px, 3vw, 32px); color: var(--navy); }
.row-text p { margin: 0; font-size: 18px; color: var(--ink-2); }
@media (max-width: 760px) {
  .row, .row.is-flip { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .row.is-flip .row-img { order: 0; }
  .row-img img { width: min(240px, 70%); margin: 0 auto; }
  .row-ico { margin: 0 auto; width: 80px; height: 80px; }
}
.extras { list-style: none; margin: 64px 0 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.x-img { width: 64px; height: 64px; }
.x-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2b3d7a, var(--navy-800)); box-shadow: 0 0 0 3px var(--gold), 0 6px 14px rgba(19, 34, 77, .25); fill: var(--gold-hi); }

/* ---------- heroes (dark band, colour by element) ---------- */
.heroes { --el: #e4572e; position: relative; overflow: hidden; color: #fff; background: var(--navy-800); transition: background .4s; }
.heroes::before { content: ""; position: absolute; inset: 0; background: var(--pattern) center / cover no-repeat; mix-blend-mode: screen; pointer-events: none; }
.heroes::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 55%, color-mix(in srgb, var(--el) 55%, transparent), transparent 60%); pointer-events: none; transition: background .4s; }
.heroes .wrap { position: relative; z-index: 1; }
.heroes[data-el="fire"] { --el: #e4572e; }
.heroes[data-el="water"] { --el: #2f80ed; }
.heroes[data-el="earth"] { --el: #3fa45b; }
.heroes[data-el="thunder"] { --el: #e7b416; }
.heroes[data-el="light"] { --el: #f5d77a; }
.heroes[data-el="dark"] { --el: #8a5cf5; }
.el-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.el-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; font: 600 16px "Kanit", sans-serif; cursor: pointer; transition: background .2s, border-color .2s, transform .15s; }
.el-tab:hover { transform: translateY(-2px); border-color: var(--gold); }
.el-tab[aria-selected="true"] { background: rgba(255, 255, 255, .16); border-color: var(--gold-hi); box-shadow: 0 0 16px rgba(255, 227, 154, .35); }
.el-tab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.el-tab i { width: 12px; height: 12px; border-radius: 50%; }
.dot-fire { background: #e4572e; } .dot-water { background: #2f80ed; } .dot-earth { background: #3fa45b; }
.dot-thunder { background: #e7b416; } .dot-light { background: #fff1c2; } .dot-dark { background: #8a5cf5; }
.hero-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; min-height: 420px; animation: fade .4s ease; }
.hero-panel[hidden] { display: none; }
.hero-panel img { max-height: 460px; width: auto; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .5)); }
.el-name { margin: 0; color: var(--gold-hi); font: 600 16px "Kanit", sans-serif; letter-spacing: .05em; }
.hero-info h3 { margin: 4px 0 12px; font-size: clamp(40px, 6vw, 64px); font-weight: 700; text-shadow: 0 4px 20px rgba(0, 0, 0, .5); }
.quote { margin: 0; font-size: 20px; color: #e6eaf7; }
.heroes-note { margin: 24px 0 0; color: #c9cfe0; }
@media (max-width: 760px) {
  .hero-panel { grid-template-columns: 1fr; text-align: center; min-height: 0; gap: 8px; }
  .hero-panel img { max-height: 300px; }
  .el-tabs { justify-content: center; }
  .el-tab { padding: 9px 14px; }
}

/* ---------- screenshots ---------- */
.slide-nav { display: flex; gap: 8px; }
.slide-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 26px; line-height: 1; cursor: pointer; transition: border-color .2s, transform .15s; }
.slide-btn:hover { border-color: var(--gold); transform: translateY(-2px); }
.screens { display: grid; grid-auto-flow: column; grid-auto-columns: 260px; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; scrollbar-width: thin; }
.screens figure { margin: 0; scroll-snap-align: start; }
.shot { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 22px; transition: transform .2s; }
.shot:hover { transform: translateY(-4px); }
.shot img { border-radius: 22px; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; box-shadow: 0 0 0 5px var(--navy-800), 0 16px 32px rgba(19, 34, 77, .22); }
.shot:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }
@media (max-width: 760px) { .screens { grid-auto-columns: 64%; } }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(7, 14, 36, .88); }
.lightbox img { max-height: 90vh; width: auto; border-radius: 18px; }
.lb-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(7, 14, 36, .75); color: #fff; font-size: 28px; cursor: pointer; }

/* ---------- news ---------- */
.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 16px rgba(19, 34, 77, .07); transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--gold), 0 16px 32px rgba(19, 34, 77, .14); }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-body { padding: 16px 20px 20px; }
.news-meta { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 14px; color: var(--ink-2); }
.tag { padding: 1px 10px; border-radius: 999px; background: var(--navy); color: var(--gold-hi); font-weight: 600; font-size: 13px; }
.news-body h3 { margin: 0 0 6px; font-size: 20px; color: var(--navy); }
.news-body p { margin: 0; color: var(--ink-2); font-size: 16px; }
.news-body .news-more { margin-top: 10px; }
.news-body h3 a { color: inherit; text-decoration: none; }
.news-body h3 a:hover { text-decoration: underline; }
.news-more a { font-weight: 600; color: var(--navy); }
.news-article .news-meta { margin-top: 4px; }
.news-hero { margin: 8px 0 20px; }
.news-hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.news-lead { font-size: 18px; color: var(--ink); }
.news-sec h2 { margin: 28px 0 8px; font-size: 22px; color: var(--navy); }
.news-sec p, .news-sec li { color: var(--ink-2); }
.news-sec ul { margin: 8px 0 0; padding-left: 22px; }
.news-sec li + li { margin-top: 6px; }

/* ---------- faq ---------- */
.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font: 600 18px/1.4 "Kanit", "Sarabun", system-ui, sans-serif; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-lo); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 10px 0 0; color: var(--ink-2); }

/* ---------- footer (dark) ---------- */
.footer { background: var(--navy-900); color: #c9cfe0; padding: 56px 0 24px; border-top: 3px solid var(--gold); }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.f-brand img { height: 60px; width: auto; }
.f-brand p { margin: 10px 0 0; font-size: 15px; }
.f-col { display: flex; flex-direction: column; gap: 8px; }
.f-col h3 { margin: 0 0 4px; color: var(--gold-hi); font-size: 16px; }
.f-col a { color: #e6eaf7; text-decoration: none; font-size: 15px; }
.f-col a:hover { color: var(--gold-hi); text-decoration: underline; }
.f-legal { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #8f98b6; }
@media (max-width: 760px) { .footer-in { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }

/* ---------- sticky Play bar (mobile) ---------- */
.sticky-play { display: none; }
@media (max-width: 760px) {
  .sticky-play {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px rgba(19, 34, 77, .1);
    transform: translateY(110%); transition: transform .25s;
  }
  .sticky-play.is-on { transform: none; }
  .footer { padding-bottom: 96px; }
}

/* ---------- animations ---------- */
@keyframes drift { from { transform: scale(1.06) translateX(-1%); } to { transform: scale(1.12) translateX(1%); } }
@keyframes rise { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spark { 0% { opacity: 0; transform: translateY(0) scale(.6); } 10% { opacity: 1; } 80% { opacity: .8; } 100% { opacity: 0; transform: translateY(-85vh) scale(1.1); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 2px #fff6d6 inset, 0 0 0 1px #b57a16, 0 8px 24px rgba(232, 160, 40, .45); } 50% { box-shadow: 0 0 0 2px #fff6d6 inset, 0 0 0 1px #b57a16, 0 8px 40px rgba(255, 200, 80, .85); } }
@keyframes pulse { 0%, 100% { opacity: .65; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes fade { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.pre { opacity: 1; transform: none; }
  .sparkles { display: none; }
}

/* placeholders while lazy images load (slow mobile networks) */
.row-img img, .news-card img, .game-art { background: linear-gradient(135deg, #1a2550, #0b1533); }
.shot img { background: linear-gradient(135deg, #1a2550, #0b1533); }
.hero-panel img { min-height: 200px; }

/* ---------- /rates (summon odds) ---------- */
.rates-page { padding-top: 40px; }
.crumb { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.crumb a { color: var(--ink-2); }
.rates-lead { margin: -16px 0 32px; color: var(--ink-2); }
.gate { margin: 0 0 40px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.gate-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 16px; }
.gate-head h2 { margin: 0; font-size: 24px; color: var(--navy); }
.gate-cost { margin: 0; color: var(--ink-2); font-size: 15px; }
.tier-sum { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.tier-sum li { display: flex; flex-direction: column; align-items: center; padding: 14px 8px; border-radius: 12px; background: var(--bg-soft); }
.tier-sum b { font: 700 30px/1.1 "Kanit", sans-serif; color: var(--navy); }
.tier-sum small { color: var(--ink-2); font-size: 14px; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 18px; }
.pity { margin: 0 0 20px; padding: 14px 16px 14px 36px; border-radius: 12px; background: #fff8e6; border: 1px solid #f1dca4; }
.pity li { margin: 4px 0; }
.table-wrap { overflow-x: auto; margin-top: 16px; }
.rate-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.rate-table caption { text-align: left; padding: 0 0 8px; font: 600 17px "Kanit", sans-serif; color: var(--navy); }
.rate-table th, .rate-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.rate-table th { font-weight: 600; color: var(--ink-2); background: var(--bg-soft); }
.rate-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.rates-note { margin-top: 8px; }
@media (max-width: 760px) { .gate { padding: 18px 14px; } .rate-table th, .rate-table td { padding: 9px 8px; } }
.rate-table { table-layout: fixed; }
.rate-table th:nth-child(1) { width: 52%; }
.rate-table th:nth-child(3) { width: 24%; }
.dot { box-shadow: 0 0 0 1px rgba(19, 34, 77, .25); }
.tier-sum { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.rate-table td:nth-child(2) { white-space: nowrap; }
@media (max-width: 760px) { .rate-table th:nth-child(1) { width: 46%; } .rate-table th:nth-child(3) { width: 22%; } .tier-sum b { font-size: 26px; } }
.faq-more { margin: 20px 0 0; text-align: center; }

/* ---------- /raid ---------- */
.raid-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; margin-bottom: 56px; }
.raid-intro .row-ico { width: 72px; height: 72px; }
.raid-intro .h2 { margin: 8px 0 8px; }
.raid-lead { font: 600 22px "Kanit", sans-serif; color: var(--navy); margin: 0 0 12px; }
.raid-intro .cta { margin-top: 20px; }
.raid-shot { margin: 0; }
.raid-shot img { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; border-radius: var(--radius); box-shadow: 0 0 0 3px var(--gold), 0 18px 40px rgba(19, 34, 77, .25); }
.raid-steps { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.raid-steps li { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.raid-steps b { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-hi); font: 700 18px "Kanit", sans-serif; }
.raid-steps h3, .raid-spots h3 { margin: 0 0 4px; font-size: 18px; color: var(--navy); }
.raid-steps p, .raid-spots p { margin: 0; color: var(--ink-2); font-size: 15px; }
.raid-spots { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.raid-spots li { padding: 16px; border-radius: 12px; background: var(--bg-soft); border-left: 4px solid var(--gold); }
.raid-duel { padding: 20px 22px; border-radius: var(--radius); background: #fff8e6; border: 1px solid #f1dca4; margin-bottom: 24px; }
.raid-duel p { margin: 0; }
.row-text .btn { margin-top: 14px; }
@media (max-width: 760px) { .raid-top { grid-template-columns: 1fr; gap: 28px; } .raid-shot img { max-width: 300px; } }
.raid-intro .cta { justify-content: flex-start; }
.raid-spots { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .raid-spots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .raid-spots { grid-template-columns: 1fr; } .raid-intro .cta { justify-content: center; } }

/* ---------- /heroes, /heroes/<id> ---------- */
.el-fire { --el: #e4572e; } .el-water { --el: #2f80ed; } .el-earth { --el: #3fa45b; }
.el-thunder { --el: #e7b416; } .el-light { --el: #f5d77a; } .el-dark { --el: #8a5cf5; }
.el-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.el-jump a { display: inline-flex; align-items: center; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font-weight: 600; text-decoration: none; }
.el-jump a:hover { box-shadow: 0 0 0 2px var(--gold); }
.hero-group { margin: 0 0 36px; scroll-margin-top: 90px; }
.hero-group h2 { margin: 0 0 14px; font-size: 22px; color: var(--navy); }
.hero-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(132px, 100%), 1fr)); }
.hero-card { display: flex; flex-direction: column; align-items: center; height: 100%; padding: 10px 10px 14px; border: 1px solid var(--line); border-top: 4px solid var(--el, var(--gold)); border-radius: var(--radius); background: #fff; color: var(--navy); text-align: center; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.hero-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--gold), 0 12px 24px rgba(19, 34, 77, .12); }
.hero-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.hero-card .stars { font-size: 15px; margin-top: 4px; }
.hero-card b { font-size: 16px; line-height: 1.3; }
.hero-detail { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .hero-detail { grid-template-columns: 1fr; } }
.hero-art { margin: 0; padding: 16px; border-radius: var(--radius); background: radial-gradient(circle at 50% 45%, #fff 0, #f3f5fb 60%, #e6eaf5 100%); border-bottom: 4px solid var(--el, var(--gold)); }
.hero-art img { width: 100%; height: auto; }
.hero-tags { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; }
.hero-tags .tag { display: inline-flex; align-items: center; }
.hero-quote { margin: 8px 0 24px; padding: 12px 18px; border-left: 4px solid var(--el, var(--gold)); background: #f6f7fb; border-radius: 0 var(--radius) var(--radius) 0; font-size: 20px; color: var(--navy); }
.hero-sub { margin: 0 0 10px; font-size: 18px; color: var(--navy); }
.evo-chain { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.evo-chain li { position: relative; width: 130px; }
.evo-chain li + li::before { content: "→"; position: absolute; left: -10px; top: 38%; transform: translateX(-50%); color: var(--ink-2); font-size: 14px; }
.evo-chain li + li { margin-left: 12px; }
.evo-chain a, .evo-chain span { display: flex; flex-direction: column; align-items: center; height: 100%; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--navy); text-align: center; text-decoration: none; }
.evo-chain a:hover { box-shadow: 0 0 0 2px var(--gold); }
.evo-chain [aria-current] span { box-shadow: 0 0 0 2px var(--el, var(--gold)); }
.evo-chain img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.evo-chain b { font-size: 14px; line-height: 1.3; }
.evo-chain .stars { font-size: 13px; }
.heroes-note a { color: var(--gold); font-weight: 600; white-space: nowrap; }

/* ---------- server status, /contact, /creator, trailer ---------- */
.srv-status { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--navy); font-size: 15px; font-weight: 600; box-shadow: 0 2px 10px rgba(19, 34, 77, .15); }
.srv-status[hidden] { display: none; }
.srv-status i { width: 10px; height: 10px; border-radius: 50%; background: #9aa3b8; flex: none; }
.srv-status.is-up i { background: #2fb36b; box-shadow: 0 0 0 4px rgba(47, 179, 107, .2); }
.srv-status.is-down i { background: #e4572e; box-shadow: 0 0 0 4px rgba(228, 87, 46, .2); }
.rates-page .srv-status { margin: 0 0 24px; border: 1px solid var(--line); box-shadow: none; }
.contact-list { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.contact-list li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-list h2 { margin: 0; font-size: 18px; color: var(--navy); }
.contact-list p { margin: 0 0 6px; color: var(--ink-2); }
.contact-list .btn { margin-top: auto; overflow-wrap: anywhere; }
.api-form { display: grid; gap: 14px; max-width: 560px; }
.api-form label { display: grid; gap: 6px; font-weight: 600; color: var(--navy); }
.api-form small { font-weight: 400; color: var(--ink-2); }
.api-form input, .api-form select, .api-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400; color: var(--ink); background: #fff; }
.api-form input:focus, .api-form select:focus, .api-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.api-form input[type=file] { padding: 8px; }
.api-form .btn { justify-self: start; }
.api-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; min-height: 1.5em; }
.form-msg.is-ok { color: #1f8a50; font-weight: 600; }
.form-msg.is-err { color: #c0392b; font-weight: 600; }
.creator-tiers li small { order: -1; }
.creator-rules { margin: 0 0 32px; padding-left: 22px; }
.creator-rules li + li { margin-top: 6px; }
.trailer { position: relative; margin: 0 0 24px; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0b1533; }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.creator-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 480px) { .creator-tiers b { font-size: 20px; } .creator-tiers li { padding: 12px 4px; } }

/* /updates: player change log */
.upd-days { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.upd-day { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; box-shadow: 0 4px 16px rgba(19, 34, 77, .06); }
.upd-day h2 { font-size: 1.05rem; margin: 0 0 8px; color: var(--navy); }
.upd-day ul { margin: 0; padding-left: 1.2em; }
.upd-day li { margin: 4px 0; overflow-wrap: anywhere; }
