/* ===========================================================
   HACKIN'GAMES — terminal arcade theme
   =========================================================== */
:root {
  --bg:        #05080a;
  --bg-2:      #080d10;
  --panel:     #0a1216;
  --panel-2:   #0d171c;
  --line:      #16282e;
  --line-hot:  #1f4a44;

  --grn:       #36ff9c;   /* primary neon */
  --grn-dim:   #1f9e62;
  --grn-deep:  #0c3a28;
  --cyan:      #2ee6ff;
  --amber:     #ffcf3a;
  --red:       #ff4d5e;
  --magenta:   #ff5ec7;

  --txt:       #c9ffe9;
  --txt-dim:   #6f9a8c;
  --txt-mute:  #3f5f57;

  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --display: 'Orbitron', var(--mono);

  --glow: 0 0 6px rgba(54,255,156,.55), 0 0 22px rgba(54,255,156,.18);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* beat .modal/.app display:flex */
html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 50% -10%, #0b1a18 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #04070a 100%);
  color: var(--txt);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--grn); color: #00120a; }

/* ---------- CRT / scanline / noise overlays ---------- */
.crt {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  background: radial-gradient(120% 120% at 50% 50%, transparent 55%, rgba(0,0,0,.55) 100%);
  mix-blend-mode: multiply;
}
.scanline {
  position: fixed; inset: 0; z-index: 9001; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px,
    rgba(0,0,0,.18) 3px, rgba(0,0,0,0) 4px);
  opacity: .5;
}
.noise {
  position: fixed; inset: 0; z-index: 9002; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: flick 7s steps(2) infinite;
}
@keyframes flick { 0%,97%{opacity:.035} 98%{opacity:.07} 100%{opacity:.02} }

/* ---------- Boot ---------- */
.boot {
  position: fixed; inset: 0; z-index: 8000;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  transition: opacity .5s ease;
}
.boot.done { opacity: 0; pointer-events: none; }
.boot-log {
  font-family: var(--mono); font-size: 13px; color: var(--grn);
  text-shadow: var(--glow);
  width: min(680px, 90vw); margin: 0; white-space: pre-wrap; line-height: 1.7;
}

/* ---------- Layout ---------- */
.app { min-height: 100%; display: flex; flex-direction: column; opacity: 0; animation: rise .6s ease forwards; }
@keyframes rise { from { opacity:0; transform: translateY(8px);} to {opacity:1; transform:none;} }

.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(16px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(5,8,10,.92), rgba(5,8,10,.7));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 8px; font-family: var(--display); font-weight: 900; letter-spacing: 1px; }
.brand-mark { color: var(--grn); text-shadow: var(--glow); font-size: 20px; }
.brand-name { font-size: 19px; color: var(--txt); }
.brand-name .apos { color: var(--grn); }
.brand-cursor { color: var(--grn); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.topnav { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); }
.navlink { color: var(--txt-dim); font-size: 13px; letter-spacing: .5px; padding: 6px 2px; border-bottom: 1px solid transparent; transition: .15s; }
.navlink:hover { color: var(--grn); }
.navlink.active { color: var(--grn); border-bottom-color: var(--grn); text-shadow: var(--glow); }

.handle-btn {
  background: var(--panel); border: 1px solid var(--line-hot); color: var(--grn);
  padding: 6px 12px; border-radius: 6px; font-size: 13px; cursor: pointer;
  letter-spacing: .5px; transition: .15s;
}
.handle-btn:hover { box-shadow: var(--glow); border-color: var(--grn); }
.handle-at { color: var(--grn-dim); }

.view { flex: 1; padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 40px); width: min(1120px, 100%); margin: 0 auto; }

.foot {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 40px); border-top: 1px solid var(--line);
  color: var(--txt-mute); font-size: 12px;
}
.foot-status { color: var(--grn-dim); display: flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grn); box-shadow: var(--glow); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.foot-sep { color: var(--txt-mute); }
.foot-muted { color: var(--txt-mute); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(24px, 6vw, 64px) 0 clamp(24px, 4vw, 40px); }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 2px;
  color: var(--grn-dim); border: 1px solid var(--line-hot); border-radius: 100px;
  padding: 5px 14px; text-transform: uppercase; margin-bottom: 22px;
}
.hero-tag .blip { width: 6px; height: 6px; background: var(--grn); border-radius: 50%; box-shadow: var(--glow); }
.hero h1 {
  font-family: var(--display); font-weight: 900; line-height: .98; margin: 0 0 18px;
  font-size: clamp(40px, 9vw, 96px); letter-spacing: -1px;
}
.hero h1 .glitch { color: var(--grn); text-shadow: var(--glow); position: relative; }
.hero h1 .sub { display: block; color: var(--txt); }
.hero p.lede { max-width: 560px; color: var(--txt-dim); font-size: clamp(15px, 2vw, 17px); margin: 0 0 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-stats { display: flex; gap: 26px; margin-top: 38px; flex-wrap: wrap; }
.stat .num { font-family: var(--display); font-size: 26px; color: var(--grn); text-shadow: var(--glow); }
.stat .lbl { font-size: 11px; letter-spacing: 1.5px; color: var(--txt-mute); text-transform: uppercase; }

/* ---------- Buttons ---------- */
.btn {
  --c: var(--grn);
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--grn-deep); color: var(--grn); border: 1px solid var(--c);
  padding: 11px 20px; border-radius: 7px; font-size: 14px; font-weight: 700;
  letter-spacing: .5px; transition: .15s; text-shadow: var(--glow);
}
.btn:hover { background: var(--grn); color: #00130b; text-shadow: none; box-shadow: var(--glow); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--txt-dim); border-color: var(--line-hot); text-shadow: none; }
.btn.ghost:hover { color: var(--grn); border-color: var(--grn); background: transparent; box-shadow: none; }
.btn.amber { --c: var(--amber); color: var(--amber); background: rgba(255,207,58,.08); text-shadow: 0 0 8px rgba(255,207,58,.4); }
.btn.amber:hover { background: var(--amber); color: #1a1300; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Section heads ---------- */
.sec-head { display: flex; align-items: baseline; gap: 12px; margin: 40px 0 20px; }
.sec-head h2 { font-family: var(--display); font-size: 18px; letter-spacing: 1px; margin: 0; color: var(--txt); }
.sec-head .hash { color: var(--grn); }
.sec-head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-hot), transparent); }

/* ---------- Game grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card {
  position: relative; background: linear-gradient(160deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 12px; padding: 22px; overflow: hidden;
  transition: .2s; cursor: pointer;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: .25s;
  background: radial-gradient(420px 180px at var(--mx, 50%) var(--my, 0%), rgba(54,255,156,.10), transparent 70%);
}
.card:hover { border-color: var(--line-hot); transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,.5); }
.card:hover::before { opacity: 1; }
.card-icon { font-size: 30px; line-height: 1; margin-bottom: 14px; filter: drop-shadow(0 0 8px rgba(54,255,156,.5)); }
.card-id { font-size: 11px; letter-spacing: 2px; color: var(--txt-mute); text-transform: uppercase; }
.card h3 { font-family: var(--display); font-size: 22px; margin: 4px 0 8px; color: var(--grn); letter-spacing: .5px; }
.card .tagline { color: var(--txt); font-size: 13px; margin: 0 0 10px; min-height: 1.2em; }
.card .desc { color: var(--txt-dim); font-size: 13px; margin: 0 0 18px; }
.card .card-foot { display: flex; align-items: center; justify-content: space-between; }
.chip { font-size: 11px; color: var(--txt-mute); border: 1px solid var(--line); border-radius: 100px; padding: 3px 10px; letter-spacing: 1px; }
.card .play { color: var(--grn); font-weight: 700; font-size: 13px; letter-spacing: 1px; display: inline-flex; gap: 6px; }
.card:hover .play { text-shadow: var(--glow); }

/* ---------- Panels (generic) ---------- */
.panel { background: linear-gradient(160deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px, 3vw, 28px); }

/* ---------- Game view ---------- */
.game-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.game-title { display: flex; align-items: center; gap: 12px; }
.game-title .gi { font-size: 28px; filter: drop-shadow(0 0 8px rgba(54,255,156,.5)); }
.game-title h2 { font-family: var(--display); margin: 0; font-size: 24px; color: var(--grn); letter-spacing: .5px; }
.game-title .gt-sub { color: var(--txt-mute); font-size: 12px; letter-spacing: 1px; }
.hud { display: flex; gap: 18px; align-items: center; }
.hud .hud-item { text-align: right; }
.hud .hud-num { font-family: var(--display); font-size: 20px; color: var(--grn); text-shadow: var(--glow); }
.hud .hud-num.warn { color: var(--amber); text-shadow: 0 0 8px rgba(255,207,58,.5); }
.hud .hud-num.crit { color: var(--red); text-shadow: 0 0 8px rgba(255,77,94,.5); animation: shake .3s infinite; }
.hud .hud-lbl { font-size: 10px; letter-spacing: 1.5px; color: var(--txt-mute); text-transform: uppercase; }
@keyframes shake { 25%{transform:translateX(-1px)} 75%{transform:translateX(1px)} }

.terminal {
  background: #04090b; border: 1px solid var(--line-hot); border-radius: 10px;
  padding: 18px 20px; font-size: 14px; min-height: 120px;
  box-shadow: inset 0 0 40px rgba(0,0,0,.5);
}
.terminal .ln { white-space: pre-wrap; }
.t-dim { color: var(--txt-dim); }
.t-grn { color: var(--grn); }
.t-cyan { color: var(--cyan); }
.t-amber { color: var(--amber); }
.t-red { color: var(--red); }
.t-mag { color: var(--magenta); }

.game-foot { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hint { color: var(--txt-mute); font-size: 12px; }

/* overlay result */
.result {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(4,7,9,.86); backdrop-filter: blur(3px); z-index: 5; border-radius: 12px;
  animation: rise .3s ease;
}
.result-card { text-align: center; padding: 30px; max-width: 360px; }
.result-card .big { font-family: var(--display); font-size: 34px; margin: 0 0 6px; letter-spacing: 1px; }
.result-card .big.win { color: var(--grn); text-shadow: var(--glow); }
.result-card .big.lose { color: var(--red); text-shadow: 0 0 14px rgba(255,77,94,.5); }
.result-card .score-line { font-size: 15px; color: var(--txt); margin: 8px 0 4px; }
.result-card .score-line b { color: var(--grn); font-family: var(--display); font-size: 22px; }
.result-card .sub { color: var(--txt-dim); font-size: 13px; margin-bottom: 20px; }
.result-actions { display: flex; gap: 10px; justify-content: center; }

/* ---------- BREACH ---------- */
.breach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mem-col { font-family: var(--mono); font-size: 14px; line-height: 1.9; }
.mem-line { display: flex; gap: 10px; }
.mem-addr { color: var(--txt-mute); user-select: none; }
.mem-body { letter-spacing: 1px; }
.mem-word { color: var(--grn); cursor: pointer; padding: 0 2px; border-radius: 3px; transition: .1s; }
.mem-word:hover { background: var(--grn); color: #00130b; }
.mem-word.used { color: var(--txt-mute); text-decoration: line-through; cursor: default; pointer-events: none; }
.mem-junk { color: var(--txt-mute); }
@media (max-width: 620px){ .breach-grid { grid-template-columns: 1fr; } }

/* ---------- CIPHER ---------- */
.cipher-box { text-align: center; }
.cipher-text { font-size: clamp(18px, 4vw, 28px); letter-spacing: 4px; color: var(--cyan); word-break: break-word; margin: 10px 0 4px; text-shadow: 0 0 10px rgba(46,230,255,.3); }
.cipher-plain { font-size: clamp(20px, 4.5vw, 30px); letter-spacing: 4px; color: var(--grn); word-break: break-word; margin: 18px 0; text-shadow: var(--glow); min-height: 1.3em; }
.dial { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 18px 0; }
.dial button { width: 46px; height: 46px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line-hot); color: var(--grn); font-size: 22px; cursor: pointer; transition: .15s; }
.dial button:hover { box-shadow: var(--glow); border-color: var(--grn); }
.dial .shiftnum { font-family: var(--display); font-size: 30px; color: var(--amber); min-width: 90px; }
.dial .shiftnum small { display:block; font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--txt-mute); }

/* ---------- OVERRIDE ---------- */
.byte-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 420px; margin: 8px auto; }
.byte {
  aspect-ratio: 1 / .7; border-radius: 10px; border: 1px solid var(--line-hot);
  background: var(--panel); color: var(--grn-dim); font-family: var(--display); font-size: 22px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: .12s; user-select: none;
}
.byte:hover { border-color: var(--grn); }
.byte.lit { background: var(--grn); color: #00130b; box-shadow: var(--glow); border-color: var(--grn); transform: scale(1.03); }
.byte.bad { background: var(--red); color: #190005; border-color: var(--red); box-shadow: 0 0 18px rgba(255,77,94,.6); }
.byte.locked { pointer-events: none; opacity: .8; }

/* ---------- Leaderboard ---------- */
.lb-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.lb-tab { background: var(--panel); border: 1px solid var(--line); color: var(--txt-dim); padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 13px; letter-spacing: .5px; transition: .15s; }
.lb-tab:hover { border-color: var(--line-hot); color: var(--grn); }
.lb-tab.active { border-color: var(--grn); color: var(--grn); text-shadow: var(--glow); }
.lb-table { width: 100%; border-collapse: collapse; }
.lb-table th { text-align: left; font-size: 11px; letter-spacing: 1.5px; color: var(--txt-mute); text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.lb-table td { padding: 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.lb-table tr:hover td { background: rgba(54,255,156,.03); }
.lb-rank { font-family: var(--display); color: var(--txt-dim); width: 50px; }
.lb-rank.gold { color: var(--amber); text-shadow: 0 0 8px rgba(255,207,58,.5); }
.lb-rank.silver { color: #cfe; }
.lb-rank.bronze { color: #d9904a; }
.lb-name { color: var(--grn); }
.lb-name.me { color: var(--cyan); }
.lb-name.me::after { content: " ← you"; color: var(--txt-mute); font-size: 11px; }
.lb-score { text-align: right; font-family: var(--display); color: var(--txt); }
.lb-empty { color: var(--txt-mute); text-align: center; padding: 40px; }
.badge-src { font-size: 11px; color: var(--txt-mute); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; background: rgba(2,4,5,.78); backdrop-filter: blur(4px); animation: rise .2s ease; }
.modal-card { background: var(--panel-2); border: 1px solid var(--line-hot); border-radius: 12px; padding: 28px; width: min(440px, 92vw); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.modal-title { font-family: var(--display); color: var(--grn); letter-spacing: 1px; font-size: 18px; margin-bottom: 6px; }
.modal-sub { color: var(--txt-dim); font-size: 13px; margin: 0 0 18px; }
.prompt-row { display: flex; align-items: center; gap: 10px; background: #04090b; border: 1px solid var(--line-hot); border-radius: 8px; padding: 12px 14px; }
.prompt-sigil { color: var(--grn-dim); font-size: 13px; white-space: nowrap; }
.prompt-input { flex: 1; background: transparent; border: none; outline: none; color: var(--grn); font-family: var(--mono); font-size: 15px; text-shadow: var(--glow); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 600; background: var(--panel-2); border: 1px solid var(--grn); color: var(--grn); padding: 12px 20px; border-radius: 8px; font-size: 13px; box-shadow: var(--glow); opacity: 0; transition: .25s; text-shadow: var(--glow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- misc ---------- */
.muted { color: var(--txt-mute); }
.center { text-align: center; }
@media (max-width: 560px){
  .brand-name { font-size: 16px; }
  .hud { gap: 12px; }
  .hero-stats { gap: 18px; }
}
/* ===========================================================
   v1.1 — progression, difficulty, profile, PRO, new games
   =========================================================== */

/* ---------- topbar level pill ---------- */
.navlink-pro { color: var(--amber); }
.navlink-pro:hover { color: var(--amber); }
.navlink-pro.is-pro::after { content: " ✓"; }
.level-pill { display: flex; align-items: center; gap: 9px; background: var(--panel); border: 1px solid var(--line-hot); border-radius: 100px; padding: 4px 12px 4px 4px; cursor: pointer; transition: .15s; }
.level-pill:hover { border-color: var(--grn); box-shadow: var(--glow); }
.lp-ring { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--grn) 0%, var(--line) 0% 100%); }
.lp-ring-in { width: 23px; height: 23px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-family: var(--display); font-size: 12px; color: var(--grn); text-shadow: var(--glow); }
.lp-meta { display: flex; flex-direction: column; line-height: 1.15; }
.lp-title { font-size: 12px; color: var(--txt); }
.lp-handle { font-size: 11px; color: var(--grn-dim); }
@media (max-width: 640px){ .lp-meta { display: none; } }

/* ---------- home level strip + xp bar ---------- */
.level-strip { margin-top: 34px; max-width: 460px; }
.ls-rank { font-family: var(--display); font-size: 14px; color: var(--txt); margin-bottom: 8px; letter-spacing: .5px; }
.xpbar { height: 8px; border-radius: 100px; background: var(--line); overflow: hidden; border: 1px solid var(--line-hot); }
.xpbar-fill { height: 100%; background: linear-gradient(90deg, var(--grn-dim), var(--grn)); box-shadow: var(--glow); transition: width .5s ease; }
.ls-next { font-size: 11px; margin-top: 7px; letter-spacing: .5px; }

/* ---------- skills chips ---------- */
.skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.skill { font-size: 10.5px; letter-spacing: .5px; color: var(--cyan); border: 1px solid rgba(46,230,255,.25); background: rgba(46,230,255,.05); border-radius: 100px; padding: 2px 9px; }

/* ---------- PRO strip ---------- */
.pro-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 40px; padding: 24px clamp(18px,3vw,30px); border-radius: 14px; border: 1px solid rgba(255,207,58,.28); background: linear-gradient(135deg, rgba(255,207,58,.06), rgba(10,18,22,.6)); }
.pro-strip-tag { font-size: 11px; letter-spacing: 2px; color: var(--amber); margin-bottom: 8px; }
.pro-strip h3 { margin: 0 0 6px; font-size: 18px; color: var(--txt); font-family: var(--display); letter-spacing: .3px; max-width: 620px; }
.pro-strip p { margin: 0; max-width: 560px; }

/* ---------- briefing ---------- */
.brief-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.brief-icon { font-size: 36px; filter: drop-shadow(0 0 10px rgba(54,255,156,.5)); }
.brief-head h2 { font-family: var(--display); margin: 0; font-size: 26px; color: var(--grn); letter-spacing: .5px; }
.brief-best { margin-left: auto; text-align: right; }
.brief-text { color: var(--txt-dim); font-size: 14px; max-width: 720px; line-height: 1.65; margin: 0 0 16px; }
.brief-skills { margin-bottom: 4px; }

/* ---------- difficulty cards ---------- */
.dif-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.dif-card { text-align: left; background: linear-gradient(160deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: 11px; padding: 16px 18px; cursor: pointer; transition: .18s; color: var(--txt); }
.dif-card:hover { border-color: var(--grn); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.dif-card.locked { opacity: .62; cursor: pointer; }
.dif-card.locked:hover { border-color: var(--amber); transform: none; box-shadow: none; }
.dif-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.dif-name { font-family: var(--display); font-size: 17px; color: var(--grn); letter-spacing: .5px; }
.dif-tag { font-size: 11px; color: var(--txt-mute); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.dif-blurb { font-size: 12.5px; color: var(--txt-dim); }
.lock { font-size: 10px; letter-spacing: 1px; color: var(--txt-mute); border: 1px solid var(--line-hot); border-radius: 100px; padding: 2px 8px; }
.lock.pro { color: var(--amber); border-color: rgba(255,207,58,.4); background: rgba(255,207,58,.08); }

/* ---------- result overlay XP ---------- */
.xp-gain { font-family: var(--display); color: var(--cyan); font-size: 16px; margin: 6px 0 2px; text-shadow: 0 0 10px rgba(46,230,255,.35); }
.levelup { font-family: var(--display); color: var(--amber); font-size: 14px; letter-spacing: 1px; margin: 6px 0; text-shadow: 0 0 12px rgba(255,207,58,.5); animation: pulse 1.2s infinite; }
.dif-chip { font-size: 10px; color: var(--txt-mute); border: 1px solid var(--line); border-radius: 100px; padding: 1px 7px; margin-left: 6px; letter-spacing: .5px; }

/* ---------- profile ---------- */
.profile-top { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.prof-ring { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.prof-ring-in { width: 78px; height: 78px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; line-height: 1; }
.prof-ring-in span { font-size: 10px; color: var(--txt-mute); letter-spacing: 2px; }
.prof-ring-in b { font-family: var(--display); font-size: 30px; color: var(--grn); text-shadow: var(--glow); }
.prof-meta { flex: 1; min-width: 220px; }
.prof-handle { font-size: 18px; color: var(--grn); display: flex; align-items: center; gap: 10px; }
.prof-rank { font-family: var(--display); color: var(--txt); margin: 2px 0 10px; letter-spacing: .5px; display: flex; align-items: center; gap: 8px; }
.prof-stats { display: flex; gap: 22px; }
.mini-btn { background: transparent; border: 1px solid var(--line-hot); color: var(--txt-dim); font-size: 11px; padding: 3px 9px; border-radius: 6px; cursor: pointer; transition: .15s; }
.mini-btn:hover { color: var(--grn); border-color: var(--grn); }
.pro-badge { font-size: 10px; color: var(--amber); border: 1px solid rgba(255,207,58,.4); background: rgba(255,207,58,.08); border-radius: 100px; padding: 1px 8px; letter-spacing: 1px; }

.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ach { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); transition: .15s; }
.ach.got { border-color: var(--line-hot); }
.ach.locked { opacity: .4; filter: grayscale(1); }
.ach-ico { font-size: 26px; }
.ach-name { font-size: 14px; color: var(--txt); }
.ach.got .ach-name { color: var(--grn); }
.ach-desc { font-size: 12px; color: var(--txt-mute); }

/* ---------- plans / pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 18px; }
.plan { position: relative; background: linear-gradient(160deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--grn); box-shadow: 0 0 0 1px var(--grn-deep), 0 14px 44px rgba(0,0,0,.5); }
.plan-flag { position: absolute; top: -11px; left: 22px; background: var(--grn); color: #00130b; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; font-weight: 700; }
.plan-name { font-family: var(--display); font-size: 18px; letter-spacing: 1px; color: var(--txt); }
.plan-price { font-family: var(--display); font-size: 40px; color: var(--grn); text-shadow: var(--glow); margin: 6px 0 16px; }
.plan-price small { font-family: var(--mono); font-size: 13px; color: var(--txt-mute); text-shadow: none; letter-spacing: 0; }
.plan-feat { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan-feat li { font-size: 13px; color: var(--txt-dim); padding: 6px 0; border-bottom: 1px solid var(--line); }
.plan-feat li.off { color: var(--txt-mute); }
.plan-feat li b { color: var(--grn); }
.plan .btn { width: 100%; justify-content: center; }

/* ---------- PHISH ---------- */
.phish-card { background: #04090b; border: 1px solid var(--line-hot); border-radius: 11px; padding: 22px; min-height: 130px; box-shadow: inset 0 0 40px rgba(0,0,0,.5); }
.phish-card.url { display: flex; flex-direction: column; gap: 12px; }
.pc-tag { font-size: 11px; letter-spacing: 2px; color: var(--txt-mute); text-transform: uppercase; }
.pc-url { font-size: clamp(15px, 3vw, 22px); color: var(--cyan); word-break: break-all; text-shadow: 0 0 8px rgba(46,230,255,.25); }
.pc-from { font-size: 14px; color: var(--txt); margin: 10px 0 12px; word-break: break-word; }
.pc-body { font-size: 14px; color: var(--txt-dim); line-height: 1.6; }
.phish-actions { display: flex; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.phish-actions .btn { flex: 1; justify-content: center; min-width: 140px; }
.phish-feedback { font-size: 13px; line-height: 1.55; min-height: 1.2em; padding: 0 2px; color: var(--txt-dim); }
.phish-feedback.good { color: var(--grn); }
.phish-feedback.bad { color: var(--red); }
.phish-feedback b { color: inherit; }

/* ---------- INJECT ---------- */
.inject-meta { font-size: 12px; letter-spacing: 1px; color: var(--txt-mute); text-transform: uppercase; margin-bottom: 10px; }
.inject-query { background: #04090b; border: 1px solid var(--line-hot); border-radius: 9px; padding: 16px 18px; font-size: 14px; color: var(--txt-dim); line-height: 1.7; word-break: break-word; box-shadow: inset 0 0 30px rgba(0,0,0,.5); }
.inject-query b { color: var(--txt-mute); font-weight: 400; }
.inject-query .inj { color: var(--red); background: rgba(255,77,94,.12); padding: 0 3px; border-radius: 3px; text-shadow: 0 0 8px rgba(255,77,94,.3); }
.inject-input { margin-top: 14px; }
.inject-actions { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.inject-out { background: #04090b; border: 1px solid var(--line); border-radius: 9px; padding: 12px 16px; font-size: 13.5px; min-height: 1.2em; }
.inject-out.ok { border-color: var(--grn); }
.inject-out.bad { border-color: rgba(255,77,94,.4); }

/* ---------- modal body extras ---------- */
.modal-body { color: var(--txt-dim); font-size: 13px; }
.cheat { list-style: none; padding: 0; margin: 6px 0 0; }
.cheat li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--txt-dim); }
.cheat li code { color: var(--grn); background: var(--grn-deep); padding: 1px 6px; border-radius: 4px; margin-right: 6px; font-size: 12px; }

/* ===========================================================
   v1.2 — career tracks, certificate, HASH/RECON game UIs
   =========================================================== */

/* ---------- tracks page ---------- */
.track-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.track-card { background: linear-gradient(160deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: 13px; padding: 22px; transition: .18s; }
.track-card:hover { border-color: var(--line-hot); }
.track-card.complete { border-color: rgba(54,255,156,.4); box-shadow: 0 0 0 1px var(--grn-deep); }
.track-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.track-icon { font-size: 30px; filter: drop-shadow(0 0 8px rgba(54,255,156,.4)); }
.track-head h3 { font-family: var(--display); margin: 0 0 4px; font-size: 19px; color: var(--grn); letter-spacing: .5px; }
.track-head p { margin: 0; font-size: 13px; }
.track-done-flag { margin-left: auto; font-size: 11px; color: var(--grn); border: 1px solid var(--grn); border-radius: 100px; padding: 2px 10px; letter-spacing: 1px; white-space: nowrap; }
.track-games { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.track-game { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--txt-dim); transition: .15s; }
.track-game:hover { border-color: var(--grn); color: var(--grn); }
.track-game.done { color: var(--grn); border-color: var(--line-hot); }
.tg-ico { font-size: 16px; }
.tg-check { margin-left: auto; color: var(--grn); }
.track-foot { display: flex; align-items: center; gap: 12px; }
.track-foot .xpbar { height: 7px; }
.track-meta { font-size: 12px; white-space: nowrap; }
.cert-btn { padding: 7px 14px; font-size: 12px; }

.track-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.track-mini { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); transition: .15s; }
.track-mini:hover { border-color: var(--grn); transform: translateY(-2px); }
.track-mini.complete { border-color: rgba(54,255,156,.4); }
.tm-icon { font-size: 24px; }
.tm-name { font-size: 14px; color: var(--txt); }
.tm-meta { font-size: 11px; }

/* ---------- certificate ---------- */
.cert-wrap { border: 1px solid var(--line-hot); border-radius: 10px; overflow: hidden; box-shadow: var(--glow); }
.cert-wrap svg { display: block; }

/* share-link field inside the share modal — always-obtainable URL */
.share-link { margin-top: 14px; }
.share-link-field {
  width: 100%; box-sizing: border-box;
  background: #04090b; border: 1px solid var(--line-hot); border-radius: 8px;
  color: var(--grn); font-family: var(--mono); font-size: 12px;
  padding: 9px 11px; letter-spacing: .2px;
}
.share-link-field:focus { outline: none; border-color: var(--grn); box-shadow: var(--glow); }
.share-link-field::selection { background: var(--grn); color: #00120a; }
.share-link-hint { margin-top: 7px; color: var(--amber); font-size: 11px; letter-spacing: .3px; }

/* ---------- HASH ---------- */
.hash-target { font-size: clamp(13px, 3.2vw, 19px); color: var(--amber); word-break: break-all; letter-spacing: 1px; background: #04090b; border: 1px solid var(--line-hot); border-radius: 9px; padding: 14px 16px; text-shadow: 0 0 8px rgba(255,207,58,.25); }
.hash-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 8px; }
.hash-word { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--panel); border: 1px solid var(--line-hot); border-radius: 8px; padding: 11px 14px; color: var(--grn); font-family: var(--mono); font-size: 14px; cursor: pointer; transition: .12s; text-align: left; }
.hash-word:hover { box-shadow: var(--glow); border-color: var(--grn); }
.hash-word.locked { pointer-events: none; }
.hash-word.right { background: var(--grn); color: #00130b; border-color: var(--grn); }
.hash-word.wrong { background: rgba(255,77,94,.12); border-color: var(--red); color: var(--red); }
.hw-hash { font-size: 11px; color: var(--txt-mute); }
.hash-word.right .hw-hash { color: #00130b; }

/* ---------- RECON ---------- */
.recon-scan { font-size: 13.5px; line-height: 1.9; }
.recon-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 8px; }
.recon-opt { background: var(--panel); border: 1px solid var(--line-hot); border-radius: 8px; padding: 13px; color: var(--grn); font-family: var(--display); font-size: 15px; letter-spacing: .5px; cursor: pointer; transition: .12s; }
.recon-opt:hover { box-shadow: var(--glow); border-color: var(--grn); }
.recon-opt.locked { pointer-events: none; }
.recon-opt.right { background: var(--grn); color: #00130b; border-color: var(--grn); }
.recon-opt.wrong { background: rgba(255,77,94,.12); border-color: var(--red); color: var(--red); }

/* ===========================================================
   v1.3 — accounts / auth
   =========================================================== */
.auth-btn { background: transparent; border: 1px solid var(--line-hot); color: var(--txt-dim); padding: 6px 14px; border-radius: 6px; font-size: 13px; cursor: pointer; letter-spacing: .5px; transition: .15s; }
.auth-btn:hover { color: var(--grn); border-color: var(--grn); }

.auth-card { width: min(420px, 92vw); }
.auth-tabs { display: flex; gap: 4px; margin-bottom: 18px; background: #04090b; border: 1px solid var(--line); border-radius: 9px; padding: 4px; }
.auth-tab { flex: 1; background: transparent; border: none; color: var(--txt-dim); padding: 9px; border-radius: 6px; cursor: pointer; font-size: 13px; font-family: var(--mono); transition: .15s; }
.auth-tab:hover { color: var(--grn); }
.auth-tab.active { background: var(--grn-deep); color: var(--grn); text-shadow: var(--glow); }
.auth-form .prompt-row { margin-bottom: 10px; }
.auth-err { color: var(--red); font-size: 12px; min-height: 1.1em; padding: 2px; }

.acct-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.acct-info { font-size: 14px; color: var(--txt); }
.acct-info b { word-break: break-all; }
.verify-ok { font-size: 11px; color: var(--grn); border: 1px solid var(--line-hot); border-radius: 100px; padding: 1px 8px; letter-spacing: .5px; }
.verify-warn { margin-top: 8px; font-size: 12px; color: var(--amber); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.verify-warn .mini-btn { border-color: rgba(255,207,58,.4); color: var(--amber); }
.verify-warn .mini-btn:hover { border-color: var(--amber); color: var(--amber); }

/* ===========================================================
   v1.4 — GHOST SHELL, Matrix rain, cinematic overlays
   =========================================================== */
.navlink-shell { color: var(--cyan); }
.navlink-shell:hover { color: var(--cyan); text-shadow: 0 0 8px rgba(46,230,255,.5); }

/* hero hook button — pulsing cyan */
.btn.shell-hook { --c: var(--cyan); color: #02161a; background: var(--cyan); border-color: var(--cyan); text-shadow: none; box-shadow: 0 0 18px rgba(46,230,255,.35); animation: hookpulse 2.4s ease-in-out infinite; }
.btn.shell-hook:hover { background: #7af2ff; box-shadow: 0 0 28px rgba(46,230,255,.6); }
@keyframes hookpulse { 50% { box-shadow: 0 0 28px rgba(46,230,255,.6); } }

/* arcade tile */
.card.shell-card { border-color: rgba(46,230,255,.3); background: linear-gradient(160deg, #07151a, var(--bg-2)); }
.card.shell-card::before { background: radial-gradient(420px 180px at var(--mx,50%) var(--my,0%), rgba(46,230,255,.12), transparent 70%); }
.card.shell-card:hover { border-color: var(--cyan); }
.card.shell-card h3 { color: var(--cyan); }
.card.shell-card .play { color: var(--cyan); }

/* ---------- GHOST SHELL ---------- */
.shell-wrap { --shell-c: var(--grn); position: relative; min-height: calc(100vh - 210px); border: 1px solid var(--line-hot); border-radius: 12px; overflow: hidden; background: #030709; outline: none; display: flex; flex-direction: column; }
.shell-rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }
.shell-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(3,7,9,.7); backdrop-filter: blur(4px); flex-wrap: wrap; }
.shell-trace { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--txt-dim); letter-spacing: 1px; }
.st-lbl { color: var(--shell-c); }
.strace-bar { width: clamp(120px, 28vw, 260px); height: 7px; border: 1px solid var(--line-hot); border-radius: 100px; overflow: hidden; background: #04090b; }
.strace-bar i { display: block; height: 100%; width: 0; background: var(--shell-c); box-shadow: 0 0 10px var(--shell-c); transition: width .12s linear; }
.shell-ctrls { display: flex; gap: 8px; flex-wrap: wrap; }
.schip { background: var(--panel); border: 1px solid var(--line-hot); color: var(--txt-dim); padding: 6px 11px; border-radius: 7px; font-size: 12px; cursor: pointer; font-family: var(--mono); transition: .15s; }
.schip:hover { color: var(--shell-c); border-color: var(--shell-c); }
.schip.danger:hover { color: var(--red); border-color: var(--red); }
.shell-out { position: relative; z-index: 2; flex: 1; margin: 0; padding: 18px 20px; overflow-y: auto; white-space: pre-wrap; word-break: break-word; font-size: 13.5px; line-height: 1.55; color: var(--shell-c); text-shadow: 0 0 6px color-mix(in srgb, var(--shell-c) 55%, transparent); }
.shell-hint { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; font-size: clamp(16px, 3vw, 24px); color: var(--shell-c); text-shadow: 0 0 12px var(--shell-c); pointer-events: none; transition: opacity .4s; letter-spacing: 1px; }
.shell-hint.gone { opacity: 0; }
.shell-hint .blink { animation: blink 1.1s steps(1) infinite; }
.shell-cta { position: relative; z-index: 2; padding: 11px 16px; border-top: 1px solid var(--line); background: rgba(3,7,9,.7); font-size: 13px; color: var(--txt-mute); text-align: center; }
.shell-cta a { color: var(--cyan); }
.shell-cta a b { color: var(--grn); }

/* ---------- cinematic ACCESS overlay ---------- */
.access-flash { position: fixed; inset: 0; z-index: 9500; display: flex; align-items: center; justify-content: center; pointer-events: none; animation: af-in .12s ease; }
.access-flash.granted { background: radial-gradient(circle, rgba(54,255,156,.18), rgba(2,5,6,.82) 70%); }
.access-flash.denied { background: radial-gradient(circle, rgba(255,77,94,.2), rgba(2,5,6,.85) 70%); }
.access-flash.out { opacity: 0; transition: opacity .35s; }
.af-text { font-family: var(--display); font-size: clamp(28px, 8vw, 76px); font-weight: 900; letter-spacing: 3px; position: relative; }
.granted .af-text { color: var(--grn); text-shadow: 0 0 30px rgba(54,255,156,.7); }
.denied .af-text { color: var(--red); text-shadow: 0 0 30px rgba(255,77,94,.7); }
.af-text::before, .af-text::after { content: attr(data-text); position: absolute; inset: 0; clip-path: inset(0 0 50% 0); }
.af-text::before { transform: translateX(-3px); color: var(--cyan); opacity: .6; animation: glitchx .2s steps(2) infinite; }
.af-text::after { clip-path: inset(50% 0 0 0); transform: translateX(3px); color: var(--magenta); opacity: .6; animation: glitchx .25s steps(2) infinite reverse; }
@keyframes glitchx { 50% { transform: translateX(3px); } }
@keyframes af-in { from { transform: scale(1.15); opacity: 0; } }

/* ===========================================================
   v1.5 — easter-egg sequences, learn page, footer link
   =========================================================== */
.foot-link { color: var(--grn-dim); }
.foot-link:hover { color: var(--grn); text-shadow: var(--glow); }
.seq-hint { color: var(--txt-mute); }
.seq-hint b { color: var(--grn-dim); }

/* ---------- nuke / FBI sequences ---------- */
.seq-overlay { position: fixed; inset: 0; z-index: 9600; display: flex; align-items: center; justify-content: center; background: rgba(2,4,5,.9); backdrop-filter: blur(5px); animation: af-in .2s ease; }
.seq-overlay.nuke { background: radial-gradient(circle, rgba(255,77,94,.16), rgba(2,4,5,.93) 70%); }
.seq-overlay.fbi { background: radial-gradient(circle, rgba(255,77,94,.12), rgba(2,4,5,.94) 70%); }
.seq-card { text-align: center; max-width: 460px; padding: 30px; }
.seq-title { font-family: var(--display); font-size: clamp(20px, 4vw, 30px); letter-spacing: 2px; color: var(--grn); text-shadow: var(--glow); margin-bottom: 12px; }
.seq-title.warn, .seq-title.fbiwarn, .seq-title.boom { color: var(--red); text-shadow: 0 0 16px rgba(255,77,94,.6); animation: pulse 1s infinite; }
.seq-big { font-family: var(--display); font-size: clamp(64px, 18vw, 140px); font-weight: 900; color: var(--red); text-shadow: 0 0 40px rgba(255,77,94,.7); line-height: 1; margin: 8px 0; }
.seq-boom { font-size: clamp(70px, 20vw, 150px); animation: af-in .3s ease; }
.seq-sub { color: var(--txt-dim); font-size: 14px; line-height: 1.6; margin-bottom: 22px; }
.seq-sub b { color: var(--grn); }
.seq-knock { font-family: var(--mono); color: var(--amber); letter-spacing: 3px; font-size: 16px; margin: 16px 0; animation: pulse 1.4s infinite; }
.seq-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.seq-card .btn { margin: 0 4px; }

/* ---------- learn / level up IRL ---------- */
.learn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.learn-card { display: flex; flex-direction: column; background: linear-gradient(160deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: 11px; padding: 18px; transition: .18s; }
.learn-card:hover { border-color: var(--grn); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.learn-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.learn-name { font-family: var(--display); font-size: 15px; color: var(--grn); letter-spacing: .3px; }
.learn-tag { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; padding: 2px 8px; border-radius: 100px; border: 1px solid var(--line-hot); color: var(--txt-mute); }
.learn-tag.free { color: var(--grn); border-color: rgba(54,255,156,.4); }
.learn-tag.freemium { color: var(--cyan); border-color: rgba(46,230,255,.4); }
.learn-tag.paid { color: var(--amber); border-color: rgba(255,207,58,.4); }
.learn-desc { color: var(--txt-dim); font-size: 13px; margin: 0 0 14px; flex: 1; }
.learn-go { color: var(--grn); font-size: 12px; letter-spacing: 1px; }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
