/* ============================================================
   Camp Charles TCG — bright & playful "trading-card" theme
   ============================================================ */

:root {
  /* Palette */
  --cream:  #FFF6E9;
  --paper:  #FFFDF8;
  --ink:    #211436;   /* deep purple-navy near-black */
  --ink-70: #4a3a63;
  --blue:   #3D5AFE;
  --violet: #8B5CF6;
  --pink:   #FF4E9B;
  --yellow: #FFC43D;
  --mint:   #22D3AA;
  --coral:  #FF6A3D;

  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);

  --radius: 22px;
  --radius-sm: 14px;
  --border: 3px solid var(--ink);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.02; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }

/* ---------- Atmosphere / background ---------- */
.atmosphere { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: 0.55;
}
.blob--pink { width: 46vw; height: 46vw; background: var(--pink); top: -12vw; right: -10vw; }
.blob--blue { width: 40vw; height: 40vw; background: var(--blue); top: 44vh; left: -14vw; opacity: 0.4; }
.blob--mint { width: 34vw; height: 34vw; background: var(--mint); bottom: -10vw; right: 8vw; opacity: 0.4; }
.grain {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--ink) 0.5px, transparent 0.5px);
  background-size: 22px 22px;
  opacity: 0.05;
}

/* ---------- Utilities ---------- */
.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--ink); color: var(--cream); padding: 10px 18px;
  border-radius: 0 0 12px 12px; font-weight: 700; z-index: 999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(70px, 11vw, 130px) clamp(20px, 5vw, 40px); }
.kicker {
  display: inline-block; font-family: var(--font-mono); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700;
  background: var(--ink); color: var(--cream); padding: 5px 12px; border-radius: 100px;
  margin-bottom: 20px;
}
.kicker--light { background: var(--yellow); color: var(--ink); }
.section__head { margin-bottom: clamp(36px, 6vw, 60px); max-width: 720px; }
.section__title { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; }
.section__desc { margin-top: 16px; font-size: 1.15rem; color: var(--ink-70); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--cream);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg);
  padding: 13px 22px; border: var(--border); border-radius: 100px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.btn--lg { padding: 16px 28px; font-size: 1.1rem; }
.btn--pink   { --btn-bg: var(--pink);   --btn-fg: #fff; }
.btn--yellow { --btn-bg: var(--yellow); --btn-fg: var(--ink); }
.btn--dark   { --btn-bg: var(--ink);    --btn-fg: var(--cream); }
.btn--ghost  { --btn-bg: var(--paper);  --btn-fg: var(--ink); box-shadow: var(--shadow-sm); }
.btn--plain {
  background: transparent; border-color: transparent; box-shadow: none;
  color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 4px; padding: 13px 10px;
}
.btn--plain:hover { transform: none; box-shadow: none; color: var(--pink); }

/* ---------- Topbar ---------- */
.topbar {
  max-width: var(--wrap); margin: 0 auto;
  padding: 22px clamp(20px, 5vw, 40px);
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.brand__mark { font-size: 1.4rem; }
.brand__name em { color: var(--pink); font-style: normal; }
.topbar__cta { font-size: 0.95rem; padding: 10px 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero__inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(24px, 5vw, 50px) clamp(20px, 5vw, 40px) clamp(50px, 8vw, 90px);
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-70);
  background: var(--paper); border: var(--border); border-radius: 100px;
  padding: 7px 16px; box-shadow: var(--shadow-sm);
}
.eyebrow__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(34,211,170,.25); }
.hero__title {
  font-size: clamp(2.6rem, 7.5vw, 5.2rem); font-weight: 800;
  margin: 22px 0 20px; letter-spacing: -0.03em;
}
.hl { position: relative; white-space: nowrap; padding: 0 .08em; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.32em; z-index: -1;
  border-radius: 4px; transform: rotate(-1.5deg);
}
.hl--pink::after   { background: var(--pink);   opacity: .35; }
.hl--blue::after   { background: var(--blue);   opacity: .3; }
.hl--yellow::after { background: var(--yellow); opacity: .6; }
.hero__sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 40ch; color: var(--ink-70); font-weight: 600; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.tag {
  font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem;
  background: var(--paper); border: var(--border); border-radius: 100px;
  padding: 8px 15px; box-shadow: var(--shadow-sm);
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero__note { margin-top: 16px; font-size: 0.9rem; color: var(--ink-70); font-weight: 600; }

/* Floating deco cards */
.hero__cards { position: relative; height: 420px; }
.card3d {
  position: absolute; width: 190px; height: 264px; border-radius: 18px;
  border: var(--border); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.25);
  animation: bob 6s ease-in-out infinite;
}
.card3d::before {
  content: ""; position: absolute; inset: 8px; border-radius: 11px;
  border: 2px dashed rgba(255,255,255,.5);
}
.card3d__rarity { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; position: absolute; top: 16px; left: 0; right: 0; text-align: center; }
.card3d__emoji { font-size: 4rem; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); }
.card3d__label { font-family: var(--font-display); font-weight: 800; letter-spacing: .05em; font-size: 1.05rem; }
.card3d--a {
  top: 6%; left: 18%; z-index: 3; transform: rotate(-8deg);
  background: linear-gradient(150deg, #FFD54A, #FF9A3D);
  color: var(--ink); text-shadow: none; animation-delay: -1s;
}
.card3d--a::before { border-color: rgba(33,20,54,.4); }
.card3d--b {
  top: 24%; right: 6%; z-index: 2; transform: rotate(7deg);
  background: linear-gradient(150deg, #5A7BFF, #3D5AFE);
  animation-delay: -3s;
}
.card3d--c {
  bottom: -2%; left: 34%; z-index: 1; transform: rotate(-3deg);
  background: linear-gradient(150deg, #FF8A5B, #FF4E9B);
  animation-delay: -2s;
}
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -16px; }
}

/* Marquee */
.marquee {
  border-top: var(--border); border-bottom: var(--border);
  background: var(--ink); color: var(--yellow); overflow: hidden; white-space: nowrap;
}
.marquee__track { display: inline-flex; animation: scroll 26s linear infinite; }
.marquee__track span {
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
  letter-spacing: .04em; padding: 14px 0;
}
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about__lead {
  font-size: clamp(1.3rem, 3vw, 1.9rem); font-family: var(--font-display); font-weight: 600;
  line-height: 1.28; max-width: 22ch; letter-spacing: -0.01em;
}
.about__grid { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.feature-cards { display: grid; gap: 18px; }
.fcard {
  background: var(--paper); border: var(--border); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow); position: relative;
  border-left: 10px solid var(--accent);
  transition: transform .15s ease, box-shadow .15s ease;
}
.fcard:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-lg); }
.fcard__num { font-family: var(--font-mono); font-weight: 700; color: var(--accent); font-size: .85rem; }
.fcard h3 { font-size: 1.5rem; margin: 4px 0 8px; }
.fcard p { color: var(--ink-70); font-weight: 600; }

/* ---------- Games ---------- */
.games__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gamecard {
  background: var(--accent); color: var(--ink-on);
  border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.gamecard:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.gamecard__top { display: flex; align-items: center; justify-content: space-between; }
.gamecard__emoji { font-size: 2.8rem; filter: drop-shadow(0 2px 3px rgba(0,0,0,.2)); }
.gamecard__rarity { font-family: var(--font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .06em; opacity: .8; text-align: right; }
.gamecard__name { font-size: 2rem; font-weight: 800; }
.gamecard__desc { font-weight: 600; opacity: .92; flex: 1; }
.statline { list-style: none; margin: 8px 0 0; padding: 12px 0 0; display: flex; gap: 22px; border-top: 2px dashed currentColor; }
.statline li { display: flex; flex-direction: column; }
.statline span { font-family: var(--font-mono); font-size: .66rem; font-weight: 700; letter-spacing: .08em; opacity: .7; }
.statline b { font-family: var(--font-display); font-size: 1.05rem; }
.games__note {
  margin-top: 30px; text-align: center; font-family: var(--font-display); font-weight: 700;
  font-size: 1.2rem;
}

/* ---------- Scholarship (foil card) ---------- */
.scholarship { display: flex; justify-content: center; }
.foilcard {
  position: relative; max-width: 640px; width: 100%;
  border: var(--border); border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  background:
    linear-gradient(135deg, #ff9ec7, #a5b4ff 25%, #7cf5e4 50%, #ffe08a 75%, #ff9ec7);
  background-size: 300% 300%;
  animation: foilShift 9s ease infinite;
  padding: 6px;
}
@keyframes foilShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.foilcard__shine {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.85) 48%, transparent 62%);
  background-size: 250% 250%; animation: shine 5.5s ease-in-out infinite;
}
@keyframes shine { 0% { background-position: 120% 0; } 60%,100% { background-position: -60% 0; } }
.foilcard__inner {
  position: relative; background: var(--paper); border-radius: 22px;
  padding: clamp(34px, 6vw, 56px); text-align: center;
}
.foilcard__rarity { font-family: var(--font-mono); font-weight: 700; font-size: .8rem; letter-spacing: .18em; color: var(--violet); }
.foilcard__kicker { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--ink-70); margin-top: 18px; }
.foilcard__amount {
  font-size: clamp(4.5rem, 16vw, 8rem); font-weight: 800; line-height: .9; letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--pink), var(--violet), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 6px 0;
}
.foilcard__dollar { font-size: .55em; vertical-align: super; }
.foilcard__amount--word { font-size: clamp(3rem, 11vw, 5.4rem); margin: 2px 0; }
.foilcard__name { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: .01em; }
.foilcard__tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0 4px; }
.foilchip {
  font-family: var(--font-mono); font-weight: 700; font-size: .8rem; color: var(--ink);
  background: var(--cream); border: 2px solid var(--ink); border-radius: 100px; padding: 6px 14px;
}
.foilcard__desc { max-width: 46ch; margin: 18px auto 28px; color: var(--ink-70); font-weight: 600; font-size: 1.08rem; }

/* ---------- How it works / steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: var(--paper); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 24px; position: relative;
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; border: var(--border);
  background: var(--violet); color: #fff; font-family: var(--font-display);
  font-weight: 800; font-size: 1.4rem; box-shadow: var(--shadow-sm); margin-bottom: 14px;
}
.step:nth-child(1) .step__num { background: var(--pink); }
.step:nth-child(2) .step__num { background: var(--blue); }
.step:nth-child(3) .step__num { background: var(--coral); }
.step:nth-child(4) .step__num { background: var(--mint); color: var(--ink); }
.step h3 { font-size: 1.35rem; margin-bottom: 8px; }
.step p { color: var(--ink-70); font-weight: 600; }

/* ---------- Details / stat grid ---------- */
.statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat {
  background: var(--paper); border: var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); padding: 22px 24px; display: flex; flex-direction: column; gap: 6px;
}
.stat__k { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .1em; color: var(--pink); }
.stat__v { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.stat--soon { background: var(--yellow); }
.stat--soon .stat__k { color: var(--ink); }

/* ---------- Notify ---------- */
.notify__card {
  background: var(--ink); color: var(--cream); border-radius: 30px;
  border: var(--border); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 56px);
  padding: clamp(34px, 6vw, 64px); align-items: center;
}
.notify__title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin: 18px 0 16px; }
.notify__desc { color: #d9cfe6; font-weight: 600; font-size: 1.08rem; }
.notify__perks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; font-weight: 700; }
.notify__perks li { color: var(--yellow); }
.notify__form { min-width: 0; }

.form-placeholder {
  background: var(--paper); color: var(--ink); border-radius: 20px;
  padding: 34px 28px; text-align: center; border: 3px dashed var(--ink-70);
}
.form-placeholder__badge {
  display: inline-block; font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; background: var(--mint); color: var(--ink);
  padding: 6px 14px; border-radius: 100px; border: 2px solid var(--ink);
}
.form-placeholder__lead { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; margin: 20px 0 18px; }
.form-placeholder__fine { margin-top: 16px; font-size: .85rem; color: var(--ink-70); font-weight: 600; }

/* If a Google Form iframe is pasted in, make it fit nicely */
.notify__form iframe { width: 100%; min-height: 560px; border: 3px solid var(--ink); border-radius: 20px; background: var(--paper); }

/* ---------- Footer ---------- */
.footer { border-top: var(--border); background: var(--paper); margin-top: 40px; }
.footer__inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 40px); text-align: center; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; }
.footer__brand em { color: var(--pink); font-style: normal; }
.footer__tag { margin: 14px auto 20px; font-weight: 700; font-size: 1.15rem; max-width: 34ch; }
.footer__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; font-family: var(--font-mono); font-size: .9rem; font-weight: 700; }
.footer__meta a { color: var(--blue); }
.footer__legal { margin-top: 22px; font-size: .78rem; color: var(--ink-70); max-width: 60ch; margin-inline: auto; line-height: 1.5; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .card3d, .marquee__track, .foilcard, .foilcard__shine { animation: none !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__cards { height: 340px; max-width: 380px; margin: 10px auto 0; }
  .about__grid { grid-template-columns: 1fr; gap: 28px; }
  .about__lead { max-width: 34ch; }
  .games__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .statgrid { grid-template-columns: repeat(2, 1fr); }
  .notify__card { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .topbar__cta { display: none; }
  .steps { grid-template-columns: 1fr; }
  .statgrid { grid-template-columns: 1fr; }
  .hero__cards { height: 300px; }
  .card3d { width: 150px; height: 210px; }
  .card3d__emoji { font-size: 3rem; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .btn--plain { width: auto; }
}
