:root {
  --bg: #f6f1e8;
  --paper: #fffaf1;
  --ink: #111827;
  --muted: #516071;
  --line: rgba(17, 24, 39, 0.13);
  --dark: #101522;
  --dark-2: #1f2937;
  --gold: #f5b83d;
  --green: #2fbf71;
  --pink: #ff83ad;
  --cyan: #3bb9d7;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(245, 184, 61, 0.23), transparent 28rem),
    radial-gradient(circle at 92% 4%, rgba(59, 185, 215, 0.22), transparent 32rem),
    linear-gradient(180deg, #f7f2ea 0%, #f4efe6 45%, #f8f5ee 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.68;
}

a { color: inherit; text-decoration: none; }
p, h1, h2, h3, li { overflow-wrap: anywhere; }
p { margin: 0 0 1rem; color: var(--muted); }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  background: var(--dark);
  color: #fff;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}
.section { padding: 88px 0; }
.readable { max-width: 940px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 241, 232, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav {
  width: min(1160px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 900;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--dark);
  color: var(--gold);
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.2);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.94rem;
}
.nav-links a {
  padding: 0.55rem 0.72rem;
  border-radius: 999px;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(17, 24, 39, 0.08);
  color: var(--ink);
}
.nav-cta {
  background: var(--dark);
  color: #fff !important;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  padding-top: 56px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.orbit {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 50%;
  color: rgba(17, 24, 39, 0.35);
  font-weight: 900;
  animation: floaty 8s ease-in-out infinite;
}
.orbit-one { width: 160px; height: 160px; right: 8%; top: 12%; }
.orbit-two { width: 240px; height: 240px; left: -70px; bottom: 10%; animation-delay: -2s; }
.orbit-three { width: 110px; height: 110px; right: 34%; bottom: 7%; animation-delay: -4s; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 42px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 0.8rem;
  color: #7a4e00;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.8rem;
}
h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(2.45rem, 5vw, 5.55rem);
  line-height: 0.98;
  letter-spacing: 0;
}
.hero-copy h1 {
  font-size: clamp(1.72rem, 3.5vw, 3.89rem);
  line-height: 1.04;
}
h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.2vw, 3.45rem);
  line-height: 1.06;
  letter-spacing: 0;
}
h3 {
  margin: 0 0 0.6rem;
  line-height: 1.18;
  font-size: 1.2rem;
}
.lead {
  max-width: 760px;
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.05rem;
  border: 0;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
}
.button.primary {
  background: var(--dark);
  color: #fff;
  box-shadow: 0 18px 35px rgba(17, 24, 39, 0.22);
}
.button.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-weight: 800;
}
.signal-row span {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
}

.hopa-promo {
  padding: 14px 0;
  background: var(--dark);
  color: #fff;
}
.hopa-promo-box {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 4vw, 3rem);
  min-height: clamp(132px, 14.4vw, 192px);
  padding: clamp(0.65rem, 1.65vw, 1.25rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(5, 8, 18, 0.88) 0%, rgba(5, 8, 18, 0.68) 46%, rgba(5, 8, 18, 0.18) 100%),
    url("assets/promo.jpeg") center / cover no-repeat;
  box-shadow: var(--shadow);
}
.hopa-promo-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 50%, rgba(245, 184, 61, 0.24), transparent 30rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 36%);
  pointer-events: none;
}
.hopa-promo-content,
.hopa-promo .button {
  position: relative;
  z-index: 1;
}
.hopa-promo .button {
  min-width: 235px;
  padding-inline: 1.65rem;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.78), transparent 18%),
    linear-gradient(135deg, #ffe58d 0%, #f5b83d 42%, #ff7a59 100%);
  color: #211203 !important;
  font-size: 1.2em;
  box-shadow:
    0 0 0 1px rgba(255, 245, 199, 0.42) inset,
    0 14px 34px rgba(245, 184, 61, 0.32),
    0 0 34px rgba(245, 184, 61, 0.55);
  animation:
    magic-button-pulse 2.4s ease-in-out infinite,
    magic-button-text 2.4s ease-in-out infinite;
}
.hopa-promo .button:hover,
.hopa-promo .button:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.hopa-promo-content {
  max-width: 620px;
}
.hopa-promo .eyebrow {
  color: var(--gold);
}
.hopa-promo h2 {
  margin-bottom: 0.42rem;
  max-width: 640px;
  font-size: clamp(1.08rem, 1.88vw, 1.88rem);
  line-height: 1.02;
}
.hopa-promo p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.78rem, 0.9vw, 0.86rem);
  font-weight: 650;
  margin-bottom: 0.55rem;
}
.hopa-promo-hook {
  color: #ffe58d !important;
  text-shadow:
    0 0 14px rgba(245, 184, 61, 0.48),
    0 0 24px rgba(99, 232, 255, 0.24);
  animation: magic-hook-shimmer 2.6s ease-in-out infinite;
}

@keyframes magic-button-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 245, 199, 0.42) inset,
      0 14px 34px rgba(245, 184, 61, 0.32),
      0 0 24px rgba(245, 184, 61, 0.48);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 245, 199, 0.62) inset,
      0 18px 42px rgba(245, 184, 61, 0.44),
      0 0 46px rgba(99, 232, 255, 0.58);
  }
}

@keyframes magic-button-text {
  0%, 100% {
    color: #211203;
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    color: #fff4bd;
    text-shadow:
      0 0 10px rgba(255, 245, 199, 0.82),
      0 0 22px rgba(99, 232, 255, 0.36);
  }
}

@keyframes magic-hook-shimmer {
  0%, 100% {
    color: #ffe58d;
    text-shadow:
      0 0 14px rgba(245, 184, 61, 0.48),
      0 0 24px rgba(99, 232, 255, 0.24);
  }
  50% {
    color: #fff4bd;
    text-shadow:
      0 0 12px rgba(255, 245, 199, 0.88),
      0 0 28px rgba(99, 232, 255, 0.38);
  }
}

.profile-panel {
  display: grid;
  gap: 1rem;
}
.profile-photo {
  width: min(100%, 360px);
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 50%;
  object-fit: cover;
  border: 9px solid #fff;
  box-shadow: var(--shadow);
  background: #fff;
}
.profile-card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}
.status-pill {
  display: inline-flex;
  padding: 0.48rem 0.75rem;
  border-radius: 999px;
  background: rgba(47, 191, 113, 0.14);
  color: #126b3a;
  font-weight: 900;
  font-size: 0.88rem;
}
.stats {
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.stats div {
  min-width: 0;
  padding: 1rem;
  border-radius: 16px;
  background: var(--dark);
  color: #fff;
}
.stats dt {
  color: var(--gold);
  font-size: 2rem;
  line-height: 1;
  font-weight: 950;
}
.stats dd {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.trust-strip { padding: 24px 0; }
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.strip-grid div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 900;
  text-align: center;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.value-grid article,
.story-stack article,
.experience-card,
.tech-groups article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.06);
}
.value-grid article {
  padding: 1.2rem;
}

.dark-section {
  background: var(--dark);
  color: #fff;
}
.dark-section .eyebrow { color: var(--gold); }
.dark-section p { color: rgba(255, 255, 255, 0.72); }
.section-head {
  max-width: 850px;
  margin-bottom: 2rem;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.case-card {
  min-width: 0;
  padding: 1.25rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.case-card.highlight {
  background: linear-gradient(135deg, rgba(245, 184, 61, 0.22), rgba(59, 185, 215, 0.12));
}
.case-card p { color: rgba(255, 255, 255, 0.75); }
.case-meta {
  margin-bottom: 0.8rem;
  color: var(--gold);
  font-weight: 900;
  font-size: 0.85rem;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 42px;
  align-items: start;
}
.sticky-title {
  position: sticky;
  top: 96px;
}
.story-stack {
  display: grid;
  gap: 1rem;
}
.story-stack article {
  padding: 1.35rem;
}

.startup-section {
  background:
    linear-gradient(135deg, rgba(245, 184, 61, 0.18), rgba(59, 185, 215, 0.14)),
    var(--paper);
}
.startup-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}
.startup-points span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.55rem 0.78rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 850;
}

.experience-list {
  display: grid;
  gap: 1.1rem;
}
.experience-card {
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
}
.experience-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}
.experience-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
  color: #7a4e00;
  font-weight: 900;
}
.experience-meta span {
  color: var(--muted);
}
.experience-card p:last-child { margin-bottom: 0; }
.experience-card strong { color: var(--ink); }

.technologies-section {
  background: #fbf8f0;
}
.tech-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.tech-groups article {
  padding: 1.25rem;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.about-section {
  max-width: none;
}

.section-head {
  max-width: 880px;
  margin-bottom: 2rem;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.article-card {
  display: block;
  min-height: 100%;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.article-card:hover,
.article-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(17, 24, 39, 0.14);
}
.article-card span,
.article-meta {
  color: #7a4e00;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}
.article-card h3 {
  margin-top: 0.45rem;
}
.article-card p {
  margin-bottom: 0;
}
.article-more {
  margin-top: 1.3rem;
}
.article-page {
  background:
    radial-gradient(circle at 8% 8%, rgba(245, 184, 61, 0.17), transparent 26rem),
    radial-gradient(circle at 92% 0%, rgba(59, 185, 215, 0.17), transparent 28rem),
    linear-gradient(180deg, #f7f2ea 0%, #f8f5ee 100%);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.breadcrumbs a {
  color: var(--ink);
  font-weight: 800;
}
.article-hero {
  padding: 76px 0 42px;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  align-items: start;
}
.article-content {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}
.article-content h2 {
  margin-top: 2.1rem;
  font-size: clamp(1.55rem, 2.3vw, 2.2rem);
}
.article-content h2:first-child {
  margin-top: 0;
}
.article-content h3 {
  margin-top: 1.4rem;
}
.article-content ul,
.article-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--muted);
}
.article-content li {
  margin-bottom: 0.55rem;
}
.article-note {
  margin: 1.4rem 0;
  padding: 1rem;
  border-left: 5px solid var(--gold);
  border-radius: 12px;
  background: rgba(245, 184, 61, 0.14);
  color: var(--ink);
  font-weight: 750;
}
.article-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 1rem;
}
.side-box,
.author-cta {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
}
.side-box h2,
.author-cta h2 {
  font-size: 1.25rem;
  line-height: 1.18;
}
.side-box a {
  display: block;
  margin-top: 0.7rem;
  color: var(--muted);
  font-weight: 800;
}
.author-cta {
  margin-top: 2rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 22px;
  background: var(--dark);
  color: #fff;
  box-shadow: var(--shadow);
}
.author-cta h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
}
.author-cta p {
  color: rgba(255, 255, 255, 0.78);
}
.author-cta .button.secondary {
  background: #fff;
}
.article-list-page .article-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.final-cta { padding-top: 40px; }
.cta-box {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 22px;
  background: var(--dark);
  color: #fff;
  box-shadow: var(--shadow);
}
.cta-box .eyebrow { color: var(--gold); }
.cta-box p { color: rgba(255, 255, 255, 0.72); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.4rem;
}
.contact-grid a {
  min-width: 0;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 900;
}
.download-section {
  padding: 0 0 70px;
}
.download-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.2rem, 2.5vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}
.download-box h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
}
.download-box p:last-child {
  max-width: 720px;
  margin-bottom: 0;
}
.download-button {
  flex: 0 0 auto;
}

.footer {
  padding: 28px 0;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.footer a { font-weight: 900; }

.sticky-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 14px 45px rgba(17, 24, 39, 0.18);
  backdrop-filter: blur(12px);
}
.sticky-cta a {
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: var(--dark);
  color: #fff;
  font-weight: 900;
}

#contacts { scroll-margin-top: 80px; }
.telegram-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1rem;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: #f5d486;
}
.telegram-options a,
.telegram-options button {
  padding: 0.65rem 0;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: start;
  text-decoration: underline;
  cursor: pointer;
}

/* PIG MINI GAME CSS START: floating pig, rules bubble, targets, coins and win message. */
.floating-pig {
  --pig-size: 92px;
  position: fixed;
  left: 22px;
  bottom: 24px;
  z-index: 45;
  display: grid;
  grid-template-columns: min-content;
  gap: 0.45rem;
  justify-items: start;
  align-items: start;
  width: max-content;
  max-width: calc(100vw - 24px);
  animation: pig-drift 9s ease-in-out infinite;
}
.floating-pig.is-playing {
  z-index: 51;
  animation: none;
}
.floating-pig:focus-within,
.floating-pig:has(.pig-bubble:not([hidden])) { animation-play-state: paused; }
.pig-button {
  position: relative;
  inline-size: var(--pig-size);
  block-size: var(--pig-size);
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  line-height: 1;
  overflow: visible;
  transition: transform 0.2s ease;
}
.pig-button:hover { transform: translateY(-4px) scale(1.04); }
.pig-button.is-happy { animation: pig-happy 0.82s ease; }
.pig-svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  aspect-ratio: 1 / 1;
  overflow: visible;
  filter: drop-shadow(0 16px 22px rgba(244, 119, 159, 0.35));
  transform-box: fill-box;
  transform-origin: center;
}
.pig-face-svg {
  filter: drop-shadow(0 8px 0 rgba(223, 80, 127, 0.18));
}
.pig-eye-svg {
  transform-box: fill-box;
  transform-origin: center;
  animation: pig-blink 5.2s ease-in-out infinite;
}
.pig-eye-svg-right {
  animation-delay: 0.08s;
}
.pig-ear-svg {
  transform-box: fill-box;
  transform-origin: 50% 82%;
  animation: pig-ear-wiggle 4.8s ease-in-out infinite;
}
.pig-ear-svg-left {
  transform: rotate(-21deg);
}
.pig-ear-svg-right {
  transform: rotate(21deg);
  animation-delay: 0.35s;
}
.pig-snout-svg {
  transform-box: fill-box;
  transform-origin: center;
  animation: pig-snort-svg 3.6s ease-in-out infinite;
}
.pig-head {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 48% 48% 44% 44%;
  background:
    radial-gradient(circle at 34% 31%, rgba(255, 255, 255, 0.72) 0 8px, transparent 18px),
    linear-gradient(145deg, #ffc1d4 0%, #ff8fb3 62%, #f4779f 100%);
  box-shadow:
    0 18px 28px rgba(244, 119, 159, 0.35),
    inset 0 -12px 0 rgba(223, 80, 127, 0.28),
    inset 0 10px 16px rgba(255, 255, 255, 0.44);
  overflow: visible;
  transform: translateZ(0);
}
.pig-head::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 10px;
  height: 13px;
  border-radius: 0 0 999px 999px;
  border-bottom: 5px solid rgba(180, 42, 91, 0.36);
}
.pig-ear {
  position: absolute;
  top: 4px;
  width: 28px;
  height: 35px;
  border-radius: 56% 44% 48% 52%;
  background: linear-gradient(145deg, #ffc8d9, #f07fa7);
  box-shadow: inset 0 -7px 0 rgba(212, 68, 116, 0.18);
  transform-origin: bottom center;
  animation: pig-ear-wiggle 4.8s ease-in-out infinite;
}
.pig-ear-left {
  left: 5px;
  transform: rotate(-25deg);
}
.pig-ear-right {
  right: 5px;
  transform: rotate(25deg);
  animation-delay: 0.35s;
}
.pig-eye {
  position: absolute;
  top: 35px;
  width: 9px;
  height: 12px;
  border-radius: 50%;
  background: #65213b;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
  transform-origin: center;
  animation: pig-blink 5.2s ease-in-out infinite;
}
.pig-eye-left { left: 31px; }
.pig-eye-right { right: 31px; animation-delay: 0.08s; }
.pig-snout {
  position: absolute;
  left: 50%;
  top: 49px;
  width: 36px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffadc5, #f26f9c);
  box-shadow: inset 0 4px 5px rgba(255, 255, 255, 0.35), 0 5px 10px rgba(158, 37, 82, 0.18);
  transform: translateX(-50%);
  animation: pig-snort 3.6s ease-in-out infinite;
}
.pig-snout span {
  width: 6px;
  height: 8px;
  border-radius: 50%;
  background: #8d2850;
}
.pig-bubble {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  width: min(240px, calc(100vw - 48px));
  max-height: 55dvh;
  overflow: auto;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}
.pig-bubble[hidden], .pig-exit[hidden] { display: none; }
.pig-close, .pig-exit {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f4eaf0;
  color: var(--ink);
  font: 700 1.35rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.pig-close { top: 4px; right: 4px; }
.pig-exit { bottom: 0; left: calc(100% + 4px); }
.pig-bubble p {
  margin: 0 0 0.5rem;
  padding-right: 2.65rem;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 750;
}
.pig-start {
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  border: 0;
  border-radius: 10px;
  background: var(--dark);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.pig-score {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  z-index: 2;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: var(--dark);
  color: var(--gold);
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.22);
}
.pig-score.is-visible { display: flex; }
.pig-score.is-bumped {
  animation: score-bump 0.48s ease;
}
.game-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  overflow: hidden;
}
.star-target {
  position: fixed;
  z-index: 58;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
  font-size: 1.45rem;
  cursor: pointer;
  pointer-events: auto;
  animation: star-float 2.6s ease-in-out infinite;
}
.star-target.is-collected {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}
.flying-coin,
.confetti-coin,
.burst-particle,
.pig-spark {
  position: fixed;
  z-index: 59;
  pointer-events: none;
}
.flying-coin,
.confetti-coin {
  font-size: 1.35rem;
}
.burst-particle,
.pig-spark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(245, 184, 61, 0.75);
}
.win-message {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 70;
  width: min(980px, calc(100% - 28px));
  padding: 1.4rem 1rem;
  border-radius: 0;
  background: transparent;
  color: #fff8df;
  text-shadow:
    0 3px 0 rgba(89, 44, 0, 0.4),
    0 0 22px rgba(255, 199, 89, 0.9),
    0 0 56px rgba(255, 130, 96, 0.72);
  filter: drop-shadow(0 18px 35px rgba(17, 24, 39, 0.35));
  font-weight: 950;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -42%) scale(0.92);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.win-message::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(920px, 100vw);
  height: min(420px, 62vw);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 246, 194, 0.86) 0%, rgba(255, 202, 88, 0.45) 30%, rgba(255, 126, 114, 0.22) 56%, transparent 72%);
  transform: translate(-50%, -50%);
  filter: blur(8px);
  animation: win-glow 2.2s ease-in-out infinite;
}
.win-message span {
  display: block;
  font-size: clamp(2.7rem, 7vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}
.win-message.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
/* PIG MINI GAME CSS END */

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(8deg); }
}
/* PIG MINI GAME ANIMATIONS START */
@keyframes pig-drift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(18px, -22px); }
  50% { transform: translate(8px, -46px); }
  75% { transform: translate(-10px, -20px); }
}
@keyframes pig-happy {
  0%, 100% { transform: scale(1); }
  22% { transform: scale(1.28) rotate(-12deg); }
  45% { transform: scale(0.96) rotate(10deg); }
  68% { transform: scale(1.18) rotate(-6deg); }
  84% { transform: scale(1.06) rotate(4deg); }
}
@keyframes pig-blink {
  0%, 7%, 10%, 100% { transform: scaleY(1); }
  8.4% { transform: scaleY(0.08); }
}
@keyframes pig-ear-wiggle {
  0%, 82%, 100% { rotate: 0deg; }
  86% { rotate: -8deg; }
  90% { rotate: 7deg; }
  94% { rotate: -4deg; }
}
@keyframes pig-snort {
  0%, 78%, 100% { transform: translateX(-50%) scale(1); }
  83% { transform: translateX(-50%) scale(1.12, 0.9); }
  88% { transform: translateX(-50%) scale(0.96, 1.1); }
}
@keyframes pig-snort-svg {
  0%, 78%, 100% { transform: scale(1); }
  83% { transform: scale(1.12, 0.9); }
  88% { transform: scale(0.96, 1.1); }
}
@keyframes win-glow {
  0%, 100% { opacity: 0.82; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}
@keyframes score-bump {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  25% { transform: scale(1.28); filter: brightness(1.7); }
  55% { transform: scale(0.94); filter: brightness(1.25); }
  78% { transform: scale(1.12); filter: brightness(1.5); }
}
@keyframes star-float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -13px; rotate: 8deg; }
}
@keyframes coin-rain {
  from { transform: translateY(-80px) rotate(0deg); opacity: 1; }
  to { transform: translateY(calc(100vh + 90px)) rotate(560deg); opacity: 0.9; }
}
/* PIG MINI GAME ANIMATIONS END */

@media (max-width: 980px) {
  .section { padding: 64px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { width: 100%; }
  .hero { min-height: auto; }
  .hero-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }
  .hopa-promo-box {
    align-items: flex-start;
    flex-direction: column;
  }
  .sticky-title { position: static; }
  .strip-grid,
  .case-grid,
  .value-grid,
  .tech-groups,
  .article-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .container,
  .nav {
    width: min(100% - 24px, 1160px);
  }
  .brand span:last-child { max-width: 170px; }
  h1 { font-size: clamp(2.2rem, 13vw, 3.6rem); }
  .hero-copy h1 { font-size: clamp(1.54rem, 9.1vw, 2.52rem); }
  .hero-actions,
  .button { width: 100%; }
  .profile-photo { width: min(100%, 280px); }
  .stats,
  .strip-grid,
  .case-grid,
  .value-grid,
  .tech-groups,
  .article-grid,
  .article-list-page .article-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .article-content {
    padding: 1.15rem;
  }
  .sticky-cta { display: none; }
  .site-header { background: #f6f1e8; backdrop-filter: none; }
  .orbit, .hopa-promo .button, .hopa-promo-hook { animation: none; }
  .floating-pig {
    --pig-size: 46px;
    left: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    animation: none;
  }
  .pig-ear-svg, .pig-snout-svg { animation: none; }
  .pig-svg { filter: none; }
  .pig-score { font-size: 0.78rem; }
  .star-target {
    width: 42px;
    height: 42px;
  }
  .download-box {
    align-items: stretch;
    flex-direction: column;
  }
  .download-button {
    width: 100%;
  }
}

@media (hover: none) and (pointer: coarse) {
  .sticky-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
