/* ===========================================
   MAIN SITE STYLES
   =========================================== */
:root {
  --bg: #06080f;
  --bg2: #0c1018;
  --bg2-rgb: 12, 16, 24;
  --text: #f0f2f5;
  --sub: #8a95a8;
  --accent: #00e1ff;
  --accent2: #6366f1;
  --accent3: #a855f7;
  --card: rgba(12, 16, 24, 0.65);
  --border: rgba(255, 255, 255, 0.08);
  --cardH: rgba(255, 255, 255, 0.07);
  --glow: rgba(0, 225, 255, 0.15);
  --glowS: rgba(0, 225, 255, 0.4)
}

.light-mode {
  --bg: #f4f6fb;
  --bg2: #fff;
  --bg2-rgb: 255, 255, 255;
  --text: #0a0f1a;
  --sub: #5a6578;
  --accent: #0066ff;
  --accent2: #4f46e5;
  --accent3: #9333ea;
  --card: rgba(255, 255, 255, 0.7);
  --border: rgba(0, 0, 0, 0.06);
  --cardH: rgba(255, 255, 255, 0.95);
  --glow: rgba(0, 102, 255, 0.08);
  --glowS: rgba(0, 102, 255, 0.2)
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: background .6s, color .6s
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important
  }

  #preloader {
    display: none !important
  }

  #app {
    opacity: 1 !important
  }

  .rv,
  .st,
  .top-btns,
  .weather-widget,
  .challenge-hud {
    opacity: 1 !important;
    transform: none !important
  }

  body {
    overflow: auto !important;
    overflow-x: hidden !important
  }
}

/* PRELOADER */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background .6s
}

.pre-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sub);
  opacity: 0
}

.pre-ctr {
  font-family: 'JetBrains Mono', monospace;
  font-size: 72px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin: 16px 0;
  opacity: 0
}

.pre-bar {
  width: 200px;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
  opacity: 0
}

.pre-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--glowS)
}

.pre-stage {
  margin-top: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--accent);
  opacity: 0;
  height: 14px
}

/* DATA INTRO OVERLAY */
#introOverlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: var(--bg);
  display: none;
  overflow: hidden;
  transition: background .6s
}

#introOverlay.active {
  display: block
}

#introOverlay svg {
  width: 100%;
  height: 100%;
  display: block
}

@media print {
  #introOverlay {
    display: none !important
  }
}

@media(prefers-reduced-motion:reduce) {
  #introOverlay {
    display: none !important
  }
}

#bgC {
  position: fixed;
  inset: 0;
  z-index: 0
}

.mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .4
}

.mesh div {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px)
}

.mesh .b1 {
  width: 50vw;
  height: 50vw;
  background: var(--accent);
  opacity: .08;
  top: -15%;
  left: -10%;
  animation: mf1 20s ease-in-out infinite
}

.mesh .b2 {
  width: 40vw;
  height: 40vw;
  background: var(--accent2);
  opacity: .06;
  bottom: -10%;
  right: -10%;
  animation: mf2 25s ease-in-out infinite
}

.mesh .b3 {
  width: 35vw;
  height: 35vw;
  background: var(--accent3);
  opacity: .05;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: mf3 18s ease-in-out infinite
}

@keyframes mf1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1)
  }

  33% {
    transform: translate(5vw, 8vh) scale(1.1)
  }

  66% {
    transform: translate(-3vw, -5vh) scale(.95)
  }
}

@keyframes mf2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1)
  }

  33% {
    transform: translate(-8vw, -4vh) scale(1.15)
  }

  66% {
    transform: translate(4vw, 6vh) scale(.9)
  }
}

@keyframes mf3 {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1)
  }

  50% {
    transform: translate(-45%, -55%) scale(1.2)
  }
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay
}

.cg {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .3s
}

.cg.on {
  opacity: 1
}

.cd {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) scale(1);
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), background .25s, border .25s, opacity .25s;
  will-change: transform
}

.cd.hov {
  transform: translate(-50%, -50%) scale(7.33);
  background: transparent;
  border: 1.5px solid var(--accent);
  opacity: .5
}

@media(pointer:coarse) {

  .cg,
  .cd {
    display: none !important
  }
}

.sbar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 1000
}

/* TOP BUTTONS */
.top-btns {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .6s, transform .6s, box-shadow .3s, border-radius .3s
}

.top-btns.show {
  opacity: 1;
  transform: translateY(0)
}

.tbtn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--sub);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  transition: all .2s;
  padding: 0;
  position: relative
}

.tbtn .trophy-btn-dot {
  position: absolute;
  top: 4px;
  right: 4px
}

.tb-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--sub);
  cursor: pointer;
  font-size: 14px;
  line-height: 32px;
  text-align: center;
  padding: 0;
  transition: color .2s
}

.tb-toggle:hover {
  color: var(--accent)
}

.top-btns .tbtn {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height .25s ease, opacity .2s
}

.top-btns.expanded .tbtn {
  height: 32px;
  opacity: 1
}

.top-btns.expanded .tbtn[style*="display:none"] {
  height: 0 !important;
  opacity: 0 !important
}

.top-btns.expanded {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2)
}

.tbtn.active {
  color: var(--accent);
  background: rgba(0, 225, 255, 0.12);
  box-shadow: 0 0 10px rgba(0, 225, 255, 0.15) inset
}

.light-mode .tbtn.active {
  color: var(--accent);
  background: rgba(0, 102, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.1) inset
}

.tbtn:hover,
.tbtn:focus-visible {
  color: var(--accent);
  background: rgba(0, 225, 255, .08);
  outline: none
}

.light-mode .tbtn:hover,
.light-mode .tbtn:focus-visible {
  background: rgba(0, 102, 255, .08)
}

.lang-btn {
  font-size: 11px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace
}

.lang-btn:hover,
.lang-btn:focus-visible {
  transform: none
}

#app {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 24px 120px;
  opacity: 0
}

.rv {
  opacity: 0;
  transform: translateY(30px)
}

/* STATUS */
.st {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sub);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s, transform .6s
}

.st.show {
  opacity: 1;
  transform: translateY(0)
}

.sd {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0
}

.sd::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: inherit;
  opacity: .4;
  animation: sp 2s ease-in-out infinite
}

@keyframes sp {

  0%,
  100% {
    transform: scale(1);
    opacity: .4
  }

  50% {
    transform: scale(2);
    opacity: 0
  }
}

.pf {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 24px auto 8px;
  cursor: pointer
}

.pf svg {
  position: absolute;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px)
}

.pf svg circle {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 8 6;
  animation: rr 12s linear infinite;
  transform-origin: center
}

@keyframes rr {
  to {
    transform: rotate(360deg)
  }
}

.pfi {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 2
}

.pfi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1)
}

.pf:hover .pfi img {
  transform: scale(1.08)
}

.fc {
  perspective: 1000px;
  width: 100%;
  height: 100%;
  border-radius: 50%
}

.fi {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .8s cubic-bezier(.175, .885, .32, 1.275);
  transform-style: preserve-3d
}

.fi.flipped {
  transform: rotateY(180deg)
}

.ff,
.fb {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 50%;
  overflow: hidden
}

.fb {
  transform: rotateY(180deg);
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border)
}

.qb {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1)
}

.pf:hover .qb {
  transform: scale(1.15)
}

.qb i {
  font-size: 10px;
  color: var(--bg)
}

.ph {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--sub);
  opacity: .4;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 20px
}

.hn {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -.5px;
  line-height: 1.2
}

.ng {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ns 6s ease-in-out infinite
}

@keyframes ns {

  0%,
  100% {
    background-position: 0% 50%
  }

  50% {
    background-position: 100% 50%
  }
}

.sg {
  color: var(--accent);
  opacity: .5
}

.vp {
  text-align: center;
  font-size: 14px;
  color: var(--sub);
  line-height: 1.6;
  margin: 12px 0 4px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto
}

.vp strong {
  color: var(--text);
  font-weight: 600
}

.rl {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px
}

.rt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--sub);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all .3s
}

.rt:hover {
  border-color: var(--accent);
  color: var(--accent)
}

/* IMPACT STRIP */
.imp {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 20px 0 4px;
  flex-wrap: wrap
}

.imp-item {
  text-align: center
}

.imp-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2
}

.imp-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sub);
  margin-top: 2px
}

/* WEATHER WIDGET */
.weather-widget {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--sub);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s, transform .6s;
  cursor: default
}

.weather-widget.show {
  opacity: 1;
  transform: translateY(0)
}

.weather-icon {
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  transition: color .5s
}

.weather-temp {
  font-weight: 600;
  color: var(--text)
}

.weather-desc {
  font-size: 7px;
  letter-spacing: .5px;
  opacity: .6
}

/* SOCIAL PROOF TICKER */
.ticker-wrap {
  overflow: hidden;
  margin: 16px -24px 0;
  position: relative
}

.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none
}

.ticker-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent)
}

.ticker-wrap::after {
  right: 0;
  background: linear-gradient(90deg, transparent, var(--bg))
}

.ticker {
  display: flex;
  animation: tickScroll 90s linear infinite;
  width: max-content
}

.ticker:hover {
  animation-play-state: paused
}

.tq {
  flex-shrink: 0;
  padding: 10px 24px;
  font-size: 12px;
  color: var(--sub);
  font-style: italic;
  white-space: nowrap
}

.tq strong {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
  font-size: 10px
}

@keyframes tickScroll {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

/* CONFERENCE BADGES — Glassmorphism */
.conf-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 4px;
  padding: 10px 0;
  justify-content: center;
  flex-wrap: wrap
}

.conf-badge {
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--sub);
  white-space: nowrap;
  transition: all .4s cubic-bezier(.16, 1, .3, 1);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .06);
  display: inline-flex;
  align-items: center;
  gap: 5px
}

.conf-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, .06) 0%, transparent 50%, rgba(0, 225, 255, .02) 100%);
  pointer-events: none;
  transition: opacity .4s
}

.conf-badge::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 180deg, transparent 0%, rgba(0, 225, 255, .06) 10%, transparent 20%);
  opacity: 0;
  transition: opacity .6s;
  pointer-events: none;
  animation: confSpin 8s linear infinite paused
}

.conf-badge i {
  font-size: 1.15em;
  opacity: .45;
  line-height: 1;
  flex-shrink: 0
}

.conf-badge[data-conf-imgs] {
  cursor: pointer
}

.conf-badge:hover {
  border-color: rgba(0, 225, 255, .25);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 225, 255, .1), 0 2px 12px rgba(0, 0, 0, .15), inset 0 1px 0 rgba(255, 255, 255, .1)
}

.conf-badge:hover::after {
  opacity: 1;
  animation-play-state: running
}

.conf-badge:active {
  transform: translateY(-1px) scale(.97);
  transition-duration: .1s
}

@keyframes confSpin {
  to {
    transform: rotate(360deg)
  }
}

.light-mode .conf-badge {
  background: rgba(255, 255, 255, .55);
  border-color: rgba(0, 0, 0, .06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04), inset 0 1px 0 rgba(255, 255, 255, .8)
}

.light-mode .conf-badge::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, .5) 0%, transparent 50%, rgba(0, 102, 255, .03) 100%)
}

.light-mode .conf-badge::after {
  background: conic-gradient(from 180deg, transparent 0%, rgba(0, 102, 255, .06) 10%, transparent 20%)
}

.light-mode .conf-badge:hover {
  border-color: rgba(0, 102, 255, .2);
  box-shadow: 0 8px 32px rgba(0, 102, 255, .08), 0 2px 12px rgba(0, 0, 0, .06), inset 0 1px 0 rgba(255, 255, 255, .9)
}

@media(max-width:600px) {
  .conf-strip {
    gap: 8px;
    padding: 8px 12px
  }

  .conf-badge {
    font-size: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    letter-spacing: .5px;
    gap: 4px
  }

  .conf-badge i {
    font-size: 10px
  }
}

.sr {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 24px 0 28px
}

.si {
  color: var(--sub);
  font-size: 20px;
  transition: color .3s, transform .3s cubic-bezier(.16, 1, .3, 1);
  position: relative;
  text-decoration: none
}

.si:hover,
.si:focus-visible {
  transform: translateY(-3px);
  outline: 2px solid var(--accent);
  outline-offset: 2px
}

.si:hover {
  outline: none
}

.si::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width .3s cubic-bezier(.16, 1, .3, 1)
}

.si:hover::after,
.si:focus-visible::after {
  width: 20px
}

.lk {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: background .3s, border-color .3s, transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s;
  will-change: transform
}

.lk:hover,
.lk:focus-visible {
  background: var(--cardH);
  border-color: rgba(0, 225, 255, .12);
  box-shadow: 0 8px 32px -8px var(--glow), 0 0 0 1px var(--border)
}

.lk:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px
}

.lk:hover {
  outline: none
}

.light-mode .lk:hover,
.light-mode .lk:focus-visible {
  border-color: rgba(0, 102, 255, .15);
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, .08)
}

.ls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
  z-index: 0
}

.lk:hover .ls {
  opacity: 1
}

.lm {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, var(--glow) 50%, transparent 60%);
  transform: translateX(-100%);
  pointer-events: none;
  z-index: 1
}

.lk:hover .lm {
  animation: shm .8s ease forwards
}

@keyframes shm {
  to {
    transform: translateX(100%)
  }
}

.li {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: border-color .3s;
  overflow: hidden
}

.lk:hover .li {
  border-color: rgba(0, 225, 255, .15)
}

.li img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.li .fbi {
  display: none;
  font-size: 18px
}

.lb {
  flex: 1;
  position: relative;
  z-index: 2
}

.lt {
  font-weight: 600;
  font-size: 14px
}

.lsu {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--sub);
  margin-top: 2px
}

.la {
  color: var(--sub);
  font-size: 13px;
  position: relative;
  z-index: 2;
  transition: color .3s, transform .3s cubic-bezier(.16, 1, .3, 1);
  opacity: .4
}

.lk:hover .la {
  opacity: 1;
  color: var(--accent);
  transform: translateX(3px)
}

.nd {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 16px;
  opacity: .3
}

.ndl {
  flex: 1;
  height: 1px;
  background: var(--sub)
}

.ndt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--accent);
  white-space: nowrap
}

.nl {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-decoration: none;
  color: var(--sub);
  font-size: 13px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  transition: background .3s, color .3s, border-color .3s, transform .3s cubic-bezier(.16, 1, .3, 1)
}

.nl:hover,
.nl:focus-visible {
  background: var(--cardH);
  color: var(--text);
  transform: translateX(4px)
}

.nl:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px
}

.nl:hover {
  outline: none
}

.ni {
  width: 28px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px
}

.nlb {
  flex: 1;
  position: relative
}

.nlb::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .4s cubic-bezier(.16, 1, .3, 1)
}

.nl:hover .nlb::after {
  width: 100%
}

.ne {
  font-size: 10px;
  opacity: .3;
  transition: opacity .3s
}

.nl:hover .ne {
  opacity: .7
}

/* CTA */
.vcb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(0, 225, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 225, 255, 0.2);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s, background .4s, border-color .3s;
  margin-bottom: 4px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 225, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1)
}

.vcb:hover,
.vcb:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px var(--glowS), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(0, 225, 255, 0.35);
  background: rgba(0, 225, 255, 0.15)
}

.vcb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px
}

.vcb:hover {
  outline: none
}

.light-mode .vcb {
  background: rgba(0, 102, 255, 0.08);
  border-color: rgba(0, 102, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.4)
}

.light-mode .vcb:hover,
.light-mode .vcb:focus-visible {
  background: rgba(0, 102, 255, 0.12);
  border-color: rgba(0, 102, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5)
}

.vcb:active {
  transform: translateY(0) scale(.98)
}

.vcb i {
  font-size: 14px;
  transition: transform .3s
}

.vcb:hover i {
  transform: translateY(2px)
}

.vcb-shim {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .15) 50%, transparent 60%);
  transform: translateX(-100%);
  pointer-events: none
}

.vcb:hover .vcb-shim {
  animation: shm .8s ease forwards
}

.vcb-done {
  background: rgba(34, 197, 94, 0.15) !important;
  border-color: rgba(34, 197, 94, 0.3) !important
}

#contactSecret {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .6s cubic-bezier(.16, 1, .3, 1), opacity .5s, margin .4s;
  margin: 0
}

#contactSecret.revealed {
  max-height: 200px;
  opacity: 1;
  margin: 8px 0 4px
}

#contactSecret .sr {
  margin: 8px 0 12px
}

.shake-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sub);
  opacity: .25;
  text-align: center;
  transition: opacity .4s;
  margin-bottom: 4px;
  display: none
}

.shake-hint.shaking {
  opacity: .6;
  animation: shakeHintPulse 1s ease-in-out infinite
}

.shake-hint.unlocked {
  opacity: .8;
  color: var(--accent)
}

@keyframes shakeHintPulse {

  0%,
  100% {
    opacity: .4
  }

  50% {
    opacity: .8
  }
}

.desk-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sub);
  opacity: .2;
  text-align: center;
  margin-top: 2px;
  margin-bottom: 4px;
  display: none
}

.shake-bar {
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: var(--border);
  margin: 4px 0 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity .3s
}

.shake-bar.active {
  opacity: 1
}

.shake-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 1px;
  transition: width .15s linear
}

/* EASTER EGG — Glassmorphism */
#easterEgg {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 8, 16, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
}

#easterEgg.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.egg-card {
  position: relative;
  overflow: hidden;
  max-width: 400px;
  width: 92%;
  padding: 36px 32px 28px;
  border-radius: 28px;
  text-align: center;
  background: rgba(12, 18, 32, .58);
  backdrop-filter: blur(40px) saturate(1.5);
  -webkit-backdrop-filter: blur(40px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, .5),
    0 0 0 1px rgba(0, 225, 255, .04),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: scale(.85) translateY(16px);
  transition: transform .55s cubic-bezier(.16, 1, .3, 1), opacity .4s ease;
}

#easterEgg.show .egg-card {
  transform: scale(1) translateY(0);
}

.egg-glow {
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 225, 255, .1) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.egg-emoji {
  position: relative;
  z-index: 1;
  font-size: 56px;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(0, 225, 255, .2));
  animation: eggFloat 3s ease-in-out infinite;
}

@keyframes eggFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.egg-title {
  position: relative;
  z-index: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #00e1ff;
  margin-bottom: 14px;
  text-shadow: 0 0 24px rgba(0, 225, 255, .35);
}

.egg-text {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 20px;
}

.egg-download {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 16px;
  color: #00e1ff;
  background: linear-gradient(135deg, rgba(0, 225, 255, .12), rgba(99, 102, 241, .08));
  border: 1px solid rgba(0, 225, 255, .25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 225, 255, .12);
  transition: all .3s cubic-bezier(.16, 1, .3, 1);
  cursor: pointer;
}

.egg-download i {
  font-size: 16px;
}

.egg-download:hover {
  background: linear-gradient(135deg, rgba(0, 225, 255, .22), rgba(99, 102, 241, .14));
  border-color: rgba(0, 225, 255, .5);
  box-shadow: 0 6px 28px rgba(0, 225, 255, .22);
  transform: translateY(-2px);
  color: #00e1ff;
}

.egg-download:active {
  transform: translateY(0) scale(.98);
}

.egg-footnote {
  position: relative;
  z-index: 1;
  font-size: 11px;
  color: rgba(148, 163, 184, .5);
  line-height: 1.6;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.egg-close {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  border: none;
  background: none;
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(148, 163, 184, .35);
  cursor: pointer;
  transition: color .2s, opacity .2s;
}

.egg-close:hover {
  color: #00e1ff;
  opacity: 1;
}

/* Light-mode glass */
.light-mode #easterEgg {
  background: rgba(220, 230, 245, .35);
}

.light-mode .egg-card {
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  border-color: rgba(255, 255, 255, .5);
  box-shadow: 0 8px 40px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 102, 255, .05), inset 0 1px 0 rgba(255, 255, 255, .7);
}

.light-mode .egg-glow {
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 102, 255, .06) 0%, transparent 60%);
}

.light-mode .egg-emoji {
  filter: drop-shadow(0 4px 12px rgba(0, 102, 255, .12));
}

.light-mode .egg-title {
  color: #0066ff;
  text-shadow: none;
}

.light-mode .egg-text {
  color: #475569;
}

.light-mode .egg-download {
  color: #0066ff;
  background: linear-gradient(135deg, rgba(0, 102, 255, .08), rgba(99, 102, 241, .05));
  border-color: rgba(0, 102, 255, .25);
  box-shadow: 0 4px 20px rgba(0, 102, 255, .08);
}

.light-mode .egg-download:hover {
  background: linear-gradient(135deg, rgba(0, 102, 255, .16), rgba(99, 102, 241, .1));
  border-color: rgba(0, 102, 255, .4);
  box-shadow: 0 6px 28px rgba(0, 102, 255, .16);
  color: #0066ff;
}

.light-mode .egg-footnote {
  color: rgba(71, 85, 105, .45);
  border-top-color: rgba(0, 0, 0, .06);
}

.light-mode .egg-close {
  color: rgba(71, 85, 105, .35);
}

.light-mode .egg-close:hover {
  color: #0066ff;
}

/* EASTER EGG — Mobile */
@media(max-width:600px) {
  #easterEgg {
    align-items: flex-end;
    padding: 0;
  }

  .egg-card {
    max-width: 100%;
    width: 100%;
    padding: 24px 20px 20px;
    border-radius: 24px 24px 0 0;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: scale(1) translateY(100%);
  }

  #easterEgg.show .egg-card {
    transform: scale(1) translateY(0);
  }

  .egg-emoji {
    font-size: 40px;
    margin-bottom: 10px;
  }

  .egg-title {
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 12px;
  }

  .egg-text {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .egg-download {
    padding: 10px 20px;
    font-size: 10px;
  }

  .egg-close {
    margin-top: 12px;
  }
}

/* ARABIC MODE */
[dir="rtl"] .hn,
[dir="rtl"] .vp,
[dir="rtl"] .rt,
[dir="rtl"] .lt,
[dir="rtl"] .lsu,
[dir="rtl"] .nlb,
[dir="rtl"] .st,
[dir="rtl"] .imp-label,
[dir="rtl"] .tq {
  font-family: 'Noto Sans Arabic', 'Inter', sans-serif
}

[dir="rtl"] .vp {
  direction: rtl;
  text-align: center
}

[dir="rtl"] .li {
  margin-right: 0;
  margin-left: 14px
}

/* READING */
.reading-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin: 12px 0 0
}

.reading-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  color: var(--bg)
}

.reading-meta {
  flex: 1
}

.reading-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px
}

.reading-title {
  font-size: 13px;
  font-weight: 600
}

.reading-author {
  font-size: 11px;
  color: var(--sub);
  margin-top: 1px
}

/* INSIGHTS */
.insight-card {
  padding: 14px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-bottom: 8px;
  transition: all .3s;
  text-decoration: none;
  display: block;
  color: var(--text)
}

.insight-card:hover {
  background: var(--cardH);
  border-color: rgba(0, 225, 255, .12);
  transform: translateX(4px)
}

.light-mode .insight-card:hover {
  border-color: rgba(0, 102, 255, .2);
  box-shadow: 0 2px 12px rgba(0, 102, 255, .06)
}

.insight-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--sub)
}

.insight-text strong {
  color: var(--text)
}

.insight-source {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 6px;
  opacity: .6
}

/* TIMELINE */
.tl-wrap {
  position: relative;
  padding-left: 20px;
  margin: 8px 0 12px
}

.tl-line {
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--accent2), var(--accent3))
}

.tl-item {
  position: relative;
  padding: 8px 0 8px 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px
}

.tl-dot {
  position: absolute;
  left: -20px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  z-index: 1;
  transition: all .3s
}

.tl-item:hover .tl-dot {
  background: var(--accent);
  box-shadow: 0 0 12px var(--glowS)
}

.tl-yr {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  min-width: 46px;
  flex-shrink: 0
}

.tl-txt {
  font-size: 12px;
  color: var(--sub);
  line-height: 1.4
}

.tl-txt strong {
  color: var(--text);
  font-weight: 600
}

.tl-era .tl-txt {
  font-size: 13px
}

.tl-era .tl-dot {
  width: 12px;
  height: 12px;
  left: -21px
}

.tl-sub {
  padding: 4px 0 4px 16px
}

.tl-sub .tl-dot {
  width: 6px;
  height: 6px;
  left: -18px;
  top: 10px;
  border-width: 1.5px;
  opacity: .7
}

.tl-sub .tl-txt {
  font-size: 11px;
  opacity: .9
}

[dir="rtl"] .tl-wrap {
  padding-left: 0;
  padding-right: 20px
}

[dir="rtl"] .tl-line {
  left: auto;
  right: 5px
}

[dir="rtl"] .tl-item {
  padding-left: 0;
  padding-right: 16px
}

[dir="rtl"] .tl-dot {
  left: auto;
  right: -20px
}

/* SHARE CARD OVERLAY */
#shareOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none
}

#shareOverlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto
}

.share-panel {
  width: 94%;
  max-width: 400px;
  border-radius: 20px;
  background: rgba(12, 16, 24, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(.9);
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4)
}

.light-mode .share-panel {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1)
}

#shareOverlay.show .share-panel {
  transform: scale(1)
}

.share-card-preview {
  position: relative;
  overflow: hidden
}

.share-canvas {
  display: block;
  width: 100%;
  border-radius: 0
}

.share-tabs {
  display: flex;
  border-bottom: 1px solid var(--border)
}

.share-tab {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px;
  text-align: center;
  color: var(--sub);
  cursor: pointer;
  transition: all .3s;
  border: none;
  background: transparent;
  -webkit-tap-highlight-color: transparent
}

.share-tab.active {
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent)
}

.share-platforms {
  padding: 12px 16px
}

.share-platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px
}

.share-plat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: all .3s;
  color: var(--sub);
  -webkit-tap-highlight-color: transparent
}

.share-plat:hover,
.share-plat:active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 225, 255, .03);
  transform: translateY(-2px)
}

.share-plat-icon {
  font-size: 20px;
  transition: transform .3s
}

.share-plat:hover .share-plat-icon {
  transform: scale(1.15)
}

.share-plat-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 6px;
  letter-spacing: 1px;
  text-transform: uppercase
}

.share-qr-section {
  padding: 12px 16px;
  display: none;
  text-align: center
}

.share-qr-section.active {
  display: block
}

.share-qr-canvas {
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
  margin: 0 auto
}

.share-qr-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: var(--sub);
  margin-top: 6px;
  letter-spacing: 1px
}

.share-card-section {
  padding: 12px 16px;
  display: none
}

.share-card-section.active {
  display: block
}

.share-dl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px
}

.share-dl-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--sub);
  cursor: pointer;
  transition: all .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  -webkit-tap-highlight-color: transparent
}

.share-dl-btn:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.share-dl-btn.primary {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 225, 255, .05)
}

.share-resume-btn {
  border-color: var(--accent2) !important;
  color: var(--accent2) !important;
  background: rgba(99, 102, 241, .06) !important;
  font-weight: 600
}

.share-resume-btn:hover {
  background: rgba(99, 102, 241, .12) !important;
  border-color: var(--accent2) !important
}

.share-copied {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #22c55e;
  background: rgba(0, 0, 0, .8);
  padding: 12px 24px;
  border-radius: 10px;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  z-index: 10
}

.share-copied.show {
  opacity: 1
}

.light-mode .share-copied {
  background: rgba(255, 255, 255, .9);
  color: #16a34a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .1)
}

.share-close {
  text-align: center;
  padding: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: var(--sub);
  opacity: .5;
  cursor: pointer;
  border-top: 1px solid var(--border);
  transition: all .2s
}

.share-close:hover {
  opacity: 1;
  color: var(--accent)
}

/* STREAK & SOUND */
.streak {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--accent);
  opacity: .2;
  text-align: center;
  margin-top: 4px;
  transition: opacity .3s
}

.streak:hover {
  opacity: .6
}

/* ACHIEVEMENT TOAST */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--bg2);
  border: 1px solid var(--accent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 225, 255, .25);
  font-family: 'JetBrains Mono', monospace;
  transform: translateY(60px) scale(.8);
  opacity: 0;
  transition: all .5s cubic-bezier(.16, 1, .3, 1);
  pointer-events: auto;
  max-width: 90vw;
  position: relative;
  overflow: hidden
}

.toast.show {
  transform: translateY(0) scale(1);
  opacity: 1
}

.toast-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 225, 255, .06), transparent);
  animation: tshimmer 2s ease-in-out
}

@keyframes tshimmer {
  0% {
    transform: translateX(-100%)
  }

  100% {
    transform: translateX(100%)
  }
}

.toast-emoji {
  font-size: 32px;
  flex-shrink: 0;
  animation: tpop .5s cubic-bezier(.16, 1, .3, 1)
}

.toast.show .toast-emoji {
  animation: tpop .5s cubic-bezier(.16, 1, .3, 1) .2s both
}

@keyframes tpop {
  0% {
    transform: scale(0) rotate(-30deg)
  }

  60% {
    transform: scale(1.3) rotate(5deg)
  }

  100% {
    transform: scale(1) rotate(0deg)
  }
}

.toast-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  z-index: 1
}

.toast-title {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700
}

.toast-desc {
  font-size: 11px;
  color: var(--sub)
}

.toast-xp {
  font-size: 9px;
  color: var(--accent3);
  margin-top: 2px;
  letter-spacing: 1px
}

.toast-rarity {
  font-size: 7px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 1px
}

.toast.legendary {
  border-color: #fbbf24;
  box-shadow: 0 8px 32px rgba(251, 191, 36, .3)
}

.toast.legendary .toast-title {
  color: #fbbf24
}

.toast.epic {
  border-color: #a855f7;
  box-shadow: 0 8px 32px rgba(168, 85, 247, .25)
}

.toast.epic .toast-title {
  color: #a855f7
}

.toast.mythic {
  border-color: #06b6d4;
  box-shadow: 0 8px 40px rgba(6, 182, 212, .35);
  animation: mythicToastPulse 2s ease-in-out infinite
}

.toast.mythic .toast-title {
  color: #06b6d4
}

@keyframes mythicToastPulse {

  0%,
  100% {
    box-shadow: 0 8px 32px rgba(6, 182, 212, .25)
  }

  50% {
    box-shadow: 0 8px 48px rgba(6, 182, 212, .5)
  }
}

/* LEVEL UP TOAST */
.toast-levelup {
  border-color: #22c55e;
  box-shadow: 0 8px 40px rgba(34, 197, 94, .3);
  background: linear-gradient(135deg, var(--bg2), rgba(34, 197, 94, .05))
}

.toast-levelup .toast-title {
  color: #22c55e;
  font-size: 12px
}

/* TROPHY CASE - UPGRADED */
#trophyOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none
}

#trophyOverlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto
}

.trophy-panel {
  width: 92%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: scroll;
  padding: 24px;
  border-radius: 22px;
  background: rgba(10, 12, 18, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, .1);
  transform: scale(.85);
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
  color: #f0f2f5;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .15) rgba(255, 255, 255, .03)
}

.light-mode .trophy-panel {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  color: #0a0f1a;
  scrollbar-color: rgba(0, 0, 0, .12) rgba(0, 0, 0, .03)
}

.light-mode .trophy-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, .03)
}

.light-mode .trophy-panel::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .12)
}

.light-mode .trophy-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, .2)
}

.light-mode .trophy-ring-sub,
.light-mode .trophy-level {
  color: #5a6578
}

.light-mode .trophy-ring-pct {
  color: #0a0f1a
}

.light-mode .trophy-badge {
  background: rgba(0, 0, 0, .03);
  border-color: rgba(0, 0, 0, .06)
}

.light-mode .trophy-badge-name {
  color: #1f2937
}

.light-mode .trophy-badge-desc {
  color: #5a6578
}

.light-mode .trophy-tier-label {
  color: #5a6578;
  border-color: rgba(0, 0, 0, .08)
}

#trophyOverlay.show .trophy-panel {
  transform: scale(1)
}

.trophy-panel::-webkit-scrollbar {
  width: 5px
}

.trophy-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .03);
  border-radius: 3px
}

.trophy-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .15);
  border-radius: 3px
}

.trophy-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, .25)
}

.trophy-header {
  text-align: center;
  margin-bottom: 20px
}

.trophy-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent)
}

.trophy-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 12px 0
}

.trophy-stat {
  text-align: center
}

.trophy-stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--text)
}

.trophy-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sub);
  margin-top: 2px
}

.trophy-ring-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 16px auto
}

.trophy-ring-svg {
  transform: rotate(-90deg)
}

.trophy-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, .08);
  stroke-width: 4
}

.light-mode .trophy-ring-bg {
  stroke: rgba(0, 0, 0, .08)
}

.trophy-ring-fill {
  fill: none;
  stroke: url(#trophyGrad);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(.16, 1, .3, 1)
}

.trophy-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center
}

.trophy-ring-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: #f0f2f5
}

.trophy-ring-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6b7a90;
  margin-top: 1px
}

.trophy-xp-bar {
  margin: 12px 0 6px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
  position: relative
}

.trophy-xp-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  transition: width 1s cubic-bezier(.16, 1, .3, 1);
  position: relative
}

.trophy-xp-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent);
  animation: xpshimmer 2s ease-in-out infinite
}

@keyframes xpshimmer {
  0% {
    transform: translateX(-100%)
  }

  100% {
    transform: translateX(100%)
  }
}

.trophy-level {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #6b7a90;
  text-align: center;
  letter-spacing: 1px
}

.trophy-tier-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8b95a5;
  margin: 18px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.trophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px
}

.trophy-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .06);
  text-align: center;
  transition: all .4s;
  position: relative;
  overflow: hidden;
  cursor: default
}

.trophy-badge.unlocked {
  border-color: rgba(0, 225, 255, .15);
  background: rgba(0, 225, 255, .02)
}

.trophy-badge.unlocked.legendary {
  border-color: rgba(251, 191, 36, .2);
  background: rgba(251, 191, 36, .03)
}

.trophy-badge.unlocked.epic {
  border-color: rgba(168, 85, 247, .2);
  background: rgba(168, 85, 247, .03)
}

.trophy-badge.unlocked.rare {
  border-color: rgba(59, 130, 246, .2);
  background: rgba(59, 130, 246, .03)
}

.trophy-badge.locked {
  opacity: .25;
  filter: grayscale(1)
}

.trophy-badge-emoji {
  font-size: 30px;
  transition: transform .4s
}

.trophy-badge.unlocked:hover .trophy-badge-emoji {
  transform: scale(1.25) rotate(8deg)
}

.trophy-badge-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #e2e8f0;
  font-weight: 600
}

.trophy-badge-desc {
  font-size: 8px;
  color: #8b95a5;
  line-height: 1.3
}

.trophy-badge-rarity {
  font-family: 'JetBrains Mono', monospace;
  font-size: 6px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 1px;
  padding: 2px 6px;
  border-radius: 4px
}

.trophy-badge-rarity.common {
  color: #6b7a90;
  background: rgba(107, 122, 144, .1)
}

.trophy-badge-rarity.rare {
  color: #3b82f6;
  background: rgba(59, 130, 246, .1)
}

.trophy-badge-rarity.epic {
  color: #a855f7;
  background: rgba(168, 85, 247, .1)
}

.trophy-badge-rarity.legendary {
  color: #fbbf24;
  background: rgba(251, 191, 36, .1)
}

.trophy-badge-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 6px;
  color: #6b7a90;
  opacity: .5;
  margin-top: 1px
}

.trophy-close {
  text-align: center;
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--sub);
  opacity: .6;
  cursor: pointer;
  transition: all .2s
}

.trophy-close:hover {
  opacity: 1;
  color: var(--accent);
  text-shadow: 0 0 8px var(--glow)
}

.trophy-share-btn {
  display: block;
  margin: 12px auto 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: all .3s
}

.trophy-share-btn:hover {
  background: var(--glow)
}

/* XP BAR (footer) - enhanced */
.xp-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
  opacity: .25;
  transition: opacity .3s;
  cursor: pointer
}

.xp-footer:hover {
  opacity: .7
}

.xp-bar-mini {
  width: 100px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
  position: relative
}

.xp-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width .5s
}

.xp-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: var(--sub);
  letter-spacing: 1px
}

.xp-level-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 1px;
  font-weight: 700
}

/* TROPHY BUTTON */
.trophy-btn {
  font-size: 12px;
  position: relative
}

.trophy-btn-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s ease-in-out infinite
}

/* COMBO INDICATOR */
.combo-indicator {
  position: fixed;
  top: 60px;
  right: 16px;
  z-index: 100;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  opacity: 0;
  transition: all .4s;
  pointer-events: none;
  text-align: right
}

.combo-indicator.show {
  opacity: 1
}

.combo-count {
  font-size: 20px;
  font-weight: 700;
  line-height: 1
}

.combo-label {
  font-size: 7px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sub);
  margin-top: 2px
}

.combo-mult {
  font-size: 9px;
  color: var(--accent3)
}

/* LIVE CONSOLE */
.live-console {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--accent);
  opacity: .25;
  text-align: center;
  margin-top: 8px;
  min-height: 14px;
  letter-spacing: .5px;
  transition: opacity .3s
}

.live-console:hover {
  opacity: .6
}

.live-console .cursor-blink {
  animation: cblink 1s step-end infinite
}

@keyframes cblink {
  50% {
    opacity: 0
  }
}

/* SMART CTA */
.smart-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  background: linear-gradient(180deg, transparent, var(--bg) 30%);
  display: flex;
  justify-content: center;
  transform: translateY(100%);
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none
}

.smart-cta.show {
  transform: translateY(0);
  pointer-events: auto
}

.smart-cta-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(12, 16, 24, 0.8);
  border: 1px solid rgba(0, 225, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 -4px 24px rgba(0, 225, 255, .12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  max-width: 400px;
  width: 100%;
  text-decoration: none;
  color: var(--text);
  transition: all .3s
}

.light-mode .smart-cta-inner {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 102, 255, 0.15);
  box-shadow: 0 -4px 24px rgba(0, 102, 255, .08), inset 0 1px 0 rgba(255, 255, 255, 0.5)
}

.smart-cta-inner:hover {
  box-shadow: 0 -4px 32px rgba(0, 225, 255, .3);
  transform: translateY(-2px)
}

.smart-cta-icon {
  font-size: 18px;
  color: var(--accent)
}

.smart-cta-text {
  flex: 1
}

.smart-cta-title {
  font-size: 12px;
  font-weight: 600
}

.smart-cta-sub {
  font-size: 9px;
  color: var(--sub);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px
}

.smart-cta-close {
  color: var(--sub);
  cursor: pointer;
  padding: 4px;
  font-size: 12px;
  opacity: .5;
  transition: opacity .3s
}

.smart-cta-close:hover {
  opacity: 1
}

/* PERSONALIZED RECS */
.rec-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  margin-top: 8px;
  text-decoration: none;
  color: var(--text);
  transition: all .3s
}

.rec-card:hover {
  border-color: rgba(0, 225, 255, .15);
  background: var(--cardH);
  transform: translateX(4px)
}

.rec-icon {
  font-size: 16px;
  color: var(--accent);
  flex-shrink: 0
}

.rec-meta {
  flex: 1
}

.rec-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent3);
  margin-bottom: 1px
}

.rec-title {
  font-size: 12px;
  font-weight: 600
}

/* CERTIFICATION WALL */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0 12px
}

.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-decoration: none;
  color: var(--text);
  transition: all .4s;
  text-align: center;
  position: relative;
  overflow: hidden
}

.cert-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 225, 255, .04), transparent);
  opacity: 0;
  transition: opacity .3s
}

.cert-card:hover::before {
  opacity: 1
}

.cert-card:hover {
  border-color: rgba(0, 225, 255, .15);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 225, 255, .08)
}

.cert-icon {
  font-size: 24px;
  transition: transform .3s
}

.cert-card:hover .cert-icon {
  transform: scale(1.15)
}

.cert-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  letter-spacing: .5px;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--sub)
}

.cert-name strong {
  color: var(--text);
  display: block;
  font-size: 8px;
  margin-bottom: 1px
}

.cert-org {
  font-size: 7px;
  color: var(--accent);
  opacity: .6;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .5px
}

.cert-verify {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(34, 197, 94, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  color: #22c55e;
  opacity: 0;
  transition: opacity .3s
}

.cert-card:hover .cert-verify {
  opacity: 1
}

.cert-card[data-cert-img] {
  cursor: zoom-in
}

@media(max-width:380px) {
  .cert-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

/* CERT IMAGE VIEWER (Glassmorphism Lightbox) */
.cert-viewer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 15, .6);
  backdrop-filter: blur(32px) saturate(1.4);
  -webkit-backdrop-filter: blur(32px) saturate(1.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s;
  padding: 24px;
  width: 100%;
  height: 100%;
  width: 100dvw;
  height: 100dvh;
  box-sizing: border-box
}

.cert-viewer.show {
  opacity: 1;
  visibility: visible
}

.cert-viewer.cert-viewer-fs {
  padding: 0;
  border-radius: 0
}

.cert-viewer.cert-viewer-fs .cert-viewer-inner {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  border-radius: 0;
  padding: 8px
}

.cert-viewer.cert-viewer-fs .cert-viewer-img-wrap {
  max-height: calc(100vh - 60px);
  max-height: calc(100dvh - 60px);
  flex: 1
}

.cert-viewer.cert-viewer-fs .cert-viewer-img {
  max-height: calc(100vh - 60px);
  max-height: calc(100dvh - 60px)
}

.cert-viewer.cert-viewer-fs .cert-viewer-close {
  top: 8px;
  right: 8px
}

.cert-viewer.cert-viewer-fs .cert-viewer-nav {
  border-radius: 50%
}

.cert-viewer-inner {
  position: relative;
  max-width: min(760px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(12, 16, 24, .45);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  padding: 16px;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 32px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .04) inset, 0 0 80px rgba(0, 225, 255, .04)
}

.cert-viewer-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: zoom-in;
  max-width: 100%;
  max-height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent
}

.cert-viewer-img-wrap.zoomed {
  cursor: grab;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
  justify-content: flex-start;
  align-items: flex-start
}

.cert-viewer-img-wrap.zoomed:active {
  cursor: grabbing
}

.cert-viewer-img-wrap.zoomed::-webkit-scrollbar {
  width: 4px;
  height: 4px
}

.cert-viewer-img-wrap.zoomed::-webkit-scrollbar-track {
  background: transparent
}

.cert-viewer-img-wrap.zoomed::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .15);
  border-radius: 2px
}

.cert-viewer-img {
  max-width: 100%;
  max-height: 74vh;
  border-radius: 12px;
  object-fit: contain;
  transform: scale(.92);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto
}

.cert-viewer.show .cert-viewer-img {
  transform: scale(1)
}

.cert-viewer-img-wrap.zoomed .cert-viewer-img {
  max-width: none;
  max-height: none;
  transition: none;
  border-radius: 0;
  object-fit: initial
}

.cert-viewer-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%
}

.cert-viewer-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--sub);
  text-align: left;
  opacity: .7;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.cert-viewer-zoom-info {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: .5px;
  color: var(--accent);
  opacity: .6;
  transition: opacity .3s, color .2s;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  user-select: none;
  -webkit-user-select: none
}

.cert-viewer-zoom-info:hover {
  opacity: 1;
  background: rgba(255, 255, 255, .06)
}

.cv-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .04);
  color: var(--sub);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  transition: all .25s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-shrink: 0
}

.cv-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 225, 255, .06)
}

.cv-btn:active {
  transform: scale(.92)
}

.cert-viewer-close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 10001;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(12, 16, 24, .7);
  color: var(--sub);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all .3s;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px)
}

.cert-viewer-close:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.1);
  background: rgba(12, 16, 24, .9)
}

.cert-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(12, 16, 24, .4);
  color: var(--sub);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  z-index: 2;
  transition: background .3s, border-color .3s, color .3s;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px)
}

.cert-viewer-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 225, 255, .06)
}

.cert-viewer-prev {
  left: 16px
}

.cert-viewer-next {
  right: 16px
}

.cert-viewer-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: .5px;
  color: var(--sub);
  opacity: .5
}

/* Light mode */
.light-mode .cert-viewer {
  background: rgba(230, 235, 245, .5)
}

.light-mode .cert-viewer-inner {
  background: rgba(255, 255, 255, .55);
  border-color: rgba(0, 0, 0, .06);
  box-shadow: 0 32px 80px rgba(0, 0, 0, .12), 0 0 0 1px rgba(255, 255, 255, .6) inset, 0 0 60px rgba(0, 102, 255, .03)
}

.light-mode .cert-viewer-close {
  background: rgba(255, 255, 255, .8);
  border-color: rgba(0, 0, 0, .08)
}

.light-mode .cert-viewer-close:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, .95)
}

.light-mode .cert-viewer-nav {
  background: rgba(255, 255, 255, .5);
  border-color: rgba(0, 0, 0, .06)
}

.light-mode .cert-viewer-nav:hover {
  background: rgba(0, 102, 255, .06);
  border-color: var(--accent)
}

.light-mode .cv-btn {
  background: rgba(0, 0, 0, .03);
  border-color: rgba(0, 0, 0, .06)
}

.light-mode .cv-btn:hover {
  background: rgba(0, 102, 255, .06);
  border-color: var(--accent)
}

@media(max-width:600px) {
  .cert-viewer {
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh
  }

  .cert-viewer-inner {
    padding: 8px 6px;
    border-radius: 0;
    max-width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    width: 100%;
    height: 100%;
    gap: 6px
  }

  .cert-viewer-nav {
    width: 32px;
    height: 32px;
    font-size: 12px;
    border-radius: 50%;
    min-width: 44px;
    min-height: 44px;
    background: rgba(12, 16, 24, .65)
  }

  .cert-viewer-prev {
    left: 2px
  }

  .cert-viewer-next {
    right: 2px
  }

  .cert-viewer-close {
    top: 6px;
    right: 6px;
    width: 36px;
    height: 36px;
    font-size: 14px;
    min-width: 44px;
    min-height: 44px;
    z-index: 10002
  }

  .cert-viewer-img {
    max-height: 75vh;
    max-height: 75dvh
  }

  .cert-viewer-img-wrap {
    max-height: 75vh;
    max-height: 75dvh;
    flex: 1;
    border-radius: 8px
  }

  .cert-viewer-label {
    font-size: 7px;
    max-width: none;
    flex: 0 0 auto;
    width: 100%;
    text-align: center;
    order: -1
  }

  .cert-viewer-toolbar {
    gap: 6px;
    flex-wrap: wrap;
    padding: 4px 0;
    justify-content: center
  }

  .cv-btn {
    width: 36px;
    height: 36px;
    min-width: 44px;
    min-height: 44px;
    font-size: 13px;
    border-radius: 50%
  }

  .cert-viewer-zoom-info {
    font-size: 9px;
    padding: 4px 8px
  }

  .cert-viewer.cert-viewer-fs .cert-viewer-inner {
    padding: 4px 2px
  }

  .cert-viewer.cert-viewer-fs .cert-viewer-img-wrap {
    max-height: calc(100dvh - 52px)
  }

  .cert-viewer.cert-viewer-fs .cert-viewer-img {
    max-height: calc(100dvh - 52px)
  }
}

/* MICRO-ANIMATIONS (scroll-triggered) */
.sa {
  opacity: 0;
  transition: opacity .8s, transform .8s cubic-bezier(.16, 1, .3, 1)
}

.sa.vis {
  opacity: 1;
  transform: none !important
}

.sa-up {
  transform: translateY(30px)
}

.sa-left {
  transform: translateX(-30px)
}

.sa-right {
  transform: translateX(30px)
}

.sa-scale {
  transform: scale(.9)
}

.sa-rotate {
  transform: rotate(-3deg) translateY(20px)
}

.foot {
  text-align: center;
  margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--sub);
  opacity: .25;
  transition: opacity .3s
}

.foot:hover {
  opacity: .7
}

.visitor-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--sub);
  opacity: .15;
  text-align: center;
  margin-top: 8px;
  transition: opacity .3s
}

.visitor-count:hover {
  opacity: .5
}

.live-presence {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #22c55e;
  text-align: center;
  margin-top: 6px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .5s, max-height .5s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: .3px
}

.live-presence.visible {
  opacity: .7;
  max-height: 30px
}

.live-presence:hover {
  opacity: 1
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  flex-shrink: 0;
  animation: livePulse 2s ease-in-out infinite
}

@keyframes livePulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .4)
  }

  50% {
    opacity: .7;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0)
  }
}

/* MULTIPLAYER PRESENCE BAR */
.mp-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .5s, max-height .5s
}

.mp-bar.visible {
  opacity: 1;
  max-height: 120px;
  overflow: visible
}

.mp-avatars {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px
}

.mp-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px
}

.mp-nick-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  color: var(--sub);
  letter-spacing: .3px;
  max-width: 56px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  opacity: .7
}

.mp-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  transition: all .2s;
  position: relative
}

.mp-avatar:hover {
  border-color: rgba(0, 225, 255, .4);
  transform: scale(1.15);
  background: rgba(0, 225, 255, .08)
}

.mp-avatar-me {
  border-color: rgba(0, 225, 255, .3);
  background: rgba(0, 225, 255, .06)
}

.mp-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #22c55e;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .5s, max-height .5s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: .3px
}

.mp-status.visible {
  opacity: .7;
  max-height: 30px
}

/* PEER CURSORS */
.pe-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9990;
  pointer-events: none;
  display: none !important;
  transition: transform 16ms linear;
  will-change: transform;
  opacity: .6;
  flex-direction: column;
  align-items: center;
  gap: 2px
}

.pe-cursor-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  border: 2px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  line-height: 1
}

.pe-cursor-nick {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: .3px;
  color: #fff;
  background: rgba(0, 0, 0, .65);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center
}

/* CONTEXT MENU */
.mp-ctx {
  position: fixed;
  z-index: 10001;
  background: rgba(10, 16, 30, .8);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(0, 225, 255, .12);
  border-radius: 10px;
  padding: 4px 0;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .03);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px
}

.mp-ctx-title {
  padding: 6px 12px;
  color: #8b949e;
  font-size: 9px;
  letter-spacing: .5px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.mp-ctx-item {
  padding: 6px 12px;
  color: #e6edf3;
  cursor: pointer;
  transition: background .15s
}

.mp-ctx-item:hover {
  background: rgba(0, 225, 255, .08);
  color: #00e1ff
}

/* WHISPER BUBBLE */
.mp-whisper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10002;
  background: rgba(10, 16, 30, .8);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(168, 85, 247, .2);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(168, 85, 247, .12), inset 0 1px 0 rgba(255, 255, 255, .03);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace
}

.mp-whisper-input {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  padding: 6px 10px;
  color: #e6edf3;
  font-family: inherit;
  font-size: 11px;
  width: 220px;
  outline: none
}

.mp-whisper-input:focus {
  border-color: rgba(168, 85, 247, .4)
}

.mp-whisper-close {
  color: #8b949e;
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px
}

.mp-whisper-close:hover {
  color: #e6edf3
}

/* VS PANEL */
.mp-vs-panel {
  position: fixed;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  z-index: 9998;
  background: rgba(13, 17, 23, .9);
  border: 1px solid rgba(239, 68, 68, .3);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 4px 20px rgba(239, 68, 68, .15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px)
}

.mp-vs-label {
  font-size: 14px;
  font-weight: bold;
  color: #ef4444;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(239, 68, 68, .4)
}

.mp-vs-nick {
  font-size: 9px;
  color: #8b949e;
  letter-spacing: .5px
}

.mp-vs-score {
  font-size: 18px;
  color: #e6edf3;
  font-weight: bold
}

/* SPECTATOR BANNER */
.mp-spec-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(168, 85, 247, .12);
  border-bottom: 1px solid rgba(168, 85, 247, .3);
  padding: 6px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #c4b5fd;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px)
}

.mp-spec-exit {
  cursor: pointer;
  margin-left: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(168, 85, 247, .3);
  transition: all .15s
}

.mp-spec-exit:hover {
  background: rgba(168, 85, 247, .2);
  color: #fff
}

/* PARTICLE BURST (high-five) */
.mp-particle-burst {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 10003;
  pointer-events: none
}

.mp-particle {
  position: absolute;
  font-size: 18px;
  animation: particleFly .8s ease-out forwards;
  animation-delay: var(--delay)
}

@keyframes particleFly {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1
  }

  100% {
    transform: translate(var(--dx), var(--dy)) scale(0);
    opacity: 0
  }
}

/* COIN ANIMATION (XP tip) */
.mp-coin {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 10003;
  font-size: 28px;
  pointer-events: none;
  animation: coinFly 1s ease-out forwards
}

@keyframes coinFly {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1
  }

  100% {
    transform: translate(-50%, -200px) scale(.3);
    opacity: 0
  }
}

/* ATTENTION GLOW (swarm) */
.attention-glow {
  position: relative;
  animation: attnGlow 2s ease-in-out infinite
}

@keyframes attnGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 225, 255, 0)
  }

  50% {
    box-shadow: 0 0 12px 2px rgba(0, 225, 255, .12)
  }
}

.mp-attn-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: rgba(0, 225, 255, .15);
  border: 1px solid rgba(0, 225, 255, .3);
  border-radius: 10px;
  padding: 2px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: #00e1ff;
  letter-spacing: .3px;
  white-space: nowrap;
  z-index: 5
}

/* MULTIPLAYER LIGHT MODE */
.light-mode .mp-avatar {
  border-color: rgba(0, 0, 0, .08);
  background: rgba(0, 0, 0, .03)
}

.light-mode .mp-avatar:hover {
  border-color: rgba(0, 102, 255, .3);
  background: rgba(0, 102, 255, .06)
}

.light-mode .mp-avatar-me {
  border-color: rgba(0, 102, 255, .2);
  background: rgba(0, 102, 255, .05)
}

.light-mode .mp-status {
  color: #16a34a
}

.light-mode .pe-cursor-avatar {
  background: rgba(255, 255, 255, .6);
  border-color: var(--accent)
}

.light-mode .pe-cursor-nick {
  background: rgba(255, 255, 255, .85);
  color: #1f2937
}

.light-mode .mp-ctx {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-color: rgba(0, 0, 0, .08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1), inset 0 1px 0 rgba(255, 255, 255, .5)
}

.light-mode .mp-ctx-title {
  color: #6b7280;
  border-color: rgba(0, 0, 0, .06)
}

.light-mode .mp-ctx-item {
  color: #1f2937
}

.light-mode .mp-ctx-item:hover {
  background: rgba(0, 102, 255, .06);
  color: #0066ff
}

.light-mode .mp-whisper {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-color: rgba(139, 92, 246, .15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .08), inset 0 1px 0 rgba(255, 255, 255, .5)
}

.light-mode .mp-whisper-input {
  color: #1f2937;
  border-color: rgba(0, 0, 0, .12)
}

.light-mode .mp-vs-panel {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(239, 68, 68, .2)
}

.light-mode .mp-vs-score {
  color: #1f2937
}

.light-mode .mp-spec-banner {
  background: rgba(139, 92, 246, .08);
  border-color: rgba(139, 92, 246, .15);
  color: #7c3aed
}

.light-mode .attention-glow {
  box-shadow: 0 0 12px 2px rgba(0, 102, 255, .08)
}


/* CURSOR CHAT */
.cc-bubble {
  position: fixed;
  z-index: 10003;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 6px;
  border-radius: 16px 16px 16px 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  pointer-events: none;
  white-space: nowrap;
  max-width: 320px;
  transition: opacity .3s, transform .15s;
  animation: ccIn .25s ease-out
}

.cc-mine {
  background: rgba(0, 225, 255, .15);
  border: 1px solid rgba(0, 225, 255, .35);
  color: #e6edf3;
  box-shadow: 0 4px 20px rgba(0, 225, 255, .1)
}

.cc-peer {
  background: rgba(168, 85, 247, .12);
  border: 1px solid rgba(168, 85, 247, .3);
  color: #e6edf3;
  box-shadow: 0 4px 20px rgba(168, 85, 247, .1)
}

.cc-avatar {
  font-size: 14px;
  flex-shrink: 0
}

.cc-nick {
  font-size: 9px;
  color: rgba(168, 85, 247, .7);
  letter-spacing: .3px;
  text-transform: uppercase;
  flex-shrink: 0
}

.cc-text {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px
}

.cc-caret {
  width: 2px;
  height: 14px;
  background: rgba(0, 225, 255, .6);
  border-radius: 1px;
  animation: ccBlink 1s step-end infinite;
  flex-shrink: 0
}

@keyframes ccBlink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

@keyframes ccIn {
  from {
    opacity: 0;
    transform: scale(.85) translateY(4px)
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0)
  }
}

.light-mode .cc-mine {
  background: rgba(0, 102, 255, .1);
  border-color: rgba(0, 102, 255, .25);
  color: #1f2937;
  box-shadow: 0 4px 16px rgba(0, 102, 255, .08)
}

.light-mode .cc-peer {
  background: rgba(139, 92, 246, .08);
  border-color: rgba(139, 92, 246, .2);
  color: #1f2937;
  box-shadow: 0 4px 16px rgba(139, 92, 246, .08)
}

.light-mode .cc-nick {
  color: rgba(139, 92, 246, .6)
}

.light-mode .cc-caret {
  background: rgba(0, 102, 255, .5)
}

/* TERMINAL — Glassmorphism Ultra */
#termOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none
}

#termOverlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto
}

.term-win {
  width: 94%;
  max-width: 560px;
  max-height: 82vh;
  border-radius: 16px;
  background: rgba(8, 12, 24, .68);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0, 225, 255, .08);
  box-shadow: 0 8px 40px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .03);
  overflow: hidden;
  transform: scale(.88) translateY(12px);
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), opacity .4s;
  display: flex;
  flex-direction: column;
  position: relative
}

#termOverlay.show .term-win {
  transform: scale(1) translateY(0)
}

.term-win::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 225, 255, .008) 2px, rgba(0, 225, 255, .008) 4px);
  border-radius: 16px
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(12, 18, 32, .55);
  border-bottom: 1px solid rgba(0, 225, 255, .06);
  position: relative;
  z-index: 2;
  flex-shrink: 0
}

.term-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity .2s
}

.term-dot:hover {
  opacity: .7
}

.term-dot.r {
  background: #ff5f57;
  box-shadow: 0 0 6px rgba(255, 95, 87, .3)
}

.term-dot.y {
  background: #febc2e;
  box-shadow: 0 0 6px rgba(254, 188, 46, .3)
}

.term-dot.g {
  background: #28c840;
  box-shadow: 0 0 6px rgba(40, 200, 64, .3)
}

.term-tabs {
  display: flex;
  gap: 2px;
  margin-left: 10px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
  -ms-overflow-style: none
}

.term-tabs::-webkit-scrollbar {
  display: none
}

.term-tab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: .8px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .04);
  color: rgba(139, 148, 158, .6);
  cursor: pointer;
  transition: all .25s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0
}

.term-tab.active {
  background: rgba(0, 225, 255, .08);
  border-color: rgba(0, 225, 255, .15);
  color: #00e1ff;
  text-shadow: 0 0 8px rgba(0, 225, 255, .3)
}

.term-tab:hover:not(.active) {
  background: rgba(255, 255, 255, .05);
  color: #8b949e
}

.term-tab-close {
  font-size: 9px;
  opacity: .4;
  transition: opacity .2s;
  line-height: 1
}

.term-tab-close:hover {
  opacity: 1;
  color: #ef4444
}

.term-tab-add {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .08);
  color: rgba(139, 148, 158, .55);
  cursor: pointer;
  transition: all .25s;
  flex-shrink: 0
}

.term-tab-add:hover {
  background: rgba(0, 225, 255, .08);
  border-color: rgba(0, 225, 255, .15);
  color: #00e1ff
}

.term-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(139, 148, 158, .5);
  letter-spacing: 1px;
  margin-left: auto;
  flex-shrink: 0
}

.term-body {
  padding: 14px 16px;
  overflow-y: auto;
  flex: 1;
  max-height: 55vh;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.7;
  color: #c9d1d9;
  position: relative;
  z-index: 2;
  scroll-behavior: smooth
}

.term-body::-webkit-scrollbar {
  width: 5px
}

.term-body::-webkit-scrollbar-track {
  background: rgba(0, 225, 255, .02);
  border-radius: 3px
}

.term-body::-webkit-scrollbar-thumb {
  background: rgba(0, 225, 255, .1);
  border-radius: 3px
}

.term-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 225, 255, .2)
}

.term-line {
  margin-bottom: 4px;
  animation: termLineIn .25s ease both
}

@keyframes termLineIn {
  from {
    opacity: 0;
    transform: translateY(3px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.term-line.glitch {
  animation: termGlitch .3s ease
}

@keyframes termGlitch {
  0% {
    transform: translateX(0);
    filter: none
  }

  15% {
    transform: translateX(-3px);
    filter: hue-rotate(90deg)
  }

  30% {
    transform: translateX(2px);
    filter: hue-rotate(-90deg)
  }

  45% {
    transform: translateX(-1px)
  }

  60% {
    transform: translateX(1px);
    filter: hue-rotate(45deg)
  }

  100% {
    transform: translateX(0);
    filter: none
  }
}

.term-prompt {
  color: #00e1ff;
  text-shadow: 0 0 8px rgba(0, 225, 255, .3)
}

.term-cmd {
  color: #c9d1d9
}

.term-out {
  color: #8b949e;
  margin-left: 12px
}

.term-accent {
  color: #00e1ff;
  text-shadow: 0 0 8px rgba(0, 225, 255, .25)
}

.term-green {
  color: #3fb950;
  text-shadow: 0 0 8px rgba(63, 185, 80, .2)
}

.term-warn {
  color: #d29922
}

.term-cyan {
  color: #00e1ff;
  text-shadow: 0 0 8px rgba(0, 225, 255, .25)
}

.term-white {
  color: #e2e8f0
}

.term-red {
  color: #ef4444;
  text-shadow: 0 0 8px rgba(239, 68, 68, .2)
}

.term-gray {
  color: #6b7a90
}

.term-suggest {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  flex-direction: column;
  background: rgba(10, 16, 30, .8);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(0, 225, 255, .1);
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .4);
  max-height: 180px;
  overflow-y: auto
}

.term-suggest.show {
  display: flex
}

.term-suggest-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  color: #8b949e;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  gap: 8px
}

.term-suggest-item:hover,
.term-suggest-item.active {
  background: rgba(0, 225, 255, .08);
  color: #e2e8f0
}

.term-suggest-cmd {
  color: #00e1ff;
  min-width: 80px;
  text-shadow: 0 0 8px rgba(0, 225, 255, .2)
}

.term-suggest-desc {
  color: rgba(139, 148, 158, .6);
  font-size: 9px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.term-suggest-match {
  color: #00e1ff;
  text-decoration: underline
}

.term-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-top: 1px solid rgba(0, 225, 255, .06);
  background: rgba(8, 12, 24, .45);
  z-index: 2;
  flex-shrink: 0
}

.term-input-inner {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center
}

.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #c9d1d9;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  caret-color: #00e1ff;
  position: relative;
  z-index: 2
}

.term-ghost {
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(0, 225, 255, .2);
  pointer-events: none;
  white-space: pre;
  z-index: 1;
  line-height: inherit
}

.term-status {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  background: rgba(6, 9, 16, .5);
  border-top: 1px solid rgba(0, 225, 255, .04);
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  letter-spacing: .8px;
  color: rgba(139, 148, 158, .45);
  z-index: 2;
  flex-shrink: 0;
  overflow: hidden
}

.term-status-item {
  padding: 3px 10px;
  border-right: 1px solid rgba(0, 225, 255, .04);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px
}

.term-status-item:last-child {
  border-right: none
}

.term-status-badge {
  font-size: 6px;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-weight: 600
}

.term-status-badge.ai {
  background: rgba(34, 197, 94, .15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, .2)
}

.term-status-badge.kb {
  background: rgba(139, 148, 158, .08);
  color: #6b7a90;
  border: 1px solid rgba(139, 148, 158, .12)
}

.term-help-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  margin: 4px 0
}

.term-help-cmd {
  color: #00e1ff;
  text-shadow: 0 0 8px rgba(0, 225, 255, .2)
}

.term-help-desc {
  color: #6b7a90
}

.term-help-cat {
  color: #22c55e;
  font-weight: 700;
  grid-column: 1/-1;
  margin-top: 6px;
  text-shadow: 0 0 8px rgba(34, 197, 94, .2);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 9px
}

.term-help-cat:first-child {
  margin-top: 0
}

/* Light mode terminal */
.light-mode .term-win {
  background: rgba(255, 255, 255, .72);
  border-color: rgba(0, 0, 0, .08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .5)
}

.light-mode .term-win::after {
  background: none
}

.light-mode .term-bar {
  background: rgba(245, 247, 250, .6);
  border-color: rgba(0, 0, 0, .05)
}

.light-mode .term-tab {
  background: rgba(0, 0, 0, .03);
  border-color: rgba(0, 0, 0, .04);
  color: rgba(90, 101, 120, .5)
}

.light-mode .term-tab.active {
  background: rgba(0, 102, 255, .08);
  border-color: rgba(0, 102, 255, .15);
  color: #0066ff;
  text-shadow: none
}

.light-mode .term-title {
  color: rgba(90, 101, 120, .5)
}

.light-mode .term-body {
  color: #1f2937
}

.light-mode .term-cmd {
  color: #1f2937
}

.light-mode .term-out {
  color: #5a6578
}

.light-mode .term-prompt {
  color: #0066ff;
  text-shadow: none
}

.light-mode .term-accent {
  color: #0066ff;
  text-shadow: none
}

.light-mode .term-green {
  color: #16a34a;
  text-shadow: none
}

.light-mode .term-warn {
  color: #ca8a04
}

.light-mode .term-cyan {
  color: #0066ff;
  text-shadow: none
}

.light-mode .term-white {
  color: #0a0f1a
}

.light-mode .term-red {
  color: #dc2626;
  text-shadow: none
}

.light-mode .term-gray {
  color: #6b7280
}

.light-mode .term-input-wrap {
  background: rgba(245, 247, 250, .5);
  border-color: rgba(0, 0, 0, .05)
}

.light-mode .term-input {
  color: #1f2937;
  caret-color: #0066ff
}

.light-mode .term-ghost {
  color: rgba(0, 102, 255, .18)
}

.light-mode .term-suggest {
  background: rgba(255, 255, 255, .85);
  border-color: rgba(0, 0, 0, .08)
}

.light-mode .term-suggest-item:hover,
.light-mode .term-suggest-item.active {
  background: rgba(0, 102, 255, .06)
}

.light-mode .term-suggest-cmd {
  color: #0066ff;
  text-shadow: none
}

.light-mode .term-status {
  background: rgba(245, 247, 250, .5);
  border-color: rgba(0, 0, 0, .04)
}

.light-mode .term-help-cmd {
  color: #0066ff;
  text-shadow: none
}

.light-mode .term-help-cat {
  color: #16a34a;
  text-shadow: none
}

/* Terminal — Mobile */
@media(max-width:600px) {
  #termOverlay {
    align-items: flex-end;
    padding: 0
  }

  .term-win {
    width: 100%;
    max-width: 100%;
    max-height: 85vh;
    max-height: 85dvh;
    border-radius: 16px 16px 0 0;
    transform: scale(1) translateY(100%)
  }

  #termOverlay.show .term-win {
    transform: scale(1) translateY(0)
  }

  .term-bar {
    padding: 8px 10px;
    gap: 4px
  }

  .term-dots {
    display: none
  }

  .term-tabs {
    margin-left: 0
  }

  .term-tab {
    font-size: 7px;
    padding: 4px 8px
  }

  .term-tab-add {
    width: 20px;
    height: 20px;
    font-size: 11px
  }

  .term-title {
    font-size: 8px
  }

  .term-body {
    padding: 10px 12px;
    font-size: 10px;
    line-height: 1.6;
    max-height: 50vh;
    max-height: 50dvh
  }

  .term-input-wrap {
    padding: 8px 12px;
    gap: 4px
  }

  .term-input {
    font-size: 10px
  }

  .term-ghost {
    font-size: 10px
  }

  .term-prompt {
    font-size: 12px
  }

  .term-suggest-item {
    padding: 5px 8px;
    font-size: 9px
  }

  .term-suggest-cmd {
    min-width: 60px;
    font-size: 9px
  }

  .term-suggest-desc {
    font-size: 8px
  }

  .term-status {
    font-size: 6px
  }

  .term-status-item {
    padding: 3px 6px
  }

  .term-help-grid {
    gap: 1px 8px;
    font-size: 10px
  }

  .term-help-cat {
    font-size: 8px;
    margin-top: 4px
  }

  .term-help-cmd {
    font-size: 9px
  }

  .term-help-desc {
    font-size: 9px
  }
}

/* FINTECH TRADER GAME */
#gameOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none
}

#gameOverlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  touch-action: none;
  overscroll-behavior: none
}

.game-win {
  width: 96%;
  max-width: 380px;
  border-radius: 16px;
  background: rgba(8, 12, 24, .68);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0, 225, 255, .08);
  box-shadow: 0 8px 40px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .03);
  overflow: hidden;
  transform: scale(.9);
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
  text-align: center;
  padding: 0
}

#gameOverlay.show .game-win {
  transform: scale(1)
}

.game-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(12, 18, 32, .55);
  border-bottom: 1px solid rgba(0, 225, 255, .06)
}

.game-hud-item {
  text-align: center
}

.game-hud-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #00e1ff;
  line-height: 1;
  text-shadow: 0 0 8px rgba(0, 225, 255, .25)
}

.game-hud-val.profit {
  color: #22c55e;
  text-shadow: 0 0 8px rgba(34, 197, 94, .2)
}

.game-hud-val.loss {
  color: #ef4444;
  text-shadow: 0 0 8px rgba(239, 68, 68, .2)
}

.game-hud-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 6px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(139, 148, 158, .6);
  margin-top: 2px
}

.game-ticker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: rgba(139, 148, 158, .5);
  padding: 4px 14px;
  background: rgba(6, 10, 18, .4);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(0, 225, 255, .04)
}

.game-ticker span {
  display: inline-block;
  animation: tickscroll 80s linear infinite
}

@keyframes tickscroll {
  0% {
    transform: translateX(100%)
  }

  100% {
    transform: translateX(-100%)
  }
}

.game-ticker .up {
  color: #22c55e
}

.game-ticker .down {
  color: #ef4444
}

.game-canvas-wrap {
  padding: 8px;
  position: relative
}

.game-canvas {
  border: 1px solid rgba(0, 225, 255, .06);
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  max-width: 100%;
  touch-action: none;
  background: rgba(6, 10, 18, .5)
}

.game-level-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  margin-top: 2px
}

.game-level-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  color: rgba(139, 148, 158, .5);
  letter-spacing: 1px;
  flex-shrink: 0
}

.game-level-track {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .04);
  overflow: hidden
}

.game-level-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #00e1ff, #6366f1);
  transition: width .3s
}

.game-msg {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #8b949e;
  padding: 6px 14px;
  min-height: 24px
}

.game-msg .bonus {
  color: #fbbf24
}

.game-msg .warn {
  color: #ef4444
}

.game-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  color: rgba(139, 148, 158, .5);
  padding: 0 14px 4px
}

.game-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 8px 14px
}

.game-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 6px;
  border: 1px solid rgba(0, 225, 255, .15);
  background: rgba(0, 225, 255, .04);
  color: rgba(0, 225, 255, .7);
  cursor: pointer;
  transition: all .25s;
  -webkit-tap-highlight-color: transparent;
  flex: 1
}

.game-btn:hover,
.game-btn:active {
  border-color: rgba(0, 225, 255, .4);
  color: #00e1ff;
  background: rgba(0, 225, 255, .1);
  text-shadow: 0 0 8px rgba(0, 225, 255, .3)
}

.light-mode .game-win {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-color: rgba(0, 0, 0, .08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .1), inset 0 1px 0 rgba(255, 255, 255, .5)
}

.light-mode .game-hud {
  background: rgba(245, 247, 250, .5);
  border-color: rgba(0, 0, 0, .05)
}

.light-mode .game-hud-val {
  color: #0066ff;
  text-shadow: none
}

.light-mode .game-hud-label {
  color: #5a6578
}

.light-mode .game-ticker {
  background: rgba(245, 247, 250, .4);
  border-color: rgba(0, 0, 0, .04);
  color: #5a6578
}

.light-mode .game-canvas {
  border-color: rgba(0, 0, 0, .06);
  background: rgba(245, 247, 250, .5)
}

.light-mode .game-level-text {
  color: #5a6578
}

.light-mode .game-level-track {
  background: rgba(0, 0, 0, .06)
}

.light-mode .game-msg {
  color: #5a6578
}

.light-mode .game-hint {
  color: #9ca3af
}

.light-mode .game-btn {
  border-color: rgba(0, 0, 0, .06);
  background: rgba(0, 0, 0, .03);
  color: #5a6578
}

.light-mode .game-btn:hover,
.light-mode .game-btn:active {
  border-color: rgba(0, 102, 255, .25);
  color: #0066ff;
  background: rgba(0, 102, 255, .05);
  text-shadow: none
}

@media(max-width:600px) {
  .game-hint {
    display: none
  }
}

/* KEYBOARD SHORTCUTS */
#shortcutOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
  pointer-events: none
}

#shortcutOverlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto
}

.shortcut-panel {
  width: 90%;
  max-width: 360px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .15);
  transform: scale(.9);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .3)
}

#shortcutOverlay.show .shortcut-panel {
  transform: scale(1)
}

.light-mode .shortcut-panel {
  background: rgba(255, 255, 255, .45);
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .1)
}

.sc-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 16px
}

.sc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border)
}

.sc-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  min-width: 24px;
  text-align: center
}

.sc-desc {
  font-size: 11px;
  color: var(--sub)
}

.sc-close {
  text-align: center;
  margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--sub);
  opacity: .6;
  cursor: pointer;
  transition: all .2s
}

.sc-close:hover {
  opacity: 1;
  color: var(--accent)
}

/* FIRST-LOAD SHORTCUTS WELCOME */
#shortcutsWelcome {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none
}

#shortcutsWelcome.visible {
  opacity: 1;
  pointer-events: auto
}

.sw-panel {
  width: 94%;
  max-width: 820px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px 32px;
  border-radius: 18px;
  background: rgba(var(--bg2-rgb, 6, 8, 15), .75);
  border: 1px solid var(--border);
  transform: translateY(20px) scale(.95);
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), opacity .5s ease;
  opacity: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px)
}

.sw-panel::-webkit-scrollbar {
  width: 3px
}

.sw-panel::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px
}

#shortcutsWelcome.visible .sw-panel {
  transform: translateY(0) scale(1);
  opacity: 1
}

.sw-header {
  text-align: center;
  margin-bottom: 20px
}

.sw-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px
}

.sw-sub {
  font-size: 11px;
  color: var(--sub);
  line-height: 1.5
}

.sw-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px
}

.sw-group-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #c9d1d9;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border)
}

.sw-grid {
  display: flex;
  flex-direction: column;
  gap: 5px
}

.sw-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  transition: background .2s
}

.sw-item:hover {
  background: rgba(255, 255, 255, .07)
}

.sw-kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  min-width: 28px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--accent);
  flex-shrink: 0;
  padding: 0 5px
}

.sw-label {
  font-size: 10px;
  color: #e2e8f0;
  line-height: 1.3
}

.sw-dismiss {
  display: block;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 225, 255, .1), rgba(99, 102, 241, .1));
  border: 1px solid rgba(0, 225, 255, .15);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s
}

.sw-dismiss:hover {
  background: linear-gradient(135deg, rgba(0, 225, 255, .2), rgba(99, 102, 241, .2));
  transform: translateY(-1px)
}

.light-mode .sw-panel {
  background: rgba(255, 255, 255, .7)
}

.light-mode .sw-label {
  color: #1f2937
}

.light-mode .sw-group-title {
  color: #374151
}

/* CURSOR TRAIL */
.cursor-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9990;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: none
}

/* TESTIMONIAL CAROUSEL */
.tc-section {
  margin: 8px 0 12px
}

.tc-cats {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch
}

.tc-cats::-webkit-scrollbar {
  display: none
}

.tc-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--sub);
  cursor: pointer;
  white-space: nowrap;
  transition: all .3s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0
}

.tc-cat.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 225, 255, .06)
}

.tc-cat .tc-cat-count {
  opacity: .4;
  margin-left: 3px
}

.tc-viewport {
  position: relative;
  overflow: hidden;
  min-height: 100px
}

.tc-track {
  display: flex;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1)
}

.tc-slide {
  flex: 0 0 100%;
  padding: 0 2px;
  box-sizing: border-box
}

.tc-card {
  padding: 16px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color .3s;
  min-height: 80px;
  display: flex;
  flex-direction: column
}

.tc-card:hover {
  border-color: rgba(0, 225, 255, .1)
}

.tc-quote {
  font-size: 12px;
  line-height: 1.65;
  color: var(--sub);
  position: relative;
  padding-left: 16px
}

.tc-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -4px;
  font-size: 28px;
  color: var(--accent);
  opacity: .25;
  font-family: Georgia, serif;
  line-height: 1
}

.tc-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border)
}

.tc-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  font-weight: 700;
  color: #fff
}

.tc-info {
  flex: 1;
  min-width: 0
}

.tc-name {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.tc-role {
  font-size: 8px;
  color: var(--sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.tc-cat-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap
}

.tc-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px
}

.tc-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--sub);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .3s;
  font-size: 10px;
  -webkit-tap-highlight-color: transparent
}

.tc-arrow:hover,
.tc-arrow:focus-visible {
  border-color: var(--accent);
  color: var(--accent)
}

.tc-dots {
  display: flex;
  gap: 4px;
  align-items: center
}

.tc-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
  transition: all .3s;
  cursor: pointer
}

.tc-dot.active {
  width: 16px;
  border-radius: 2px;
  background: var(--accent)
}

.tc-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  color: var(--sub);
  letter-spacing: 1px;
  text-align: center;
  margin-top: 4px;
  opacity: .4
}

.tc-auto-bar {
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  margin-top: 6px;
  overflow: hidden;
  cursor: pointer
}

.tc-auto-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  opacity: .5;
  width: 0%;
  transition: width .4s cubic-bezier(.16, 1, .3, 1)
}

/* PRINT RESUME */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    overflow: visible !important
  }

  #preloader,
  .noise,
  .sbar,
  .cg,
  .cd,
  .mesh,
  #bgC,
  .top-btns,
  .weather-widget,
  .toast-container,
  .combo-indicator,
  .smart-cta,
  .xp-footer,
  .live-console,
  .visitor-count,
  .streak,
  .foot,
  #trophyOverlay,
  #shortcutOverlay,
  #termOverlay,
  #gameOverlay,
  #shareOverlay,
  #easterEgg,
  canvas,
  .vcb,
  .rec-card,
  #recContainer {
    display: none !important
  }

  .rv,
  .st {
    opacity: 1 !important;
    transform: none !important
  }

  #app {
    opacity: 1 !important;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px
  }

  .sa {
    opacity: 1 !important;
    transform: none !important
  }

  .print-only {
    display: block !important
  }

  .cert-card {
    break-inside: avoid;
    page-break-inside: avoid;
    border-color: #ddd !important;
    background: #fff !important
  }

  * {
    color: #000 !important;
    border-color: #ddd !important
  }
}

.print-only {
  display: none
}

/* ===========================================
      ARCADE OVERLAY (moved from JS for reliability)
      =========================================== */
#arcadeOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none
}

#arcadeOverlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto
}

.arcade-hub {
  width: 96%;
  max-width: 420px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 20px;
  background: rgba(8, 12, 24, .68);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0, 225, 255, .08);
  box-shadow: 0 8px 40px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .03);
  transform: scale(.9);
  transition: transform .5s cubic-bezier(.16, 1, .3, 1)
}

#arcadeOverlay.show .arcade-hub {
  transform: scale(1)
}

.arcade-hub::-webkit-scrollbar {
  width: 0;
  display: none
}

.arcade-header {
  text-align: center;
  margin-bottom: 16px
}

.arcade-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #00e1ff, #6366f1, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700
}

.arcade-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #6b7a90;
  margin-top: 4px
}

.arcade-level-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06)
}

.arcade-level-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap
}

.arcade-xp-track {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .04);
  overflow: hidden
}

.arcade-xp-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #00e1ff, #6366f1, #a855f7);
  transition: width .8s cubic-bezier(.16, 1, .3, 1)
}

.arcade-xp-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: #6b7a90;
  white-space: nowrap
}

.arcade-base-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(34, 197, 94, .08);
  border: 1px solid rgba(34, 197, 94, .2);
  color: #22c55e;
  margin-top: 8px
}

.arcade-combined {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(251, 191, 36, .04);
  border: 1px solid rgba(251, 191, 36, .12)
}

.arcade-combined-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: #fbbf24
}

.arcade-combined-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6b7280
}

.arcade-grid {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.arcade-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  cursor: pointer;
  transition: all .3s;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent
}

.arcade-card:hover:not(.locked) {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(0, 225, 255, .15);
  transform: translateX(4px)
}

.arcade-card.locked {
  opacity: .35;
  cursor: default;
  filter: grayscale(.8)
}

.arcade-card.locked:hover {
  transform: none
}

.arcade-card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none
}

.arcade-card:hover:not(.locked) .arcade-card-glow {
  opacity: 1
}

.arcade-card-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .06);
  transition: transform .3s
}

.arcade-card:hover:not(.locked) .arcade-card-icon {
  transform: scale(1.1) rotate(5deg)
}

.arcade-card-meta {
  flex: 1;
  min-width: 0
}

.arcade-card-name {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0
}

.arcade-card-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 1px
}

.arcade-card-desc {
  font-size: 10px;
  color: #6b7a90;
  margin-top: 3px
}

.arcade-card-right {
  text-align: right;
  flex-shrink: 0
}

.arcade-card-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #00e1ff
}

.arcade-card-plays {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  color: #6b7a90;
  letter-spacing: .5px;
  margin-top: 1px
}

.arcade-card-lock {
  font-size: 18px;
  color: #6b7a90
}

.arcade-card-unlock {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  color: #6b7a90;
  letter-spacing: .5px;
  margin-top: 2px
}

.arcade-card.base-game {
  border-color: rgba(34, 197, 94, .15)
}

.arcade-card.base-game::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22c55e, transparent)
}

.arcade-card.boss-card {
  border-color: rgba(239, 68, 68, .15)
}

.arcade-card.boss-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ef4444, transparent)
}

.arcade-close {
  text-align: center;
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--sub);
  opacity: .6;
  cursor: pointer;
  transition: all .2s
}

.arcade-close:hover {
  opacity: 1;
  color: var(--accent);
  text-shadow: 0 0 8px var(--glow)
}

.light-mode .arcade-hub {
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-color: rgba(0, 0, 0, .08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .1), inset 0 1px 0 rgba(255, 255, 255, .5)
}

.light-mode .arcade-subtitle {
  color: #5a6578
}

.light-mode .arcade-level-bar {
  background: rgba(0, 0, 0, .03);
  border-color: rgba(0, 0, 0, .06)
}

.light-mode .arcade-xp-track {
  background: rgba(0, 0, 0, .06)
}

.light-mode .arcade-xp-text {
  color: #5a6578
}

.light-mode .arcade-combined {
  background: rgba(251, 191, 36, .06);
  border-color: rgba(251, 191, 36, .15)
}

.light-mode .arcade-combined-label {
  color: #5a6578
}

.light-mode .arcade-card {
  background: rgba(0, 0, 0, .02);
  border-color: rgba(0, 0, 0, .06)
}

.light-mode .arcade-card:hover:not(.locked) {
  background: rgba(0, 102, 255, .03);
  border-color: rgba(0, 102, 255, .15)
}

.light-mode .arcade-card-icon {
  background: rgba(0, 0, 0, .03);
  border-color: rgba(0, 0, 0, .06)
}

.light-mode .arcade-card-name {
  color: #1f2937
}

.light-mode .arcade-card-desc {
  color: #5a6578
}

.light-mode .arcade-card-score {
  color: #0066ff
}

.light-mode .arcade-card-plays {
  color: #5a6578
}

.light-mode .arcade-card-lock {
  color: #9ca3af
}

.light-mode .arcade-card-unlock {
  color: #9ca3af
}

#miniGameOverlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none
}

#miniGameOverlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto
}

.mg-container {
  width: 96%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
  background: #080c14;
  border: none;
  transform: scale(.9);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1)
}

.light-mode .mg-container {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .1)
}

#miniGameOverlay.show .mg-container {
  transform: scale(1)
}

@media(max-width:600px) {
  .arcade-card {
    padding: 10px
  }

  .arcade-card-icon {
    width: 36px;
    height: 36px;
    font-size: 22px
  }
}

/* ===========================================
      COMMAND PALETTE OVERLAY (moved from JS for reliability)
      =========================================== */
#cmdPaletteOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: transparent;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 18vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
  pointer-events: none
}

#cmdPaletteOverlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto
}

.cmd-palette {
  width: 94%;
  max-width: 460px;
  border-radius: 16px;
  background: rgba(13, 20, 32, .88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
  overflow: hidden;
  transform: scale(.95) translateY(-10px);
  transition: transform .25s cubic-bezier(.16, 1, .3, 1)
}

.light-mode .cmd-palette {
  background: rgba(255, 255, 255, .9);
  border-color: rgba(0, 0, 0, .08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .12)
}

.light-mode .cmd-input {
  color: #1f2937
}

.light-mode .cmd-input::placeholder {
  color: #9ca3af
}

.light-mode .cmd-item-name {
  color: #1f2937
}

.light-mode .cmd-item:hover,
.light-mode .cmd-item.active {
  background: rgba(0, 102, 255, .06)
}

.light-mode .cmd-input-wrap {
  border-color: rgba(0, 0, 0, .08)
}

.light-mode .cmd-input {
  color: #1f2937;
  caret-color: #0066ff
}

.light-mode .cmd-input-hint {
  color: #9ca3af
}

.light-mode .cmd-results::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .12)
}

.light-mode .cmd-item-name {
  color: #1f2937
}

.light-mode .cmd-item-name mark {
  color: #0066ff
}

.light-mode .cmd-item-desc {
  color: #6b7280
}

.light-mode .cmd-item-key {
  background: rgba(0, 0, 0, .05);
  color: #5a6578
}

.light-mode .cmd-item-badge {
  background: rgba(0, 0, 0, .04);
  color: #6b7280
}

.light-mode .cmd-cat-header {
  color: #6b7280
}

.light-mode .cmd-empty {
  color: #9ca3af
}

.light-mode .cmd-footer {
  border-color: rgba(0, 0, 0, .06);
  color: #9ca3af
}

.light-mode .cmd-input-icon {
  color: #9ca3af
}

#cmdPaletteOverlay.show .cmd-palette {
  transform: scale(1) translateY(0)
}

.cmd-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #1a2332
}

.cmd-input-icon {
  color: #4a5568;
  font-size: 14px;
  flex-shrink: 0
}

.cmd-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #e2e8f0;
  caret-color: #00e1ff
}

.cmd-input::placeholder {
  color: #3a4a5c
}

.cmd-input-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: #2d3748;
  letter-spacing: 1px;
  flex-shrink: 0
}

.cmd-results {
  max-height: 320px;
  overflow-y: auto;
  padding: 6px
}

.cmd-results::-webkit-scrollbar {
  width: 3px
}

.cmd-results::-webkit-scrollbar-thumb {
  background: #1a2332;
  border-radius: 3px
}

.cmd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent
}

.cmd-item:hover,
.cmd-item.active {
  background: rgba(0, 225, 255, .06)
}

.cmd-item-icon {
  font-size: 16px;
  width: 24px;
  text-align: center;
  flex-shrink: 0
}

.cmd-item-text {
  flex: 1;
  min-width: 0
}

.cmd-item-name {
  font-size: 12px;
  color: #c9d1d9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.cmd-item-name mark {
  background: none;
  color: #00e1ff;
  font-weight: 600
}

.cmd-item-desc {
  font-size: 9px;
  color: #4a5568;
  margin-top: 1px
}

.cmd-item-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .06);
  color: #6b7a90;
  flex-shrink: 0
}

.cmd-item-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .04);
  color: #4a5568;
  letter-spacing: .5px;
  text-transform: uppercase;
  flex-shrink: 0
}

.cmd-cat-header {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #4a5568;
  padding: 8px 10px 4px;
  margin-top: 4px
}

.cmd-empty {
  text-align: center;
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #3a4a5c
}

.cmd-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 8px;
  border-top: 1px solid #111827;
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  color: #2d3748;
  letter-spacing: 1px
}

@media print {

  #cmdPaletteOverlay,
  #arcadeOverlay,
  #miniGameOverlay {
    display: none !important
  }
}

/* ===========================================
      ADMIN OVERLAY (moved from JS for reliability)
      =========================================== */
#adminOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  pointer-events: none;
  backdrop-filter: blur(6px)
}

#adminOverlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto
}

/* ===========================================
      UNIFIED TOAST SYSTEM
      =========================================== */
/* 1. New Container */
#uni-toast-container {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2147483647;
  /* Max possible Z-Index */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: max-content;
  max-width: 90vw;
}

/* 2. The Minimal Toast Card */
.uni-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  background: rgba(13, 17, 23, 0.82);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #e6edf3;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: -0.01em;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* 3. Visible State */
.uni-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 4. Layout */
.uni-toast-icon {
  font-size: 16px;
  line-height: 1;
}

.uni-toast-content {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.uni-toast-title {
  font-weight: 600;
  font-size: 13px;
  color: #fff;
}

.uni-toast-meta {
  font-size: 11px;
  color: #8b949e;
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
}

/* 5. Status Indicators (Dot) */
.uni-toast::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #30363d;
  margin-right: 2px;
}

.uni-toast[data-type="success"]::before {
  background: #238636;
  box-shadow: 0 0 12px rgba(35, 134, 54, 0.4);
}

.uni-toast[data-type="accent"]::before {
  background: #00e1ff;
  box-shadow: 0 0 12px rgba(0, 225, 255, 0.4);
}

.uni-toast[data-type="legendary"]::before {
  background: #e3b341;
  box-shadow: 0 0 12px rgba(227, 179, 65, 0.4);
}

.uni-toast[data-type="rare"]::before {
  background: #a371f7;
  box-shadow: 0 0 12px rgba(163, 113, 247, 0.4);
}

/* 6. Light Mode Toast Adaptation */
.light-mode .uni-toast {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1f2937;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
}

.light-mode .uni-toast::before {
  background: #d1d5db;
}

.light-mode .uni-toast[data-type="success"]::before {
  background: #16a34a;
  box-shadow: 0 0 10px rgba(22, 163, 74, 0.3);
}

.light-mode .uni-toast[data-type="accent"]::before {
  background: #0066ff;
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.3);
}

.light-mode .uni-toast[data-type="legendary"]::before {
  background: #ca8a04;
  box-shadow: 0 0 10px rgba(202, 138, 4, 0.3);
}

.light-mode .uni-toast[data-type="rare"]::before {
  background: #7c3aed;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}

.light-mode .uni-toast-title {
  color: #0a0f1a;
}

.light-mode .uni-toast-meta {
  color: #5a6578;
}

/* 7. BRUTE FORCE HIDE OLD ELEMENTS */
.toast-container,
.toast,
.trophy-toast,
.surprise-toast,
#shareCopied,
.combo-indicator,
#comboIndicator {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ===========================================
      CTA BUTTON OVERRIDES
      =========================================== */
/* 1. Container Spacing */
.always-cta-row {
  gap: 12px !important;
  padding: 0 8px;
  z-index: 1000 !important;
}

/* 2. Base "Advanced" Button Structure */
.always-cta {
  position: relative;
  height: 44px;
  border-radius: 12px !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Hover Lift Effect */
.always-cta:hover {
  transform: translateY(-3px) scale(1.02) !important;
}

/* Active Press Effect */
.always-cta:active {
  transform: translateY(-1px) scale(0.98) !important;
}

/* --- LEFT BUTTON: LINKEDIN (Glassmorphism Blue) --- */
.always-cta-linkedin {
  background: rgba(0, 119, 181, 0.15) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(0, 119, 181, 0.25) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(0, 119, 181, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.always-cta-linkedin:hover {
  background: rgba(0, 119, 181, 0.22) !important;
  border-color: rgba(0, 119, 181, 0.4) !important;
  box-shadow: 0 8px 28px rgba(0, 119, 181, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.light-mode .always-cta-linkedin {
  background: rgba(0, 119, 181, 0.1) !important;
  border-color: rgba(0, 119, 181, 0.2) !important;
  color: #0077b5 !important;
  box-shadow: 0 4px 16px rgba(0, 119, 181, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

.light-mode .always-cta-linkedin:hover {
  background: rgba(0, 119, 181, 0.15) !important;
  border-color: rgba(0, 119, 181, 0.3) !important;
}

/* Subtle gloss overlay */
.always-cta-linkedin::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
}

/* --- RIGHT BUTTON: GET MENTORED (Glassmorphism Pink/Purple) --- */
.always-cta-mentor {
  background: rgba(121, 40, 202, 0.1) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 0, 128, 0.2) !important;
  color: #fff !important;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(255, 0, 128, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* Gradient border accent line */
.always-cta-mentor::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 128, 0.5), rgba(121, 40, 202, 0.5), transparent);
  pointer-events: none;
}

/* Inner glow overlay */
.always-cta-mentor::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.06), rgba(121, 40, 202, 0.06));
  z-index: -1;
  opacity: 0.6;
  transition: opacity 0.3s;
  pointer-events: none;
}

.always-cta-mentor:hover::after {
  opacity: 1;
}

.always-cta-mentor:hover {
  background: rgba(121, 40, 202, 0.18) !important;
  border-color: rgba(255, 0, 128, 0.35) !important;
  box-shadow: 0 8px 28px rgba(121, 40, 202, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.light-mode .always-cta-mentor {
  background: rgba(121, 40, 202, 0.06) !important;
  border-color: rgba(255, 0, 128, 0.15) !important;
  color: #7928ca !important;
  box-shadow: 0 4px 16px rgba(121, 40, 202, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

.light-mode .always-cta-mentor:hover {
  background: rgba(121, 40, 202, 0.1) !important;
  border-color: rgba(255, 0, 128, 0.25) !important;
}

/* Icon/Image styling */
.always-cta img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s;
}

.always-cta:hover img {
  transform: scale(1.1) rotate(-5deg);
}

/* ═══ SPATIAL NAVIGATION — Hybrid Architecture ═══ */

/* --- PiP Camera Preview (Desktop) --- */
.spatial-pip {
  position: fixed;
  bottom: 16px;
  left: 16px;
  width: 120px;
  height: 90px;
  border-radius: 10px;
  border: 1px solid rgba(0, 243, 255, .25);
  box-shadow: 0 0 20px rgba(0, 243, 255, .1), inset 0 0 30px rgba(0, 243, 255, .03);
  z-index: 100001;
  transition: opacity .3s;
}

/* --- Full-screen Canvas Overlay (Desktop HUD) --- */
.spatial-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* --- HUD Label (shared mobile + desktop) --- */
.spatial-hud {
  position: fixed;
  bottom: 112px;
  left: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  letter-spacing: .8px;
  color: #00f3ff;
  background: rgba(6, 8, 15, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(0, 243, 255, .2);
  box-shadow: 0 0 12px rgba(0, 243, 255, .06);
  z-index: 100002;
  white-space: nowrap;
  transition: opacity .3s, transform .3s;
  display: flex;
  align-items: center;
  gap: 0;
}

.shud-sep {
  margin: 0 4px;
  opacity: .3;
  color: rgba(255, 255, 255, .4)
}

.shud-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  margin-right: 3px;
  vertical-align: middle;
  transition: background .6s
}

/* --- Spatial Point Hover Highlight --- */
.spatial-hover {
  outline: 2px solid rgba(0, 243, 255, .6) !important;
  outline-offset: 2px;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(0, 243, 255, .2);
  transition: outline .15s, box-shadow .15s
}

.light-mode .spatial-hover {
  outline-color: rgba(37, 99, 235, .5) !important;
  box-shadow: 0 0 12px rgba(37, 99, 235, .15)
}

/* --- Spatial Button Active State --- */
#spatialBtn.spatial-active {
  color: #00f3ff !important;
  position: relative;
}

#spatialBtn.spatial-active::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: spatialPulse 1.5s infinite;
}

@keyframes spatialPulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

/* --- iOS Motion Permission Button --- */
.spatial-motion-btn {
  position: fixed;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%) scale(.9);
  z-index: 100003;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 14px;
  border: 1px solid rgba(0, 243, 255, .3);
  background: rgba(6, 8, 15, .92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #00f3ff;
  cursor: pointer;
  box-shadow: 0 0 40px rgba(0, 243, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .08);
  opacity: 0;
  transition: all .4s cubic-bezier(.16, 1, .3, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.spatial-motion-btn.show {
  opacity: 1;
  transform: translate(-50%, 50%) scale(1);
}

.spatial-motion-btn:active {
  transform: translate(-50%, 50%) scale(.96);
}

.spatial-motion-btn i {
  font-size: 16px;
}

/* --- 3D Parallax Container --- */
.spatial-3d {
  perspective: 1000px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
}

.spatial-layer-bg,
.spatial-layer-mid,
.spatial-layer-fg {
  will-change: transform;
  transition: transform .08s linear;
  transform: translate3d(0, 0, 0);
}

.spatial-layer-bg {
  z-index: 0;
}

.spatial-layer-mid {
  z-index: 1;
}

.spatial-layer-fg {
  z-index: 2;
}

/* --- Section Indicator (Mobile) --- */
/* --- Gesture Label (Desktop HUD) --- */
.spatial-gesture-label {
  position: fixed;
  bottom: 140px;
  left: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #ff00ff;
  background: rgba(6, 8, 15, .7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255, 0, 255, .15);
  z-index: 100002;
  pointer-events: none;
  transition: opacity .3s;
}

.light-mode .spatial-gesture-label {
  background: rgba(255, 255, 255, .85);
  border-color: rgba(0, 102, 255, .15);
  color: #6b21a8;
}

/* --- Zen Mode / Reduced Motion / Responsive --- */
body.zen-mode .spatial-pip,
body.zen-mode .spatial-hud,
body.zen-mode .spatial-overlay,
body.zen-mode .spatial-motion-btn,
body.zen-mode .spatial-gesture-label,
body.zen-mode #spatialBtn {
  display: none !important;
}

@media(prefers-reduced-motion:reduce) {

  .spatial-layer-bg,
  .spatial-layer-mid,
  .spatial-layer-fg {
    transition: none !important;
    transform: none !important;
  }
}

@media(max-width:600px) {
  .spatial-pip {
    width: 90px;
    height: 68px;
    bottom: 12px;
    left: 12px;
  }

  .spatial-hud {
    bottom: 86px;
    left: 12px;
    font-size: 6px;
  }

  .spatial-gesture-label {
    bottom: 110px;
    left: 12px;
    font-size: 7px;
  }
}

/* --- Spatial Hover Highlight (Point gesture) --- */
.spatial-hover {
  outline: 2px solid #00f3ff !important;
  outline-offset: 3px;
  transition: outline .15s ease;
}

body.light-mode .spatial-hover {
  outline-color: #3b82f6 !important;
}

/* --- Light Mode Adaptations --- */
.light-mode .spatial-overlay {
  mix-blend-mode: normal;
}

.light-mode .spatial-hud {
  background: rgba(255, 255, 255, .88);
  border-color: rgba(0, 102, 255, .2);
  color: #0066ff;
  box-shadow: 0 0 12px rgba(0, 102, 255, .06);
}

.light-mode .shud-sep {
  color: rgba(0, 0, 0, .2)
}

.light-mode .spatial-pip {
  border-color: rgba(0, 102, 255, .2);
  box-shadow: 0 0 16px rgba(0, 102, 255, .08);
}

.light-mode .spatial-motion-btn {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(0, 102, 255, .25);
  color: #0066ff;
  box-shadow: 0 0 40px rgba(0, 102, 255, .08);
}

/* ═══ COMPUTE PRESSURE — Performance Degradation ═══ */

/* -- FAIR: tone down the heaviest GPU effects -- */
body.perf-fair .mesh div {
  filter: blur(40px);
}

body.perf-fair .noise {
  opacity: .2;
}

/* -- SERIOUS: strip blur, kill particles, reduce animations -- */
body.perf-serious,
body.perf-serious *,
body.perf-critical,
body.perf-critical * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.perf-serious .mesh div,
body.perf-critical .mesh div {
  filter: none;
  animation: none !important;
}

body.perf-serious #bgC,
body.perf-serious .noise,
body.perf-serious .cursor-glow,
body.perf-serious .emoji-cursor,
body.perf-critical #bgC,
body.perf-critical .noise,
body.perf-critical .cursor-glow,
body.perf-critical .emoji-cursor {
  display: none !important;
}

/* -- CRITICAL: maximum degradation — survival mode -- */
body.perf-critical .mesh {
  display: none !important;
}

body.perf-critical .spatial-overlay {
  mix-blend-mode: normal;
}

body.perf-critical .ng,
body.perf-critical .sd::after,
body.perf-critical .pf svg circle,
body.perf-critical .ticker span,
body.perf-critical .game-ticker span,
body.perf-critical .trophy-btn-dot,
body.perf-critical .live-dot,
body.perf-critical .live-console .cursor-blink,
body.perf-critical .cc-caret,
body.perf-critical .trophy-xp-fill::after {
  animation: none !important;
  transition: none !important;
}

/* ═══ P2P DATA MESH HUD ═══ */
.mesh-hud {
  position: fixed;
  bottom: 8px;
  right: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  letter-spacing: .5px;
  color: #a0aec0;
  background: rgba(6, 8, 15, .75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, .08);
  z-index: 8500;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: opacity .4s;
}

.light-mode .mesh-hud {
  background: rgba(255, 255, 255, .8);
  border-color: rgba(0, 0, 0, .06);
  color: #5a6578;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.mesh-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.mesh-indicator.mesh-full {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, .5);
}

.mesh-indicator.mesh-partial {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, .4);
}

.mesh-indicator.mesh-off {
  background: #6b7a90;
}

.mesh-label {
  color: inherit;
}

body.zen-mode .mesh-hud {
  display: none !important;
}

@media(max-width:600px) {
  .mesh-hud {
    bottom: 6px;
    right: 12px;
    font-size: 6px;
    padding: 3px 8px;
  }
}

/* ═══ MOOD INDICATOR ═══ */
.mood-indicator {
  position: fixed;
  bottom: 164px;
  left: 16px;
  z-index: 100002;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .5px;
  color: rgba(255, 255, 255, .7);
  background: rgba(6, 8, 15, .7);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  padding: 5px 12px 5px 8px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, .08);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s, transform .6s;
  pointer-events: none
}

.mood-indicator.show {
  opacity: 1;
  transform: translateY(0)
}

.mood-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background .8s
}

.mood-label {
  white-space: nowrap;
  transition: color .8s
}

.mood-src {
  margin-left: 2px;
  font-size: 10px;
  opacity: .5
}

.light-mode .mood-indicator {
  background: rgba(255, 255, 255, .8);
  border-color: rgba(0, 0, 0, .06);
  color: #5a6578;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06)
}

body.zen-mode .mood-indicator {
  display: none !important
}

@media(max-width:600px) {
  .mood-indicator {
    bottom: 138px;
    left: 12px;
    font-size: 7px;
    padding: 4px 10px 4px 6px
  }

  .mood-dot {
    width: 5px;
    height: 5px
  }
}

/* ═══ MOBILE SCREENSHOT PREVENTION ═══ */
@media(pointer:coarse) {
  body img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  body a,
  body button,
  body input,
  body textarea {
    -webkit-touch-callout: none;
  }
}

.ss-guard {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #06080f;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s
}

.ss-guard.active {
  opacity: 1
}

/* ═══ BUG BASH (rage-click easter egg) ═══ */
.bug-sprite {
  position: fixed;
  z-index: 9995;
  font-size: 24px;
  cursor: pointer;
  transition: none;
  user-select: none;
  -webkit-user-select: none;
  animation: bugScurry 4s ease-in-out forwards;
  pointer-events: auto;
  filter: drop-shadow(0 0 4px rgba(239, 68, 68, .4))
}

@keyframes bugScurry {
  0% {
    opacity: 1
  }

  80% {
    opacity: 1
  }

  100% {
    opacity: 0;
    transform: translate(var(--bx), var(--by)) rotate(var(--br))
  }
}

.bug-splat {
  position: fixed;
  z-index: 9995;
  font-size: 28px;
  pointer-events: none;
  animation: bugSplat .5s ease-out forwards
}

@keyframes bugSplat {
  0% {
    transform: scale(1);
    opacity: 1
  }

  100% {
    transform: scale(1.5);
    opacity: 0
  }
}

@media print {

  .bug-sprite,
  .bug-splat {
    display: none !important
  }
}

/* ═══ GAMIFICATION ENGINE ═══ */
#gameCaseOverlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(6, 8, 15, .92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s
}

#gameCaseOverlay.show {
  opacity: 1;
  visibility: visible
}

.gc-panel {
  width: 94%;
  max-width: 560px;
  max-height: 88vh;
  background: rgba(12, 16, 28, .95);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(.92);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1)
}

#gameCaseOverlay.show .gc-panel {
  transform: scale(1)
}

.gc-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding: 0;
  flex-shrink: 0;
  overflow-x: auto
}

.gc-tab {
  flex: 1;
  padding: 12px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  background: none;
  border: none;
  cursor: pointer;
  transition: color .3s, border-color .3s;
  border-bottom: 2px solid transparent;
  white-space: nowrap
}

.gc-tab:hover {
  color: rgba(255, 255, 255, .7)
}

.gc-tab.active {
  color: #00e1ff;
  border-bottom-color: #00e1ff
}

.gc-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .1) transparent
}

.gc-close {
  text-align: center;
  padding: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: rgba(255, 255, 255, .25);
  cursor: pointer;
  letter-spacing: 1px;
  flex-shrink: 0
}

.gc-close:hover {
  color: rgba(255, 255, 255, .5)
}

/* Achievements tab */
.gc-achv-header {
  text-align: center;
  margin-bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, .6)
}

.gc-cat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(0, 225, 255, .6);
  margin: 16px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0, 225, 255, .1)
}

.gc-achv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 6px
}

.gc-achv {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .04);
  background: rgba(255, 255, 255, .02);
  text-align: center;
  transition: transform .2s, border-color .2s
}

.gc-achv.unlocked {
  border-color: rgba(255, 255, 255, .08)
}

.gc-achv.locked {
  opacity: .45
}

.gc-achv.unlocked:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 225, 255, .2)
}

.gc-achv-icon {
  font-size: 28px;
  margin-bottom: 4px
}

.gc-achv-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 2px
}

.gc-achv-desc {
  font-size: 8px;
  color: rgba(255, 255, 255, .4);
  line-height: 1.3;
  margin-bottom: 4px
}

.gc-achv-rarity {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  letter-spacing: .5px
}

.gc-achv-time {
  font-size: 7px;
  color: rgba(255, 255, 255, .25);
  margin-top: 2px
}

.gc-achv.mythic {
  border-color: rgba(6, 182, 212, .15);
  background: rgba(6, 182, 212, .04);
  box-shadow: 0 0 20px rgba(6, 182, 212, .06)
}

.gc-achv.mythic.unlocked {
  animation: mythicPulse 3s ease-in-out infinite
}

@keyframes mythicPulse {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(6, 182, 212, .08)
  }

  50% {
    box-shadow: 0 0 24px rgba(6, 182, 212, .15)
  }
}

.gc-achv.legendary {
  border-color: rgba(251, 191, 36, .12);
  background: rgba(251, 191, 36, .03)
}

/* Progress tab */
.gc-progress-header {
  text-align: center;
  margin-bottom: 16px
}

.gc-level-big {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px
}

.gc-level-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, .5);
  margin-top: 2px
}

.gc-xp-section {
  margin-bottom: 18px
}

.gc-xp-bar {
  height: 6px;
  background: rgba(255, 255, 255, .06);
  border-radius: 3px;
  overflow: hidden
}

.gc-xp-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .6s cubic-bezier(.16, 1, .3, 1)
}

.gc-xp-label {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, .4);
  margin-top: 4px
}

.gc-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px
}

.gc-stat {
  text-align: center;
  padding: 8px 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .04)
}

.gc-stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #00e1ff
}

.gc-stat-lbl {
  font-size: 8px;
  color: rgba(255, 255, 255, .35);
  margin-top: 2px;
  letter-spacing: .3px
}

.gc-section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(0, 225, 255, .5);
  margin: 14px 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0, 225, 255, .08)
}

.gc-branch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px
}

.gc-branch-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, .6);
  width: 70px;
  flex-shrink: 0
}

.gc-branch-tier {
  font-size: 7px;
  color: rgba(0, 225, 255, .6)
}

.gc-branch-bar {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, .06);
  border-radius: 3px;
  overflow: hidden
}

.gc-branch-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .6s
}

.gc-branch-explorer {
  background: linear-gradient(90deg, #22c55e, #00e1ff)
}

.gc-branch-social {
  background: linear-gradient(90deg, #8b5cf6, #ec4899)
}

.gc-branch-gamer {
  background: linear-gradient(90deg, #f59e0b, #ef4444)
}

.gc-branch-hacker {
  background: linear-gradient(90deg, #06b6d4, #6366f1)
}

.gc-branch-scholar {
  background: linear-gradient(90deg, #8b5cf6, #ec4899)
}

.gc-branch-stat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: rgba(255, 255, 255, .3);
  width: 36px;
  text-align: right
}

.gc-prestige-btn {
  width: 100%;
  padding: 10px;
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #fbbf24;
  background: rgba(251, 191, 36, .06);
  border: 1px solid rgba(251, 191, 36, .15);
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s
}

.gc-prestige-btn:hover {
  background: rgba(251, 191, 36, .12)
}

.gc-share-row {
  text-align: center;
  margin-top: 12px
}

.gc-share-btn {
  padding: 8px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s
}

.gc-share-btn:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff
}

/* Link Identity / Save Profile */
.gc-link-section {
  margin-top: 16px;
  padding: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  text-align: center
}

.gc-link-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,.5);
  padding: 4px 0
}

.gc-link-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(255,255,255,.4);
  margin-bottom: 12px
}

.gc-link-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px
}

.gc-link-btn {
  padding: 8px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s
}

.gc-link-btn:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.2)
}

.gc-link-email:hover { border-color: rgba(99,179,237,.4) }
.gc-link-linkedin:hover { border-color: rgba(10,102,194,.5) }

.gc-link-form {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap
}

.gc-link-input {
  padding: 7px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #fff;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 5px;
  outline: none;
  width: 200px;
  max-width: 60vw
}

.gc-link-input:focus {
  border-color: rgba(99,179,237,.5)
}

.gc-link-submit {
  padding: 7px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #fff;
  background: rgba(99,179,237,.2);
  border: 1px solid rgba(99,179,237,.3);
  border-radius: 5px;
  cursor: pointer;
  transition: all .2s
}

.gc-link-submit:hover {
  background: rgba(99,179,237,.35)
}

.gc-link-error {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #ef4444;
  margin-top: 6px;
  width: 100%
}

/* Challenges tab */
.gc-challenge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .04);
  background: rgba(255, 255, 255, .02);
  margin-bottom: 8px
}

.gc-challenge.done {
  border-color: rgba(34, 197, 94, .15);
  background: rgba(34, 197, 94, .04)
}

.gc-challenge-icon {
  font-size: 24px;
  flex-shrink: 0
}

.gc-challenge-body {
  flex: 1
}

.gc-challenge-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, .7)
}

.gc-challenge-xp {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: rgba(0, 225, 255, .6);
  margin-top: 2px
}

.gc-challenge-streak {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, .3);
  text-align: center;
  margin: 6px 0 14px
}

/* Leaderboard tab */
.gc-lb-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px
}

.gc-lb-tab {
  flex: 1;
  padding: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .04);
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all .2s
}

.gc-lb-tab:hover {
  color: rgba(255, 255, 255, .6)
}

.gc-lb-tab.active {
  color: #00e1ff;
  border-color: rgba(0, 225, 255, .2);
  background: rgba(0, 225, 255, .04)
}

.gc-lb-loading,
.gc-lb-empty {
  text-align: center;
  padding: 30px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, .3)
}

.gc-lb-list {
  display: flex;
  flex-direction: column;
  gap: 3px
}

.gc-lb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .02);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px
}

.gc-lb-row:nth-child(1) {
  background: rgba(251, 191, 36, .06);
  border: 1px solid rgba(251, 191, 36, .1)
}

.gc-lb-row:nth-child(2) {
  background: rgba(192, 192, 192, .04);
  border: 1px solid rgba(192, 192, 192, .08)
}

.gc-lb-row:nth-child(3) {
  background: rgba(205, 127, 50, .04);
  border: 1px solid rgba(205, 127, 50, .08)
}

.gc-lb-me {
  border: 1px solid rgba(0, 225, 255, .15) !important;
  background: rgba(0, 225, 255, .04) !important
}

.gc-lb-rank {
  width: 28px;
  text-align: center;
  flex-shrink: 0;
  font-size: 11px
}

.gc-lb-name {
  flex: 1;
  color: rgba(255, 255, 255, .8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.gc-lb-score {
  color: #00e1ff;
  font-size: 9px;
  flex-shrink: 0
}

.gc-lb-lvl {
  color: rgba(255, 255, 255, .3);
  font-size: 8px;
  flex-shrink: 0;
  width: 36px;
  text-align: right
}

.gc-lb-join {
  width: 100%;
  padding: 10px;
  margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #00e1ff;
  background: rgba(0, 225, 255, .06);
  border: 1px solid rgba(0, 225, 255, .15);
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s
}

.gc-lb-join:hover {
  background: rgba(0, 225, 255, .12)
}

/* Challenge HUD */
.challenge-hud {
  position: fixed;
  bottom: 12px;
  right: 16px;
  transform: translateY(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, .6);
  background: rgba(12, 14, 24, .35);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  padding: 5px 12px 5px 8px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .06);
  opacity: 0;
  transition: opacity .6s, transform .6s, bottom .3s;
  cursor: pointer
}

.challenge-hud.show {
  opacity: 1;
  transform: translateY(0)
}

body:has(.lb-article-toolbar) .challenge-hud {
  bottom: 12px
}

.challenge-hud:hover {
  border-color: rgba(0, 225, 255, .15);
  background: rgba(12, 14, 24, .55)
}

.challenge-hud.done {
  border-color: rgba(34, 197, 94, .12)
}

.challenge-hud-icon {
  font-size: 12px;
  flex-shrink: 0
}

.challenge-hud-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px
}

/* Light mode overrides */
.light-mode #gameCaseOverlay {
  background: rgba(255, 255, 255, .92)
}

.light-mode .gc-panel {
  background: rgba(255, 255, 255, .97);
  border-color: rgba(0, 0, 0, .06)
}

.light-mode .gc-tab {
  color: rgba(0, 0, 0, .35)
}

.light-mode .gc-tab:hover {
  color: rgba(0, 0, 0, .6)
}

.light-mode .gc-tab.active {
  color: #0066ff;
  border-bottom-color: #0066ff
}

.light-mode .gc-achv {
  border-color: rgba(0, 0, 0, .04);
  background: rgba(0, 0, 0, .02)
}

.light-mode .gc-achv-name {
  color: #1e293b
}

.light-mode .gc-achv-desc {
  color: #64748b
}

.light-mode .gc-stat {
  background: rgba(0, 0, 0, .02);
  border-color: rgba(0, 0, 0, .04)
}

.light-mode .gc-stat-val {
  color: #0066ff
}

.light-mode .gc-close {
  color: rgba(0, 0, 0, .25)
}

.light-mode .gc-lb-row {
  background: rgba(0, 0, 0, .02)
}

.light-mode .gc-lb-name {
  color: #1e293b
}

.light-mode .gc-lb-score {
  color: #0066ff
}

.light-mode .gc-challenge {
  border-color: rgba(0, 0, 0, .04);
  background: rgba(0, 0, 0, .02)
}

.light-mode .gc-challenge-desc {
  color: #334155
}

.light-mode .gc-section-title {
  color: rgba(0, 102, 255, .5);
  border-color: rgba(0, 102, 255, .08)
}

.light-mode .gc-cat-label {
  color: rgba(0, 102, 255, .5);
  border-color: rgba(0, 102, 255, .08)
}

.light-mode .gc-level-big {
  color: #0066ff
}

.light-mode .gc-level-name {
  color: #64748b
}

.light-mode .gc-xp-bar {
  background: rgba(0, 0, 0, .06)
}

.light-mode .gc-stat-lbl {
  color: #94a3b8
}

.light-mode .gc-branch-label {
  color: #475569
}

.light-mode .gc-branch-tier {
  color: #0066ff
}

.light-mode .gc-branch-bar {
  background: rgba(0, 0, 0, .06)
}

.light-mode .gc-branch-stat {
  color: #94a3b8
}

.light-mode .gc-prestige-btn {
  color: #b45309;
  border-color: rgba(180, 83, 9, .2);
  background: rgba(251, 191, 36, .06)
}

.light-mode .gc-prestige-btn:hover {
  background: rgba(251, 191, 36, .12)
}

.light-mode .gc-share-btn {
  color: #64748b;
  border-color: rgba(0, 0, 0, .08);
  background: rgba(0, 0, 0, .02)
}

.light-mode .gc-share-btn:hover {
  background: rgba(0, 0, 0, .06);
  color: #1e293b
}

.light-mode .gc-link-section {
  background: rgba(0, 102, 255, .03);
  border-color: rgba(0, 102, 255, .08)
}

.light-mode .gc-link-status {
  color: #64748b
}

.light-mode .gc-link-desc {
  color: #94a3b8
}

.light-mode .gc-link-btn {
  color: #475569;
  border-color: rgba(0, 0, 0, .08);
  background: rgba(0, 0, 0, .02)
}

.light-mode .gc-link-btn:hover {
  background: rgba(0, 102, 255, .06);
  color: #0066ff;
  border-color: rgba(0, 102, 255, .15)
}

.light-mode .gc-link-input {
  background: rgba(0, 0, 0, .02);
  border-color: rgba(0, 0, 0, .08);
  color: #1e293b
}

.light-mode .gc-link-input:focus {
  border-color: rgba(0, 102, 255, .4)
}

.light-mode .gc-link-submit {
  background: rgba(0, 102, 255, .12);
  color: #0066ff;
  border-color: rgba(0, 102, 255, .2)
}

.light-mode .gc-link-submit:hover {
  background: rgba(0, 102, 255, .2)
}

.light-mode .gc-lb-tab {
  color: rgba(0, 0, 0, .35);
  border-color: rgba(0, 0, 0, .06);
  background: rgba(0, 0, 0, .02)
}

.light-mode .gc-lb-tab:hover {
  color: rgba(0, 0, 0, .6)
}

.light-mode .gc-lb-tab.active {
  color: #0066ff;
  border-color: rgba(0, 102, 255, .2);
  background: rgba(0, 102, 255, .06)
}

.light-mode .gc-lb-row:nth-child(1) .gc-lb-rank {
  color: #b45309
}

.light-mode .gc-lb-row:nth-child(2) .gc-lb-rank {
  color: #6b7280
}

.light-mode .gc-lb-row:nth-child(3) .gc-lb-rank {
  color: #92400e
}

.light-mode .gc-challenge.done {
  border-color: rgba(22, 163, 74, .15);
  background: rgba(22, 163, 74, .04)
}

.light-mode .gc-challenge-xp {
  color: #0066ff
}

.light-mode .gc-challenge-streak {
  color: #94a3b8
}

.light-mode .gc-achv.unlocked {
  border-color: rgba(0, 102, 255, .08);
  background: rgba(0, 102, 255, .02)
}

.light-mode .gc-achv-time {
  color: #94a3b8
}

.light-mode .gc-achv-count {
  color: #475569
}

.light-mode .gc-close:hover {
  color: rgba(0, 0, 0, .5)
}

.light-mode .challenge-hud {
  background: rgba(255, 255, 255, .35);
  border-color: rgba(0, 0, 0, .08);
  color: #5a6578;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .06), inset 0 1px 0 rgba(255, 255, 255, .5)
}

.light-mode .challenge-hud:hover {
  border-color: rgba(0, 102, 255, .15);
  background: rgba(255, 255, 255, .55)
}

.light-mode .challenge-hud.done {
  border-color: rgba(22, 163, 74, .12)
}

.light-mode .trophy-name {
  color: #1e293b
}

.light-mode .trophy-desc {
  color: #64748b
}

.light-mode .trophy-item {
  border-bottom-color: rgba(0, 0, 0, .04)
}

/* Zen mode hide */
body.zen-mode #gameCaseOverlay,
body.zen-mode .challenge-hud {
  display: none !important
}

@media(max-width:600px) {
  .gc-panel {
    max-width: 100%;
    border-radius: 16px
  }

  .gc-achv-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr))
  }

  .gc-stats-row {
    grid-template-columns: repeat(2, 1fr)
  }

  .gc-tab {
    font-size: 8px;
    padding: 10px 4px
  }

  .challenge-hud {
    bottom: 10px;
    right: 12px;
    font-size: 7px
  }

  body:has(.lb-article-toolbar) .challenge-hud {
    bottom: 10px
  }
}

@media print {

  #gameCaseOverlay,
  .challenge-hud {
    display: none !important
  }
}

/* ═══ NFT ENGINE ═══ */

/* Wallet button in top bar */
.nft-wallet-btn {
  position: relative
}

.nft-wallet-btn.connected {
  color: #22c55e
}

.nft-wallet-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  display: none;
  box-shadow: 0 0 6px rgba(34, 197, 94, .5)
}

/* Achievement NFT badge */
.gc-achv-nft {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 10px;
  opacity: .7
}

.gc-achv-nft.on-chain {
  opacity: 1;
  filter: drop-shadow(0 0 3px rgba(34, 197, 94, .4))
}

.gc-achv {
  position: relative
}

/* NFTs tab header */
.nft-tab-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px
}

.nft-pk-card {
  width: 100%;
  max-width: 340px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--border);
  transition: all .3s
}

.nft-pk-card.nft-pk-verified {
  border-color: rgba(34, 197, 94, .2);
  background: rgba(34, 197, 94, .03)
}

.nft-pk-row {
  display: flex;
  align-items: center;
  gap: 10px
}

.nft-pk-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 225, 255, .08), rgba(99, 102, 241, .08));
  border: 1px solid rgba(0, 225, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00e1ff;
  font-size: 15px;
  flex-shrink: 0
}

.nft-pk-verified .nft-pk-icon {
  background: linear-gradient(135deg, rgba(34, 197, 94, .08), rgba(34, 197, 94, .04));
  border-color: rgba(34, 197, 94, .15);
  color: #22c55e
}

.nft-pk-info {
  flex: 1;
  min-width: 0
}

.nft-pk-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--text)
}

.nft-pk-detail {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  color: var(--sub);
  margin-top: 1px;
  letter-spacing: .3px
}

.nft-pk-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(34, 197, 94, .08);
  border: 1px solid rgba(34, 197, 94, .15);
  color: #22c55e;
  flex-shrink: 0;
  white-space: nowrap
}

.nft-pk-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 225, 255, .15);
  background: rgba(0, 225, 255, .06);
  color: #00e1ff;
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
  white-space: nowrap
}

.nft-pk-btn:hover {
  background: rgba(0, 225, 255, .12);
  border-color: rgba(0, 225, 255, .3)
}

.nft-pk-wallet-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(34, 197, 94, .1);
  color: #22c55e
}

.light-mode .nft-pk-card {
  background: rgba(0, 0, 0, .02);
  border-color: rgba(0, 0, 0, .06)
}

.light-mode .nft-pk-card.nft-pk-verified {
  background: rgba(34, 197, 94, .03);
  border-color: rgba(34, 197, 94, .12)
}

.light-mode .nft-pk-icon {
  background: rgba(0, 102, 255, .06);
  border-color: rgba(0, 102, 255, .1);
  color: #0066ff
}

.light-mode .nft-pk-verified .nft-pk-icon {
  background: rgba(34, 197, 94, .06);
  border-color: rgba(34, 197, 94, .1);
  color: #16a34a
}

.light-mode .nft-pk-btn {
  border-color: rgba(0, 102, 255, .15);
  background: rgba(0, 102, 255, .04);
  color: #0066ff
}

.nft-connect-btn {
  padding: 8px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #00e1ff;
  background: rgba(0, 225, 255, .06);
  border: 1px solid rgba(0, 225, 255, .15);
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s
}

.nft-connect-btn:hover {
  background: rgba(0, 225, 255, .12);
  border-color: rgba(0, 225, 255, .3)
}

.nft-wallet-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(34, 197, 94, .06);
  border: 1px solid rgba(34, 197, 94, .15);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px
}

.nft-wallet-addr {
  color: rgba(255, 255, 255, .7)
}

.nft-wallet-disconnect {
  background: none;
  border: none;
  color: rgba(255, 255, 255, .3);
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color .2s
}

.nft-wallet-disconnect:hover {
  color: #ef4444
}

/* NFT stats bar */
.nft-stats-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px
}

.nft-stat {
  text-align: center
}

.nft-stat-val {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #00e1ff
}

.nft-stat-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: rgba(255, 255, 255, .3);
  letter-spacing: .5px;
  text-transform: uppercase
}

/* NFT empty state */
.nft-empty {
  text-align: center;
  padding: 40px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, .3)
}

/* NFT card grid */
.nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 10px
}

.nft-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .02);
  overflow: hidden;
  transition: transform .25s, border-color .3s, box-shadow .3s;
  cursor: default
}

.nft-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, .12)
}

.nft-card.rare:hover {
  box-shadow: 0 4px 20px rgba(59, 130, 246, .1)
}

.nft-card.epic:hover {
  box-shadow: 0 4px 20px rgba(168, 85, 247, .1)
}

.nft-card.legendary:hover {
  box-shadow: 0 4px 20px rgba(251, 191, 36, .1)
}

.nft-card.mythic:hover {
  box-shadow: 0 4px 20px rgba(6, 182, 212, .12)
}

.nft-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(0, 0, 0, .3)
}

.nft-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.nft-card-body {
  padding: 8px 10px 6px
}

.nft-card-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.nft-card-rarity {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  letter-spacing: .5px;
  margin-top: 1px
}

.nft-card-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  color: rgba(255, 255, 255, .2);
  margin-top: 2px
}

.nft-card-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  margin-top: 3px;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block
}

.nft-card-status.off-chain {
  color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .04)
}

.nft-card-status.on-chain {
  color: #22c55e;
  background: rgba(34, 197, 94, .08)
}

.nft-card-actions {
  display: flex;
  gap: 4px;
  padding: 6px 8px 8px;
  border-top: 1px solid rgba(255, 255, 255, .03)
}

.nft-card-action {
  flex: 1;
  padding: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  text-align: center;
  color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .04);
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  display: block
}

.nft-card-action:hover {
  color: #00e1ff;
  border-color: rgba(0, 225, 255, .15);
  background: rgba(0, 225, 255, .04)
}

.nft-card-materialize {
  color: rgba(0, 225, 255, .6) !important
}

/* Materialize modal */
.nft-mat-overlay {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(6, 8, 15, .92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s
}

.nft-mat-overlay.show {
  opacity: 1;
  visibility: visible
}

.nft-mat-panel {
  width: 92%;
  max-width: 340px;
  background: rgba(12, 16, 28, .97);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  transform: scale(.9);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1)
}

.nft-mat-overlay.show .nft-mat-panel {
  transform: scale(1)
}

.nft-mat-preview {
  margin-bottom: 16px
}

.nft-mat-svg {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .06);
  display: block;
  margin: 0 auto;
  animation: nftFloat 3s ease-in-out infinite;
  transition: border-color .4s, box-shadow .4s
}

@keyframes nftFloat {
  0%, 100% { transform: translateY(0) }
  50% { transform: translateY(-6px) }
}

.nft-mat-info {
  margin-bottom: 16px
}

.nft-mat-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px
}

.nft-mat-rarity {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  margin-bottom: 8px
}

.nft-mat-detail {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, .35);
  margin-bottom: 2px
}

.nft-mat-btn {
  width: 100%;
  padding: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #00e1ff;
  background: rgba(0, 225, 255, .08);
  border: 1px solid rgba(0, 225, 255, .2);
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 8px
}

.nft-mat-btn:hover {
  background: rgba(0, 225, 255, .15);
  border-color: rgba(0, 225, 255, .35)
}

.nft-mat-btn.pending {
  color: rgba(255, 255, 255, .4);
  border-color: rgba(255, 255, 255, .08);
  cursor: wait;
  animation: nftPulse 1.5s ease-in-out infinite
}

@keyframes nftPulse {

  0%,
  100% {
    border-color: rgba(255, 255, 255, .08)
  }

  50% {
    border-color: rgba(0, 225, 255, .25)
  }
}

.nft-mat-cancel {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, .25);
  cursor: pointer;
  transition: color .2s
}

.nft-mat-cancel:hover {
  color: rgba(255, 255, 255, .5)
}

/* Light mode overrides */
.light-mode .nft-wallet-btn.connected {
  color: #16a34a
}

.light-mode .nft-connect-btn {
  color: #0066ff;
  border-color: rgba(0, 102, 255, .15);
  background: rgba(0, 102, 255, .04)
}

.light-mode .nft-wallet-pill {
  background: rgba(34, 197, 94, .05);
  border-color: rgba(34, 197, 94, .12)
}

.light-mode .nft-wallet-addr {
  color: #334155
}

.light-mode .nft-stat-val {
  color: #0066ff
}

.light-mode .nft-stat-lbl {
  color: #94a3b8
}

.light-mode .nft-empty {
  color: #94a3b8
}

.light-mode .nft-card {
  border-color: rgba(0, 0, 0, .06);
  background: rgba(0, 0, 0, .02)
}

.light-mode .nft-card-name {
  color: #1e293b
}

.light-mode .nft-card-date {
  color: #94a3b8
}

.light-mode .nft-card-status.off-chain {
  color: #64748b;
  background: rgba(0, 0, 0, .04)
}

.light-mode .nft-card-actions {
  border-top-color: rgba(0, 0, 0, .04)
}

.light-mode .nft-card-action {
  color: #64748b;
  background: rgba(0, 0, 0, .02);
  border-color: rgba(0, 0, 0, .04)
}

.light-mode .nft-card-action:hover {
  color: #0066ff;
  border-color: rgba(0, 102, 255, .15)
}

.light-mode .nft-mat-overlay {
  background: rgba(255, 255, 255, .92)
}

.light-mode .nft-mat-panel {
  background: rgba(255, 255, 255, .98);
  border-color: rgba(0, 0, 0, .08)
}

.light-mode .nft-mat-name {
  color: #1e293b
}

.light-mode .nft-mat-detail {
  color: #64748b
}

.light-mode .nft-mat-btn {
  color: #0066ff;
  border-color: rgba(0, 102, 255, .2);
  background: rgba(0, 102, 255, .04)
}

.light-mode .nft-mat-cancel {
  color: #94a3b8
}

/* Mobile wallet picker */
.nft-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(6, 8, 15, .88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s
}

.nft-picker-overlay.show {
  opacity: 1;
  visibility: visible
}

.nft-picker-panel {
  width: 100%;
  max-width: 400px;
  background: rgba(12, 16, 28, .98);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 32px;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1)
}

.nft-picker-overlay.show .nft-picker-panel {
  transform: translateY(0)
}

.nft-picker-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 4px
}

.nft-picker-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--sub);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: .5px
}

.nft-picker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px
}

.nft-picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  text-decoration: none;
  color: var(--text);
  transition: all .3s;
  backdrop-filter: blur(12px)
}

.nft-picker-item:hover,
.nft-picker-item:active {
  border-color: rgba(0, 225, 255, .2);
  background: rgba(0, 225, 255, .06);
  transform: scale(.98)
}

.nft-picker-icon {
  font-size: 22px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .06);
  border-radius: 10px;
  flex-shrink: 0
}

.nft-picker-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px
}

.nft-picker-hint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: var(--sub);
  text-align: center;
  opacity: .6;
  line-height: 1.5;
  margin-bottom: 12px
}

.nft-picker-close {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--sub);
  text-align: center;
  cursor: pointer;
  padding: 8px;
  opacity: .5;
  transition: opacity .3s
}

.nft-picker-close:hover {
  opacity: 1
}

.light-mode .nft-picker-overlay {
  background: rgba(255, 255, 255, .88)
}

.light-mode .nft-picker-panel {
  background: rgba(255, 255, 255, .98);
  border-color: rgba(0, 0, 0, .06)
}

.light-mode .nft-picker-item {
  background: rgba(0, 0, 0, .02);
  border-color: rgba(0, 0, 0, .06)
}

.light-mode .nft-picker-item:hover,
.light-mode .nft-picker-item:active {
  border-color: rgba(0, 102, 255, .15);
  background: rgba(0, 102, 255, .04)
}

.light-mode .nft-picker-icon {
  background: rgba(0, 0, 0, .04)
}

/* Zen mode / print hide */
body.zen-mode .nft-wallet-btn,
body.zen-mode .nft-mat-overlay,
body.zen-mode .nft-picker-overlay {
  display: none !important
}

@media(max-width:600px) {
  .nft-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .nft-mat-panel {
    max-width: 100%;
    border-radius: 16px
  }

  .nft-mat-svg {
    width: 160px;
    height: 160px
  }
}

@media print {

  .nft-wallet-btn,
  .nft-mat-overlay,
  .nft-picker-overlay {
    display: none !important
  }
}

/* ═══ GLOBAL FOCUS-VISIBLE ═══ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px
}

.conf-badge:focus-visible,
.tc-cat:focus-visible,
.tc-arrow:focus-visible,
.cert-card:focus-visible,
.game-btn:focus-visible,
.arcade-card:focus-visible,
.gc-tab:focus-visible,
.share-plat:focus-visible,
.share-dl-btn:focus-visible,
.egg-download:focus-visible,
.nft-connect-btn:focus-visible,
.nft-picker-item:focus-visible,
.gc-prestige-btn:focus-visible,
.gc-lb-join:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px
}

/* ═══ TOUCH TARGET MINIMUM SIZES ═══ */
@media(pointer:coarse) {
  .top-btns {
    border-radius: 7px;
    top: 10px;
    right: 14px
  }

  .tb-toggle {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    font-size: 11px;
    line-height: 28px
  }

  .top-btns.expanded .tbtn {
    min-height: 28px;
    height: 28px
  }

  .tbtn {
    width: 28px;
    min-width: 28px;
    font-size: 10px
  }

  .tc-arrow {
    min-width: 44px;
    min-height: 44px
  }

  .cv-btn {
    min-width: 44px;
    min-height: 44px
  }

  .cert-viewer-close {
    min-width: 44px;
    min-height: 44px
  }

  .term-tab-add {
    min-width: 36px;
    min-height: 36px
  }

  .qb {
    min-width: 36px;
    min-height: 36px
  }

  .tc-dot {
    min-width: 20px;
    min-height: 20px
  }

  .share-tab {
    min-height: 44px
  }

  .conf-badge {
    min-height: 36px;
    padding: 6px 14px
  }

  .gc-tab {
    min-height: 44px
  }

  .sc-key {
    min-height: 32px
  }
}

/* ═══ GLOBE BUTTON ═══ */
.gb-globe-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 100px;
  border: 1px solid rgba(0, 225, 255, .2);
  background: rgba(0, 225, 255, .06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #00e1ff;
  cursor: pointer;
  transition: all .25s cubic-bezier(.16, 1, .3, 1);
  margin: 8px auto 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 0 10px rgba(0, 225, 255, .25)
}

.gb-globe-btn:hover {
  background: rgba(0, 225, 255, .14);
  border-color: rgba(0, 225, 255, .5);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 225, 255, .15)
}

.gb-globe-btn:disabled {
  opacity: .5;
  cursor: wait;
  transform: none
}

/* ═══ WEATHER MOOD AMBIENT ═══ */
body[data-mood="warm"] .mesh div {
  background: radial-gradient(circle, rgba(251, 191, 36, .06) 0%, transparent 70%) !important
}

body[data-mood="melancholy"] .mesh div {
  background: radial-gradient(circle, rgba(96, 165, 250, .06) 0%, transparent 70%) !important
}

body[data-mood="intense"] .mesh div {
  background: radial-gradient(circle, rgba(239, 68, 68, .05) 0%, transparent 70%) !important
}

body[data-mood="serene"] .mesh div {
  background: radial-gradient(circle, rgba(148, 163, 184, .05) 0%, transparent 70%) !important
}

body[data-mood="calm"] .mesh div {
  background: radial-gradient(circle, rgba(45, 212, 191, .05) 0%, transparent 70%) !important
}

body[data-mood="curious"] .mesh div {
  background: radial-gradient(circle, rgba(52, 211, 153, .05) 0%, transparent 70%) !important
}

body[data-mood="playful"] .mesh div {
  background: radial-gradient(circle, rgba(244, 114, 182, .05) 0%, transparent 70%) !important
}

body[data-mood="determined"] .mesh div {
  background: radial-gradient(circle, rgba(245, 158, 11, .05) 0%, transparent 70%) !important
}

body[data-mood="surprised"] .mesh div {
  background: radial-gradient(circle, rgba(168, 85, 247, .05) 0%, transparent 70%) !important
}

/* ═══ SPATIAL VOIP ═══ */
.voip-indicator {
  position: fixed;
  bottom: 48px;
  right: 16px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .5px;
  color: rgba(255, 255, 255, .85);
  background: rgba(6, 8, 15, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid rgba(34, 197, 94, .3);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s, transform .4s;
  pointer-events: none
}

.voip-indicator.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto
}

.voip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: voipPulse 2s ease-in-out infinite
}

@keyframes voipPulse {

  0%,
  100% {
    box-shadow: 0 0 4px rgba(34, 197, 94, .4)
  }

  50% {
    box-shadow: 0 0 12px rgba(34, 197, 94, .8)
  }
}

.voip-label {
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis
}

.voip-mute-btn,
.voip-hangup-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, .7);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 6px;
  transition: all .2s;
  line-height: 1
}

.voip-mute-btn:hover {
  color: var(--accent);
  background: rgba(0, 225, 255, .1)
}

.voip-hangup-btn {
  color: #ef4444
}

.voip-hangup-btn::after {
  content: '✕';
  font-size: 11px
}

.voip-hangup-btn:hover {
  background: rgba(239, 68, 68, .15);
  color: #f87171
}

.light-mode .voip-indicator {
  background: rgba(255, 255, 255, .85);
  border-color: rgba(34, 197, 94, .2);
  color: #1f2937;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08)
}

.light-mode .voip-mute-btn,
.light-mode .voip-hangup-btn {
  color: #5a6578
}

body.zen-mode .voip-indicator {
  display: none !important
}

@media(max-width:600px) {
  .voip-indicator {
    bottom: 40px;
    right: 8px;
    font-size: 8px;
    padding: 4px 10px
  }
}

@media print {
  .voip-indicator {
    display: none !important
  }
}

/* ═══ BIOMETRIC PASSKEY OVERLAY ═══ */
#passkeyOverlay {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: rgba(6, 8, 15, .75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
  pointer-events: none
}

#passkeyOverlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto
}

.pk-panel {
  width: 94%;
  max-width: 400px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  transform: scale(.92) translateY(16px);
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
  scrollbar-width: none
}

.pk-panel::-webkit-scrollbar {
  display: none
}

#passkeyOverlay.show .pk-panel {
  transform: scale(1) translateY(0)
}

.pk-header {
  text-align: center;
  padding: 24px 20px 0;
  position: relative
}

.pk-shield {
  font-size: 42px;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 20px rgba(0, 225, 255, .25))
}

.pk-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #00e1ff, #6366f1, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.pk-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--sub);
  margin-top: 4px;
  text-transform: uppercase
}

.pk-body {
  padding: 16px 20px
}

.pk-state {
  text-align: center;
  padding: 16px 0 8px
}

.pk-state-icon {
  font-size: 36px;
  margin-bottom: 8px
}

.pk-state-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px
}

.pk-state-desc {
  font-size: 11px;
  color: var(--sub);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto
}

.pk-name-input {
  margin: 16px 0 8px
}

.pk-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 6px;
  display: block
}

.pk-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font-size: 14px;
  font-family: Inter, sans-serif;
  outline: none;
  transition: border-color .3s;
  box-sizing: border-box
}

.pk-input:focus {
  border-color: var(--accent)
}

.pk-input::placeholder {
  color: var(--sub);
  opacity: .5
}

.pk-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0
}

.pk-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  transition: all .3s;
  position: relative;
  overflow: hidden
}

.pk-btn:disabled {
  opacity: .5;
  cursor: wait
}

.pk-btn-primary {
  background: linear-gradient(135deg, rgba(0, 225, 255, .15), rgba(99, 102, 241, .15));
  color: #00e1ff;
  border: 1px solid rgba(0, 225, 255, .2)
}

.pk-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(0, 225, 255, .25), rgba(99, 102, 241, .25));
  border-color: rgba(0, 225, 255, .4);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 225, 255, .15)
}

.pk-btn-verify {
  background: rgba(34, 197, 94, .1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, .2)
}

.pk-btn-verify:hover {
  background: rgba(34, 197, 94, .2);
  border-color: rgba(34, 197, 94, .4)
}

.pk-btn-secondary {
  background: transparent;
  color: var(--sub);
  border: 1px solid var(--border)
}

.pk-btn-secondary:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, .3);
  background: rgba(239, 68, 68, .05)
}

.pk-features {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.pk-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--sub);
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .04)
}

.pk-feat i {
  color: var(--accent);
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0
}

.pk-cred-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .02);
  overflow: hidden;
  margin: 12px 0
}

.pk-cred-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px
}

.pk-cred-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 225, 255, .1), rgba(99, 102, 241, .1));
  border: 1px solid rgba(0, 225, 255, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00e1ff;
  font-size: 18px;
  flex-shrink: 0
}

.pk-cred-info {
  flex: 1;
  min-width: 0
}

.pk-cred-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.pk-cred-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: var(--sub);
  letter-spacing: .5px;
  margin-top: 2px
}

.pk-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(34, 197, 94, .08);
  border: 1px solid rgba(34, 197, 94, .2);
  color: #22c55e;
  flex-shrink: 0;
  white-space: nowrap
}

.pk-cred-details {
  border-top: 1px solid var(--border);
  padding: 8px 14px
}

.pk-cred-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 10px
}

.pk-cred-row span:first-child {
  color: var(--sub)
}

.pk-cred-row span:last-child {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  font-size: 9px
}

.pk-multi {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: var(--sub);
  letter-spacing: .5px;
  margin-top: 4px
}

.pk-footer {
  padding: 12px 20px 16px;
  text-align: center
}

.pk-tech {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px
}

.pk-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  letter-spacing: .5px;
  padding: 4px 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  color: var(--sub);
  display: inline-flex;
  align-items: center;
  gap: 4px
}

.pk-chip i {
  font-size: 8px;
  color: var(--accent)
}

.pk-close {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--sub);
  opacity: .4;
  cursor: pointer;
  transition: opacity .3s
}

.pk-close:hover {
  opacity: 1;
  color: var(--accent)
}

/* Passkey lock button (top bar) */
.pk-lock-btn {
  position: relative
}

.pk-lock-btn.pk-active {
  color: #22c55e !important
}

.pk-lock-btn.pk-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #22c55e
}

/* Arcade verified badge */
.arcade-verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 100px;
  background: rgba(34, 197, 94, .08);
  border: 1px solid rgba(34, 197, 94, .15);
  color: #22c55e;
  margin-left: 6px;
  vertical-align: middle
}

.arcade-verified i {
  font-size: 7px
}

/* Light mode overrides */
.light-mode #passkeyOverlay {
  background: rgba(255, 255, 255, .85)
}

.light-mode .pk-panel {
  background: rgba(255, 255, 255, .98);
  border-color: rgba(0, 0, 0, .06);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .12)
}

.light-mode .pk-input {
  background: rgba(0, 0, 0, .02);
  border-color: rgba(0, 0, 0, .08);
  color: #1f2937
}

.light-mode .pk-feat {
  background: rgba(0, 0, 0, .02);
  border-color: rgba(0, 0, 0, .04)
}

.light-mode .pk-cred-card {
  background: rgba(0, 0, 0, .02);
  border-color: rgba(0, 0, 0, .06)
}

.light-mode .pk-chip {
  background: rgba(0, 0, 0, .02);
  border-color: rgba(0, 0, 0, .06)
}

body.zen-mode #passkeyOverlay {
  display: none !important
}

@media(max-width:600px) {
  .pk-panel {
    max-width: 100%;
    border-radius: 16px
  }
}

@media print {
  #passkeyOverlay {
    display: none !important
  }
}

/* ═══ NO-JS FALLBACK ═══ */
noscript+#app,
.no-js #app {
  opacity: 1 !important
}

noscript~#preloader {
  display: none !important
}

body.no-js {
  overflow: auto !important;
  overflow-x: hidden !important
}

.tl-item {
  content-visibility: auto;
  contain-intrinsic-size: auto 140px
}


/* â•â•â• SKILLS TIMELINE â€” Collapsible Categories â•â•â• */
.sk-era { cursor: pointer; transition: background .2s }
.sk-era:hover { background: rgba(99, 102, 241, .04) }
.sk-era-active .tl-dot { background: var(--accent); box-shadow: 0 0 12px var(--glowS) }
.sk-skill {
  overflow: hidden;
  max-height: 60px;
  opacity: 1;
  transition: max-height .3s ease, opacity .25s ease, padding .3s ease, margin .3s ease
}
.sk-collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  pointer-events: none
}

/* ═══ SKILLS v2 — Glassmorphism Card Grid ═══ */

@property --sk-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false
}

.sk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 16px;
  padding: 0 16px;
  max-width: 900px;
  margin: 0 auto 32px
}

.sk-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease, border-color .35s ease;
  will-change: transform
}

.sk-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(255, 255, 255, .12);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, .3),
    0 0 0 1px rgba(255, 255, 255, .06)
}

.sk-card.sk-active {
  border-color: transparent;
  background:
    linear-gradient(var(--bg2), var(--bg2)) padding-box,
    conic-gradient(from var(--sk-angle), var(--accent), var(--accent2), var(--accent3), var(--accent)) border-box;
  animation: sk-border-spin 4s linear infinite;
  box-shadow:
    0 0 24px rgba(0, 225, 255, .12),
    0 8px 32px rgba(0, 0, 0, .3)
}

@keyframes sk-border-spin {
  to { --sk-angle: 360deg }
}

.sk-card-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  z-index: 0
}

.sk-card:hover .sk-card-glow {
  opacity: 1
}

.sk-card-header {
  display: grid;
  grid-template-columns: 36px 1fr 20px;
  align-items: center;
  gap: 10px;
  padding: 16px 16px;
  position: relative;
  z-index: 1;
  user-select: none;
  min-height: 60px
}

.sk-icon {
  font-size: 24px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1
}

.sk-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.4
}

.sk-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0, 225, 255, .08);
  border: 1px solid rgba(0, 225, 255, .15);
  border-radius: 100px;
  padding: 2px 8px;
  letter-spacing: .5px;
  white-space: nowrap;
  text-align: center
}

.sk-chevron {
  font-size: 11px;
  color: var(--sub);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .4s cubic-bezier(.16,1,.3,1)
}

.sk-card.sk-active .sk-chevron {
  transform: rotate(180deg)
}

.sk-card-body {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.16,1,.3,1), padding .4s ease;
  position: relative;
  z-index: 1
}

.sk-card.sk-active .sk-card-body {
  max-height: 1000px;
  padding: 0 20px 20px
}

.sk-chip {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-left: 2px solid var(--accent);
  border-radius: 8px;
  padding: 6px 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
  opacity: 0;
  transform: translateY(12px) scale(.92);
  letter-spacing: .2px
}

.sk-chip.sk-visible {
  opacity: 1;
  transform: translateY(0) scale(1)
}

.sk-chip:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .15);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2)
}

/* ── Light mode ── */
.light-mode .sk-card {
  background: rgba(255, 255, 255, .7);
  border-color: rgba(0, 0, 0, .06)
}

.light-mode .sk-card:hover {
  border-color: rgba(0, 0, 0, .1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .08)
}

.light-mode .sk-card.sk-active {
  background:
    linear-gradient(var(--bg2), var(--bg2)) padding-box,
    conic-gradient(from var(--sk-angle), var(--accent), var(--accent2), var(--accent3), var(--accent)) border-box;
  box-shadow: 0 0 24px rgba(0, 102, 255, .08)
}

.light-mode .sk-count {
  color: var(--accent);
  background: rgba(0, 102, 255, .06);
  border-color: rgba(0, 102, 255, .12)
}

.light-mode .sk-chip {
  background: rgba(0, 0, 0, .02);
  border-color: rgba(0, 0, 0, .06);
  border-left-color: var(--accent)
}

.light-mode .sk-chip:hover {
  background: rgba(0, 0, 0, .04);
  border-color: rgba(0, 0, 0, .1)
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .sk-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 12px
  }
  .sk-card-header {
    padding: 14px 16px;
    gap: 8px
  }
  .sk-title { font-size: 10px }
  .sk-icon { font-size: 18px }
  .sk-card.sk-active .sk-card-body {
    padding: 0 16px 16px
  }
  .sk-chip {
    font-size: 10px;
    padding: 5px 10px
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .sk-card { transition: none }
  .sk-card.sk-active { animation: none }
  .sk-card-body { transition: none }
  .sk-chevron { transition: none }
  .sk-chip { transition: none; opacity: 1; transform: none }
}
