/* ==========================================================================
   Đoán Chữ VN — Official Company Studio Stylesheet
   Palette derived directly from native Đoán Chữ game tiles:
   - Base Tile Grey:   linear-gradient(180deg, #2d2d30 0%, #202022 100%) / #2a2a2a
   - Tile Green:       #22c55e | linear-gradient(180deg, #25cf64 0%, #1ea34e 100%)
   - Tile Orange/Gold: #f59e0b | linear-gradient(180deg, #fbbf24 0%, #d97706 100%)
   - Tile Blue:        #3b82f6 | linear-gradient(180deg, #4290f8 0%, #2563eb 100%)
   - Brand Gold:       #ffcc02
   - Native Game Red:  #a12629 (reserved only as a subtle heritage reference)
   ========================================================================== */

:root {
  /* Native Game Token Reference */
  --native-red: #a12629;
  --native-gold: #ffcc02;

  --color-green: #22c55e;
  --color-green-dark: #15803d;
  --grad-green: linear-gradient(180deg, #25cf64 0%, #1ea34e 100%);

  --color-orange: #f59e0b;
  --color-orange-dark: #b45309;
  --grad-orange: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);

  --color-blue: #3b82f6;
  --color-blue-dark: #1d4ed8;
  --grad-blue: linear-gradient(180deg, #4290f8 0%, #2563eb 100%);

  --color-teal: #14b8a6;
  --grad-teal: linear-gradient(180deg, #2dd4bf 0%, #0d9488 100%);

  --grad-tile-grey: linear-gradient(180deg, #2d2d30 0%, #202022 100%);
  --grad-key-grey: linear-gradient(180deg, #353538 0%, #28282a 100%);

  /* Default Studio Theme: Game Tile Charcoal / Slate */
  --bg-page: #18181b;
  --bg-subtle: #1f1f23;
  --bg-card: #232327;
  --bg-card-solid: #232327;
  --bg-card-hover: #28282d;
  --bg-nav: rgba(24, 24, 27, 0.65);
  --bg-input: #141417;
  --bg-pill: rgba(255, 255, 255, 0.06);
  --bg-pill-hover: rgba(255, 255, 255, 0.11);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: #3e3e44;
  --border-highlight: rgba(255, 255, 255, 0.16);
  --card-inset: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.45);

  --text-primary: #f8f8fa;
  --text-secondary: #b4b4be;
  --text-muted: #7c7c88;
  --accent-primary: #22c55e;

  --ambient-glow: none;

  /* Layout & Typography */
  --container-max: 1140px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Optional Light Theme ("Clean Paper" Studio Preview) */
[data-theme="light"] {
  --bg-page: #F9F6F0;
  --bg-subtle: #F9F6F0;
  --bg-card: #ffffff;
  --bg-card-solid: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-nav: rgba(249, 246, 240, 0.82);
  --bg-input: #f0f0ee;
  --bg-pill: rgba(24, 24, 27, 0.05);
  --bg-pill-hover: rgba(24, 24, 27, 0.1);

  --border-subtle: rgba(24, 24, 27, 0.09);
  --border-strong: #d4d4d8;
  --border-highlight: rgba(24, 24, 27, 0.2);
  --card-inset: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow-sm: 0 2px 8px rgba(24, 24, 27, 0.05);
  --shadow-md: 0 10px 28px rgba(24, 24, 27, 0.08);
  --shadow-lg: 0 20px 44px rgba(24, 24, 27, 0.12);

  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-muted: #71717a;

  --ambient-glow: none;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  background-image: none;
  background-repeat: no-repeat;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }
}

/* ==========================================================================
   Authentic Tactile Letter Tiles (From Đoán Chữ)
   ========================================================================== */
.tile {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1.5px solid #424246;
  background: var(--grad-tile-grey);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  user-select: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 3px 6px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.tile--interactive {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .tile--interactive:hover {
    filter: brightness(1.06);
  }
}

.tile--interactive:active {
  transform: scale(0.95);
}

.tile.t-gold-stroke {
  border-color: rgba(255, 204, 2, 0.7);
}

.tile.t-green {
  background: var(--grad-green);
  border-color: var(--color-green-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 10px rgba(34, 197, 94, 0.25);
}

.tile.t-orange {
  background: var(--grad-orange);
  border-color: var(--color-orange-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 4px 10px rgba(245, 158, 11, 0.25);
  text-shadow: 0 1px 2px rgba(90, 40, 0, 0.45);
}

.tile.t-blue {
  background: var(--grad-blue);
  border-color: var(--color-blue-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 4px 10px rgba(59, 130, 246, 0.25);
}

.tile.t-teal {
  background: var(--grad-teal);
  border-color: #0f766e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 4px 10px rgba(20, 184, 166, 0.25);
}

.tile.pop-anim {
  animation: tileBounce 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes tileBounce {
  0%   { transform: translateY(0) scale(1); }
  45%  { transform: translateY(-6px) scale(1.08); }
  100% { transform: translateY(0) scale(1); }
}

/* ==========================================================================
   Navigation Header (Desktop & Mobile)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--bg-nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  width: 39px;
  height: 39px;
  border-radius: 10px;
  background: var(--grad-tile-grey);
  border: 1px solid #424246;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 6px rgba(0, 0, 0, 0.3);
  display: grid;
  grid-template-columns: repeat(2, 14.5px);
  grid-template-rows: repeat(2, 14.5px);
  gap: 2.8px;
  place-content: center;
  transition: transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .brand-link:hover .brand-mark {
    transform: rotate(-4deg) scale(1.04);
  }
}

.brand-mark.turn-anim {
  animation: brandMarkTurn 0.36s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes brandMarkTurn {
  0%   { transform: rotate(0deg) scale(1); }
  45%  { transform: rotate(-5deg) scale(1.05); }
  100% { transform: rotate(0deg) scale(1); }
}

.bm-cell {
  border-radius: 3px;
}
.bm-green  { background: var(--grad-green); border-top-left-radius: 6.5px; }
.bm-orange { background: var(--grad-orange); border-top-right-radius: 6.5px; }
.bm-blue   { background: var(--grad-blue); border-bottom-left-radius: 6.5px; }
.bm-grey   { background: #3f3f46; border: 1px solid rgba(255, 204, 2, 0.85); border-bottom-right-radius: 6.5px; }

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.25px;
  color: var(--text-primary);
}

.brand-tag {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.nowrap,
.hero-brand-line {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero-brand-line {
    display: block;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-pill);
}

.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-pill-hover);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-pill-btn {
  height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-pill);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.icon-pill-btn:hover {
  color: var(--text-primary);
  background: var(--bg-pill-hover);
  border-color: var(--border-highlight);
}

.icon-pill-btn svg {
  width: 15px;
  height: 15px;
}

.btn-play-nav {
  height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--grad-green);
  border: 1px solid var(--color-green-dark);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 8px rgba(34, 197, 94, 0.25);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-play-nav:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-pill);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: 12px 16px 18px;
}

.mobile-drawer.open {
  display: block;
  animation: slideDown 0.18s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.mobile-nav-link {
  padding: 11px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  background: var(--bg-pill-hover);
  color: var(--text-primary);
}

/* Mobile-Only Page & Swipe Indicator Line (Hidden on Desktop) */
.mobile-page-indicator {
  display: none;
}

.mobile-swipe-deck,
.mobile-swipe-track {
  display: block;
}

.mobile-swipe-pane:not(.is-active-page) {
  display: none;
}

@media (max-width: 768px) {
  body {
    background-image: none !important;
  }

  [data-theme="light"] {
    --bg-page: #F9F6F0;
    --bg-subtle: #F9F6F0;
    --ambient-glow: none;
  }

  .site-header {
    border-bottom: none;
  }

  .mobile-page-indicator {
    display: block;
    position: relative;
    width: 100%;
    height: 3px;
    background: var(--border-subtle);
    overflow: hidden;
    pointer-events: none;
  }

  .mobile-page-indicator-fill {
    width: 30%;
    height: 100%;
    border-radius: 999px;
    will-change: transform, background;
    transform: translate3d(0%, 0, 0);
    background: linear-gradient(90deg, #25cf64 0%, #1ea34e 100%);
    box-shadow: 0 0 8px rgba(37, 207, 100, 0.45);
  }

  .mobile-page-indicator-fill.page-news {
    transform: translate3d(116.6667%, 0, 0);
    background: linear-gradient(90deg, #4290f8 0%, #2563eb 100%);
    box-shadow: 0 0 8px rgba(66, 144, 248, 0.45);
  }

  .mobile-page-indicator-fill.page-contact {
    transform: translate3d(233.3333%, 0, 0);
    background: linear-gradient(90deg, #fbbf24 0%, #d97706 100%);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.45);
  }

  .mobile-swipe-deck {
    display: block;
    width: 100%;
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
  }

  .mobile-swipe-track {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    will-change: transform;
    transform: translate3d(0%, 0, 0);
    touch-action: pan-y;
  }

  .mobile-swipe-pane,
  .mobile-swipe-pane:not(.is-active-page) {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
  }

  .mobile-pane-inner {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .nav-inner {
    height: 64px;
  }
  .brand-link {
    gap: 11px;
  }
  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    grid-template-columns: repeat(2, 15.8px);
    grid-template-rows: repeat(2, 15.8px);
    gap: 3px;
  }
  .brand-name {
    font-size: 21px;
    letter-spacing: -0.35px;
  }
  .brand-tag {
    font-size: 13.5px;
  }
  .nav-links,
  .btn-play-nav {
    display: none;
  }
  .nav-actions {
    gap: 8px;
  }
  /* Bumped 40px circular & pill toggles on mobile */
  .mobile-menu-btn {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }
  .mobile-menu-btn svg {
    width: 21px;
    height: 21px;
  }
  .icon-pill-btn[data-theme-toggle] {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
  }
  .icon-pill-btn[data-theme-toggle] svg {
    width: 18px;
    height: 18px;
  }
  .icon-pill-btn[data-theme-toggle] .theme-btn-label {
    display: none !important;
  }
  .icon-pill-btn[data-lang-toggle] {
    height: 40px;
    min-width: 44px;
    padding: 0 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
  }
}

/* ==========================================================================
   Welcome Hero (Compact rhythm + Larger Desktop Interactive Tiles)
   ========================================================================== */
.hero-section {
  padding: 12px 0 10px;
}

.hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 26px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-inset), var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 590px;
  position: relative;
  z-index: 1;
}

.studio-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.eyebrow-dots {
  display: inline-flex;
  gap: 4px;
}

.eyebrow-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.dot-g { background: var(--color-green); }
.dot-o { background: var(--color-orange); }
.dot-b { background: var(--color-blue); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(23px, 2.9vw, 32px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.4px;
  margin: 0 0 6px;
  color: var(--text-primary);
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(14px, 1.4vw, 15.5px);
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 540px;
}

/* Interactive Tile Showcase in Hero — Larger on Desktop! */
.hero-tiles-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.hero-tiles-stage .tile {
  width: 56px;
  height: 56px;
  font-size: 26px;
  border-radius: 10px;
}

.hero-tiles-stage .tile.tile--vn {
  font-size: 20px;
  letter-spacing: -0.5px;
}

.tile-word-row {
  display: flex;
  gap: 8px;
}

.tile-stage-hint {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 12px 0 8px;
  }
  .hero-card {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    padding: 0;
    gap: 10px;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
  }
  .hero-content {
    width: 100%;
    max-width: 100%;
  }
  .hero-title,
  .studio-eyebrow,
  .tile-stage-hint {
    display: none !important;
  }
  .hero-subtitle {
    display: block !important;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text-secondary);
    max-width: 100%;
    margin: 0;
  }
  /* Full-width, large interactive tiles on mobile (single row of 8 filling container width) */
  .hero-tiles-stage {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }
  .tile-word-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3.5px;
    flex: 1;
    min-width: 0;
  }
  .hero-tiles-stage .tile {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    font-size: clamp(16px, 4.9vw, 22px);
    border-radius: 8px;
  }
  .hero-tiles-stage .tile.tile--vn {
    font-size: clamp(12.5px, 3.8vw, 17px);
    letter-spacing: -0.5px;
  }
}

@media (max-width: 360px) {
  .hero-tiles-stage {
    gap: 6px;
  }
  .tile-word-row {
    gap: 2.5px;
  }
  .hero-tiles-stage .tile {
    font-size: 15px;
    border-radius: 7px;
  }
  .hero-tiles-stage .tile.tile--vn {
    font-size: 11.5px;
  }
}

/* ==========================================================================
   Section Headers & Tight Container Spacing
   ========================================================================== */
.section-block {
  padding: 12px 0 18px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.section-head--inline {
  justify-content: flex-start;
  gap: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.1vw, 22px);
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.3px;
}

.section-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.section-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-blue);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: gap 0.18s ease;
}

.section-link:hover {
  gap: 8px;
}

/* ==========================================================================
   4-Game Ecosystem Grid (Compact so all 4 fit above the fold!)
   ========================================================================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-inset), var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.9;
}

.game-card--green::before  { background: var(--grad-green); }
.game-card--teal::before   { background: var(--grad-teal); }
.game-card--blue::before   { background: var(--grad-blue); }
.game-card--orange::before { background: var(--grad-orange); }

.game-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-highlight);
  box-shadow: var(--card-inset), var(--shadow-md);
}

.game-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.game-identity {
  display: flex;
  align-items: center;
  gap: 11px;
}

/* Official Đoán Chữ App Icon */
.game-app-icon {
  width: 46px;
  height: 46px;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

/* Sibling Game Icons with matching thick #f5e7bc cream stroke from doanchu-appicon.png */
.game-icon-tile {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  border: 3.5px solid #f5e7bc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16.5px;
  letter-spacing: -0.3px;
  color: #ffffff;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.18),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.34),
    0 2px 5px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.06);
}

.icon-mc { background: var(--grad-teal); }
.icon-nc { background: var(--grad-blue); }
.icon-xc { background: var(--grad-orange); }

.game-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 1px;
  line-height: 1.2;
  color: var(--text-primary);
}

.game-genre {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.25;
}

.game-pill-badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-green  { background: rgba(34, 197, 94, 0.14); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.28); }
.badge-teal   { background: rgba(20, 184, 166, 0.14); color: #2dd4bf; border: 1px solid rgba(20, 184, 166, 0.28); }
.badge-blue   { background: rgba(59, 130, 246, 0.14); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.28); }
.badge-orange { background: rgba(245, 158, 11, 0.14); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.28); }

[data-theme="light"] .badge-green  { color: #15803d; background: rgba(34, 197, 94, 0.12); }
[data-theme="light"] .badge-teal   { color: #0f766e; background: rgba(20, 184, 166, 0.12); }
[data-theme="light"] .badge-blue   { color: #1d4ed8; background: rgba(59, 130, 246, 0.12); }
[data-theme="light"] .badge-orange { color: #b45309; background: rgba(245, 158, 11, 0.14); }

.game-desc {
  margin: 0 0 9px;
  font-size: 13px;
  line-height: 1.42;
  color: var(--text-secondary);
  flex: 1;
}

/* Unified Bottom Row: Compact Tile Preview + Play CTA */
.game-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.game-preview-strip {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  min-height: 32px;
}

.mini-tile {
  width: 23px;
  height: 23px;
  border-radius: 4.5px;
  border: 1px solid #424246;
  background: var(--grad-tile-grey);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mini-tile.t-green  { background: var(--grad-green); border-color: var(--color-green-dark); }
.mini-tile.t-orange { background: var(--grad-orange); border-color: var(--color-orange-dark); }
.mini-tile.t-blue   { background: var(--grad-blue); border-color: var(--color-blue-dark); }
.mini-tile.t-teal   { background: var(--grad-teal); border-color: #0f766e; }
.mini-tile.t-gold   { border-color: var(--native-gold); font-size: 9.5px; }

.mini-gap {
  width: 5px;
  flex-shrink: 0;
}

.chain-chip {
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10.5px;
  color: #ffffff;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.chain-chip--a {
  background: var(--grad-tile-grey);
  border: 1px solid #4b4b52;
}
.chain-chip--b {
  background: var(--grad-blue);
  border: 1px solid var(--color-blue-dark);
}
.chain-arrow {
  color: #60a5fa;
  font-weight: 800;
  font-size: 12px;
}

.game-play-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  color: #ffffff;
  background: var(--grad-key-grey);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
  transition: all 0.18s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.game-card--green:hover .game-play-cta  { background: var(--grad-green); border-color: var(--color-green-dark); }
.game-card--teal:hover .game-play-cta   { background: var(--grad-teal); border-color: #0f766e; }
.game-card--blue:hover .game-play-cta   { background: var(--grad-blue); border-color: var(--color-blue-dark); }
.game-card--orange:hover .game-play-cta { background: var(--grad-orange); border-color: var(--color-orange-dark); }

.game-card:hover .game-play-cta svg {
  transform: translateX(3px);
}

.game-play-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}

@media (max-width: 768px) {
  .section-block {
    padding: 6px 0 14px;
  }
  #games.section-block {
    padding-top: 2px !important;
  }
  .section-head {
    margin-bottom: 7px;
    gap: 6px;
  }
  .section-title {
    font-size: 16.5px;
  }
  #games .section-desc {
    display: none;
  }
  /* Fresh Widget-Style 2x2 Game Launcher Grid on Mobile */
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .game-card {
    padding: 8px 9px 7px;
    border-radius: 14px;
    justify-content: space-between;
  }
  .game-card--green,
  .game-card--teal,
  .game-card--blue,
  .game-card--orange {
    background: var(--bg-card-solid);
  }
  .game-card-top {
    margin-bottom: 3px;
    width: 100%;
  }
  .game-identity {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }
  .game-identity > div:last-child {
    min-width: 0;
    flex: 1;
  }
  .game-app-icon,
  .game-icon-tile {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 13.5px;
  }
  .game-icon-tile {
    border-width: 2.5px;
  }
  .game-name {
    font-size: clamp(13px, 3.8vw, 14.5px);
    line-height: 1.15;
    margin: 0 0 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .game-genre {
    font-size: clamp(10px, 2.8vw, 11px);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* Hide desktop mini-tile preview strips & pill badges on mobile */
  .game-preview-strip,
  .game-pill-badge {
    display: none !important;
  }
  /* Short, simple unified tag on the bottom-right with subtle colored text */
  .game-card-bottom {
    position: static;
    width: 100%;
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
  }
  .game-play-cta {
    width: auto;
    height: 20px;
    padding: 0 8px;
    border-radius: 6px;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.15px;
    background: var(--bg-pill) !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: none !important;
  }
  .game-play-cta span {
    display: inline !important;
  }
  .game-play-cta svg {
    display: none !important;
  }
  .game-card--green .game-play-cta  { color: #4ade80; }
  .game-card--teal .game-play-cta   { color: #2dd4bf; }
  .game-card--blue .game-play-cta   { color: #60a5fa; }
  .game-card--orange .game-play-cta { color: #fbbf24; }
  [data-theme="light"] .game-card--green .game-play-cta  { color: #16a34a; }
  [data-theme="light"] .game-card--teal .game-play-cta   { color: #0d9488; }
  [data-theme="light"] .game-card--blue .game-play-cta   { color: #2563eb; }
  [data-theme="light"] .game-card--orange .game-play-cta { color: #d97706; }
}

/* ==========================================================================
   Mobile App Banner (Positioned Right Below the Main Header!)
   ========================================================================== */
.app-banner-section {
  padding: 0 0 6px;
}

.app-banner {
  padding: 12px 20px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-inset), var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.app-banner-info h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 2px;
  line-height: 1.25;
}

.app-banner-info p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.store-btn-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.app-banner-icon {
  width: 42px;
  height: 42px;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.store-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border-radius: 10px;
  background: #121215;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.store-badge-btn:hover {
  transform: translateY(-1px);
  border-color: var(--native-gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.26);
}

.store-badge-btn svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.store-badge-sub {
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #a1a1aa;
  font-weight: 600;
}

.store-badge-main {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

/* Clean White Store Badges in Light Theme */
[data-theme="light"] .store-badge-btn {
  background: #ffffff;
  border: 1.5px solid #18181b;
  color: #111827;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .store-badge-btn:hover {
  border-color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .store-badge-sub {
  color: #3f3f46;
}

[data-theme="light"] .store-badge-main {
  color: #111827;
}

@media (max-width: 768px) {
  .app-banner-section {
    padding: 0 0 10px;
  }
  .app-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 6px;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .app-banner-info {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .app-banner-info h3 {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.25;
    margin: 0;
  }
  .app-banner-info p {
    display: none !important;
  }
  .store-btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    flex-wrap: nowrap;
  }
  .app-banner-icon {
    display: none !important;
  }
  .store-badge-btn {
    flex: 1;
    justify-content: center;
    height: 34px;
    padding: 0 10px;
    gap: 7px;
    border-radius: 8.5px;
  }
  .store-badge-btn svg {
    width: 15px;
    height: 15px;
  }
  .store-badge-sub {
    font-size: 7px;
    letter-spacing: 0.3px;
  }
  .store-badge-main {
    font-size: 11.5px;
    white-space: nowrap;
  }
}

/* ==========================================================================
   Studio Pillars (3 Columns with Green / Orange / Blue Accents)
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pillar-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-inset);
}

.pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: #ffffff;
}

.pillar-icon svg {
  width: 18px;
  height: 18px;
}

.pillar-icon--green  { background: var(--grad-green); }
.pillar-icon--orange { background: var(--grad-orange); }
.pillar-icon--blue   { background: var(--grad-blue); }

.pillar-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 6px;
}

.pillar-text {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (max-width: 820px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ==========================================================================
   News Cards & News Page
   ========================================================================== */
.page-hero {
  padding: 18px 0 12px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.25;
  letter-spacing: -0.4px;
}

.page-lead {
  margin: 0;
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 620px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.filter-chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-pill);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-chip:hover {
  color: var(--text-primary);
  border-color: var(--border-highlight);
}

.filter-chip.active {
  background: var(--grad-blue);
  border-color: var(--color-blue-dark);
  color: #ffffff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.news-grid--page {
  grid-template-columns: repeat(2, 1fr);
}

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-inset), var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-highlight);
}

.news-card--featured {
  grid-column: 1 / -1;
  padding: 16px 20px;
  background: var(--bg-card-solid);
}

.news-card-banner {
  width: 100%;
  margin: 0 0 10px;
  border-radius: 10px;
  overflow: hidden;
  background: #0f0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 0;
}

.news-card-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.article-modal-banner {
  width: 100%;
  margin: 0 0 16px;
  border-radius: 12px;
  overflow: hidden;
  background: #0f0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 0;
}

.article-modal-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.news-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 6px;
  color: var(--text-primary);
}

.news-card--featured .news-title {
  font-size: clamp(19px, 2.3vw, 23px);
}

.news-excerpt {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.news-expanded-body {
  display: none;
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.58;
}

.news-expanded-body p {
  margin: 0 0 9px;
}

.news-expanded-body p:last-child {
  margin-bottom: 0;
}

.news-read-btn {
  align-self: flex-start;
  padding: 0;
  border: none;
  background: none;
  color: var(--color-green);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.news-read-btn:hover {
  text-decoration: underline;
}

/* Hidden on collapsed article cards; only shown when an article card is expanded on mobile */
.news-card-close-tile {
  display: none !important;
}

@media (max-width: 768px) {
  .news-card {
    cursor: pointer;
    padding: 11px 13px;
  }

  /* Clamp collapsed body text to 2 lines on mobile while keeping titles fully visible */
  .news-card:not(.expanded) .news-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 7px;
  }

  .news-card.expanded .news-excerpt {
    display: none;
  }

  .news-card.expanded .news-expanded-body {
    display: block;
  }

  .news-card.expanded .news-card-close-tile {
    display: inline-flex !important;
    position: absolute;
    top: 10px;
    right: 10px;
    float: none;
    margin: 0;
    width: 30px;
    height: 30px;
    font-size: 14.5px;
    border-radius: 7px;
  }

  .news-card.expanded .news-meta {
    padding-right: 36px;
  }
}

@media (max-width: 900px) {
  .news-grid,
  .news-grid--page {
    grid-template-columns: 1fr;
  }
}

/* Modal Reader for Full News Post & Universal Popup Close Game Tile */
.article-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.article-modal-backdrop.open {
  display: flex;
}

.article-modal {
  width: 100%;
  max-width: 640px;
  max-height: 86dvh;
  overflow-y: auto;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--bg-card-solid);
  border: 1px solid var(--border-highlight);
  box-shadow: var(--shadow-lg);
}

/* Signature Đoán Chữ Orange Game Tile with White Capital X for all Popups & Articles */
.article-modal-close,
.news-card-close-tile,
.modal-close,
.popup-close,
[data-modal-close] {
  float: right;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: -2px -2px 8px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--color-orange-dark);
  background: var(--grad-orange);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(90, 40, 0, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 4px 10px rgba(245, 158, 11, 0.28);
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), filter 0.16s ease, box-shadow 0.16s ease;
}

@media (hover: hover) and (pointer: fine) {
  .article-modal-close:hover,
  .news-card-close-tile:hover,
  .modal-close:hover,
  .popup-close:hover,
  [data-modal-close]:hover {
    transform: translateY(-1px) scale(1.05);
    filter: brightness(1.06);
  }
}

.article-modal-close:active,
.news-card-close-tile:active,
.modal-close:active,
.popup-close:active,
[data-modal-close]:active {
  transform: scale(0.94);
}

.article-modal-body p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 14px;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.contact-card {
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-inset), var(--shadow-sm);
  width: 100%;
}

.composer-heading {
  font-size: 19px;
  margin-bottom: 12px;
}

.composer-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 18px;
  align-items: stretch;
}

.composer-col-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.composer-col-meta .form-group {
  margin-bottom: 0;
}

.composer-col-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.form-group--grow {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.form-group--grow textarea.form-control {
  flex: 1;
  min-height: 126px;
}

.composer-submit-row {
  display: flex;
  justify-content: flex-end;
}

.composer-submit-btn {
  min-width: 210px;
}

.direct-email-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.direct-email-info {
  flex: 1;
  min-width: 240px;
}

.direct-email-info .section-title {
  margin-bottom: 3px;
}

.direct-email-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.email-spotlight {
  margin: 0;
  padding: 9px 15px;
  border-radius: 11px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.email-address {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 800;
  color: var(--text-primary);
  word-break: break-all;
}

.contact-btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 10px 18px;
  border-radius: 11px;
  border: 1px solid var(--color-green-dark);
  background: var(--grad-green);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 12px rgba(34, 197, 94, 0.22);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-secondary {
  padding: 10px 16px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: var(--bg-pill);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-secondary:hover {
  background: var(--bg-pill-hover);
  border-color: var(--border-highlight);
}

/* Quick Mailto Form */
.form-group {
  margin-bottom: 10px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-control:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 12px 16px;
}

.faq-item summary {
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-muted);
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--color-green);
}

.faq-item p {
  margin: 8px 0 2px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (max-width: 768px) {
  [data-page="contact"] .page-hero {
    padding: 8px 0 4px;
  }

  [data-page="contact"] .page-title {
    font-size: 21px;
    margin-bottom: 4px;
  }

  [data-page="contact"] .page-lead {
    font-size: 13px;
    line-height: 1.4;
  }

  [data-page="contact"] .container {
    padding: 0 10px;
  }

  [data-page="contact"] .section-block {
    padding: 4px 0 10px;
  }

  .contact-card {
    padding: 12px 11px;
    border-radius: 14px;
  }

  /* Remove Hộp thư trực tiếp on mobile so Soạn tin nhắn nhanh is the sole top focus */
  .contact-card--direct {
    display: none !important;
  }

  .composer-heading {
    font-size: 16.5px;
    margin-bottom: 9px;
  }

  .composer-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .composer-col-meta,
  .composer-col-body {
    gap: 8px;
  }

  .form-label {
    font-size: 12px;
    margin-bottom: 3px;
  }

  /* 16px font-size prevents iOS/mobile browser auto-zoom when tapping inputs */
  .form-control {
    font-size: 16px;
    padding: 9px 10px;
    border-radius: 9px;
  }

  .form-group--grow textarea.form-control,
  textarea.form-control {
    min-height: 88px;
  }

  .composer-submit-row {
    justify-content: stretch;
  }

  .composer-submit-btn {
    width: 100%;
    min-width: 0;
    padding: 10px 14px;
  }

  .faq-item {
    padding: 10px 12px;
    border-radius: 11px;
  }

  .faq-item summary {
    font-size: 13.5px;
  }

  .faq-item p {
    font-size: 12.5px;
    margin-top: 6px;
  }
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 11px 18px;
  border-radius: 999px;
  background: #18181b;
  border: 1px solid var(--color-green);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 2000;
  white-space: nowrap;
}

.toast-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  padding: 24px 0 20px;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand p {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 767px) {
  .site-footer {
    padding: 18px 0 16px;
  }

  .footer-grid {
    gap: 20px;
    padding-bottom: 12px;
  }

  .footer-cols {
    gap: 28px;
  }

  .footer-bottom {
    padding-top: 10px;
  }
}
