@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;900&display=swap');

:root {
  /* ===== COLOR PALETTE ===== */
  --purple:     #46acff;
  --purple-dim: #7c3aed;
  --blue:       #4f8ef7;
  --cyan:       #00d4ff;
  --pink:       #f547a8;
  --dark:       #050508;
  --dark-2:     #0d0d14;
  --dark-3:     #12121c;
  --card:       rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.07);
  --border:     rgba(255, 255, 255, 0.07);
  --border-glow:rgb(0, 89, 255);
  --text:       #e2e8f0;
  --text-dim:   #64748b;
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
}

/* ===== BACKGROUND NOISE TEXTURE ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, rgba(5, 11, 22, 0.8) 0%, rgba(20, 10, 30, 0.8) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 0.5px solid var(--border);
  transition: all 0.3s ease;
}

/* Navbar scroll effect — เพิ่ม shadow เมื่อ scroll */
.navbar.scrolled {
  /* 1. ยกเลิก border-image ที่มันดูแข็งสยัส! */
  border-bottom: 1px solid rgba(0, 102, 255, 0.2); 
  
  /* 2. บัดกรี Shadow ให้ฟุ้งแบบ Premium 8K */
  box-shadow: 
    0 4px 20px -5px rgba(0, 102, 255, 0.4), /* แสงสีฟ้าหลัก */
    0 10px 40px -10px rgba(125, 0, 255, 0.3); /* แสงม่วงซ้อนข้างล่างให้มีมิติ */
    
  /* 3. เพิ่มความหนืด (Glassmorphism) ให้กริบ 10/10 */
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(15px);
}
@keyframes breathe {
  0% { 
    /* เลเยอร์แสงแบบนุ่มนวลสไตล์ Silver-Blue */
    box-shadow: 
      0 4px 15px rgba(0, 102, 255, 0.2), 
      0 10px 30px rgba(125, 0, 255, 0.1),
      0 0 4px rgba(255, 255, 255, 0.1); /* แสงขาวบาง ๆ ให้ดูหรูสยัส! */
    filter: drop-shadow(0 0 2px rgba(0, 102, 255, 0.2));
  }
  50% { 
    /* จังหวะหายใจเข้า: แสงระเบิดออร่า Radiant! */
    box-shadow: 
      0 4px 25px rgba(0, 102, 255, 0.5), 
      0 15px 60px rgba(125, 0, 255, 0.3),
      0 0 10px rgba(255, 255, 255, 0.2); /* เพิ่มความ "เงา" สไตล์โลหะเงิน */
    filter: drop-shadow(0 0 8px rgba(0, 102, 255, 0.4));
  }
  100% { 
    box-shadow: 
      0 4px 15px rgba(0, 102, 255, 0.2), 
      0 10px 30px rgba(125, 0, 255, 0.1),
      0 0 4px rgba(255, 255, 255, 0.1);
    filter: drop-shadow(0 0 2px rgba(0, 102, 255, 0.2));
  }
}




/* TAR-01 section — red threat indicator */
.navbar.scrolled.navbar-tar01 {
  box-shadow: 0 4px 40px rgba(220, 38, 38, 0.5);
  border-image: linear-gradient(90deg, transparent, #dc2626, #ef4444, transparent) 1;
  animation: navTar01Breathe 5s infinite ease-in-out;
}

@keyframes navTar01Breathe {
  0%, 100% {
    box-shadow:
      0 4px 12px rgba(220,38,38,0.25),
      0 0 3px rgba(255,255,255,0.05);
    filter: drop-shadow(0 0 2px rgba(220,38,38,0.3));
  }
  50% {
    box-shadow:
      0 4px 35px rgba(220,38,38,0.65),
      0 10px 60px rgba(239,68,68,0.35),
      0 0 8px rgba(255,100,100,0.15);
    filter: drop-shadow(0 0 10px rgba(220,38,38,0.5));
  }
}


/* TAR-01 section — red threat indicator */
.navbar.scrolled.navbar-youtube {
  box-shadow: 0 4px 40px rgba(220, 38, 38, 0.5);
  border-image: linear-gradient(90deg, transparent, #dc2626, #ef4444, transparent) 1;
  animation: navYouTubeBreathe 5s infinite ease-in-out;
}

@keyframes navYouTubeBreathe {
  0%, 100% {
    box-shadow:
      0 4px 12px rgba(220,38,38,0.25),
      0 0 3px rgba(255,255,255,0.05);
    filter: drop-shadow(0 0 2px rgba(220,38,38,0.3));
  }
  50% {
    box-shadow:
      0 4px 35px rgba(220,38,38,0.65),
      0 10px 60px rgba(239,68,68,0.35),
      0 0 8px rgba(255,100,100,0.15);
    filter: drop-shadow(0 0 10px rgba(220,38,38,0.5));
  }
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  position: relative;
}

/* Glow dot หลัง logo */
.nav-logo::after {
  content: '●';
  font-size: 0.4rem;
  color: var(--cyan);
  vertical-align: super;
  margin-left: 3px;
  -webkit-text-fill-color: var(--cyan);
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.nav-links {
  display: flex;
  gap: 0.2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  color: white;
  background: rgba(184, 71, 245, 0.1);
}

/* Active page indicator */
.nav-links a.active {
  color: var(--purple);
  background: rgba(184, 71, 245, 0.1);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--purple);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--purple);
}

/* ...existing code... */

/* ==============================
   NAV LINKS — PILL ACTIVE + GLOW
   (ยกเว้น .nav-tar01 และ .nav-art)
============================== */
.nav-links a:not(.nav-tar01):not(.nav-art) {
  position: relative;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
}

/* hover */
.nav-links a:not(.nav-tar01):not(.nav-art):hover {
  color: rgba(255,255,255,0.85);
  background: rgba(184,71,245,0.08);
  border-color: rgba(184,71,245,0.15);
  box-shadow:
    0 0 12px rgba(184,71,245,0.12),
    inset 0 0 12px rgba(184,71,245,0.04);
  transform: translateY(-1px);
}

/* active */
.nav-links a:not(.nav-tar01):not(.nav-art).active {
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(184,71,245,0.18),
    rgba(0,212,255,0.10)
  );
  border-color: rgba(184,71,245,0.25);
  box-shadow:
    0 0 18px rgba(184,71,245,0.2),
    0 0 35px rgba(184,71,245,0.08),
    inset 0 0 16px rgba(184,71,245,0.06);
  text-shadow:
    0 0 10px rgba(184,71,245,0.6),
    0 0 22px rgba(0,212,255,0.2);
}

/* active — dot indicator บน pill */
.nav-links a:not(.nav-tar01):not(.nav-art).active::before {
  content: '';
  position: absolute;
  top: 4px;
  right: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b847f5;
  box-shadow: 0 0 6px rgba(184,71,245,0.9);
  animation: blink 1.5s ease-in-out infinite;
}

/* ...existing code... */



/* ===== LANGUAGE BUTTON ===== */
/* ...existing code... */

/* ==============================
   LANG BUTTON — EPIC VERSION
============================== */
.lang-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(184,71,245,0.25);
  background: rgba(184,71,245,0.05);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.8px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* shimmer layer */
  isolation: isolate;
}

/* animated gradient border */
.lang-btn::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  background: conic-gradient(
    from var(--angle, 0deg),
    #b847f5, #4f8ef7, #00d4ff, #f547a8, #b847f5
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: borderSpin 3s linear infinite paused;
  z-index: -1;
}

/* shimmer sweep */
.lang-btn::after {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 35%; height: 200%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0.12) 50%,
    transparent 60%
  );
  transform: skewX(-15deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.lang-btn:hover::after { left: 160%; }

/* hover state */
.lang-btn:hover {
  background: rgba(184,71,245,0.12);
  border-color: transparent;
  transform: scale(1.05);
  box-shadow:
    0 0 20px rgba(184,71,245,0.25),
    0 4px 16px rgba(79,142,247,0.15);
  color: white;
}

.lang-btn:hover::before {
  opacity: 1;
  animation-play-state: running;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes borderSpin {
  to { --angle: 360deg; }
}

/* globe icon */
.lang-btn-globe {
  font-size: 0.85rem;
  transition: transform 0.5s ease;
  display: inline-block;
}

.lang-btn:hover .lang-btn-globe {
  transform: rotate(180deg);
  animation: globeSpin 1.5s linear infinite;
}

@keyframes globeSpin {
  to { transform: rotate(360deg); }
}

/* flag */
.lang-btn-flag .flag-icon {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lang-btn:hover .lang-btn-flag .flag-icon {
  transform: scale(1.15);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* text */
.lang-btn-text {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* divider */
.lang-btn-divider {
  width: 1px;
  height: 12px;
  background: rgba(184,71,245,0.3);
  border-radius: 999px;
}

/* arrow */
.lang-btn-arrow {
  font-size: 0.65rem;
  color: var(--text-dim);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  line-height: 1;
  margin-top: 1px;
}

.lang-btn:hover .lang-btn-arrow {
  transform: translateY(2px);
  color: var(--purple);
}

/* click ripple */
.lang-btn:active {
  transform: scale(0.96);
}

/* ...existing code... */

/* ===== GLASS CARD ===== */
.glass-card {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: var(--card-hover);
  border-color: var(--border-glow);
  box-shadow: 0 8px 32px rgba(184, 71, 245, 0.1);
  transform: translateY(-2px);
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--cyan));
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientMove 4s ease infinite;
}

.gradient-text-pink {
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientMove 4s ease infinite;
}

@keyframes gradientMove {
  0%   { background-position: 0% }
  50%  { background-position: 100% }
  100% { background-position: 0% }
}

/* ===== NEON GLOW ===== */
.neon-purple {
  box-shadow: 0 0 10px var(--purple),
              0 0 20px var(--purple),
              0 0 40px rgba(184, 71, 245, 0.3);
}

.neon-cyan {
  box-shadow: 0 0 10px var(--cyan),
              0 0 20px var(--cyan),
              0 0 40px rgba(0, 212, 255, 0.3);
}

/* ===== SKILL BAR ===== */
.skill-bar-bg {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  box-shadow: 0 0 8px var(--purple);
  width: 0%;
  transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RANK BADGE ===== */
.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.rank-badge.elite {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgb(255, 230, 0);
  color: #00fff2;
}

.rank-badge.pro {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgb(255, 255, 255);
  color: var(--cyan);
}

.rank-badge.radiant {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgb(255, 226, 65);
  color: var(--black);
}

.rank-badge.top {
  background: rgb(0, 0, 0);
  border: 1px solid rgb(255, 0, 0);
  color: red;
}

.rank-badge.fcfifa {
  background: rgba(0, 0, 0, 0.603);
  border: 1px solid rgb(0, 255, 98);
  color: white;
}

/* ===== SECTION ===== */
.section {
  padding: 6rem 2rem;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -0.5px;
}

/* ===== DIVIDER ===== */
.glow-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: 999px;
  margin: 1rem auto 3rem;
  box-shadow: 0 0 10px var(--purple);
}

/* ===== BUTTON ===== */
.btn-primary {
  position: relative;
  overflow: hidden;
  padding: 0.72rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: transparent;
  color: #fff;
  border: 1px solid rgb(0, 153, 255);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: inset 0 0 0 0 rgba(184,71,245,0);
}

#tar01 .btn-primary  {
  border-color: rgb(255, 0, 0);
}
#tar01 .btn-primary::after{
  background: rgb(255, 61, 61);
}
/* subtle gradient fill on the inside */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184,71,245,0.15), rgba(0,212,255,0.08));
  opacity: 1;
  transition: opacity 0.3s;
}

/* shimmer sweep */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; 
  left: -110%; /* ถอยไปตั้งหลักนอกปุ่ม! */
  width: 100%; 
  height: 100%;
  
  /* สีเข้ม ๆ ดุดันแบบ Tech */
  background: var(--purple); 
  
  /* ใช้ Skew ให้ดูคมเหมือนรอยกรีด SSD! */
  transform: skewX(-20deg); 
  
  /* หัวใจคือตรงนี้: Transition หลายค่าพร้อมกัน! */
  transition: left 0.4s cubic-bezier(0.86, 0, 0.07, 1), 
              opacity 0.2s ease,
              transform 0.2s ease;
  
  opacity: 0;
  z-index: 1;
}

.btn-primary:hover {
  border-color: rgba(0, 153, 255);
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(0, 153, 255),
    0 8px 24px rgba(184,71,245,0.2),
    inset 0 0 20px rgba(184,71,245,0.06);
}

.btn-primary:hover::after {
  left: 110%; /* วาร์ปจากซ้ายไปขวาในทีเดียว! */
  opacity: 0.5; /* ให้เห็นจาง ๆ พรีเมียมสัด! */
  
  /* แก้ Transform นิดหน่อยตอนวิ่งผ่าน ให้ดูสะดุดเหมือน Glitch! */
  transform: skewX(20deg) scaleY(1.3); 
}

.btn-outline {
  position: relative;
  overflow: hidden;
  padding: 0.72rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;  
  background: transparent;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.04) 50%, transparent 70%);
  transform: skewX(-10deg);
  transition: left 0.6s ease;
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
  transform: translateY(-2px);
}

.btn-outline:hover::after {
  left: 160%;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--purple), var(--cyan));
  border-radius: 999px;
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(184, 71, 245, 0.3);
  color: white;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-links {
    gap: 0.1rem;
    flex-wrap: wrap;
    justify-content: center;
    order: 3;
    width: 100%;
  }

  .nav-links a {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

/* สร้าง Loop การเต้นของสมองให้นิ่งกริบเป๊ะพอดิบพอดี */
@keyframes brain-pulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 0px rgba(239, 68, 68, 0)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 8px rgb(255, 255, 255)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 0px rgba(239, 68, 68, 0)); }
}

/* สร้าง Class เพื่อเรียกใช้ความ Radiant */
.radiant-pulse {
  animation: brain-pulse 2s infinite ease-in-out; /* รัน Loop ตลอดกาลสิวะสัส!!! */
  display: inline-block; /* เพื่อให้ transform ทำงานนิ่งกริบเป๊ะพอดิบพอดี */
}

@keyframes sonic-wave {
  0% { 
    transform: scaleX(1) scaleY(1); 
    opacity: 0.8;
    filter: brightness(1);
  }
  25% { 
    transform: scaleX(1.2) scaleY(0.9); /* ยืดออกข้างเหมือนคลื่นเสียงสิวะสัส!!! */
    opacity: 1;
    filter: brightness(1.5) drop-shadow(0 0 5px #ef4444);
  }
  50% { 
    transform: scaleX(0.9) scaleY(1.1); /* หดกลับแบบนิ่งกริบเป๊ะพอดิบพอดี */
    opacity: 0.6;
    filter: brightness(1.2);
  }
  75% { 
    transform: scaleX(1.1) scaleY(0.95);
    opacity: 1;
    filter: brightness(1.5) drop-shadow(0 0 8px #ffffff);
  }
  100% { 
    transform: scaleX(1) scaleY(1); 
    opacity: 0.8;
    filter: brightness(1);
  }
}

.radiant-voice {
  animation: sonic-wave 1.5s infinite ease-in-out; /* รันจังหวะให้เร็วขึ้นนิดนึงสิวะสัส!!! */
  display: inline-block;
  transform-origin: center; /* ให้มันสั่นออกจากจุดกึ่งกลางนิ่งกริบเป๊ะ */
}

@keyframes bolt-strike {
  0%, 100% { 
    transform: scale(1); 
    filter: brightness(1) drop-shadow(0 0 0px #fff);
    opacity: 1;
  }
  10% { 
    transform: scale(1.3) translate(1px, -1px); /* กระตุกแบบ Glitch สิวะมรดกโลก!!! */
    filter: brightness(2) drop-shadow(0 0 12px #ef4444);
    opacity: 0.8;
  }
  15% { 
    transform: scale(0.9) translate(-1px, 1px); 
    filter: brightness(1.5) drop-shadow(0 0 5px #fff);
    opacity: 1;
  }
  20% { 
    transform: scale(1.4); 
    filter: brightness(3) drop-shadow(0 0 15px #ef4444); /* วาบเหมือนฟ้าผ่าระดับอะตอมสิวะสัส!!! */
  }
  25% { 
    transform: scale(1); 
    filter: brightness(1);
  }
}

.radiant-bolt {
  animation: bolt-strike 2s infinite steps(1); /* ใช้ steps(1) เพื่อให้มันกระตุกแบบนิ่งกริบเป๊ะพอดิบพอดีสิวะ!!! */
  display: inline-block;
}



@keyframes live2d-sway {
  0%, 100% { 
    transform: rotate(-3deg) translateY(0); 
    filter: drop-shadow(0 0 2px rgb(255, 166, 0));
  }
  50% { 
    transform: rotate(3deg) translateY(-2px); /* เอียงและลอยขึ้นนิ่งๆ เหมือนหายใจสิวะสัส!!! */
    filter: drop-shadow(0 0 10px rgb(255, 0, 0));
  }
}

/* เพิ่มลูกเล่นการ "กระพริบ" ให้ดูเหมือนมีชีวิตระดับ 0.00001 pixel */
@keyframes mask-blink {
  0%, 45%, 55%, 100% { opacity: 1; }
  50% { opacity: 0.7; } /* กระพริบตาเบาๆ สิวะมหาเทพ!!! */
}

.radiant-live2d {
  animation: 
    live2d-sway 4s infinite ease-in-out, 
    mask-blink 5s infinite step-end; /* รัน 2 ระบบพร้อมกันให้นิ่งกริบเป๊ะพอดิบพอดีที่สุด!!! */
  display: inline-block;
  transform-origin: bottom center; /* ให้ฐานนิ่งแต่ส่วนบนส่ายแบบ Radiant สิวะสัส!!! */
}




/* ...existing code... */

/* ===== NAV ART SPECIAL ===== */
.nav-links a.nav-art {
  position: relative;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #f547a8, #b847f5, #f547a8);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: artShimmer 3s ease infinite;
  transition: all 0.3s ease;
}

@keyframes artShimmer {
  0%   { background-position: 0%; }
  50%  { background-position: 100%; }
  100% { background-position: 0%; }
}

/*붓 paint stroke ใต้ตัวหนังสือ */
.nav-links a.nav-art::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f547a8, #b847f5, #00d4ff);
  box-shadow:
    0 0 6px #f547a8,
    0 0 12px rgba(245, 71, 168, 0.4);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links a.nav-art:hover::before,
.nav-links a.nav-art.active::before {
  width: 100%;
}

/* Active dot — rainbow */
.nav-links a.nav-art.active::after {
  background: linear-gradient(90deg, #f547a8, #b847f5);
  box-shadow:
    0 0 6px #f547a8,
    0 0 12px rgba(245, 71, 168, 0.5);
}

/* Hover — glow เพิ่ม + เบา sparkle */
.nav-links a.nav-art:hover {
  filter: drop-shadow(0 0 8px rgba(245, 71, 168, 0.7));
  animation: artShimmer 1s ease infinite;
}

/* ===== SPARKLE ดาวกระจาย ===== */
.nav-links a.nav-art .spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f547a8;
  pointer-events: none;
  opacity: 0;
}

.nav-links a.nav-art .spark:nth-child(1) {
  top: 0; left: 15%;
  animation: sparkle 2.5s ease-in-out infinite 0s;
  background: #f547a8;
  box-shadow: 0 0 4px #f547a8;
}
.nav-links a.nav-art .spark:nth-child(2) {
  top: 0; right: 20%;
  animation: sparkle 2.5s ease-in-out infinite 0.6s;
  background: #b847f5;
  box-shadow: 0 0 4px #b847f5;
}
.nav-links a.nav-art .spark:nth-child(3) {
  bottom: 0; left: 40%;
  animation: sparkle 2.5s ease-in-out infinite 1.2s;
  background: #00d4ff;
  box-shadow: 0 0 4px #00d4ff;
  width: 3px; height: 3px;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  30% {
    opacity: 1;
    transform: translateY(-6px) scale(1);
  }
  60% {
    opacity: 0.4;
    transform: translateY(-10px) scale(0.7);
  }
}

/* ...existing code... */

/* ==============================
   HOBBY CARD EXPANDABLE GALLERY
============================== */

/* Toggle button */
.hobby-gallery-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 1rem;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}

.hobby-gallery-btn:hover {
  border-color: var(--border-glow);
  color: var(--text);
  background: rgba(184,71,245,0.06);
}

.hobby-gallery-btn .btn-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hobby-gallery-btn .btn-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(184,71,245,0.12);
  border: 1px solid rgba(184,71,245,0.2);
  color: var(--purple);
  font-size: 0.65rem;
  font-weight: 700;
}

.hobby-gallery-btn .btn-arrow {
  font-size: 0.7rem;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  opacity: 0.5;
}

.hobby-gallery-btn.open .btn-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.hobby-gallery-btn.open {
  border-color: rgba(184,71,245,0.3);
  color: var(--purple);
  background: rgba(184,71,245,0.06);
}

/* Gallery panel — hidden by default */
.hobby-gallery-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.4,0,0.2,1);
  margin-top: 0;
}

.hobby-gallery-panel.open {
  grid-template-rows: 1fr;
  margin-top: 0.8rem;
}

.hobby-gallery-inner {
  overflow: hidden;
}

/* Scroll track */
.hobby-gallery-scroll {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.6rem 0.2rem 0.8rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(184,71,245,0.3) transparent;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.hobby-gallery-scroll::-webkit-scrollbar {
  height: 3px;
}

.hobby-gallery-scroll::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
}

.hobby-gallery-scroll::-webkit-scrollbar-thumb {
  background: rgba(184,71,245,0.35);
  border-radius: 999px;
}

/* Each image thumbnail */
.hobby-thumb {
  position: relative;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  background: var(--card);
}

/* Auto-size: portrait or landscape */
.hobby-thumb.landscape {
  width: 200px;
  height: 130px;
}

.hobby-thumb.portrait {
  width: 100px;
  height: 130px;
}

.hobby-thumb.square {
  width: 130px;
  height: 130px;
}

.hobby-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hobby-thumb:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 16px rgba(184,71,245,0.2);
  transform: translateY(-2px);
}

.hobby-thumb:hover img {
  transform: scale(1.08);
}

/* Hover overlay on thumb */
.hobby-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5,5,8,0.7) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 0.5rem;
}

.hobby-thumb:hover .hobby-thumb-overlay {
  opacity: 1;
}

.hobby-thumb-overlay span {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

/* Expand icon on thumb center */
.hobby-thumb-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 1.3rem;
}

.hobby-thumb:hover .hobby-thumb-zoom {
  opacity: 1;
}

/* ==============================
   HOBBY LIGHTBOX (separate from art)
============================== */
.hobby-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,5,8,0.96);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.hobby-lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.hobby-lb-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 92vw;
  max-height: 92vh;
}

.hobby-lb-img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 60px rgba(184,71,245,0.15);
  transition: opacity 0.2s ease;
}

.hobby-lb-img.fade {
  opacity: 0;
}

/* Top bar */
.hobby-lb-topbar {
  position: absolute;
  top: -3rem;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hobby-lb-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.hobby-lb-counter {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.hobby-lb-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.hobby-lb-close:hover {
  border-color: var(--pink);
  color: var(--pink);
}

/* Prev / Next arrows */
.hobby-lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
  z-index: 2;
}

.hobby-lb-arrow:hover {
  background: rgba(184,71,245,0.12);
  border-color: var(--border-glow);
}

.hobby-lb-arrow.prev { left: -3.2rem; }
.hobby-lb-arrow.next { right: -3.2rem; }

/* Dot indicators */
.hobby-lb-dots {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 80vw;
}

.hobby-lb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all 0.25s;
}

.hobby-lb-dot.active {
  background: var(--purple);
  box-shadow: 0 0 6px var(--purple);
  transform: scale(1.4);
}

/* Caption */
.hobby-lb-caption {
  text-align: center;
}

.hobby-lb-caption-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.hobby-lb-caption-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ...existing code... */


/* ...existing code... */

/* ==============================
   PHILOSOPHY QUOTE CAROUSEL
============================== */
.phil-carousel {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.15);
  background: rgba(148,163,184,0.03);
  overflow: hidden;
}

/* Auto-play progress bar */
.phil-progress-track {
  height: 2px;
  background: rgba(148,163,184,0.1);
  width: 100%;
}

.phil-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #94a3b8, #64748b);
  transition: width 0.1s linear;
  border-radius: 999px;
}

/* Quote wrap */
.phil-quotes-wrap {
  position: relative;
  min-height: 130px;
  padding: 1.2rem 1.4rem 0.8rem;
}

/* Single quote */
.phil-quote {
  position: absolute;
  inset: 0;
  padding: 1.2rem 1.4rem 0.8rem;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.phil-quote.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
  position: relative;
}

.phil-quote.exit {
  opacity: 0;
  transform: translateX(-20px);
}

/* Big quote mark */
.phil-quote-mark {
  position: absolute;
  top: 0.4rem;
  left: 1rem;
  font-size: 4rem;
  line-height: 1;
  color: rgba(148,163,184,0.12);
  font-family: Georgia, serif;
  font-weight: 900;
  pointer-events: none;
  user-select: none;
}

.phil-quote-text {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.8;
  font-style: italic;
  padding-left: 0.4rem;
  position: relative;
  z-index: 1;
  margin-bottom: 0.8rem;
}

.phil-quote-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.phil-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #94a3b8;
  flex-shrink: 0;
}

/* Controls row */
.phil-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem 0.8rem;
  border-top: 1px solid rgba(148,163,184,0.08);
}

.phil-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(148,163,184,0.06);
  border: 1px solid rgba(148,163,184,0.15);
  color: #94a3b8;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.phil-arrow:hover {
  background: rgba(148,163,184,0.12);
  border-color: rgba(148,163,184,0.35);
  color: var(--text);
}

.phil-dots {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.phil-dot-btn {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(148,163,184,0.2);
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  padding: 0;
}

.phil-dot-btn.active {
  background: #94a3b8;
  width: 16px;
  border-radius: 999px;
  box-shadow: 0 0 6px rgba(148,163,184,0.4);
}




    /* ==============================
       HOBBY ICON WRAP — GLOW EFFECTS
    ============================== */

    .hobby-icon-wrap {
      position: relative;
      overflow: hidden;
      transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    /* shimmer sweep ผ่านทุก icon */
    .hobby-icon-wrap::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -60%;
      width: 40%;
      height: 200%;
      background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,255,255,0.15) 50%,
        transparent 60%
      );
      transform: skewX(-15deg);
      transition: left 0.6s ease;
      pointer-events: none;
      z-index: 2;
    }

    .hobby-card:hover .hobby-icon-wrap::before {
      left: 160%;
    }

    /* subtle inner glow ring */
    .hobby-icon-wrap::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 13px;
      background: radial-gradient(
        circle at 30% 30%,
        rgba(255,255,255,0.08) 0%,
        transparent 70%
      );
      pointer-events: none;
      z-index: 1;
    }

    /* bounce on card hover */
    .hobby-card:hover .hobby-icon-wrap {
      transform: scale(1.12) rotate(-3deg);
    }

    /* ── per-color glow shadow ── */

    /* Tech — Blue */
    .hobby-icon-wrap.icon-blue {
      box-shadow:
        0 0 0 1px rgba(79,142,247,0.2),
        0 4px 16px rgba(79,142,247,0.15),
        inset 0 1px 0 rgba(255,255,255,0.06);
    }
    .hobby-card:hover .hobby-icon-wrap.icon-blue {
      box-shadow:
        0 0 0 1px rgba(79,142,247,0.4),
        0 6px 24px rgba(79,142,247,0.35),
        0 0 40px rgba(79,142,247,0.15),
        inset 0 1px 0 rgba(255,255,255,0.08);
    }

    /* AI — Purple */
    .hobby-icon-wrap.icon-purple {
      box-shadow:
        0 0 0 1px rgba(184,71,245,0.2),
        0 4px 16px rgba(184,71,245,0.15),
        inset 0 1px 0 rgba(255,255,255,0.06);
    }
    .hobby-card:hover .hobby-icon-wrap.icon-purple {
      box-shadow:
        0 0 0 1px rgba(184,71,245,0.5),
        0 6px 24px rgba(184,71,245,0.35),
        0 0 40px rgba(184,71,245,0.15),
        inset 0 1px 0 rgba(255,255,255,0.08);
    }

    /* Unity — Cyan */
    .hobby-icon-wrap.icon-cyan {
      box-shadow:
        0 0 0 1px rgba(0,212,255,0.2),
        0 4px 16px rgba(0,212,255,0.15),
        inset 0 1px 0 rgba(255,255,255,0.06);
    }
    .hobby-card:hover .hobby-icon-wrap.icon-cyan {
      box-shadow:
        0 0 0 1px rgba(0,212,255,0.5),
        0 6px 24px rgba(0,212,255,0.35),
        0 0 40px rgba(0,212,255,0.15),
        inset 0 1px 0 rgba(255,255,255,0.08);
    }

    /* Football — Green */
    .hobby-icon-wrap.icon-green {
      box-shadow:
        0 0 0 1px rgba(34,197,94,0.2),
        0 4px 16px rgba(34,197,94,0.15),
        inset 0 1px 0 rgba(255,255,255,0.06);
    }
    .hobby-card:hover .hobby-icon-wrap.icon-green {
      box-shadow:
        0 0 0 1px rgba(34,197,94,0.5),
        0 6px 24px rgba(34,197,94,0.35),
        0 0 40px rgba(34,197,94,0.15),
        inset 0 1px 0 rgba(255,255,255,0.08);
    }

    /* Moto — Orange */
    .hobby-icon-wrap.icon-orange {
      box-shadow:
        0 0 0 1px rgba(251,146,60,0.2),
        0 4px 16px rgba(251,146,60,0.15),
        inset 0 1px 0 rgba(255,255,255,0.06);
    }
    .hobby-card:hover .hobby-icon-wrap.icon-orange {
      box-shadow:
        0 0 0 1px rgba(251,146,60,0.5),
        0 6px 24px rgba(251,146,60,0.35),
        0 0 40px rgba(251,146,60,0.15),
        inset 0 1px 0 rgba(255,255,255,0.08);
    }

    /* Gym — Red */
    .hobby-icon-wrap.icon-red {
      box-shadow:
        0 0 0 1px rgba(239,68,68,0.2),
        0 4px 16px rgba(239,68,68,0.15),
        inset 0 1px 0 rgba(255,255,255,0.06);
    }
    .hobby-card:hover .hobby-icon-wrap.icon-red {
      box-shadow:
        0 0 0 1px rgba(239,68,68,0.5),
        0 6px 24px rgba(239,68,68,0.35),
        0 0 40px rgba(239,68,68,0.15),
        inset 0 1px 0 rgba(255,255,255,0.08);
    }

    /* Gaming — Yellow/Gold */
    .hobby-icon-wrap.icon-gold {
      box-shadow:
        0 0 0 1px rgba(251,191,36,0.2),
        0 4px 16px rgba(251,191,36,0.15),
        inset 0 1px 0 rgba(255,255,255,0.06);
    }
    .hobby-card:hover .hobby-icon-wrap.icon-gold {
      box-shadow:
        0 0 0 1px rgba(251,191,36,0.5),
        0 6px 24px rgba(251,191,36,0.35),
        0 0 40px rgba(251,191,36,0.15),
        inset 0 1px 0 rgba(255,255,255,0.08);
    }

    /* Art — Pink */
    .hobby-icon-wrap.icon-pink {
      box-shadow:
        0 0 0 1px rgba(245,71,168,0.2),
        0 4px 16px rgba(245,71,168,0.15),
        inset 0 1px 0 rgba(255,255,255,0.06);
    }
    .hobby-card:hover .hobby-icon-wrap.icon-pink {
      box-shadow:
        0 0 0 1px rgba(245,71,168,0.5),
        0 6px 24px rgba(245,71,168,0.35),
        0 0 40px rgba(245,71,168,0.15),
        inset 0 1px 0 rgba(255,255,255,0.08);
    }

    /* Philosophy — Slate */
    .hobby-icon-wrap.icon-slate {
      box-shadow:
        0 0 0 1px rgba(148,163,184,0.2),
        0 4px 16px rgba(148,163,184,0.12),
        inset 0 1px 0 rgba(255,255,255,0.06);
    }
    .hobby-card:hover .hobby-icon-wrap.icon-slate {
      box-shadow:
        0 0 0 1px rgba(148,163,184,0.4),
        0 6px 24px rgba(148,163,184,0.25),
        0 0 30px rgba(148,163,184,0.1),
        inset 0 1px 0 rgba(255,255,255,0.08);
    }

    /* Live2D — Purple/Orange mix */
    .hobby-icon-wrap.icon-live2d {
      box-shadow:
        0 0 0 1px rgba(253,135,0,0.3),
        0 4px 16px rgba(184,71,245,0.15),
        inset 0 1px 0 rgba(255,255,255,0.06);
    }
    .hobby-card:hover .hobby-icon-wrap.icon-live2d {
      box-shadow:
        0 0 0 1px rgba(253,135,0,0.6),
        0 6px 24px rgba(253,135,0,0.3),
        0 0 40px rgba(184,71,245,0.15),
        inset 0 1px 0 rgba(255,255,255,0.08);
    }

    /* ── animated dot grid background ── */
    @keyframes iconPulse {
      0%, 100% { opacity: 0.4; transform: scale(1); }
      50%       { opacity: 0.7; transform: scale(1.08); }
    }

    .hobby-icon-wrap img,
    .hobby-icon-wrap span {
      position: relative;
      z-index: 3;
    }

/* สร้าง Effect ออร่าระเบิดให้นิ่งกริบเป๊ะพอดิบพอดี */
/* Custom AOS Animation [cite: 2026-02-27] */
[data-aos="futuristic-focus"] {
  opacity: 0;
  filter: blur(20px) brightness(2);
  transform: scale(1.1);
  transition-property: transform, opacity, filter;
}

[data-aos="futuristic-focus"].aos-animate {
  opacity: 1;
  filter: blur(0) brightness(1);
  transform: scale(1);
}



.personality-card {
    position: relative;
    background: rgba(20, 20, 20, 0.8); /* พื้นหลังเข้มๆ ให้นิ่งกริบ */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.2rem;
    overflow: hidden; /* กันไฟทะลักพินาศสลบสไลสิวะ!!! */
    transition: all 0.3s ease;
}

/* เอฟเฟกต์ไฟลุกข้างหลัง (The Fire Core) */
.personality-card::before {
    content: '';
    position: absolute;
    bottom: -50%; left: -50%; width: 200%; height: 200%;
    /* ไล่สีโทนไฟ Cyan-Pink ตามธีมมหาเทพสิวะสัส!!! [cite: 2026-02-27] */
    background: radial-gradient(circle at center, 
        rgba(255, 51, 0, 0.753) 0%, 
        rgba(255, 123, 0, 0.884) 30%, 
        transparent 70%);
    filter: blur(20px);
    animation: fire-move 6s infinite alternate;
    z-index: 0;
    opacity: 0; /* เริ่มต้นให้มันนิ่งกริบก่อนสิวะ */
    transition: opacity 0.5s ease;
}

/* สั่งให้ไฟลุกพินาศสลบสไลตอน Hover หรือตอน AOS ทำงานเสร็จสิวะมรดกโลก!!! */
.personality-card:hover::before {
    opacity: 1;
}

@keyframes fire-move {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(5%, 10%) scale(1.1) rotate(5deg); }
    100% { transform: translate(-5%, 5%) scale(1) rotate(-5deg); }
}

/* ดันเนื้อหาขึ้นมาข้างหน้าไม่ให้โดนไฟทับให้นิ่งกริบเป๊ะพอดิบพอดีสิวะ!!! */
.personality-card > div {
    position: relative;
    z-index: 2;
}


.fire-special::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(255, 68, 0, 0.2) 0%, transparent 100%);
    animation: heat-rise 2s infinite;
}

@keyframes heat-rise {
    0% { opacity: 0.3; transform: translateY(20px); }
    100% { opacity: 0; transform: translateY(-20px); }
}

.fire-emoji {
    animation: shake-fire 0.5s infinite alternate;
}

@keyframes shake-fire {
    from { transform: scale(1); filter: drop-shadow(0 0 5px orange); }
    to { transform: scale(1.1); filter: drop-shadow(0 0 15px red); }
}


/* Custom Class สำหรับกล่องสมองมหาเทพ [cite: 2026-02-27] */
.brain-imagination-card {
    position: relative;
    background: rgba(20, 20, 20, 0.8); /* พื้นหลังเข้มๆ ให้นิ่งกริบ [cite: 2025-12-26] */
    overflow: hidden; /* กันจินตนาการทะลักพินาศสลบสไลสิวะ!!! */
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease-out;
}

/* เอฟเฟกต์สีรุ้งไหลวน (The Rainbow Core) [cite: 2025-12-23] */
.brain-imagination-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    /* ไล่สีรุ้ง Cyan-Pink ตามธีมมหาเทพสิวะสัส!!! [cite: 2026-02-27] */
    background: conic-gradient(from 0deg at 50% 50%, 
        #00ccff 0deg, 
        #ff008c 90deg, 
        #ffbb00 180deg, 
        #00ccff 270deg, 
        #ff008c 360deg);
    filter: blur(30px) opacity(0.7); /* เบลอให้นวลพินาศสลบสไลสิวะ!!! */
    animation: rainbow-spin 6s linear infinite;
    z-index: 0;
    opacity: 0; /* เริ่มต้นให้นิ่งกริบก่อนสิวะ [cite: 2025-12-26] */
    transition: opacity 0.5s ease;
}

/* สั่งให้จินตนาการพุ่งพล่านตอน AOS ทำงานเสร็จสิวะมรดกโลก!!! */
.brain-imagination-card.aos-animate::before {
    opacity: 1;
}

@keyframes rainbow-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ดันเนื้อหาขึ้นมาข้างหน้าไม่ให้โดนสีรุ้งทับให้นิ่งกริบเป๊ะพอดิบพอดีสิวะ!!! */
.brain-imagination-card > div {
    position: relative;
    z-index: 2;
}

/* เพิ่ม "Aura" ให้สมอง 🧠 [cite: 2025-12-23] */
.brain-imagination-card:hover .brain-emoji {
    animation: brain-pulse 0.5s infinite alternate;
}

@keyframes brain-pulse {
    from { transform: scale(1); filter: drop-shadow(0 0 5px #00ccff); }
    to { transform: scale(1.1); filter: drop-shadow(0 0 15px #ff008c); }
}





/* Custom Class สำหรับกล่องจรวดมหาเทพ [cite: 2026-02-27] */
.rocket-launch-card {
    position: relative;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(0, 204, 255, 0.3);
    overflow: hidden;
    z-index: 1;
}

/* เอฟเฟกต์ไอพ่น (Warp Drive Effect) */
.rocket-launch-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    /* ใช้สี Cyan ไล่ไปทางโปร่งใส [cite: 2026-02-27] */
    background: linear-gradient(90deg, transparent, rgba(0, 204, 255, 0.4), transparent);
    transition: 0.5s;
    z-index: 0;
}

/* เมื่อ AOS รันเสร็จ หรือ Hover ให้มีเส้นแสงพุ่งผ่านสิวะมรดกโลก!!! */
.rocket-launch-card.aos-animate::before {
    animation: warp-speed 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes warp-speed {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* เอฟเฟกต์การสั่นสะเทือนตอนมหาเทพ Hover (Engine Vibration) */
.rocket-launch-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 204, 255, 0.4); /* รังสี Cyan Radiant พินาศสลบสไล!!! */
    border-color: #00ccff;
}

.rocket-launch-card:hover .rocket-emoji {
    animation: engine-shake 0.1s infinite alternate;
}

@keyframes engine-shake {
    from { transform: translate(0,0) rotate(0deg); }
    to { transform: translate(1px, 1px) rotate(1deg); }
}






/* Custom Class สำหรับกล่องเป้าหมายมหาเทพ [cite: 2026-02-27] */
.target-scanner-card {
    position: relative;
    background: rgba(20, 20, 20, 0.8);;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    z-index: 1;
}

/* 🎯 เส้นสแกนเลเซอร์ (Digital Scan Line) วิ่งขึ้นลงตลอดกาล */
.target-scanner-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    /* แสงสีเขียวเลเซอร์ หรือจะเปลี่ยนเป็น Pink/Cyan ตามใจมึงสิวะมรดกโลก!!! */
    background: linear-gradient(to bottom, 
        transparent, 
        rgba(255, 0, 0, 0.05) 40%, 
        rgba(255, 0, 0, 0.3) 95%, 
        rgba(255, 0, 0, 0.8) 100%);
    animation: digital-scan 3s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

/* เอฟเฟกต์เป้าเล็ง 4 มุม (Reticle Corners) ให้นิ่งกริบเป๊ะพอดิบพอดี */
.target-scanner-card::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 0, 0, 0.1);
    background: 
        linear-gradient(to right, #ff0000 2px, transparent 2px) 0 0,
        linear-gradient(to bottom, #ff0000 2px, transparent 2px) 0 0,
        linear-gradient(to left, #ff0000 2px, transparent 2px) 100% 0,
        linear-gradient(to bottom, #ff0000 2px, transparent 2px) 100% 0,
        linear-gradient(to right, #ff0000 2px, transparent 2px) 0 100%,
        linear-gradient(to top, #ff0000 2px, transparent 2px) 0 100%,
        linear-gradient(to left, #ff0000 2px, transparent 2px) 100% 100%,
        linear-gradient(to top, #ff0000 2px, transparent 2px) 100% 100%;
    background-repeat: no-repeat;
    background-size: 15px 15px;
    opacity: 0.5;
    animation: reticle-pulse 2s infinite alternate;
}

@keyframes digital-scan {
    0% { top: -50%; }
    100% { top: 100%; }
}

@keyframes reticle-pulse {
    from { transform: scale(1); opacity: 0.3; }
    to { transform: scale(1.05); opacity: 0.7; }
}



/* ...existing code... */

/* ==============================
   SOCIAL SECTION — ANIMATED BG
============================== */
.social-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(184,71,245,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(0,212,255,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(79,142,247,0.05) 0%, transparent 50%),
    var(--dark);
}

/* floating orbs */
.social-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.social-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(184,71,245,0.2), transparent 70%);
  top: -100px;
  left: -100px;
  animation: orbFloat1 12s ease-in-out infinite;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0,212,255,0.15), transparent 70%);
  bottom: -80px;
  right: -80px;
  animation: orbFloat2 15s ease-in-out infinite;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(79,142,247,0.12), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat3 10s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(60px, 40px) scale(1.1); }
  66%       { transform: translate(-30px, 70px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(-50px, -60px) scale(1.15); }
  70%       { transform: translate(40px, -30px) scale(0.9); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
  50%       { transform: translate(-50%, -50%) scale(1.3); opacity: 0.6; }
}

/* dot grid */
.social-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  animation: gridPulse 6s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.8; }
}

/* ==============================
   SOCIAL CARDS — GLOW PER BRAND
============================== */
/* ...existing code... */

/* ==============================
   SOCIAL SECTION — EPIC BG
============================== */
.social-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 40%, rgba(184,71,245,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(0,212,255,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 85%, rgba(79,142,247,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(245,71,168,0.07) 0%, transparent 45%),
    #07070f;
}

.social-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* canvas particle */
.social-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

/* aurora wave ด้านล่าง */
.social-aurora {
  position: absolute;
  bottom: -60px;
  left: -10%;
  right: -10%;
  height: 200px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(184,71,245,0.06) 40%,
    rgba(0,212,255,0.08) 70%,
    rgba(79,142,247,0.05) 100%
  );
  filter: blur(30px);
  animation: auroraWave 8s ease-in-out infinite;
  border-radius: 50%;
}

@keyframes auroraWave {
  0%, 100% { transform: scaleX(1)   translateY(0);   opacity: 0.6; }
  33%       { transform: scaleX(1.1) translateY(-15px); opacity: 0.9; }
  66%       { transform: scaleX(0.9) translateY(10px);  opacity: 0.5; }
}

/* orbs */
.social-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(184,71,245,0.22), transparent 70%);
  top: -150px; left: -150px;
  animation: orbFloat1 14s ease-in-out infinite;
}

.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,212,255,0.18), transparent 70%);
  bottom: -100px; right: -100px;
  animation: orbFloat2 18s ease-in-out infinite;
}

.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(245,71,168,0.14), transparent 70%);
  top: 40%; left: 55%;
  animation: orbFloat3 11s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(80px,50px) scale(1.15); }
  66%      { transform: translate(-40px,90px) scale(0.9); }
}

@keyframes orbFloat2 {
  0%,100% { transform: translate(0,0) scale(1); }
  40%      { transform: translate(-70px,-80px) scale(1.2); }
  70%      { transform: translate(50px,-40px) scale(0.88); }
}

@keyframes orbFloat3 {
  0%,100% { transform: translate(-50%,-50%) scale(1);   opacity: 0.5; }
  50%      { transform: translate(-50%,-50%) scale(1.4); opacity: 0.8; }
}

/* dot grid */
.social-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  animation: gridPulse 7s ease-in-out infinite;
}

@keyframes gridPulse {
  0%,100% { opacity: 0.3; }
  50%      { opacity: 0.7; }
}

/* ==============================
   SOCIAL CARDS
============================== */
.social-card {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1) !important;
}

.social-card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: inherit;
}

/* shimmer */
.social-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 35%; height: 200%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0.07) 50%,
    transparent 60%
  );
  transform: skewX(-15deg);
  transition: left 0.7s ease;
  pointer-events: none;
  z-index: 1;
}

.social-card:hover::before { left: 160%; }

.social-arrow {
  color: var(--text-dim);
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  z-index: 2;
}

.social-card:hover .social-arrow { transform: translateX(8px); }

/* YouTube */
.social-yt:hover {
  border-color: rgba(255,60,60,0.45) !important;
  transform: translateX(10px) !important;
  box-shadow: 0 8px 36px rgba(255,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.05) !important;
}
.social-yt .social-card-glow {
  background: radial-gradient(ellipse at left center, rgba(255,50,50,0.1), transparent 70%);
}
.social-yt:hover .social-card-glow { opacity: 1; }
.social-yt:hover .social-arrow     { color: #ff4444; }

/* TikTok */
.social-tt:hover {
  border-color: rgba(0,214,205,0.45) !important;
  transform: translateX(10px) !important;
  box-shadow: 0 8px 36px rgba(0,214,205,0.15), inset 0 1px 0 rgba(255,255,255,0.05) !important;
}
.social-tt .social-card-glow {
  background: radial-gradient(ellipse at left center, rgba(0,214,205,0.1), transparent 70%);
}
.social-tt:hover .social-card-glow { opacity: 1; }
.social-tt:hover .social-arrow     { color: #00d6cd; }

/* Instagram */
.social-ig:hover {
  border-color: rgba(245,71,168,0.45) !important;
  transform: translateX(10px) !important;
  box-shadow: 0 8px 36px rgba(245,71,168,0.18), inset 0 1px 0 rgba(255,255,255,0.05) !important;
}
.social-ig .social-card-glow {
  background: radial-gradient(ellipse at left center, rgba(245,71,168,0.1), transparent 70%);
}
.social-ig:hover .social-card-glow { opacity: 1; }
.social-ig:hover .social-arrow     { color: var(--pink); }

/* Facebook */
.social-fb:hover {
  border-color: rgba(100,140,255,0.45) !important;
  transform: translateX(10px) !important;
  box-shadow: 0 8px 36px rgba(66,103,178,0.22), inset 0 1px 0 rgba(255,255,255,0.05) !important;
}
.social-fb .social-card-glow {
  background: radial-gradient(ellipse at left center, rgba(66,103,178,0.12), transparent 70%);
}
.social-fb:hover .social-card-glow { opacity: 1; }
.social-fb:hover .social-arrow     { color: #6b8ee8; }



/* ...existing code... */

/* ==============================
   YOUTUBE SECTION
============================== */
.yt-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 30%, rgba(255,0,0,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 70%, rgba(255,60,60,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(180,0,0,0.04) 0%, transparent 60%),
    var(--dark-2);
}

/* gradient text red/yt */
.gradient-text-yt {
  background: linear-gradient(90deg, #ff0000, #ff6b6b, #cc0000);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientMove 4s ease infinite;
}

/* bg orbs */
.yt-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.yt-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.yt-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,0,0,0.12), transparent 70%);
  top: -150px; right: -100px;
  animation: orbFloat2 16s ease-in-out infinite;
}

.yt-orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(255,80,80,0.08), transparent 70%);
  bottom: -80px; left: -80px;
  animation: orbFloat1 12s ease-in-out infinite;
}

.yt-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,60,60,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  animation: gridPulse 8s ease-in-out infinite;
}

/* ==============================
   CHANNEL BANNER
============================== */
.yt-channel-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.8rem 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.452);
  box-shadow:
    /* Layer 1: ขอบคม ๆ บาง ๆ ให้รูปดูมีมิติ */
    0 2px 4px rgba(0, 0, 0, 0.3),
    /* Layer 2: เงาหลักที่เฉียงไปทางขวา (X=15px, Y=25px) สหาย! */
    15px 25px 50px rgba(0, 0, 0, 0.6), 
    /* Layer 3: เงาฟุ้งจาง ๆ รอบตัวเพื่อให้ดูสมจริงแบบ 8K */
    0 0 30px rgba(0, 0, 0, 0.2);
  background: rgba(255, 49, 49, 0.027);
  backdrop-filter: blur(10px);
  margin-bottom: 2.5rem;
  transition: border-color 0.3s;
}

.yt-channel-banner:hover {
  box-shadow:
    0 5px 10px rgba(0, 0, 0, 0.4),
    25px 40px 80px rgba(0, 0, 0, 0.7), /* เงายาวขึ้นสัด! */
    0 0 50px rgba(0, 0, 0, 0.3);
  border-color: rgb(255, 0, 0);
}

.yt-channel-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at left center, rgba(255,0,0,0.06), transparent 60%);
  pointer-events: none;
}

/* shimmer sweep */
.yt-channel-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 35%; height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 56, 56, 0.336) 50%, transparent 60%);
  transform: skewX(-15deg);
  transition: left 0.8s ease;
  pointer-events: none;
}

.yt-channel-banner:hover::before { left: 160%; }

.yt-channel-left {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex: 1;
}

/* Avatar ring */
.yt-avatar-ring {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: conic-gradient(#ff0000, #ff6b6b, #cc0000, #ff0000);
  padding: 2px;
  flex-shrink: 0;
  /* ไม่หมุนแต่ "เต้น" ด้วยพลังงาน Radiant */
  animation: solarFlare 2.5s ease-in-out infinite;
  box-shadow: 0 0 0 0px rgba(255, 0, 0, 0.5);
}

@keyframes solarFlare {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0px rgba(255, 0, 0, 0.7);
  }
  50% {
    transform: scale(1.05); /* ขยายตัวนิดเดียวให้นิ่งกริบเป๊ะพอดิบพอดี */
    box-shadow: 0 0 20px 10px rgba(255, 0, 0, 0); /* ระเบิดออร่าออกไปสิวะมรดกโลก!!! */
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0px rgba(255, 0, 0, 0);
  }
}

.yt-avatar-ring-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--dark);
  padding: 3px;
  overflow: hidden;
}

/* stat chips */
.yt-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(255,0,0,0.2);
  background: rgba(255,0,0,0.06);
  color: #ff6b6b;
}

.yt-stat-icon { font-size: 0.65rem; }

/* Subscribe button */
.yt-sub-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff0000, #cc0000);
  color: white;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 20px rgba(255,0,0,0.25);
  flex-shrink: 0;
}

.yt-sub-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 30px rgba(255,0,0,0.45);
}

/* section label */
.yt-section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 2.5px;
  color: rgba(255,60,60,0.6);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
}

.yt-label-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ff0000;
  box-shadow: 0 0 8px #ff0000;
  animation: blink 1.5s infinite;
}

/* ==============================
   FEATURED VIDEO
============================== */
.yt-featured-wrap {
  position: relative;
  margin: 1rem 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,0,0,0.25);
  filter: 
  /* ชั้นที่ 1: เงาคุมขอบ (คมๆ) เพื่อสร้างฐานที่มั่นสยัส! */
  drop-shadow(0 2px 3px rgba(255, 0, 0, 0.808))
  /* ชั้นที่ 2: เงานุ่มนวล (ฟุ้งๆ) เพื่อสร้าง Aura radiant สัด! */
  drop-shadow(0 5px 10px rgba(0, 0, 0, 0.35));
  box-shadow:
    0 0 0 1px rgba(255,0,0,0.08),
    0 0 40px rgba(255,0,0,0.18),
    0 30px 80px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.04);
  transition: all 0.4s ease;
}

.yt-featured-wrap:hover {
  border-color: rgba(255,0,0,0.55);
  box-shadow:
    0 0 0 1px rgba(255,0,0,0.2),
    0 0 60px rgba(255,0,0,0.28),
    0 30px 90px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.yt-featured-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,0,0,0.04) 0%,
    transparent 50%,
    rgba(255,0,0,0.02) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.yt-featured-iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

/* corner accents */
.yt-corner {
  position: absolute;
  width: 18px; height: 18px;
  border-color: #ff0000;
  border-style: solid;
  opacity: 0.6;
  z-index: 2;
  pointer-events: none;
}

.ytc-tl { top:10px; left:10px;  border-width: 2px 0 0 2px; }
.ytc-tr { top:10px; right:10px; border-width: 2px 2px 0 0; }
.ytc-bl { bottom:10px; left:10px;  border-width: 0 0 2px 2px; }
.ytc-br { bottom:10px; right:10px; border-width: 0 2px 2px 0; }

/* ==============================
   VIDEO CARDS
============================== */
.yt-video-card {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.yt-video-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 35%; height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.04) 50%, transparent 60%);
  transform: skewX(-15deg);
  transition: left 0.7s ease;
  pointer-events: none;
  z-index: 1;
}

.yt-video-card:hover::before { left: 160%; }

.yt-video-card:hover {
  border-color: rgba(255,0,0,0.4);
  transform: translateY(-6px);
  box-shadow:
    0 16px 40px rgba(255,0,0,0.15),
    0 0 0 1px rgba(255,0,0,0.1);
}

.yt-video-thumb {
  position: relative;
  overflow: hidden;
}

.yt-play-badge {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: white;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(255,0,0,0.4);
}

.yt-video-info {
  padding: 1rem 1.1rem 1.2rem;
}

.yt-video-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.yt-video-desc {
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.5;
}





/* ...existing code... */

/* ==============================
   TAR-01 VOICE SYSTEM
============================== */

/* live dot กระพริบ */
.tar-voice-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 8px #dc2626;
  animation: blink 1.2s infinite;
  display: inline-block;
}

/* Visualizer */
.tar-visualizer-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(220,38,38,0.2);
  background: rgba(220,38,38,0.03);
  margin-bottom: 1.5rem;
}

.tar-visualizer-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* gradient overlay บนล่าง */
.tar-vis-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(5,5,8,0.6) 0%, transparent 15%, transparent 85%, rgba(5,5,8,0.6) 100%),
    linear-gradient(to bottom, rgba(5,5,8,0.4) 0%, transparent 40%, transparent 60%, rgba(5,5,8,0.5) 100%);
  pointer-events: none;
}

/* Avatar ตรงกลาง */
.tar-vis-avatar {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90px; height: 90px;
  z-index: 3;
}

.tar-vis-avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(#dc2626, #ff4444, #7f1d1d, #dc2626);
  animation: ringRotate 3s linear infinite;
  transition: filter 0.3s ease;
}

.tar-vis-avatar-ring.active {
  filter: drop-shadow(0 0 12px rgba(220,38,38,0.8));
  animation: ringRotate 0.8s linear infinite; /* เร็วขึ้นตอนเล่นเสียง */
}

.tar-vis-avatar-inner {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tar-vis-avatar-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: filter 0.3s ease;
}

/* glow เมื่อเล่นเสียง */
.tar-vis-avatar.playing .tar-vis-avatar-inner img {
  filter: brightness(1.1) saturate(1.2);
}

/* Now Playing text */
.tar-now-playing {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: rgba(220,38,38,0.5);
  white-space: nowrap;
  z-index: 3;
}

.tar-np-icon {
  animation: blink 1.5s infinite;
}

.tar-np-text {
  color: rgba(255,100,100,0.7);
  font-weight: 700;
  transition: color 0.3s;
}

/* Voice Buttons Grid */
.tar-voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.tar-voice-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.9rem 0.5rem;
  border-radius: 14px;
  border: 1px solid rgba(220,38,38,0.2);
  background: rgba(220,38,38,0.04);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text);
}

.tar-voice-btn:hover {
  border-color: rgba(220,38,38,0.5);
  background: rgba(220,38,38,0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(220,38,38,0.15);
}

.tar-voice-btn.playing {
  border-color: #dc2626;
  background: rgba(220,38,38,0.15);
  box-shadow:
    0 0 20px rgba(220,38,38,0.3),
    inset 0 0 20px rgba(220,38,38,0.05);
}

.tar-vbtn-icon {
  font-size: 1.4rem;
  display: block;
}

.tar-vbtn-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255,100,100,0.8);
}

/* progress bar ด้านล่างปุ่ม */
.tar-vbtn-bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #dc2626, #ff4444);
  border-radius: 999px;
  transition: width 0.1s linear;
  box-shadow: 0 0 6px #dc2626;
}

/* shimmer เมื่อ hover */
.tar-voice-btn::before {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 35%; height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
  transform: skewX(-15deg);
  transition: left 0.6s ease;
}
.tar-voice-btn:hover::before { left: 160%; }

/* Controls */
.tar-voice-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.tar-ctrl-btn {
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(220,38,38,0.3);
  background: transparent;
  color: rgba(220,38,38,0.6);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tar-ctrl-btn:not(:disabled):hover {
  border-color: #dc2626;
  background: rgba(220,38,38,0.1);
  color: #ff4444;
}

.tar-ctrl-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Volume slider */
.tar-volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tar-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 4px;
  border-radius: 999px;
  background: rgba(220,38,38,0.2);
  outline: none;
  cursor: pointer;
}

.tar-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 8px rgba(220,38,38,0.6);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.tar-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

/* ...existing code... */

/* ...existing code... */

/* ...existing code... */

/* ...existing code... */

/* ==============================
   HISTORY — TERMINAL TABS
============================== */
.history-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(184,71,245,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(79,142,247,0.04) 0%, transparent 50%),
    var(--dark);
}

.history-bg  { position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.history-orb { position:absolute; border-radius:50%; filter:blur(90px); }
.history-orb-1 {
  width:400px; height:400px;
  background:radial-gradient(circle, rgba(184,71,245,0.08), transparent 70%);
  top:-100px; left:-100px;
  animation:orbFloat1 18s ease-in-out infinite;
}
.history-orb-2 {
  width:350px; height:350px;
  background:radial-gradient(circle, rgba(79,142,247,0.06), transparent 70%);
  bottom:-80px; right:-80px;
  animation:orbFloat2 22s ease-in-out infinite;
}
.history-grid {
  position:absolute; inset:0;
  background-image:radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size:36px 36px;
  mask-image:radial-gradient(ellipse at center, black 10%, transparent 65%);
  -webkit-mask-image:radial-gradient(ellipse at center, black 10%, transparent 65%);
  animation:gridPulse 10s ease-in-out infinite;
}

/* ==============================
   WINDOW
============================== */
.tts-window {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(8,8,14,0.97);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 24px 60px rgba(0,0,0,0.5),
    0 0 80px rgba(184,71,245,0.05);
  font-family: 'JetBrains Mono','Fira Code','Cascadia Code',monospace;
}

/* titlebar */
.tts-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  user-select: none;
}

.tts-dots { display:flex; gap:0.4rem; align-items:center; }
.tts-dot  { width:12px; height:12px; border-radius:50%; display:block; }
.tts-dot-r { background:#ff5f57; box-shadow:0 0 6px rgba(255,95,87,0.5); }
.tts-dot-y { background:#ffbd2e; box-shadow:0 0 6px rgba(255,189,46,0.4); }
.tts-dot-g { background:#28ca41; box-shadow:0 0 6px rgba(40,202,65,0.4); }

.tts-titlebar-text {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 1px;
}

/* ==============================
   LAYOUT — TABS LEFT / CONTENT RIGHT
============================== */
.tts-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 340px;
}

/* ==============================
   LEFT TABS
============================== */
.tts-tabs {
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0,0.2);
}

.tts-tabs-header {
  padding: 0.7rem 1rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.tts-tabs-label {
  font-size: 0.58rem;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
}

.tts-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.75rem 1rem 0.75rem 1.2rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.2s ease;
  overflow: hidden;
}

.tts-tab::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: transparent;
  transition: background 0.3s ease;
}

.tts-tab:hover  { background: rgba(255,255,255,0.03); }

.tts-tab.active { background: rgba(255,255,255,0.04); }
.tts-tab.active::before { background: var(--purple); }

.tts-tab-year {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 1;
  display: block;
}

.tts-tab-title {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.3;
  display: block;
  transition: color 0.2s ease;
}

.tts-tab.active .tts-tab-title { color: rgba(255,255,255,0.75); }

/* dot ขวา */
.tts-tab-dot {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tts-tab.active .tts-tab-dot { opacity: 1; }

/* NOW tab */
.tts-tab-now { border-top: 1px solid rgba(239,68,68,0.12); }
.tts-dot-now { animation: blink 1.5s infinite; }

/* ==============================
   RIGHT CONTENT
============================== */
.tts-content {
  display: flex;
  flex-direction: column;
}

/* prompt bar */
.tts-prompt-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(0,0,0,0.15);
  font-size: 0.72rem;
  flex-wrap: nowrap;
  overflow: hidden;
}

.tts-prompt-user { color:#b847f5; font-weight:700; flex-shrink:0; }
.tts-prompt-sep  { color:rgba(255,255,255,0.2); flex-shrink:0; }
.tts-prompt-cmd  { color:#00d4ff; flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tts-prompt-cursor {
  color: rgba(255,255,255,0.4);
  animation: blink 0.9s step-end infinite;
  flex-shrink: 0;
}

/* panels */
.tts-panels { flex: 1; position: relative; }

.tts-panel {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.2rem 1.4rem;
  animation: ttsPanelIn 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

.tts-panel.active { display: flex; }

@keyframes ttsPanelIn {
  from { opacity:0; transform:translateX(8px); }
  to   { opacity:1; transform:translateX(0); }
}

/* panel head */
.tts-panel-head {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

.tts-panel-bracket { color:rgba(255,255,255,0.2); font-size:0.75rem; }
.tts-panel-year    { font-weight:800; letter-spacing:1px; font-size:0.75rem; }
.tts-panel-title   { color:var(--text); font-weight:700; font-size:0.88rem; flex:1; }
.tts-panel-tag     { font-size:0.65rem; opacity:0.5; font-style:italic; letter-spacing:1px; }

.tts-now-badge {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ef4444;
  animation: blink 1.2s infinite;
}

/* divider */
.tts-panel-divider {
  height: 1px;
  width: 100%;
}

/* body */
/* ===== PANEL BODY — upgrade ===== */
.tts-panel-body {
  display: flex;
  gap: 0.8rem;
  flex: 1;
}



.tts-arrow {
  flex-shrink: 0;
  font-size: 0.72rem;
  margin-top: 0.18rem;
}

.tts-panel-body > span:last-child {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.9;
}

/* footer */
.tts-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.tts-footer-chip {
  display: inline-flex;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  border: 1px solid;
}

.tts-footer-status {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.tts-footer-status.ok  { color:#28ca41; }
.tts-footer-status.now { color:#ef4444; animation:blink 1.5s infinite; }

/* scanlines */
.tts-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  border-radius: inherit;
}

/* closing */
.history-closing {
  text-align: center;
  padding: 0.8rem 1.2rem;   /* ลดจาก 1.2rem 1.5rem */
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.015);
  position: relative;
  overflow: hidden;
  margin-top: 1rem !important;
}

.history-closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(184,71,245,0.04), transparent 70%);
  pointer-events: none;
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 640px) {
  .tts-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .tts-tabs {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    scrollbar-width: none;
    background: rgba(0,0,0,0.15);
  }

  .tts-tabs::-webkit-scrollbar { display: none; }
  .tts-tabs-header { display: none; }

  .tts-tab {
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.8rem;
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,0.03);
    white-space: nowrap;
    min-width: fit-content;
  }

  .tts-tab::before {
    top: auto; bottom: 0; left: 0; right: 0;
    width: auto; height: 2px;
  }

  .tts-tab-dot { display: none; }
  .tts-tab-title { display: none; }
}

/* ...existing code... */

/* ==============================
   PARTICLE EXPLOSION LOADER
============================== */

#pex-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #030305;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.6s ease;
}

#pex-screen.pex-hide {
  opacity: 0;
  pointer-events: none;
}

/* canvas เต็มจอ */
#pex-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* noise grain */
.pex-noise {
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: noiseAnim 0.12s steps(1) infinite;
}

/* center UI */
.pex-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  /* ดันลงล่างให้ชื่อ TAR ที่วาดบน canvas อยู่ตรงกลางพอดี */
  margin-top: 140px;
}

.pex-center.show {
  opacity: 1;
  transform: translateY(0);
}

/* tagline typewriter */
.pex-subtitle {
  font-size: clamp(0.65rem, 1.5vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  min-height: 1.2em;
  text-align: center;
}

.pex-cursor {
  color: #b847f5;
  animation: blink 0.8s step-end infinite;
}

/* progress */
.pex-progress-wrap {
  width: clamp(200px, 28vw, 300px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.pex-progress-wrap.show {
  opacity: 1;
  transform: translateY(0);
}

.pex-progress-track {
  height: 1.5px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.pex-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #b847f5, #00d4ff, #f547a8);
  border-radius: 999px;
  transition: width 0.05s linear;
  box-shadow: 0 0 8px rgba(184,71,245,0.6);
}

.pex-progress-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pex-prog-label {
  font-size: 0.55rem;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.18);
  font-weight: 700;
}

.pex-prog-pct {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #b847f5, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* version */
.pex-version {
  font-size: 0.55rem;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.1);
  font-weight: 600;
  text-transform: uppercase;
}

/* skip */
.pex-skip {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.2);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  animation: pexFadeSkip 0.5s 1.8s ease forwards;
  font-family: inherit;
  z-index: 99999;
}

@keyframes pexFadeSkip {
  to { opacity: 1; }
}

.pex-skip:hover {
  border-color: rgba(184,71,245,0.4);
  color: #b847f5;
  background: rgba(184,71,245,0.06);
}

/* hero hidden ก่อน */
.hero-section {
  opacity: 0;
  transition: opacity 0.9s ease 0.1s;
}

.hero-section.hero-visible {
  opacity: 1;
}

/* ...existing code... */
 

/* ...existing code... */
/* ...existing code... */
/* ...existing code... (ใน <style> tag) */

/* ...existing code... (ใน <style> tag) */

/* ==============================
   CINEMA REEL GALLERY
============================== */

/* ── REEL SECTION WRAPPER ── */
.cinema-reel-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(251,191,36,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(184,71,245,0.05) 0%, transparent 50%),
    #080608;
}

/* film grain overlay */
.cinema-reel-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
  animation: grainShift 0.15s steps(1) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(0,    0); }
  25%  { transform: translate(-2px, 1px); }
  50%  { transform: translate(1px, -2px); }
  75%  { transform: translate(-1px, 2px); }
  100% { transform: translate(2px,  -1px); }
}

/* ── FILM REEL TRACK ── */
.film-reel-wrap {
  position: relative;
  z-index: 2;
  margin: 2rem 0;
  /* vignette left/right */
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

/* SPROCKET STRIP (top & bottom) */
.film-sprocket-strip {
  background: #111;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: 28px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  position: relative;
}

.film-sprocket-strip.top { border-bottom: 2px solid rgba(255,255,255,0.04); }
.film-sprocket-strip.bot { border-top:    2px solid rgba(255,255,255,0.04); }

/* hole */
.sprocket-hole {
  flex-shrink: 0;
  width: 18px;
  height: 14px;
  border-radius: 3px;
  background: #000;
  border: 1px solid rgba(255,255,255,0.12);
  margin: 0 14px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.8);
}

/* animated sprocket row (infinite scroll feel) */
.film-sprocket-anim {
  display: flex;
  gap: 0;
  animation: sprocketScroll 6s linear infinite;
  will-change: transform;
}

.film-sprocket-anim.reverse {
  animation-direction: reverse;
}

@keyframes sprocketScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── MAIN FILM STRIP ── */
.film-strip-outer {
  background: #0d0b0d;
  border-top: 2px solid rgba(255,255,255,0.04);
  border-bottom: 2px solid rgba(255,255,255,0.04);
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.film-strip-outer:active { cursor: grabbing; }

.film-strip-track {
  display: flex;
  gap: 0;
  transition: transform 0.05s linear;
  will-change: transform;
  padding: 0;
}

/* ── FILM FRAME ── */
.film-frame {
  flex-shrink: 0;
  width: 280px;
  height: 220px;
  position: relative;
  border-right: 2px solid #000;
  overflow: hidden;
  cursor: pointer;
  transition: filter 0.35s ease;
  filter: sepia(0.15) brightness(0.88) contrast(1.05);
}

.film-frame:hover {
  filter: sepia(0) brightness(1.05) contrast(1.08);
  z-index: 2;
}

.film-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.5s ease;
}

.film-frame:hover img {
  transform: scale(1.06);
}

/* frame number — top-left corner */
.film-frame-num {
  position: absolute;
  top: 6px;
  left: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(251,191,36,0.55);
  letter-spacing: 1.5px;
  z-index: 3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  pointer-events: none;
}

/* film type badge — top-right */
.film-frame-type {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.35);
  z-index: 3;
  pointer-events: none;
}

/* overlay on hover */
.film-frame-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.35) 45%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  z-index: 2;
}

.film-frame:hover .film-frame-overlay { opacity: 1; }

.film-frame-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.film-frame-tag {
  font-size: 0.62rem;
  color: rgba(251,191,36,0.75);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'Courier New', monospace;
}

/* play icon */
.film-frame-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 3;
  pointer-events: none;
}

.film-frame:hover .film-frame-play { opacity: 1; }

.film-frame-play-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(251,191,36,0.15);
  border: 1.5px solid rgba(251,191,36,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(251,191,36,0.9);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 20px rgba(251,191,36,0.2);
  transition: transform 0.2s, background 0.2s;
}

.film-frame:hover .film-frame-play-icon {
  transform: scale(1.1);
  background: rgba(251,191,36,0.22);
}

/* scratch lines on frame */
.film-frame-scratch {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.04;
  background: repeating-linear-gradient(
    92deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.6) 40px,
    rgba(255,255,255,0.6) 41px
  );
  animation: scratchFlicker 8s steps(1) infinite;
}

@keyframes scratchFlicker {
  0%,96%  { opacity: 0.03; transform: translateX(0); }
  97%     { opacity: 0.07; transform: translateX(-2px); }
  98%     { opacity: 0.02; transform: translateX(1px); }
  99%     { opacity: 0.06; transform: translateX(0); }
  100%    { opacity: 0.03; }
}

/* ── REEL END MARKER ── */
.film-reel-end {
  flex-shrink: 0;
  width: 60px;
  height: 220px;
  background: repeating-linear-gradient(
    -45deg,
    #111,
    #111 6px,
    #000 6px,
    #000 12px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 2px solid #000;
  opacity: 0.5;
}

/* ── REEL CONTROLS ── */
.reel-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.8rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.reel-ctrl-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}

.reel-ctrl-btn:hover {
  border-color: rgba(251,191,36,0.5);
  color: #fbbf24;
  background: rgba(251,191,36,0.08);
  box-shadow: 0 0 16px rgba(251,191,36,0.1);
}

.reel-play-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid rgba(251,191,36,0.4);
  background: rgba(251,191,36,0.08);
  color: #fbbf24;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.25s;
  box-shadow: 0 0 20px rgba(251,191,36,0.08);
}

.reel-play-btn:hover {
  background: rgba(251,191,36,0.16);
  border-color: rgba(251,191,36,0.7);
  box-shadow: 0 0 30px rgba(251,191,36,0.2);
  transform: scale(1.05);
}

.reel-play-btn.playing {
  border-color: rgba(239,68,68,0.6);
  background: rgba(239,68,68,0.08);
  color: #ef4444;
  box-shadow: 0 0 20px rgba(239,68,68,0.15);
}

/* speed / counter display */
.reel-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 60px;
}

.reel-counter-num {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(251,191,36,0.7);
  letter-spacing: 1px;
}

.reel-counter-label {
  font-size: 0.52rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* speed indicator */
.reel-speed-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reel-speed-label {
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 1.5px;
}

.reel-speed-dots {
  display: flex;
  gap: 3px;
}

.reel-speed-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s;
}

.reel-speed-dot.active {
  background: #fbbf24;
  border-color: #fbbf24;
  box-shadow: 0 0 6px rgba(251,191,36,0.5);
}

/* ── REEL PROGRESS STRIP ── */
.reel-progress-wrap {
  position: relative;
  z-index: 2;
  margin: 0.8rem auto;
  max-width: 600px;
  padding: 0 2rem;
}

.reel-progress-track {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.reel-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 6px rgba(251,191,36,0.4);
}

.reel-progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fbbf24;
  border: 2px solid #000;
  box-shadow: 0 0 8px rgba(251,191,36,0.6);
  cursor: grab;
  transition: transform 0.1s, left 0.1s linear;
}

.reel-progress-thumb:active { cursor: grabbing; }

/* ── REEL HEADER ── */
.reel-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.reel-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.reel-film-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.2);
  color: rgba(251,191,36,0.7);
  font-family: 'Courier New', monospace;
}

.reel-film-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 6px #fbbf24;
  animation: blink 1.5s infinite;
}

/* ── TICKER TAPE ── */
.reel-ticker {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(0,0,0,0.4);
  padding: 0.35rem 0;
  margin: 1.5rem 0;
  position: relative;
  z-index: 2;
}

.reel-ticker-inner {
  display: flex;
  gap: 0;
  animation: tickerScroll 20s linear infinite;
  white-space: nowrap;
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.reel-ticker-item {
  flex-shrink: 0;
  padding: 0 2rem;
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reel-ticker-sep {
  color: rgba(251,191,36,0.3);
}

/* ── LIGHTBOX — CINEMA STYLE ── */
.cinema-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(12px);
}

.cinema-lightbox.open {
  opacity: 1;
  pointer-events: all;
}

/* projector light beam */
.cinema-lightbox::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 100%;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(251,191,36,0.04) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.cinema-lb-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  max-width: 90vw;
  position: relative;
}

/* film frame border */
.cinema-lb-img-wrap {
  position: relative;
  background: #0a0a0a;
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.8),
    0 0 60px rgba(0,0,0,0.8),
    0 0 120px rgba(251,191,36,0.04);
}

/* sprockets on sides */
.cinema-lb-img-wrap::before,
.cinema-lb-img-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  background:
    repeating-linear-gradient(
      to bottom,
      #0a0a0a 0px,
      #0a0a0a 8px,
      #000 8px,
      #000 20px,
      #0a0a0a 20px,
      #0a0a0a 28px
    );
}

.cinema-lb-img-wrap::before { left: 0; }
.cinema-lb-img-wrap::after  { right: 0; }

.cinema-lb-img {
  display: block;
  max-width: 80vw;
  max-height: 72vh;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: contrast(1.02) brightness(0.96);
  transition: opacity 0.2s;
}

/* frame number bar */
.cinema-lb-filmbar {
  position: absolute;
  bottom: 0; left: 20px; right: 20px;
  height: 22px;
  background: rgba(0,0,0,0.7);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.8rem;
  z-index: 2;
}

.cinema-lb-filmbar-num {
  font-family: 'Courier New', monospace;
  font-size: 0.55rem;
  color: rgba(251,191,36,0.5);
  letter-spacing: 2px;
}

.cinema-lb-filmbar-perf {
  display: flex;
  gap: 4px;
}

.cinema-lb-filmbar-perf span {
  width: 8px;
  height: 10px;
  border-radius: 2px;
  background: #000;
  border: 1px solid rgba(255,255,255,0.1);
  display: block;
}

/* nav arrows */
.cinema-lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.6);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
  z-index: 5;
}

.cinema-lb-arrow:hover {
  border-color: rgba(251,191,36,0.5);
  color: #fbbf24;
  background: rgba(251,191,36,0.08);
}

.cinema-lb-arrow.prev { left: -60px; }
.cinema-lb-arrow.next { right: -60px; }

/* info bar */
.cinema-lb-info {
  text-align: center;
}

.cinema-lb-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.cinema-lb-meta {
  font-family: 'Courier New', monospace;
  font-size: 0.62rem;
  color: rgba(251,191,36,0.5);
  letter-spacing: 2px;
}

/* thumbnail filmstrip at bottom */
.cinema-lb-strip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  max-width: 80vw;
  padding: 4px 0;
  scrollbar-width: none;
}

.cinema-lb-strip::-webkit-scrollbar { display: none; }

.cinema-lb-strip-thumb {
  flex-shrink: 0;
  width: 52px;
  height: 38px;
  object-fit: cover;
  cursor: pointer;
  border: 1.5px solid transparent;
  border-radius: 2px;
  opacity: 0.45;
  filter: sepia(0.3);
  transition: all 0.2s;
}

.cinema-lb-strip-thumb.active {
  border-color: rgba(251,191,36,0.7);
  opacity: 1;
  filter: none;
  box-shadow: 0 0 10px rgba(251,191,36,0.25);
}

.cinema-lb-strip-thumb:hover {
  opacity: 0.8;
  filter: sepia(0);
}

/* close button */
.cinema-lb-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
  z-index: 10;
}

.cinema-lb-close:hover {
  border-color: rgba(251,191,36,0.5);
  color: #fbbf24;
  background: rgba(251,191,36,0.08);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .film-frame { width: 200px; height: 160px; }
  .cinema-lb-arrow.prev { left: -36px; }
  .cinema-lb-arrow.next { right: -36px; }
  .cinema-lb-img { max-height: 55vh; }
  .reel-film-badge { font-size: 0.55rem; }
}


/* ...existing code... (ใน <style> tag เพิ่มก่อน </style>) */

/* ══════════════════════════════════════
   ABOUT — HOLOGRAM HUD SECTION
══════════════════════════════════════ */
.hud-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 40%, rgba(0,212,255,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 60%, rgba(184,71,245,0.06) 0%, transparent 50%),
    var(--dark-2);
}

/* ── BG ── */
.hud-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hud-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.hud-orb-1 {
  width: 400px; height: 400px;
  top: -100px; left: -100px;
  background: radial-gradient(circle, rgba(0,212,255,0.15), transparent 70%);
  animation: hudOrbFloat1 12s ease-in-out infinite;
}

.hud-orb-2 {
  width: 500px; height: 500px;
  bottom: -150px; right: -150px;
  background: radial-gradient(circle, rgba(184,71,245,0.12), transparent 70%);
  animation: hudOrbFloat2 15s ease-in-out infinite;
}

.hud-orb-3 {
  width: 300px; height: 300px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(245,71,168,0.06), transparent 70%);
  animation: hudOrbFloat1 9s ease-in-out infinite reverse;
}

.hud-grid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

@keyframes hudOrbFloat1 {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(30px, -20px); }
}
@keyframes hudOrbFloat2 {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(-25px, 15px); }
}

/* ── LAYOUT ── */
.hud-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .hud-layout { grid-template-columns: 1fr; }
}

/* ══════════════════════════════
   LEFT — PROFILE WINDOW
══════════════════════════════ */
.hud-profile-window {
  border-radius: 18px;
  border: 1px solid rgba(0,212,255,0.12);
  background: linear-gradient(160deg,
    rgba(2,8,18,0.98),
    rgba(0,4,12,0.99)
  );
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(0,212,255,0.04),
    0 0 40px rgba(0,212,255,0.06),
    0 20px 60px rgba(0,0,0,0.6);
}

/* shimmer top border */
.hud-profile-window::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(0,212,255,0.6),
    rgba(184,71,245,0.4),
    transparent
  );
  animation: hudShimmer 4s linear infinite;
  z-index: 10;
}

@keyframes hudShimmer {
  from { left: -100%; }
  to   { left: 100%; }
}

/* window top bar */
.hud-win-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  background: rgba(0,212,255,0.04);
  border-bottom: 1px solid rgba(0,212,255,0.08);
}

.hud-win-dots { display: flex; gap: 0.4rem; }
.hud-dot {
  width: 11px; height: 11px; border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
  cursor: pointer; transition: transform 0.2s;
}
.hud-dot:hover { transform: scale(1.2); }

.hud-win-title {
  flex: 1;
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  color: rgba(0,212,255,0.5);
  font-family: 'JetBrains Mono', monospace;
}

.hud-win-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.58rem;
  letter-spacing: 2px;
  color: #22c55e;
  font-family: 'JetBrains Mono', monospace;
}

.hud-blink-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 5px currentColor;
  animation: blink 1.5s infinite;
}

/* ── SCAN AREA ── */
.hud-scan-area {
  position: relative;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 50%,
      rgba(0,212,255,0.04) 0%,
      transparent 70%
    );
}

/* corner brackets */
.hud-corner {
  position: absolute;
  width: 18px; height: 18px;
  border-color: rgba(0,212,255,0.5);
  border-style: solid;
  z-index: 5;
  transition: border-color 0.3s;
}
.hud-profile-window:hover .hud-corner {
  border-color: rgba(0,212,255,0.9);
}
.hc-tl { top: 10px; left: 10px;  border-width: 2px 0 0 2px; }
.hc-tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.hc-bl { bottom: 10px; left: 10px;  border-width: 0 0 2px 2px; }
.hc-br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

/* avatar */
.hud-avatar-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.hud-avatar-ring-outer {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.15);
  animation: hudRingRotate 8s linear infinite;
  background: conic-gradient(
    rgba(0,212,255,0.12),
    transparent 60%,
    rgba(184,71,245,0.1),
    transparent
  );
}

.hud-avatar-ring-inner {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,212,255,0.3);
  animation: hudRingRotate 5s linear infinite reverse;
}

@keyframes hudRingRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hud-avatar-img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(0,212,255,0.25);
  box-shadow:
    0 0 20px rgba(0,212,255,0.15),
    0 0 40px rgba(0,212,255,0.06);
  position: relative;
  z-index: 2;
}

/* scan beam */
.hud-scan-beam {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(0,212,255,0.7),
    rgba(0,212,255,0.9),
    rgba(0,212,255,0.7),
    transparent
  );
  box-shadow: 0 0 8px rgba(0,212,255,0.5);
  border-radius: 2px;
  z-index: 3;
  animation: hudScanBeam 3s linear infinite;
  pointer-events: none;
}

@keyframes hudScanBeam {
  0%   { top: 0%; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* grid overlay on avatar */
.hud-avatar-grid {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 16px 16px;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* HUD readouts */
.hud-readout {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 1px;
  z-index: 5;
}

.hud-readout-tl { top: 16px; left: 28px; }
.hud-readout-tr { top: 16px; right: 28px; text-align: right; }
.hud-readout-bl { bottom: 16px; left: 28px; }
.hud-readout-br { bottom: 16px; right: 28px; text-align: right; }

.hud-readout-key {
  font-size: 0.5rem;
  letter-spacing: 2px;
  color: rgba(0,212,255,0.35);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
}

.hud-readout-val {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
  font-family: 'JetBrains Mono', monospace;
}

/* identity bar */
.hud-identity-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  background: rgba(0,212,255,0.03);
  border-top: 1px solid rgba(0,212,255,0.07);
  border-bottom: 1px solid rgba(0,212,255,0.07);
}

.hud-identity-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hud-identity-name {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
}

.hud-identity-role {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1px;
}

.hud-identity-loc {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 1px;
  font-family: 'JetBrains Mono', monospace;
}

/* info rows */
.hud-info-rows {
  padding: 0.5rem 1.2rem;
}

.hud-info-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.hud-info-row:last-child { border-bottom: none; }

.hud-info-icon {
  font-size: 0.85rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.hud-info-label {
  font-size: 0.58rem;
  letter-spacing: 1.5px;
  color: rgba(0,212,255,0.35);
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  flex: none;
  min-width: 65px;
}

.hud-info-value {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  margin-left: auto;
  text-align: right;
}

/* tags */
.hud-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.8rem 1.2rem 1.2rem;
}

.hud-tag {
  padding: 0.22rem 0.65rem;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 600;
  background: rgba(0,212,255,0.04);
  border: 1px solid rgba(0,212,255,0.12);
  color: rgba(0,212,255,0.5);
  letter-spacing: 0.5px;
  cursor: default;
  transition: all 0.2s;
  font-family: 'JetBrains Mono', monospace;
}

.hud-tag:hover {
  border-color: rgba(0,212,255,0.35);
  color: rgba(0,212,255,0.85);
  background: rgba(0,212,255,0.08);
  box-shadow: 0 0 8px rgba(0,212,255,0.1);
}

/* scanlines */
.hud-win-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,212,255,0.008) 3px,
    rgba(0,212,255,0.008) 4px
  );
  border-radius: 18px;
}

/* ══════════════════════════════
   RIGHT — PANELS
══════════════════════════════ */
.hud-right {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hud-panel {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.015);
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.hud-panel:hover {
  border-color: rgba(0,212,255,0.15);
  box-shadow: 0 4px 20px rgba(0,212,255,0.05);
}

/* panel shimmer on hover */
.hud-panel::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(0,212,255,0.5),
    transparent
  );
  transition: left 0s;
}

.hud-panel:hover::before {
  animation: hudShimmer 1.5s linear;
}

/* panel header */
.hud-panel-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.hud-panel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 5px currentColor;
  animation: blink 2s infinite;
}

.hud-panel-title {
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.3);
  font-family: 'JetBrains Mono', monospace;
}

.hud-panel-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.05),
    transparent
  );
}

.hud-panel-badge {
  font-size: 0.52rem;
  letter-spacing: 1.5px;
  color: rgba(0,212,255,0.45);
  border: 1px solid rgba(0,212,255,0.18);
  background: rgba(0,212,255,0.04);
  padding: 0.12rem 0.55rem;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* panel body */
.hud-panel-body {
  padding: 1rem;
}

/* quote block */
.hud-quote-block {
  border-left: 2px solid rgba(0,212,255,0.3);
  padding: 0.6rem 0.9rem;
  background: rgba(0,212,255,0.03);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  position: relative;
}

.hud-quote-mark {
  font-size: 1.8rem;
  line-height: 0;
  color: rgba(0,212,255,0.2);
  vertical-align: -0.4rem;
  margin-right: 0.3rem;
}

.hud-bio-text {
  color: rgba(255,255,255,0.45);
  font-size: 0.84rem;
  line-height: 1.9;
}

/* ── PERSONALITY TRAIT GRID ── */
.hud-trait-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.hud-trait {
  padding: 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
  transition: all 0.25s;
}

.hud-trait:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.hud-trait-top {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.hud-trait-icon-wrap {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Class พิเศษบัดกรีรุ้งวิ่งเฉพาะจุด 10/10!! */
.hud-trait-icon-wrap.is-rainbow {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  
  /* 1. บัดกรีความโค้งมนสยัส! */
  border-radius: 10px; 
  
  /* 2. สร้างขอบหลอกด้วย Border 2px โปร่งใสสัด! */
  border: 2px solid transparent; 
  
  /* 3. ท่าไม้ตาย: ซ้อน Background 2 ชั้น 10/10!! */
  background: 
    linear-gradient(#1a1a1a, #1a1a1a) padding-box, /* ชั้นบน: สีพื้นหลังกล่องมึงสัด! */
    linear-gradient(45deg, #ff46f2, #49b6ff, #00fffb, #ff9e3d, #ff46f2) border-box; /* ชั้นล่าง: สีรุ้งสยัส! */
    
  /* 4. ใส่ Animation เดิมของมึงได้เลยสัด! */
  animation: rainbow-border-run 1s linear infinite;
}
@keyframes rainbow-border-run {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg); /* หมุนเฉดสีไปทั้งจักรวาลสัด! */
    }
}

/* 3. แถม: ตอน Hover ให้มันวิ่งเร็วขึ้นเหมือน Overclock สยัส! */
.hud-trait-icon-wrap.is-rainbow:hover {
    animation-duration: 1.5s;
}

.hud-trait-info { flex: 1; }

.hud-trait-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.35rem;
}

.hud-trait-level {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hud-level-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.hud-level-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.16,1,0.3,1);
}

.hud-level-pct {
  font-size: 0.58rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}

.hud-trait-desc {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
}

/* ── SYSTEM VITALS ── */
.hud-vitals {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hud-vital-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.hud-vital-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  min-width: 130px;
  flex-shrink: 0;
}

.hud-vital-bar-wrap { flex: 1; }

.hud-vital-bar {
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}

.hud-vital-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 1.4s cubic-bezier(0.16,1,0.3,1);
}

.hud-vital-pct {
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 34px;
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hud-layout { grid-template-columns: 1fr; }
  .hud-trait-grid { grid-template-columns: 1fr; }
  .hud-vital-label { min-width: 100px; font-size: 0.65rem; }
  .hud-scan-area { padding: 1.5rem; }
  .hud-readout-tl,
  .hud-readout-tr { top: 8px; }
  .hud-readout-bl,
  .hud-readout-br { bottom: 8px; }
}




@keyframes flagGlitch {
  0%   { clip-path: inset(0 0 0 0); filter: hue-rotate(0deg) brightness(1); transform: scale(1) translateX(0); }
  20%  { clip-path: inset(20% -6px 80% 0); transform: scale(1.1) translateX(-5px); filter: hue-rotate(90deg) brightness(2); }
  40%  { clip-path: inset(50% 0 30% 0); transform: scale(0.9) translateX(5px); }
  60%  { clip-path: inset(10% 0 70% 0); transform: scale(1.2) translateX(-2px); filter: hue-rotate(180deg); }
  80%  { clip-path: inset(80% -6px 10% 0); transform: scale(1.1) translateX(2px); }
  100% { clip-path: inset(0 0 0 0); filter: hue-rotate(0deg) brightness(1); transform: scale(1) translateX(0); }
}

.flag-glitching {
  animation: flagGlitch 0.25s steps(2) infinite;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
}




/* ── Signal Strength Blocks ── */
.sig-blocks {
  display: flex;
  gap: 3.5px;
  align-items: center;
  flex: 1;
}

.sig-block {
  flex: 1;            /* ยืดเต็ม row — ไม่ fixed width อีกต่อไป */
  min-width: 10px;
  max-width: 50px;
  height: 13px;       /* สูงขึ้น — เดิม 12px */
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: none;
}


.sig-block.sig-on {
  background: rgba(var(--sig-c), 0.7);
  border-color: rgba(var(--sig-c), 0.85);
  box-shadow: 0 0 6px rgba(var(--sig-c), 0.45);
}

.sig-block.sig-flash {
  background: rgba(255,255,255,0.95);
  border-color: #fff;
  box-shadow: 0 0 12px rgba(255,255,255,0.9), 0 0 22px rgba(255,255,255,0.4);
}

.sig-tier {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  min-width: 70px;
  text-align: right;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.sig-tier.sig-show {
  opacity: 1;
}


/* ══════════════════════════════
   SIGNAL BLOCK — SPECIAL VARIANTS
══════════════════════════════ */

/* ── 🧠 Rainbow Wave — stagger per block ── */
.sig-block.sig-rainbow {
  animation: sigRainbow 4s linear infinite;
}

@keyframes sigRainbow {
  0%   { background:rgba(255,0,100,0.45);  border-color:rgba(255,0,100,0.65);  box-shadow:inset 0 1px 0 rgba(255,255,255,0.15), 0 0 8px rgba(255,0,100,0.4); }
  16%  { background:rgba(255,100,0,0.45);  border-color:rgba(255,100,0,0.65);  box-shadow:inset 0 1px 0 rgba(255,255,255,0.15), 0 0 8px rgba(255,100,0,0.4); }
  33%  { background:rgba(220,210,0,0.45);  border-color:rgba(220,210,0,0.65);  box-shadow:inset 0 1px 0 rgba(255,255,255,0.15), 0 0 8px rgba(220,210,0,0.4); }
  50%  { background:rgba(0,210,100,0.45);  border-color:rgba(0,210,100,0.65);  box-shadow:inset 0 1px 0 rgba(255,255,255,0.15), 0 0 8px rgba(0,210,100,0.4); }
  66%  { background:rgba(0,190,255,0.45);  border-color:rgba(0,190,255,0.65);  box-shadow:inset 0 1px 0 rgba(255,255,255,0.15), 0 0 8px rgba(0,190,255,0.4); }
  83%  { background:rgba(150,30,255,0.45); border-color:rgba(150,30,255,0.65); box-shadow:inset 0 1px 0 rgba(255,255,255,0.15), 0 0 8px rgba(150,30,255,0.4); }
  100% { background:rgba(255,0,100,0.45);  border-color:rgba(255,0,100,0.65);  box-shadow:inset 0 1px 0 rgba(255,255,255,0.15), 0 0 8px rgba(255,0,100,0.4); }
}

/* ── 🚀 Lightning Flicker ── */
.sig-block.sig-lightning {
  animation: sigLightning 2s ease-in-out infinite;
}

@keyframes sigLightning {
  0%,100% { background:rgba(0,240,255,0.3);  border-color:rgba(0,240,255,0.5);  box-shadow:inset 0 1px 0 rgba(255,255,255,0.12), 0 0 5px rgba(0,240,255,0.25); }
  12%     { background:rgba(0,240,255,0.9);  border-color:rgba(200,255,255,0.95); box-shadow:0 0 22px rgba(0,240,255,0.9), 0 0 50px rgba(0,240,255,0.35); }
  14%     { background:rgba(0,240,255,0.3); }
  16%     { background:rgba(0,240,255,0.85); border-color:rgba(180,255,255,0.9); box-shadow:0 0 18px rgba(0,240,255,0.8); }
  18%     { background:rgba(0,240,255,0.3); }
  55%     { background:rgba(0,240,255,0.55); border-color:rgba(0,240,255,0.7);  box-shadow:inset 0 1px 0 rgba(255,255,255,0.18), 0 0 12px rgba(0,240,255,0.45); }
}

/* lightning bolt sweep ใน card */
.rocket-launch-card {
  position: relative;
  overflow: hidden;
}
.rocket-launch-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 40%; height: 100%;
  background: linear-gradient(105deg,
    transparent 30%,
    rgba(0,240,255,0.07) 50%,
    rgba(0,240,255,0.13) 51%,
    transparent 70%
  );
  animation: rocketSweep 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes rocketSweep {
  0%,60%,100% { left:-100%; opacity:0; }
  62%         { opacity:1; }
  80%         { left:160%; opacity:0; }
}

/* ── 🔥 Fire Blocks ── */
.sig-block.sig-fire {
  animation: sigFire 2.2s ease-in-out infinite;
}

@keyframes sigFire {
  0%,100% { background:rgba(255,80,20,0.35);  border-color:rgba(255,80,20,0.55);  box-shadow:inset 0 1px 0 rgba(255,255,255,0.12), 0 0 5px rgba(255,80,20,0.3); }
  30%     { background:rgba(255,130,0,0.55);  border-color:rgba(255,160,50,0.75); box-shadow:inset 0 1px 0 rgba(255,200,80,0.25), 0 0 14px rgba(255,100,0,0.55); }
  70%     { background:rgba(255,50,0,0.45);   border-color:rgba(255,80,30,0.65);  box-shadow:inset 0 1px 0 rgba(255,180,80,0.2), 0 0 9px rgba(255,60,0,0.45); }
}

/* fire glow ด้านหลัง card */
.fire-special {
  position: relative;
  overflow: hidden;
}
.fire-special::before {
  content: '';
  position: absolute;
  bottom: -10px; left: -5%;
  width: 110%; height: 65%;
  background:
    radial-gradient(ellipse at 20% 100%, rgba(255,60,0,0.2)  0%, transparent 60%),
    radial-gradient(ellipse at 55% 100%, rgba(255,120,0,0.16) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(255,80,0,0.18)  0%, transparent 60%);
  animation: fireBg 2.8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes fireBg {
  0%   { transform:scaleY(1)    scaleX(1);    opacity:0.75; }
  50%  { transform:scaleY(1.18) scaleX(1.04); opacity:1; }
  100% { transform:scaleY(0.88) scaleX(0.97); opacity:0.7; }
}

/* ป้องกัน content ถูก overlay ทับ */
.fire-special .hud-trait-top,
.fire-special .hud-trait-desc,
.rocket-launch-card .hud-trait-top,
.rocket-launch-card .hud-trait-desc {
  position: relative;
  z-index: 1;
}



/* youtube premium featured new */
.yt-featured-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) {
  .yt-featured-grid { grid-template-columns: 1fr; }
}

.yt-featured-info {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.8rem 1.6rem;
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  height: 100%;
  box-sizing: border-box;

}

.yt-featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,60,60,0.6);
  font-family: 'JetBrains Mono', monospace;
}

.yt-featured-title {
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.45;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 0%, #cccccc 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.08));
}

.yt-featured-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.yt-featured-stats {
  display: flex;
  gap: 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.yt-featured-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  text-align: center;
  padding: 0 0.5rem;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.yt-featured-stat:last-child { border-right: none; }

.yt-featured-stat-val {
  font-size: 1.3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ff6060, #ff2020);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.yt-featured-stat-label {
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.2);
  font-family: 'JetBrains Mono', monospace;
}

.yt-featured-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.yt-feat-tag {
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  font-size: 0.58rem;
  border: 1px solid rgba(255,60,60,0.22);
  color: rgba(255,80,80,0.5);
  background: rgba(255,0,0,0.04);
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}
.yt-feat-tag:hover {
  border-color: rgba(255,60,60,0.4);
  color: rgba(255,80,80,0.8);
}

.yt-featured-cta {
/* ... ตัวเลือกการจัดวางเดิมมึงกริบอยู่แล้วสยัส! ... */
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;

  /* 1. บัดกรี Background ให้มีมิติ "แสงส่อง" ไม่ใช่สีพื้นตายๆ สยัส! */
  background: radial-gradient(circle at 50% 0%, rgba(255, 0, 0, 0.15), rgba(255, 0, 0, 0.05));
  
  /* 2. จูน Border ให้เป็น "Glass-Red" ดูแพงขึ้น 8 แสนเท่าสัด! */
  border: 1px solid rgba(255, 0, 0, 0.2);
  border-top-color: rgba(255, 80, 80, 0.5); /* เพิ่ม Highlight ขอบบนให้ดูเหมือน 2D Glass สยัส! */

  color: rgba(255, 80, 80, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px; /* ยืดอีกนิดให้ดู High-end สยัส! */
  text-decoration: none;
  text-transform: uppercase;
  
  /* 3. บัดกรี Shadow แบบซ้อนชั้น (Stacked) ให้ปุ่มมันลอยกริบๆ 10/10!! */
  box-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.05); /* แสงสะท้อนขอบในสยัส! */

  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  align-self: flex-start;
}
.yt-featured-cta::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 40px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-20deg);
  animation: scan-line 5s infinite;
}

@keyframes scan-line {
  0% { left: -100%; }
  20% { left: 150%; } /* วิ่งวาบไปแล้วพักสยัส! */
  100% { left: 150%; }
}
.yt-featured-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 0%, rgba(255,0,0,0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.yt-featured-cta:hover {
/* ตอน Hover ให้มัน "ตื่น" ขึ้นมาสยัส! */
  background: rgba(255, 0, 0, 0.12);
  border-color: rgba(255, 80, 80, 0.8);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 0, 0, 0.2);
}
.yt-featured-cta:hover::before { opacity: 1; }