@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@200;400;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Science+Gothic:wght@100..900&family=Varela&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

.top-page {
    position: relative;
    min-height: 15vh;
}

body {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  color: white;
  background-image: url('/images/back.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: #000000;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0px;
    margin-right: 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
}

.navbar nav {
    margin-right: 40px;
}

.logo img{
    width: 100px;
    height: auto;
    margin-left: 20px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.navbar a {
    text-decoration: none;
    color: #ccc;
    font-size: 18px;
    transition: 0.3s;
    font-family: 'Share Tech Mono', monospace;
    position: relative;
}

.navbar a.active {
    color: #fff;
    font-weight: 600;
    position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: rgb(255, 255, 255);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.navbar a:hover {
    color: rgb(255, 255, 255);
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero {
    height: 20vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: none;
}

.hero .title {
    font-size: 40px;
    font-weight: 200;
    letter-spacing: 20px;
    margin: 0 0 50px 0;
    margin-left: 10px;
    animation: fadeInUp 1s ease forwards;
}

.hero .line {
    font-size: 20px;
    color: #bbb;
    margin: 0 0 30px 0;
    animation: fadeInUp 2.2s ease forwards;
}

.return {
    display: flex;
    position: fixed;
    color: white;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.192);
    padding: 15px 25px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    margin-left: 1820px;
    animation: fadeInUp 1s ease forwards;
}

.rules-container {
  max-width: 1200px;
  margin: 0px auto;
  padding: 30px;
  font-family: 'Share Tech Mono', monospace;
  animation: fadeInUp 1s ease forwards;
}

.rules-title {
  font-size: 28px;
  letter-spacing: 6px;
  text-align: center;
  margin-bottom: 30px;
}

.rules-desc {
    font-size: 18px;
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Lato', monospace;
}

.section-accordion {
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 15px;
  margin-bottom: 15px;
  overflow: hidden;
  animation: fadeInUp 1s ease forwards;
}

.section-title {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  text-align: left;
  padding: 18px;
  cursor: pointer;
  position: relative;
  font-family: 'Courier New', Courier, monospace;
  animation: fadeInUp 1s ease forwards;
}

.section-title::after {
  content: '+';
  position: absolute;
  right: 20px;
  font-size: 18px;
}

.section-accordion.active .section-title::after {
  content: '−';
}

.section-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  padding: 0 18px;
  font-family: 'Lato', monospace;
}

.section-content li {
    margin-bottom: 10px;
}

.section-accordion.active .section-content {
  max-height: 5000px;
  opacity: 1;
  padding-bottom: 18px;
}

.role-accordion {
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.2);
}

.role-title {
  width: 100%;
  background: none;
  border: none;
  color: white;
  text-align: left;
  padding: 15px;
  font-size: 14px;
  cursor: pointer;
  position: relative;
}

.role-title::after {
  content: '+';
  position: absolute;
  right: 20px;
  font-size: 16px;
}

.role-accordion.active .role-title::after {
  content: '−';
}

.role-content {
  max-height: 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  opacity: 0;
  padding: 0 15px;
  flex: 2;
  width: 100%;
}

.role-accordion.active .role-content {
  max-height: 1000px;
  opacity: 1;
  padding-bottom: 15px;
}

.role-image {
  flex: 0 0 auto;
  margin-left: auto;
}

.role-image img {
  border-radius: 10px;
  width: 100%;
  max-height: 350px;
  object-fit: contain;
}

.role-rules {
  margin-top: 12px;
  padding-left: 18px;
}

.role-rules li {
  margin-bottom: 6px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        rgba(0, 0, 0, 0.05) 0px,
        rgba(255,255,255,0.05) 1px,
        rgba(0,0,0,0.05) 2px,
        rgba(0,0,0,0.05) 4px
    );
    z-index: 5;
    animation: scan 1s linear infinite;
}

@keyframes scan {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

.scanlines::after {
    content: '';
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    animation: flashLine 3s linear infinite;
}

@keyframes flashLine {
    0%   { top: -2%; opacity: 0; }
    10%  { opacity: 0.8; }
    50%  { top: 100%; opacity: 0; }
    100% { top: 100%; opacity: 0; }
}

.circle {
    position: absolute;
    display: block;
    width: 26px;
    height: 26px;
    border-radius: 20px;
    background-color: #000;
}

.cursor {
    pointer-events: none;
    position: fixed;
    display: block;
    border-radius: 0;
    mix-blend-mode: difference;
    top: 0;
    left: 0;
    z-index: 9999999999;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    z-index: 10;
    font-family: 'Share Tech Mono', monospace;
}

.footer p {
    margin: 0;
    font-size: 14px;
}

@media (max-width: 768px) {

  .nav {
    width: 100%;
    padding-right: 0;
    margin-right: 0;
  }

  .nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    padding-right: 0;
    margin-right: 0;
  }

  .nav li {
    text-align: right;
  }

  .hero .title {
    font-size: 20px;
    letter-spacing: 10px;
  }
}