/* =========================================================
   NetKids — Network Engineering for Kids
   Shared stylesheet
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

:root{
  --purple:#7c5cff;
  --purple-dark:#5b3df0;
  --pink:#ff5c8a;
  --yellow:#ffc93c;
  --green:#22c98e;
  --blue:#3ec1ff;
  --sky:#eef4ff;
  --dark:#1f2246;
  --white:#ffffff;
  --grey:#8b8fb3;
  --radius:22px;
  --shadow:0 10px 30px rgba(31,34,70,.12);
  --font-title:'Baloo 2', 'Comic Sans MS', 'Segoe UI Rounded', system-ui, sans-serif;
  --font-body:'Nunito', 'Comic Sans MS', 'Segoe UI', system-ui, sans-serif;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  min-height:100vh;
  font-family:var(--font-body);
  color:var(--dark);
  background:
    radial-gradient(circle at 90% -10%, #dcebff 0%, transparent 45%),
    radial-gradient(circle at -10% 20%, #ffe3ee 0%, transparent 40%),
    var(--sky);
  overflow-x:hidden;
}
h1,h2,h3,h4{font-family:var(--font-title); margin:0 0 .4em; line-height:1.15;}
p{line-height:1.6;}
a{color:inherit;}
img,svg{display:block; max-width:100%;}
button{font-family:var(--font-title); cursor:pointer;}

.wrap{max-width:1120px; margin:0 auto; padding:0 24px;}

/* ---------- decorative blobs ---------- */
.blob{position:fixed; border-radius:50%; filter:blur(10px); opacity:.35; z-index:0; pointer-events:none;}
.blob1{width:340px;height:340px; background:var(--blue); top:-120px; left:-120px;}
.blob2{width:260px;height:260px; background:var(--pink); bottom:-100px; right:-80px;}
.blob3{width:180px;height:180px; background:var(--yellow); top:40%; right:-90px;}

/* ---------- top nav ---------- */
.topnav{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.75);
  backdrop-filter:blur(10px);
  border-bottom:3px solid #fff;
  box-shadow:0 4px 20px rgba(31,34,70,.06);
}
.topnav .wrap{display:flex; align-items:center; justify-content:space-between; padding:12px 24px; gap:16px; flex-wrap:wrap;}
.brand{display:flex; align-items:center; gap:10px; font-family:var(--font-title); font-weight:800; font-size:1.35rem; color:var(--purple-dark); text-decoration:none;}
.brand .logo-badge{
  width:40px;height:40px;border-radius:14px;
  background:linear-gradient(135deg,var(--purple),var(--blue));
  display:flex;align-items:center;justify-content:center;
  font-size:1.3rem; box-shadow:var(--shadow);
}
.nav-links{display:flex; gap:6px; align-items:center; flex-wrap:wrap;}
.nav-links a{
  padding:8px 16px; border-radius:999px; font-weight:700; text-decoration:none;
  font-size:.95rem; color:var(--dark); transition:.2s;
}
.nav-links a:hover{background:#fff; box-shadow:var(--shadow);}
.nav-links a.active{background:var(--purple); color:#fff;}

.nav-stats{display:flex; align-items:center; gap:10px;}
.xp-pill{
  display:flex; align-items:center; gap:8px;
  background:#fff; border-radius:999px; padding:6px 14px 6px 8px;
  box-shadow:var(--shadow); font-weight:800; font-size:.9rem;
}
.xp-pill .level-icon{
  width:30px;height:30px;border-radius:50%;
  background:linear-gradient(135deg,var(--yellow),var(--pink));
  display:flex;align-items:center;justify-content:center;font-size:1rem;
}
.xp-pill .xp-num{color:var(--purple-dark);}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 28px; border-radius:999px; border:none;
  font-weight:800; font-size:1.05rem; text-decoration:none;
  box-shadow:var(--shadow); transition:transform .15s ease, box-shadow .15s ease;
}
.btn:active{transform:scale(.96);}
.btn:hover{transform:translateY(-2px);}
.btn-primary{background:linear-gradient(135deg,var(--purple),var(--blue)); color:#fff;}
.btn-pink{background:linear-gradient(135deg,var(--pink),var(--yellow)); color:#fff;}
.btn-green{background:linear-gradient(135deg,var(--green),var(--blue)); color:#fff;}
.btn-outline{background:#fff; color:var(--purple-dark); border:2px solid var(--purple);}
.btn-lg{padding:18px 38px; font-size:1.2rem;}
.btn[disabled]{opacity:.5; cursor:not-allowed; transform:none;}
.btn-sm{padding:8px 18px; font-size:.9rem;}

/* ---------- hero ---------- */
.hero{position:relative; padding:70px 0 40px; z-index:1;}
.hero .wrap{display:grid; grid-template-columns:1.1fr .9fr; gap:40px; align-items:center;}
.hero h1{font-size:clamp(2.1rem,4.5vw,3.4rem); color:var(--dark);}
.hero h1 span{
  background:linear-gradient(135deg,var(--purple),var(--pink));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero p.lead{font-size:1.2rem; color:#4c5080; max-width:520px;}
.hero-cta{display:flex; gap:14px; margin-top:26px; flex-wrap:wrap;}
.hero-art{position:relative; display:flex; align-items:center; justify-content:center;}

/* ---------- section headers ---------- */
.section{padding:50px 0; position:relative; z-index:1;}
.section-head{text-align:center; max-width:640px; margin:0 auto 36px;}
.section-head h2{font-size:clamp(1.6rem,3vw,2.3rem);}
.section-head p{color:#5b5f8a; font-size:1.05rem;}
.eyebrow{
  display:inline-block; background:#fff; color:var(--purple-dark); font-weight:800;
  padding:6px 16px; border-radius:999px; font-size:.85rem; box-shadow:var(--shadow); margin-bottom:14px;
}

/* ---------- course cards ---------- */
.course-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:26px;}
@media(max-width:900px){.course-grid{grid-template-columns:1fr;} .hero .wrap{grid-template-columns:1fr;} }

.course-card{
  background:#fff; border-radius:28px; padding:26px; box-shadow:var(--shadow);
  position:relative; overflow:hidden; display:flex; flex-direction:column; gap:12px;
  border:3px solid transparent; transition:.25s;
}
.course-card:hover{transform:translateY(-6px); border-color:var(--purple);}
.course-card .icon-badge{
  width:64px;height:64px;border-radius:20px; font-size:2rem;
  display:flex;align-items:center;justify-content:center; box-shadow:var(--shadow);
}
.course-card.c1 .icon-badge{background:linear-gradient(135deg,#8ee7ff,var(--blue));}
.course-card.c2 .icon-badge{background:linear-gradient(135deg,#c9b8ff,var(--purple));}
.course-card.c3 .icon-badge{background:linear-gradient(135deg,#ffd08a,var(--pink));}
.course-card h3{font-size:1.3rem;}
.course-card .tag{
  align-self:flex-start; font-size:.75rem; font-weight:800; padding:4px 12px;
  border-radius:999px; background:var(--sky); color:var(--purple-dark);
}
.progress-track{background:#eef0ff; border-radius:999px; height:14px; overflow:hidden; box-shadow:inset 0 2px 4px rgba(0,0,0,.06);}
.progress-fill{height:100%; border-radius:999px; background:linear-gradient(90deg,var(--green),var(--blue)); transition:width .5s ease;}
.progress-label{font-size:.8rem; font-weight:700; color:var(--grey); display:flex; justify-content:space-between;}
.lock-overlay{
  position:absolute; inset:0; background:rgba(255,255,255,.82); backdrop-filter:blur(2px);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  font-weight:800; color:var(--purple-dark); text-align:center; padding:20px;
}
.lock-overlay .lock-emoji{font-size:2.2rem;}

/* ---------- badges shelf ---------- */
.badge-shelf{display:flex; gap:16px; flex-wrap:wrap; justify-content:center;}
.badge-item{
  width:110px; text-align:center; background:#fff; border-radius:20px; padding:16px 10px;
  box-shadow:var(--shadow); opacity:.35; filter:grayscale(1);
}
.badge-item.earned{opacity:1; filter:none; animation:pop .4s ease;}
.badge-item .badge-emoji{font-size:2.4rem; margin-bottom:6px;}
.badge-item .badge-name{font-size:.75rem; font-weight:800; color:var(--dark);}
@keyframes pop{0%{transform:scale(.5);}70%{transform:scale(1.12);}100%{transform:scale(1);}}

/* ---------- mascot ---------- */
.mascot-wrap{position:fixed; bottom:18px; right:18px; z-index:60; display:flex; align-items:flex-end; gap:10px;}
.mascot-bubble{
  background:#fff; border-radius:18px 18px 4px 18px; padding:12px 16px; max-width:230px;
  box-shadow:var(--shadow); font-weight:700; font-size:.88rem; color:var(--dark);
  display:none;
}
.mascot-bubble.show{display:block; animation:pop .3s ease;}
.mascot{
  width:70px;height:70px; cursor:pointer; animation:float 3s ease-in-out infinite;
}
@keyframes float{0%,100%{transform:translateY(0);}50%{transform:translateY(-10px);}}

/* ---------- footer ---------- */
footer{padding:34px 0 60px; text-align:center; color:var(--grey); font-size:.85rem; position:relative; z-index:1;}

/* ============ COURSE PAGE ============ */
.course-hero{padding:40px 0 10px; position:relative; z-index:1;}
.course-hero .banner{
  border-radius:28px; padding:36px; color:#fff; position:relative; overflow:hidden; box-shadow:var(--shadow);
}
.course-hero.c1 .banner{background:linear-gradient(135deg,var(--blue),var(--purple));}
.course-hero.c2 .banner{background:linear-gradient(135deg,var(--purple),var(--pink));}
.course-hero.c3 .banner{background:linear-gradient(135deg,var(--pink),var(--yellow));}
.course-hero .banner h1{color:#fff; font-size:clamp(1.7rem,3.5vw,2.4rem);}
.course-hero .banner p{color:rgba(255,255,255,.9); max-width:560px;}
.course-hero .banner .big-emoji{position:absolute; font-size:8rem; opacity:.18; right:-10px; top:-20px;}

.module-nav{display:flex; gap:10px; flex-wrap:wrap; margin:26px 0;}
.module-nav button{
  background:#fff; border:2px solid #e3e6ff; border-radius:999px; padding:10px 18px;
  font-weight:800; font-size:.9rem; color:var(--dark); box-shadow:var(--shadow);
}
.module-nav button.active{background:var(--purple); color:#fff; border-color:var(--purple);}
.module-nav button .step-check{margin-right:6px;}

.module-card{
  background:#fff; border-radius:28px; padding:34px; box-shadow:var(--shadow); margin-bottom:28px;
  display:none;
}
.module-card.active{display:block; animation:pop .3s ease;}
.module-card .m-eyebrow{color:var(--purple-dark); font-weight:800; font-size:.85rem; letter-spacing:.5px;}
.module-card h2{font-size:1.7rem; margin-top:4px;}
.module-body{display:grid; grid-template-columns:1.3fr .7fr; gap:30px; align-items:start;}
@media(max-width:800px){.module-body{grid-template-columns:1fr;}}
.fact-box{
  background:var(--sky); border-radius:18px; padding:16px 20px; font-weight:700; margin:16px 0;
  border-left:6px solid var(--blue);
}
.fact-box.tip{border-left-color:var(--yellow); background:#fff8e6;}
.diagram{
  background:linear-gradient(160deg,#f4f7ff,#eef1ff); border-radius:22px; padding:26px;
  display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center;
}
.diagram .emoji-row{font-size:2.6rem; display:flex; gap:14px; justify-content:center;}
.diagram .arrow{font-size:1.6rem; color:var(--purple);}
.module-actions{display:flex; justify-content:space-between; margin-top:26px; gap:12px; flex-wrap:wrap;}

/* ---------- quiz ---------- */
.quiz-box{background:#fff; border-radius:28px; padding:34px; box-shadow:var(--shadow); margin-bottom:28px; display:none;}
.quiz-box.active{display:block;}
.quiz-progress{display:flex; gap:6px; margin-bottom:20px;}
.quiz-progress span{flex:1; height:8px; border-radius:999px; background:#e9ecff;}
.quiz-progress span.done{background:var(--green);}
.quiz-progress span.current{background:var(--purple);}
.quiz-question{font-size:1.3rem; font-weight:800; margin-bottom:18px;}
.quiz-options{display:grid; gap:12px;}
.quiz-opt{
  text-align:left; padding:16px 18px; border-radius:16px; border:3px solid #e9ecff; background:#fafbff;
  font-weight:700; font-size:1rem; transition:.15s;
}
.quiz-opt:hover{border-color:var(--purple); background:#f2effe;}
.quiz-opt.correct{border-color:var(--green); background:#e6fbf3;}
.quiz-opt.wrong{border-color:var(--pink); background:#ffeef2;}
.quiz-opt[disabled]{cursor:default;}
.quiz-feedback{margin-top:16px; font-weight:800; font-size:1.05rem; display:none;}
.quiz-feedback.show{display:block; animation:pop .3s ease;}
.quiz-result{text-align:center; padding:20px 0;}
.quiz-result .score-circle{
  width:140px;height:140px;border-radius:50%; margin:0 auto 18px;
  display:flex; align-items:center; justify-content:center; flex-direction:column;
  background:conic-gradient(var(--green) calc(var(--pct)*1%), #eef0ff 0);
  box-shadow:var(--shadow);
}
.quiz-result .score-circle .inner{
  width:108px;height:108px;border-radius:50%; background:#fff; display:flex; flex-direction:column;
  align-items:center; justify-content:center; font-weight:800;
}
.quiz-result .score-circle .inner .big{font-size:1.7rem; color:var(--purple-dark);}

/* ---------- games ---------- */
.game-box{background:#fff; border-radius:28px; padding:34px; box-shadow:var(--shadow); margin-bottom:28px; display:none;}
.game-box.active{display:block;}
.game-instructions{background:var(--sky); border-radius:16px; padding:14px 18px; font-weight:700; margin-bottom:20px;}
.game-score{font-weight:800; color:var(--purple-dark); margin-bottom:14px;}

/* match game */
.match-game{display:grid; grid-template-columns:1fr 1fr; gap:30px;}
@media(max-width:700px){.match-game{grid-template-columns:1fr;}}
.match-col{display:flex; flex-direction:column; gap:12px;}
.match-item{
  padding:16px; border-radius:16px; border:3px solid #e9ecff; background:#fafbff; font-weight:700;
  display:flex; align-items:center; gap:10px; font-size:.98rem;
}
.match-item.selected{border-color:var(--purple); background:#f2effe;}
.match-item.matched{border-color:var(--green); background:#e6fbf3; opacity:.7;}
.match-item.shake{animation:shake .3s;}
@keyframes shake{0%,100%{transform:translateX(0);}25%{transform:translateX(-6px);}75%{transform:translateX(6px);}}

/* order game */
.order-list{display:flex; flex-direction:column; gap:10px; max-width:560px; margin:0 auto;}
.order-item{
  display:flex; align-items:center; gap:14px; background:#fafbff; border:3px solid #e9ecff;
  border-radius:16px; padding:14px 18px; font-weight:700;
}
.order-item .order-num{
  width:32px;height:32px;border-radius:50%; background:var(--purple); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:.9rem; flex-shrink:0;
}
.order-item.correct-pos{border-color:var(--green); background:#e6fbf3;}
.order-btns{display:flex; gap:6px; margin-left:auto;}
.order-btns button{
  width:34px;height:34px;border-radius:10px; border:2px solid #e9ecff; background:#fff; font-weight:800;
}

/* firewall game */
.firewall-stage{
  position:relative; height:340px; background:linear-gradient(180deg,#eef4ff,#f8faff);
  border-radius:20px; overflow:hidden; border:3px dashed #d7ddff; margin-bottom:16px;
}
.packet{
  position:absolute; top:-60px; left:50%; transform:translateX(-50%);
  padding:10px 16px; border-radius:14px; font-weight:800; font-size:.95rem; box-shadow:var(--shadow);
  background:#fff; white-space:nowrap;
}
.firewall-controls{display:flex; gap:16px; justify-content:center;}
.firewall-controls .btn{min-width:150px;}
.combo{font-weight:800; color:var(--pink);}

/* cable connector game */
.cable-board{
  position:relative; display:grid; grid-template-columns:1fr 1fr; gap:40px;
  background:linear-gradient(160deg,#f4f7ff,#eef1ff); border-radius:22px; padding:30px; min-height:380px;
}
@media(max-width:700px){.cable-board{grid-template-columns:1fr;}}
.cable-board svg.cable-lines{position:absolute; inset:0; width:100%; height:100%; pointer-events:none;}
.cable-col-title{font-weight:800; text-align:center; margin-bottom:10px; color:var(--purple-dark);}
.plug-list, .port-list{display:flex; flex-direction:column; gap:16px; position:relative; z-index:2;}
.plug-item{
  display:flex; align-items:center; gap:10px; background:#fff; border:3px solid #e9ecff; border-radius:16px;
  padding:12px 16px; font-weight:700; cursor:grab; user-select:none; touch-action:none; transition:box-shadow .15s, border-color .15s;
  box-shadow:var(--shadow);
}
.plug-item.dragging{opacity:.55; cursor:grabbing;}
.plug-item.connected{border-color:var(--green); background:#e6fbf3; cursor:default;}
.plug-item .plug-dot{width:16px;height:16px;border-radius:50%; background:var(--purple); flex-shrink:0;}
.port-item{
  display:flex; align-items:center; gap:10px; background:#fff; border:3px dashed #c9d2ff; border-radius:16px;
  padding:12px 16px; font-weight:700; justify-content:flex-end; text-align:right;
}
.port-item .port-socket{
  width:26px;height:26px;border-radius:8px; background:var(--sky); border:2px solid #c9d2ff;
  display:flex; align-items:center; justify-content:center; font-size:.8rem; flex-shrink:0;
}
.port-item.connected{border-style:solid; border-color:var(--green); background:#e6fbf3;}
.port-item.target-hover{border-color:var(--purple); background:#f2effe;}
.port-item.wrong-flash{animation:shake .3s; border-color:var(--pink);}
.drag-ghost{
  position:fixed; z-index:300; pointer-events:none; padding:10px 16px; border-radius:14px;
  background:#fff; border:3px solid var(--purple); font-weight:800; box-shadow:var(--shadow);
  display:flex; align-items:center; gap:8px; transform:translate(-50%,-50%);
}

/* password power-up game */
.pw-display{
  text-align:center; font-family:'Courier New', monospace; font-size:1.6rem; font-weight:800;
  background:var(--sky); border-radius:16px; padding:18px; margin:18px 0 10px; letter-spacing:2px; word-break:break-all;
}
.pw-meter{background:#eef0ff; border-radius:999px; height:16px; overflow:hidden; box-shadow:inset 0 2px 4px rgba(0,0,0,.06);}
.pw-meter-fill{height:100%; border-radius:999px; width:0%; transition:width .3s ease, background .3s ease;}
.pw-label{text-align:center; font-weight:800; margin:8px 0 20px;}
.pw-buttons{display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-bottom:10px;}
.pw-buttons button[disabled]{opacity:.4;}

/* whack-a-mole game */
.whack-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:14px; max-width:420px; margin:0 auto 20px;
}
.whack-cell{
  aspect-ratio:1; border-radius:20px; border:3px solid #e3e6ff; background:linear-gradient(160deg,#f4f7ff,#eef1ff);
  font-size:2.2rem; display:flex; align-items:center; justify-content:center; transition:transform .1s;
}
.whack-cell.pop{animation:pop .18s ease;}
.whack-cell.hit-good{background:#e6fbf3; border-color:var(--green);}
.whack-cell.hit-bad{background:#ffeef2; border-color:var(--pink); animation:shake .3s;}

/* phishing detective game */
.phish-email{
  background:#fafbff; border:3px solid #e9ecff; border-radius:20px; padding:22px 24px; margin:18px 0; line-height:1.9;
}
.phish-row{margin-bottom:10px; font-size:1rem;}
.phish-body{font-size:1.02rem;}
.hotspot{
  cursor:pointer; border-radius:6px; padding:1px 3px; transition:.15s; border-bottom:2px dotted #c9d2ff;
}
.hotspot:hover{background:#eef0ff;}
.hotspot.found{background:#e6fbf3; border-bottom-color:var(--green); color:var(--dark); font-weight:800;}
.hotspot.wrong-flash{background:#ffeef2; border-bottom-color:var(--pink); animation:shake .3s;}

/* terminal trainer game */
.terminal-window{
  background:#161a2b; color:#4dff88; font-family:'Courier New', monospace; font-size:.95rem;
  border-radius:16px; padding:18px 20px; margin:16px 0; min-height:110px; box-shadow:var(--shadow);
  white-space:pre-wrap; word-break:break-word;
}
.terminal-line{margin-bottom:4px; display:flex; gap:0; white-space:pre;}
.terminal-output{color:#9fb8ff; margin-top:2px; margin-bottom:6px;}
.terminal-cursor{animation:blink 1s step-end infinite;}
@keyframes blink{50%{opacity:0;}}

.shell-window{
  max-height:320px; overflow-y:auto; cursor:text; text-align:left;
}
.shell-window [data-log] > div{white-space:pre-wrap; word-break:break-word;}
.shell-input{
  flex:1; min-width:60px; background:transparent; border:none; outline:none;
  color:#4dff88; font-family:'Courier New', monospace; font-size:.95rem; padding:0;
}
code{
  font-family:'Courier New', monospace; background:#eef0ff; color:var(--purple-dark);
  padding:1px 6px; border-radius:6px; font-size:.92em;
}

/* router config simulator */
.router-sim{background:linear-gradient(160deg,#f4f7ff,#eef1ff); border-radius:22px; padding:24px; margin-top:16px;}
.router-tabs{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:20px;}
.router-tabs button{
  background:#fff; border:2px solid #e3e6ff; border-radius:999px; padding:8px 16px;
  font-weight:800; font-size:.85rem; color:var(--dark);
}
.router-tabs button.active{background:var(--purple); color:#fff; border-color:var(--purple);}
.router-panel{display:none;}
.router-panel.active{display:block; animation:pop .25s ease;}
.router-field{display:flex; flex-direction:column; gap:6px; margin-bottom:16px; max-width:360px;}
.router-field label{font-weight:800; font-size:.88rem; color:var(--dark);}
.router-field input[type=text], .router-field select{
  padding:10px 14px; border-radius:12px; border:2px solid #e3e6ff; font-family:var(--font-body); font-size:.95rem; background:#fff;
}
.router-field.checkbox{flex-direction:row; align-items:center; gap:10px;}
.router-field.checkbox input{width:20px; height:20px;}
.router-checklist{list-style:none; padding:0; margin:18px 0 4px; display:flex; flex-direction:column; gap:8px;}
.router-checklist li{padding:10px 14px; border-radius:12px; background:#fafbff; border:2px solid #e9ecff; font-weight:700; font-size:.88rem;}
.router-checklist li.pass{background:#e6fbf3; border-color:var(--green);}
.router-checklist li.fail{background:#ffeef2; border-color:var(--pink);}

/* language toggle */
.lang-toggle{
  display:flex; align-items:center; background:#fff; border-radius:999px; padding:4px; box-shadow:var(--shadow); gap:2px;
}
.lang-toggle button{
  border:none; background:transparent; padding:7px 14px; border-radius:999px; font-weight:800; font-size:.82rem;
  color:var(--grey); transition:.15s;
}
.lang-toggle button.active{background:var(--purple); color:#fff;}

/* dual-language content blocks: toggled by <body class="lang-en|lang-ms"> */
body.lang-en .lang-ms{display:none !important;}
body.lang-ms .lang-en{display:none !important;}

/* ---------- toast / confetti ---------- */
.xp-toast{
  position:fixed; top:90px; left:50%; transform:translate(-50%,-20px); z-index:200;
  background:var(--dark); color:#fff; padding:14px 26px; border-radius:999px; font-weight:800;
  box-shadow:var(--shadow); opacity:0; transition:.35s;
  display:flex; align-items:center; gap:8px;
}
.xp-toast.show{opacity:1; transform:translate(-50%,0);}
.confetti-piece{position:fixed; top:-20px; z-index:150; pointer-events:none; border-radius:2px;}

/* ---------- misc ---------- */
.center{text-align:center;}
.small{font-size:.85rem; color:var(--grey);}
.mt{margin-top:24px;}
.flex-between{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;}
.certificate{
  background:#fffdf6; border:10px solid var(--yellow); border-radius:24px; padding:50px; text-align:center;
  max-width:760px; margin:0 auto; box-shadow:var(--shadow); position:relative;
}
.certificate h1{font-size:2.4rem; color:var(--purple-dark);}
.certificate .cert-name{
  font-size:2.1rem; font-family:var(--font-title); color:var(--pink); margin:18px 0; border-bottom:3px dashed var(--purple);
  display:inline-block; padding-bottom:8px; min-width:320px;
}
@media print{
  .topnav, .mascot-wrap, footer, .no-print{display:none !important;}
  body{background:#fff;}
}
