.ambient-light {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.ambient-light::before, .ambient-light::after {
  content: "";
  position: absolute;
  width: min(65vw, 850px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 145, 245, .075), transparent 68%);
  animation: ambientDrift 28s ease-in-out infinite alternate;
}
.ambient-light::before { left: -20%; top: 8%; }
.ambient-light::after { right: -18%; bottom: -15%; animation-delay: -14s; }
@keyframes ambientDrift {
  from { transform: translate3d(0, -3%, 0); opacity: .55; }
  to { transform: translate3d(8%, 5%, 0); opacity: 1; }
}
.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 101;
  pointer-events: none;
  background: linear-gradient(90deg, #668cf0, #b3d4ff);
  box-shadow: 0 0 10px rgba(122, 156, 255, .35);
  transform: scaleX(0);
  transform-origin: left;
}
.section h2::after { height: 2px; width: 84px; opacity: .75; }
.development-project { overflow: hidden; }
.qa-card::after, .studios-card::after, .development-project::after {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(280px circle at var(--light-x, 50%) var(--light-y, 0%), rgba(139, 177, 255, .25), transparent 72%);
  opacity: 0;
  transform: none;
  transition: opacity .4s ease;
}
.card:hover::after, .experience-card:hover::after, .contact-card:hover::after, .about-text:hover::after {
  animation: none;
  opacity: 0;
}
.project-heading > span { display: inline-block; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.btn, .socials a, .socials button, .studio-group-link {
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.studio-group-link { text-underline-offset: 5px; }
.qa-process { margin: -12px 0 28px; padding: 16px 20px; border: 1px solid var(--border); border-radius: 16px; background: rgba(12, 27, 57, .45); }
.qa-process h3 { font-size: 13px; font-weight: 600; color: var(--soft); margin: 0 0 12px; }
.qa-process ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.qa-process li { font-size: 13px; line-height: 1.5; }
.personal-contribution { padding: 12px 16px; margin: 16px 0; border-left: 2px solid var(--primary); background: rgba(122, 156, 255, .055); border-radius: 0 10px 10px 0; }
.personal-contribution strong { font-size: 13px; color: var(--text); }
.personal-contribution p { margin: 5px 0 0; font-size: 14px; }
.copy-discord.copy-confirmed { border-color: #9bcbbd; box-shadow: 0 0 18px rgba(155, 203, 189, .14); }
.toast { pointer-events: none; max-width: calc(100vw - 32px); }
.cursor-dot { position: fixed; top: 0; left: 0; width: 0; height: 0; pointer-events: none; z-index: 100000; display: none; }
.cursor-dot::before { content: ""; position: absolute; width: 7px; height: 7px; left: -3.5px; top: -3.5px; border-radius: 50%; background: #e4eeff; box-shadow: 0 0 0 1px #526990, 0 0 13px rgba(139, 177, 255, .7); transition: transform .18s ease; }
.cursor-dot.over-control::before { transform: scale(1.5); }
.featured-project-section .development-project { border-radius: 12px; background: rgba(11, 25, 50, .94); padding: clamp(20px, 3vw, 30px); }
.featured-project-section .development-project:hover { box-shadow: none; border-color: var(--border-strong); }
.featured-project-section .game-concepts { background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: 14px 0; }
.featured-project-section .personal-contribution { background: none; border-radius: 0; padding: 4px 0 4px 14px; }
.featured-project-section .development-facts > div { background: none; border: 0; padding: 4px 0; }
@media (hover: hover) and (pointer: fine) {
  html.dot-cursor, html.dot-cursor * { cursor: none !important; }
  .dot-cursor .cursor-dot { display: block; }
  .pointer-lit::after, .pointer-lit:hover::after { opacity: 1; }
  .card:hover, .experience-card:hover, .skill-group:hover, .contact-card:hover { transform: translateY(-3px); box-shadow: 0 18px 48px rgba(0, 0, 0, .35), 0 0 22px rgba(122, 156, 255, .1); }
  .qa-card:hover .project-heading > span { transform: translate(2px, -2px); }
  .studio-group-link:hover { text-decoration: underline; }
  .socials a:hover, .socials button:hover { transform: translateY(-2px); }
}
@media (max-width: 600px) {
  .qa-process { padding: 14px; }
  .qa-process ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ambient-light::before, .ambient-light::after { width: 90vw; animation: none; }
  .toast { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-light::before, .ambient-light::after { animation: none; }
  .pointer-lit::after { opacity: 0; }
  .qa-card:hover .project-heading > span, .socials a:hover, .socials button:hover,
  .card:hover, .experience-card:hover, .skill-group:hover, .contact-card:hover { transform: none; }
}
.cursor-glow { position: fixed; top: 0; left: 0; width: 0; height: 0; pointer-events: none; z-index: 99; display: none; }
.cursor-glow::before { content: ""; position: absolute; left: -140px; top: -140px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(139,177,255,.19), rgba(100,150,255,.07) 38%, transparent 70%); }
/* One composited glow replaces gradients repainted separately inside each card. */
@media (hover: hover) and (pointer: fine) { .dot-cursor .cursor-glow { display: block; } }
.card, .experience-card, .contact-card, .about-text { backdrop-filter: none; }
.btn.primary { animation: none; }
@media (prefers-reduced-motion: reduce) { .dot-cursor .cursor-glow { display: none; } }
/* Static hero depth avoids repainting a viewport-sized masked layer on every scroll. */
.decor-paused .hero-particle { animation-play-state: paused; }
.stat-value, .qa-compact-meta strong { font-variant-numeric: tabular-nums; }
@media (max-width: 800px), (pointer: coarse) {
  .ambient-light, .cursor-glow, .cursor-dot { display: none !important; }
  .card, .experience-card, .contact-card { box-shadow: 0 8px 24px rgba(0,0,0,.24); }
  .socials button, .hero-reach, .btn, .availability-status { backdrop-filter: none; }
  .menu-toggle, .lang-switch button, .gallery-indicators button, .gallery-controls button, .studio-games-more summary { min-height: 44px; }
  .studio-games-more summary { display: flex; align-items: center; }
}
