/* ============================
   GuessThat — Discord-Themed Design System
   ============================ */

/* --- Fonts --- */
@font-face {
  font-family: Whitney;
  src: url(https://cdn.jsdelivr.net/gh/Tyrrrz/DiscordFonts@master/whitney-300.woff);
  font-weight: 300;
}
@font-face {
  font-family: Whitney;
  src: url(https://cdn.jsdelivr.net/gh/Tyrrrz/DiscordFonts@master/whitney-400.woff);
  font-weight: 400;
}
@font-face {
  font-family: Whitney;
  src: url(https://cdn.jsdelivr.net/gh/Tyrrrz/DiscordFonts@master/whitney-500.woff);
  font-weight: 500;
}
@font-face {
  font-family: Whitney;
  src: url(https://cdn.jsdelivr.net/gh/Tyrrrz/DiscordFonts@master/whitney-600.woff);
  font-weight: 600;
}
@font-face {
  font-family: Whitney;
  src: url(https://cdn.jsdelivr.net/gh/Tyrrrz/DiscordFonts@master/whitney-700.woff);
  font-weight: 700;
}

/* --- Design Tokens --- */
:root {
  /* Discord palette */
  --dc-dark: #111214;
  --dc-darker: #0c0c0e;
  --dc-sidebar: #1e1f22;
  --dc-bg: #2b2d31;
  --dc-card: #2b2d31;
  --dc-elevated: #313338;
  --dc-hover: #36373d;
  --dc-border: rgba(255, 255, 255, 0.06);
  --dc-divider: rgba(255, 255, 255, 0.08);

  /* Text */
  --dc-text: #dbdee1;
  --dc-text-muted: #949ba4;
  --dc-text-strong: #f2f3f5;
  --dc-text-link: #00a8fc;

  /* Accent */
  --dc-blurple: #5865f2;
  --dc-blurple-hover: #4752c4;
  --dc-green: #23a55a;
  --dc-red: #f23f43;
  --dc-yellow: #f0b232;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #5865f2 0%, #7b6cf6 50%, #eb459e 100%);
  --gradient-text: linear-gradient(135deg, #7b6cf6 0%, #eb459e 50%, #f0b232 100%);

  /* Spacing */
  --section-pad: clamp(60px, 10vw, 120px);
  --container: 1140px;

  /* Effects */
  --glass-bg: rgba(30, 31, 35, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.55);
  --radius: 12px;
  --radius-lg: 20px;

  /* Chatlog tokens (backwards compat) */
  --bg: #313338;
  --fg: #dbdee1;
  --fg-strong: #f2f3f5;
  --muted: rgba(255, 255, 255, 0.2);
  --divider: rgba(255, 255, 255, 0.08);
  --link: #00a8fc;
  --blurple: #5865f2;
  --mention: #7289da;
  --mention-background: rgba(88, 101, 242, 0.18);
  --mention-foreground: #c9cdfb;
  --font-weight-medium: 500;
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--dc-dark);
  color: var(--dc-text);
  font-family: "Inter", "Whitney", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--dc-text-link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  object-fit: contain;
}

/* ============================
   Animated Background Blobs
   ============================ */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  will-change: transform;
}

.blob--1 {
  width: 600px;
  height: 600px;
  background: #5865f2;
  top: -200px;
  left: -100px;
  animation: blobFloat1 20s ease-in-out infinite;
}
.blob--2 {
  width: 500px;
  height: 500px;
  background: #eb459e;
  top: 40%;
  right: -150px;
  animation: blobFloat2 25s ease-in-out infinite;
}
.blob--3 {
  width: 450px;
  height: 450px;
  background: #f0b232;
  bottom: -100px;
  left: 30%;
  animation: blobFloat3 22s ease-in-out infinite;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, 60px) scale(1.1); }
  66% { transform: translate(-40px, 120px) scale(0.95); }
}
@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-100px, -50px) scale(1.08); }
  66% { transform: translate(60px, 80px) scale(0.92); }
}
@keyframes blobFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -80px) scale(1.05); }
  66% { transform: translate(-80px, 40px) scale(0.97); }
}

/* ============================
   Navigation
   ============================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.nav--scrolled {
  background: rgba(17, 18, 20, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 var(--dc-border);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dc-text-strong);
  font-weight: 700;
  font-size: 1.1rem;
}
.nav__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__link {
  color: var(--dc-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav__link:hover {
  color: var(--dc-text-strong);
  text-decoration: none;
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--dc-blurple);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 99px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.nav__cta:hover {
  background: var(--dc-blurple-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ============================
   Shared Typography
   ============================ */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--dc-text-strong);
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.section-subtitle {
  text-align: center;
  color: var(--dc-text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================
   Buttons
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: 0;
  border-radius: 99px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--dc-blurple);
  color: #fff;
}
.btn--primary:hover {
  background: var(--dc-blurple-hover);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.4);
}
.btn--ghost {
  background: transparent;
  color: var(--dc-text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--dc-text-strong);
  text-decoration: none;
  transform: translateY(-2px);
}
.btn--lg {
  padding: 14px 32px;
  font-size: 1rem;
}
.btn--glow:hover {
  box-shadow: 0 0 40px rgba(88, 101, 242, 0.5), 0 8px 30px rgba(88, 101, 242, 0.3);
}

/* ============================
   Hero
   ============================ */
.hero {
  position: relative;
  z-index: 1;
  padding: calc(64px + 60px) 24px var(--section-pad);
}
.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__text {
  animation: heroFadeIn 0.8s ease-out both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.2);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #23a55a;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--dc-text-strong);
  margin: 0 0 20px;
}
.hero__gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: 1.1rem;
  color: var(--dc-text-muted);
  line-height: 1.7;
  margin: 0 0 32px;
  max-width: 480px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero Card (floating Discord mock) */
.hero__visual {
  display: flex;
  justify-content: center;
  animation: heroCardFloat 0.9s 0.2s ease-out both;
}
@keyframes heroCardFloat {
  from { opacity: 0; transform: translateY(30px) rotate(1deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}
.hero__card {
  background: var(--dc-elevated);
  border-radius: var(--radius-lg);
  padding: 18px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--dc-border);
  position: relative;
}
.hero__card--float {
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero__card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.hero__card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.hero__card-name {
  font-weight: 600;
  color: var(--dc-blurple);
  font-size: 0.95rem;
}
.hero__card-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  background: var(--dc-blurple);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  border-radius: 3px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
.hero__card-embed {
  display: grid;
  grid-template-columns: 4px 1fr;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}
.hero__card-pill {
  background: var(--dc-green);
}
.hero__card-body {
  padding: 12px 14px;
}
.hero__card-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dc-text-strong);
  margin-bottom: 4px;
}
.hero__card-desc {
  font-size: 0.82rem;
  color: var(--dc-text-muted);
  margin-bottom: 10px;
}
.hero__card-img {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  overflow: hidden;
}
.hero__card-img img {
  width: 100%;
  height: auto;
}
.hero__card-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero__btn {
  appearance: none;
  border: 0;
  padding: 8px 14px;
  background: #4f545c;
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: default;
  transition: filter 0.15s;
}
.hero__btn--correct {
  background: var(--dc-green);
}

/* ============================
   Features
   ============================ */
.features {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 24px;
}
.features__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  opacity: 0;
  transform: translateY(24px);
}
.feature-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out, box-shadow 0.3s, border-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.12);
}
.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-card__icon--purple { background: rgba(88, 101, 242, 0.15); color: #7b6cf6; }
.feature-card__icon--pink { background: rgba(235, 69, 158, 0.15); color: #eb459e; }
.feature-card__icon--yellow { background: rgba(240, 178, 50, 0.15); color: #f0b232; }
.feature-card__icon--green { background: rgba(35, 165, 90, 0.15); color: #23a55a; }
.feature-card__icon--cyan { background: rgba(0, 168, 252, 0.15); color: #00a8fc; }
.feature-card__icon--orange { background: rgba(245, 125, 50, 0.15); color: #f57d32; }

.feature-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dc-text-strong);
  margin: 0 0 8px;
}
.feature-card__desc {
  font-size: 0.88rem;
  color: var(--dc-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ============================
   Games Section
   ============================ */
.games {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 24px;
}
.games__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.games__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.game-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  border: 1px solid var(--dc-border);
  background: var(--dc-card);
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(24px);
}
.game-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out, box-shadow 0.3s;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.game-card__glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  pointer-events: none;
  transition: opacity 0.3s;
}
.game-card:hover .game-card__glow { opacity: 0.35; }
.game-card--fortnite .game-card__glow { background: #5865f2; }
.game-card--valorant .game-card__glow { background: #fd4556; }
.game-card--minecraft .game-card__glow { background: #23a55a; }

.game-card__content {
  position: relative;
  z-index: 1;
}
.game-card__title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dc-text-strong);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.game-card__desc {
  font-size: 0.9rem;
  color: var(--dc-text-muted);
  line-height: 1.55;
  margin: 0 0 18px;
}
.game-card__tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dc-text-muted);
  letter-spacing: 0.03em;
}

/* ============================
   Try It (Command Previews)
   ============================ */
.try-it {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 24px;
}
.try-it__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.try-it__commands {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 44px;
}
.cmd-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.cmd-pill__slash {
  padding: 6px 10px;
  background: var(--mention-background);
  border-radius: 4px;
  color: var(--mention-foreground);
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.cmd-pill:hover .cmd-pill__slash {
  background: rgba(88, 101, 242, 0.3);
  color: #fff;
}
.cmd-pill__label {
  font-size: 0.82rem;
  color: var(--dc-text-muted);
}
.try-it__status {
  font-size: 0.8rem;
  color: var(--dc-green);
  opacity: 0;
  transition: opacity 0.3s;
}
.try-it__status.is-visible {
  opacity: 1;
}

.try-it__previews {
  display: grid;
  gap: 32px;
}
.preview-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.6fr) minmax(0, 2.4fr);
  gap: 24px;
  align-items: start;
  opacity: 0;
  transform: translateY(20px);
}
.preview-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.preview-card--reverse {
  grid-template-columns: minmax(0, 2.4fr) minmax(160px, 0.6fr);
}
.preview-card--reverse .preview-card__label {
  order: 2;
}
.preview-card--reverse .preview-card__frame {
  order: 1;
}
.preview-card__label {
  padding-top: 12px;
}
.preview-card__label h3 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--dc-text-strong);
  line-height: 1.1;
}
.preview-card__frame {
  background: var(--dc-elevated);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--dc-border);
}
.preview-card__iframe {
  width: 100%;
  height: 520px;
  border: 0;
  border-radius: var(--radius);
  background: var(--dc-elevated);
}
.preview-card__iframe--medium { height: 520px; }
.preview-card__iframe--big { height: 640px; }
.preview-card__iframe--tall { height: 820px; }

/* ============================
   CTA Section
   ============================ */
.cta-section {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 24px;
}
.cta-section__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  opacity: 0;
  transform: translateY(20px);
}
.cta-section__inner.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.cta-section__title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--dc-text-strong);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.cta-section__subtitle {
  color: var(--dc-text-muted);
  font-size: 1rem;
  margin: 0 0 28px;
  line-height: 1.6;
}

/* ============================
   Footer
   ============================ */
.footer {
  position: relative;
  z-index: 1;
  padding: 40px 24px 32px;
  border-top: 1px solid var(--dc-divider);
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dc-text-strong);
}
.footer__logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__link {
  color: var(--dc-text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.footer__link:hover {
  color: var(--dc-text-strong);
  text-decoration: none;
}
.footer__bottom {
  border-top: 1px solid var(--dc-divider);
  padding-top: 20px;
}
.footer__legal {
  font-size: 0.78rem;
  color: var(--dc-text-muted);
  line-height: 1.7;
  margin: 0;
  opacity: 0.7;
}

/* ============================
   Legal Pages (Privacy / Terms)
   ============================ */
.legal-page {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: calc(64px + 48px) 24px 80px;
}
.legal-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--dc-text-strong);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.legal-page .legal-updated {
  color: var(--dc-text-muted);
  font-size: 0.88rem;
  margin: 0 0 40px;
}
.legal-page h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dc-text-strong);
  margin: 40px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--dc-divider);
}
.legal-page h2:first-of-type {
  border-top: none;
  padding-top: 0;
}
.legal-page p, .legal-page li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--dc-text);
}
.legal-page ul {
  padding-left: 20px;
  margin: 8px 0;
}
.legal-page li {
  margin-bottom: 6px;
}
.legal-page a {
  color: var(--dc-text-link);
}
.legal-page strong {
  color: var(--dc-text-strong);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .games__cards { grid-template-columns: repeat(2, 1fr); }
  .nav__links { gap: 16px; }
}

@media (max-width: 640px) {
  .features__grid { grid-template-columns: 1fr; }
  .games__cards { grid-template-columns: 1fr; }
  .nav__link { display: none; }
  .hero__title { font-size: clamp(2rem, 7vw, 3rem); }
  .preview-card,
  .preview-card--reverse {
    grid-template-columns: 1fr;
  }
  .preview-card--reverse .preview-card__label,
  .preview-card--reverse .preview-card__frame {
    order: unset;
  }
  .preview-card__label h3 { font-size: 2rem; }
  .cta-section__inner { padding: 40px 24px; }
  .footer__top { flex-direction: column; align-items: flex-start; }
}

/* ============================
   Chatlog Styles (for iframe previews)
   These are preserved from the original for
   command-fortnite/valorant/global.html
   ============================ */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 0;
}

.markdown {
  max-width: 100%;
  line-height: 1.3;
  overflow-wrap: break-word;
}
.preserve-whitespace {
  white-space: pre-wrap;
}
.mention {
  border-radius: 3px;
  padding: 0 2px;
  color: var(--mention);
  background-color: rgba(114, 137, 218, 0.1);
  font-weight: 500;
}

.wrapper_f61d60 {
  background: var(--mention-background);
  border-radius: 3px;
  color: var(--mention-foreground);
  font-weight: var(--font-weight-medium);
  padding: 0 2px;
  unicode-bidi: plaintext;
}
.interactive {
  cursor: pointer;
  transition: background-color 50ms ease-out, color 50ms ease-out;
}
.wrapper_f61d60.interactive:hover {
  background: rgba(88, 101, 242, 0.28);
  color: #ffffff;
}
.timestamp {
  border-radius: 3px;
  padding: 0 2px;
  background-color: rgba(255, 255, 255, 0.06);
}
.emoji {
  width: 1.325em;
  height: 1.325em;
  margin: 0 0.06em;
  vertical-align: -0.4em;
}

.preamble {
  display: grid;
  margin: 0 0.3em 0.6em 0.3em;
  max-width: 100%;
  grid-template-columns: auto 1fr;
}
.preamble__guild-icon-container {
  grid-column: 1;
}
.preamble__guild-icon {
  max-width: 88px;
  max-height: 88px;
  border-radius: 14px;
}
.preamble__entries-container {
  grid-column: 2;
  margin-left: 0.6em;
}
.preamble__entry {
  font-size: 1.4em;
  color: var(--fg-strong);
}

.chatlog {
  max-width: 100%;
}

.chatlog__message-group {
  display: grid;
  margin: 0 0.6em;
  padding: 0.9em 0;
  border-top: 1px solid var(--divider);
  grid-template-columns: auto 1fr;
}
.chatlog__author-avatar-container {
  grid-column: 1;
  width: 40px;
  height: 40px;
  margin-right: 16px;
}
.chatlog__author-avatar {
  border-radius: 50%;
  width: 40px;
  height: 40px;
}
.chatlog__messages {
  grid-column: 2;
  min-width: 50%;
}
.chatlog__header-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.chatlog__author-name {
  font-weight: 500;
  color: var(--fg-strong);
}
.chatlog__timestamp {
  margin-left: 0.2em;
  font-size: 0.75em;
  color: var(--muted);
}
.chatlog__message {
  padding: 0.1em 0.3em;
  margin: 0 -0.3em;
  background-color: transparent;
}
.chatlog__message--ephemeral {
  background: rgba(88, 101, 242, 0.18);
  backdrop-filter: blur(2px);
  border-radius: 8px;
  margin: 0;
  padding: 0.6em 0.8em;
}
.chatlog__ephemeral-footer {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.65);
}
.chatlog__ephemeral-footer .icon__124d2 {
  opacity: 0.9;
}
.chatlog__ephemeral-footer .chatlog__ephemeral-dismiss {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--link);
  font: inherit;
  cursor: default;
}
.chatlog__ephemeral-footer .chatlog__ephemeral-dismiss:disabled {
  pointer-events: none;
  opacity: 1;
}
.chatlog__context-line {
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}
.chatlog__content {
  font-size: 0.95em;
  word-wrap: break-word;
}
.chatlog__edited-timestamp {
  margin-left: 0.15em;
  font-size: 0.8em;
  color: var(--muted);
}
.chatlog__attachment {
  display: inline-block;
  margin-top: 0.3em;
  border-radius: 3px;
  overflow: hidden;
}
.chatlog__attachment-media {
  vertical-align: top;
  max-width: min(45vw, 640px);
  max-height: 500px;
  border-radius: 3px;
  display: block;
}
.chatlog__bot-tag {
  position: relative;
  top: -0.1em;
  margin-left: 0.2em;
  padding: 0.05em 0.3em;
  border-radius: 3px;
  line-height: 1.3;
  background-color: var(--blurple);
  color: var(--fg-strong);
  font-size: 0.625em;
  font-weight: 500;
}
.chatlog__attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.chatlog__embed {
  margin-top: 6px;
}

.embed {
  display: grid;
  grid-template-columns: 4px 1fr;
  background: rgba(47, 49, 54, 0.6);
  border-radius: 4px;
  overflow: hidden;
  max-width: 520px;
}
.embed__color-pill {
  grid-column: 1;
  background: #57f287;
}
.embed__content {
  grid-column: 2;
  padding: 10px 12px;
}
.embed__title {
  color: var(--fg-strong);
  font-weight: 600;
  margin-bottom: 6px;
}
.embed__description {
  font-size: 0.92em;
  color: var(--fg);
  line-height: 1.35;
  white-space: pre-wrap;
}
.embed__image-wrap {
  margin-top: 10px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}
.embed__image {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
}

.chatlog__components {
  margin-top: 10px;
}

.component-row {
  display: grid;
  gap: 8px;
  max-width: 520px;
}
.component-row__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.d-button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: #5865f2;
  color: #fff;
  font: inherit;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: filter 120ms ease, transform 80ms ease, opacity 120ms ease;
}
.d-button--secondary {
  background: #4f545c;
  color: #ffffff;
}
.d-button--secondary:hover {
  filter: brightness(1.07);
}
.d-button--success {
  background: #2d7d46;
  color: #ffffff;
}
.d-button:hover {
  filter: brightness(1.06);
}
.d-button:active {
  transform: translateY(1px);
}
.d-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.d-button.is-selected {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}
.d-button.is-correct {
  background: #2d7d46;
}
.d-button.is-wrong {
  background: #a12828;
}
.component-row__status {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.75);
}

.fade-in {
  animation: fadeIn 180ms ease-out both;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.global-flow {
  display: grid;
  gap: 10px;
  max-width: 520px;
}
.global-flow__embed {
  margin-top: 6px;
}
.global-flow__ephemeral {
  display: grid;
  gap: 8px;
  max-width: 520px;
}
.global-flow__ephemeral-text {
  font-size: 0.95em;
  color: var(--fg);
}
.global-flow__ephemeral-footer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.65);
}
.global-flow__ephemeral-footer .icon__124d2 {
  opacity: 0.9;
}
.global-flow__dismiss {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--link);
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.global-flow__dismiss:hover {
  text-decoration: underline;
}

.embed__description .embed__label {
  font-weight: 600;
  color: var(--fg-strong);
}
.embed__description .embed__code {
  font-family: "Consolas", "Courier New", monospace;
  background: rgba(0, 0, 0, 0.35);
  padding: 1px 6px;
  border-radius: 4px;
}

.postamble {
  margin: 1.4em 0.3em 0.6em 0.3em;
  padding: 1em;
  border-top: 1px solid var(--divider);
}
.postamble__entry {
  color: var(--fg-strong);
}

@media (max-width: 720px) {
  .page {
    padding: 16px 10px 28px;
  }
  .preamble__guild-icon {
    max-width: 64px;
    max-height: 64px;
  }
  .chatlog__attachment-media {
    max-width: 90vw;
  }
}
