/* ========================================
   OMG Gaming - Features, Company and News article pages
   Loaded after style.css and game-detail.css
   ======================================== */

.pg {
  --game-accent: #00AEEF;
  --game-accent-rgb: 0, 174, 239;
}

.pg h1, .pg h2, .pg h3 { font-family: 'Outfit', 'Roboto', 'Noto Sans Thai', 'Noto Sans Bengali', sans-serif; }

.pg-lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 64ch;
}

.pg-h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 16px;
}

.pg-section { padding: 88px 0; border-top: 1px solid var(--border); }
.pg-section--tint { background: var(--bg-elevated); }

/* ---------- Page intro ---------- */
.pg-intro { padding: 64px 0 56px; }

.pg-intro h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 20px;
  max-width: 18ch;
}

.pg-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.pg-jump a {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--card-bg);
}

.pg-jump a:hover { border-color: var(--accent); color: var(--white); }

/* ---------- Features: mechanic rows ---------- */
.mech {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 72px;
  align-items: start;
  padding: 72px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 100px;
}

.mech:nth-of-type(even) { grid-template-columns: 280px minmax(0, 1fr); }
.mech:nth-of-type(even) .mech__shot { order: -1; }

.mech h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 14px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
}

.mech__body > p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 62ch;
}

.mech__shot { position: sticky; top: 110px; }

.glist { border-top: 1px solid var(--border); }

.glist li {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.6;
}

.glist__label { font-weight: 600; color: var(--white); }
.glist__text { color: var(--text-secondary); }

.gchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.gchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.gchip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.gchip:hover { border-color: var(--accent); color: var(--white); }

a.glist__label:hover { color: var(--accent); }

/* Options table */
.pg-table-wrap { overflow-x: auto; margin-top: 8px; }

.pg-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}

.pg-table th {
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid rgba(0, 174, 239, 0.45);
}

.pg-table td {
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

.pg-table td:first-child a { color: var(--white); font-weight: 600; }
.pg-table td:first-child a:hover { color: var(--accent); }
.pg-table td.num { color: var(--white); font-weight: 600; white-space: nowrap; }

/* Operator grid */
.ops {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
  margin-top: 40px;
}

.ops h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  padding-top: 16px;
  border-top: 2px solid var(--accent);
  margin-bottom: 8px;
}

.ops p { font-size: 15px; line-height: 1.7; color: var(--text-secondary); }

/* FAQ */
.faq { max-width: 820px; margin-top: 32px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  position: relative;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 16px;
  font-size: 24px;
  color: var(--accent);
}

.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 22px; font-size: 16px; line-height: 1.75; color: var(--text-secondary); max-width: 70ch; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* CTA band */
.pg-cta {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.pg-cta h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: var(--white); margin-bottom: 14px; }
.pg-cta p { font-size: 18px; color: var(--text-secondary); margin: 0 auto 32px; max-width: 56ch; }
.pg-cta .btn { font-size: 16px; padding: 16px 40px; }
.pg-cta .btn + .btn { margin-left: 12px; }

/* ---------- Company ---------- */
.co-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 104px;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
}

.co-wall {
  position: absolute;
  z-index: -2;
  top: -120px;
  right: -140px;
  width: 900px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  transform: rotate(-12deg);
  opacity: 0.55;
}

.co-wall img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.co-wall img:nth-child(6n+2), .co-wall img:nth-child(6n+5) { transform: translateY(60px); }

.co-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(26, 28, 33, 0.94) 42%, rgba(26, 28, 33, 0.55) 75%, rgba(26, 28, 33, 0.3) 100%);
}

.co-hero h1 {
  font-size: clamp(44px, 6.4vw, 84px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 22px;
}

.co-hero .pg-lead { max-width: 52ch; margin-bottom: 32px; }
.co-hero .btn { padding: 15px 34px; font-size: 15px; }
.co-hero .btn + .btn { margin-left: 10px; }

.co-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.co-overview p { font-size: 17px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 18px; }

.co-facts { border-top: 1px solid rgba(0, 174, 239, 0.45); }
.co-facts div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.co-facts dt { font-size: 14px; color: var(--color-text-muted); }
.co-facts dd { font-size: 16px; font-weight: 600; color: var(--white); line-height: 1.5; }

.co-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.co-pillar {
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.co-pillar h3 { font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.co-pillar p { font-size: 15px; line-height: 1.75; color: var(--text-secondary); }
.co-pillar .gchips { margin-top: 16px; }

.co-shelf {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.co-shelf { align-items: stretch; }
.co-shelf a { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--card-bg); }
.co-shelf a:hover { border-color: var(--accent); }
.co-shelf img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.co-shelf span { flex: 1; display: block; padding: 10px 12px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--white); }

.pg-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pg-head-row a { color: var(--accent); font-weight: 600; }
.pg-head-row a:hover { color: var(--color-accent-magenta); }

.co-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

.co-stats div { padding: 24px 24px 0 0; }
.co-stats strong { display: block; font-family: 'Outfit', 'Roboto', 'Noto Sans Thai', 'Noto Sans Bengali', sans-serif; font-size: 40px; font-weight: 800; color: var(--white); line-height: 1.1; }
.co-stats span { font-size: 15px; color: var(--color-text-muted); }

.timeline { list-style: none; margin-top: 40px; max-width: 760px; position: relative; }

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--accent), rgba(0, 174, 239, 0.1));
}

.timeline li { position: relative; padding: 0 0 36px 44px; }

.timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
}

.timeline time { display: block; font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.timeline h3 { font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.timeline p { font-size: 15px; line-height: 1.7; color: var(--text-secondary); }
.timeline a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(0, 174, 239, 0.6); text-underline-offset: 3px; }
.timeline a:hover { color: var(--accent); }

.co-partners {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.co-partners a {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.co-partners a:hover { border-color: var(--accent); }
.co-partners img { width: 100%; height: 100%; object-fit: contain; }

.co-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 40px;
}

.co-values h3 { font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 10px; padding-top: 16px; border-top: 2px solid var(--accent); }
.co-values p { font-size: 15px; line-height: 1.75; color: var(--text-secondary); }

/* ---------- News article ---------- */
.nw { padding: 48px 0 40px; }
.nw-wrap { max-width: 780px; margin: 0 auto; }

.nw-meta { display: flex; gap: 14px; align-items: center; font-size: 14px; color: var(--color-text-muted); margin-bottom: 18px; }
.nw-tag { padding: 4px 12px; border-radius: 999px; background: rgba(0, 174, 239, 0.14); color: var(--accent); font-weight: 600; }

.nw h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: 18px;
}

.nw-dek { font-size: 20px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 36px; }

.nw-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 32px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse at 20% 30%, rgba(240, 169, 58, 0.28), transparent 60%),
    radial-gradient(ellipse at 90% 80%, rgba(0, 174, 239, 0.18), transparent 60%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  margin-bottom: 48px;
}

.nw-hero > img { width: 100%; border-radius: var(--radius-lg); }
.nw-hero .gd-phone__screen { border-radius: 22px; padding: 6px; }
.nw-hero .gd-phone__screen img { border-radius: 17px; }

.nw-body h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; color: var(--white); margin: 48px 0 14px; }
.nw-body p { font-size: 17px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 16px; }
.nw-body strong { color: var(--white); font-weight: 600; }
.nw-body .gd-specs { margin: 8px 0 8px; max-width: none; }

.nw-steps { border-top: 1px solid var(--border); margin: 8px 0 20px; }
.nw-steps li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; line-height: 1.6; color: var(--text-secondary); }
.nw-steps b { color: var(--white); font-family: 'Outfit', 'Roboto', 'Noto Sans Thai', 'Noto Sans Bengali', sans-serif; font-size: 18px; }

.nw-body .gd-phone { float: right; width: 240px; margin: 6px 0 28px 44px; }
.nw-body::after { content: ''; display: table; clear: both; }

.nw-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 0; clear: both; }
.nw-actions .btn { padding: 15px 32px; font-size: 15px; }

.nw-related { padding: 56px 0 88px; border-top: 1px solid var(--border); }
.nw-related h2 { font-size: 26px; font-weight: 700; color: var(--white); margin-bottom: 24px; }
.nw-related__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.nw-related a { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card-bg); }
.nw-related a:hover { border-color: var(--accent); }
.nw-related img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.nw-related time { font-size: 13px; color: var(--color-text-muted); }
.nw-related h3 { font-size: 17px; font-weight: 600; color: var(--white); line-height: 1.35; margin-top: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .co-shelf { grid-template-columns: repeat(4, 1fr); }
  .co-partners { grid-template-columns: repeat(4, 1fr); }
  .ops { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .mech, .mech:nth-of-type(even) { grid-template-columns: 1fr; gap: 36px; padding: 56px 0; }
  .mech:nth-of-type(even) .mech__shot { order: 0; }
  .mech__shot { position: static; max-width: 260px; margin: 0 auto; }
  .co-overview { grid-template-columns: 1fr; gap: 40px; }
  .co-values { grid-template-columns: 1fr; gap: 32px; }
  .co-stats { grid-template-columns: repeat(2, 1fr); }
  .co-wall { width: 700px; right: -260px; opacity: 0.35; }
  .nw-related__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .pg-section { padding: 64px 0; }
  .glist li { grid-template-columns: 1fr; gap: 4px; }
  .ops { grid-template-columns: 1fr; gap: 28px; }
  .co-pillars { grid-template-columns: 1fr; }
  .co-pillar { padding: 24px; }
  .co-shelf { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .co-partners { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .co-partners a { padding: 8px; }
  .co-hero { padding: 64px 0 72px; }
  .co-hero .btn { width: 100%; }
  .co-hero .btn + .btn { margin: 10px 0 0; }
  .co-facts div { grid-template-columns: 1fr; gap: 2px; }
  .pg-cta .btn { width: 100%; }
  .pg-cta .btn + .btn { margin: 10px 0 0; }
  .nw-hero { grid-template-columns: 1fr 1fr; padding: 18px; gap: 14px; }
  .nw-hero > img { grid-column: 1 / -1; }
  .nw-body .gd-phone { float: none; width: min(260px, 100%); margin: 24px auto 32px; }
  .nw-steps li { grid-template-columns: 72px 1fr; }
  .nw-related a { grid-template-columns: 110px 1fr; }
}

.nw-hero .gd-phone figcaption { font-size: 12px; margin-top: 10px; }

/* ---------- Homepage additions ---------- */
[data-lang][hidden] { display: none !important; }
.pg-section h1, .pg-section h2, .pg-section h3 { font-family: 'Outfit', 'Roboto', 'Noto Sans Thai', 'Noto Sans Bengali', sans-serif; }

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.home-intro h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 20px;
}

.home-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.home-ctas .btn { padding: 15px 32px; font-size: 15px; }

.home-themes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.home-theme {
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.home-theme h3 { font-size: 21px; font-weight: 700; color: var(--white); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.home-theme h3 span { font-size: 13px; font-weight: 600; color: var(--accent); background: rgba(0, 174, 239, 0.14); padding: 2px 10px; border-radius: 999px; }
.home-theme p { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 18px; }

.home-theme__covers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.home-theme__covers a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.home-theme__covers a:hover { border-color: var(--accent); }
.home-theme__covers img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.home-theme .gchips { margin-top: 14px; }

.home-mechs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.home-mech {
  display: block;
  padding: 24px 22px 26px;
  border-top: 2px solid var(--accent);
  background: var(--card-bg);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.home-mech h3 { font-size: 19px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.home-mech p { font-size: 15px; line-height: 1.7; color: var(--text-secondary); }
.home-mech:hover h3 { color: var(--accent); }

@media (max-width: 1024px) {
  .home-mechs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .home-intro { grid-template-columns: 1fr; gap: 36px; }
  .home-themes { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .home-mechs { grid-template-columns: 1fr; }
  .home-theme { padding: 20px; }
  .home-ctas .btn { flex: 1 1 100%; }
}

/* Homepage FAQ: centered column */
.home-faq { text-align: center; }
.home-faq .faq { margin-left: auto; margin-right: auto; text-align: left; }

/* ---------- Homepage game wall (tilted columns, images only) ---------- */
.gw {
  --gw-violet: #4A1FA8;     /* purple from the site banners */
  --gw-indigo: #2A0C7A;
  --gw-lavender: #9C7BFF;
  position: relative;
  height: 680px;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--border);
  background: radial-gradient(ellipse 70% 90% at 0% 50%, #22134a 0%, #1b1832 45%, var(--bg) 85%);
}

.gw-wall {
  position: absolute;
  z-index: -2;
  top: 50%;
  left: 27%;
  width: 1500px;
  height: 1500px;
  transform: translateY(-50%);
  pointer-events: none;
  user-select: none;
}

.gw-tilt {
  display: flex;
  gap: 22px;
  height: 100%;
  transform: perspective(1600px) rotateY(-14deg) rotate(10deg);
  transform-origin: 0% 50%;
}

.gw-col { flex: 0 0 160px; overflow: hidden; }
.gw-col:nth-child(even) { margin-top: -110px; }

.gw-track { display: flex; flex-direction: column; gap: 22px; animation: gw-up var(--gw-speed, 50s) linear infinite; }
.gw-col[data-dir="down"] .gw-track { animation-name: gw-down; }
@keyframes gw-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 11px)); } }
@keyframes gw-down { from { transform: translateY(calc(-50% - 11px)); } to { transform: translateY(0); } }

.gw-tile {
  border-radius: 22px;
  padding: 6px;
  background: rgba(156, 123, 255, 0.07);
  border: 1px solid rgba(156, 123, 255, 0.2);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.gw-tile img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 17px; }

/* darken the wall at the top, bottom and outer edge */
.gw::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(26, 28, 33, 0.9) 0%, transparent 16%, transparent 84%, rgba(26, 28, 33, 0.9) 100%),
    radial-gradient(ellipse 45% 60% at 60% 45%, rgba(26, 28, 33, 0) 0%, rgba(26, 28, 33, 0.3) 60%, rgba(26, 28, 33, 0.7) 100%);
}

/* slanted panel on the left: its edge follows the tilt of the wall,
   with a light streak like the diagonal lines in the site banners */
.gw-panel {
  --gw-top: calc(32% + 60px);
  --gw-bottom: calc(32% - 60px);
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.gw-panel > span { position: absolute; inset: 0; }

.gw-fill {
  clip-path: polygon(0 0, var(--gw-top) 0, var(--gw-bottom) 100%, 0 100%);
  background:
    radial-gradient(ellipse 60% 70% at 10% 50%, rgba(74, 34, 168, 0.35) 0%, transparent 70%),
    linear-gradient(160deg, #20222b 0%, var(--bg) 70%);
}

.gw-edge {
  clip-path: polygon(0 0, calc(var(--gw-top) + 3px) 0, calc(var(--gw-bottom) + 3px) 100%, 0 100%);
  background: linear-gradient(180deg, rgba(0, 174, 239, 0) 0%, #00AEEF 30%, #9C7BFF 65%, rgba(230, 0, 126, 0) 100%);
}

.gw-edge-glow { filter: blur(18px); opacity: 0.75; }
.gw-edge-glow i {
  position: absolute;
  inset: 0;
  clip-path: polygon(calc(var(--gw-top) - 6px) 0, calc(var(--gw-top) + 14px) 0, calc(var(--gw-bottom) + 14px) 100%, calc(var(--gw-bottom) - 6px) 100%);
  background: linear-gradient(180deg, transparent 0%, #00AEEF 35%, #7B5CFF 70%, transparent 100%);
}

.gw-copy {
  position: absolute;
  top: 50%;
  left: max(24px, calc(32% - 380px));
  transform: translateY(-50%);
  width: min(300px, calc(32% - 100px));
}

.gw-copy h2 {
  font-family: 'Outfit', 'Roboto', 'Noto Sans Thai', 'Noto Sans Bengali', sans-serif;
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 800;
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 14px;
}

.gw-copy p { font-size: 15px; line-height: 1.7; color: #D9D2F5; margin-bottom: 24px; }

@media (max-width: 900px) {
  .gw { height: 700px; }
  .gw-copy { top: 40px; transform: none; left: 24px; right: 24px; width: auto; text-align: center; }
  .gw-copy p { margin-bottom: 18px; }
  .gw-panel { --gw-y1: 270px; --gw-y2: 320px; }
  .gw-fill { clip-path: polygon(0 0, 100% 0, 100% var(--gw-y1), 0 var(--gw-y2)); }
  .gw-edge { clip-path: polygon(0 0, 100% 0, 100% calc(var(--gw-y1) + 3px), 0 calc(var(--gw-y2) + 3px)); background: linear-gradient(90deg, rgba(0, 174, 239, 0) 0%, #00AEEF 30%, #9C7BFF 70%, rgba(230, 0, 126, 0) 100%); }
  .gw-edge-glow i { clip-path: polygon(0 calc(var(--gw-y2) - 6px), 100% calc(var(--gw-y1) - 6px), 100% calc(var(--gw-y1) + 14px), 0 calc(var(--gw-y2) + 14px)); background: linear-gradient(90deg, transparent, #00AEEF 35%, #7B5CFF 70%, transparent); }
  .gw-wall { left: -60px; top: 300px; transform: none; width: 1100px; height: 900px; }
  .gw-tilt { transform: rotate(8deg); gap: 14px; }
  .gw-col { flex-basis: 130px; }
  .gw-track { gap: 14px; }
  .gw-tile { border-radius: 16px; padding: 4px; }
  .gw-tile img { border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .gw-track { animation: none; }
}

/* News: cover image, key-point list, clickable card titles */
.nw-cover { margin-bottom: 44px; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); }
.nw-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.nw-points { border-top: 1px solid var(--border); margin: 4px 0 24px; list-style: none; }
.nw-points li { position: relative; padding: 13px 0 13px 24px; border-bottom: 1px solid var(--border); font-size: 16px; line-height: 1.6; color: var(--text-secondary); }
.nw-points li::before { content: ''; position: absolute; left: 2px; top: 22px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.nw-body a:not(.btn) { color: var(--white); text-decoration: underline; text-decoration-color: rgba(0, 174, 239, 0.6); text-underline-offset: 3px; }
.news-title a { color: inherit; }
.news-title a:hover { color: var(--accent); }

/* ---------- Games page: max win ranking + browse by feature ---------- */
.gg { padding: 88px 0; border-top: 1px solid var(--border); background: var(--bg-elevated); }
.gg-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; }
.gg h2 { font-family: 'Outfit', 'Roboto', 'Noto Sans Thai', 'Noto Sans Bengali', sans-serif; font-size: clamp(26px, 3vw, 34px); font-weight: 700; color: var(--white); margin-bottom: 8px; }
.gg-sub { font-size: 15px; color: var(--color-text-muted); margin-bottom: 28px; }

.gg-rank-list { list-style: none; border-top: 1px solid var(--border); }
.gg-row { display: grid; grid-template-columns: 28px 48px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--border); }
.gg-row:hover .gg-name { color: var(--accent); }
.gg-rank { font-family: 'Outfit', 'Roboto', sans-serif; font-size: 20px; font-weight: 800; color: var(--color-text-muted); }
.gg-row img { width: 48px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.gg-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gg-name { font-weight: 600; color: var(--white); font-size: 16px; }
.gg-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.gg-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #00AEEF, #9C7BFF 70%, #E6007E); }
.gg-val { font-family: 'Outfit', 'Roboto', sans-serif; font-size: 20px; font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; }
.gg-five-l { margin: 24px 0 10px; font-size: 14px; font-weight: 600; color: var(--text-secondary); }

.gg-feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gg-feat { position: relative; display: block; padding: 18px 40px 18px 18px; border-radius: var(--radius-lg); background: var(--card-bg); border: 1px solid var(--border); transition: border-color 0.2s, transform 0.2s; }
.gg-feat:hover { border-color: var(--accent); transform: translateY(-2px); }
.gg-feat__t { display: block; font-weight: 700; font-size: 16px; color: var(--white); margin-bottom: 6px; }
.gg-feat__d { display: block; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
.gg-arrow { position: absolute; top: 16px; right: 16px; color: var(--accent); font-weight: 700; }
.gg-feat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.gg a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 900px) {
  .gg-grid { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 480px) {
  .gg { padding: 64px 0; }
  .gg-feats { grid-template-columns: 1fr; }
  .gg-row { grid-template-columns: 22px 40px minmax(0, 1fr) auto; gap: 12px; }
  .gg-row img { width: 40px; }
  .gg-val { font-size: 17px; }
}

/* Features: "see these features in action" cards */
.try-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.try-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--card-bg); border: 1px solid var(--border); transition: border-color 0.2s, transform 0.2s; }
.try-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.try-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.try-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.try-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 18px; }
.try-tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--accent); background: rgba(0, 174, 239, 0.14); padding: 3px 10px; border-radius: 999px; }
.try-name { font-family: 'Outfit', 'Roboto', 'Noto Sans Thai', 'Noto Sans Bengali', sans-serif; font-size: 20px; font-weight: 700; color: var(--white); margin-top: 4px; }
.try-desc { font-size: 14px; line-height: 1.6; color: var(--text-secondary); flex: 1; }
.try-link { font-size: 14px; font-weight: 600; color: var(--accent); margin-top: 8px; }
@media (max-width: 1024px) { .try-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .try-grid { gap: 12px; } .try-body { padding: 14px; } .try-name { font-size: 17px; } }

/* ---------- Contact ---------- */
.ct-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.ct-path { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg); background: var(--card-bg); border: 1px solid var(--border); }
.ct-ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--accent); background: rgba(0, 174, 239, 0.12); margin-bottom: 18px; }
.ct-path h3 { font-family: 'Outfit', 'Roboto', 'Noto Sans Thai', 'Noto Sans Bengali', sans-serif; font-size: 21px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.ct-path p { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 12px; }
.ct-path .ct-inc { font-size: 14px; color: var(--color-text-muted); flex: 1; }
.ct-path .ct-inc b { color: var(--text-secondary); font-weight: 600; }
.ct-mail { font-weight: 700; color: var(--accent); margin-top: 8px; }
.ct-mail:hover { color: var(--color-accent-magenta); }

.ct-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.ct-facts { margin-top: 24px; }
.ct-facts a { color: var(--accent); }
.ct-form { padding: 32px; border-radius: var(--radius-xl); background: var(--card-bg); border: 1px solid var(--border); }
.ct-form-p { font-size: 14px; color: var(--color-text-muted); margin: -4px 0 24px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ct-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 16px; }
.ct-form input, .ct-form select, .ct-form textarea {
  font: inherit; font-size: 15px; font-weight: 400; color: var(--white);
  background: #15171c; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; width: 100%;
}
.ct-form textarea { resize: vertical; min-height: 120px; }
.ct-form input:focus, .ct-form select:focus, .ct-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.2); }
.ct-form .btn { padding: 14px 36px; font-size: 15px; }
.ct-err { color: #FF7A9A; font-size: 14px; margin: -4px 0 14px; }
.ct-age { margin-top: 18px; font-size: 14px; color: var(--color-text-muted); }

@media (max-width: 900px) {
  .ct-paths { grid-template-columns: 1fr; }
  .ct-split { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 480px) {
  .ct-row { grid-template-columns: 1fr; gap: 0; }
  .ct-form { padding: 22px; }
}

/* Contact details as cards (no form) */
.ct-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.ct-cards div { padding: 22px; border-radius: var(--radius-lg); background: var(--card-bg); border: 1px solid var(--border); border-top: 2px solid var(--accent); }
.ct-cards dt { font-size: 13px; color: var(--color-text-muted); margin-bottom: 8px; }
.ct-cards dd { font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--white); overflow-wrap: anywhere; }
.ct-cards a { color: var(--accent); }
@media (max-width: 900px) { .ct-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ct-cards { grid-template-columns: 1fr; } }

/* Contact (simplified) */
.ct-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.ct-mailbox { padding: 28px; border-radius: var(--radius-xl); background: var(--card-bg); border: 1px solid var(--border); border-left: 3px solid var(--accent); }
.ct-label { font-size: 13px; color: var(--color-text-muted); margin-bottom: 6px; }
.ct-address { display: inline-block; font-family: 'Outfit', 'Roboto', sans-serif; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; color: var(--white); overflow-wrap: anywhere; }
.ct-address:hover { color: var(--accent); }
.ct-hours { margin-top: 14px; font-size: 15px; color: var(--text-secondary); }
.ct-hours span { color: var(--color-text-muted); margin-right: 6px; }
.ct-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.ct-notes p { font-size: 16px; line-height: 1.75; color: var(--text-secondary); padding-left: 16px; border-left: 2px solid var(--border); }
@media (max-width: 900px) { .ct-top, .ct-notes { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Event page ---------- */
.ev-intro { padding-bottom: 32px; }
.ev-section { padding: 0 16px 88px; }
.ev-wrap { max-width: 640px; margin: 0 auto; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }
.ev-wrap > table { border-radius: 18px; }
@media (max-width: 480px) { .ev-section { padding: 0 0 64px; } .ev-wrap { border-radius: 0; } }

/* ---------- Events listing + event pages ---------- */
.ev-list { padding: 0 0 96px; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.ev-card { display: flex; flex-direction: column; border-radius: var(--radius-xl); overflow: hidden; background: var(--card-bg); border: 1px solid var(--border); transition: transform 0.2s, border-color 0.2s; }
.ev-card:hover { transform: translateY(-4px); border-color: var(--ev-gold, var(--accent)); }
.ev-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ev-card__top { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; min-height: 200px; background: linear-gradient(135deg, var(--ev-a) 0%, var(--ev-b) 50%, var(--ev-a) 100%); }
.ev-card__title { font-family: 'Outfit', 'Roboto', 'Noto Sans Thai', 'Noto Sans Bengali', sans-serif; font-size: 26px; font-weight: 800; line-height: 1.15; color: #fff; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35); margin-top: auto; }
.ev-card__prize { font-family: 'Outfit', 'Roboto', sans-serif; font-size: 28px; font-weight: 800; color: #fff; }
.ev-card__prize small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ev-gold); }
.ev-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px 24px; flex: 1; }
.ev-card__dates { font-size: 14px; font-weight: 600; color: var(--white); }
.ev-card__sum { font-size: 14px; line-height: 1.6; color: var(--text-secondary); flex: 1; }
.ev-card__link { font-weight: 700; color: var(--accent); margin-top: 6px; }
.ev-card[data-state="ended"] { opacity: 0.6; }

/* status badge: only the badge matching data-state is shown */
.ev-st { display: none; align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
[data-state="live"] .ev-st--live { display: inline-block; background: #E6007E; color: #fff; }
[data-state="soon"] .ev-st--soon { display: inline-block; background: rgba(0, 174, 239, 0.18); color: #7fd6ff; }
[data-state="ended"] .ev-st--ended { display: inline-block; background: rgba(255, 255, 255, 0.12); color: #c8ccd4; }

.ev-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ev-head .ev-st { align-self: center; }
.ev-head__dates { font-size: 15px; font-weight: 600; color: var(--text-secondary); }
.ev-intro .gd-crumb { margin-bottom: 22px; }
.ev-back { text-align: center; margin-top: 32px; }
.ev-back a { font-weight: 600; color: var(--accent); }
@media (max-width: 480px) { .ev-grid { grid-template-columns: 1fr; } .ev-card__title { font-size: 23px; } }

/* Event card with a banner image */
.ev-card__img { position: relative; display: block; aspect-ratio: 700 / 450; overflow: hidden; background: #111; }
.ev-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ev-card:hover .ev-card__img img { transform: scale(1.04); }
.ev-card__badge { position: absolute; top: 14px; right: 14px; }
.ev-card__badge .ev-st { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }
[data-state="soon"] .ev-card__badge .ev-st--soon { background: rgba(10, 30, 45, 0.85); }
[data-state="ended"] .ev-card__badge .ev-st--ended { background: rgba(20, 20, 20, 0.8); }
.ev-card__name { font-family: 'Outfit', 'Roboto', 'Noto Sans Thai', 'Noto Sans Bengali', sans-serif; font-size: 20px; font-weight: 700; color: var(--white); }
