@font-face {
  font-family: 'Nintendoid1';
  src: url('font/nintendoid-1.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  pointer-events: none;
}

body.legal-bg {
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
}


.hero-bg {
  min-height: 94vh;
  width: 100vw;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  pointer-events: none;
}


header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2vw;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 10;
}

.logo {
  height: 50px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4));
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(207, 180, 219, 0.2),
    transparent
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

nav a:hover::before {
  transform: scaleX(1);
  opacity: 1;
}


main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  position: relative;
  z-index: 5;
  overflow: hidden;
}

.hero {
  text-align: center;
  margin-top: 5vh;
  
  max-width: 800px;
  padding: 0 2rem;
}

.hero .subtitle {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: #64ffda;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  background: linear-gradient(45deg, #64ffda, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    filter: drop-shadow(0 0 5px rgba(100, 255, 218, 0.5));
  }
  to {
    filter: drop-shadow(0 0 20px rgba(100, 255, 218, 0.8));
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  margin: 0 0 1.5rem 0;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero .desc {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .notice {
  font-size: 1rem;
  color: #64ffda;
  margin-bottom: 3rem;
  font-style: italic;
  padding: 1rem 2rem;
  background: rgba(100, 255, 218, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(100, 255, 218, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.notice.word-phase,
.notice.loading-phase {
  width: 360px;
  min-width: 0;
  max-width: 100%;
  text-align: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.notice.word-phase {
  font-size: 1.15rem;
  color: #64ffda;
  background: rgba(100,255,218,0.08);
  border-radius: 12px;
  padding: 0.7rem 1.5rem;
  border: 1px solid rgba(100,255,218,0.18);
  box-shadow: 0 2px 12px rgba(100,255,218,0.07);
  letter-spacing: 0.04em;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 2.2rem;
  transition: background 0.3s, color 0.3s;
  animation: fadeIn 0.5s;
}

.notice.loading-phase {
  font-size: 1.15rem;
  color: #ffcc00;
  background: rgba(255,204,0,0.08);
  border-radius: 12px;
  padding: 0.7rem 1.5rem;
  border: 1px solid rgba(255,204,0,0.18);
  box-shadow: 0 2px 12px rgba(255,204,0,0.07);
  letter-spacing: 0.04em;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 2.2rem;
  transition: background 0.3s, color 0.3s;
  animation: fadeIn 0.5s;
}


.notice.word-phase.dissolve,
.notice.loading-phase.dissolve {
  animation: glitchEffect 1.2s ease-out forwards;
}


.notice.word-phase.dissolve::before,
.notice.loading-phase.dissolve::before,
.notice.word-phase.dissolve::after,
.notice.loading-phase.dissolve::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: glitchLayers 1.2s ease-out forwards;
}

.notice.word-phase.dissolve::before {
  color: #ff0000;
  animation-delay: 0.1s;
  z-index: 1;
}

.notice.word-phase.dissolve::after {
  color: #00ffff;
  animation-delay: 0.2s;
  z-index: 2;
}

.notice.loading-phase.dissolve::before {
  color: #ff00ff;
  animation-delay: 0.1s;
  z-index: 1;
}

.notice.loading-phase.dissolve::after {
  color: #ffff00;
  animation-delay: 0.2s;
  z-index: 2;
}

@keyframes glitchLayers {
  0% {
    transform: translate(0, 0);
    opacity: 0.8;
  }
  10% {
    transform: translate(-1px, 0);
    opacity: 0.9;
  }
  20% {
    transform: translate(1px, 0);
    opacity: 0.7;
  }
  30% {
    transform: translate(-2px, 1px);
    opacity: 0.8;
  }
  40% {
    transform: translate(2px, -1px);
    opacity: 0.6;
  }
  50% {
    transform: translate(-3px, 0);
    opacity: 0.7;
  }
  60% {
    transform: translate(3px, 0);
    opacity: 0.5;
  }
  70% {
    transform: translate(-4px, 2px);
    opacity: 0.6;
  }
  80% {
    transform: translate(4px, -2px);
    opacity: 0.4;
  }
  90% {
    transform: translate(-5px, 0);
    opacity: 0.5;
  }
  100% {
    transform: translate(5px, 0);
    opacity: 0;
  }
}

@keyframes glitchEffect {
  0% {
    opacity: 1;
    transform: translate(0, 0);
    filter: hue-rotate(0deg) brightness(1);
  }
  5% {
    opacity: 1;
    transform: translate(-1px, 0);
    filter: hue-rotate(0deg) brightness(1.05);
  }
  10% {
    opacity: 1;
    transform: translate(1px, 0);
    filter: hue-rotate(2deg) brightness(0.95);
  }
  15% {
    opacity: 0.95;
    transform: translate(-0.5px, 0.5px);
    filter: hue-rotate(-2deg) brightness(1.1);
  }
  20% {
    opacity: 1;
    transform: translate(0.5px, -0.5px);
    filter: hue-rotate(5deg) brightness(0.9);
  }
  25% {
    opacity: 0.9;
    transform: translate(-1.5px, 0);
    filter: hue-rotate(-5deg) brightness(1.15);
  }
  30% {
    opacity: 1;
    transform: translate(1.5px, 0);
    filter: hue-rotate(7deg) brightness(0.85);
  }
  35% {
    opacity: 0.85;
    transform: translate(-1px, 1px);
    filter: hue-rotate(-7deg) brightness(1.2);
  }
  40% {
    opacity: 1;
    transform: translate(1px, -1px);
    filter: hue-rotate(10deg) brightness(0.8);
  }
  45% {
    opacity: 0.8;
    transform: translate(-2px, 0);
    filter: hue-rotate(-10deg) brightness(1.25);
  }
  50% {
    opacity: 1;
    transform: translate(2px, 0);
    filter: hue-rotate(12deg) brightness(0.75);
  }
  55% {
    opacity: 0.75;
    transform: translate(-1.5px, 1.5px);
    filter: hue-rotate(-12deg) brightness(1.3);
  }
  60% {
    opacity: 1;
    transform: translate(1.5px, -1.5px);
    filter: hue-rotate(15deg) brightness(0.7);
  }
  65% {
    opacity: 0.7;
    transform: translate(-2.5px, 0);
    filter: hue-rotate(-15deg) brightness(1.35);
  }
  70% {
    opacity: 1;
    transform: translate(2.5px, 0);
    filter: hue-rotate(17deg) brightness(0.65);
  }
  75% {
    opacity: 0.65;
    transform: translate(-2px, 2px);
    filter: hue-rotate(-17deg) brightness(1.4);
  }
  80% {
    opacity: 1;
    transform: translate(2px, -2px);
    filter: hue-rotate(20deg) brightness(0.6);
  }
  85% {
    opacity: 0.6;
    transform: translate(-3px, 0);
    filter: hue-rotate(-20deg) brightness(1.45);
  }
  90% {
    opacity: 1;
    transform: translate(3px, 0);
    filter: hue-rotate(22deg) brightness(0.55);
  }
  95% {
    opacity: 0.55;
    transform: translate(-2.5px, 2.5px);
    filter: hue-rotate(-22deg) brightness(1.5);
  }
  100% {
    opacity: 0;
    transform: translate(2.5px, -2.5px);
    filter: hue-rotate(25deg) brightness(0.5);
  }
}



.pixel-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 1px;
  pointer-events: none;
  animation: pixelFloat 1.5s ease-out forwards;
}

@keyframes pixelFloat {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  25% {
    opacity: 0.8;
    transform: translate(var(--dx, 10px), var(--dy, -5px)) scale(0.9);
  }
  50% {
    opacity: 0.6;
    transform: translate(calc(var(--dx, 10px) * 2), calc(var(--dy, -5px) * 2)) scale(0.7);
  }
  75% {
    opacity: 0.3;
    transform: translate(calc(var(--dx, 10px) * 3), calc(var(--dy, -5px) * 3)) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--dx, 10px) * 4), calc(var(--dy, -5px) * 4)) scale(0.3);
  }
}

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

.contact {
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 1.1rem 1rem;
  margin-bottom: 2rem;
  max-width: 500px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.5), transparent);
}

.contact:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(100, 255, 218, 0.3);
}

.contact h3 {
  color: #64ffda;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.contact p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.contact .email {
  display: inline-block;
  color: #64ffda;
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid rgba(100, 255, 218, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.contact .email::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.2), transparent);
  transition: left 0.5s;
}

.contact .email:hover::before {
  left: 100%;
}

.contact .email:hover {
  background: rgba(100, 255, 218, 0.2);
  border-color: rgba(100, 255, 218, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(100, 255, 218, 0.2);
}

.footer-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  position: relative;
  padding: 1.2rem 0 1rem 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-center {
  flex: 1 1 auto;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.2rem;
  position: absolute;
  right: 2vw;
  top: 50%;
  transform: translateY(-50%);
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
  letter-spacing: 0.05em;
}

.footer-links a:hover {
  color: #ffcc00;
  border-bottom: 1px solid #ffcc00;
}

@media (max-width: 805px) {
  .footer-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 1.2rem 0 0.5rem 0;
  }
  .footer-center {
    order: 1;
    margin-bottom: 0.5rem;
  }
  .footer-links {
    order: 2;
    position: static;
    flex-direction: column;
    align-items: center;
    transform: none;
    right: 0;
    top: 0;
    margin-bottom: 0.5rem;
    justify-content: center;
    gap: 0.2rem;
  }
  .footer-links a {
    margin-left: 0;
    margin-right: 0;
    font-size: 0.9rem;
  }
}


.flicker-zz {
  color: #FFCC00; 
  font-family: 'Nintendoid1', sans-serif;
  animation: flicker-zz 2s infinite ease-in-out;
  text-shadow: 0 0 10px rgba(255, 204, 0, 0.5); 
}


@keyframes flicker-zz {
  0%, 100% {
    text-shadow: 
      0 0 10px rgba(255, 204, 0, 0.6),   
      0 0 20px rgba(255, 179, 0, 0.4);    
  }
  50% {
    text-shadow: 
      0 0 5px rgba(255, 204, 0, 0.3),
      0 0 10px rgba(255, 179, 0, 0.2);
  }
  75% {
    text-shadow: 
      0 0 8px rgba(255, 204, 0, 0.5),
      0 0 15px rgba(255, 179, 0, 0.3);
  }
}







@media (max-width: 900px) {
  header {
    padding: 1rem 4vw;
  }
  
  .hero {
    margin-top: 3vh;
    padding: 0 1rem;
  }
  
  .contact {
    padding: 2rem 1.5rem;
    margin: 0 1rem 2rem 1rem;
  }
}

@media (max-width: 600px) {
  .logo {
    height: 40px;
  }
  
  nav a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .hero .desc {
    font-size: 1rem;
  }
  
  .contact {
    padding: 1.5rem 1rem;
  }
  
  .contact h3 {
    font-size: 1.2rem;
  }
  
  .contact .email {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }
}

@media (max-width: 400px) {
  .notice.word-phase,
  .notice.loading-phase {
    width: 180px;
    font-size: 0.98rem;
    padding: 0.6rem 0.2rem;
  }
}


html {
  scroll-behavior: smooth;
}


::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(100, 255, 218, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 255, 218, 0.5);
}

.mouse-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
background: radial-gradient(
  200px circle at var(--mouseX, 50%) var(--mouseY, 50%),
  rgba(182, 226, 243, 0.027),
  transparent 100%
);
  transition: background 0.05s linear;
}

.legal-main {
  max-width: 700px;
   text-align: center;
  margin: 2.5rem auto 2rem auto;
  background: rgba(30,30,30,0.92);
  border-radius: 18px;
  box-shadow: 0 4px 24px #0003;
  padding: 2.5rem 2rem;
  color: #fff;
  font-family: 'Inter', 'Montserrat', 'Poppins', Arial, sans-serif;
}
.legal-main h1 {
  color: #64ffda;
  font-size: 2rem;
  margin-bottom: 1.2rem;
  letter-spacing: 0.04em;
}
.legal-main h2 {
  color: #ffcc00;
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.7rem;
}
.legal-main h3 {
  color: #64ffda;
  font-size: 1.05rem;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}
.legal-main p, .legal-main ul, .legal-main li {
  color: #e0e0e0;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.1rem;
}
.legal-main a {
  color: #64ffda;
  text-decoration: underline;
  word-break: break-all;
}
.legal-content {
  margin-top: 1.5rem;
}
@media (max-width: 600px) {
  .legal-main {
    padding: 1.2rem 0.5rem;
    font-size: 0.98rem;
  }
  .legal-main h1 {
    font-size: 1.3rem;
  }
}

.legal-header {
  width: 100%;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1.1rem 0 1.1rem 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 2.5rem;
}
.legal-header .home-btn {
  margin-left: 2vw;
  background: none;
  border: none;
  color: #64ffda;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.legal-header .home-btn:hover {
  color: #ffcc00;
}
