* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  background-color: #b9dbf7;
  background-image:
    radial-gradient(1100px 700px at 18% 8%, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0) 60%),
    radial-gradient(900px 650px at 85% 25%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 55%),
    radial-gradient(1000px 900px at 50% 95%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  color: #16324f;
  font-family: 'Times New Roman', Times, serif;
  font-size: 15px;
  text-shadow: 0 0 4px #fff, 0 0 10px rgba(255, 255, 255, 0.65);
  overflow-x: hidden;
}

#matrix {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
}

#bg-gifs {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-dog {
  position: absolute;
}

#fadein {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #b9dbf7;
  z-index: 30;
  pointer-events: none;
  animation: fadeOut 0.9s ease-out forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

#page {
  position: relative;
  z-index: 1;
  width: min(92vw, 880px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0.75rem 0 2rem;
}

#intro {
  position: relative;
  height: 100vh;
  min-height: 540px;
  overflow: hidden;
}

.gif-float {
  position: absolute;
  z-index: 1;
  opacity: 0.9;
  transition: transform 1.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

body.loaded .gif-float {
  transform: translate(0, 0) rotate(0deg) scale(1);
}

.gif-float img {
  display: block;
  animation: bob 7s ease-in-out infinite;
}

.gif-float:nth-child(even) img {
  animation-delay: -3.5s;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.intro-title-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.intro-title {
  display: block;
  font-size: clamp(42px, 12vw, 100px);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #f28bb4;
  -webkit-text-stroke: 1px #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.95), 0 0 30px rgba(247, 168, 196, 0.9), 0 5px 0 rgba(22, 50, 79, 0.18);
  opacity: 0;
  animation: titleIn 2.6s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

@keyframes titleIn {
  0% {
    opacity: 0;
    transform: scale(0.55);
    letter-spacing: 0.5em;
    filter: blur(14px);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1);
    letter-spacing: 0.08em;
    filter: blur(0);
  }
}

.intro-tagline {
  opacity: 0;
  margin-top: 18px;
  font-size: 18px;
  font-style: italic;
  color: #16324f;
  max-width: 620px;
  animation: tagIn 1.4s ease-out 2.9s forwards;
}

@keyframes tagIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  color: #f28bb4;
  font-weight: bold;
  opacity: 0;
  animation: scrollIn 1s ease-out 4.2s forwards, blinker 1s steps(1, start) 5.2s infinite;
}

@keyframes scrollIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

a {
  color: #2f6fd0;
}

a:hover {
  color: #f28bb4;
}

a:visited {
  color: #8e7cc3;
}

.panel-card {
  padding: 1.5rem;
  scroll-margin-top: 60px;
  scroll-margin-bottom: 120px;
}

table.panel {
  width: 100%;
  margin: 0;
}

table.panel td {
  padding: 14px 16px;
}

.blink {
  animation: blinker 1s steps(1, start) infinite;
}

@keyframes blinker {
  50% { opacity: 0; }
}

.yellow-blink {
  color: #ffc93d;
  font-weight: bold;
  text-shadow: 0 0 6px #fff, 0 1px 0 rgba(22, 50, 79, 0.25);
}

.gibberish {
  display: none;
  color: #5b7da3;
  font-style: italic;
  font-size: 12px;
}

body.translated .gibberish {
  display: block;
}

.section-title {
  font-size: 30px;
  color: #ffc93d;
  letter-spacing: 3px;
  text-shadow: 0 0 6px #fff, 0 1px 0 rgba(22, 50, 79, 0.25);
}

.win {
  position: relative;
  width: 100%;
  margin: 0;
  z-index: 1;
}

.win.dragging {
  z-index: 50;
}

.win-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 8px 7px 16px;
  background: linear-gradient(90deg, #16324f, #2f6fd0);
  border-radius: 8px 8px 0 0;
  cursor: grab;
  user-select: none;
}

.win.dragging .win-bar {
  cursor: grabbing;
}

.win-title {
  font-size: 20px;
  color: #ffe08a;
  font-weight: bold;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(255, 224, 138, 0.5);
}

.win-controls {
  display: flex;
  gap: 5px;
}

.win-btn {
  width: 26px;
  height: 22px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
  background: #eaf4fe;
  color: #16324f;
  border: 1px solid #16324f;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(22, 50, 79, 0.25);
}

.win-btn:hover {
  background: #ffe08a;
}

.win-close:hover {
  background: #f7a8c4;
}

.win-body table.panel {
  width: 100%;
  margin: 0;
}

.win.minimized,
.win.closed {
  display: none;
}

body.no-select {
  user-select: none;
}

.dock-chip {
  font-family: 'Times New Roman', Times, serif;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid #00ff41;
  background: rgba(0, 255, 65, 0.15);
  color: #ffe08a;
  cursor: pointer;
  white-space: nowrap;
  text-shadow: none;
}

.dock-chip:hover {
  background: #00ff41;
  color: #05220f;
}

marquee {
  background: rgba(22, 50, 79, 0.88);
  color: #ffe08a;
  font-size: 14px;
  display: block;
  padding: 4px 0;
  text-shadow: none;
}

.win {
  scroll-margin-top: 60px;
  scroll-margin-bottom: 120px;
}

.floating-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 90vw;
  flex-wrap: nowrap;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(10, 26, 42, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 255, 65, 0.55);
  box-shadow:
    0 0 15px rgba(0, 255, 65, 0.4),
    0 0 40px rgba(0, 255, 65, 0.15),
    0 12px 30px rgba(10, 26, 42, 0.45),
    inset 0 0 18px rgba(0, 255, 65, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(28px);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, visibility 0.5s;
}

body.nav-visible .floating-nav {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.floating-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 999px;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 65, 0.05) 0px,
    rgba(0, 255, 65, 0.05) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: screen;
}

.floating-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

.floating-nav a {
  display: block;
  padding: 9px 16px;
  font-family: 'Times New Roman', Times, serif;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #ffe08a;
  text-decoration: none;
  border-radius: 999px;
  text-shadow: 0 0 6px rgba(0, 255, 65, 0.35);
  transition: color 0.22s ease, background 0.22s ease, transform 0.12s ease-out, text-shadow 0.22s ease;
  will-change: transform;
}

.floating-nav a:hover {
  color: #00ff41;
  text-shadow: 0 0 12px rgba(0, 255, 65, 0.9);
  background: rgba(0, 255, 65, 0.12);
}

.floating-nav a.nav-active {
  background: #00ff41;
  color: #05220f;
  text-shadow: none;
  box-shadow: 0 0 16px rgba(0, 255, 65, 0.7);
}

.floating-nav a:focus-visible {
  outline: 2px dashed #00ff41;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .floating-nav {
    gap: 2px;
    padding: 6px 7px;
  }
  .floating-nav a {
    padding: 8px 10px;
    font-size: 13px;
    letter-spacing: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-nav,
  .floating-nav a {
    transition: none;
  }
}

.mixcover {
  border: 2px solid #2f6fd0;
}

.photorow {
  margin: 0 auto;
}

.photorow td {
  perspective: 900px;
}

.photorow img {
  border: 2px solid #f7a8c4;
}

.photo-spin {
  cursor: pointer;
  animation: spinFlip 3s linear infinite;
  will-change: transform;
}

.photo-spin:hover {
  filter: brightness(1.06);
}

@keyframes spinFlip {
  0% { transform: rotate(180deg) rotateY(0deg); }
  100% { transform: rotate(180deg) rotateY(360deg); }
}

#photobox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(10, 26, 42, 0.88);
  cursor: zoom-out;
}

#photobox.open {
  display: flex;
}

#photoboxClose {
  position: absolute;
  top: 18px;
  right: 22px;
  padding: 10px 18px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  font-weight: bold;
  color: #05220f;
  background: #ffc93d;
  border: 1px solid #00ff41;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 201, 61, 0.45);
  z-index: 1;
}

#photoboxClose:hover {
  background: #00ff41;
}

#photoboxImg {
  max-width: 92vw;
  max-height: 92vh;
  border: 3px solid #f7a8c4;
  box-shadow: 0 0 44px rgba(247, 168, 196, 0.55);
}

#photobox.open #photoboxImg {
  animation: flipRight 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

@keyframes flipRight {
  from { transform: rotate(180deg) scale(0.55); }
  to { transform: rotate(360deg) scale(1); }
}

#counter {
  font-family: 'Courier New', Courier, monospace;
  font-size: 26px;
  color: #16324f;
  background: #eaf4fe;
  border: 2px inset #2f6fd0;
  padding: 4px 10px;
  letter-spacing: 6px;
  text-shadow: none;
}

#topBtn {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 20;
  background: #ffffff;
  color: #f28bb4;
  border: 2px solid #f7a8c4;
  font-family: 'Times New Roman', Times, serif;
  font-size: 16px;
  font-weight: bold;
  padding: 8px 12px;
  cursor: pointer;
  text-shadow: none;
}

#topBtn:hover {
  background: #f7a8c4;
  color: #ffffff;
}

.music-fab {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 9999;
  padding: 10px 16px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  font-weight: bold;
  color: #ffe08a;
  background: rgba(10, 26, 42, 0.78);
  border: 1px solid rgba(0, 255, 65, 0.55);
  border-radius: 999px;
  cursor: pointer;
  text-shadow: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 12px rgba(0, 255, 65, 0.35);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.music-fab:hover {
  background: #00ff41;
  color: #05220f;
  transform: translateY(-2px);
}

.musicbtn {
  background: #ffffff;
  color: #16324f;
  border: 2px solid #2f6fd0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  font-weight: bold;
  padding: 6px 14px;
  cursor: pointer;
  text-shadow: none;
}

.musicbtn:hover {
  background: #2f6fd0;
  color: #ffffff;
}

.translatebtn {
  background: #ffffff;
  color: #16324f;
  border: 2px solid #2f6fd0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  font-weight: bold;
  padding: 5px 12px;
  cursor: pointer;
  letter-spacing: 1px;
  text-shadow: none;
}

.translatebtn:hover {
  background: #2f6fd0;
  color: #ffffff;
}

a.requestdog {
  display: inline-block;
  font-size: 30px;
  color: #ffffff;
  background: #f7a8c4;
  border: 4px outset #f7a8c4;
  padding: 10px 24px;
  text-decoration: none;
  letter-spacing: 2px;
  font-weight: bold;
  text-shadow: 0 1px 0 rgba(22, 50, 79, 0.25);
}

a.requestdog:hover {
  background: #f28bb4;
  border-color: #f28bb4;
  color: #ffffff;
}

a.requestdog:visited {
  color: #ffffff;
}

.hr-gif {
  border: 0;
  border-top: 2px dotted #f7a8c4;
  margin: 14px 0;
}

.small {
  font-size: 12px;
  color: #5a9a82;
}

.center {
  text-align: center;
}

.quote {
  color: #16324f;
  font-style: italic;
  font-size: 16px;
  padding-top: 10px;
}

.quote-src {
  color: #2f6fd0;
  font-size: 13px;
  padding-bottom: 4px;
}

table.facts {
  border-collapse: collapse;
  margin: 10px 0;
}

table.facts td {
  padding: 4px 12px;
}

table.facts td.k {
  color: #f28bb4;
  font-weight: bold;
}

@media (prefers-reduced-motion: reduce) {
  .gif-float {
    transition: none;
  }
  .intro-title,
  .intro-tagline,
  .intro-scroll {
    animation-duration: 0.01s;
    animation-delay: 0s;
  }
  .gif-float img {
    animation: none;
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-orb-1 {
  width: 340px;
  height: 340px;
  background: #f7a8c4;
  top: 8%;
  left: 6%;
  animation: orbFloat1 11s ease-in-out infinite;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: #9ecbff;
  bottom: 10%;
  right: 5%;
  animation: orbFloat2 13s ease-in-out infinite;
}

.hero-orb-3 {
  width: 220px;
  height: 220px;
  background: #ffe08a;
  bottom: 22%;
  left: 16%;
  animation: orbFloat3 9s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.12); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-36px, -28px) scale(1.1); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -34px) scale(0.92); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  width: 100%;
  padding: 20px;
  text-align: center;
}

.hero-name {
  display: block;
  font-size: clamp(44px, 11vw, 84px);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #f28bb4;
  -webkit-text-stroke: 1px #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.95), 0 0 34px rgba(247, 168, 196, 0.9), 0 5px 0 rgba(22, 50, 79, 0.18);
  margin-bottom: 18px;
  animation: nameGlow 4s ease-in-out infinite;
}

@keyframes nameGlow {
  0%, 100% {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.95), 0 0 34px rgba(247, 168, 196, 0.9), 0 5px 0 rgba(22, 50, 79, 0.18);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 60px rgba(247, 168, 196, 1), 0 5px 0 rgba(22, 50, 79, 0.18);
  }
}

.hero-desc {
  font-size: 18px;
  line-height: 1.6;
  color: #16324f;
  max-width: 560px;
  margin: 0 auto 34px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.btn {
  display: inline-block;
  padding: 15px 32px;
  font-family: 'Times New Roman', Times, serif;
  font-size: 19px;
  font-weight: bold;
  letter-spacing: 2px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  text-shadow: none;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #f7a8c4, #f28bb4);
  border: 2px solid #f7a8c4;
  box-shadow: 0 8px 22px rgba(242, 139, 180, 0.45);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 30px rgba(242, 139, 180, 0.65), 0 0 24px rgba(247, 168, 196, 0.5);
}

.btn-secondary {
  color: #16324f;
  background: transparent;
  border: 2px solid #2f6fd0;
  box-shadow: 0 8px 20px rgba(47, 111, 208, 0.25);
}

.btn-secondary:hover {
  transform: translateY(-4px) scale(1.03);
  background: #2f6fd0;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(47, 111, 208, 0.5);
}

.btn:focus-visible,
.social-link:focus-visible {
  outline: 2px dashed #f28bb4;
  outline-offset: 3px;
}

.hero-social {
  display: flex;
  gap: 18px;
  justify-content: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #16324f;
  background: transparent;
  border: 2px solid rgba(47, 111, 208, 0.4);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.social-link:hover {
  transform: translateY(-5px) rotate(-6deg) scale(1.1);
  color: #ffffff;
  background: linear-gradient(135deg, #f7a8c4, #f28bb4);
  border-color: #f28bb4;
  box-shadow: 0 10px 24px rgba(242, 139, 180, 0.55), 0 0 20px rgba(247, 168, 196, 0.45);
}

@media (max-width: 700px) {
  .hero-inner {
    padding: 16px;
  }
  .photorow tr {
    display: block;
  }
  .photorow td {
    display: block;
    margin-bottom: 1rem;
  }
  .photorow img {
    width: 100%;
    height: auto;
    max-width: 320px;
  }
  .floating-nav {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 24px;
    padding: 7px;
  }
  .floating-nav::before {
    border-radius: 24px;
  }
  .win-bar {
    padding: 6px 6px 6px 10px;
  }
  .win-title {
    font-size: 16px;
    letter-spacing: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb,
  .hero-inner,
  .hero-name {
    animation: none;
  }
  .btn,
  .social-link {
    transition: none;
  }
  .photo-spin,
  #photobox.open #photoboxImg {
    animation: none;
  }
  .photo-spin {
    transform: rotate(180deg);
  }
}
