/* ==========================================================
   SusorSafe — visual system
   ========================================================== */

:root{
  --bg:#080b1c;
  --bg-2:#0b1026;
  --panel:#101632;
  --panel-2:#141b3c;
  --line:rgba(255,255,255,.09);
  --line-strong:rgba(255,255,255,.16);
  --ink:#f3f5ff;
  --muted:#a2abd2;
  --muted-2:#7d87b3;
  --lime:#c8f65a;
  --mint:#5ce1c4;
  --pink:#ff7fb6;
  --amber:#ffcb5c;
  --violet:#9d8cff;
  --danger:#ff6b7a;
  --font:"Plus Jakarta Sans","Segoe UI",system-ui,-apple-system,sans-serif;
  --display:"Fredoka","Plus Jakarta Sans",system-ui,sans-serif;
  --maxw:1180px;
  --radius:24px;
  --shadow:0 24px 60px -24px rgba(0,0,0,.7);
}

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

html{
  scroll-behavior:smooth;
  scroll-padding-top:104px;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  min-height:100vh;
  font-family:var(--font);
  font-size:16px;
  line-height:1.65;
  color:var(--ink);
  background:
    radial-gradient(900px 500px at 82% -8%, rgba(92,225,196,.10), transparent 60%),
    radial-gradient(800px 500px at 8% 4%, rgba(157,140,255,.12), transparent 62%),
    radial-gradient(700px 460px at 50% 108%, rgba(255,127,182,.06), transparent 65%),
    var(--bg);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image:radial-gradient(ellipse 90% 65% at 50% 0%, #000 10%, transparent 78%);
          mask-image:radial-gradient(ellipse 90% 65% at 50% 0%, #000 10%, transparent 78%);
}

::selection{background:var(--lime);color:#0b1026}

img,svg{display:block;max-width:100%}
button{font:inherit;color:inherit}
a{color:inherit}

:focus-visible{
  outline:2px solid var(--mint);
  outline-offset:3px;
  border-radius:6px;
}

.svg-sprite{position:absolute;width:0;height:0;overflow:hidden}
.ico{
  width:22px;height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex:none;
}

.wrap{width:min(100% - 40px, var(--maxw));margin-inline:auto}

.skip-link{
  position:fixed;top:12px;left:12px;z-index:999;
  padding:10px 16px;border-radius:10px;
  background:var(--lime);color:#0b1026;font-weight:800;
  text-decoration:none;
  transform:translateY(-160%);
  transition:transform .18s ease;
}
.skip-link:focus{transform:translateY(0)}

/* ==========================================================
   Header
   ========================================================== */

.site-header{
  position:sticky;top:0;z-index:60;
  background:rgba(8,11,28,.72);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
          backdrop-filter:blur(18px) saturate(140%);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;align-items:center;gap:18px;
  padding-block:12px;
  flex-wrap:wrap;
}
.brand{
  display:inline-flex;align-items:center;gap:11px;
  text-decoration:none;flex:none;
}
.brand-mark{
  width:42px;height:42px;
  display:grid;place-items:center;
  border-radius:14px;
  color:#0b1026;
  background:linear-gradient(145deg,var(--lime),var(--mint));
  box-shadow:0 6px 20px -6px rgba(200,246,90,.55);
  transform:rotate(-4deg);
}
.brand-mark .ico{width:24px;height:24px;stroke-width:2.2}
.brand-text{display:flex;flex-direction:column;line-height:1.05}
.brand-text strong{font-size:1.18rem;font-weight:900;letter-spacing:.06em}
.brand-text small{
  font-family:var(--display);
  font-size:.54rem;letter-spacing:.12em;color:var(--muted-2);
  margin-top:4px;
}

.main-nav{
  display:flex;gap:6px;
  margin-left:10px;
}
.main-nav a{
  padding:8px 13px;border-radius:10px;
  color:var(--muted);text-decoration:none;
  font-size:.92rem;font-weight:700;
  transition:color .18s,background .18s;
}
.main-nav a:hover{color:var(--ink);background:rgba(255,255,255,.06)}

.header-tools{
  margin-left:auto;
  display:flex;align-items:center;gap:9px;
  flex-wrap:wrap;
}

.mode-switch{
  display:inline-flex;align-items:center;gap:3px;
  padding:4px;border-radius:999px;
  background:rgba(255,255,255,.045);
  border:1px solid var(--line);
}
.mode-pill{
  border:0;background:transparent;cursor:pointer;
  padding:6px 12px;border-radius:999px;
  color:var(--muted);font-size:.85rem;font-weight:800;
  transition:background .18s,color .18s;
  white-space:nowrap;
}
.mode-pill:hover{color:var(--ink)}
.mode-pill.is-active{background:var(--lime);color:#0b1026}

.xp-chip{
  display:inline-flex;align-items:center;gap:5px;
  height:38px;padding:0 13px;
  border-radius:999px;
  border:1px solid rgba(200,246,90,.28);
  background:rgba(200,246,90,.10);
  color:var(--lime);
  font-family:var(--display);
  font-weight:600;font-size:.95rem;
  letter-spacing:.02em;
}
.xp-ico{width:15px;height:15px;fill:currentColor;stroke:none}
.xp-unit{font-size:.66rem;opacity:.7;letter-spacing:.08em}

.icon-btn{
  width:38px;height:38px;
  display:grid;place-items:center;
  border-radius:50%;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  cursor:pointer;
  transition:.18s;
}
.icon-btn:hover{color:var(--ink);background:rgba(255,255,255,.09)}
#soundBtn .ico-sound-on{display:none}
#soundBtn[aria-pressed="true"] .ico-sound-on{display:block;color:var(--lime)}
#soundBtn[aria-pressed="true"] .ico-sound-off{display:none}

/* ==========================================================
   Buttons / shared
   ========================================================== */

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  padding:13px 22px;
  border-radius:13px;
  border:1px solid transparent;
  font-weight:800;font-size:.98rem;letter-spacing:.01em;
  text-decoration:none;cursor:pointer;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease;
  white-space:nowrap;
}
.btn .ico{width:18px;height:18px;stroke-width:2}
.btn-primary{
  background:var(--lime);color:#0b1026;
  box-shadow:0 5px 0 #7f9f2f, 0 18px 36px -16px rgba(200,246,90,.55);
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 7px 0 #7f9f2f, 0 22px 40px -16px rgba(200,246,90,.6)}
.btn-primary:active{transform:translateY(3px);box-shadow:0 2px 0 #7f9f2f}
.btn-primary:disabled{
  opacity:.45;cursor:not-allowed;transform:none;
  box-shadow:0 4px 0 #55691f;
}
.btn-ghost{
  background:rgba(255,255,255,.05);
  border-color:var(--line-strong);
  color:var(--ink);
}
.btn-ghost:hover{background:rgba(255,255,255,.1);transform:translateY(-2px)}
.btn-ghost:active{transform:translateY(1px)}

.link-btn{
  background:none;border:0;padding:4px;
  color:var(--muted-2);font-size:.82rem;
  text-decoration:underline;text-underline-offset:4px;
  cursor:pointer;transition:color .18s;
}
.link-btn:hover{color:var(--ink)}

.kicker{
  margin:0 0 12px;
  font-family:var(--display);
  font-size:.78rem;font-weight:600;
  letter-spacing:.2em;text-transform:uppercase;
  color:var(--mint);
}
.section-lede{
  max-width:44ch;
  margin:0 0 4px;
  color:var(--muted);
  font-size:.98rem;
}
.section-head{
  display:flex;align-items:flex-end;justify-content:space-between;
  gap:32px;margin-bottom:38px;
}
.section-head h2{
  margin:0;
  font-size:clamp(1.9rem,3.6vw,3rem);
  line-height:1.16;
  font-weight:900;
  letter-spacing:-.02em;
}
.hl-soft{
  background:linear-gradient(100deg,var(--lime),var(--mint) 55%,#7dd3fc);
  -webkit-background-clip:text;
          background-clip:text;
  color:transparent;
}

.section{padding-block:clamp(66px,8.5vw,112px)}

.pill{
  display:inline-flex;align-items:center;
  padding:3px 10px;border-radius:999px;
  background:rgba(255,255,255,.055);
  border:1px solid var(--line);
  color:var(--muted);
  font-size:.72rem;font-weight:700;letter-spacing:.02em;
}
.pill-new{color:var(--pink);border-color:rgba(255,127,182,.3);background:rgba(255,127,182,.08)}

/* ==========================================================
   Hero
   ========================================================== */

.hero{
  position:relative;
  padding-top:clamp(48px,7vw,86px);
  overflow:hidden;
}
.hero-glow{
  position:absolute;z-index:0;
  width:720px;height:720px;
  right:-160px;top:-220px;
  background:radial-gradient(circle,rgba(92,225,196,.20),rgba(92,225,196,0) 65%);
  filter:blur(10px);
  pointer-events:none;
}
.hero-grid{
  position:relative;z-index:1;
  display:grid;grid-template-columns:1.04fr .96fr;
  gap:clamp(20px,4vw,48px);
  align-items:center;
}
.hero-copy{max-width:620px}
.eyebrow{
  display:inline-flex;align-items:center;gap:9px;
  margin:0 0 22px;
  padding:7px 14px 7px 11px;
  border-radius:999px;
  border:1px solid rgba(92,225,196,.28);
  background:rgba(92,225,196,.07);
  color:#c9fff2;
  font-size:.72rem;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;
}
.pulse-dot{
  width:8px;height:8px;border-radius:50%;
  background:var(--mint);
  box-shadow:0 0 0 0 rgba(92,225,196,.6);
  animation:pulse 2.4s infinite;
}
.hero h1{
  margin:0 0 22px;
  font-size:clamp(2.6rem,5vw,3.75rem);
  line-height:1.06;
  letter-spacing:-.045em;
  font-weight:800;
}
.hl{
  position:relative;display:inline-block;
  isolation:isolate;
  color:var(--lime);
  background-image:linear-gradient(180deg,transparent 68%,rgba(200,246,90,.2) 68%,rgba(200,246,90,.2) 94%,transparent 94%);
  text-shadow:0 0 40px rgba(200,246,90,.25);
}
.hl::after{
  content:"";
  position:absolute;left:-2%;right:-2%;bottom:.06em;height:.16em;
  background:linear-gradient(90deg,rgba(200,246,90,.75),rgba(92,225,196,.35));
  border-radius:999px;
  transform:rotate(-1.4deg);
  z-index:-1;
}
.lede{
  max-width:36em;
  margin:0 0 30px;
  color:var(--muted);
  font-size:clamp(1rem,1.4vw,1.1rem);
  line-height:1.8;
}
.hero-cta{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:26px}
.hero-notes{
  display:flex;flex-wrap:wrap;gap:8px 20px;
  margin:0;padding:0;list-style:none;
  color:var(--muted-2);font-size:.82rem;font-weight:600;
}
.hero-notes li{display:inline-flex;align-items:center;gap:6px}
.hero-notes .ico{width:15px;height:15px;color:var(--mint)}

/* Hero art ------------------------------------------------- */

.hero-art{
  position:relative;
  width:100%;max-width:540px;
  aspect-ratio:1/1;
  justify-self:end;
}
.art-glow{
  position:absolute;inset:8%;
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(200,246,90,.24), transparent 55%),
    radial-gradient(circle at 60% 70%, rgba(92,225,196,.22), transparent 60%);
  filter:blur(26px);
  animation:breathe 8s ease-in-out infinite;
}
.orbit{
  position:absolute;border-radius:50%;
  border:1px dashed rgba(255,255,255,.14);
  pointer-events:none;
}
.orbit-a{inset:7%;animation:spin 60s linear infinite}
.orbit-b{inset:0;border-style:solid;border-color:rgba(255,255,255,.05);animation:spin 90s linear infinite reverse}
.orbit-b::before,.orbit-b::after{
  content:"";position:absolute;
  width:7px;height:7px;border-radius:50%;
  background:var(--lime);
  box-shadow:0 0 14px 2px rgba(200,246,90,.8);
}
.orbit-b::before{top:13%;left:17%}
.orbit-b::after{bottom:11%;right:21%;background:var(--mint);box-shadow:0 0 14px 2px rgba(92,225,196,.8)}

.mascot{
  position:absolute;inset:6% 8% 2%;
  width:84%;height:92%;
  filter:drop-shadow(0 30px 40px rgba(0,0,0,.45));
  animation:bob 7s ease-in-out infinite;
  overflow:visible;
}
.mascot .eyes{
  transform-box:fill-box;
  transform-origin:center;
  animation:blink 6s infinite;
}
.mascot .sparkles{animation:twinkle 5s ease-in-out infinite}
.mascot .arm-left{transform-box:fill-box;transform-origin:100% 80%;animation:wave 5.5s ease-in-out infinite}

.chip{
  position:absolute;
  display:flex;align-items:center;gap:10px;
  padding:11px 14px;
  border-radius:15px;
  background:rgba(14,20,44,.86);
  border:1px solid var(--line-strong);
  -webkit-backdrop-filter:blur(14px);
          backdrop-filter:blur(14px);
  box-shadow:0 18px 40px -18px rgba(0,0,0,.9);
  animation:float 8s ease-in-out infinite;
  white-space:nowrap;
  z-index:2;
}
.chip b{display:block;font-size:.83rem;line-height:1.3}
.chip small{display:block;color:var(--muted-2);font-size:.69rem;line-height:1.4}
.chip .ico{width:20px;height:20px}
.chip-warn{top:6%;left:-3%;--chip:var(--danger)}
.chip-ok{top:12%;right:-4%;--chip:var(--mint);animation-delay:-2s}
.chip-strength{bottom:19%;left:-5%;--chip:var(--lime);animation-delay:-4s;gap:12px}
.chip-scam{bottom:5%;right:-3%;--chip:var(--amber);animation-delay:-6s;flex-direction:column;align-items:flex-start;gap:2px}
.chip-dot{
  width:9px;height:9px;border-radius:50%;
  background:var(--chip);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--chip) 18%,transparent);
}
.chip-warn b{color:#ffb3bb}
.chip-ok{color:#c9fff2}
.chip-strength b{color:var(--lime)}
.chip-scam .chip-quote{font-size:.8rem;font-weight:700;color:#ffe3a3}
.chip-quote + small{color:var(--muted-2)}
.mini-bars{display:flex;gap:3px;align-items:flex-end;height:20px}
.mini-bars i{width:4px;border-radius:2px;background:var(--lime);display:block}
.mini-bars i:nth-child(1){height:8px}
.mini-bars i:nth-child(2){height:11px}
.mini-bars i:nth-child(3){height:15px}
.mini-bars i:nth-child(4){height:19px}

.hero-stats{
  position:relative;z-index:1;
  display:grid;grid-template-columns:repeat(4,1fr);
  margin-top:clamp(40px,5vw,64px);
  border-top:1px solid var(--line);
  padding-block:22px 0;
}
.hero-stats > div{
  display:flex;flex-direction:column;gap:1px;
  padding-left:24px;
  border-left:1px solid var(--line);
}
.hero-stats > div:first-child{border-left:0;padding-left:0}
.hero-stats b{
  font-family:var(--display);
  font-size:2rem;line-height:1;font-weight:600;
  color:var(--ink);
}
.hero-stats span{font-size:.78rem;color:var(--muted-2);letter-spacing:.06em}

/* ==========================================================
   Ticker
   ========================================================== */

.ticker{
  position:relative;
  overflow:hidden;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.022);
  padding-block:12px;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
          mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
}
.ticker-track{
  display:flex;width:max-content;
  animation:marquee 48s linear infinite;
}
.ticker:hover .ticker-track{animation-play-state:paused}
.ticker-track span{
  margin-right:30px;
  font-size:.82rem;font-weight:600;letter-spacing:.05em;
  color:var(--muted-2);white-space:nowrap;
}
.ticker-track .tick-star{color:var(--lime);font-size:.7rem;align-self:center}

/* ==========================================================
   Routes
   ========================================================== */

.route-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.route-card{
  position:relative;
  padding:26px 26px 24px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb,var(--r) 12%,transparent), transparent 45%),
    linear-gradient(165deg,rgba(255,255,255,.055),rgba(255,255,255,.015));
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
  display:flex;flex-direction:column;
}
.route-card:hover{transform:translateY(-5px);border-color:color-mix(in srgb,var(--r) 40%,transparent)}
.route-card.is-active{
  border-color:color-mix(in srgb,var(--r) 70%,transparent);
  box-shadow:0 0 0 1px color-mix(in srgb,var(--r) 35%,transparent) inset,0 24px 50px -30px color-mix(in srgb,var(--r) 60%,transparent);
}
.route-card.is-active::after{
  content:"CURRENT MODE";
  position:absolute;top:-10px;right:18px;
  padding:3px 10px;border-radius:999px;
  background:var(--r);color:#0b1026;
  font-size:.66rem;font-weight:900;letter-spacing:.08em;
}
.route-emoji{
  width:52px;height:52px;display:grid;place-items:center;
  border-radius:15px;
  font-size:1.6rem;
  background:color-mix(in srgb,var(--r) 12%,transparent);
  border:1px solid color-mix(in srgb,var(--r) 28%,transparent);
  margin-bottom:18px;
}
.route-age{font-size:.73rem;font-weight:800;letter-spacing:.1em;color:var(--r);margin:0 0 8px;text-transform:uppercase}
.route-card h3{margin:0 0 10px;font-size:1.35rem;line-height:1.3;font-weight:900}
.route-desc{margin:0 0 16px;color:var(--muted);font-size:.9rem;line-height:1.7}
.route-card ul{margin:0 0 22px;padding:0;list-style:none;display:grid;gap:7px}
.route-card li{
  position:relative;padding-left:18px;
  font-size:.85rem;color:#c8cfe9;
}
.route-card li::before{
  content:"";position:absolute;left:0;top:.58em;
  width:7px;height:7px;border-radius:2px;
  background:var(--r);opacity:.8;
  transform:rotate(45deg);
}
.route-btn{
  margin-top:auto;width:100%;
  background:transparent;border:1px solid var(--line-strong);color:var(--ink);
  font-size:.88rem;padding:10px 16px;
}
.route-btn:hover{background:rgba(255,255,255,.07)}
.route-card.is-active .route-btn{
  background:var(--r);border-color:var(--r);color:#0b1026;
  cursor:default;
}
.route-card.is-active .route-btn:hover{transform:none}

/* ==========================================================
   Quests
   ========================================================== */

.quests{padding-top:clamp(40px,5vw,64px)}
.quest-progress{
  display:flex;flex-direction:column;align-items:flex-end;gap:2px;
  padding:10px 18px;border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
}
.qp-label{font-size:.68rem;letter-spacing:.14em;color:var(--muted-2);font-weight:700}
.quest-progress strong{font-family:var(--display);font-size:1.5rem;line-height:1.1;color:var(--lime)}

.mode-hint{
  display:flex;align-items:center;gap:14px;
  padding:13px 18px;
  border-radius:14px;
  border:1px dashed rgba(200,246,90,.28);
  background:rgba(200,246,90,.05);
  margin-bottom:22px;
}
.mh-badge{
  flex:none;
  padding:4px 11px;border-radius:999px;
  background:rgba(200,246,90,.14);color:var(--lime);
  font-size:.72rem;font-weight:800;letter-spacing:.04em;
}
.mode-hint p{margin:0;font-size:.86rem;color:#d5dcf3}

.quest-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.quest-card{
  position:relative;
  padding:24px 26px 22px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:
    radial-gradient(circle at 92% 6%, color-mix(in srgb,var(--q) 10%,transparent), transparent 38%),
    linear-gradient(160deg,rgba(255,255,255,.05),rgba(255,255,255,.015));
  display:flex;flex-direction:column;
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
  overflow:hidden;
}
.quest-card:hover{
  transform:translateY(-5px);
  border-color:color-mix(in srgb,var(--q) 38%,transparent);
  box-shadow:0 28px 60px -34px color-mix(in srgb,var(--q) 70%,transparent);
}
.quest-card.is-done{
  border-color:color-mix(in srgb,var(--q) 30%,transparent);
  background:
    radial-gradient(circle at 92% 6%, color-mix(in srgb,var(--q) 14%,transparent), transparent 45%),
    linear-gradient(160deg,rgba(255,255,255,.05),rgba(255,255,255,.015));
}
.quest-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.quest-no{
  font-family:var(--display);
  font-size:.85rem;font-weight:600;letter-spacing:.12em;
  color:var(--q);
  padding:3px 9px;border-radius:8px;
  background:color-mix(in srgb,var(--q) 11%,transparent);
  border:1px solid color-mix(in srgb,var(--q) 25%,transparent);
}
.quest-time{font-size:.72rem;color:var(--muted-2);font-weight:600}
.quest-icon{
  width:56px;height:56px;
  display:grid;place-items:center;
  border-radius:17px;
  color:var(--q);
  background:color-mix(in srgb,var(--q) 12%,transparent);
  border:1px solid color-mix(in srgb,var(--q) 26%,transparent);
  margin-bottom:16px;
  transform:rotate(-3deg);
}
.quest-icon .ico{width:28px;height:28px;stroke-width:1.7}
.quest-card h3{margin:0 0 8px;font-size:1.4rem;font-weight:900;letter-spacing:-.01em}
.quest-card > p{margin:0 0 16px;color:var(--muted);font-size:.9rem;line-height:1.72}
.quest-meta{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:18px}
.quest-footer{
  margin-top:auto;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.quest-btn{
  padding:10px 16px;font-size:.88rem;
  background:color-mix(in srgb,var(--q) 14%,transparent);
  border:1px solid color-mix(in srgb,var(--q) 35%,transparent);
  color:var(--q);
}
.quest-btn:hover{
  background:color-mix(in srgb,var(--q) 24%,transparent);
  transform:translateY(-2px);
}
.quest-status{
  margin:0;font-size:.78rem;font-weight:700;color:var(--amber);
  min-height:1.4em;text-align:right;
}
.quest-status .stars{letter-spacing:.1em}

/* Progress panel ------------------------------------------- */

.progress-panel{
  display:grid;grid-template-columns:auto 1fr auto;
  align-items:center;gap:clamp(22px,4vw,40px);
  margin-top:22px;
  padding:26px 30px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:
    radial-gradient(circle at 0% 50%, rgba(200,246,90,.07), transparent 40%),
    linear-gradient(120deg,rgba(255,255,255,.045),rgba(255,255,255,.015));
}
.xp-ring{
  --p:0;
  width:132px;height:132px;flex:none;
  border-radius:50%;
  display:grid;place-items:center;
  background:conic-gradient(var(--lime) calc(var(--p) * 1%), rgba(255,255,255,.07) 0);
  position:relative;
  transition:background .5s ease;
}
.xp-ring::after{
  content:"";position:absolute;inset:0;border-radius:50%;
  box-shadow:0 0 40px -8px rgba(200,246,90,.35);
  opacity:calc(var(--p) / 100);
}
.xp-ring-in{
  width:108px;height:108px;border-radius:50%;
  background:#0c1128;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  line-height:1;
  border:1px solid var(--line);
}
.xp-ring-in b{font-family:var(--display);font-size:1.9rem;font-weight:600;color:var(--lime)}
.xp-ring-in small{font-size:.68rem;color:var(--muted-2);margin-top:5px;letter-spacing:.05em}
.progress-copy .kicker{margin-bottom:6px;font-size:.68rem}
.progress-copy h3{margin:0 0 6px;font-size:1.45rem;font-weight:900}
.progress-copy > p{margin:0 0 14px;font-size:.85rem;color:var(--muted);max-width:52ch}
.badge-row{display:flex;flex-wrap:wrap;gap:10px}
.badge{
  display:flex;align-items:center;gap:9px;
  padding:8px 12px 8px 8px;border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.025);
  opacity:.42;
  filter:grayscale(1);
  transition:.35s;
}
.badge.is-earned{
  opacity:1;filter:none;
  border-color:color-mix(in srgb,var(--b) 32%,transparent);
  background:color-mix(in srgb,var(--b) 7%,transparent);
}
.badge-ico{
  width:32px;height:32px;border-radius:9px;
  display:grid;place-items:center;
  color:var(--b);
  background:color-mix(in srgb,var(--b) 13%,transparent);
  flex:none;
}
.badge-ico .ico{width:17px;height:17px}
.badge b{display:block;font-size:.78rem;line-height:1.3}
.badge small{display:block;font-size:.62rem;color:var(--muted-2);line-height:1.4}

/* ==========================================================
   Toolbox
   ========================================================== */

.tool-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.tool-card{
  border-radius:20px;
  border:1px solid var(--line);
  background:linear-gradient(165deg,rgba(255,255,255,.045),rgba(255,255,255,.012));
  transition:border-color .2s,background .2s,transform .2s;
  overflow:hidden;
}
.tool-card:hover{border-color:color-mix(in srgb,var(--t) 30%,transparent)}
.tool-card[open]{
  border-color:color-mix(in srgb,var(--t) 42%,transparent);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb,var(--t) 9%,transparent), transparent 45%),
    linear-gradient(165deg,rgba(255,255,255,.05),rgba(255,255,255,.015));
}
.tool-card summary{
  display:flex;align-items:center;gap:13px;
  padding:18px 18px;
  cursor:pointer;
  list-style:none;
  -webkit-user-select:none;user-select:none;
}
.tool-card summary::-webkit-details-marker{display:none}
.tool-ico{
  width:42px;height:42px;flex:none;
  display:grid;place-items:center;
  border-radius:12px;
  color:var(--t);
  background:color-mix(in srgb,var(--t) 12%,transparent);
  border:1px solid color-mix(in srgb,var(--t) 24%,transparent);
}
.tool-ico .ico{width:21px;height:21px}
.tool-title{display:flex;flex-direction:column;gap:2px;min-width:0}
.tool-title b{font-size:.96rem;font-weight:800}
.tool-title small{font-size:.73rem;color:var(--muted-2);line-height:1.5}
.tool-plus{
  position:relative;width:20px;height:20px;margin-left:auto;flex:none;
}
.tool-plus::before,.tool-plus::after{
  content:"";position:absolute;left:50%;top:50%;
  background:var(--muted-2);border-radius:2px;
  transition:transform .22s ease,background .22s;
}
.tool-plus::before{width:12px;height:2px;transform:translate(-50%,-50%)}
.tool-plus::after{width:2px;height:12px;transform:translate(-50%,-50%)}
.tool-card[open] .tool-plus::after{transform:translate(-50%,-50%) scaleY(0)}
.tool-card[open] .tool-plus::before{background:var(--t)}
.tool-body{
  padding:0 18px 18px 73px;
  font-size:.84rem;color:var(--muted);
}
.tool-body p{margin:0 0 10px}
.tool-body p:last-child{margin-bottom:0}
.tool-body b{color:var(--ink)}
.tool-tip{
  padding:10px 12px;border-radius:10px;
  background:rgba(255,255,255,.035);
  border-left:2px solid var(--t);
  font-size:.8rem;
}

/* ==========================================================
   Parents
   ========================================================== */

.parent-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:18px}
.parent-card{
  padding:28px 30px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0%, rgba(157,140,255,.09), transparent 45%),
    linear-gradient(160deg,rgba(255,255,255,.045),rgba(255,255,255,.012));
}
.parent-card > h3{
  margin:0 0 18px;font-size:1.22rem;font-weight:900;
  display:flex;align-items:center;gap:11px;
}
.parent-card .num{
  font-family:var(--display);
  display:grid;place-items:center;
  width:38px;height:38px;flex:none;
  border-radius:12px;
  background:var(--lime);color:#0b1026;
  font-size:1.2rem;font-weight:600;
  transform:rotate(-4deg);
}
.steps{margin:0;padding:0;list-style:none;counter-reset:step;display:grid;gap:13px}
.steps li{
  counter-increment:step;
  position:relative;padding-left:34px;
  font-size:.9rem;color:var(--muted);line-height:1.7;
}
.steps li::before{
  content:counter(step);
  position:absolute;left:0;top:.1em;
  width:23px;height:23px;border-radius:50%;
  display:grid;place-items:center;
  border:1px solid rgba(200,246,90,.35);
  color:var(--lime);
  font-family:var(--display);font-size:.75rem;font-weight:600;
}
.steps li b{color:var(--ink);font-weight:800}
.parent-note{
  margin:18px 0 0;padding-top:14px;
  border-top:1px dashed var(--line-strong);
  font-size:.8rem;color:var(--muted-2);
}
.say-card{
  background:
    radial-gradient(circle at 0% 100%, rgba(255,127,182,.08), transparent 45%),
    linear-gradient(160deg,rgba(255,255,255,.045),rgba(255,255,255,.012));
}
.say-row{display:flex;gap:12px;padding:12px 0;border-bottom:1px dashed var(--line)}
.say-row:last-of-type{border-bottom:0}
.say-tag{
  flex:none;align-self:flex-start;
  padding:2px 9px;border-radius:6px;
  font-size:.68rem;font-weight:800;letter-spacing:.06em;
}
.say-row.dont .say-tag{background:rgba(255,107,122,.14);color:#ff9aa5}
.say-row.do .say-tag{background:rgba(92,225,196,.14);color:var(--mint)}
.say-row p{margin:0 0 5px;font-size:.85rem;color:var(--muted);line-height:1.65}
.say-row p:last-child{margin-bottom:0}
.say-row.dont p{color:#b4bbd6;text-decoration:line-through;text-decoration-color:rgba(255,107,122,.35)}
.say-row.do p{color:#dbe2f6}
.say-card blockquote{
  margin:18px 0 0;padding:14px 16px;
  border-radius:12px;
  background:rgba(255,203,92,.07);
  border:1px solid rgba(255,203,92,.18);
  font-size:.85rem;color:#ffe3a3;line-height:1.7;
}

.teacher-strip{
  margin-top:18px;
  display:grid;grid-template-columns:.9fr 1.1fr;
  gap:26px;align-items:center;
  padding:26px 30px;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:linear-gradient(100deg,rgba(92,225,196,.07),rgba(255,255,255,.015) 55%);
}
.teacher-strip .kicker{margin-bottom:5px}
.teacher-strip h3{margin:0;font-size:1.12rem;font-weight:900}
.teacher-strip ul{margin:0;padding-left:18px;display:grid;gap:6px}
.teacher-strip li{font-size:.84rem;color:var(--muted);line-height:1.65}
.teacher-strip li b{color:var(--ink)}

/* ==========================================================
   Certificate
   ========================================================== */

.cert-section{padding-bottom:clamp(70px,9vw,120px)}
.cert-stage{position:relative;max-width:900px;margin-inline:auto}
.cert-card{
  position:relative;
  padding:clamp(26px,4vw,42px);
  border-radius:22px;
  color:#22233a;
  background:
    radial-gradient(circle at 12% 18%, rgba(160,140,80,.13) 0 2px, transparent 2px),
    radial-gradient(circle at 78% 66%, rgba(160,140,80,.1) 0 1.5px, transparent 1.5px),
    linear-gradient(135deg,#fbf8ec,#f1ebd7 60%,#f8f3e3);
  background-size:72px 72px, 96px 96px, auto;
  border:1px solid #d8cfb2;
  box-shadow:0 40px 90px -40px rgba(0,0,0,.9), inset 0 0 0 8px #f7f2e2, inset 0 0 0 9px #d8cfb2;
  overflow:hidden;
}
.cert-card::before{
  content:"";position:absolute;inset:18px;
  border:1px solid rgba(34,35,58,.16);
  border-radius:12px;
  pointer-events:none;
}
.cert-top{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.66rem;letter-spacing:.14em;font-weight:800;color:#6f6a55}
.cert-brand{display:inline-flex;align-items:center;gap:7px}
.cert-brand .ico{width:16px;height:16px;stroke-width:2}
.cert-no{font-family:var(--display);letter-spacing:.1em}
.cert-kicker{
  margin:clamp(20px,3vw,34px) 0 2px;
  font-family:var(--display);
  font-size:.64rem;letter-spacing:.28em;
  color:#9a7b4f;
}
.cert-card h3{
  margin:0 0 clamp(14px,2.4vw,24px);
  font-size:clamp(1.8rem,3.6vw,2.6rem);
  font-weight:900;letter-spacing:.18em;
  color:#1c1d31;
}
.cert-lead{margin:0 0 4px;font-size:.78rem;color:#6f6a55;letter-spacing:.1em}
.cert-name{
  margin:0 0 6px;
  font-size:clamp(1.6rem,4vw,2.8rem);
  font-weight:900;letter-spacing:.05em;
  line-height:1.25;
  color:#141527;
  border-bottom:1px solid rgba(34,35,58,.2);
  padding-bottom:10px;
  display:inline-block;min-width:min(100%,320px);
}
.cert-text{
  max-width:56ch;
  margin:14px 0 clamp(22px,3.5vw,34px);
  font-size:clamp(.78rem,1.1vw,.9rem);
  line-height:1.9;color:#4b4a55;
}
.cert-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.cert-seal{
  width:86px;height:86px;border-radius:50%;
  border:2px solid #b0453a;
  color:#b0453a;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  transform:rotate(-9deg);
  opacity:.85;
  font-size:.62rem;font-weight:900;letter-spacing:.22em;
}
.cert-seal .ico{width:26px;height:26px;stroke-width:1.7}
.cert-sign{text-align:right}
.cert-sign span{
  display:block;font-size:1.05rem;font-weight:800;
  font-family:"DFKai-SB","BiauKai","KaiTi",serif;
  letter-spacing:.12em;
  border-bottom:1px solid rgba(34,35,58,.25);
  padding-bottom:4px;margin-bottom:6px;
}
.cert-sign small{font-family:var(--display);font-size:.7rem;letter-spacing:.12em;color:#6f6a55;display:block;line-height:1.7}

.cert-lock{
  position:absolute;inset:0;
  border-radius:22px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;
  gap:6px;
  padding:30px;
  background:rgba(8,11,28,.62);
  -webkit-backdrop-filter:blur(7px) saturate(.7);
          backdrop-filter:blur(7px) saturate(.7);
  border:1px solid var(--line-strong);
  transition:opacity .35s ease,visibility .35s ease,transform .35s ease;
}
.cert-stage.is-unlocked .cert-lock{opacity:0;visibility:hidden;transform:scale(.98);pointer-events:none}
.lock-icon{
  width:58px;height:58px;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(255,255,255,.07);
  border:1px solid var(--line-strong);
  color:var(--lime);
  margin-bottom:4px;
}
.lock-icon .ico{width:26px;height:26px}
.cert-lock h3{margin:0;font-size:1.25rem;font-weight:900}
.cert-lock p{margin:0 0 12px;color:var(--muted);font-size:.86rem}
.cert-lock strong{color:var(--lime);font-family:var(--display)}
.cert-controls{
  display:flex;align-items:flex-end;justify-content:center;gap:14px;
  flex-wrap:wrap;margin-top:24px;
}
.name-field{display:flex;flex-direction:column;gap:6px;font-size:.72rem;font-weight:700;letter-spacing:.08em;color:var(--muted-2)}
.name-field input{
  width:min(280px,80vw);
  padding:11px 14px;
  border-radius:11px;
  border:1px solid var(--line-strong);
  background:rgba(255,255,255,.04);
  color:var(--ink);
  font:inherit;font-size:.9rem;
}
.name-field input::placeholder{color:var(--muted-2)}
.cert-controls .btn{padding:11px 20px;font-size:.88rem}

/* ==========================================================
   Footer
   ========================================================== */

.site-footer{
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.018),transparent);
  padding-top:clamp(44px,5vw,64px);
}
.footer-grid{
  display:grid;grid-template-columns:1.6fr 1fr 1fr;
  gap:40px;
  padding-bottom:38px;
}
.footer-brand .brand{margin-bottom:16px}
.footer-brand > p{margin:0 0 12px;font-size:.86rem;color:var(--muted);line-height:1.8;max-width:36ch}
.footer-fine{font-size:.72rem !important;color:var(--muted-2) !important;line-height:1.7 !important}
.footer-col h4{margin:0 0 12px;font-size:.76rem;letter-spacing:.16em;color:var(--muted-2);font-weight:800}
.footer-col a{
  display:block;
  width:fit-content;
  margin-bottom:8px;
  font-size:.85rem;color:#c7cee8;text-decoration:none;
  border-bottom:1px solid transparent;
  transition:color .16s,border-color .16s;
}
.footer-col a:hover{color:var(--lime);border-color:rgba(200,246,90,.4)}
.footer-bottom{
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  padding-block:18px 24px;
  border-top:1px solid var(--line);
  font-size:.73rem;color:var(--muted-2);
  letter-spacing:.03em;
}

/* ==========================================================
   Dialog
   ========================================================== */

body.modal-open{overflow:hidden}

.game-dialog{
  width:min(1000px, calc(100vw - 32px));
  max-width:1000px;
  max-height:min(90dvh, 920px);
  margin:auto;
  padding:0;
  border:0;
  border-radius:26px;
  background:transparent;
  color:var(--ink);
  overflow:visible;
}
.game-dialog::backdrop{
  background:rgba(4,7,18,.72);
  -webkit-backdrop-filter:blur(8px);
          backdrop-filter:blur(8px);
}
.dialog-shell{
  display:flex;flex-direction:column;
  max-height:min(90dvh, 920px);
  border-radius:26px;
  border:1px solid var(--line-strong);
  background:
    radial-gradient(circle at 90% -10%, rgba(92,225,196,.12), transparent 45%),
    linear-gradient(180deg,#141b3c,#0c1128);
  box-shadow:0 50px 120px -30px rgba(0,0,0,.9);
  overflow:hidden;
}
.dialog-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:18px;
  padding:20px 24px 17px;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.025);
  flex:none;
}
.dialog-kicker{
  margin:0 0 3px;
  font-family:var(--display);
  font-size:.66rem;letter-spacing:.2em;color:var(--mint);
  text-transform:uppercase;
}
.dialog-head h2{margin:0;font-size:1.4rem;font-weight:900;line-height:1.3}
.dialog-head-right{display:flex;align-items:center;gap:12px;flex:none}
.dialog-progress{font-size:.75rem;color:var(--muted-2);font-weight:700;letter-spacing:.05em}
.dialog-body{padding:26px;overflow-y:auto;overscroll-behavior:contain}
.dialog-body::-webkit-scrollbar{width:10px}
.dialog-body::-webkit-scrollbar-thumb{background:#2a3155;border-radius:10px;border:2px solid #0c1128}

.game-lede{margin:0 0 20px;color:var(--muted);font-size:.92rem;line-height:1.75;max-width:62ch}
.game-lede b{color:var(--ink)}
.game-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:22px;align-items:start}
.game-main{min-width:0}

.field-label{display:block;margin-bottom:8px;font-size:.76rem;font-weight:800;letter-spacing:.08em;color:var(--muted-2)}
.pw-field{display:flex;gap:8px}
.pw-field input{
  flex:1;min-width:0;
  padding:14px 16px;
  border-radius:12px;
  border:1px solid var(--line-strong);
  background:#080d20;
  color:var(--ink);
  font-family:var(--display);
  font-size:1.12rem;letter-spacing:.06em;
}
.pw-field input::placeholder{color:#586190;letter-spacing:.02em;font-family:var(--font);font-size:.9rem}
.pw-toggle{
  flex:none;padding:0 16px;
  border-radius:12px;
  border:1px solid var(--line-strong);
  background:rgba(255,255,255,.05);
  color:var(--muted);
  font-size:.8rem;font-weight:700;
  cursor:pointer;
}
.pw-toggle:hover{color:var(--ink);background:rgba(255,255,255,.09)}

.strength{margin-top:14px}
.strength .bars{display:flex;gap:5px}
.strength .bars i{
  display:block;height:8px;flex:1;border-radius:4px;
  background:#222a4d;
  transition:background .25s ease,box-shadow .25s ease;
}
.strength[data-level="1"]{--sc:#ff6b7a}
.strength[data-level="2"]{--sc:#ffcb5c}
.strength[data-level="3"]{--sc:#5ce1c4}
.strength[data-level="4"]{--sc:#c8f65a}
.strength .bars i.is-on{background:var(--sc);box-shadow:0 0 12px -2px var(--sc)}
.strength-meta{
  display:flex;align-items:center;justify-content:space-between;gap:4px 12px;
  margin-top:9px;font-size:.78rem;flex-wrap:wrap;
}
.strength-label{font-weight:800;color:var(--sc)}
.strength-time{color:var(--muted-2);text-align:right}
.strength-time b{color:#dbe2f6;font-weight:700}

.checklist{
  display:grid;grid-template-columns:1fr 1fr;gap:8px 14px;
  margin:18px 0;
  padding:0;list-style:none;
}
.checklist li{
  position:relative;padding-left:25px;
  font-size:.79rem;color:var(--muted-2);line-height:1.5;
  transition:color .2s;
}
.checklist li::before{
  content:"";
  position:absolute;left:0;top:.15em;
  width:15px;height:15px;border-radius:50%;
  border:1.5px solid #3a4370;
  transition:.2s;
}
.checklist li.ok{color:#d6fbe9}
.checklist li.ok::before{
  background:var(--mint);border-color:var(--mint);
  box-shadow:0 0 12px -2px rgba(92,225,196,.7);
}
.checklist li.ok::after{
  content:"";position:absolute;
  left:4.5px;top:.42em;
  width:5px;height:8px;
  border-right:2px solid #06251e;
  border-bottom:2px solid #06251e;
  transform:rotate(40deg);
}

.game-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.game-actions .btn{font-size:.88rem;padding:11px 18px}
.privacy-note{margin:14px 0 0;font-size:.7rem;color:var(--muted-2);display:flex;align-items:center;gap:6px}
.privacy-note .ico{width:13px;height:13px}

.tip-card{
  padding:18px 18px;
  border-radius:16px;
  border:1px solid rgba(200,246,90,.22);
  background:rgba(200,246,90,.055);
}
.tip-card h4{
  margin:0 0 8px;font-size:.82rem;font-weight:900;color:var(--lime);
  display:flex;align-items:center;gap:7px;letter-spacing:.03em;
}
.tip-card h4 .ico{width:15px;height:15px}
.tip-card p{margin:0 0 9px;font-size:.79rem;color:#cbd3ea;line-height:1.7}
.tip-card p:last-child{margin:0}
.tip-card ul{margin:0;padding-left:16px;font-size:.79rem;color:#cbd3ea;line-height:1.7}
.tip-card .tip-quote{
  margin-top:12px;padding-top:10px;
  border-top:1px dashed rgba(200,246,90,.2);
  font-size:.75rem;color:var(--muted);
}

/* Phishing ------------------------------------------------- */

.quiz-progress{display:flex;gap:5px;margin-bottom:16px}
.quiz-progress i{
  height:4px;flex:1;border-radius:4px;background:#242c52;
  transition:background .25s;
}
.quiz-progress i.done{background:var(--mint)}
.quiz-progress i.now{background:var(--lime)}

.msg{
  border-radius:18px;
  border:1px solid var(--line-strong);
  background:#080d20;
  overflow:hidden;
}
.msg-head{
  padding:14px 18px;
  background:rgba(255,255,255,.035);
  border-bottom:1px solid var(--line);
  display:grid;gap:5px;
}
.msg-row{display:flex;gap:10px;align-items:baseline;font-size:.78rem;line-height:1.5}
.msg-row .k{flex:none;width:52px;color:var(--muted-2);font-weight:700;letter-spacing:.05em}
.msg-row .v{color:#dbe2f6;word-break:break-word;min-width:0}
.msg-channel{
  display:inline-flex;align-items:center;gap:5px;
  padding:1px 8px;border-radius:6px;
  font-size:.66rem;font-weight:800;
  background:rgba(92,225,196,.12);color:var(--mint);
}
.msg-body{padding:20px 18px;display:grid;gap:10px}
.msg-line{
  margin:0;font-size:.9rem;line-height:1.72;color:#d5dcf3;
  padding:3px 0;
  border-radius:0 6px 6px 0;
  transition:background .25s;
}
.msg-line .clue-num{
  display:none;
  font-family:var(--display);
  font-size:.65rem;font-weight:600;
  width:17px;height:17px;border-radius:50%;
  background:var(--amber);color:#241a00;
  place-items:center;
  margin-right:7px;
  vertical-align:1px;
}
.msg.is-revealed .msg-line.clue{
  background:rgba(255,203,92,.10);
  box-shadow:inset 2px 0 0 var(--amber);
  padding:7px 10px;
}
.msg.is-revealed .msg-line.clue .clue-num{display:inline-grid}

.verdict{
  margin-top:18px;
  padding:13px 16px;
  border-radius:13px;
  display:flex;align-items:flex-start;gap:10px;
  font-size:.84rem;line-height:1.6;
  border:1px solid transparent;
}
.verdict .v-ico{
  flex:none;width:22px;height:22px;border-radius:50%;
  display:grid;place-items:center;font-weight:900;font-size:.8rem;
}
.verdict.good{background:rgba(92,225,196,.09);border-color:rgba(92,225,196,.28);color:#c9fff2}
.verdict.good .v-ico{background:var(--mint);color:#06251e}
.verdict.bad{background:rgba(255,107,122,.09);border-color:rgba(255,107,122,.28);color:#ffd2d6}
.verdict.bad .v-ico{background:var(--danger);color:#2a0408}
.verdict b{display:block;margin-bottom:1px}

.clue-list{margin:14px 0 0;padding:0;list-style:none;display:grid;gap:7px}
.clue-list li{
  display:flex;gap:9px;align-items:flex-start;
  font-size:.78rem;color:var(--muted);line-height:1.6;
}
.clue-list .n{
  flex:none;width:18px;height:18px;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(255,203,92,.16);color:var(--amber);
  font-family:var(--display);font-size:.66rem;font-weight:600;
}
.answer-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.answer-btn{
  flex:1 1 190px;
  padding:14px 18px;
  border-radius:12px;
  border:1px solid var(--line-strong);
  background:rgba(255,255,255,.04);
  font-size:.9rem;font-weight:800;
  cursor:pointer;
  transition:.18s;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
}
.answer-btn:hover{background:rgba(255,255,255,.09);transform:translateY(-2px)}
.answer-btn[data-answer="phish"]:hover{border-color:rgba(255,107,122,.5)}
.answer-btn[data-answer="safe"]:hover{border-color:rgba(92,225,196,.5)}
.answer-btn:disabled{opacity:.4;cursor:default;transform:none}
.answer-btn .ico{width:17px;height:17px}

.quiz-result{
  text-align:center;
  padding:26px 10px 8px;
}
.quiz-result .big-stars{
  font-size:2rem;letter-spacing:.15em;color:var(--amber);
  filter:drop-shadow(0 0 20px rgba(255,203,92,.35));
}
.quiz-result h3{margin:10px 0 6px;font-size:1.5rem;font-weight:900}
.quiz-result p{margin:0 auto 20px;max-width:46ch;color:var(--muted);font-size:.88rem;line-height:1.75}
.quiz-result .game-actions{justify-content:center}
.completion-xp{
  margin:-8px auto 20px !important;
  font-size:.74rem !important;
  color:var(--lime) !important;
  letter-spacing:.06em;
  font-weight:700;
}
.scene-ending{
  padding:10px 14px;
  border-radius:10px;
  border:1px dashed rgba(92,225,196,.28);
  background:rgba(92,225,196,.06);
  color:#c9fff2 !important;
  font-size:.8rem !important;
  display:inline-block;
}

/* Privacy -------------------------------------------------- */

.privacy-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:22px;align-items:start}
.profile-card{
  border-radius:18px;
  border:1px solid var(--line-strong);
  background:#080d20;
  overflow:hidden;
}
.profile-head{
  display:flex;align-items:center;gap:12px;
  padding:16px 18px;
  background:linear-gradient(100deg,rgba(157,140,255,.14),rgba(255,255,255,.02));
  border-bottom:1px solid var(--line);
}
.profile-avatar{
  width:44px;height:44px;border-radius:50%;
  display:grid;place-items:center;
  background:linear-gradient(145deg,var(--violet),var(--pink));
  color:#0b1026;font-weight:900;font-size:1.05rem;
  flex:none;
}
.profile-head b{display:block;font-size:.9rem}
.profile-head small{display:block;font-size:.7rem;color:var(--muted-2)}
.profile-head .pill{margin-left:auto}
.privacy-list{padding:0 18px}
.privacy-row{
  display:flex;align-items:center;gap:11px;
  padding:11px 0;
  border-bottom:1px solid rgba(255,255,255,.05);
}
.privacy-row:last-child{border-bottom:0}
.p-emoji{width:26px;text-align:center;font-size:1.05rem;flex:none}
.p-copy{min-width:0;flex:1}
.p-copy b{display:block;font-size:.82rem;font-weight:700;line-height:1.4}
.p-copy small{display:block;font-size:.68rem;color:var(--muted-2);line-height:1.4}
.switch{position:relative;width:46px;height:26px;flex:none;display:inline-block}
.switch input{
  position:absolute;inset:0;width:100%;height:100%;
  margin:0;opacity:0;cursor:pointer;z-index:2;
}
.switch i{
  position:absolute;inset:0;
  background:#293157;border-radius:999px;
  transition:background .2s;
}
.switch i::after{
  content:"";position:absolute;top:3px;left:3px;
  width:20px;height:20px;border-radius:50%;
  background:#fff;transition:transform .2s,background .2s;
}
.switch input:checked + i{background:var(--lime)}
.switch input:checked + i::after{transform:translateX(20px);background:#0b1026}
.switch input:focus-visible + i{outline:2px solid var(--mint);outline-offset:3px}

.risk-card{
  padding:20px;
  border-radius:18px;
  border:1px solid var(--line-strong);
  background:linear-gradient(165deg,rgba(255,255,255,.045),rgba(255,255,255,.01));
}
.risk-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}
.risk-head span{font-size:.74rem;font-weight:800;color:var(--muted-2);letter-spacing:.08em}
.risk-head b{font-family:var(--display);font-size:1.5rem;line-height:1;color:var(--risk,#c8f65a);transition:color .3s}
.risk-meter{height:10px;border-radius:999px;background:#232a4d;overflow:hidden}
.risk-meter i{
  display:block;height:100%;width:0%;border-radius:999px;
  background:var(--risk,#c8f65a);
  transition:width .35s ease,background .35s ease;
}
.risk-label{margin:8px 0 16px;font-size:.76rem;color:var(--muted);min-height:1.4em}
.inference-title{
  margin:0 0 8px;font-size:.7rem;font-weight:800;letter-spacing:.1em;color:var(--muted-2);
}
.inference-list{margin:0;padding:0;list-style:none;display:grid;gap:7px;min-height:60px}
.inference-list li{
  display:flex;gap:8px;
  padding:8px 10px;border-radius:9px;
  background:rgba(255,107,122,.07);
  border-left:2px solid rgba(255,107,122,.55);
  font-size:.75rem;color:#e6c8cd;line-height:1.55;
}
.inference-list li.ok{
  background:rgba(92,225,196,.07);
  border-left-color:rgba(92,225,196,.5);
  color:#c9e9e1;
}
.inference-list .warn{flex:none;font-size:.72rem;opacity:.8}

/* Chat ----------------------------------------------------- */

.chat-stage{
  max-width:640px;margin-inline:auto;
  border-radius:20px;
  border:1px solid var(--line-strong);
  background:#080d20;
  overflow:hidden;
}
.chat-head{
  display:flex;align-items:center;gap:10px;
  padding:12px 16px;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.03);
}
.chat-avatar{
  width:36px;height:36px;border-radius:50%;
  display:grid;place-items:center;
  background:linear-gradient(145deg,#ff7fb6,#9d8cff);
  color:#170a13;font-weight:900;font-size:.9rem;
  flex:none;
}
.chat-head b{display:block;font-size:.84rem;line-height:1.3}
.chat-head small{display:block;font-size:.68rem;color:var(--muted-2)}
.chat-head .online{
  margin-left:auto;display:inline-flex;align-items:center;gap:5px;
  font-size:.6rem;letter-spacing:.04em;color:var(--mint);
  white-space:nowrap;
}
.chat-head .online::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--mint)}
.chat-log{
  padding:16px;
  display:flex;flex-direction:column;gap:9px;
  min-height:240px;max-height:42dvh;
  overflow-y:auto;
}
.bubble{
  max-width:82%;
  padding:9px 13px;
  border-radius:14px;
  font-size:.85rem;line-height:1.6;
  animation:pop .22s ease both;
}
.bubble.them{
  align-self:flex-start;
  background:#1a2144;
  border:1px solid var(--line);
  border-bottom-left-radius:4px;
}
.bubble.me{
  align-self:flex-end;
  background:var(--lime);color:#0b1026;
  border-bottom-right-radius:4px;
  font-weight:600;
}
.bubble.sys{
  align-self:center;
  max-width:92%;
  background:rgba(255,203,92,.08);
  border:1px dashed rgba(255,203,92,.3);
  color:#ffe3a3;
  font-size:.74rem;
  padding:7px 12px;border-radius:10px;
}
.bubble.sys b{color:var(--amber)}
.chat-choices{
  padding:12px 16px 16px;
  border-top:1px solid var(--line);
  display:grid;gap:7px;
  background:rgba(255,255,255,.02);
}
.choice-btn{
  width:100%;
  text-align:left;
  padding:11px 14px;
  border-radius:10px;
  border:1px solid var(--line-strong);
  background:rgba(255,255,255,.04);
  color:#dbe2f6;
  font-size:.82rem;line-height:1.5;
  cursor:pointer;
  transition:.16s;
  display:flex;gap:9px;align-items:flex-start;
}
.choice-btn:hover{background:rgba(255,255,255,.09);border-color:rgba(200,246,90,.4);transform:translateX(2px)}
.choice-btn .idx{
  flex:none;width:19px;height:19px;border-radius:5px;
  display:grid;place-items:center;
  background:rgba(255,255,255,.07);
  font-family:var(--display);font-size:.68rem;color:var(--muted);
  margin-top:1px;
}
.chat-next{display:flex;justify-content:flex-end;padding-top:4px}

/* ==========================================================
   Toast / confetti
   ========================================================== */

.toast{
  position:fixed;left:50%;bottom:26px;z-index:3000;
  transform:translate(-50%,18px);
  padding:11px 18px;
  border-radius:12px;
  border:1px solid rgba(200,246,90,.35);
  background:rgba(12,17,40,.96);
  color:var(--ink);
  font-size:.83rem;font-weight:700;
  box-shadow:0 20px 50px -20px rgba(0,0,0,.9);
  opacity:0;pointer-events:none;
  transition:opacity .25s ease,transform .25s ease;
  max-width:min(90vw,420px);
  text-align:center;
}
.toast.show{opacity:1;transform:translate(-50%,0)}

#confetti{
  position:fixed;inset:0;z-index:2500;
  width:100%;height:100%;
  pointer-events:none;
}

/* ==========================================================
   Animations
   ========================================================== */

@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(92,225,196,.55)}
  70%{box-shadow:0 0 0 9px rgba(92,225,196,0)}
  100%{box-shadow:0 0 0 0 rgba(92,225,196,0)}
}
@keyframes bob{
  0%,100%{transform:translateY(0) rotate(-.4deg)}
  50%{transform:translateY(-14px) rotate(.4deg)}
}
@keyframes float{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-11px)}
}
@keyframes breathe{
  0%,100%{opacity:.75;transform:scale(1)}
  50%{opacity:1;transform:scale(1.05)}
}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes marquee{to{transform:translateX(-50%)}}
@keyframes blink{
  0%,92%,100%{transform:scaleY(1)}
  94%,96%{transform:scaleY(.08)}
}
@keyframes twinkle{
  0%,100%{opacity:.55}
  50%{opacity:1}
}
@keyframes wave{
  0%,100%{transform:rotate(0deg)}
  35%{transform:rotate(-16deg)}
  55%{transform:rotate(-4deg)}
}
@keyframes pop{
  from{opacity:0;transform:translateY(6px) scale(.98)}
  to{opacity:1;transform:none}
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width:1120px){
  .main-nav{display:none}
}

@media (max-width:980px){
  .hero-grid{grid-template-columns:1fr;gap:6px}
  .hero-copy{max-width:none}
  .hero-art{max-width:500px;justify-self:center;margin-top:18px}
  .route-grid{grid-template-columns:1fr}
  .route-card{padding:24px}
  .tool-grid{grid-template-columns:repeat(2,1fr)}
  .parent-grid{grid-template-columns:1fr}
  .teacher-strip{grid-template-columns:1fr;gap:14px}
  .footer-grid{grid-template-columns:1.4fr 1fr 1fr;gap:28px}
  .section-head{flex-direction:column;align-items:flex-start;gap:14px;margin-bottom:30px}
  .section-lede{max-width:60ch}
}

@media (max-width:860px){
  .quest-grid{grid-template-columns:1fr}
  .progress-panel{grid-template-columns:auto 1fr;align-items:center}
  .progress-panel .link-btn{grid-column:1 / -1;justify-self:start}
  .game-grid{grid-template-columns:1fr;gap:18px}
  .privacy-grid{grid-template-columns:1fr}
  .tip-card{order:-1}
  .hero-stats{grid-template-columns:repeat(2,1fr);gap:16px 0}
  .hero-stats > div:nth-child(3){border-left:0;padding-left:0}
}

@media (max-width:720px){
  html{scroll-padding-top:132px}
  .wrap{width:min(100% - 32px, var(--maxw))}
  .header-inner{gap:10px;padding-block:10px}
  .header-tools{display:contents}
  .xp-chip{order:3;margin-left:auto;height:34px;padding:0 10px;font-size:.86rem}
  #soundBtn{order:4}
  .mode-switch{order:5;width:100%;justify-content:space-between;margin-top:2px}
  .mode-pill{flex:1;text-align:center;padding:7px 10px}
  .icon-btn{width:34px;height:34px}
  .brand-mark{width:36px;height:36px;border-radius:11px}
  .brand-mark .ico{width:20px;height:20px}
  .brand-text strong{font-size:1.05rem}
  .brand-text small{font-size:.52rem}

  .hero{padding-top:34px}
  .hero h1{font-size:clamp(2.05rem,8.6vw,2.7rem)}
  .eyebrow{font-size:.66rem;padding:6px 12px;letter-spacing:.1em}
  .brand-text small{display:none}
  .strength-meta{flex-direction:column;align-items:flex-start;gap:2px}
  .strength-time{text-align:left}
  .hero-notes{font-size:.75rem;gap:6px 14px}
  .hero-art{max-width:400px;margin-top:26px}
  .chip{padding:8px 10px;border-radius:12px}
  .chip b{font-size:.72rem}
  .chip small{font-size:.62rem}
  .chip-warn{left:-1%}
  .chip-ok{right:-1%}
  .chip-strength{left:-1%;bottom:17%}
  .chip-scam{right:-1%;bottom:3%}
  .chip-scam .chip-quote{font-size:.72rem}
  .hero-stats b{font-size:1.6rem}

  .section{padding-block:64px}
  .section-head h2{font-size:clamp(1.7rem,7vw,2.2rem)}
  .section-lede{font-size:.9rem}

  .mode-hint{align-items:flex-start;flex-direction:column;gap:7px}
  .quest-progress{align-self:flex-start}

  .progress-panel{grid-template-columns:1fr;gap:18px;text-align:left;padding:22px}
  .xp-ring{width:104px;height:104px}
  .xp-ring-in{width:84px;height:84px}
  .xp-ring-in b{font-size:1.5rem}
  .badge{flex:1 1 132px}
  .progress-panel .link-btn{justify-self:start}

  .tool-grid{grid-template-columns:1fr}
  .tool-body{padding-left:18px}

  .cert-card{padding:26px 20px}
  .cert-card::before{inset:12px}
  .cert-seal{width:68px;height:68px;font-size:.52rem}
  .cert-seal .ico{width:20px;height:20px}
  .cert-sign span{font-size:.9rem}
  .cert-name{min-width:0}

  .footer-grid{grid-template-columns:1fr;gap:26px}
  .footer-bottom{flex-direction:column;align-items:flex-start;gap:4px}

  .game-dialog{
    width:100%;max-width:100%;height:100dvh;max-height:100dvh;
    margin:0;border-radius:0;
  }
  .dialog-shell{height:100dvh;max-height:100dvh;border-radius:0;border:0}
  .dialog-head{padding:14px 16px 12px}
  .dialog-head h2{font-size:1.18rem}
  .dialog-body{padding:18px 16px 26px}
  .dialog-progress{display:none}
  .checklist{grid-template-columns:1fr}
  .answer-row{flex-direction:column}
  .answer-btn{flex:1 1 auto}
  .bubble{max-width:88%}
  .chat-log{max-height:38dvh}
}

@media (max-width:430px){
  .hero-art{max-width:340px}
  .chip-scam{display:none}
  .chip-strength{bottom:13%}
  .hero-cta .btn{flex:1 1 100%}
  .quest-footer{flex-direction:column;align-items:stretch}
  .quest-status{text-align:left;min-height:0}
  .quest-btn{width:100%}
  .profile-head .pill{display:none}
}

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

/* ==========================================================
   Print — certificate only
   ========================================================== */

@media print{
  @page{size:A4 landscape;margin:10mm}
  body{background:#fff !important}
  body::before{display:none}
  .site-header,.hero,.ticker,.routes,.quests,.toolbox,.parents,
  .site-footer,.cert-section .section-head,.cert-controls,.cert-lock,
  .skip-link,#toast,#confetti,.game-dialog{display:none !important}
  main{padding:0}
  .cert-section{padding:0 !important;display:block}
  .cert-section .wrap{width:100%;max-width:none}
  .cert-stage{max-width:none;margin:0}
  .cert-card{
    box-shadow:none !important;
    border:2px solid #1b1b2b;
    width:100%;
    -webkit-print-color-adjust:exact;
            print-color-adjust:exact;
  }
  .cert-card::before{border-color:rgba(27,27,43,.35)}
}
