/* ═══════════════════════════════════════════════════════════════════
   STEAM and Making MiniCon — Shared Stylesheet
   ═══════════════════════════════════════════════════════════════════ */

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

/* ─── CUSTOM PROPERTIES ──────────────────────────────────────────── */
:root {
  --teal:       #3DC5C5;
  --teal-dark:  #27AAAA;
  --teal-grid:  #35b8b8;
  --navy:       #1A3A5C;
  --yellow:     #F5B731;
  --yellow-dk:  #D99E20;
  --white:      #FFFFFF;
  --kraft:      #C4956A;
}

/* ─── BODY / BACKGROUND ──────────────────────────────────────────── */
body {
  min-height: 100vh;
  background-color: var(--teal);
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.22) 1.5px, transparent 1.5px),
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 22px 22px, 110px 110px, 110px 110px;
  font-family: 'Nunito', sans-serif;
  color: var(--navy);
  overflow-x: hidden;
  padding: 60px 24px 80px;
}

/* ─── BACKGROUND DECORATIVE RINGS ───────────────────────────────── */
.ring {
  position: fixed;
  border-radius: 50%;
  border-style: solid;
  border-color: var(--yellow);
  pointer-events: none;
  z-index: 0;
}
.r1 { width:90px;  height:90px;  border-width:13px; top:6%;    left:2%;   animation: bob1 5.2s ease-in-out infinite; }
.r2 { width:52px;  height:52px;  border-width:8px;  top:18%;   left:8%;   animation: bob2 7.0s ease-in-out infinite 1.1s; }
.r3 { width:110px; height:110px; border-width:16px; top:42%;   left:0.5%; animation: bob1 6.3s ease-in-out infinite 0.6s; opacity:.65; }
.r4 { width:64px;  height:64px;  border-width:10px; bottom:18%;left:3%;   animation: bob2 8.5s ease-in-out infinite 2s; }
.r5 { width:76px;  height:76px;  border-width:11px; top:8%;    right:3%;  animation: bob1 6.8s ease-in-out infinite 1.5s; opacity:.7; }
.r6 { width:44px;  height:44px;  border-width:7px;  bottom:30%;right:2%;  animation: bob2 5.9s ease-in-out infinite 0.8s; }

/* ─── STARBURST / CRAFT SHAPES ───────────────────────────────────── */
.star-wrap {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

/* ─── FLOATING DOODLE ICONS ──────────────────────────────────────── */
.doodle {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

/* ─── ANIMATIONS ─────────────────────────────────────────────────── */
@keyframes bob1 {
  0%,100% { transform: translateY(0)     rotate(0deg); }
  50%      { transform: translateY(-20px) rotate(7deg); }
}
@keyframes bob2 {
  0%,100% { transform: translateY(0)     rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(-5deg); }
}
@keyframes spin-cw  { to { transform: rotate(360deg);  } }
@keyframes spin-ccw { to { transform: rotate(-360deg); } }
@keyframes pencil-bob {
  0%,100% { transform: translateY(0)    rotate(-14deg); }
  50%      { transform: translateY(-9px) rotate(-9deg); }
}
@keyframes scissors {
  0%,100% { transform: rotate(-22deg); }
  50%      { transform: rotate(-8deg); }
}
@keyframes glow {
  0%,100% { opacity:.45; }
  50%      { opacity:.9;  }
}
@keyframes card-in {
  from { opacity:0; transform: translateY(36px); }
  to   { opacity:1; transform: translateY(0); }
}
@keyframes btn-pulse {
  0%,100% { box-shadow: 4px 4px 0 var(--navy), 0 6px 20px rgba(26,58,92,.2); }
  50%      { box-shadow: 4px 4px 0 var(--navy), 0 10px 28px rgba(26,58,92,.35); }
}

/* ─── PAGE WRAPPER ───────────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

/* ─── CARD WRAPPER ───────────────────────────────────────────────── */
.card-wrap {
  position: relative;
  animation: card-in .9s cubic-bezier(.34,1.56,.64,1) both;
  filter: drop-shadow(5px 5px 0 rgba(26,58,92,.14)) drop-shadow(8px 10px 18px rgba(26,58,92,.2));
}

/* Torn-paper SVGs */
.tear {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  pointer-events: none;
  display: block;
}
.tear-top    { top:    -22px; height: 26px; }
.tear-bottom { bottom: -22px; height: 26px; }

/* ─── CARD ───────────────────────────────────────────────────────── */
.card {
  position: relative;
  background: var(--white);
  padding: 62px 58px 58px;
}

/* ─── MASKING TAPE ───────────────────────────────────────────────── */
.tape {
  position: absolute;
  background: rgba(240,185,50,.72);
  z-index: 20;
  border-radius: 2px;
}
.tape::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px, transparent 4px,
    rgba(255,255,255,.18) 4px, rgba(255,255,255,.18) 8px
  );
}
.tape-tl { width:100px; height:28px; top:-18px;    left:70px;   transform: rotate(-3deg); }
.tape-tr { width: 84px; height:26px; top:-16px;    right:90px;  transform: rotate(4deg);  }
.tape-bl { width: 72px; height:24px; bottom:-14px; left:120px;  transform: rotate(2deg);  }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────── */
.eyebrow {
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 8px;
}
.title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 6px;
}
.subtitle {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--teal-dark);
  margin-bottom: 26px;
}
.divider {
  width: 56px; height: 4px;
  background: var(--yellow);
  border-radius: 2px;
  margin-bottom: 28px;
}
.section-head {
  font-family: 'Fredoka One', cursive;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-head::after {
  content: '';
  flex: 1;
  height: 2px;
  background: rgba(62,198,198,.25);
}

/* ─── NAV TABS ───────────────────────────────────────────────────── */
.nav-tabs {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 24px;
}
.nav-tab {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 5px 14px;
  border-radius: 50px;
  transition: background .15s, color .15s;
}
.nav-tab.active {
  background: var(--navy);
  color: var(--white);
}
.nav-tab:not(.active) {
  background: #e6f6f6;
  color: var(--teal-dark);
  border: 1.5px solid rgba(62,198,198,.4);
}
.nav-tab:not(.active):hover {
  background: #cfeeed;
}

/* ─── CALLOUT NOTE ───────────────────────────────────────────────── */
.note {
  background: #fffbeb;
  border-left: 4px solid var(--yellow);
  border-radius: 0 10px 10px 0;
  padding: 14px 20px;
  font-size: .9rem;
  line-height: 1.65;
  color: #4a3a10;
  margin-bottom: 32px;
}
.note a { color: var(--navy); font-weight: 700; }

/* ─── BUTTONS ────────────────────────────────────────────────────── */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 16px 30px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: .02em;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
}
.btn:hover { transform: translateY(-5px) rotate(-1.5deg); }

.btn-reg {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 4px 4px 0 var(--navy), 0 6px 20px rgba(26,58,92,.2);
  animation: btn-pulse 3s ease-in-out infinite;
}
.btn-reg:hover { box-shadow: 6px 6px 0 var(--navy), 0 12px 28px rgba(26,58,92,.3); animation: none; }

.btn-conf {
  background: var(--navy);
  color: var(--white);
  box-shadow: 4px 4px 0 rgba(26,58,92,.4), 0 6px 20px rgba(26,58,92,.18);
}
.btn-conf:hover { box-shadow: 6px 6px 0 rgba(26,58,92,.5), 0 12px 28px rgba(26,58,92,.28); }

.badge {
  display: inline-flex;
  align-items: center;
  background: rgba(26,58,92,.18);
  color: var(--navy);
  font-size: .72rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 20px;
}

/* ─── BACK LINK ──────────────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: .95rem;
  color: var(--teal-dark);
  text-decoration: none;
  letter-spacing: .02em;
  transition: color .15s;
}
.back-link:hover { color: var(--navy); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 620px) {
  body  { padding: 48px 14px 70px; }
  .card { padding: 52px 24px 44px; }
  .btn-row  { flex-direction: column; }
  .btn      { justify-content: center; }
  .r3, .r4, .r6 { display: none; }
}
