@charset "UTF-8";

*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-weight: 400;
}

body {
  color: var(--c-white);
  background: var(--c-black);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
font-family: 'YourCustomFont', 'Inter', sans-serif;
}

.tw { color: var(--c-white); }
.tg { color: var(--c-gray-text); }
.tg2 { color: var(--c-gray); }

.fs14 { font-size: 14px; }
.fs16 { font-size: 16px; }
.fs18 { font-size: 18px; }
.fs20 { font-size: 20px; }
.fs24 { font-size: 24px; }


.header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1200px;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.04);
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0 32px;
  height: 60px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
font-family: 'YourCustomFont', 'Inter', sans-serif;
}

.nav-menu {
  display: flex;
  gap: 48px;
font-family: 'YourCustomFont', 'Inter', sans-serif;
}

.nav-menu a {
  color: var(--c-gray-text);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 16px;
  font-weight: 500;
}

.nav-menu a:hover {
  color: var(--c-white);
  transform: translateY(-1px);
}

.nav-menu a.active {
  color: var(--c-white);
}

.nav-right {
  display: flex;
  gap: 24px;
  align-items: center;
font-family: 'YourCustomFont', 'Inter', sans-serif;
}


.main-content {
  min-height: 100vh;
  padding: 140px 0 100px;
  position: relative;
  background-image: url("../images/game.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.main-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  z-index: 1;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-header {
  margin-bottom: 60px;
}

.rules-content {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 60px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(30px);
  text-align: left;
}

@font-face {
    font-family: 'YourCustomFont';
    src: url("../font/font.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
    }
.rules-content h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--c-white);
font-family: 'YourCustomFont', 'Inter', sans-serif;
  margin-bottom: 30px;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rules-content p {
  font-size: 18px;
  color: var(--c-gray-text);
  line-height: 1.8;
  margin-bottom: 24px;
font-family: 'YourCustomFont', 'Inter', sans-serif;
}

.rules-content strong {
  color: var(--c-white);
  font-weight: 500;
}

.back-button {
  backdrop-filter: blur(25px);
  cursor: pointer;
  padding: 16px 32px;
  color: var(--c-white);
  border-radius: 12px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
font-family: 'YourCustomFont', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
  margin-top: 40px;
}

.back-button:hover {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}


.footer {
  background-color: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(25px);
  padding: 60px 0 40px;
  border-top: 1px solid var(--border-color);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 70px;
  height: 70px;
  border-radius: 4px;
  object-fit: contain;
}

.footer-text p {
  margin: 0;
  color: var(--c-white);
font-family: 'YourCustomFont', 'Inter', sans-serif;
  font-size: 16px;
}

.footer-text .copyright {
  margin-top: 8px;
  color: var(--c-gray-text);
  font-size: 14px;
}

.footer-right {
  text-align: right;
}

.footer-right p {
  color: var(--c-white);
font-family: 'YourCustomFont', 'Inter', sans-serif;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 500;
}

.footer-link {
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.footer-link p {
  color: var(--c-gray-text);
  transition: color 0.3s;
  font-size: 14px;
}

.footer-link:hover p {
  color: var(--c-white);
}


@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header {
  animation: fadeIn 1s ease-out;
}

.page-header {
  animation: fadeInUp 1s ease-out;
}

.rules-content {
  animation: fadeInUp 1s ease-out 0.2s both;
}


@media (max-width: 992px) {
  .header {
    width: calc(100% - 32px);
    padding: 0 24px;
  }

  .nav-menu { 
    display: none; 
  }

  .page-header h1 { 
    font-size: 40px; 
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .header {
    top: 16px;
    height: 60px;
    padding: 0 20px;
  }

  .main-content {
    padding: 120px 0 80px;
  }

  .container, .footer-container {
    padding: 0 20px;
  }

  .page-header h1 { 
    font-size: 32px; 
  }

  .rules-content {
    padding: 40px;
  }
}

@media (max-width: 480px) {
  .page-header h1 { 
    font-size: 28px; 
  }

  .rules-section h2 {
    font-size: 20px;
  }
}