/* ULTRA MOTION LAYER — original styling and bundled Minecraftia font retained. */
:root {
  color-scheme: dark;
  --page-text: #f1f4e8;
  --theme-surface: #101a14;
  --theme-soft: #17241a;
  --theme-line: #334739;
  --scroll-blur: 0px;
  --mx: 50%;
  --my: 40%;
}
:root[data-theme="light"] {
  color-scheme: light;
  --deep: #f2f6e9;
  --surface: #fffef5;
  --lime: #3d6415;
  --forest: #5c7b31;
  --line: #c3d0b4;
  --muted-copy: #536348;
  --page-text: #17270f;
  --theme-surface: #fffef5;
  --theme-soft: #e5edda;
  --theme-line: #bbccb0;
}
body {
  color: var(--page-text);
}
html {
  scroll-padding-top: 32px;
}
.portfolio {
  color: var(--page-text);
}
.site-footer,
.hero,
.work-section,
.about-section,
.contact-section {
  position: relative;
  z-index: 2;
}
.site-nav {
  z-index: 8;
}
.skip-link {
  position: fixed;
  left: 14px;
  top: 12px;
  z-index: 100;
  padding: 15px;
  background: var(--lime);
  color: var(--deep);
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* System theme + manual toggle: light surfaces are actually recolored, not inverted. */
[data-theme="light"] .portfolio {
  background: radial-gradient(
    ellipse at 50% 10%,
    #e3f4c9 0,
    #f3f6e9 42rem,
    var(--deep) 82rem
  );
}
[data-theme="light"] .site-nav,
[data-theme="light"] .preview-dialog {
  background: #fffef5ed;
  border-color: var(--theme-line);
  box-shadow: 0 18px 45px #4f68271a;
}
[data-theme="light"] .wordmark,
[data-theme="light"] .footer-logo,
[data-theme="light"] .hero h1,
[data-theme="light"] .hero-subtitle,
[data-theme="light"] .video-title,
[data-theme="light"] .preview-dialog h2 {
  color: var(--page-text);
}
[data-theme="light"] .hero h1 {
  text-shadow:
    4px 5px 0 #d5e4bf,
    0 0 50px #95bf4933;
}
[data-theme="light"] .site-nav nav,
[data-theme="light"] .social-row,
[data-theme="light"] .eyebrow,
[data-theme="light"] .hero-coordinate,
[data-theme="light"] .title-hint,
[data-theme="light"] .coordinates,
[data-theme="light"] .site-footer,
[data-theme="light"] .scroll-cue,
[data-theme="light"] .motion-button small,
[data-theme="light"] .video-count,
[data-theme="light"] .video-kicker {
  color: #526343;
}
[data-theme="light"] .button-ghost,
[data-theme="light"] .filter,
[data-theme="light"] .tag-row span {
  color: #334d25;
  border-color: #b7cba4;
  background: #ffffff60;
}
[data-theme="light"] .filter.active,
[data-theme="light"] .filter:hover {
  background: #daedbe;
  color: #274a0d;
  border-color: #8eb561;
}
[data-theme="light"] .video-card {
  background: linear-gradient(145deg, #fffff9, #e9f1df);
  border-color: #bccfac;
  box-shadow: 0 8px 25px #4966220d;
}
[data-theme="light"] .video-card:hover {
  box-shadow: 0 20px 44px #3a5b2826;
}
[data-theme="light"] .avatar-frame {
  background: linear-gradient(145deg, #eff8dd, #fbfff6);
  box-shadow:
    12px 12px 0 #d7e4c6,
    0 0 65px #abc66a21;
}
[data-theme="light"] .avatar-face {
  background: linear-gradient(145deg, #deedca, #f5f9ec);
  text-shadow: 5px 6px #c6d9ad;
}
[data-theme="light"] .avatar-status {
  color: #38542c;
}
[data-theme="light"] .contact-panel {
  background:
    radial-gradient(ellipse at 20% 0, #d0e7b9, transparent 65%),
    linear-gradient(130deg, #f8ffe9, #edf4df);
  border-color: #a9c68e;
}
[data-theme="light"] .work-section,
[data-theme="light"] .work-toolbar,
[data-theme="light"] .about-section,
[data-theme="light"] .site-footer {
  border-color: #b8cda8;
}
[data-theme="light"] .film-wall {
  opacity: 0.24;
}
[data-theme="light"] .film-tile {
  border-color: #61823a33;
  background: linear-gradient(145deg, #91ae6455, #cfdfa344);
}
[data-theme="light"] .motion-button,
[data-theme="light"] .sound-toggle,
[data-theme="light"] .theme-toggle,
[data-theme="light"] .mobile-menu,
[data-theme="light"] .loot-hud {
  background: #f8fff0ed;
  color: #3a5825;
  border-color: #a4be8f;
  box-shadow: 0 5px 25px #4b6d2320;
}
[data-theme="light"] .preview-top button {
  color: #28411a;
  background: #e1edce;
  border-color: #b0c49b;
}
[data-theme="light"] .achievement {
  color: #20370f;
  background: #f8ffeef5;
  border-color: #82a457;
}
.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  order: 3;
}
.theme-toggle,
.mobile-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid #c3f87b45;
  border-radius: 999px;
  background: #142218;
  color: #d6ebc0;
  font: 6px var(--pixel-font);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.theme-toggle:hover {
  transform: translateY(-3px) rotate(-2deg);
  box-shadow: 0 0 25px #a9e95c25;
}
.theme-toggle #theme-icon {
  font:
    19px/1 system-ui,
    sans-serif;
  color: var(--lime);
  transition: transform 0.5s var(--ease);
}
.theme-toggle:hover #theme-icon {
  transform: rotate(90deg);
}
.mobile-menu {
  display: none;
}
.site-nav nav {
  gap: clamp(14px, 2.5vw, 30px);
}
::view-transition-old(root) {
  animation: theme-old 0.65s ease both;
}
::view-transition-new(root) {
  animation: theme-reveal 0.7s var(--ease) both;
}
::view-transition-group(root) {
  animation-duration: 0.7s;
}
@keyframes theme-reveal {
  from {
    clip-path: circle(0% at var(--theme-x, 90%) var(--theme-y, 5%));
    filter: blur(4px);
  }
  to {
    clip-path: circle(150% at var(--theme-x, 90%) var(--theme-y, 5%));
    filter: blur(0);
  }
}
@keyframes theme-old {
  to {
    filter: blur(2px);
  }
}
/* Ambient spectacle: the text layer never inherits scroll blur. */
#atmosphere {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
}
.aurora {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.33;
}
.aurora i {
  position: absolute;
  width: 70vw;
  height: 50vh;
  left: -15%;
  top: 15%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #72be3b48, transparent 65%);
  filter: blur(38px);
  animation: aurora-roam 24s ease-in-out infinite alternate;
}
.aurora i:nth-child(2) {
  left: 50%;
  top: 30%;
  background: radial-gradient(ellipse, #50adbf38, transparent 65%);
  animation-delay: -7s;
  animation-duration: 29s;
}
.aurora i:nth-child(3) {
  left: 25%;
  top: 75%;
  background: radial-gradient(ellipse, #c3a2fa28, transparent 65%);
  animation-delay: -12s;
}
.speed-lines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
  background: repeating-linear-gradient(
    115deg,
    transparent 0 150px,
    #c3f87b18 151px,
    transparent 153px 280px
  );
  mask-image: radial-gradient(ellipse, transparent 20%, #000);
  animation: speed-drift 30s linear infinite;
}
.film-wall {
  filter: blur(var(--scroll-blur));
  transition: filter 0.18s linear;
}
.film-tile {
  animation: tile-breathe 7s ease-in-out infinite alternate;
}
.film-tile:nth-child(2n) {
  animation-delay: -3s;
}
.film-column {
  animation-duration: 44s;
}
.film-column-1 {
  animation-duration: 62s;
}
.film-column-2 {
  animation-duration: 52s;
}
.scene-glow {
  animation-duration: 12s;
}
.cursor-halo {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, #a2ee5a10, transparent 68%);
  pointer-events: none;
  transform: translate3d(-600px, -600px, 0);
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s;
}
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 32%;
  width: min(550px, 85vw);
  aspect-ratio: 1;
  border: 1px solid #b1ef6b11;
  border-radius: 50%;
  transform: translate(-50%, -30%);
  box-shadow:
    0 0 80px #b1ef6b05,
    inset 0 0 80px #b1ef6b04;
  animation: portal-breathe 9s ease-in-out infinite;
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 32%;
  width: min(650px, 98vw);
  aspect-ratio: 1;
  border: 1px dashed #b1ef6b12;
  border-radius: 50%;
  pointer-events: none;
  animation: portal-orbit 80s linear infinite;
}
.hero-copy {
  animation: cinema-entry 1s var(--ease) both;
}
.hero-copy > p,
.hero-actions,
.social-row {
  animation: stagger-rise 1.1s var(--ease) both;
}
.hero-copy .eyebrow {
  animation-delay: 0.12s;
}
.hero-subtitle {
  animation-delay: 0.3s !important;
}
.hero-description {
  animation-delay: 0.4s !important;
}
.hero-actions {
  animation-delay: 0.5s;
}
.social-row {
  animation-delay: 0.6s;
}
.hero h1 {
  animation: title-float 4s ease-in-out infinite;
}
.brand-trigger {
  position: relative;
}
.brand-trigger::after {
  content: "";
  position: absolute;
  inset: 3% -4%;
  border-radius: 30%;
  background: linear-gradient(
    100deg,
    transparent 25%,
    #b7f46b0c 50%,
    transparent 75%
  );
  filter: blur(15px);
  z-index: -1;
  animation: name-aura 6s ease-in-out infinite;
}
.hero-title-wrap {
  transition: filter 0.2s;
}
.hero h1 span {
  display: inline-block;
  animation: dot-bob 3s ease-in-out infinite;
}
.title-hint {
  animation: hint-pulse 3s ease-in-out infinite !important;
}
.site-nav {
  animation:
    nav-in 1s var(--ease) both,
    nav-glow 8s ease-in-out infinite 1s;
}
.brand-cube {
  animation: cube-rock 8s ease-in-out infinite;
}
.site-nav nav a:not(.nav-cta) {
  position: relative;
}
.site-nav nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  height: 1px;
  left: 0;
  right: 100%;
  bottom: -6px;
  background: var(--lime);
  transition: right 0.3s;
}
.site-nav nav a:hover::after {
  right: 0;
}
/* Kinetic interactions, shine passes, perspective tilt and blur-in reveals. */
.button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translate3d(var(--mag-x, 0px), var(--mag-y, 0px), 0);
}
.button::before,
.theme-toggle::before {
  content: "";
  position: absolute;
  inset: -100% -30%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 35%,
    #ffffff40 50%,
    transparent 65%
  );
  transform: translateX(-130%);
}
.button:hover::before,
.theme-toggle:hover::before {
  animation: ultra-shine 0.8s var(--ease);
}
.button:hover {
  transform: translate3d(var(--mag-x, 0px), calc(var(--mag-y, 0px) - 5px), 0)
    scale(1.025);
}
.button span {
  transition: transform 0.35s;
}
.button:hover span {
  transform: translate(3px, -2px) rotate(-8deg);
}
.click-ripple {
  position: absolute;
  pointer-events: none;
  width: 12px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: click-ripple 0.7s var(--ease) forwards;
  z-index: 4;
}
.scroll-reveal {
  opacity: 1;
  transform: none;
  filter: none;
}
.js-enhanced .scroll-reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(45px) scale(0.97);
  filter: blur(7px);
}
.js-enhanced .scroll-reveal {
  transition:
    opacity 0.95s var(--ease),
    transform 0.95s var(--ease),
    filter 0.95s var(--ease),
    box-shadow 0.3s,
    border-color 0.3s;
}
.video-card.scroll-reveal.is-visible {
  animation: none;
  transform: perspective(800px) translateY(var(--card-lift, 0px))
    rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  filter: none;
  transition:
    opacity 0.8s var(--ease),
    transform 0.35s var(--ease),
    filter 0.8s var(--ease),
    border-color 0.3s,
    box-shadow 0.3s;
}
.video-card:hover {
  --card-lift: -9px;
}
.video-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(
    circle at var(--shine-x, 50%) var(--shine-y, 50%),
    #ffffff19,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.video-card:hover .video-art::after {
  opacity: 1;
}
.video-art .art-grid {
  animation: grid-travel 12s linear infinite;
}
.video-art strong {
  animation: art-hover 5s ease-in-out infinite;
}
.video-card:nth-child(2n) .video-art strong {
  animation-delay: -2s;
}
.video-card:hover .play-icon {
  animation: play-orbit 1.5s ease-in-out infinite;
}
.video-card:hover .art-spark {
  animation-duration: 3s;
}
.watch-label span {
  animation: arrow-nudge 3.5s ease-in-out infinite;
}
.filter.active {
  box-shadow: 0 0 20px #b7f46b0c;
}
.filter:hover {
  transform: translateY(-2px);
}
.tag-row span {
  animation: tag-bob 6s ease-in-out infinite;
}
.tag-row span:nth-child(2) {
  animation-delay: -2s;
}
.tag-row span:nth-child(3) {
  animation-delay: -4s;
}
.avatar-frame {
  animation: avatar-hover 4.5s ease-in-out infinite;
}
.avatar-face b {
  animation: plus-spin 10s linear infinite;
}
.orbit {
  animation-duration: 15s;
}
.orbit-two {
  animation-duration: 22s;
}
.contact-panel::before {
  content: "";
  position: absolute;
  inset: -100%;
  pointer-events: none;
  background: conic-gradient(
    from 0deg,
    transparent,
    #b3f17112,
    transparent 50%,
    #8ed9e310,
    transparent
  );
  animation: spark-turn 30s linear infinite;
}
.contact-panel::after {
  animation-duration: 6s;
}
.panel-cross {
  animation: cross-turn 8s ease-in-out infinite;
}
.cross-b {
  animation-delay: -4s;
}
/* Easter egg: XP, combo milestones, safe cinematic TNT and respawn. */
.loot-hud {
  position: fixed;
  z-index: 15;
  left: 16px;
  bottom: 16px;
  width: min(235px, calc(100vw - 125px));
  padding: 13px;
  border: 1px solid #b7f46b55;
  border-radius: 11px;
  background: #0d1a12ee;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 35px #0004;
  color: #d9edc8;
  animation: hud-enter 0.45s var(--ease) both;
}
.loot-hud > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 6px;
}
.loot-hud strong {
  color: var(--lime);
  font-size: 6px;
}
.loot-hud small {
  font-size: 5px;
  display: block;
  margin-top: 8px;
  line-height: 1.7;
}
.xp-track,
.fuse-track {
  height: 4px;
  background: #a3cd5b20;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 10px;
}
.xp-track > span {
  height: 100%;
  display: block;
  width: 0;
  background: linear-gradient(90deg, #82c54a, #deff94);
  box-shadow: 0 0 12px #a9e46466;
  transition: width 0.25s var(--ease);
}
.achievement {
  position: fixed;
  top: 100px;
  right: 18px;
  z-index: 30;
  width: max-content;
  max-width: calc(100vw - 36px);
  padding: 16px 20px;
  border: 1px solid #bddb7880;
  border-radius: 10px;
  background: #152514f5;
  color: #edffd9;
  box-shadow: 0 15px 45px #0004;
  transform: translateX(calc(100% + 40px));
  opacity: 0;
  font-size: 7px;
  line-height: 2;
  transition:
    transform 0.55s var(--ease),
    opacity 0.35s;
  pointer-events: none;
}
.achievement.is-active {
  opacity: 1;
  transform: translateX(0);
}
.achievement small {
  display: block;
  color: var(--lime);
  font-size: 5px;
  margin-bottom: 5px;
}
.tnt-warning {
  bottom: 90px;
  flex-wrap: wrap;
  width: max-content;
  max-width: calc(100vw - 24px);
  font-size: 7px;
  animation: warning-pulse 2.5s ease-in-out infinite;
}
.tnt-warning > span:nth-child(2) {
  max-width: 240px;
  line-height: 2;
}
.tnt-warning button {
  font: 6px var(--pixel-font);
  border: 1px solid #ffc4a080;
  border-radius: 4px;
  background: #52251d;
  color: #ffe2cd;
  padding: 11px;
  min-height: 36px;
}
.tnt-warning button:hover {
  background: #75402b;
}
.fuse-track {
  display: block;
  flex: 1 0 100%;
  height: 3px;
  background: #ffac6a25;
  margin-top: 0;
}
.fuse-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ffcc8c, #ff6858);
  width: 0;
  transition: width 0.3s;
}
.burst-loot,
.burst-dust {
  filter: blur(var(--loot-blur, 0px));
  animation-name: loot-cinematic;
}
.loot-rare {
  outline: 1px solid #79ffff;
  box-shadow: 0 0 22px #50dfe888 !important;
}
.loot-epic {
  outline: 1px solid #c4a2fa;
  box-shadow: 0 0 24px #c4a2fa88 !important;
}
.loot-legendary {
  outline: 2px solid #ffe5a1;
  box-shadow: 0 0 30px #ffe17daa !important;
}
.loot-label {
  position: fixed;
  color: var(--lime);
  font: 7px var(--pixel-font);
  text-shadow: 0 2px 8px #000;
  pointer-events: none;
  z-index: 14;
  animation: xp-rise 1s var(--ease) forwards;
  white-space: nowrap;
}
.blast-ring {
  position: fixed;
  width: 80px;
  height: 80px;
  border: 5px solid #e5f9ae;
  border-radius: 50%;
  left: var(--blast-x, 50%);
  top: var(--blast-y, 35%);
  z-index: 19;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 60px #c3f87b77;
  transform: translate(-50%, -50%);
}
.blast-ring.is-blasting {
  animation: blast-ring 1s var(--ease) both;
}
.detonating .hero-copy {
  animation: blast-shudder 0.45s ease-in-out both;
}
.creative-mode .hero h1 {
  animation: title-float 3s ease-in-out infinite;
  text-shadow:
    4px 5px #020502,
    0 0 50px #c4a2fa44;
}
.creative-mode .brand-trigger {
  background: linear-gradient(
    90deg,
    #c3f87b,
    #8ed9e3,
    #c4a2fa,
    #ed9bb9,
    #c3f87b
  );
  background-size: 300%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: creative-gradient 6s linear infinite;
}
.creative-mode .brand-trigger > span {
  color: inherit;
}
.preview-backdrop,
.death-overlay {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  border: 0;
  overflow-y: auto;
  color: #f1f4e8;
}
.preview-backdrop:not([open]),
.death-overlay:not([open]) {
  display: none !important;
}
.preview-backdrop::backdrop,
.death-overlay::backdrop {
  background: #030704b0;
  backdrop-filter: blur(10px);
}
.preview-dialog {
  max-height: calc(100svh - 40px);
  overflow-y: auto;
}
.death-overlay {
  background: radial-gradient(ellipse at 50% 30%, #4f211be8, #1f1014f4 70%);
  animation: fade-in 0.45s ease both;
}
.death-content {
  max-height: calc(100svh - 40px);
  overflow-y: auto;
}
.death-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 18px 0 25px;
}
.death-summary > span {
  padding: 12px 6px;
  background: #b0706817;
  border: 1px solid #bf8d7d33;
  color: #e6b7a9;
  font-size: 6px;
  line-height: 2;
}
.death-summary strong {
  display: block;
  color: #fff0d3;
  font-size: 11px;
}
.death-content small {
  line-height: 2;
}
.death-heading {
  animation: death-text 3s ease-in-out infinite;
}
.death-content::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffc8a7, transparent);
  animation: death-scan 6s ease-in-out infinite;
  pointer-events: none;
}
.death-overlay::before {
  animation-duration: 28s;
}
.no-script {
  padding: 20px;
  line-height: 2;
}
/* FX are suspended off-tab; pause also resolves all in-flight entrance states. */
.fx-suspended *,
.fx-suspended *::before,
.fx-suspended *::after {
  animation-play-state: paused !important;
}
.motion-disabled *,
.motion-disabled *::before,
.motion-disabled *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
.motion-disabled .scroll-reveal,
.motion-disabled .hero-copy,
.motion-disabled .hero-copy > p,
.motion-disabled .hero-actions,
.motion-disabled .social-row,
.motion-disabled .loot-hud {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}
.motion-disabled .film-wall {
  filter: none !important;
}
.motion-disabled #atmosphere,
.motion-disabled .cursor-halo,
.motion-disabled .blast-ring,
.motion-disabled .speed-lines {
  display: none !important;
}
.motion-disabled .video-card {
  transform: none !important;
}
.motion-disabled .achievement.is-active {
  transform: none;
  opacity: 1;
}
@keyframes aurora-roam {
  to {
    transform: translate(20vw, -12vh) rotate(25deg) scale(1.2);
  }
}
@keyframes speed-drift {
  to {
    background-position: 560px 0;
  }
}
@keyframes tile-breathe {
  to {
    opacity: 0.55;
    box-shadow: inset 0 0 55px #bdf28b16;
  }
}
@keyframes portal-breathe {
  50% {
    scale: 1.06;
    opacity: 0.5;
  }
}
@keyframes portal-orbit {
  from {
    transform: translate(-50%, -30%) rotate(0);
  }
  to {
    transform: translate(-50%, -30%) rotate(360deg);
  }
}
@keyframes cinema-entry {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    filter: blur(9px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
@keyframes stagger-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
@keyframes name-aura {
  50% {
    opacity: 0.3;
    transform: scale(1.15);
  }
}
@keyframes dot-bob {
  50% {
    transform: translateY(-5px) rotate(8deg);
  }
}
@keyframes nav-glow {
  50% {
    box-shadow:
      0 18px 45px #0002,
      0 0 30px #c3f87b09;
    border-color: #c3f87b30;
  }
}
@keyframes cube-rock {
  25% {
    transform: rotate(-7deg);
  }
  75% {
    transform: rotate(7deg);
  }
}
@keyframes ultra-shine {
  to {
    transform: translateX(130%);
  }
}
@keyframes click-ripple {
  to {
    width: 180px;
    height: 180px;
    opacity: 0;
    filter: blur(2px);
  }
}
@keyframes grid-travel {
  to {
    background-position: 25px 25px;
  }
}
@keyframes art-hover {
  50% {
    transform: translateY(-4px) rotate(-3deg);
  }
}
@keyframes play-orbit {
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 15px var(--tone);
  }
}
@keyframes arrow-nudge {
  50% {
    transform: translate(3px, -3px);
  }
}
@keyframes tag-bob {
  50% {
    transform: translateY(-3px);
  }
}
@keyframes plus-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes cross-turn {
  50% {
    transform: rotate(90deg);
    opacity: 0.4;
  }
}
@keyframes hud-enter {
  from {
    opacity: 0;
    transform: translateY(25px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
@keyframes loot-cinematic {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
    filter: blur(0);
  }
  10% {
    opacity: 1;
    filter: blur(0);
  }
  45% {
    opacity: 1;
    filter: blur(1px);
  }
  100% {
    opacity: 0;
    transform: translate(
        calc(-50% + var(--burst-x)),
        calc(-50% + var(--burst-y))
      )
      scale(0.35) rotate(var(--burst-spin));
    filter: blur(2.5px);
  }
}
@keyframes xp-rise {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -70px);
    filter: blur(2px);
  }
}
@keyframes blast-ring {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
    filter: blur(0);
  }
  15% {
    opacity: 0.65;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(22);
    filter: blur(12px);
  }
}
@keyframes blast-shudder {
  20% {
    transform: translateX(-5px) rotate(-0.5deg);
    filter: blur(1px);
  }
  45% {
    transform: translateX(5px) rotate(0.5deg);
  }
  70% {
    transform: translateX(-3px);
  }
  100% {
    transform: none;
    filter: none;
  }
}
@keyframes creative-gradient {
  to {
    background-position: 300%;
  }
}
@keyframes death-scan {
  0%,
  100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.8;
  }
}
@media (max-width: 760px) {
  .site-nav {
    gap: 10px;
  }
  .nav-tools {
    margin-left: auto;
  }
  .theme-toggle {
    padding: 8px 10px;
  }
  .theme-toggle #theme-label {
    font-size: 5px;
  }
  .mobile-menu {
    display: inline-flex;
    font-size: 6px;
  }
  .js-enhanced .site-nav nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 18px;
    background: var(--theme-surface);
    border: 1px solid var(--theme-line);
    border-radius: 12px;
    box-shadow: 0 15px 35px #0003;
  }
  .js-enhanced .site-nav nav.is-open {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .js-enhanced .site-nav nav a:nth-child(2) {
    display: block;
  }
  .site-nav nav a {
    min-height: 36px;
    display: flex;
    align-items: center;
  }
  .hero::after {
    width: 95vw;
  }
  .film-wall {
    opacity: 0.4;
  }
  .cursor-halo {
    display: none;
  }
  .achievement {
    font-size: 6px;
    right: 12px;
    top: 90px;
    max-width: calc(100vw - 24px);
  }
  .tnt-warning {
    gap: 7px;
    font-size: 6px;
  }
  .tnt-warning > span:nth-child(2) {
    max-width: 170px;
  }
  .tnt-warning button {
    font-size: 5px;
  }
  .death-summary > span {
    font-size: 5px;
  }
  .loot-hud {
    left: 10px;
    bottom: 10px;
    padding: 10px;
  }
  .hero-copy > p,
  .hero-actions,
  .social-row {
    animation-duration: 0.85s;
  }
  .aurora {
    opacity: 0.22;
  }
}
@media (max-width: 430px) {
  .theme-toggle #theme-label {
    display: none;
  }
  .theme-toggle {
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
  }
  .mobile-menu {
    padding: 8px;
    font-size: 5px;
  }
  .site-nav {
    gap: 7px;
  }
  .hero h1 {
    font-size: clamp(65px, 18vw, 100px);
  }
  .hero-coordinate {
    left: -20px;
  }
  .coordinate-right {
    left: auto;
    right: -21px;
  }
  .hero-actions {
    flex-wrap: wrap;
  }
  .loot-hud > div:first-child {
    flex-wrap: wrap;
    gap: 6px;
  }
  .tnt-warning > span:nth-child(2) {
    max-width: 130px;
    font-size: 5px;
  }
  .tnt-warning small {
    font-size: 5px;
  }
  .theme-toggle #theme-icon {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .scroll-reveal,
  .hero-copy,
  .hero-copy > p,
  .hero-actions,
  .social-row {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  #atmosphere,
  .cursor-halo,
  .speed-lines,
  .blast-ring {
    display: none !important;
  }
  .film-wall {
    filter: none !important;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}
@media print {
  #atmosphere,
  .aurora,
  .speed-lines,
  .film-wall,
  .cursor-halo,
  .theme-toggle,
  .mobile-menu,
  .sound-toggle,
  .loot-hud,
  .tnt-warning,
  .achievement {
    display: none !important;
  }
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

html:not(.js-enhanced) .theme-toggle,
html:not(.js-enhanced) .mobile-menu,
html:not(.js-enhanced) .motion-button,
html:not(.js-enhanced) .sound-toggle {
  display: none;
}
@media (max-width: 760px) {
  html:not(.js-enhanced) .site-nav {
    height: auto;
    min-height: 58px;
    flex-wrap: wrap;
    padding-block: 12px;
  }
  html:not(.js-enhanced) .site-nav nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }
}
.hero h1:hover,
.hero h1:focus-within {
  animation-play-state: paused;
}

/* clip (not hidden) prevents browser focus from horizontally scrolling the entire page after a resize. */
.portfolio{overflow:clip}
