/* Site 001 | app.css v11 | Updated 2026-11-05 12:16:59 (UTC+7) | Centered navigation; orange/red/yellow destinations. */
/* app.css v9 (2026-10-30) [v9: Khôi phục sắc màu rực rỡ Home & For Kids v5; triệt tiêu hoàn toàn vệt sáng xanh chớp nháy trên điện thoại qua scoped focus-visible và -webkit-tap-highlight-color transparent]; v8 (2026-10-30); v7 (2026-10-30); v6 (2026-10-30); v5 (2026-10-29); v4 (2026-10-22); v3 (2026-10-17); v2 (2026-10-17); v1 (2026-10-08) */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-variable.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/plus-jakarta-sans-vietnamese-variable.woff2') format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/plus-jakarta-sans-latin-ext-variable.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
body { font-family: 'Plus Jakarta Sans', sans-serif; }

/* Site 001 · app.css v10 · Updated 2026-11-05 (UTC+7).
   Approved Home layout: balanced frame, shared free statement, consistent artwork. */
:root {
  --home-ground: #030817;
  --home-panel: #0b1423;
  --home-ink: #f4f7fc;
  --home-muted: #cbd5e1;
  --home-teal: #14d8b6;
  --home-gold: #f5c952;
  --home-orange: #f8790c;
  --home-red: #ff646b;
  --home-border: #41566f;
}
body { background: var(--home-ground); }
.site-header { position: sticky; top: 0; z-index: 40; background: #080f20; border-bottom: 1px solid #253147; }
.site-header-inner { position: relative; max-width: 1600px; margin: 0 auto; padding: 10px 20px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; align-items: center; }
.site-identity { display: contents; }
.site-home, .site-menu-toggle { width: 44px; height: 44px; display: inline-flex; justify-content: center; align-items: center; border: 1px solid var(--home-border); border-radius: 12px; background: transparent; color: var(--home-ink); }
.site-home svg, .site-menu-toggle svg { width: 23px; height: 23px; }
.site-home span { display: none; }
.site-brand { min-height: 44px; justify-self: center; text-align: center; color: var(--home-ink); font-size: clamp(15px, 4.6vw, 20px); font-weight: 800; line-height: 1.3; white-space: nowrap; letter-spacing: -.6px; }
.site-navigation { display: none; position: absolute; top: calc(100% + 8px); left: 20px; right: 20px; max-height: calc(100dvh - 90px); overflow-y: auto; padding: 12px; border: 1px solid var(--home-border); border-radius: 16px; background: #0b1423; box-shadow: 0 16px 40px #0008; }
.site-navigation.is-open { display: grid; gap: 8px; }
.site-navigation button { min-height: 44px; padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--home-muted); text-align: center; }
.site-navigation button:hover { background: #18263b; color: var(--home-ink); }
.site-navigation .site-nav-sniper, .site-navigation .site-nav-sniper:hover { color: var(--home-orange); }
.site-navigation .site-nav-memory, .site-navigation .site-nav-memory:hover { color: var(--home-red); }
.site-navigation .site-nav-kids, .site-navigation .site-nav-kids:hover { color: var(--home-gold); }
.site-account-group { display: flex; justify-content: center; }
.site-navigation .site-account { border: 1px solid var(--home-border); }
.site-navigation .hidden { display: none; }
.review-count { color: var(--home-gold); padding-left: 4px; }
.site-header button:focus-visible, .site-brand:focus-visible, .home-action:focus-visible { outline: 3px solid #7ce8d5 !important; outline-offset: 4px; }
#app-root.home-root { max-width: 1200px; padding: 30px 20px 32px; justify-content: flex-start; }
.home-landing { width: 100%; margin: auto 0; }
.home-intro { text-align: center; margin: 0 auto 26px; }
.home-intro h1 { margin: 0 auto; font-size: clamp(25px, 6.8vw, 34px); font-weight: 800; line-height: 1.3; letter-spacing: -.9px; color: var(--home-ink); text-wrap: balance; max-width: 760px; }
.home-intro em { font-style: normal; color: var(--home-teal); }
.home-free { display: flex; justify-content: center; align-items: center; gap: 9px; margin: 18px 0 0; color: var(--home-muted); font-size: 14px; line-height: 1.5; }
.home-free > svg { width: 24px; height: 24px; flex: 0 0 24px; color: var(--home-teal); }
.home-free strong { color: var(--home-ink); font-weight: 700; }
.home-destinations { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.home-destination { min-width: 0; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 12px; padding: 20px 16px 18px; border: 1px solid var(--home-border); border-radius: 20px; background: var(--home-panel); }
.home-sniper { border: 2px solid var(--home-teal); padding: 19px 15px 17px; }
.home-illustration { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.home-destination h2 { margin: 0 0 10px; color: var(--home-ink); font-size: clamp(19px, 5.4vw, 26px); font-weight: 800; line-height: 1.2; letter-spacing: -.7px; }
.home-destination p { margin: 0; color: var(--home-muted); font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.home-action { grid-column: 1 / -1; width: 100%; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--home-teal); border-radius: 12px; color: var(--home-teal); background: transparent; font-size: 17px; font-weight: 800; line-height: 1.4; transition: background-color .18s, transform .18s; touch-action: manipulation; }
.home-action > svg { width: 22px; height: 22px; }
.home-action-primary { border-color: var(--home-orange); color: #181103; background: var(--home-orange); }
.home-action-memory { border-color: var(--home-red); color: #210b10; background: var(--home-red); }
.home-action-kids { border-color: var(--home-gold); color: #302506; background: var(--home-gold); }
.home-action:hover { background-color: #153a3b; }
.home-action-primary:hover { background: #ff942e; border-color: #ff942e; }
.home-action-memory:hover { background: #ff8187; border-color: #ff8187; }
.home-action-kids:hover { background: #ffdc70; border-color: #ffdc70; }
.home-action:active { transform: translateY(1px); }
.home-action:disabled { background: #253147; border-color: #52647b; color: #cbd5e1; cursor: wait; }
@media (min-width: 640px) and (max-width: 899px) {
  .home-destinations { max-width: 560px; margin: 0 auto; }
  .home-destination { padding: 20px 24px; grid-template-columns: 180px 1fr; }
  .home-destination h2 { font-size: 28px; }
  .home-destination p { font-size: 17px; }
}
@media (min-width: 900px) {
  #app-root.home-root { padding-top: 44px; padding-bottom: 42px; }
  .home-intro { margin-bottom: 34px; }
  .home-intro h1 { font-size: clamp(32px, 3.5vw, 44px); max-width: 1000px; letter-spacing: -1.4px; }
  .home-headline-top, .home-headline-bottom { display: block; }
  .home-free { margin-top: 20px; font-size: 17px; }
  .home-destinations { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .home-destination { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; padding: 22px; gap: 16px; text-align: center; border-radius: 22px; }
  .home-memory { order: -1; }
  .home-sniper { padding: 21px; }
  .home-illustration { max-width: 320px; justify-self: center; }
  .home-destination h2 { font-size: clamp(24px, 2.3vw, 30px); white-space: nowrap; margin-bottom: 12px; }
  .home-destination p { font-size: 17px; min-height: 53px; }
  .home-action { font-size: 18px; margin-top: 8px; min-height: 52px; }
}
@media (min-width: 1000px) {
  .site-header-inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px 14px; }
  .site-home { width: auto; min-width: 64px; background: #13b88b; border-color: #13b88b; color: #031d19; font-size: 13px; font-weight: 800; padding: 0 14px; }
  .site-home svg { display: none; }
  .site-home span { display: inline; }
  .site-home { justify-self: start; }
  .site-brand { font-size: 20px; justify-self: center; }
  .site-menu-toggle { display: none; }
  .site-navigation, .site-navigation.is-open { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-column: 1 / -1; grid-row: 2; position: static; justify-content: center; align-items: center; gap: 8px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
  .site-account-group { position: absolute; top: 10px; right: 20px; }
  .site-navigation button { font-size: 12px; padding: 8px 10px; white-space: nowrap; }
  #review-badge-mobile { display: none; }
}
@media (min-width: 1280px) {
  .site-header-inner { grid-template-columns: minmax(250px, 1fr) minmax(0, 760px) minmax(250px, 1fr); }
  .site-identity { display: flex; align-items: center; gap: 14px; grid-column: 1; }
  .site-navigation, .site-navigation.is-open { grid-column: 2; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .home-action { transition: none; }
}
@media (max-width: 999px) {
  body > footer > div.max-w-4xl { flex-direction: column; text-align: center; }
  body > footer > div > div:first-child { flex-wrap: wrap; justify-content: center; }
}

.glass-card {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.3);
}
.shake { animation: shakeEffect 0.4s ease-in-out; }
@keyframes shakeEffect {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}
.animate-fadeIn { animation: fadeIn 0.3s ease-out forwards; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.input-hint {
  border-color: #fbbf24 !important;
  background-color: rgba(245, 158, 11, 0.05) !important;
  color: #fcd34d !important;
}
input[type="text"], input[type="email"], input[type="password"] { font-size: 16px; }
.gap-input {
  box-sizing: border-box;
  font-family: inherit;
  font-variant-ligatures: none;
  transition: width 0.15s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
#seo-about summary { cursor: pointer; }
#seo-about .seo-toggle { list-style: none; }
#seo-about .seo-toggle::-webkit-details-marker { display: none; }
#seo-about .seo-chevron { transition: transform 0.2s ease; }
#seo-about details[open] > .seo-toggle .seo-chevron { transform: rotate(180deg); }
#seo-about summary::marker { color: #34d399; }

/* v115: target badge (🎯 TARGET) above the target word / phrase slot */
.target-wrap { position: relative; display: inline-flex; align-items: center; padding: 9px 0; }
.target-badge {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 6px; border-radius: 999px;
  font-size: 8px; font-weight: 800; letter-spacing: 0.06em; line-height: 1;
  white-space: nowrap; pointer-events: none; user-select: none; z-index: 2;
  background: #10b981; color: #022c22; box-shadow: 0 0 8px rgba(16,185,129,0.45);
}
.target-badge svg { width: 11px; height: 11px; flex-shrink: 0; filter: drop-shadow(0 0 1px rgba(0,0,0,0.35)); }
.target-badge.is-phrase { background: #fb923c; color: #431407; box-shadow: 0 0 8px rgba(251,146,60,0.45); }
.target-badge.is-suffix { background: #f43f5e; color: #fff; box-shadow: 0 0 8px rgba(244,63,94,0.45); }
@media (min-width: 640px) {
  .target-wrap { padding: 11px 0; }
  .target-badge { font-size: 9px; padding: 2px 7px; }
  .target-badge svg { width: 12px; height: 12px; }
}

/* Custom scrollbar for vocab list */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(15, 23, 42, 0.6); }
::-webkit-scrollbar-thumb { background: rgba(51, 65, 85, 0.5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(71, 85, 105, 0.8); }

/* Focus styles for keyboard navigation (accessibility) - scoped strictly to fine pointers (mouse/keyboard), never touch */
@media (hover: hover) and (pointer: fine) {
  button:focus-visible, a:focus-visible, input:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
  }
}
@media (pointer: coarse) {
  button, a, input, select, textarea, [role="button"], .gap-input {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }
}
button:focus:not(:focus-visible) {
  outline: none !important;
}

/* Base utility additions & touch flash elimination */
*, *::before, *::after {
  -webkit-tap-highlight-color: transparent;
}
.tap-highlight-transparent {
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
}

/* Session intro word count chips (smooth pill toggle) */
.chip-active {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
}

/* Loading skeleton pulse */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, rgba(30,41,59,0.5) 25%, rgba(51,65,85,0.5) 50%, rgba(30,41,59,0.5) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Keyboard hint styling */
kbd {
  font-family: inherit;
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  border-radius: 0.375rem;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(71, 85, 105, 0.5);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
  color: #94a3b8;
}

/* Header Grid layout */
@media (min-width:768px){.hdr-grid{grid-template-columns:1fr auto 1fr;column-gap:14px}}
@media (min-width:768px) and (max-width:1099px){.hdr-brand{display:none!important}}

/* Desktop & Shared Nav Buttons */
.nav-mg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  color: #a7f3d0;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.2), rgba(34, 211, 238, 0.14));
  border: 1px solid rgba(52, 211, 153, 0.45);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
  line-height: 1.25;
}
.nav-mg:hover {
  color: #ffffff;
  border-color: #34d399;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.35);
}

.nav-kids {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  color: #451a03;
  background: linear-gradient(135deg, #fde047, #fb923c);
  border: 1px solid rgba(251, 191, 36, 0.8);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.28);
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.2s, box-shadow 0.2s;
  touch-action: manipulation;
  line-height: 1.25;
}
.nav-kids:hover {
  filter: brightness(1.06);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.45);
}

/* Mobile sub-bar: centered dock; fits on any screen without horizontal scrolling */
.mnav {
  gap: 3px !important;
  justify-content: center !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
}
.mnav > button {
  padding-left: 6px !important;
  padding-right: 6px !important;
  touch-action: manipulation;
}
.mnav > button.nav-mg {
  padding-left: 8px !important;
  padding-right: 8px !important;
}
.mnav > button.nav-kids {
  padding-left: 8px !important;
  padding-right: 8px !important;
  margin-left: 2px;
}
.mnav > :first-child { margin-left: 0; }
.mnav > :last-child { margin-right: 0; }

.nav-mg.nav-mg-sm {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 10px;
  flex-shrink: 0;
}
.nav-kids.nav-kids-sm {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 10px;
  flex-shrink: 0;
}

@media (prefers-reduced-motion:reduce) {
  .nav-mg-new, .mg-nudge { animation: none; }
}

/* v3: quiet "brain break" line under the next word's intro card */
.mg-nudge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px dashed rgba(52, 211, 153, 0.35);
  font-size: 12px;
  color: #94a3b8;
  animation: mg-nudge-in 0.5s ease 0.6s both;
}
@keyframes mg-nudge-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.mg-nudge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.mg-nudge-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.mg-nudge-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.55);
}
.mg-nudge-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  color: #64748b;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  margin-left: 2px;
}
.mg-nudge-x:hover {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
}
