/*
 * ฐานของเว็บไซต์: สี ตัวอักษร ฉาก Roblox และองค์ประกอบร่วม
 * กฎที่อยู่ท้ายไฟล์ปรับรายละเอียดตามขนาดจอ; คงลำดับ cascade ไว้
 * ปุ่มและ navbar รุ่นปัจจุบันกำหนดใน experience.css ซึ่งโหลดท้ายสุด
 */

:root {
  --red: #ff343b;
  --bg: #101010;
  --text: #f2f0ed;
  --muted: #aaa7a7;
  --line: #303030;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Tahoma", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 6px;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
p {
  margin: 0;
}
p {
  line-height: 1.85;
}
h1,
h2 {
  letter-spacing: -0.065em;
  line-height: 0.98;
  font-weight: 800;
}
h1 {
  font-size: clamp(64px, 7.7vw, 120px);
}
h2 {
  font-size: clamp(38px, 5vw, 76px);
}
h3 {
  font-size: 24px;
  letter-spacing: -0.04em;
}
em {
  font-style: normal;
  color: var(--red);
}
header {
  height: 96px;
  padding: 0 4.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #101010ed;
  position: relative;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.06em;
}
.brand > span > small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.18em;
  margin-top: 6px;
  color: #a8a8a8;
}
.brand-icon {
  font-size: 42px;
  color: var(--red);
}
.red-text {
  color: var(--red);
}
nav {
  display: flex;
  gap: 36px;
}
nav a {
  color: #aaa;
  font-size: 13px;
}
nav a:hover,
nav a[aria-current] {
  color: white;
}
nav a[aria-current]:after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  background: var(--red);
  border-radius: 100%;
  margin: 8px auto -12px;
}
.nav-cta {
  font-size: 13px;
  border: 1px solid #555;
  padding: 12px 20px;
  border-radius: 30px;
}
.nav-cta span {
  margin-left: 24px;
}
.menu {
  display: none;
}
.hero {
  min-height: 760px;
  height: calc(100svh - 96px);
  max-height: 1050px;
  position: relative;
  overflow: hidden;
  padding: 56px 4.5% 100px;
  display: flex;
  align-items: center;
}
.hero-copy {
  width: 56%;
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.hero-copy a {
  pointer-events: auto;
}
.eyebrow {
  font:
    10px/1.5 "Courier New",
    monospace;
  font-weight: bold;
  letter-spacing: 0.15em;
  color: #bbb;
  margin-bottom: 30px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  margin-right: 7px;
}
.hero h1 {
  font-size: clamp(65px, 7.6vw, 116px);
  line-height: 0.91;
}
.hero h1 > span {
  color: #f2f0ed;
}
.hero-copy > p:not(.eyebrow) {
  font-size: 13px;
  color: #a9a9a9;
  margin-top: 28px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 32px;
}
.button {
  background: var(--red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 17px 22px;
  border: 0;
  font-size: 12px;
  font-weight: 600;
  border-radius: 3px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:hover {
  background: #dc1f27;
  transform: translateY(-2px);
}
.button span {
  font-size: 20px;
  line-height: 1;
}
.text-link {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  font-size: 12px;
  border: 0;
  border-bottom: 1px solid #666;
  padding: 10px 0;
  background: none;
  color: inherit;
}
.text-link:hover {
  color: var(--red);
}
.hero-bottom {
  position: absolute;
  bottom: 26px;
  left: 4.5%;
  right: 4.5%;
  display: flex;
  justify-content: space-between;
  font: 9px monospace;
  letter-spacing: 0.12em;
  color: #999;
}
.world {
  height: 660px;
  width: 660px;
  position: absolute;
  right: -2%;
  top: 30px;
  overflow: hidden;
  isolation: isolate;
  perspective: 900px;
  background: radial-gradient(ellipse at 50% 55%, #72191e66 0, transparent 64%);
}
.grid-floor {
  position: absolute;
  inset: 30% -20% -30%;
  background-image:
    linear-gradient(#ee35352b 1px, transparent 1px),
    linear-gradient(90deg, #ee35352b 1px, transparent 1px);
  background-size: 45px 45px;
  transform: rotateX(63deg) rotateZ(-28deg);
  mask-image: radial-gradient(ellipse, black, transparent 70%);
}
.cube {
  position: absolute;
  transform-style: preserve-3d;
  transform: rotateX(-24deg) rotateY(-34deg) rotateZ(0deg);
  width: 220px;
  height: 220px;
  left: 35%;
  top: 29%;
  filter: drop-shadow(25px 45px 30px #0007);
  transition: transform 0.15s linear;
}
.cube i,
.cube b,
.cube em {
  display: block;
  position: absolute;
  inset: 0;
  border: 1px solid #ff8b8b88;
  background: linear-gradient(145deg, #ff5e62, #d80619);
  backface-visibility: visible;
}
.cube i {
  transform: translateZ(110px);
  background: linear-gradient(135deg, #ff4b50, #d90519);
}
.cube b {
  transform: rotateY(90deg) translateZ(110px);
  background: linear-gradient(110deg, #ac0f21, #3b030b);
}
.cube em {
  transform: rotateX(90deg) translateZ(110px);
  background: linear-gradient(150deg, #ff9b96, #ff2635);
}
.cube.c2 {
  scale: 0.32;
  left: 10%;
  top: 18%;
  transform: rotateX(-24deg) rotateY(-34deg) rotateZ(12deg);
}
.cube.c3 {
  scale: 0.22;
  left: 72%;
  top: 61%;
  transform: rotateX(-24deg) rotateY(-34deg) rotateZ(-9deg);
}
.orbit {
  position: absolute;
  border: 1px solid #e33b3b33;
  border-radius: 50%;
  height: 520px;
  width: 520px;
  left: 13%;
  top: 11%;
  transform: rotate(-38deg) scaleY(0.5);
}
.orbit-b {
  transform: rotate(55deg) scaleY(0.6);
}
.world-label {
  position: absolute;
  left: 40%;
  top: 76%;
  font-size: 9px;
  font-family: monospace;
  letter-spacing: 0.12em;
  color: #ed8585;
  line-height: 1.6;
}
.world-label span {
  color: #777;
}
.coord {
  position: absolute;
  right: 5%;
  top: 16%;
  font: 8px monospace;
  color: #777;
  writing-mode: vertical-rl;
}
.ticker {
  display: flex;
  justify-content: space-around;
  gap: 40px;
  white-space: nowrap;
  overflow: hidden;
  background: var(--red);
  padding: 20px 0;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.ticker span:nth-child(even) {
  font-size: 25px;
}
.intro {
  padding: 135px 8%;
  text-align: center;
}
.intro h2 {
  font-size: clamp(46px, 6.5vw, 94px);
}
.intro h2 > span {
  color: #777;
}
.intro > p:last-child {
  margin-top: 30px;
  color: #aaa;
  font-size: 14px;
}
.scroll-story {
  height: 210vh;
  position: relative;
  background: #151515;
}
.story-sticky {
  height: 100svh;
  min-height: 620px;
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  overflow: hidden;
}
.story-visual {
  height: 650px;
  position: relative;
  transform: scale(var(--scene-scale, 1));
}
.story-visual .world {
  right: 0;
  top: 0;
}
.story-copy {
  padding: 70px 14% 70px 4%;
  position: relative;
  z-index: 1;
}
.story-copy h2 {
  font-size: clamp(44px, 5vw, 76px);
  min-height: 2em;
}
.story-copy > p:not(.eyebrow) {
  color: #aaa;
  margin: 28px 0;
  font-size: 14px;
  min-height: 80px;
}
.story-progress {
  display: flex;
  gap: 8px;
  margin-top: 42px;
}
.story-progress i {
  display: block;
  height: 3px;
  width: 45px;
  background: #444;
}
.story-progress i.active {
  background: var(--red);
}
.section-pad,
.work-section,
.core-section {
  padding: 100px 6%;
}
.section-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 45px;
  gap: 30px;
}
.section-top > span {
  font: 10px monospace;
  letter-spacing: 0.1em;
  color: #999;
}
.section-top .eyebrow {
  margin-bottom: 20px;
}
.section-top h2 {
  font-size: clamp(38px, 4vw, 60px);
}
.game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.game-art {
  height: 340px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  background: #272b27;
  isolation: isolate;
}
.game-art:before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 4px, #0001 5px);
  z-index: 3;
  pointer-events: none;
}
.archive {
  position: absolute;
  top: 20px;
  left: 24px;
  font: 9px monospace;
  letter-spacing: 0.1em;
  border: 1px solid #ffffff44;
  padding: 8px 10px;
}
.game-art strong {
  position: relative;
  z-index: 2;
  font-size: 46px;
  letter-spacing: -0.06em;
}
.game-art .art-note {
  font: 7px monospace;
  position: absolute;
  bottom: 12px;
  right: 12px;
  color: #fffc;
}
.thai {
  background: linear-gradient(#526350, #bcaa7b);
}
.thai .game-shape {
  width: 190px;
  height: 160px;
  position: absolute;
  left: 35%;
  top: 30%;
  background: linear-gradient(90deg, #4c3c2e 50%, #785741 50%);
  box-shadow:
    100px 30px 0 -25px #4a4b38,
    -110px 65px 0 -30px #3c4536;
  transform: skewY(-8deg);
}
.thai .game-shape:before {
  content: "";
  position: absolute;
  width: 240px;
  height: 90px;
  left: -25px;
  top: -65px;
  background: #57372a;
  clip-path: polygon(50% 0, 100% 90%, 90% 100%, 0 100%);
}
.thai .game-shape:after {
  content: "";
  position: absolute;
  inset: 30px 25px;
  background: repeating-linear-gradient(90deg, #151e1c 0 25px, transparent 25px 45px);
}
.obby {
  background: radial-gradient(ellipse at 50% 0, #655cb8, #23213b);
}
.obby .game-shape {
  position: absolute;
  left: 30%;
  top: 42%;
  height: 90px;
  width: 90px;
  background: #ff525b;
  box-shadow:
    100px -80px 0 #f3aa54,
    200px -160px 0 #73d8dc,
    -100px 80px 0 #9a6bdb;
  transform: rotate(-25deg) skew(20deg, 10deg);
  transition: transform 0.6s;
}
.game-card:hover .game-shape {
  transform: translateY(-8px) rotate(-10deg);
}
.game-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
}
.game-caption h3 {
  font-size: 22px;
}
.game-caption p {
  font-size: 11px;
  color: #999;
  margin-top: 6px;
}
.tag {
  font: 9px monospace;
  letter-spacing: 0.1em;
  color: #bbb;
  border: 1px solid #444;
  border-radius: 20px;
  padding: 9px 12px;
}
.small {
  font-size: 11px;
}
.muted {
  color: #999;
}
.core-section {
  background: #e9e8e3;
  color: #171717;
}
.core-section .eyebrow {
  color: #666;
}
.core-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}
.partner-label {
  display: inline-block;
  font: 9px monospace;
  letter-spacing: 0.1em;
  border: 1px solid #bbb;
  border-radius: 20px;
  padding: 8px 12px;
  margin-bottom: 30px;
}
.core-layout h2 {
  font-size: clamp(44px, 5vw, 76px);
}
.core-layout p {
  font-size: 14px;
  margin: 25px 0;
}
.core-layout .muted {
  font-size: 12px;
  color: #666;
}
.core-art {
  position: relative;
  min-height: 430px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #fff 0, #d7d7d200 70%);
  display: grid;
  place-items: center;
}
.hex {
  width: 205px;
  height: 235px;
  clip-path: polygon(50% 0, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%);
  background: linear-gradient(140deg, #333, #070707);
  color: var(--red);
  font-weight: 900;
  font-size: 115px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0 30px 40px #000;
  transform: rotate(-8deg);
  transition: transform 0.6s;
}
.hex span {
  font: 10px monospace;
  letter-spacing: 0.2em;
  color: white;
  margin-top: -5px;
}
.core-art:hover .hex {
  transform: rotate(0) scale(1.05);
}
.system-pill {
  position: absolute;
  background: #f8f8f4;
  border: 1px solid #ccc;
  padding: 18px 22px;
  box-shadow: 0 15px 35px #0001;
  font: 10px monospace;
  letter-spacing: 0.1em;
}
.system-pill span {
  color: var(--red);
  margin-left: 40px;
}
.p1 {
  top: 55px;
  right: 5%;
}
.p2 {
  bottom: 70px;
  left: 0;
}
.core-art > small {
  position: absolute;
  bottom: 0;
  font: 8px monospace;
  letter-spacing: 0.08em;
  color: #777;
}
.final-cta {
  text-align: center;
  padding: 130px 5%;
  background: radial-gradient(ellipse at 50% 100%, #4c111733, transparent 60%);
}
.final-cta .button {
  margin-top: 35px;
}
.final-cta h2 {
  font-size: clamp(46px, 6vw, 90px);
}
footer {
  margin: 0 4.5%;
  padding: 30px 0;
  border-top: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
footer p,
footer small,
footer > a:last-child {
  font-size: 10px;
  color: #888;
}
footer .brand {
  font-size: 14px;
  gap: 0;
}
.page-hero {
  padding: 100px 6% 90px;
}
.page-hero h1 {
  font-size: clamp(60px, 8.5vw, 130px);
}
.page-hero > p:not(.eyebrow) {
  margin-top: 32px;
  color: #aaa;
  font-size: 14px;
}
.page-hero .button {
  margin-top: 30px;
}
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin-top: 60px;
}
.process article {
  border-top: 1px solid #444;
  padding-top: 25px;
}
.process span,
.core-options article > span {
  font: 10px monospace;
  color: var(--red);
}
.process h3 {
  margin: 35px 0 18px;
}
.process p {
  font-size: 13px;
  color: #aaa;
}
.statement {
  padding: 110px 6%;
  background: #e9e8e3;
  color: #151515;
}
.statement .eyebrow {
  color: #555;
}
.statement p:last-child {
  margin-top: 35px;
  font-size: 14px;
}
.credits {
  padding-top: 110px;
}
.credits > p:not(.eyebrow) {
  margin-top: 30px;
  color: #aaa;
  font-size: 13px;
}
.credits ul {
  padding: 0;
  list-style: none;
  margin-top: 45px;
}
.credits li {
  border-top: 1px solid #333;
  padding: 25px 0;
  font-size: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.credits li span {
  font: 9px monospace;
  color: #888;
}
.core-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}
.core-options h2 {
  margin: 35px 0;
}
.core-options p {
  color: #aaa;
  font-size: 14px;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 90px;
  border-top: 1px solid #333;
}
.contact-layout h2 {
  margin-bottom: 35px;
}
#email-contact {
  margin: 20px 0 40px;
  overflow-wrap: anywhere;
}
form label {
  display: block;
  font-size: 12px;
  margin: 0 0 12px;
}
input,
select,
textarea {
  width: 100%;
  background: #1b1b1b;
  border: 1px solid #404040;
  color: white;
  border-radius: 3px;
  padding: 16px;
  margin-bottom: 24px;
  max-width: 100%;
}
textarea {
  resize: vertical;
}
form .small {
  margin: 18px 0;
}
#form-status {
  font-size: 13px;
  color: #ddd;
  margin-bottom: 20px;
}
#draft-panel[hidden] {
  display: none;
}
.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  background: white;
  color: black;
  padding: 15px;
}
.skip:focus {
  top: 10px;
}
.js-motion .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}
.js-motion .reveal.visible {
  opacity: 1;
  transform: none;
}
@media (min-width: 1600px) {
  .hero > .world {
    right: 8%;
    scale: 1.2;
    top: 12%;
  }
}
@media (max-width: 1000px) {
  .hero > .world {
    right: -170px;
    opacity: 0.7;
  }
  .hero-copy {
    width: 70%;
  }
  .story-visual .world {
    right: -130px;
  }
  .core-layout {
    gap: 20px;
  }
  .game-art {
    height: 280px;
  }
  .contact-layout {
    gap: 40px;
  }
}
@media (max-width: 700px) {
  header {
    height: 78px;
    padding: 0 6%;
  }
  .brand {
    font-size: 16px;
  }
  .brand-icon {
    font-size: 32px;
  }
  .brand > span > small {
    font-size: 6px;
  }
  header > .nav-cta {
    display: none;
  }
  .menu {
    display: block;
    background: none;
    border: 1px solid #444;
    color: white;
    padding: 8px 12px;
    font-size: 20px;
  }
  nav {
    display: none;
    position: absolute;
    top: 77px;
    left: 0;
    right: 0;
    background: #171717;
    padding: 28px 6%;
    border-bottom: 1px solid #444;
    flex-direction: column;
    gap: 25px;
  }
  nav.open {
    display: flex;
  }
  nav a[aria-current]:after {
    display: none;
  }
  .hero {
    height: auto;
    min-height: 880px;
    padding: 50px 6% 390px;
    align-items: flex-start;
  }
  .hero-copy {
    width: 100%;
  }
  .hero h1 {
    font-size: 69px;
    line-height: 0.94;
  }
  .hero .eyebrow {
    font-size: 8px;
    margin-bottom: 26px;
  }
  .hero-copy > p:not(.eyebrow) {
    font-size: 11px;
  }
  .actions {
    gap: 20px;
  }
  .hero > .world {
    top: auto;
    bottom: 10px;
    width: 470px;
    height: 430px;
    right: -25px;
    opacity: 1;
  }
  .hero > .world .cube {
    scale: 0.7;
    left: 36%;
    top: 22%;
  }
  .hero > .world .c2 {
    scale: 0.22;
    left: 5%;
    top: 7%;
  }
  .hero > .world .c3 {
    scale: 0.17;
    left: 65%;
    top: 50%;
  }
  .hero > .world .world-label {
    top: 80%;
  }
  .hero-bottom {
    font-size: 7px;
    bottom: 15px;
    left: 6%;
    right: 6%;
  }
  .hero-bottom > span {
    max-width: 140px;
    line-height: 1.5;
  }
  .ticker {
    font-size: 16px;
    padding: 16px 0;
    gap: 25px;
  }
  .intro {
    padding: 90px 6%;
  }
  .intro h2 {
    font-size: 46px;
  }
  .intro > p:last-child {
    font-size: 12px;
  }
  .scroll-story {
    height: 180vh;
  }
  .story-sticky {
    min-height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .story-visual {
    height: 310px;
    width: 100%;
    flex-shrink: 0;
  }
  .story-visual .world {
    height: 440px;
    width: 500px;
    top: -80px;
    right: calc(50% - 250px);
    scale: 0.75;
  }
  .story-copy {
    padding: 10px 7% 35px;
    width: 100%;
  }
  .story-copy .eyebrow {
    margin-bottom: 18px;
  }
  .story-copy h2 {
    font-size: 43px;
    min-height: 84px;
  }
  .story-copy > p:not(.eyebrow) {
    font-size: 12px;
    min-height: 48px;
    margin: 18px 0;
  }
  .story-progress {
    margin-top: 20px;
  }
  .section-pad,
  .work-section,
  .core-section {
    padding: 70px 6%;
  }
  .section-top {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 30px;
  }
  .section-top h2 {
    font-size: 38px;
  }
  .game-grid,
  .core-layout,
  .process,
  .core-options,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .game-grid {
    gap: 25px;
  }
  .game-art {
    height: 300px;
  }
  .game-caption h3 {
    font-size: 22px;
  }
  .game-caption p {
    font-size: 10px;
  }
  .core-layout {
    gap: 30px;
  }
  .core-art {
    min-height: 350px;
  }
  .core-layout h2 {
    font-size: 51px;
  }
  .hex {
    width: 170px;
    height: 190px;
    font-size: 90px;
  }
  .p1 {
    top: 20px;
  }
  .p2 {
    bottom: 50px;
  }
  .final-cta {
    padding: 90px 6%;
  }
  .final-cta h2 {
    font-size: 48px;
  }
  footer {
    flex-wrap: wrap;
    margin: 0 6%;
    gap: 20px;
  }
  footer > p {
    display: none;
  }
  footer small {
    font-size: 9px;
  }
  .page-hero {
    padding: 70px 6%;
  }
  .page-hero h1 {
    font-size: 58px;
  }
  .page-hero > p:not(.eyebrow) {
    font-size: 12px;
  }
  .process {
    gap: 40px;
  }
  .process h3 {
    margin-top: 25px;
  }
  .statement {
    padding: 80px 6%;
  }
  .statement h2 {
    font-size: 44px;
  }
  .credits {
    padding-top: 70px;
  }
  .credits h2 {
    font-size: 40px;
  }
  .credits li {
    font-size: 20px;
  }
  .credits li span {
    font-size: 7px;
  }
  .contact-layout {
    gap: 35px;
  }
  .core-options {
    gap: 55px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .js-motion .reveal {
    opacity: 1;
    transform: none;
  }
  .scroll-story {
    height: auto;
  }
  .story-sticky {
    position: relative;
    height: auto;
    min-height: 650px;
  }
  .story-visual {
    transform: none;
  }
}
/* Preserve the 3D faces: CSS filters flatten a preserve-3d container. */
.cube {
  filter: none;
}
@media (min-width: 701px) {
  .core-art .hex {
    transform: rotate(calc(-12deg + var(--core-progress, 0) * 22deg))
      scale(calc(0.88 + var(--core-progress, 0) * 0.18));
  }
  .game-art .game-shape {
    translate: 0 calc(var(--work-progress, 0) * -22px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .core-art .hex {
    transform: none;
  }
  .game-art .game-shape {
    translate: none;
  }
}
@media (max-width: 700px) {
  .hero h1 {
    font-size: clamp(52px, 15.2vw, 69px);
  }
}
/* Typography: Archivo Black covers Latin, Anuphan covers Thai. */
body {
  font-family: "Archivo Black", "Anuphan", sans-serif;
  font-weight: 400;
}
.eyebrow,
.archive,
.tag,
.hero-bottom,
.world-label,
.coord,
.section-top > span,
.process span,
.core-options article > span,
.partner-label,
.system-pill,
.core-art > small,
.credits li span {
  font-family: "Archivo Black", "Anuphan", sans-serif;
  font-weight: 400;
  letter-spacing: 0.08em;
}
p,
form label,
input,
select,
textarea,
.game-caption p,
.muted {
  letter-spacing: 0;
  font-family: "Archivo Black", "Anuphan", sans-serif;
}
/* Gradient navigation: mirrored links with a centered, replaceable logo. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: block;
  height: auto;
  padding: 0 5%;
  border-bottom: 1px solid #ffffff1a;
  background: linear-gradient(
    105deg,
    rgba(48, 10, 15, 0.97),
    rgba(18, 15, 16, 0.96) 38%,
    rgba(17, 17, 17, 0.97) 72%,
    rgba(67, 12, 19, 0.96)
  );
  backdrop-filter: blur(18px);
}
.nav-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
  gap: 32px;
  max-width: 1600px;
  margin: auto;
}
.site-header .nav-side {
  position: static;
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.7vw, 44px);
  background: transparent;
  border: 0;
  padding: 0;
  flex-direction: row;
}
.site-header .nav-left {
  justify-content: flex-start;
}
.site-header .nav-right {
  justify-content: flex-end;
}
.site-header .nav-side a,
.mobile-nav a {
  position: relative;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  color: #c5bfc0;
  transition: color 0.2s;
}
.site-header .nav-side a:hover,
.site-header .nav-side a[aria-current],
.mobile-nav a:hover,
.mobile-nav a[aria-current] {
  color: #fff;
}
.site-header .nav-side a[aria-current]:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -12px;
  left: 0;
  margin: 0;
  border-radius: 0;
  background: var(--red);
}
.nav-brand {
  justify-self: center;
  min-width: 205px;
  justify-content: center;
}
.brand-fallback {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-fallback > span:last-child {
  font-size: 15px;
  line-height: 1.1;
  white-space: nowrap;
}
.brand-fallback small {
  display: block;
  margin-top: 5px;
  font:
    7px "Archivo Black",
    "Anuphan",
    sans-serif;
  letter-spacing: 0.13em;
  color: #aaa;
}
.brand-icon {
  font-family: Arial, sans-serif;
  line-height: 1;
  font-size: 33px;
}
.brand-image {
  display: block;
  max-width: 195px;
  width: auto;
  max-height: 52px;
  height: auto;
  object-fit: contain;
}
.brand-image[hidden] {
  display: none;
}
.site-header .menu {
  display: none;
}
.site-header .mobile-nav {
  display: none;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
}
.hero.has-hero-media:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #101010 0%, #101010db 37%, #10101038 100%);
  pointer-events: none;
}
.hero.has-hero-media > .world {
  display: none;
}
.hero-bottom {
  z-index: 2;
}
.game-art .game-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.game-art.has-image:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, #000b, transparent 65%);
  pointer-events: none;
}
.game-art.has-image .game-shape,
.game-art.has-image .art-note {
  display: none;
}
.game-art .archive {
  z-index: 3;
}
@media (max-width: 850px) {
  .site-header {
    padding: 0 6%;
  }
  .nav-shell {
    min-height: 76px;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
  }
  .site-header .nav-side {
    display: none;
  }
  .nav-brand {
    grid-column: 2;
    min-width: 0;
  }
  .site-header .menu {
    display: flex;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid #ffffff40;
    border-radius: 50%;
    background: #fff0;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
  .menu span {
    display: block;
    width: 19px;
    height: 1px;
    background: #fff;
    transition:
      transform 0.2s,
      opacity 0.2s;
  }
  .menu[aria-expanded="true"] span:first-child {
    transform: translateY(6px) rotate(45deg);
  }
  .menu[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .menu[aria-expanded="true"] span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }
  .site-header .mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 12px 6% 24px;
    border-bottom: 1px solid #ffffff20;
    background: linear-gradient(130deg, #311015, #131313 70%);
    flex-direction: column;
    gap: 0;
  }
  .site-header .mobile-nav.open {
    display: flex;
  }
  .mobile-nav a {
    padding: 14px 0;
    border-bottom: 1px solid #ffffff16;
  }
  .mobile-nav a[aria-current]:after {
    display: none;
  }
  .nav-brand .brand-icon {
    font-size: 29px;
  }
  .nav-brand .brand-fallback > span:last-child {
    font-size: 13px;
  }
  .brand-image {
    max-width: 165px;
    max-height: 46px;
  }
  .hero.has-hero-media:after {
    background: linear-gradient(180deg, #101010cc 0%, #101010a8 55%, #10101033 100%);
  }
}
.brand-fallback[hidden] {
  display: none;
}
.video-control {
  position: absolute;
  z-index: 4;
  right: 5%;
  bottom: 60px;
  color: #fff;
  background: #111b;
  border: 1px solid #ffffff75;
  border-radius: 30px;
  padding: 10px 14px;
  font:
    10px "Archivo Black",
    "Anuphan",
    sans-serif;
  letter-spacing: 0;
}
.video-control:hover {
  background: #d7212c;
}
@media (max-width: 700px) {
  .video-control {
    bottom: 55px;
    right: 6%;
  }
}
/* Fixed, fading navigation — The CheemsRed */
button,
.menu-button,
.no-select,
.site-header a {
  user-select: none;
  -webkit-user-select: none;
}
.site-header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  padding: 20px 4%;
  z-index: 1000;
  border: 0;
  background: linear-gradient(
    180deg,
    rgba(24, 19, 20, 0.85) 0%,
    rgba(24, 19, 20, 0.5) 52%,
    rgba(24, 19, 20, 0) 100%
  );
  backdrop-filter: none;
  transition:
    background 0.3s ease,
    padding 0.3s ease;
}
.site-header.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: linear-gradient(180deg, rgba(20, 16, 17, 0.98), rgba(20, 16, 17, 0.92));
  box-shadow: 0 1px 0 #ff343b20;
  backdrop-filter: blur(12px);
}
.nav-shell {
  min-height: 70px;
  gap: 24px;
}
.site-header .nav-left,
.site-header .nav-right {
  justify-content: center;
  gap: clamp(4px, 1.4vw, 24px);
}
.site-header .nav-side a {
  font-size: clamp(12px, 1.1vw, 16px);
  padding: 10px 14px;
  color: #fff;
  text-shadow: 0 2px 12px #0008;
  transition:
    color 0.3s ease,
    background 0.3s ease;
  border-radius: 8px;
}
.site-header .nav-side a:hover,
.site-header .nav-side a[aria-current],
.mobile-nav a:hover,
.mobile-nav a[aria-current] {
  color: var(--red);
}
.site-header .nav-side a:hover {
  background: #ff343b0b;
}
.site-header .nav-side a[aria-current]:after {
  width: 18px;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 2px;
}
.nav-brand {
  min-width: 210px;
}
.brand-image {
  height: 70px;
  max-height: 70px;
  width: 180px;
  max-width: 180px;
  object-fit: contain;
  -webkit-user-drag: none;
}
.brand-fallback > span:last-child {
  font-size: 17px;
}
.nav-brand .brand-icon {
  font-size: 38px;
}
.hero {
  height: 100svh;
  padding-top: 140px;
}
.page-hero {
  padding-top: 180px;
}
@media (max-width: 1000px) and (min-width: 851px) {
  .site-header .nav-side a {
    padding: 10px 6px;
  }
  .nav-shell {
    gap: 12px;
  }
  .nav-brand {
    min-width: 190px;
  }
}
@media (max-width: 850px) {
  .site-header {
    padding: 14px 6%;
  }
  .site-header.is-scrolled {
    padding: 10px 6%;
  }
  .nav-shell {
    min-height: 58px;
    gap: 8px;
  }
  .site-header .menu {
    grid-column: 1;
    justify-self: start;
    border: 0;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
  }
  .menu span {
    width: 24px;
    height: 2px;
    background: white;
    transition:
      background 0.3s ease,
      transform 0.3s ease,
      opacity 0.3s ease;
  }
  .site-header .menu:hover span {
    background: var(--red);
  }
  .menu[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }
  .menu[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }
  .nav-brand {
    min-width: 0;
  }
  .brand-image {
    width: 160px;
    height: 58px;
    max-height: 58px;
    max-width: 160px;
  }
  .nav-brand .brand-fallback > span:last-child {
    font-size: 13px;
  }
  .nav-brand .brand-icon {
    font-size: 29px;
  }
  .site-header .mobile-nav {
    top: calc(100% - 4px);
    left: 4%;
    right: 4%;
    max-height: calc(100svh - 110px);
    overflow-y: auto;
    padding: 12px 22px 18px;
    background: rgba(24, 20, 21, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid #ff343b2a;
    border-radius: 12px;
    box-shadow: 0 16px 36px #0006;
  }
  .mobile-nav a {
    font-size: 14px;
    padding: 15px 8px;
  }
  .hero {
    height: auto;
    padding-top: 130px;
  }
  .page-hero {
    padding-top: 150px;
  }
}
/* Readable mixed-language body copy */
p,
form,
label,
input,
select,
textarea,
.game-caption p,
.muted,
#form-status,
#email-contact,
.button,
.text-link {
  font-family: "Anuphan", sans-serif;
}
p {
  font-size: 18px;
  line-height: 1.9;
}
.hero-copy > p:not(.eyebrow),
.intro > p:last-child,
.story-copy > p:not(.eyebrow),
.core-layout p,
.core-layout .muted,
.page-hero > p:not(.eyebrow),
.process p,
.statement p:last-child,
.credits > p:not(.eyebrow),
.core-options p,
.game-caption p {
  font-size: 18px;
  line-height: 1.9;
}
.small,
form label,
form .small,
.button,
.text-link {
  font-size: 15px;
}
.eyebrow {
  font-size: 12px;
}
footer p,
footer small,
footer > a:last-child {
  font-size: 13px;
}
.site-header .nav-side a[href="corehex/"]:hover,
.mobile-nav a[href="corehex/"]:hover,
.site-header a[href="corehex/"][aria-current] {
  color: #369eff;
  background: #1683ed12;
}
.site-header a[href="corehex/"][aria-current]:after {
  background: #369eff;
}
.core-section {
  background: linear-gradient(135deg, #f0fbff, #dfeefa);
  --red: #1683df;
  color: #102c4b;
}
.core-section em {
  color: #147bd0;
}
.core-section .text-link {
  color: #1269b4;
}
.core-art {
  background: radial-gradient(ellipse, #fff, #b9e9fb22 70%);
}
.system-pill {
  border-color: #a8d8ef;
  color: #14518b;
}
.system-pill span {
  color: #147bd0;
}
.core-logo {
  width: 210px;
  height: 210px;
  object-fit: contain;
  border-radius: 24px;
}
.core-art .hex {
  display: none;
}
body.corehex-page {
  --red: #1683df;
}
.corehex-page .page-hero {
  background: radial-gradient(ellipse at 80% 30%, #07376366, transparent 65%);
}
.corehex-page .final-cta {
  background: radial-gradient(ellipse at 50% 100%, #07376355, transparent 65%);
}
@media (max-width: 700px) {
  .hero-copy > p:not(.eyebrow),
  .intro > p:last-child,
  .story-copy > p:not(.eyebrow),
  .core-layout p,
  .core-layout .muted,
  .page-hero > p:not(.eyebrow),
  .process p,
  .statement p:last-child,
  .credits > p:not(.eyebrow),
  .core-options p,
  .game-caption p {
    font-size: 17px;
  }
  .story-sticky {
    min-height: 760px;
  }
  .hero {
    padding-bottom: 420px;
  }
  .core-logo {
    width: 175px;
    height: 175px;
  }
}
/* Bilingual controls and accessible graphic assets */
:root {
  --punk: #83fd80;
}
.site-header {
  --red: #ff343b;
}
.site-header .nav-side a[href="corehex/"][aria-current],
.mobile-nav a[href="corehex/"][aria-current] {
  color: #ff343b;
  background: transparent;
}
.site-header a[href="corehex/"][aria-current]:after {
  background: #ff343b;
}
.site-header .nav-side a[href="corehex/"]:hover,
.mobile-nav a[href="corehex/"]:hover {
  color: #369eff;
  background: #1683ed12;
}
.site-header .menu:hover span {
  background: #ff343b;
}
.language-switch {
  position: absolute;
  left: 16px;
  top: 35px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #ffffff40;
  border-radius: 4px;
  background: #121212b0;
  color: white;
  padding: 8px;
  font:
    12px "Anuphan",
    sans-serif;
  z-index: 3;
}
.flag {
  width: 24px;
  height: 16px;
}
.nav-shell {
  max-width: 1400px;
  padding-left: 65px;
}
.studio-mark {
  width: 34px;
  height: 34px;
  display: inline-block;
  vertical-align: middle;
}
.ticker .studio-mark {
  width: 24px;
  height: 24px;
}
.ticker {
  background: var(--punk);
  color: #101010;
}
.status-dot {
  background: var(--punk);
}
.tag {
  border-color: #83fd8050;
}
.button:hover {
  background: var(--punk);
  color: #101010;
}
.text-link {
  background: #242424;
  border: 1px solid #ffffff35;
  border-radius: 3px;
  padding: 14px 20px;
  text-decoration: none;
}
.text-link:hover {
  background: var(--punk);
  color: #111;
  border-color: var(--punk);
}
.core-section .text-link {
  background: #156dbb;
  color: #fff;
  border: 0;
}
.core-section .text-link:hover {
  background: #0c4f90;
}
.button span:empty {
  display: none;
}
html[lang="th"] body,
html[lang="th"] h1,
html[lang="th"] h2,
html[lang="th"] h3,
html[lang="th"] .eyebrow {
  font-family: "Anuphan", sans-serif;
}
html[lang="th"] h1,
html[lang="th"] h2 {
  letter-spacing: -0.035em;
  line-height: 1.12;
}
p,
.hero-copy > p:not(.eyebrow),
.intro > p:last-child,
.story-copy > p:not(.eyebrow),
.core-layout p,
.core-layout .muted,
.page-hero > p:not(.eyebrow),
.process p,
.statement p:last-child,
.credits > p:not(.eyebrow),
.core-options p,
.game-caption p {
  font-size: 20px;
  line-height: 1.85;
}
html[lang="th"] p {
  font-size: 22px;
}
.story-copy h2 {
  min-height: 2.4em;
}
.core-catalog {
  padding: 100px 6%;
  background: #edf7ff;
  color: #102c4b;
  --red: #167cda;
}
.catalog-heading {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
}
.catalog-heading h2 {
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.core-catalog h3 {
  font-family: "Anuphan", sans-serif;
  font-size: 26px;
}
.core-catalog p {
  font-family: "Anuphan", sans-serif;
}
.category-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 35px 0;
}
.category-tab {
  padding: 12px 24px;
  font:
    18px "Anuphan",
    sans-serif;
  background: #fff;
  border: 1px solid #a5c7e1;
  border-radius: 4px;
  color: #17446c;
}
.category-tab.active {
  background: #146dba;
  color: white;
  border-color: #146dba;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  padding: 28px;
  border: 1px solid #c1d9ed;
  border-radius: 12px;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.product-card[hidden] {
  display: none;
}
.product-card img {
  width: 100%;
  height: 105px;
  object-fit: contain;
  object-position: left center;
}
.product-card p {
  font-size: 18px;
}
.product-card .button {
  align-self: flex-start;
  margin-top: auto;
  background: #146dba;
  color: white;
}
.adoption {
  margin: 50px 0;
  padding: 30px;
  background: #dceeff;
  border-left: 4px solid #187fd8;
}
.comparison {
  padding: 50px 0;
}
.comparison h2 {
  font-size: clamp(32px, 4vw, 54px);
  margin-bottom: 30px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font:
    18px/1.7 "Anuphan",
    sans-serif;
}
th,
td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid #bad3e6;
  min-width: 180px;
}
thead {
  background: #d6ebfd;
}
td:nth-child(2) {
  color: #0b609e;
}
.developer-credit {
  border-top: 1px solid #bed5e8;
  padding-top: 30px;
}
.developer-credit p {
  font-size: 16px;
}
.corehex-page .button {
  background: #167cda;
}
.corehex-page .site-header a:hover {
  color: #ff343b;
}
.corehex-page .site-header a[href="corehex/"]:hover {
  color: #369eff;
}
@media (max-width: 1000px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-shell {
    padding-left: 60px;
  }
  .site-header .nav-side a {
    font-size: 12px;
    padding: 10px 4px;
  }
}
@media (max-width: 850px) {
  .language-switch {
    top: 26px;
    left: 12px;
  }
  .nav-shell {
    padding-left: 0;
  }
  .site-header .menu {
    grid-column: 3;
    justify-self: end;
  }
  .nav-brand {
    grid-column: 2;
  }
  .site-header.is-scrolled .language-switch {
    top: 22px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .catalog-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .core-catalog {
    padding: 65px 6%;
  }
  .product-card {
    padding: 25px;
  }
  .category-tab {
    padding: 10px 15px;
    font-size: 17px;
  }
}
@media (max-width: 700px) {
  html[lang="th"] p {
    font-size: 20px;
  }
  .hero-copy > p:not(.eyebrow),
  .intro > p:last-child,
  .story-copy > p:not(.eyebrow),
  .core-layout p,
  .core-layout .muted,
  .page-hero > p:not(.eyebrow),
  .process p,
  .statement p:last-child,
  .credits > p:not(.eyebrow),
  .core-options p,
  .game-caption p {
    font-size: 19px;
  }
  .actions {
    flex-wrap: wrap;
    gap: 12px;
  }
  .story-sticky {
    min-height: 850px;
  }
  .hero {
    padding-bottom: 440px;
  }
  .story-copy h2 {
    font-size: 38px;
  }
}
.site-header .nav-side a[href="corehex/"]:hover,
.corehex-page .site-header .nav-side a[href="corehex/"]:hover,
.mobile-nav a[href="corehex/"]:hover {
  color: #369eff !important;
}

/* ส่วนท้ายร่วมกันทุกหน้า */
.studio-footer {
  display: grid;
  margin: 0;
  gap: 24px;
  padding: clamp(32px, 5vw, 72px) 6% 28px;
  color: #fff;
  background: linear-gradient(115deg, #39151a, #160e10 65%, #0c0b0d);
}
.footer-signature,
.footer-wordmark,
.footer-base,
.footer-channels {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-signature::after {
  content: "";
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff343b, #581f26 80%, transparent);
}
.footer-wordmark {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(16px, 3vw, 30px);
  gap: 10px;
}
.footer-wordmark span {
  color: #ff555b;
}
.footer-details p {
  color: #eee0e2;
  margin: 0 0 16px;
  font-size: 1rem;
}
.footer-channels,
.footer-base {
  flex-wrap: wrap;
}
.footer-channels a,
.footer-base a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid #88535a;
  border-radius: 999px;
  overflow-wrap: anywhere;
}
.footer-channels a[hidden] {
  display: none;
}
.studio-footer a:hover,
.studio-footer a:focus-visible {
  color: #83fd80;
}
.footer-base {
  border-top: 1px solid #58343a;
  padding-top: 20px;
  justify-content: space-between;
}
.footer-base small {
  color: #cfbbbe;
  font-size: 0.875rem;
}

.site-header .brand-fallback[hidden],
.footer-wordmark .brand-fallback[hidden] {
  display: none;
}
.footer-wordmark .brand-image {
  width: min(210px, 50vw);
  max-width: 100%;
  height: auto;
}
