@import url("https://fonts.googleapis.com/css2?family=Bangers&family=Inter:wght@400;500;600;700&family=Noto+Sans+VN:wght@400;500;700;900&display=swap");

:root {
  --background: #edeae4;
  --surface: #f6f3ed;
  --text: #182235;
  --text-muted: #64748b;
  --primary: #c81018;
  --secondary: #f2c526;
  --accent: #d89d0b;
  --green: #22c55e;
  --blue: #60a5fa;
  --container: 1280px;
  --nav-height: 96px;
  --display-font: "Bangers", system-ui, sans-serif;
  --body-font: "Inter", "Noto Sans VN", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 5% 18%, rgba(190, 145, 20, 0.07), transparent 22rem),
    radial-gradient(circle at 95% 38%, rgba(150, 25, 30, 0.045), transparent 28rem),
    var(--background);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  color: #fff;
  background: var(--primary);
}

img,
video,
svg {
  display: block;
}

img,
video {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(251, 191, 36, 0.8);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-filled {
  fill: currentColor;
}

.container {
  width: min(calc(100% - 3rem), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: 6rem;
}

.navbar {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  padding-block: 1rem;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: padding 300ms ease, background-color 300ms ease, border-color 300ms ease;
}

.navbar.is-scrolled,
.navbar.menu-active {
  padding-block: 0.75rem;
  border-color: rgba(200, 16, 24, 0.12);
  background: rgba(246, 243, 237, 0.94);
  box-shadow: 0 8px 30px rgba(85, 24, 18, 0.08);
  backdrop-filter: blur(16px);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.brand-logo {
  display: grid;
  width: 4rem;
  height: 4rem;
  padding: 2px;
  place-items: center;
  overflow: hidden;
  border-radius: 0.5rem;
  background: linear-gradient(145deg, #b30000, #7a0000);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  transition: transform 200ms ease;
}

.brand:hover .brand-logo {
  transform: translateY(-0.25rem) scale(1.05);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  border-radius: 0.125rem;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-name {
  color: #a70e14;
  font-family: var(--display-font);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

.brand-copy small {
  margin-top: 0.2rem;
  color: #a66a04;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.desktop-nav > a:not(.button) {
  color: #475569;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 150ms ease;
}

.desktop-nav > a:not(.button):hover {
  color: var(--primary);
}

.button {
  display: inline-flex;
  padding: 0.75rem 2rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 0;
  border-radius: 9999px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.button:hover {
  transform: scale(1.05);
}

.button:active {
  transform: scale(0.95);
}

.button-small {
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
}

.button-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--primary), #f43f5e);
  box-shadow: 0 10px 15px rgba(244, 63, 94, 0.3);
}

.button-primary:hover {
  box-shadow: 0 10px 15px rgba(244, 63, 94, 0.5);
}

.button-secondary {
  color: #0f172a;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  box-shadow: 0 10px 15px rgba(245, 158, 11, 0.3);
}

.button-secondary:hover {
  box-shadow: 0 10px 15px rgba(245, 158, 11, 0.5);
}

.button-light {
  color: #0f172a;
  background: #fff;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.login-cta {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(253, 230, 138, 0.7);
  color: #291500;
  background: linear-gradient(110deg, #fde68a, #f59e0b 48%, #fb923c);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1), 0 8px 22px rgba(245, 158, 11, 0.38);
  letter-spacing: 0.035em;
}

.login-cta::after {
  position: absolute;
  top: -70%;
  left: -55%;
  width: 35%;
  height: 240%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  content: "";
  pointer-events: none;
  transform: rotate(18deg);
  animation: login-shimmer 3.5s ease-in-out infinite;
}

.login-cta:hover {
  color: #180c00;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14), 0 12px 30px rgba(245, 158, 11, 0.55);
}

.login-cta .icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  stroke-width: 2.4;
}

@keyframes login-shimmer {
  0%, 55% { left: -55%; }
  82%, 100% { left: 135%; }
}

.button-dark-glass {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px);
}

.button-dark-glass:hover {
  background: rgba(15, 23, 42, 0.6);
}

.mobile-header-actions {
  display: none;
  align-items: center;
  gap: 0.625rem;
}

.mobile-widget-nav {
  display: none;
}

.menu-toggle {
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.menu-close-icon {
  display: none;
}

.menu-toggle.is-active .menu-open-icon {
  display: none;
}

.menu-toggle.is-active .menu-close-icon {
  display: block;
}

.mobile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: none;
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid rgba(200, 16, 24, 0.12);
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(30, 41, 59, 0.1);
}

.mobile-menu a:not(.button) {
  color: #475569;
  font-size: 1.125rem;
  font-weight: 500;
}

.mobile-menu.is-open {
  display: flex;
  animation: menu-in 180ms ease both;
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  padding-top: 6.5rem;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-background,
.hero-background img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-background {
  z-index: -2;
}

.hero-background img {
  width: 100%;
  height: 100%;
  opacity: 0.1;
  object-fit: cover;
  filter: grayscale(0.3) contrast(0.85) brightness(0.82);
  transform: scale(1.02);
}

.hero-overlay {
  background:
    radial-gradient(circle at 12% 35%, rgba(190, 145, 20, 0.1), transparent 25%),
    linear-gradient(180deg, rgba(237, 234, 228, 0.82), rgba(239, 235, 227, 0.96) 60%, var(--background));
}

.hero-orb {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 3rem;
}

.national-celebration {
  position: relative;
  display: flex;
  width: min(100%, 36rem);
  min-height: 5.75rem;
  margin-bottom: 1.25rem;
  padding-inline: 7rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.national-copy {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.national-copy::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  color: rgba(200, 16, 24, 0.055);
  content: "★";
  font-size: 6rem;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.national-copy small {
  color: #a66a04;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.national-copy strong {
  margin-block: 0.25rem;
  color: #a70e14;
  font-size: 1rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.national-copy strong b { color: #d29b08; font-size: 1.25em; }
.national-copy em { color: #946611; font-size: 0.6rem; font-style: normal; font-weight: 700; letter-spacing: 0.08em; }

.hero-flag {
  position: absolute;
  top: 0.8rem;
  width: 5.25rem;
  height: 3.5rem;
  overflow: hidden;
  border-radius: 0.2rem 0.5rem 0.5rem 0.2rem;
  color: #ffe13b;
  background:
    linear-gradient(90deg, rgba(90, 0, 4, 0.17), transparent 20%, rgba(255,255,255,.15) 38%, transparent 55%, rgba(90,0,4,.14) 78%, transparent),
    #d31319;
  box-shadow: 0 10px 20px rgba(127, 29, 29, 0.2), inset 0 1px rgba(255, 255, 255, 0.25);
  transform-origin: left center;
  animation: landing-flag-wave 2.8s ease-in-out infinite;
}

.hero-flag::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 10%, rgba(255,255,255,.2) 30%, transparent 48%, rgba(90,0,4,.14) 72%, transparent 90%);
  content: "";
  animation: landing-flag-light 2.8s ease-in-out infinite;
}

.hero-flag::after {
  position: absolute;
  top: -0.25rem;
  left: -0.2rem;
  width: 0.22rem;
  height: 4.5rem;
  border-radius: 1rem;
  background: linear-gradient(90deg, #85500b, #f0ce68, #7a4509);
  content: "";
}

.hero-flag i {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  font-size: 1.55rem;
  font-style: normal;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.hero-flag-left { left: 0.5rem; transform: rotate(-3deg); }
.hero-flag-right { right: 0.5rem; transform: rotate(3deg); animation-delay: -1.4s; }

@keyframes landing-flag-wave {
  0%, 100% { clip-path: polygon(0 4%, 25% 0, 50% 6%, 75% 1%, 100% 7%, 100% 93%, 75% 99%, 50% 94%, 25% 100%, 0 96%); }
  50% { clip-path: polygon(0 4%, 25% 8%, 50% 1%, 75% 7%, 100% 2%, 100% 98%, 75% 92%, 50% 99%, 25% 93%, 0 96%); }
}

@keyframes landing-flag-light {
  0%, 100% { transform: translateX(-18%); }
  50% { transform: translateX(18%); }
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 1.5rem;
  padding: 0.25rem 0.75rem;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(225, 29, 72, 0.3);
  border-radius: 9999px;
  color: var(--primary);
  background: rgba(225, 29, 72, 0.2);
  font-size: 0.75rem;
  font-weight: 700;
}

.eyebrow .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.hero h1,
.section-heading h2,
.characters-heading h2,
.cta-panel h2 {
  font-family: var(--display-font);
  font-weight: 400;
  line-height: 1;
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: #172033;
  font-size: 6rem;
  text-shadow: 0 4px 0 rgba(200, 16, 24, 0.08);
}

.hero h1 span {
  display: block;
  color: var(--secondary);
}

.hero-description {
  max-width: 32rem;
  margin-bottom: 2rem;
  color: #526174;
  font-size: 1.125rem;
  line-height: 1.625;
}

.download-panel {
  position: relative;
  max-width: 40rem;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid rgba(210, 155, 8, 0.35);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 10% 0%, rgba(251, 191, 36, 0.15), transparent 38%),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 50px rgba(103, 48, 26, 0.13), inset 0 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.download-panel::before {
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(110deg, rgba(251, 191, 36, 0.8), transparent 30%, transparent 70%, rgba(244, 63, 94, 0.75));
  content: "";
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.download-heading {
  display: flex;
  margin-bottom: 0.875rem;
  align-items: center;
  gap: 0.75rem;
  color: #172033;
}

.download-heading > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.download-heading small {
  color: #fbbf24;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.download-heading strong {
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.download-heading-icon {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.38);
}

.download-heading-icon .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.download-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #15803d;
  font-size: 0.6875rem;
  font-weight: 700;
}

.download-live i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: download-live-pulse 2s infinite;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.download-actions .store-button {
  position: relative;
  min-width: 10.5rem;
  min-height: 4.4rem;
  padding: 0.8rem 1rem;
  overflow: hidden;
  flex: 1 1 10.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.9rem;
  color: #fff;
  isolation: isolate;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.download-actions .store-button:nth-child(1) {
  background: linear-gradient(135deg, #e11d48, #f97316);
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.38), inset 0 1px rgba(255, 255, 255, 0.2);
}

.download-actions .store-button:nth-child(2) {
  background: linear-gradient(135deg, #047857, #22c55e);
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.3), inset 0 1px rgba(255, 255, 255, 0.2);
}

.download-actions .store-button:nth-child(3) {
  background: linear-gradient(135deg, #1d4ed8, #38bdf8);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.3), inset 0 1px rgba(255, 255, 255, 0.2);
}

.download-actions .store-button::after {
  position: absolute;
  top: -60%;
  left: -85%;
  z-index: -1;
  width: 48%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  content: "";
  pointer-events: none;
  transform: rotate(18deg);
  animation: store-shimmer 3.8s ease-in-out infinite;
}

.download-actions .store-button:nth-child(2)::after {
  animation-delay: 0.45s;
}

.download-actions .store-button:nth-child(3)::after {
  animation-delay: 0.9s;
}

.download-actions .store-button:hover {
  filter: brightness(1.1) saturate(1.08);
  transform: translateY(-4px) scale(1.025);
}

.download-actions .store-button:active {
  transform: translateY(-1px) scale(0.98);
}

.store-button .icon {
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
}

.store-button span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.store-button small {
  opacity: 0.84;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1;
}

.store-button strong {
  margin-top: 0.2rem;
  font-size: 1.05rem;
  white-space: nowrap;
}

@keyframes store-shimmer {
  0%, 55% { left: -85%; }
  82%, 100% { left: 150%; }
}

@keyframes download-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 0.45rem rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.trust-points {
  display: flex;
  margin-top: 2.5rem;
  align-items: center;
  gap: 1.5rem;
  color: #94a3b8;
  font-size: 0.875rem;
}

.trust-points span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-points .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.shield-icon {
  color: var(--green);
}

.zap-icon {
  color: #eab308;
}

.hero-showcase {
  position: relative;
}

.video-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  background: #0f172a;
  box-shadow: 0 25px 50px rgba(225, 29, 72, 0.2);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(225, 29, 72, 0.4), transparent);
  pointer-events: none;
}

.floating-card,
.glass-card {
  border: 1px solid rgba(120, 110, 100, 0.18);
  background: rgba(246, 243, 237, 0.94);
  box-shadow: 0 16px 40px rgba(71, 42, 29, 0.07);
  backdrop-filter: blur(12px);
}

.floating-card {
  position: absolute;
  z-index: 2;
  border-radius: 1rem;
}

.download-count {
  top: -2.5rem;
  right: -2.5rem;
  display: flex;
  width: 8rem;
  height: 8rem;
  padding: 1rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: float-up 4s ease-in-out infinite;
}

.download-count strong {
  color: var(--primary);
  font-size: 1.5rem;
}

.download-count span,
.store-rank small {
  color: #64748b;
  font-size: 0.625rem;
}

.download-count span {
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.store-rank {
  bottom: -2.5rem;
  left: -2.5rem;
  display: flex;
  width: 10rem;
  height: 5rem;
  padding-inline: 1rem;
  align-items: center;
  gap: 0.75rem;
  animation: float-down 5s ease-in-out 1s infinite;
}

.trophy-badge {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #0f172a;
  background: var(--secondary);
}

.store-rank > span:last-child {
  display: flex;
  flex-direction: column;
}

.store-rank strong {
  font-size: 0.875rem;
}

.store-rank small {
  color: #94a3b8;
}

@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.25rem); }
}

@keyframes float-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(1.25rem); }
}

.features-section {
  border-block: 1px solid rgba(200, 16, 24, 0.07);
  background:
    radial-gradient(circle at 90% 10%, rgba(190, 145, 20, 0.065), transparent 22rem),
    #e8e4dd;
}

.section-kicker {
  display: none;
}

.section-heading-center {
  margin-bottom: 4rem;
  text-align: center;
}

.section-heading h2,
.characters-heading h2 {
  margin-bottom: 1rem;
  font-size: 3rem;
}

.heading-line {
  display: block;
  width: 6rem;
  height: 0.25rem;
  margin-inline: auto;
  border-radius: 9999px;
  background: var(--primary);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.feature-card {
  overflow: hidden;
  border-radius: 1.5rem;
  transition: transform 250ms ease;
}

.feature-card:hover {
  transform: translateY(-0.625rem);
}

.feature-image {
  height: 12rem;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.feature-card:hover .feature-image img {
  transform: scale(1.1);
}

.feature-body {
  padding: 2rem;
  color: #1e293b;
}

.feature-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.5rem;
  place-items: center;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
}

.star-icon { color: #facc15; }
.strategy-icon { color: #60a5fa; }
.community-icon { color: #4ade80; }

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.feature-card p {
  margin-bottom: 0;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.625;
}

.characters-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(150, 25, 30, 0.04), transparent 18rem),
    #f0ede7;
}

.characters-glow {
  display: none;
}

.characters-heading {
  display: flex;
  margin-bottom: 4rem;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.characters-heading h2 {
  margin-top: 0;
}

.characters-heading p {
  max-width: 28rem;
  margin-bottom: 0;
  color: #64748b;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
  transition: gap 150ms ease;
}

.text-link:hover {
  gap: 1rem;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.character-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 1.5rem;
  cursor: pointer;
}

.character-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.character-card:hover img {
  transform: scale(1.1);
}

.character-gradient {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  transition: opacity 150ms ease;
}

.character-card:hover .character-gradient {
  opacity: 0.8;
}

.character-red .character-gradient { background: linear-gradient(0deg, #ef4444, transparent); }
.character-green .character-gradient { background: linear-gradient(0deg, #22c55e, transparent); }
.character-blue .character-gradient { background: linear-gradient(0deg, #3b82f6, transparent); }
.character-pink .character-gradient { background: linear-gradient(0deg, #ec4899, transparent); }

.character-card > div {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1.5rem;
}

.character-card h3 {
  margin-bottom: 0.25rem;
  font-family: var(--display-font);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

.character-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cta-section {
  padding-inline: 1.5rem;
}

.cta-section .container {
  width: 100%;
}

.cta-panel {
  position: relative;
  max-width: 64rem;
  margin-inline: auto;
  padding: 5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 225, 59, 0.5);
  border-radius: 3rem;
  background:
    radial-gradient(circle at 12% 50%, rgba(255, 225, 59, 0.2), transparent 24%),
    linear-gradient(110deg, #970b10, #d31319 55%, #a50c11);
  box-shadow: 0 25px 55px rgba(145, 15, 18, 0.23);
  text-align: center;
}

.cta-decoration {
  position: absolute;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.1;
  pointer-events: none;
}

.cta-decoration-one {
  top: -8rem;
  left: -8rem;
  background: #fff;
}

.cta-decoration-two {
  right: -8rem;
  bottom: -8rem;
  background: var(--secondary);
}

.cta-icon {
  display: none;
}

.cta-panel h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
  font-size: 3.75rem;
}

.cta-panel > p {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta-actions .button {
  padding: 1rem 2.5rem;
}

.cta-actions .button-light {
  color: var(--primary);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.2);
}

.footer {
  padding-block: 5rem 2.5rem;
  border-top: 1px solid rgba(200, 16, 24, 0.1);
  color: #334155;
  background: #e6e2db;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  margin-bottom: 4rem;
  gap: 3rem;
}

.footer-about .brand {
  margin-bottom: 1.5rem;
}

.footer-about > p {
  max-width: 24rem;
  margin-bottom: 2rem;
  color: #64748b;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  color: #9f1239;
  background: rgba(200, 16, 24, 0.07);
  font-size: 0.625rem;
  text-transform: capitalize;
  transition: color 150ms ease, background-color 150ms ease;
}

.social-links a:hover {
  color: #fff;
  background: var(--primary);
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-column h3 {
  margin-bottom: 0.5rem;
  color: #9f1239;
  font-size: 1rem;
}

.footer-column a,
.footer-column p {
  margin: 0;
  color: #64748b;
  font-size: 0.875rem;
}

.footer-column a:hover {
  color: var(--primary);
}

.copyright {
  padding-top: 2.5rem;
  border-top: 1px solid rgba(200, 16, 24, 0.08);
  color: #64748b;
  font-size: 0.75rem;
  text-align: center;
}

.copyright p {
  margin: 0;
}

.toast-region {
  position: fixed;
  z-index: 2000;
  right: 0;
  bottom: 1.5rem;
  left: 0;
  display: flex;
  padding-inline: 1rem;
  justify-content: center;
  pointer-events: none;
}

.toast {
  display: flex;
  width: min(100%, 28rem);
  padding: 1rem;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid #f3f4f6;
  border-radius: 0.75rem;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 300ms ease, transform 300ms ease;
  pointer-events: none;
  backdrop-filter: blur(12px);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-symbol {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #b30000;
  font-weight: 700;
}

.toast-content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.toast-content strong,
.toast-content > span {
  font-size: 0.875rem;
}

.toast-content > span {
  margin-top: 0.25rem;
  color: #334155;
}

.toast button {
  margin-left: 0.75rem;
  padding: 0;
  border: 0;
  color: #64748b;
  background: none;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.875rem);
  transition: opacity 700ms ease, transform 700ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal="left"] {
  transform: translateX(-3.125rem);
}

.js [data-reveal="scale"] {
  transform: scale(0.9);
}

/* Keep the hero showcase's original fan-like entrance without rotating other scale reveals. */
.js .hero-showcase[data-reveal="scale"] {
  transform: translate(3rem, 2rem) scale(0.8) rotate(5deg);
  transform-origin: bottom left;
  transition-duration: 1s;
  transition-delay: 200ms;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.js .hero-showcase[data-reveal="scale"].is-visible {
  transform: none;
}

@media (max-width: 767px) {
  :root {
    --nav-height: 96px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-header-actions {
    display: flex;
  }

  .mobile-widget-nav {
    position: fixed;
    z-index: 1200;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    left: 0.75rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.45rem;
    border: 1px solid rgba(200, 16, 24, 0.12);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 45px rgba(67, 31, 23, 0.18);
    backdrop-filter: blur(18px);
  }

  .mobile-widget-nav a {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 3.75rem;
    padding: 0.45rem 0.2rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.25rem;
    border-radius: 0.9rem;
    color: #64748b;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: color 150ms ease, background-color 150ms ease, transform 150ms ease;
  }

  .mobile-widget-nav a:first-child {
    color: #fff;
    background: linear-gradient(145deg, #d31319, #9f0c11);
  }

  .mobile-widget-nav a:active {
    transform: scale(0.96);
  }

  .mobile-widget-nav .icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
  }

  .mobile-widget-nav a:first-child .icon {
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
  }

  body {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
  }

  .mobile-login {
    min-height: 2.75rem;
    padding: 0.625rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .menu-toggle {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 1px solid rgba(200, 16, 24, 0.15);
    border-radius: 50%;
    color: #9f1239;
    background: rgba(255, 255, 255, 0.8);
  }

  .hero-grid {
    display: block;
  }

  .hero h1 {
    font-size: 3.75rem;
  }

  .hero-showcase {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .characters-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading h2,
  .characters-heading h2 {
    font-size: 2.25rem;
  }

  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-panel {
    padding: 3rem;
  }

  .cta-panel h2 {
    font-size: 2.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(calc(100% - 2rem), var(--container));
  }

  .brand-logo {
    width: 3.25rem;
    height: 3.25rem;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .mobile-header-actions {
    gap: 0.5rem;
  }

  .mobile-login {
    min-height: 2.5rem;
    padding-inline: 0.7rem;
    gap: 0.4rem;
    font-size: 0.6875rem;
  }

  .mobile-login .icon {
    width: 0.875rem;
    height: 0.875rem;
  }

  .menu-toggle {
    width: 2.5rem;
    height: 2.5rem;
  }

  .hero {
    padding-block: 6.5rem 4rem;
  }

  .national-celebration {
    min-height: 4.8rem;
    padding-inline: 4.5rem;
  }

  .hero-flag {
    top: 0.8rem;
    width: 3.8rem;
    height: 2.55rem;
  }

  .hero-flag i { font-size: 1.1rem; }
  .national-copy strong { font-size: 0.75rem; }
  .national-copy small { font-size: 0.45rem; }
  .national-copy em { font-size: 0.48rem; }

  .hero h1 {
    font-size: clamp(3.25rem, 17vw, 3.75rem);
  }

  .hero-description {
    font-size: 1rem;
  }

  .download-panel {
    padding: 0.7rem;
    border-radius: 1rem;
  }

  .download-heading {
    margin-bottom: 0.625rem;
    gap: 0.55rem;
  }

  .download-heading-icon {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.55rem;
  }

  .download-heading-icon .icon {
    width: 1rem;
    height: 1rem;
  }

  .download-heading small {
    font-size: 0.5rem;
  }

  .download-heading strong {
    font-size: 0.8125rem;
  }

  .download-live {
    display: none;
  }

  .download-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .download-actions .store-button {
    width: 100%;
    min-width: 0;
    min-height: 4rem;
    padding: 0.55rem 0.3rem;
    flex-direction: column;
    gap: 0.3rem;
    border-radius: 0.7rem;
  }

  .download-actions .store-button .icon {
    width: 1.3rem;
    height: 1.3rem;
  }

  .download-actions .store-button span {
    align-items: center;
    text-align: center;
  }

  .download-actions .store-button small {
    display: none;
  }

  .download-actions .store-button strong {
    margin-top: 0;
    font-size: clamp(0.625rem, 2.8vw, 0.75rem);
  }

  .trust-points {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .character-grid {
    gap: 0.75rem;
  }

  .character-card {
    border-radius: 1rem;
  }

  .character-card > div {
    padding: 1rem;
  }

  .character-card h3 {
    font-size: 1.25rem;
  }

  .cta-section {
    padding-inline: 1rem;
  }

  .cta-panel {
    padding: 3rem 1.5rem;
    border-radius: 3rem;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .navbar .brand-name {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

