/* Worldlings Land: night-sky hero, warm cream page, chunky rounded cards. */
:root {
  --ink: #241a45; --soft: #6c6290; --line: #e9e2f6; --bg: #fffaf3; --card: #fff;
  --violet: #6d4aff; --pink: #ff5fa2; --sun: #ffb636; --mint: #2fd3a6; --night: #1d1450;
  --r: 24px; --shadow: 0 14px 40px #2a1a6b1c; --head: 'Kanit', 'Noto Sans Thai', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.7 'Noto Sans Thai', system-ui, 'Segoe UI', sans-serif; color: var(--ink); background: var(--bg); }
img { max-width: 100%; }
a { color: var(--violet); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.section { margin-top: 70px; }
.eyebrow { margin: 0 0 6px; font: 600 14px/1.3 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--pink); }
.lead { font-size: 19px; color: var(--soft); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 99px; padding: 13px 26px; font: 600 17px var(--head);
  color: #fff; background: linear-gradient(135deg, var(--violet), var(--pink)); text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 22px #6d4aff55; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px #6d4aff66; }
.btn.light { background: #fff; color: var(--ink); box-shadow: 0 8px 22px #0002; }
.btn.ghost { background: transparent; color: var(--violet); box-shadow: inset 0 0 0 2px var(--line); }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 150px; background: #111; color: #fff; text-decoration: none;
  border-radius: 14px; padding: 7px 20px 8px; font: 600 18px/1.15 var(--head); transition: transform .2s; }
.store:hover { transform: translateY(-2px); }
.store small { font: 500 11px/1.2 'Noto Sans Thai', sans-serif; opacity: .8; }
.store.is-off { background: #ece7f7; color: var(--soft); }
.mock { position: absolute; top: 12px; right: 12px; z-index: 3; font: 700 11px/1 var(--head); letter-spacing: .1em; color: #b45309;
  background: #fff7d6; border: 1.5px dashed #f59e0b; border-radius: 8px; padding: 5px 8px; }
.spot-body .mock, .g-head .mock { position: static; display: inline-block; margin: 0 8px 8px 0; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.scrolled .nav, .game-page .nav, .menu-open .nav { background: #1d1450ee; backdrop-filter: blur(12px); box-shadow: 0 6px 24px #0003; }
.nav-in { display: flex; align-items: center; gap: 18px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font: 700 21px var(--head); white-space: nowrap; }
.logo img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 4px 12px #0004; }
.logo b { color: var(--sun); }
.nav-links { margin-left: auto; display: flex; gap: 6px; }
.nav-links a { color: #fff; text-decoration: none; font: 500 16px var(--head); padding: 8px 14px; border-radius: 99px; opacity: .88; }
.nav-links a:hover { background: #ffffff1f; opacity: 1; }
.lang-btn { border: 1.5px solid #ffffff66; background: transparent; color: #fff; border-radius: 99px; padding: 6px 14px; font: 600 14px var(--head); cursor: pointer; }
.menu-btn { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: #ffffff1f; cursor: pointer; position: relative; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { position: absolute; left: 11px; width: 20px; height: 2.5px; border-radius: 2px; background: #fff; content: ''; transition: .25s; }
.menu-btn i { top: 20px; } .menu-btn i::before { left: 0; top: -7px; } .menu-btn i::after { left: 0; top: 7px; }
.menu-open .menu-btn i { background: transparent; }
.menu-open .menu-btn i::before { top: 0; transform: rotate(45deg); } .menu-open .menu-btn i::after { top: 0; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: 120px 0 130px;
  background: radial-gradient(circle at 78% 30%, #ff5fa255, transparent 40%), radial-gradient(circle at 10% 90%, #2fd3a633, transparent 35%),
    linear-gradient(160deg, #150e3d 0%, #2b1a6b 45%, #5a2d9c 100%); }
.stars { position: absolute; inset: 0; opacity: .8;
  background-image: radial-gradient(1.6px 1.6px at 20px 30px, #fff, transparent), radial-gradient(1.2px 1.2px at 140px 80px, #fff, transparent),
    radial-gradient(2px 2px at 260px 40px, #ffe9a8, transparent), radial-gradient(1.2px 1.2px at 330px 150px, #fff, transparent),
    radial-gradient(1.6px 1.6px at 90px 170px, #cfe6ff, transparent), radial-gradient(1px 1px at 200px 120px, #fff, transparent);
  background-size: 380px 200px; animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .45; } to { opacity: .95; } }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); line-height: 1.08; margin: 4px 0 18px; }
.hero h1 span { background: linear-gradient(90deg, var(--sun), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .eyebrow { color: var(--sun); }
.hero .lead { color: #e4dcff; max-width: 520px; }
.hero-art { position: relative; height: 520px; }
.orb { position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff40, transparent 40%), conic-gradient(from 200deg, #ff5fa2, #ffb636, #2fd3a6, #6d4aff, #ff5fa2);
  filter: blur(2px); opacity: .55; animation: spin 30s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.phone { position: absolute; left: 50%; top: 50%; width: 230px; aspect-ratio: 9 / 16; translate: -50% -50%; rotate: -6deg; border-radius: 34px;
  padding: 9px; background: #120c33; box-shadow: 0 30px 60px #0007, inset 0 0 0 2px #ffffff22; animation: bob 6s ease-in-out infinite; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; display: block; }
.char { position: absolute; filter: drop-shadow(0 16px 20px #0006); animation: float 5s ease-in-out infinite; }
.c-dino { width: 190px; left: -10px; bottom: 10px; animation-delay: -1s; }
.c-saucer { width: 170px; right: 0; top: 10px; animation-duration: 4s; }
.c-trice { width: 160px; right: 10px; bottom: -10px; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-16px) rotate(2deg); } }
@keyframes bob { 50% { transform: translateY(-10px); } }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 90px; fill: var(--bg); }

/* ---------- featured ---------- */
.featured { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; background: var(--card);
  border-radius: 32px; box-shadow: var(--shadow); overflow: hidden; margin-top: -40px; }
.feat-art { grid-column: 1 / -1; aspect-ratio: 1024 / 360; background: center 40% / cover; }
.feat-body { padding: 30px 34px 36px; }
.feat-head { display: flex; gap: 16px; align-items: center; }
.feat-head h2 { font-size: clamp(26px, 3vw, 34px); }
.feat-body .lead { margin: 16px 0 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.facts span { background: #f3eeff; color: var(--violet); border-radius: 99px; padding: 5px 14px; font: 600 15px var(--head); }
.feat-shots { display: flex; gap: 14px; justify-content: center; align-items: center; padding: 26px 30px 30px 0; }
.feat-shots img { width: 23%; border-radius: 18px; box-shadow: 0 10px 24px #0003; rotate: calc((var(--i) - 1.5) * 3deg); transition: .3s; }
.feat-shots img:nth-child(odd) { translate: 0 -12px; }
.feat-shots img:hover { rotate: 0deg; scale: 1.06; }
.gicon { width: 72px; height: 72px; border-radius: 20px; flex: none; display: block; box-shadow: 0 6px 16px #2a1a6b2e; object-fit: cover; background: #fff; }
.gicon.big { width: 92px; height: 92px; border-radius: 24px; }
.gicon.huge { width: 132px; height: 132px; border-radius: 32px; }

/* ---------- spotlight ---------- */
.spotlight { position: relative; overflow: hidden; border-radius: 32px; color: #fff; min-height: 380px; display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; box-shadow: var(--shadow); background: var(--night); }
.spot-bg { position: absolute; inset: 0; background: center / cover; transform: scale(1.04); }
.spot-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #120a35f2 0%, #120a35bb 45%, #120a3500 80%); }
.spot-body { position: relative; padding: 44px; }
.spot-body .eyebrow { color: var(--sun); }
.spot-body h2 { font-size: clamp(32px, 4vw, 48px); }
.spot-body p { color: #ddd6ff; max-width: 460px; }
.spot-gallery { position: relative; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; padding: 26px; }
.spot-gallery img { width: 62%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; border: 3px solid #fff; box-shadow: 0 12px 26px #0006; }
.spot-gallery img:nth-child(2) { margin-right: 18%; rotate: -3deg; } .spot-gallery img:nth-child(1) { rotate: 3deg; }

/* ---------- games grid ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-head p { margin: 6px 0 0; color: var(--soft); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 0; border-radius: 99px; padding: 9px 18px; font: 600 15px var(--head); background: #efe9fb; color: var(--soft); cursor: pointer; transition: .2s; }
.chip:hover { color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: 0 6px 20px #2a1a6b12; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card[hidden] { display: none; }
.card-art { position: relative; overflow: hidden; aspect-ratio: 16 / 8; background: center / cover; }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 0 20px 22px; margin-top: -34px; position: relative; }
.card-body .gicon { width: 68px; height: 68px; border: 3px solid #fff; border-radius: 20px; }
.card-body > div { min-width: 0; }
.card-deco { position: absolute; right: -14px; bottom: -26px; width: 130px; height: 130px; opacity: .22; rotate: -12deg; }
.card h3 { font-size: 20px; }
.card p { margin: 4px 0 10px; font-size: 15px; color: var(--soft); line-height: 1.5; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.meta span { font-size: 12.5px; font-weight: 600; color: var(--soft); background: #f5f2fb; border-radius: 8px; padding: 2px 9px; }
.pill { position: absolute; left: 12px; top: 12px; z-index: 2; font: 600 13px/1 var(--head); padding: 7px 11px; border-radius: 99px; box-shadow: 0 4px 10px #0002; }
.pill.is-live { background: #fff; color: #0f9f74; }
.pill.is-live::before { content: '● '; }
.pill.is-soon { background: var(--sun); color: #3a2500; }
.g-head .pill { position: static; display: inline-block; margin-bottom: 8px; }

/* ---------- news ---------- */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.news-card { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: 0 6px 20px #2a1a6b12; }
.news-img { position: relative; aspect-ratio: 16 / 8; background: center / cover; }
.news-body { padding: 18px 22px 24px; }
.news-body time { font-size: 13.5px; color: var(--pink); font-weight: 600; }
.news-body h3 { font-size: 20px; margin: 4px 0 6px; }
.news-body p { margin: 0; color: var(--soft); font-size: 15.5px; }

/* ---------- about / contact / footer ---------- */
.about { margin-top: 90px; padding: 80px 0; background: linear-gradient(180deg, #f2ecff, #fff3e6); }
.about-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar { background: #fff; border-radius: var(--r); padding: 24px 20px; box-shadow: 0 6px 20px #2a1a6b10; }
.pillar i { font-style: normal; font-size: 34px; display: block; }
.pillar h3 { font-size: 19px; margin: 8px 0 4px; }
.pillar p { margin: 0; color: var(--soft); font-size: 15px; line-height: 1.55; }
.contact { position: relative; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; border-radius: 32px; padding: 40px 46px 40px 190px;
  color: #fff; background: linear-gradient(120deg, var(--violet), var(--pink)); box-shadow: var(--shadow); overflow: visible; }
.contact > div { flex: 1; min-width: 240px; }
.contact p { margin: 6px 0 0; color: #ffe8f4; }
.contact .btn { background: #fff; color: var(--violet); box-shadow: 0 8px 22px #0002; }
.contact-char { position: absolute; left: 30px; bottom: 0; width: 140px; filter: drop-shadow(0 10px 16px #0004); animation: float 5s ease-in-out infinite; }
.foot { margin-top: 90px; background: var(--night); color: #cfc6ff; padding: 54px 0 24px; }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
.foot p { margin: 10px 0 0; font-size: 15px; }
.foot h4 { color: #fff; font-size: 16px; margin-bottom: 8px; }
.foot-in a:not(.logo) { display: block; color: #cfc6ff; text-decoration: none; font-size: 15px; padding: 3px 0; }
.foot-in a:not(.logo):hover { color: #fff; }
.copy { text-align: center; font-size: 13.5px; opacity: .7; margin: 40px 0 0; }

/* ---------- game page ---------- */
.g-hero { position: relative; padding: 150px 0 60px; color: #fff; background: center / cover; }
.g-shade { position: absolute; inset: 0; background: linear-gradient(180deg, #150e3dbb 0%, #150e3ddd 55%, #150e3df5 100%); }
.g-head { position: relative; display: flex; gap: 28px; align-items: flex-end; flex-wrap: wrap; }
.g-head h1 { font-size: clamp(34px, 5vw, 56px); }
.g-head p { color: #e4dcff; max-width: 640px; margin: 8px 0 0; }
.g-main { display: grid; grid-template-columns: 1fr 280px; gap: 30px 40px; margin-top: 46px; }
.g-about p { color: var(--soft); }
.g-side { background: #fff; border-radius: var(--r); padding: 22px 24px; box-shadow: 0 6px 20px #2a1a6b10; align-self: start; }
.g-side dl { margin: 0 0 14px; } .g-side dt { font-size: 13px; color: var(--soft); } .g-side dd { margin: 0 0 10px; font-weight: 600; }
.g-shots-title { grid-column: 1 / -1; font-size: 26px; margin-top: 10px; }
.g-shots { grid-column: 1 / -1; display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; }
.g-shots img { flex: none; border-radius: 18px; box-shadow: 0 8px 20px #0002; }
.g-shots.is-phone img { height: 420px; } .g-shots.is-wide img { height: 300px; }
.g-main .grid { grid-column: 1 / -1; }
.empty { padding: 180px 0 80px; text-align: center; }

/* ---------- privacy page ---------- */
.doc-page .nav { background: #1d1450ee; }
.doc { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 34px 40px 40px; margin-top: 24px; }
.doc h1 { font-size: 32px; margin-bottom: 4px; }
.doc h2 { font-size: 21px; margin: 26px 0 6px; }
.doc .date { color: var(--soft); margin: 0 0 12px; }
.doc-wrap { width: min(860px, 100% - 40px); margin: 0 auto; padding-top: 100px; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero { padding: 100px 0 110px; }
  .hero-in, .about-in, .g-main { grid-template-columns: 1fr; }
  .hero-art { height: 420px; }
  .orb { width: 330px; height: 330px; }
  .phone { width: 190px; }
  .c-dino { width: 150px; } .c-saucer { width: 130px; } .c-trice { width: 125px; }
  .featured { grid-template-columns: 1fr; }
  .feat-shots { padding: 0 20px 30px; }
  .spotlight { grid-template-columns: 1fr; }
  .spot-bg::after { background: linear-gradient(180deg, #120a35cc, #120a35f2); }
  .spot-gallery { flex-direction: row; justify-content: flex-start; padding: 0 30px 34px; }
  .spot-gallery img { width: 32%; margin: 0 !important; rotate: 0deg !important; }
  .pillars { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; } .foot-in > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 20px 18px; background: #1d1450f5;
    transform: translateY(-120%); transition: transform .3s; z-index: -1; }
  .menu-open .nav-links { transform: none; }
  .nav-links a { padding: 12px 6px; border-bottom: 1px solid #ffffff14; border-radius: 0; }
  .lang-btn { margin-left: auto; }
  .menu-btn { display: block; }
  .section { margin-top: 54px; }
  .feat-body, .spot-body { padding: 26px 22px 28px; }
  .contact { padding: 30px 24px 34px; text-align: left; }
  .contact-char { position: static; width: 96px; margin: -70px 0 0; }
  .doc { padding: 24px 20px 30px; }
  .doc-page .nav-links { position: static; transform: none; flex-direction: row; background: none; padding: 0; z-index: auto; }
  .doc-page .nav-links a { border: 0; padding: 6px 8px; font-size: 14px; }
  .doc-page .logo span { display: none; }
  .g-shots.is-phone img { height: 340px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card-body { padding: 0 12px 14px; margin-top: -26px; gap: 6px; }
  .card-body .gicon { width: 52px; height: 52px; border-radius: 15px; }
  .card h3 { font-size: 16.5px; }
  .card p { font-size: 13.5px; margin: 2px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card .meta { display: none; }
  .pill { font-size: 11.5px; padding: 5px 8px; left: 8px; top: 8px; }
  .card .mock { top: 8px; right: 8px; font-size: 9.5px; padding: 3px 5px; }
  .card-deco { width: 90px; height: 90px; }
  .feat-shots img { width: 24%; border-radius: 12px; }
}
section[id], article[id] { scroll-margin-top: 90px; }
.doc ul { margin: 6px 0 10px; padding-left: 22px; } .doc li { margin: 4px 0; }

/* ---------- lightbox ---------- */
[data-full] { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: #0d0826ee;
  backdrop-filter: blur(6px); animation: lbIn .2s ease-out; }
.lb[hidden] { display: none; }
.lb img { max-width: min(92vw, 900px); max-height: 88vh; border-radius: 18px; box-shadow: 0 20px 60px #000a; object-fit: contain; cursor: default; }
.lb button { position: absolute; border: 0; color: #fff; background: #ffffff1f; cursor: pointer; border-radius: 50%; width: 52px; height: 52px;
  padding: 0; display: grid; place-items: center; transition: background .2s; }
.lb button svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lb button:hover { background: #ffffff38; }
.lb button[hidden] { display: none; }
.lb-x { top: 18px; right: 18px; }
.lb-p { left: 18px; top: 50%; translate: 0 -50%; } .lb-n { right: 18px; top: 50%; translate: 0 -50%; }
.lb-c { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; color: #cfc6ff; font: 600 14px var(--head); }
.lb-open { overflow: hidden; }
@keyframes lbIn { from { opacity: 0; } }
@media (max-width: 720px) { .lb button { width: 44px; height: 44px; } .lb button svg { width: 20px; height: 20px; } .lb-p { left: 6px; } .lb-n { right: 6px; } .lb img { max-width: 94vw; border-radius: 12px; } }
