:root {
  --bg: #060606;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f5;
  --muted: #b4b4b4;
  --soft: #858585;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.46);
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; }
html { overflow: hidden; }
body {
  min-height: 100dvh;
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  cursor: url("assets/cursor.cur"), auto;
}
button, a { cursor: url("assets/cursor.cur"), pointer; }
img { display: block; max-width: 100%; }
button { font: inherit; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

#particleCanvas,
#rainCanvas,
.bg-image,
.bg-overlay,
.bg-vignette,
.grain,
.cursor-glow,
.intro-flash {
  position: fixed;
  inset: 0;
}

.bg-image {
  z-index: 0;
  background: url("assets/background.jpg") center center / cover no-repeat;
  transform: scale(1.055);
  filter: brightness(0.68) contrast(1.04) saturate(0.95);
}
.bg-overlay {
  z-index: 1;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.05), transparent 24%),
    radial-gradient(circle at 78% 28%, rgba(255,255,255,0.03), transparent 22%),
    linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.28) 42%, rgba(0,0,0,0.52));
}
.bg-vignette {
  z-index: 2;
  box-shadow: inset 0 0 120px rgba(0,0,0,0.55);
  pointer-events: none;
  transition: left .22s ease, top .22s ease;
}
.grain {
  z-index: 4;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
}
#particleCanvas { z-index: 3; width: 100%; height: 100%; pointer-events: none; }
#rainCanvas { z-index: 13; width: 100%; height: 100%; pointer-events: none; }
.cursor-glow {
  z-index: 20;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.46), rgba(255,255,255,0.05) 64%, transparent 72%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .2s ease;
}
body.cursor-active .cursor-glow { opacity: 1; }

/* Intro: dłuższe, czytelniejsze i bez konieczności klikania. */
.intro-flash {
  z-index: 50;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.12), rgba(5,5,5,0.9) 48%, #000 80%),
    #000;
  animation: introOverlay 3.4s cubic-bezier(.65,0,.35,1) forwards;
}
.intro-flash::before,
.intro-flash::after {
  content: "";
  position: absolute;
  inset: -18%;
  opacity: 0;
  background: repeating-linear-gradient(90deg, transparent 0 86px, rgba(255,255,255,0.025) 87px, transparent 88px);
  animation: introGrid 2.7s ease forwards;
}
.intro-flash::after { transform: rotate(90deg); }
.intro-scan {
  position: absolute;
  inset: -20% 0 auto;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.08), transparent);
  filter: blur(4px);
  animation: scanDown 2.7s cubic-bezier(.2,.8,.2,1) forwards;
}
.intro-beam {
  position: absolute;
  z-index: 1;
  width: min(820px, 92vw);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.98), transparent);
  box-shadow: 0 0 20px rgba(255,255,255,.55), 0 0 84px rgba(255,255,255,.22);
  transform: scaleX(0);
  animation: introBeam 2.85s cubic-bezier(.18,.82,.24,1) forwards;
}
.intro-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 0 20px rgba(255,255,255,0.025), 0 0 100px rgba(255,255,255,0.12);
}
.intro-ring-a {
  width: min(48vw, 420px);
  aspect-ratio: 1;
  animation: introRingA 3s cubic-bezier(.18,.82,.24,1) forwards;
}
.intro-ring-b {
  width: min(67vw, 580px);
  aspect-ratio: 1;
  border-style: dashed;
  opacity: .42;
  animation: introRingB 3.1s cubic-bezier(.18,.82,.24,1) forwards;
}
.intro-content {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 10px;
}
.intro-avatar-shell {
  width: clamp(76px, 11vw, 116px);
  aspect-ratio: 1;
  padding: 5px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 0 10px rgba(255,255,255,0.025), 0 24px 60px rgba(0,0,0,.55);
  animation: introAvatar 3s cubic-bezier(.2,.8,.2,1) forwards;
}
.intro-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: brightness(.9) contrast(1.05);
}
.intro-name {
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 850;
  line-height: .95;
  letter-spacing: -0.085em;
  color: #fff;
  text-shadow: 0 0 18px rgba(255,255,255,.2), 0 22px 70px rgba(0,0,0,.72);
  animation: introText 3.05s cubic-bezier(.22,.8,.24,1) forwards;
}
.intro-subtitle {
  color: rgba(255,255,255,.72);
  font-size: clamp(10px, 1.4vw, 14px);
  letter-spacing: .28em;
  text-transform: uppercase;
  animation: introSubtitle 3.05s ease forwards;
}

.page-shell {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100dvh;
  padding: clamp(14px, 2.4vh, 26px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(10px, 1.8vh, 20px);
  opacity: 0;
  transform: translateY(12px) scale(.99);
  transition: opacity .85s ease, transform .85s ease;
}
.page-shell.is-visible { opacity: 1; transform: none; }

.topbar,
.eyebrow,
.meta-box span,
.quote-box,
.tagline {
  letter-spacing: .14em;
  text-transform: uppercase;
}
.topbar {
  width: min(1120px, 100%);
  min-height: 38px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #cfcfcf;
  font-size: 11px;
}
.topbar-left,
.topbar-right { display: flex; align-items: center; gap: 12px; }
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f1f1f1;
  box-shadow: 0 0 16px rgba(255,255,255,.65);
  animation: pulse 1.7s ease infinite;
}
.chip-btn {
  height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #efefef;
  transition: .25s ease;
}
.chip-btn:hover { transform: translateY(-2px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.17); }

.hero-card {
  width: min(960px, 100%);
  height: min(100%, 660px);
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 34%) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 24px);
  padding: clamp(14px, 2.2vh, 22px);
  border-radius: clamp(22px, 2.6vw, 28px);
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
    linear-gradient(180deg, rgba(10,10,10,.16), rgba(10,10,10,.10));
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
  box-shadow: 0 18px 48px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.09);
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .16s ease-out;
}
.hero-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.08), transparent 72%);
  transform: translateX(-110%);
  animation: sweep 8.5s linear infinite;
}
.avatar-zone {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
}
.avatar-frame {
  position: relative;
  width: min(28vh, 280px, 88%);
  min-width: 180px;
  aspect-ratio: 1;
  border-radius: clamp(22px, 3vw, 28px);
  overflow: hidden;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 22px 54px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.10);
}
.avatar-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.24));
}
.avatar-image { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.03) brightness(.9); }
.avatar-orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.11); }
.orbit-one { width: min(26vh, 250px); aspect-ratio: 1; animation: spin 14s linear infinite; }
.orbit-two { width: min(32vh, 310px); aspect-ratio: 1; border-style: dashed; opacity: .5; animation: spinReverse 18s linear infinite; }
.status-dot {
  position: absolute;
  left: calc(50% + min(12vh, 116px));
  top: calc(50% + min(12vh, 116px));
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f4f4f4;
  border: 3px solid #0b0b0b;
  box-shadow: 0 0 14px rgba(255,255,255,.75);
}
.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(8px, 1.4vh, 14px); transition: transform .35s ease; }
.eyebrow-row .eyebrow { transition: transform .38s ease, opacity .38s ease, filter .38s ease; }
.hero-copy.storm-active .eyebrow-row .eyebrow:first-child { transform: translateX(-34px); opacity: .86; filter: drop-shadow(0 0 10px rgba(255,255,255,.08)); }
.hero-copy.storm-active .eyebrow-row .eyebrow:last-child { transform: translateX(34px); opacity: .86; filter: drop-shadow(0 0 10px rgba(255,255,255,.08)); }
.eyebrow {
  font-size: 10px;
  color: #9a9a9a;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
}
.name-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  isolation: isolate;
}
.name-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}
.dev-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: #d7d7d7;
  box-shadow: 0 0 14px rgba(255,255,255,.06);
}
.dev-badge i {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.4));
  box-shadow: 0 0 8px rgba(255,255,255,.26);
}
.dev-badge b {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 800;
}
.storm-clouds {
  position: absolute;
  left: 12px;
  top: -54px;
  width: 240px;
  height: 72px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(.92);
  transition: opacity .45s ease, transform .45s ease;
  z-index: 1;
}
.cloud {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.26), rgba(255,255,255,.1) 55%, rgba(255,255,255,.03) 72%, transparent 76%);
  filter: blur(2px);
  box-shadow: 0 0 28px rgba(255,255,255,.08);
}
.cloud-a { width: 84px; height: 34px; left: 10px; top: 14px; }
.cloud-b { width: 112px; height: 42px; left: 56px; top: 4px; }
.cloud-c { width: 76px; height: 30px; left: 146px; top: 18px; }
.bolt {
  position: absolute;
  left: 118px;
  top: 34px;
  width: 16px;
  height: 56px;
  opacity: 0;
  filter: drop-shadow(0 0 12px rgba(255,255,255,.7));
}
.bolt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.8));
  clip-path: polygon(48% 0, 78% 0, 58% 42%, 83% 42%, 32% 100%, 44% 60%, 20% 60%);
}
.name-wrap:hover .storm-clouds {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: cloudDrift 2.35s ease-in-out infinite alternate;
}
.name-wrap:hover .cloud-a { animation: cloudFloatA 2.2s ease-in-out infinite alternate; }
.name-wrap:hover .cloud-b { animation: cloudFloatB 2.8s ease-in-out infinite alternate; }
.name-wrap:hover .cloud-c { animation: cloudFloatA 2.5s ease-in-out infinite alternate-reverse; }
.name-wrap:hover .bolt {
  animation: lightningFlash 1.28s ease 1;
}
.name-wrap:hover .username {
  animation: nameShine 4.5s linear infinite, buzzText .46s linear 4;
}
.username {
  margin: 0;
  font-size: clamp(42px, 6vw, 86px);
  line-height: .93;
  letter-spacing: -.08em;
  background: linear-gradient(90deg, #8d8d8d, #fff 40%, #aaa 65%, #fff 88%);
  background-size: 220% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: nameShine 4.5s linear infinite;
  position: relative;
}
.username::before,
.username::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.username:hover::before { opacity: .4; color: #ececec; transform: translate(2px,-1px); clip-path: inset(10% 0 55% 0); }
.username:hover::after { opacity: .25; color: #fff; transform: translate(-2px,1px); clip-path: inset(65% 0 8% 0); }
.tagline { margin: clamp(8px, 1.6vh, 14px) 0 clamp(12px, 2vh, 22px); color: var(--muted); font-size: 11px; }
.meta-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.meta-box {
  min-width: 0;
  padding: clamp(11px, 1.8vh, 16px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.032);
}
.meta-box span { display: block; margin-bottom: 6px; color: #8e8e8e; font-size: 9px; }
.meta-box strong { display: block; font-size: clamp(12px, 1.25vw, 15px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quote-box {
  margin: clamp(12px, 2vh, 18px) 0 0;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: clamp(12px, 1.9vh, 18px);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.032);
  color: #d0d0d0;
  font-size: 11px;
}
.quote-box p { margin: 0; text-transform: none; letter-spacing: normal; font-size: clamp(13px, 1.25vw, 15px); line-height: 1.45; }
.quote-mark { font-size: 18px; color: #fff; }
.action-row { margin-top: clamp(12px, 2vh, 20px); display: flex; flex-wrap: wrap; gap: 10px; }
.primary-btn,
.secondary-btn {
  height: 46px;
  padding: 0 18px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.12);
  transition: .25s ease;
}
.primary-btn { background: rgba(255,255,255,.12); color: #fff; font-weight: 700; }
.secondary-btn { background: rgba(255,255,255,.04); color: #dadada; }
.primary-btn:hover,
.secondary-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,0,0,.28); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 22px);
  z-index: 60;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(18,18,18,.92);
  color: #ededed;
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }
@keyframes nameShine { to { background-position: -220% center; } }
@keyframes sweep { 0%,14% { transform: translateX(-105%); } 48%,100% { transform: translateX(120%); } }
@keyframes pulse { 50% { opacity: .4; box-shadow: 0 0 8px rgba(255,255,255,.2); } }
@keyframes introOverlay {
  0%,72% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes introGrid { 0% { opacity: 0; transform: scale(.98); } 35%,72% { opacity: 1; } 100% { opacity: 0; transform: scale(1.03); } }
@keyframes scanDown { 0% { transform: translateY(-20vh); opacity: 0; } 18% { opacity: 1; } 76% { opacity: .7; } 100% { transform: translateY(130vh); opacity: 0; } }
@keyframes introBeam { 0%,12% { transform: scaleX(0); opacity: 0; } 35%,72% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(.25); opacity: 0; } }
@keyframes introRingA { 0% { transform: scale(.45); opacity: 0; } 28%,72% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.28); opacity: 0; } }
@keyframes introRingB { 0% { transform: scale(.55) rotate(0deg); opacity: 0; } 34%,72% { transform: scale(1) rotate(90deg); opacity: .5; } 100% { transform: scale(1.16) rotate(150deg); opacity: 0; } }
@keyframes introAvatar { 0%,10% { transform: scale(.65); opacity: 0; filter: blur(8px); } 36%,74% { transform: scale(1); opacity: 1; filter: blur(0); } 100% { transform: scale(1.08); opacity: 0; } }
@keyframes introText { 0%,14% { transform: translateY(20px) scale(.92); opacity: 0; filter: blur(8px); } 40%,75% { transform: none; opacity: 1; filter: blur(0); } 100% { transform: translateY(-8px) scale(1.03); opacity: 0; } }
@keyframes introSubtitle { 0%,28% { opacity: 0; transform: translateY(8px); } 45%,75% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }


@keyframes lightningFlash {
  0%, 12% { opacity: 0; transform: translateY(-2px) scaleY(.3); }
  16% { opacity: 1; transform: translateY(0) scaleY(1); }
  22% { opacity: .18; }
  28% { opacity: 1; }
  40% { opacity: .08; }
  48% { opacity: 1; }
  62% { opacity: .14; }
  72% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px) scaleY(1.06); }
}
@keyframes cloudDrift {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-4px) scale(1.02); }
}
@keyframes cloudFloatA {
  from { transform: translate(0,0); }
  to { transform: translate(10px,-3px); }
}
@keyframes cloudFloatB {
  from { transform: translate(0,0); }
  to { transform: translate(-10px,2px); }
}
@keyframes buzzText {
  0% { transform: translate(0,0); filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
  20% { transform: translate(1.5px,-1px); filter: drop-shadow(0 0 10px rgba(255,255,255,.2)); }
  40% { transform: translate(-1.2px,1px); }
  60% { transform: translate(1.2px,.4px); }
  80% { transform: translate(-1px,-.6px); }
  100% { transform: translate(0,0); filter: drop-shadow(0 0 18px rgba(255,255,255,.28)); }
}

@media (max-width: 820px) {
  .page-shell { padding: 12px; gap: 10px; }
  .topbar-left { display: none; }
  .topbar { justify-content: flex-end; min-height: 34px; }
  .chip-btn { height: 34px; font-size: 10px; }
  .hero-card {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(150px, 36%) minmax(0, 1fr);
    gap: 8px;
    padding: 16px;
    border-radius: 24px;
  }
  .avatar-frame { width: min(21vh, 200px); min-width: 140px; border-radius: 22px; }
  .orbit-one { width: min(20vh, 190px); }
  .orbit-two { width: min(24vh, 230px); }
  .status-dot {
    left: calc(50% + min(9vh, 86px));
    top: calc(50% + min(9vh, 86px));
  }
  .hero-copy { justify-content: flex-start; }
  .hero-copy.storm-active .eyebrow-row .eyebrow:first-child { transform: translateX(-18px); }
  .hero-copy.storm-active .eyebrow-row .eyebrow:last-child { transform: translateX(18px); }
  .name-line { gap: 8px; }
  .username { font-size: clamp(38px, 11vw, 58px); }
  .dev-badge { height: 22px; padding: 0 8px; }
  .storm-clouds { left: 0; top: -46px; width: 190px; transform-origin: left center; }
  .tagline { margin: 8px 0 10px; font-size: 9px; }
  .eyebrow-row { margin-bottom: 8px; }
  .eyebrow { padding: 6px 9px; font-size: 8px; }
  .meta-row { gap: 6px; }
  .meta-box { padding: 9px 8px; border-radius: 12px; }
  .meta-box span { font-size: 7px; margin-bottom: 4px; }
  .meta-box strong { font-size: 10px; }
  .quote-box { margin-top: 8px; padding: 10px 12px; border-radius: 14px; }
  .quote-box p { font-size: 12px; }
  .action-row { margin-top: 8px; gap: 7px; }
  .primary-btn, .secondary-btn { height: 40px; flex: 1 1 0; min-width: 0; padding: 0 10px; font-size: 11px; }
}

@media (max-height: 680px) and (min-width: 821px) {
  .page-shell { padding: 12px 18px; gap: 9px; }
  .topbar { min-height: 34px; }
  .hero-card { padding: 16px 22px; }
  .avatar-frame { width: min(35vh, 230px); min-width: 170px; }
  .orbit-one { width: min(33vh, 220px); }
  .orbit-two { width: min(39vh, 270px); }
  .tagline { margin: 8px 0 12px; }
  .quote-box { margin-top: 10px; padding: 11px 14px; }
  .action-row { margin-top: 10px; }
  .primary-btn, .secondary-btn { height: 40px; }
}

@media (max-height: 620px) and (max-width: 820px) {
  .topbar { display: none; }
  .page-shell { grid-template-rows: minmax(0, 1fr); }
  .hero-card { grid-template-rows: 140px minmax(0,1fr); padding: 11px; }
  .avatar-frame { width: 132px; min-width: 132px; }
  .orbit-one { width: 142px; }
  .orbit-two { width: 170px; }
  .status-dot { left: calc(50% + 56px); top: calc(50% + 56px); }
  .tagline { display: none; }
  .quote-box { padding: 8px 10px; }
  .action-row { margin-top: 6px; }
  .primary-btn, .secondary-btn { height: 36px; }
}

@media (hover: none), (pointer: coarse) {
  body, button, a { cursor: auto; }
  .cursor-glow { display: none; }
  .hero-card { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.social-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social-btn {
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.028);
  color: #ececec;
  transition: .25s ease;
}
.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: .92;
}
.social-btn span {
  font-size: 13px;
}
.social-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.16);
}
@media (max-width: 700px) {
  .social-row { flex-direction: column; }
  .social-btn { width: 100%; justify-content: center; }
}


.social-row-icons {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.social-icon-btn {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 16px;
  justify-content: center;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset, 0 0 22px rgba(255,255,255,.08);
}
.social-icon-btn svg {
  width: 22px;
  height: 22px;
  fill: #f5f5f5;
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(255,255,255,.42));
}
.social-icon-btn:hover {
  transform: translateY(-3px) scale(1.04);
  background: rgba(255,255,255,.095);
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 0 28px rgba(255,255,255,.18), 0 12px 26px rgba(0,0,0,.22);
}
.social-icon-btn span { display: none; }
@media (max-width: 700px) {
  .social-row-icons {
    justify-content: center;
    flex-direction: row;
  }
  .social-icon-btn {
    width: 50px;
    height: 50px;
  }
}

.social-text-btn {
  width: auto;
  min-width: 116px;
  height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.16);
  color: #f5f5f5;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset, 0 0 22px rgba(255,255,255,.08);
}
.social-text-btn:hover {
  transform: translateY(-3px) scale(1.03);
  background: rgba(255,255,255,.095);
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 0 28px rgba(255,255,255,.18), 0 12px 26px rgba(0,0,0,.22);
}

@media (max-width: 700px) {
  .social-text-btn { width: auto; min-width: 100px; padding: 0 14px; }
}


.view-counter {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  min-width: 96px;
  height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,10,10,.28);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: 0 12px 30px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.08);
  color: #f3f3f3;
}
.view-counter svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: .96;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.18));
}
.view-counter span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}
@media (max-width: 700px) {
  .view-counter {
    right: 12px;
    bottom: 12px;
    height: 40px;
    min-width: 88px;
    padding: 0 12px;
  }
  .view-counter span { font-size: 12px; }
}


.intro-pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.intro-pill {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.84);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(255,255,255,.06);
}
.intro-code {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  width: min(420px, 82vw);
}
.intro-code span {
  height: 32px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.72);
  font-size: 12px;
  letter-spacing: .06em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}


.social-text-btn {
  gap: 8px;
  justify-content: space-between;
}
.new-pill {
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(255,255,255,.12);
}


.glock-widget {
  position: fixed;
  display: block;
  aspect-ratio: 1204 / 911;
  right: -34px;
  bottom: 94px;
  z-index: 46;
  width: 176px;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
  transform: rotate(-14deg) translateX(0);
  transform-origin: right center;
  transition: transform .22s ease, filter .25s ease, opacity .25s ease;
  filter: brightness(.42) saturate(.55) grayscale(.25) drop-shadow(0 10px 18px rgba(0,0,0,.18));
  opacity: .34;
  animation: glockIdleFloat 3.2s ease-in-out infinite;
}
.glock-widget:hover {
  transform: rotate(0deg) translateX(-28px) scale(1.03);
  filter: brightness(.98) saturate(1) grayscale(0) drop-shadow(0 16px 30px rgba(0,0,0,.32));
  opacity: .98;
  animation: none;
}


.glock-image {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.glock-widget .glock-flash {
  position: absolute;
  left: -43px;
  top: 12px;
  width: 46px;
  height: 46px;
  opacity: 0;
  transform: scale(.2);
  background: radial-gradient(circle, rgba(255,252,237,.98) 0 18%, rgba(255,220,136,.95) 18% 42%, rgba(255,165,64,.82) 42% 64%, rgba(255,255,255,0) 66%);
  clip-path: polygon(50% 0, 64% 28%, 100% 20%, 75% 50%, 100% 80%, 64% 72%, 50% 100%, 36% 72%, 0 80%, 25% 50%, 0 20%, 36% 28%);
  filter: blur(.2px) drop-shadow(0 0 14px rgba(255,205,108,.65));
  pointer-events: none;
  transition: left .22s ease, top .22s ease;
}
.glock-smoke {
  position: absolute;
  left: -27px;
  top: 25px;
  width: 30px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.35), rgba(255,255,255,.10) 58%, rgba(255,255,255,0) 72%);
  filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: left .22s ease, top .22s ease;
}
.glock-bullet {
  position: absolute;
  left: -7px;
  top: 34px;
  width: 12px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,240,202,.95), rgba(255,255,255,.98));
  box-shadow: 0 0 10px rgba(255,233,181,.85), 0 0 18px rgba(255,255,255,.35);
  opacity: 0;
  transform: translateX(0) scaleX(1);
  pointer-events: none;
  transition: left .22s ease, top .22s ease;
}
.glock-trail {
  position: absolute;
  left: -9px;
  top: 33px;
  width: 0;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,237,192,.9));
  filter: blur(1px);
  opacity: 0;
  pointer-events: none;
}
.glock-widget.is-firing {
  animation: glockKick .18s ease 1;
}
.glock-widget:hover.is-firing {
  animation: glockKickStraight .18s ease 1;
}
.glock-widget.is-firing .glock-flash {
  animation: muzzleFlash .28s ease-out 1;
}
.glock-widget.is-firing .smoke-a {
  animation: smokePuff 1s ease-out 1;
}
.glock-widget.is-firing .smoke-b {
  animation: smokePuff2 1.2s ease-out 1;
}
.glock-widget.is-firing .glock-bullet {
  animation: bulletFly .38s cubic-bezier(.15,.55,.2,1) 1;
}
.glock-widget.is-firing .glock-trail {
  animation: bulletTrail .32s ease-out 1;
}
@keyframes glockIdleFloat {
  0%, 100% { transform: rotate(-14deg) translateX(0) translateY(0); }
  50% { transform: rotate(-12deg) translateX(-3px) translateY(-2px); }
}
@keyframes glockKick {
  0% { transform: rotate(-14deg) translateX(0); }
  25% { transform: rotate(-9deg) translateX(8px) translateY(-1px); }
  100% { transform: rotate(-14deg) translateX(0); }
}
@keyframes glockKickStraight {
  0% { transform: rotate(0deg) translateX(-28px) scale(1.03); }
  25% { transform: rotate(2deg) translateX(-18px) scale(1.03); }
  100% { transform: rotate(0deg) translateX(-28px) scale(1.03); }
}
@keyframes muzzleFlash {
  0% { opacity: 0; transform: scale(.2); }
  18% { opacity: 1; transform: scale(1); }
  44% { opacity: .8; transform: scale(.86); }
  100% { opacity: 0; transform: scale(1.2); }
}
@keyframes smokePuff {
  0% { opacity: 0; transform: translate(0,0) scale(.45); }
  20% { opacity: .68; }
  100% { opacity: 0; transform: translate(-22px,-14px) scale(1.15); }
}
@keyframes smokePuff2 {
  0% { opacity: 0; transform: translate(0,0) scale(.34); }
  24% { opacity: .5; }
  100% { opacity: 0; transform: translate(-14px,-22px) scale(1.28); }
}
@keyframes bulletFly {
  0% { opacity: 0; transform: translateX(0) scaleX(.7); }
  8% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-230px) translateY(-2px) scaleX(1.15); }
}
@keyframes bulletTrail {
  0% { opacity: 0; width: 0; }
  12% { opacity: .95; width: 20px; }
  100% { opacity: 0; width: 210px; transform: translateX(-205px); }
}
@media (max-width: 700px) {
  .glock-widget {
    width: 132px;
    right: -24px;
    bottom: 82px;
    transform: rotate(-14deg) translateX(0);
  }
  .glock-widget:hover {
    transform: rotate(0deg) translateX(-18px) scale(1.02);
    animation: none;
  }
  .glock-widget:hover.is-firing {
    animation: glockKickStraightMobile .18s ease 1;
  }
  .glock-widget .glock-flash {
    left: -32px;
    top: 8px;
    width: 35px;
    height: 35px;
  }
  .glock-smoke {
    left: -20px;
    top: 18px;
    width: 23px;
    height: 14px;
  }
  .glock-bullet {
    left: -5px;
    top: 25px;
    width: 9px;
    height: 3px;
  }
  .glock-trail {
    left: -7px;
    top: 24px;
    height: 4px;
  }
  @keyframes bulletFly {
    0% { opacity: 0; transform: translateX(0) scaleX(.7); }
    8% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-170px) translateY(-2px) scaleX(1.12); }
  }
  @keyframes bulletTrail {
    0% { opacity: 0; width: 0; }
    12% { opacity: .95; width: 16px; }
    100% { opacity: 0; width: 154px; transform: translateX(-150px); }
  }
}

@keyframes glockKickStraightMobile {
  0% { transform: rotate(0deg) translateX(-18px) scale(1.02); }
  25% { transform: rotate(2deg) translateX(-11px) scale(1.02); }
  100% { transform: rotate(0deg) translateX(-18px) scale(1.02); }
}
