/* ==========================================================================
   FM5 — ระบบดีไซน์ HUD แบบร้านค้าเกม
   จุดเด่น: มุมตัดเฉียง (ตัดมุมขวาบนและซ้ายล่าง)
   ========================================================================== */

/* 1. นำเข้าฟอนต์ */
@import url('https://fonts.cdnfonts.com/css/pricedown');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,600&family=Space+Mono:wght@400;700&family=Chakra+Petch:wght@500;600;700&display=swap');

:root {
  color-scheme: dark;

  /* จานสีคาร์บอนและสเลตโทนบรรยากาศแบบแท็กติคัล */
  --bg-main: #070c12;
  --bg-card: #0c1522;
  --bg-card-hover: #121e30;
  --bg-elevated: #152438;
  --bg-hud: rgba(10, 18, 28, 0.85);

  /* สีเน้นแบบนีออนและสีเน้นในเกม */
  --blue: #0ea5e9;
  --blue-hover: #0284c7;
  --cyan: #00f0ff;
  --cyan-bright: #38bdf8;
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.35);
  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.35);
  --red: #ef4444;
  --discord: #5865F2;
  --discord-hover: #4752c4;
  --whatsapp: #25D366;
  --whatsapp-hover: #1ebc57;

  /* สีข้อความ */
  --text-1: #f1f8fe;
  --text-2: #8cb2d3;
  --text-3: #537593;
  --text-muted: #3d5872;

  /* โทเคนตัวอักษร (Typography) */
  --font-brand: 'Pricedown', 'Outfit', sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-label: 'Space Mono', 'Chakra Petch', monospace;
  --font-hud: 'Chakra Petch', 'Space Mono', monospace;

  /* ระยะห่างแบบรีสปอนซีฟ */
  --space-section: clamp(4.5rem, 8vw, 8rem);
  --space-section-head: clamp(2rem, 4vw, 3.5rem);
  --space-grid-gap: clamp(1.2rem, 2.5vw, 2rem);
  --space-container-px: clamp(1.25rem, 4vw, 2.5rem);

  /* clip-path มุมตัดแบบแท็กติคัล (ตัดเฉียงขวาบนและซ้ายล่าง) */
  --clip-game-sm: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  --clip-game-btn: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  --clip-game-card: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  --clip-game-lg: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}


html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-main);
  font-size: 16px;
  overflow-x: clip;
}

body {
  background-color: var(--bg-main);
  color: var(--text-1);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* ทรวดทรางพื้นฐาน */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-1);
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.font-hud {
  font-family: var(--font-hud) !important;
}

.font-label {
  font-family: var(--font-label) !important;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-container-px);
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   ตัวบอกความคืบหน้าการเลื่อนด้านบน (เร่งด้วยฮาร์ดแวร์ GPU)
   ========================================================================== */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(7, 12, 18, 0.7);
  z-index: 10000;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #0284c7, #0ea5e9, #00f0ff);
  box-shadow: 0 1px 6px rgba(14, 165, 233, 0.4);
  will-change: transform;
}

/* ==========================================================================
   พื้นหลังพารัลแลกซ์บรรยากาศ
   ========================================================================== */
.page-parallax-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  top: -6vh;
  left: 0;
  width: 100%;
  height: 112vh;
  will-change: transform;
  pointer-events: none;
}

/* เลเยอร์ 1: พื้นผิวเท็กซ์เจอร์เมทริกซ์ HUD แบบแท็กติคัล */
.parallax-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  background-repeat: repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 1) 85%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 1) 15%, rgba(0, 0, 0, 1) 85%, transparent 100%);
  opacity: 0.4;
}

/* เลเยอร์ 2: ภาพเมืองบรรยากาศลึก */
.parallax-city {
  background-image:
    linear-gradient(180deg, #070c12 0%, rgba(7, 12, 18, 0.88) 15%, rgba(7, 12, 18, 0.72) 45%, rgba(7, 12, 18, 0.92) 80%, #070c12 100%),
    radial-gradient(ellipse at 50% 50%, rgba(14, 165, 233, 0.06) 0%, rgba(7, 12, 18, 0.95) 85%),
    url('../assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.28;
}

.parallax-beam {
  display: none;
}

.parallax-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.parallax-orb-1 {
  width: 600px;
  height: 600px;
  top: 8%;
  right: -5%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, rgba(14, 165, 233, 0.02) 45%, transparent 70%);
}

.parallax-orb-2 {
  width: 650px;
  height: 650px;
  top: 48%;
  left: -10%;
  background: radial-gradient(circle, rgba(30, 64, 175, 0.06) 0%, rgba(14, 165, 233, 0.015) 50%, transparent 70%);
}

/* ==========================================================================
   ส่วนหัว (ส่วนหัวแบบ HUD เกม พร้อมปุ่มเสียง)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(7, 12, 18, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, background 0.3s ease;
  will-change: transform, opacity;
}

.site-header.header-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.site-header.scrolled {
  background: rgba(7, 12, 18, 0.75);
  border-bottom: 1px solid rgba(14, 165, 233, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  height: 60px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: transform 0.2s ease;
}

.brand-link:hover {
  transform: translateY(-1px);
}

.brand-icon {
  width: 32px;
  height: 32px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  clip-path: var(--clip-game-sm);
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text {
  font-family: var(--font-brand);
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-menu a {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-2);
  padding: 0.35rem 0;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-key {
  font-family: var(--font-label);
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
  font-weight: 700;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.6);
  transition: width 0.25s ease;
}

.nav-menu a:hover {
  color: #fff;
}

.nav-menu a:hover .nav-key {
  color: var(--cyan);
}

.nav-menu a:hover::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ปุ่มเสียงแบบ HUD */
.hud-audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(12, 21, 34, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-2);
  padding: 0.42rem 0.8rem;
  font-family: var(--font-hud);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  clip-path: var(--clip-game-sm);
  transition: all 0.2s ease;
}

.hud-audio-btn:hover {
  background: rgba(18, 30, 48, 0.95);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-1px);
}

.hud-audio-btn.muted {
  color: var(--text-3);
  border-color: rgba(255, 255, 255, 0.06);
}

.hud-audio-btn.muted .audio-on-icon {
  display: none !important;
}

.hud-audio-btn.muted .audio-off-icon {
  display: inline-block !important;
  color: var(--red);
}

/* ==========================================================================
   ปุ่มต่าง ๆ (สไตล์ HUD เกม ตัดมุมขวาบนและซ้ายล่าง)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.6rem;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  clip-path: var(--clip-game-btn);
  transition: background-color 0.2s ease, transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hud-btn {
  clip-path: var(--clip-game-btn);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 3px 12px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
  background: var(--blue-hover);
  border-color: var(--cyan);
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.5);
  transform: translateY(-2px);
}

.btn-key-badge {
  font-family: var(--font-hud);
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.1rem 0.4rem;
  letter-spacing: 0.05em;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  clip-path: var(--clip-game-sm);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-1);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-discord {
  background: var(--discord);
  color: #fff;
}

.btn-discord:hover {
  background: var(--discord-hover);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.95rem 2.4rem;
  font-size: 1.15rem;
  font-weight: 800;
  clip-path: var(--clip-game-lg);
}

.btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  clip-path: var(--clip-game-sm);
}

/* ==========================================================================
   ส่วน HERO และแถบ HUD มาตรวัดเซิร์ฟเวอร์
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: clamp(80px, 12vh, 120px);
  padding-bottom: clamp(50px, 8vh, 90px);
  overflow: hidden;
}

.hero-bg-parallax {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  background-image:
    linear-gradient(180deg, rgba(7, 12, 18, 0.35) 0%, rgba(7, 12, 18, 0.6) 45%, rgba(7, 12, 18, 0.92) 80%, #070c12 100%),
    url('../assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  will-change: transform;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(160px, 25vh, 280px);
  background: linear-gradient(180deg, transparent 0%, rgba(7, 12, 18, 0.4) 35%, rgba(7, 12, 18, 0.88) 75%, #070c12 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  margin: auto 0;
  position: relative;
  z-index: 2;
  will-change: transform, opacity;
}

/* แถบ HUD มาตรวัดเซิร์ฟเวอร์แบบเรียลไทม์ (ตัดมุมขวาบนและซ้ายล่าง) */
.server-telemetry-hud {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  background: rgba(10, 18, 28, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.48rem 1.1rem;
  clip-path: var(--clip-game-sm);
  width: fit-content;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.server-telemetry-hud:hover {
  border-color: rgba(14, 165, 233, 0.45);
  transform: translateY(-1px);
}

.telemetry-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.telemetry-label {
  font-family: var(--font-label);
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 700;
}

.telemetry-val {
  font-weight: 700;
  font-size: 0.82rem;
}

.telemetry-divider {
  color: rgba(255, 255, 255, 0.15);
  font-family: var(--font-label);
  font-size: 0.8rem;
}

/* จุดเรดาร์แบบพัลส์ */
.radar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 var(--emerald-glow);
  animation: radarPulse 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
  display: inline-block;
}

@keyframes radarPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hero-left {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-family: var(--font-brand);
  font-size: clamp(3.4rem, 6.8vw, 5.4rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 0.96;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
}

.hero-title-city {
  color: var(--text-2);
  font-weight: 500;
}

.hero-typewriter-text {
  color: var(--blue);
}

.typewriter-container {
  display: inline-flex;
  align-items: baseline;
  position: relative;
}

.typewriter-cursor {
  display: inline-block;
  width: 0.08em;
  height: 0.82em;
  background-color: var(--blue);
  margin-left: 0.08em;
  vertical-align: -0.04em;
  animation: blinkCursor 0.85s infinite ease-in-out;
}

@keyframes blinkCursor {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.text-accent {
  color: var(--blue);
}

.text-cyan {
  color: var(--cyan);
}

.text-emerald {
  color: var(--emerald);
}

.text-amber {
  color: var(--amber);
}

.text-discord {
  color: var(--discord);
}

.text-whatsapp {
  color: var(--whatsapp);
}

.text-white {
  color: #ffffff;
}

.text-muted {
  color: var(--text-3);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.75rem;
}

.pill-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-2);
  transition: color 0.15s ease;
}

.pill-item:hover {
  color: #fff;
}

.pill-item strong {
  color: var(--text-1);
  font-weight: 800;
}

.pill-item svg {
  color: var(--blue);
  flex-shrink: 0;
}

.hero-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-action-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.hero-right .btn {
  padding: 1.15rem 2.8rem;
  font-size: 1.25rem;
  font-weight: 800;
  clip-path: var(--clip-game-lg);
}

.hero-subnote {
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

.scroll-indicator {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-3);
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: bounceCue 2.2s infinite ease-in-out;
  transition: color 0.2s ease;
  cursor: pointer;
  z-index: 3;
}

.scroll-indicator:hover {
  color: var(--blue);
}

@keyframes bounceCue {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(6px);
  }

  60% {
    transform: translateX(-50%) translateY(3px);
  }
}

/* ==========================================================================
   อนิเมชันแสดงผลเมื่อเลื่อนถึง (เร่งด้วยฮาร์ดแวร์ GPU)
   ========================================================================== */
.reveal,
.reveal-up,
.reveal-fade,
.reveal-scale,
.reveal-left,
.reveal-right,
.reveal-3d,
.reveal-scale-3d {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active,
.reveal-up.active,
.reveal-fade.active,
.reveal-scale.active,
.reveal-left.active,
.reveal-right.active,
.reveal-3d.active,
.reveal-scale-3d.active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-stagger-3d>*,
.reveal-stagger>* {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-stagger-3d.active>*,
.reveal-stagger.active>* {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-stagger-3d.active>*:nth-child(1) {
  transition-delay: 0.04s;
}

.reveal-stagger-3d.active>*:nth-child(2) {
  transition-delay: 0.08s;
}

.reveal-stagger-3d.active>*:nth-child(3) {
  transition-delay: 0.12s;
}

.reveal-stagger-3d.active>*:nth-child(4) {
  transition-delay: 0.16s;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress-bar {
    display: none !important;
  }

  .reveal,
  .reveal-up,
  .reveal-fade,
  .reveal-scale,
  .reveal-left,
  .reveal-right,
  .reveal-3d,
  .reveal-scale-3d,
  .reveal-stagger>*,
  .reveal-stagger-3d>* {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   ส่วนต่าง ๆ และตัวอักษร
   ========================================================================== */
.section {
  padding: var(--space-section) 0;
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 25%, rgba(56, 189, 248, 0.15) 50%, rgba(255, 255, 255, 0.05) 75%, transparent 100%);
  pointer-events: none;
}

#download {
  padding-top: clamp(3rem, 6vw, 5rem);
  position: relative;
}

#download::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(120px, 18vh, 200px);
  background: linear-gradient(180deg, #070c12 0%, rgba(7, 12, 18, 0.6) 50%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-section-head);
}

.section-tag-badge {
  font-family: var(--font-hud);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.section-sub {
  font-family: var(--font-body);
  color: var(--text-2);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

/* ==========================================================================
   ระบบการ์ด HUD แบบเกม และแครูเซลดาวน์โหลด (ตัดมุมขวาบนและซ้ายล่าง)
   ========================================================================== */
.game-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  clip-path: var(--clip-game-card);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  border-color: rgba(14, 165, 233, 0.35);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 20px rgba(14, 165, 233, 0.12);
}

.hud-corner {
  clip-path: var(--clip-game-card);
}

.card-corner-tag {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-hud);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.85rem;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
  z-index: 5;
}

.card-corner-tag.tag-soon {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-left: 1px solid rgba(245, 158, 11, 0.3);
}

.download-carousel-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.download-carousel-track {
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: var(--space-grid-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0.25rem 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.download-carousel-track::-webkit-scrollbar {
  display: none;
}

.download-card {
  position: relative;
  flex: 0 0 calc(33.333% - (var(--space-grid-gap) * 2 / 3));
  min-width: 270px;
  max-width: 330px;
  scroll-snap-align: start;
  clip-path: var(--clip-game-card);
  background-color: var(--bg-card);
  /* border: 1px solid rgba(255, 255, 255, 0.08); */
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.download-card:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(14, 165, 233, 0.35);
  transform: translateY(-4px);
}

.icon-card {
  padding: 2.5rem 1.85rem;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  justify-content: space-between;
  gap: 1.5rem;
  overflow: hidden;
}

.icon-card-sym {
  color: var(--blue);
  transition: transform 0.2s ease;
}

.icon-card:hover .icon-card-sym {
  transform: scale(1.08);
}

.icon-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.icon-card-meta {
  font-size: 0.78rem;
  color: var(--text-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-top: 0.2rem;
}

.icon-card-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.5;
  margin-top: 0.65rem;
}

/* แถบคุณสมบัติสเปกแบบในเกม */
.card-spec-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.spec-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.spec-bar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-label);
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.spec-bar-label strong {
  color: var(--text-1);
}

.spec-meter {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  clip-path: var(--clip-game-sm);
  overflow: hidden;
}

.spec-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.icon-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.icon-card-features li {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.icon-card-features li svg {
  color: var(--blue);
  flex-shrink: 0;
}

/* การ์ด "เร็ว ๆ นี้" */
.icon-card.card-soon {
  opacity: 0.6;
  filter: grayscale(0.5);
  background: rgba(8, 14, 22, 0.65);
  border-color: rgba(255, 255, 255, 0.04);
}

.icon-card.card-soon:hover {
  opacity: 0.85;
  filter: grayscale(0.15);
  background: rgba(12, 19, 28, 0.85);
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-2px);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-family: var(--font-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  text-transform: uppercase;
  clip-path: var(--clip-game-sm);
}

.badge-status.soon {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* ปุ่มควบคุมแครูเซลดาวน์โหลด (มุมซ้ายล่าง) */
.download-carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  justify-content: flex-start;
}

.download-nav-btn {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  /*  border: 1px solid rgba(255, 255, 255, 0.1); */
  color: var(--text-1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  clip-path: var(--clip-game-btn);
  transition: all 0.2s ease;
}

.download-nav-btn:hover {
  background: var(--blue);
  border-color: var(--cyan);
  color: #fff;
  transform: translateY(-2px);
}

.download-nav-btn:active {
  transform: translateY(0) scale(0.95);
}

.hud-subtle-hint {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-left: 0.5rem;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   แครูเซลม็อกอัพสมาร์ตโฟนแบบ 3D COVERFLOW
   ========================================================================== */
.phone-carousel-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.phone-carousel-track {
  width: calc(100% + (2 * var(--space-container-px)));
  margin-left: calc(-1 * var(--space-container-px));
  margin-right: calc(-1 * var(--space-container-px));
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2vw, 2rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 2.5rem var(--space-container-px) 3rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  perspective: 1200px;
}

.phone-carousel-track::-webkit-scrollbar {
  display: none;
}

.phone-mockup {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: clamp(380px, 46vw, 520px);
  max-width: 80vw;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, filter 0.35s ease;
  will-change: transform, opacity;
  transform: perspective(900px) rotateY(10deg) scale(0.92);
  opacity: 0.6;
  filter: brightness(0.75);
  cursor: pointer;
}

.phone-mockup.active-slide {
  transform: perspective(900px) rotateY(0deg) scale(1);
  opacity: 1;
  filter: brightness(1);
  z-index: 10;
}

.phone-mockup.prev-slide {
  transform: perspective(900px) rotateY(10deg) scale(0.92);
  opacity: 0.7;
  filter: brightness(0.82);
}

.phone-mockup.next-slide {
  transform: perspective(900px) rotateY(-10deg) scale(0.92);
  opacity: 0.7;
  filter: brightness(0.82);
}

.phone-frame {
  position: relative;
  background: #081018;
  border: 6px solid #132130;
  border-radius: 26px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.phone-mockup.active-slide .phone-frame {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(14, 165, 233, 0.2);
}

/* ป้าย HUD ซ้อนทับบนม็อกอัพ */
.phone-hud-overlay {
  position: absolute;
  inset: 0;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 8;
  pointer-events: none;
}

.hud-tag-cam {
  font-family: var(--font-hud);
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  padding: 0.15rem 0.45rem;
  letter-spacing: 0.06em;
  border-left: 2px solid var(--red);
  clip-path: var(--clip-game-sm);
}

.hud-tag-loc {
  font-family: var(--font-hud);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(0, 0, 0, 0.65);
  padding: 0.15rem 0.45rem;
  letter-spacing: 0.06em;
  clip-path: var(--clip-game-sm);
}

.phone-camera-hole {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #03060a;
  border: 1.5px solid #1a2c3f;
  z-index: 10;
}

.phone-home-indicator {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 3.5px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.25);
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(110deg, #070c12 8%, #152438 18%, #070c12 33%);
  background-size: 200% 100%;
  animation: imgSkeletonShimmer 1.8s infinite linear;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.phone-screen.loaded {
  animation: none;
  background: #000;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 20px;
  opacity: 0;
  filter: blur(10px);
  transform: scale(1.02);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, filter, transform;
}

.phone-screen img.is-loaded {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

@keyframes imgSkeletonShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

img[loading="lazy"]:not(.phone-screen img) {
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.5s ease, filter 0.5s ease;
}

img[loading="lazy"].is-loaded:not(.phone-screen img) {
  opacity: 1;
  filter: blur(0);
}

.phone-carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  justify-content: flex-start;
}

.phone-nav-btn {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  clip-path: var(--clip-game-btn);
  transition: all 0.2s ease;
}

.phone-nav-btn:hover {
  background: var(--blue);
  border-color: var(--cyan);
  color: #fff;
  transform: translateY(-2px);
}

.phone-nav-btn:active {
  transform: translateY(0) scale(0.95);
}

.phone-carousel-counter {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-3);
  margin-left: 0.5rem;
  letter-spacing: 0.05em;
}

.phone-carousel-counter #phone-current-idx {
  color: var(--blue);
  font-weight: 800;
}

/* ==========================================================================
   บันทึกเควสต์แบบอินเทอร์แอกทีฟและภารกิจเริ่มต้น (ตัดมุมขวาบนและซ้ายล่าง)
   ========================================================================== */
.quest-tracker-panel {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem 1.6rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  clip-path: var(--clip-game-card);
}

.quest-tracker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.quest-tracker-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-hud);
  font-size: 0.88rem;
  color: var(--text-2);
  letter-spacing: 0.05em;
}

.quest-tracker-title strong {
  color: #fff;
  font-weight: 800;
}

.quest-rank-badge {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: var(--cyan);
  padding: 0.25rem 0.75rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  clip-path: var(--clip-game-sm);
}

.quest-meter-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.quest-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.icon-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-grid-gap);
}

.icon-step-card {
  padding: clamp(1.75rem, 2.5vw, 2.4rem) clamp(1.35rem, 2vw, 1.85rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
  clip-path: var(--clip-game-card);
}

.step-card-hud-num {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.icon-step-card:hover .step-card-hud-num,
.icon-step-card.active-quest-step .step-card-hud-num {
  color: rgba(14, 165, 233, 0.25);
}

.icon-step-card.active-quest-step {
  border-color: rgba(14, 165, 233, 0.45);
  background: rgba(18, 30, 48, 0.95);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45), 0 0 20px rgba(14, 165, 233, 0.15);
}

.step-badge {
  font-size: 0.68rem;
  color: var(--blue);
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.step-icon-wrap {
  width: 44px;
  height: 44px;
  background: rgba(14, 165, 233, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  border: 1px solid rgba(56, 189, 248, 0.18);
  clip-path: var(--clip-game-sm);
  transition: all 0.2s ease;
}

.icon-step-card:hover .step-icon-wrap,
.icon-step-card.active-quest-step .step-icon-wrap {
  transform: scale(1.06);
  background: rgba(14, 165, 233, 0.18);
  border-color: var(--cyan);
  color: #fff;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.step-tag {
  font-size: 0.8rem;
  color: var(--text-3);
  letter-spacing: 0.03em;
  display: block;
  margin-top: 0.25rem;
}

.step-check-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: var(--text-3);
  margin-top: auto;
}

.step-check-indicator .check-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
}

.icon-step-card.active-quest-step .step-check-indicator {
  color: var(--emerald);
}

.icon-step-card.active-quest-step .step-check-indicator .check-dot {
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}

/* ป้ายเควสต์สำเร็จ */
.quest-complete-banner {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(16, 185, 129, 0.12) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 1.85rem 2rem;
  margin-top: 2.2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  display: none;
  clip-path: var(--clip-game-card);
  animation: fadeIn 0.4s ease forwards;
}

.quest-complete-banner.show {
  display: block;
}

.quest-complete-banner .banner-badge {
  color: var(--emerald);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.quest-complete-banner h3 {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

.quest-complete-banner p {
  color: var(--text-2);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   ส่วน FAQ (เทอร์มินัลซัพพอร์ต พร้อมมุมตัด)
   ========================================================================== */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.2vw, 1rem);
}

.faq-row {
  overflow: hidden;
  clip-path: var(--clip-game-card);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq-row:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.faq-row.open {
  border-color: rgba(14, 165, 233, 0.45);
  background: rgba(18, 30, 48, 0.95);
}

.faq-q {
  width: 100%;
  padding: clamp(1.2rem, 2vw, 1.55rem) clamp(1.4rem, 2.5vw, 1.9rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  text-align: left;
}

.faq-index {
  font-size: 0.85rem;
  color: var(--blue);
  margin-right: 0.4rem;
}

.faq-chevron {
  color: var(--text-3);
  transition: transform 0.25s ease, color 0.2s ease;
  flex-shrink: 0;
}

.faq-row.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--blue);
}

.faq-a {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.25s ease, padding 0.25s ease;
  font-family: var(--font-body);
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-row.open .faq-a {
  max-height: 250px;
  opacity: 1;
  padding: 0 clamp(1.4rem, 2.5vw, 1.9rem) clamp(1.2rem, 2vw, 1.55rem);
}

/* ==========================================================================
   ส่วนท้าย (แบบก็อกพิตแท็กติคัล)
   ========================================================================== */
.footer {
  background: #04070b;
  padding: clamp(4rem, 7vw, 7rem) 0 clamp(1.75rem, 3.5vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(1.75rem, 3vw, 3rem);
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.footer-col h5,
.footer-grid h5 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  color: #fff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--text-3);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-hud-telemetry {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 0.85rem;
  letter-spacing: 0.06em;
}

/* แถบช็อตคัตของเกมเมอร์ */
.gamer-shortcuts-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.4rem;
  padding: 0.85rem 1.25rem;
  background: rgba(10, 18, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
  color: var(--text-3);
  margin-bottom: 1.5rem;
  clip-path: var(--clip-game-sm);
}

.gamer-shortcuts-bar .shortcut-title {
  color: var(--blue);
  font-weight: 700;
}

.gamer-shortcuts-bar kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  color: #fff;
  font-weight: 700;
  margin-right: 0.25rem;
}

/* ==========================================================================
   แถวป้ายเรตติ้ง/ข้อมูล (สี่เหลี่ยมขาวดำเรียบง่าย)
   ========================================================================== */
.rockstar-badges-row {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.rockstar-badge-card {
  display: flex;
  flex-direction: column;
  background: #000000;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  flex: 1 1 250px;
  max-width: 340px;
  min-width: 240px;
  box-sizing: border-box;
  user-select: none;
}

.rockstar-badge-main {
  display: flex;
  align-items: stretch;
  flex: 1;
}

.rockstar-badge-symbol {
  width: 82px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.35rem;
  border-right: 2px solid #ffffff;
  background: #000000;
  text-align: center;
}

.rockstar-symbol-hero {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 0.88;
  font-family: 'Times New Roman', Times, Georgia, serif;
  color: #ffffff;
  display: block;
}

.rockstar-badge-symbol svg {
  color: #ffffff;
}

.rockstar-symbol-sub {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-top: 0.35rem;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rockstar-badge-desc {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0.65rem;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  gap: 0.15rem;
  background: #000000;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.rockstar-badge-bar {
  background: #ffffff;
  color: #000000;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.18rem 0.5rem;
  border-top: 2px solid #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-3);
  font-size: 0.82rem;
  font-family: var(--font-body);
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* การแจ้งเตือนแบบ Toast */
.toast-box {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: rgba(12, 21, 32, 0.98);
  border: 1px solid rgba(14, 165, 233, 0.3);
  padding: 0.95rem 1.35rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-size: 0.9rem;
  font-family: var(--font-body);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  transform: translateX(130%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: relative;
  overflow: hidden;
  clip-path: var(--clip-game-sm);
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
  width: 100%;
  animation: toastTimer 2.8s linear forwards;
}

@keyframes toastTimer {
  0% {
    width: 100%;
  }

  100% {
    width: 0%;
  }
}

/* ปุ่มลอยช่องทางชุมชน (ตัดมุมขวาบนและซ้ายล่าง) */
.discord-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  background: var(--discord);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  text-decoration: none;
  cursor: pointer;
  clip-path: var(--clip-game-btn);
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
}

.discord-fab:hover {
  background: var(--discord-hover);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
}

.discord-fab:active {
  transform: scale(0.96);
}

/* ==========================================================================
   ดีไซน์รีสปอนซีฟ (ปรับสำหรับมือถือก่อน แล้วจึงเป็นแท็บเล็ต)
   ========================================================================== */
@media (max-width: 900px) {
  .icon-steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 850px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-left {
    text-align: center;
    align-items: center;
  }

  .server-telemetry-hud {
    margin: 0 auto;
  }

  .hero-pills {
    display: none;
  }

  .hero-right {
    justify-content: center;
    margin-top: 1rem;
  }

  .hero-action-box {
    align-items: center;
    width: 100%;
  }

  .hero-right .btn {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .site-header {
    display: none !important;
  }

  .hero {
    padding-top: clamp(2.5rem, 8vh, 4.5rem);
  }

  .phone-carousel-track {
    padding: 1.5rem var(--space-container-px) 2rem;
    gap: 0.75rem;
  }

  .phone-mockup {
    width: 78vw;
    max-width: 320px;
    transform: perspective(500px) rotateY(4deg) scale(0.95);
    opacity: 0.65;
    filter: brightness(0.85);
  }

  .phone-mockup.active-slide {
    transform: perspective(500px) rotateY(0deg) scale(1);
    opacity: 1;
    filter: brightness(1);
  }

  .phone-mockup.prev-slide {
    transform: perspective(500px) rotateY(4deg) scale(0.95);
    opacity: 0.65;
  }

  .phone-mockup.next-slide {
    transform: perspective(500px) rotateY(-4deg) scale(0.95);
    opacity: 0.65;
  }

  .phone-frame {
    border: 3.5px solid #142232;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }

  .phone-mockup.active-slide .phone-frame {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  }

  .phone-screen,
  .phone-screen img {
    border-radius: 12px;
  }

  .phone-camera-hole {
    left: 7px;
    width: 5px;
    height: 5px;
  }

  .phone-home-indicator {
    right: 6px;
    width: 2.5px;
    height: 22px;
  }

  .phone-nav-btn {
    width: 40px;
    height: 40px;
  }

  .discord-fab {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 48px;
    height: 48px;
  }

  .discord-fab svg {
    width: 24px;
    height: 24px;
  }

  .icon-steps-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
    text-align: left;
  }

  .footer-grid>div:first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    justify-content: space-between;
    text-align: left;
  }

  .gamer-shortcuts-bar {
    display: none;
  }
}

@media (max-width: 480px) {
  .download-card {
    flex: 0 0 84vw;
  }

  .download-nav-btn {
    width: 40px;
    height: 40px;
  }

  .phone-mockup {
    width: 80vw;
    max-width: 290px;
  }

  .phone-frame {
    border-width: 3px;
    border-radius: 14px;
  }

  .phone-screen,
  .phone-screen img {
    border-radius: 10px;
  }

  .phone-camera-hole {
    left: 5px;
    width: 4px;
    height: 4px;
  }

  .phone-home-indicator {
    right: 5px;
    width: 2px;
    height: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}