.word-dash-page {
  --wd-bg: #06142f;
  --wd-card: rgba(239, 246, 255, 0.88);
  --wd-card-strong: rgba(219, 234, 254, 0.96);
  --wd-blue: #2563eb;
  --wd-sky: #0ea5e9;
  --wd-cyan: #06b6d4;
  --wd-green: #16a34a;
  --wd-orange: #f97316;
  --wd-purple: #7c3aed;
  --wd-ink: #0f172a;
  --wd-muted: #475569;
  --wd-line: rgba(37, 99, 235, 0.18);
  --wd-shadow: 0 24px 70px rgba(37, 99, 235, 0.18);
  min-height: 100vh;
  padding: clamp(8px, 1.8vw, 18px) clamp(8px, 2vw, 24px) clamp(18px, 3vw, 34px);
  color: var(--wd-ink);
  background:
    radial-gradient(circle at 12% 6%, rgba(14, 165, 233, 0.24), transparent 32%),
    radial-gradient(circle at 88% 10%, rgba(124, 58, 237, 0.16), transparent 34%),
    linear-gradient(180deg, #dbeafe 0%, #ecfeff 38%, #dcfce7 100%);
}

.word-dash-hero,
.word-dash-shell,
.word-dash-content article {
  border: 1px solid var(--wd-line);
  border-radius: 26px;
  background: var(--wd-card);
  box-shadow: var(--wd-shadow);
  backdrop-filter: blur(18px);
}

.word-dash-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto 12px;
  padding: clamp(14px, 2.4vw, 26px);
  overflow: hidden;
  position: relative;
}

.word-dash-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -52% 18%;
  height: 220px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18), transparent 64%);
  pointer-events: none;
}

.word-dash-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #075985;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.22);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.word-dash-hero h1 {
  margin: 8px 0 6px;
  font-size: clamp(1.55rem, 3.5vw, 3.2rem);
  line-height: 1;
  max-width: 780px;
  color: #07111f;
}

.word-dash-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--wd-muted);
  font-size: clamp(.9rem, 1.25vw, 1rem);
  line-height: 1.45;
}

.word-dash-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.word-dash-feature-row span {
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #1e3a8a;
  padding: 8px 11px;
  font-size: 0.82rem;
  font-weight: 750;
}

.word-dash-hero-card {
  min-height: 190px;
  border-radius: 24px;
  border: 1px solid rgba(6, 182, 212, 0.26);
  background:
    linear-gradient(145deg, rgba(37, 99, 235, 0.92), rgba(6, 182, 212, 0.62)),
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.46), transparent 28%);
  box-shadow: 0 30px 72px rgba(14, 165, 233, 0.32);
  color: white;
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 18px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.word-dash-hero-card::before,
.word-dash-hero-card::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  transform: rotate(-14deg);
}

.word-dash-hero-card::before {
  width: 280px;
  height: 76px;
  right: -92px;
  bottom: 22px;
}

.word-dash-hero-card::after {
  width: 190px;
  height: 54px;
  left: 22px;
  top: 30px;
}

.word-dash-mascot-preview {
  width: 112px;
  height: 136px;
  border-radius: 38px 38px 30px 30px;
  background: linear-gradient(180deg, #dbeafe, #38bdf8 54%, #2563eb);
  box-shadow: inset 0 -20px 28px rgba(15, 23, 42, 0.22), 0 18px 35px rgba(15, 23, 42, 0.24);
  position: relative;
  z-index: 1;
}

.word-dash-mascot-eye {
  position: absolute;
  top: 38px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #0f172a;
}

.word-dash-mascot-eye.left { left: 33px; }
.word-dash-mascot-eye.right { right: 33px; }

.word-dash-mascot-book {
  position: absolute;
  left: 30px;
  bottom: 27px;
  width: 52px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fef3c7, #f59e0b);
  transform: rotate(-5deg);
}

.word-dash-hero-card strong,
.word-dash-hero-card span {
  position: relative;
  z-index: 1;
  display: block;
}

.word-dash-hero-card strong {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.word-dash-hero-card span {
  width: fit-content;
  margin-top: 9px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 800;
}

.word-dash-shell {
  max-width: 1240px;
  margin: 0 auto 12px;
  padding: clamp(8px, 1.35vw, 14px);
}

.word-dash-page > .word-dash-shell:first-child {
  margin-top: 0;
}

.word-dash-shell:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  margin: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 15% 10%, rgba(14, 165, 233, 0.24), transparent 32%),
    linear-gradient(180deg, #dbeafe, #ecfeff 58%, #dcfce7);
}

.word-dash-shell:fullscreen .word-dash-canvas-wrap {
  flex: 1 1 auto;
  min-height: 0;
}

.word-dash-shell:fullscreen .word-dash-canvas {
  height: 100%;
  max-height: none;
  min-height: 0;
  aspect-ratio: auto;
}

.word-dash-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.word-dash-toolbar-copy strong,
.word-dash-toolbar-copy span {
  display: block;
}

.word-dash-toolbar-copy strong {
  font-size: 1.08rem;
  color: #0f172a;
}

.word-dash-toolbar-copy span {
  margin-top: 3px;
  color: var(--wd-muted);
  font-size: 0.92rem;
}

.word-dash-actions,
.word-dash-mobile-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.word-dash-btn,
.word-dash-mobile-controls button {
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #1e3a8a;
  cursor: pointer;
  font-weight: 850;
  min-height: 40px;
  padding: 9px 15px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.word-dash-btn:hover,
.word-dash-mobile-controls button:hover,
.word-dash-btn:focus-visible,
.word-dash-mobile-controls button:focus-visible {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.2);
  outline: none;
  transform: translateY(-1px);
}

.word-dash-btn.primary,
.word-dash-mobile-controls button:first-child {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--wd-blue), var(--wd-cyan));
}

.word-dash-hud {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
}

.word-dash-hud div {
  border: 1px solid rgba(37, 99, 235, 0.34);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.92), rgba(191, 219, 254, 0.72));
  padding: 7px 9px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.10);
}

.word-dash-hud span,
.word-dash-hud strong {
  display: block;
}

.word-dash-hud span {
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.word-dash-hud strong {
  color: #1d4ed8;
  font-size: 1.08rem;
}

.word-dash-canvas-wrap {
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 24px;
  background: linear-gradient(180deg, #bfdbfe, #dbeafe 55%, #dcfce7);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.16), 0 18px 44px rgba(37, 99, 235, 0.14);
  overflow: hidden;
}

.word-dash-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 240px;
  max-height: min(58vh, 520px);
  touch-action: none;
}

.word-dash-mobile-controls {
  justify-content: center;
  margin-top: 10px;
}

.word-dash-mobile-controls button {
  min-width: 132px;
  min-height: 48px;
}

.word-dash-result {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(37, 99, 235, 0.34);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.95), rgba(224, 242, 254, 0.86));
  padding: 16px;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.14);
}

.word-dash-result span {
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.word-dash-result h2 {
  margin: 2px 0 4px;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  color: #1d4ed8;
}

.word-dash-result p {
  margin: 0;
  color: #1e40af;
}

.word-dash-result strong {
  color: #1d4ed8;
}

.word-dash-content {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.word-dash-content article {
  padding: 12px;
}

.word-dash-content h2 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: #0f172a;
}

.word-dash-content p,
.word-dash-content li {
  color: var(--wd-muted);
  line-height: 1.55;
  font-size: 0.94rem;
}

.word-dash-content ul {
  margin: 0;
  padding-left: 18px;
}

@media (prefers-reduced-motion: no-preference) {
  .word-dash-hero,
  .word-dash-shell,
  .word-dash-content article {
    animation: wordDashRise 420ms ease both;
  }

  @keyframes wordDashRise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 980px) {
  .word-dash-hero {
    grid-template-columns: 1fr;
  }

  .word-dash-hud,
  .word-dash-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .word-dash-toolbar,
  .word-dash-result {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .word-dash-page {
    padding: 6px 4px 18px;
  }

  .word-dash-hero,
  .word-dash-shell {
    border-radius: 20px;
  }

  .word-dash-hero-card {
    min-height: 150px;
    grid-template-columns: 92px 1fr;
    padding: 16px;
  }

  .word-dash-mascot-preview {
    width: 86px;
    height: 104px;
    border-radius: 28px;
  }

  .word-dash-mascot-eye {
    top: 30px;
    width: 10px;
    height: 10px;
  }

  .word-dash-mascot-eye.left { left: 25px; }
  .word-dash-mascot-eye.right { right: 25px; }

  .word-dash-mascot-book {
    left: 23px;
    bottom: 20px;
    width: 40px;
    height: 30px;
  }

  .word-dash-hud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .word-dash-content {
    grid-template-columns: 1fr;
  }

  .word-dash-canvas {
    min-height: 220px;
    max-height: 50vh;
  }
}

@media (max-width: 420px) {
  .word-dash-hero {
    padding: 12px;
  }

  .word-dash-feature-row span {
    padding: 6px 8px;
    font-size: .74rem;
  }

  .word-dash-actions,
  .word-dash-mobile-controls {
    width: 100%;
  }

  .word-dash-actions .word-dash-btn,
  .word-dash-mobile-controls button {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }
}

/* DaivVerse dark-blue game pass: keep Word Dash on the same brand palette
   and make fullscreen a true immersive game canvas. */
.word-dash-page {
  --wd-card: rgba(8, 20, 48, 0.94);
  --wd-card-strong: rgba(15, 40, 82, 0.96);
  --wd-blue: #2563eb;
  --wd-sky: #38bdf8;
  --wd-cyan: #22d3ee;
  --wd-ink: #f8fafc;
  --wd-muted: #b9d9f6;
  --wd-line: rgba(56, 189, 248, 0.28);
  --wd-shadow: 0 24px 72px rgba(2, 6, 23, 0.32);
  color: #f8fafc;
  background:
    radial-gradient(circle at 14% 0%, rgba(37, 99, 235, 0.30), transparent 34%),
    radial-gradient(circle at 86% 10%, rgba(34, 211, 238, 0.18), transparent 34%),
    linear-gradient(180deg, #020617 0%, #06142f 48%, #020617 100%);
}

.word-dash-shell,
.word-dash-content article {
  border-color: var(--wd-line);
  background:
    radial-gradient(circle at 16% 0%, rgba(37, 99, 235, 0.20), transparent 34%),
    linear-gradient(145deg, rgba(3, 12, 35, 0.98), rgba(7, 18, 45, 0.98));
  color: #f8fafc;
  box-shadow: var(--wd-shadow);
}

.word-dash-toolbar-copy strong,
.word-dash-content h2 {
  color: #f8fafc;
}

.word-dash-toolbar-copy span,
.word-dash-content p,
.word-dash-content li {
  color: #b9d9f6;
}

.word-dash-btn,
.word-dash-mobile-controls button {
  border-color: rgba(125, 211, 252, 0.34);
  background: rgba(15, 40, 82, 0.78);
  color: #dff6ff;
}

.word-dash-btn.primary,
.word-dash-mobile-controls button:first-child {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
}

.word-dash-hud div {
  border-color: rgba(56, 189, 248, 0.30);
  background: linear-gradient(180deg, rgba(15, 40, 82, 0.88), rgba(8, 20, 48, 0.92));
}

.word-dash-hud span {
  color: #7dd3fc;
}

.word-dash-hud strong {
  color: #ffffff;
}

.word-dash-canvas-wrap {
  border-color: rgba(56, 189, 248, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.18), transparent 40%),
    linear-gradient(180deg, #020617, #07162f 58%, #020617);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.14), 0 20px 58px rgba(2, 6, 23, 0.28);
}

.word-dash-result {
  border-color: rgba(56, 189, 248, 0.34);
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.92), rgba(15, 23, 42, 0.96));
}

.word-dash-result span,
.word-dash-result h2,
.word-dash-result strong {
  color: #7dd3fc;
}

.word-dash-result p {
  color: #dbeafe;
}

.word-dash-exit-fullscreen {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(125, 211, 252, 0.48);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
  padding: 10px 16px;
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 44px rgba(2, 6, 23, 0.35);
}

.word-dash-shell:fullscreen,
.word-dash-shell:-webkit-full-screen,
.word-dash-shell.word-dash-pseudo-fullscreen,
.word-dash-shell.dv-game-pseudo-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)) !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.18), transparent 34%),
    linear-gradient(180deg, #020617, #07162f 52%, #020617) !important;
}

.word-dash-shell:fullscreen .word-dash-toolbar,
.word-dash-shell:-webkit-full-screen .word-dash-toolbar,
.word-dash-shell.word-dash-pseudo-fullscreen .word-dash-toolbar,
.word-dash-shell.dv-game-pseudo-fullscreen .word-dash-toolbar,
.word-dash-shell:fullscreen .word-dash-hud,
.word-dash-shell:-webkit-full-screen .word-dash-hud,
.word-dash-shell.word-dash-pseudo-fullscreen .word-dash-hud,
.word-dash-shell.dv-game-pseudo-fullscreen .word-dash-hud,
.word-dash-shell:fullscreen .word-dash-mobile-controls,
.word-dash-shell:-webkit-full-screen .word-dash-mobile-controls,
.word-dash-shell.word-dash-pseudo-fullscreen .word-dash-mobile-controls,
.word-dash-shell.dv-game-pseudo-fullscreen .word-dash-mobile-controls,
.word-dash-shell:fullscreen .word-dash-result,
.word-dash-shell:-webkit-full-screen .word-dash-result,
.word-dash-shell.word-dash-pseudo-fullscreen .word-dash-result,
.word-dash-shell.dv-game-pseudo-fullscreen .word-dash-result {
  display: none !important;
}

.word-dash-shell:fullscreen .word-dash-canvas-wrap,
.word-dash-shell:-webkit-full-screen .word-dash-canvas-wrap,
.word-dash-shell.word-dash-pseudo-fullscreen .word-dash-canvas-wrap,
.word-dash-shell.dv-game-pseudo-fullscreen .word-dash-canvas-wrap {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  border-radius: 20px !important;
  overflow: hidden !important;
}

.word-dash-shell:fullscreen .word-dash-canvas,
.word-dash-shell:-webkit-full-screen .word-dash-canvas,
.word-dash-shell.word-dash-pseudo-fullscreen .word-dash-canvas,
.word-dash-shell.dv-game-pseudo-fullscreen .word-dash-canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  object-fit: fill !important;
}

.word-dash-shell:fullscreen .word-dash-exit-fullscreen,
.word-dash-shell:-webkit-full-screen .word-dash-exit-fullscreen,
.word-dash-shell.word-dash-pseudo-fullscreen .word-dash-exit-fullscreen,
.word-dash-shell.dv-game-pseudo-fullscreen .word-dash-exit-fullscreen {
  display: inline-flex !important;
  position: fixed !important;
  top: max(16px, env(safe-area-inset-top)) !important;
  right: max(16px, env(safe-area-inset-right)) !important;
  z-index: 100000 !important;
}
