:root {
  --bg-1: #e6f7ff;
  --bg-2: #f0ebff;
  --bg-3: #fff4e6;
  --ink: #1f2348;
  --ink-soft: #565a82;
  --accent: #6b5ce7;
  --shadow: 0 12px 30px rgba(40, 50, 120, 0.12);
  --shadow-hover: 0 18px 40px rgba(40, 50, 120, 0.22);
  --radius: 22px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Quicksand', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 70px 24px 40px;
  position: relative;
}

.sparkles {
  font-size: 1.8rem;
  letter-spacing: 0.6rem;
  margin-bottom: 12px;
  opacity: 0.85;
}
.sparkles span {
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}
.sparkles span:nth-child(2) { animation-delay: 0.3s; }
.sparkles span:nth-child(3) { animation-delay: 0.6s; }
.sparkles span:nth-child(4) { animation-delay: 0.9s; }
.sparkles span:nth-child(5) { animation-delay: 1.2s; }
.sparkles span:nth-child(6) { animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0 0 16px;
  background: linear-gradient(90deg, #38bdf8, #3b82f6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 14px;
  line-height: 1.6;
}

/* ---------- Hero visual: mountain + Isa ---------- */
.hero-visual {
  width: 100%;
  max-width: 620px;
  margin: 8px auto 18px;
}
.hero-visual .mountain {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(60, 40, 120, 0.10));
}
.hero-visual .mountain image {
  filter: drop-shadow(0 3px 8px rgba(60, 40, 120, 0.25));
}

.byline {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
  opacity: 0.8;
  margin: 0;
}

/* ---------- Cards ---------- */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 60px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* Small link to the sibling's site at the bottom of main */
.sibling-link {
  text-align: center;
  margin: 32px auto 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.sibling-link a {
  color: var(--accent);
  font-weight: 700;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none !important;
  box-shadow: var(--shadow);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  min-height: 240px;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.85;
  z-index: 0;
}

.card > * { position: relative; z-index: 1; }

.card:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: var(--shadow-hover);
}

.card__emoji {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 10px;
}
.card__emoji--ship {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
}
.card__emoji--ship svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px rgba(125, 249, 255, 0.55));
}

.card h2 {
  font-size: 1.45rem;
  margin: 0 0 4px;
  font-weight: 800;
}

.card__for {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
  opacity: 0.7;
}

.card__desc {
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0 0 18px;
  color: var(--ink);
  opacity: 0.85;
  flex-grow: 1;
}

.card__cta {
  align-self: flex-start;
  margin-top: auto;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
}

/* Card themes */
.card--coloring::before {
  background: linear-gradient(135deg, #ffd6f0 0%, #d6e9ff 100%);
}
.card--snake::before {
  background: linear-gradient(135deg, #d4f4dd 0%, #c8e6ff 100%);
}
.card--pi-iris::before {
  background: linear-gradient(135deg, #ffe0f0 0%, #e8d6ff 50%, #d6e9ff 100%);
}
.card--cosmic::before {
  background: linear-gradient(135deg, #c8ecff 0%, #d8d0ff 50%, #ffe6f4 100%);
}
.card--lionking::before {
  background: linear-gradient(135deg, #ffe39a 0%, #f6b73c 55%, #c8902f 100%);
}
.card--typing::before {
  /* Isa's rainbow, softened */
  background: linear-gradient(135deg, #ffd6de 0%, #fff0c2 25%, #d9f7d0 50%, #cfeaff 75%, #e6d6ff 100%);
}
.card--pokemon::before {
  /* Poke Ball, softened: red top, white band, a hint of sky */
  background: linear-gradient(135deg, #ffbcbc 0%, #fff4f4 48%, #d6e9ff 100%);
}
.card--pi-george::before {
  background: linear-gradient(135deg, #fff3c4 0%, #ffd6a8 100%);
}
.card--storm::before {
  background: linear-gradient(135deg, #1a1d3d 0%, #2d1547 50%, #0a0e2a 100%);
}
.card--word-smart::before {
  background: linear-gradient(135deg, #0e2a3d 0%, #1b3a5b 50%, #0a1a2a 100%);
}
.card--word-smart,
.card--word-smart .card__desc,
.card--word-smart .card__for {
  color: #e8ecff;
}
.card--word-smart h2 {
  background: linear-gradient(90deg, #fa5400, #ffb347);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.card--word-smart .card__cta {
  background: rgba(250, 84, 0, 0.18);
  color: #fa5400;
  border: 1px solid rgba(250, 84, 0, 0.4);
}
.card--dojo::before {
  background: linear-gradient(135deg, #1b1d27 0%, #2f2413 55%, #12131a 100%);
}
.card--dojo,
.card--dojo .card__desc,
.card--dojo .card__for {
  color: #f2f3f8;
}
.card--dojo h2 {
  background: linear-gradient(90deg, #f5a623, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.card--dojo .card__cta {
  background: rgba(245, 166, 35, 0.18);
  color: #f5a623;
  border: 1px solid rgba(245, 166, 35, 0.4);
}
.card--storm,
.card--storm .card__desc,
.card--storm .card__for {
  color: #e8ecff;
}
.card--storm h2 {
  background: linear-gradient(90deg, #7df9ff, #ff5dd2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.card--storm .card__cta {
  background: rgba(125, 249, 255, 0.18);
  color: #7df9ff;
  border: 1px solid rgba(125, 249, 255, 0.4);
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 30px 24px 50px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
footer a { color: var(--accent); font-weight: 600; }
.made-by {
  font-size: 0.95rem;
  font-weight: 700;
  font-style: italic;
  margin: 0 0 6px;
  color: var(--ink-soft);
  opacity: 0.9;
}
.disclaimer {
  font-size: 0.78rem;
  opacity: 0.65;
  max-width: 640px;
  margin: 8px auto 0;
  line-height: 1.5;
}

/* ---------- Title row container (used by both pages) ---------- */
.title-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ============================================================
   GEORGE MODE — Nike-inspired: black, white, volt-orange, bold
   Applied to /gaminghub/ via <body class="mode-george">
   ============================================================ */
body.mode-george {
  background: linear-gradient(180deg, #0a0a0c 0%, #141417 60%, #1c1c20 100%);
  color: #fff;
}
body.mode-george a { color: #fa5400; }

body.mode-george .sparkles { display: none; }

body.mode-george h1 {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  font-weight: 900;
  font-family: 'Helvetica Neue', 'Arial Black', system-ui, sans-serif;
  font-style: italic;
  position: relative;
}
body.mode-george .title-row::after {
  content: '';
  display: inline-block;
  width: 38px;
  height: 14px;
  margin-left: 4px;
  background: #fa5400;
  /* A simplified swoosh-ish arc */
  clip-path: polygon(0 60%, 100% 0, 100% 30%, 12% 100%, 0 100%);
  align-self: center;
  filter: drop-shadow(0 0 12px rgba(250, 84, 0, 0.5));
}
body.mode-george .byline {
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
  font-style: normal;
}

body.mode-george .sibling-link { color: rgba(255, 255, 255, 0.55); }
body.mode-george .sibling-link a { color: #fa5400; }

/* Cards: darken on George mode for cohesion */
body.mode-george .card {
  background: #16161a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: #fff;
}
body.mode-george .card::before { opacity: 0.22; }
body.mode-george .card h2 { color: #fff; }
body.mode-george .card__desc { color: rgba(255, 255, 255, 0.78); }
body.mode-george .card__for { color: rgba(255, 255, 255, 0.55); }
body.mode-george .card__cta {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
body.mode-george .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(250, 84, 0, 0.3);
}
body.mode-george .card--storm { background: #16161a; }
body.mode-george .card--storm h2 { color: #7df9ff; }
body.mode-george .card--storm .card__cta {
  background: rgba(125, 249, 255, 0.12);
  border-color: rgba(125, 249, 255, 0.35);
  color: #7df9ff;
}

body.mode-george footer { color: rgba(255, 255, 255, 0.55); }
body.mode-george footer a { color: #fa5400; }
body.mode-george .disclaimer { opacity: 0.4; color: rgba(255, 255, 255, 0.7); }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 480px) {
  .hero { padding: 50px 18px 30px; }
  .sparkles { font-size: 1.4rem; letter-spacing: 0.4rem; }
  .card { min-height: 200px; padding: 24px 20px; }
  .card__emoji { font-size: 2.4rem; }
  body.mode-george .title-row::after { width: 30px; height: 11px; }
}
