@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");

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

a {
  text-decoration: none;
  color: inherit;
}

html {
  font-family: "Manrope", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  scroll-behavior: smooth;
}

body {
  background-color: rgb(17, 13, 14);
  position: relative;
  width: 100%;
  color: #e0e0e0;
  line-height: 1.6;
}

/* ==================== HEADER ==================== */
.header {
  background: #110d0e;
  height: 64px;
  width: 100%;
  position: sticky;
  top: 0;
  box-shadow: 0 2px 4px 0 #2626264d;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 12px 0 #00000080;
}

.header-box {
  margin: 0 auto;
  width: 960px;
  display: flex;
  position: relative;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.header-logo {
  align-items: center;
  display: flex;
  flex-direction: row;
  height: 64px;
  justify-content: center;
  max-width: 144px;
  transition: transform 0.3s ease;
}

.header-logo:hover {
  transform: scale(1.05);
}

.header-logo img {
  height: auto;
  object-fit: contain;
  width: 100%;
}

.header-buttons {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.header-reg {
  font-family: Manrope, sans-serif;
  letter-spacing: 0.1px;
  max-width: 260px;
  min-width: 139px;
  background: linear-gradient(180deg, #fff, #dadada);
  color: #000;
  font-size: 14px;
  font-weight: 700;
  height: 48px;
  line-height: 16px;
  padding: 0 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.header-reg::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s ease;
}

.header-reg:hover::after {
  left: 100%;
}

.header-reg:hover {
  background: linear-gradient(0deg, #fffc, #fffc), linear-gradient(180deg, #fff, #dadada);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,255,255,0.3);
}

.header-sigh {
  font-family: Manrope, sans-serif;
  letter-spacing: 0.04em;
  width: 96px;
  background: linear-gradient(180deg, #d1021b, #a71023);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  height: 48px;
  line-height: 16px;
  padding: 0 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.header-sigh:hover::after {
  left: 100%;
}

.header-sigh:hover {
  background: linear-gradient(0deg, #ffffff0d, #ffffff0d), linear-gradient(180deg, #d1021b, #a71023);
  text-shadow: 0 -1px 0 #ffffff0f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(209,2,27,0.4);
}

/* ==================== BANNER ==================== */
.banner {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: auto;
  min-height: 200px;
  object-fit: cover;
}

.banner-content {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 960px;
  padding: 12px 12px 0 44px;
}

.banner-text {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 1px -1px 1px #1e225d, -1px 1px 1px #1e225d, -1px -1px 1px #1e225d, 0 0 1px #1e225d;
}

.text-bold {
  color: #fff;
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
  animation: fadeInDown 0.8s ease;
}

.text-normal {
  color: #ffd700;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.3;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.banner-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  min-width: 200px;
  background: linear-gradient(180deg, #ffd700, #ffb700);
  color: #000;
  font-size: 16px;
  font-weight: 700;
  height: 52px;
  padding: 0 24px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 16px 0 rgba(255,215,0,0.4);
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease 0.4s both, pulse 2s ease-in-out infinite;
}

.banner-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s ease;
}

.banner-button:hover::before {
  left: 100%;
}

.banner-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px 0 rgba(255,215,0,0.6);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
  margin: 0 auto;
  padding: 24px 12px;
  position: relative;
  width: 100%;
  max-width: 1200px;
}

/* ==================== UPPER MENU & JACKPOT ==================== */
.upper-menu {
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.jackpot-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,215,0,0.05));
  border-radius: 16px;
  border: 1px solid rgba(255,215,0,0.2);
}

.jack-text {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(180deg, #ffd700, #ffaa00, #ffd700);
  background-clip: text;
  -webkit-background-clip: text;
  color: #ffd700;
  font-family: Inter, sans-serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
  text-transform: uppercase;
  animation: shimmer 3s linear infinite;
  background-size: 200% auto;
}

.jack-prize {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(180deg, #ffd700, #ffaa00, #ffd700);
  background-clip: text;
  -webkit-background-clip: text;
  color: #ffd700;
  font-family: Inter, sans-serif;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1;
  white-space: nowrap;
  animation: pulse 1.5s ease-in-out infinite;
}

.menu-button {
  background: linear-gradient(180deg, #d1021b, #a71023);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px 0 rgba(209,2,27,0.4);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.menu-button:hover::after {
  left: 100%;
}

.menu-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(209,2,27,0.6);
}

/* ==================== NAVIGATION MENU ==================== */
.menu {
  background: linear-gradient(180deg, rgba(166,3,22,0.2), rgba(0,0,0,0)), #1f1a1b;
  border-radius: 12px;
  box-shadow: 0 1px 1px 0 rgba(209,2,27,0.1) inset;
  padding: 0 20px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  overflow-x: auto;
}

.menu ul {
  display: flex;
  list-style: none;
  gap: 4px;
  height: 64px;
  overflow-x: auto;
  scrollbar-width: none;
}

.menu ul::-webkit-scrollbar {
  display: none;
}

.menu-item a {
  color: #fff;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  height: 64px;
  padding: 0 16px;
  white-space: nowrap;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.menu-item:first-child a {
  color: #c9051d;
  border-bottom-color: #c9051d;
}

.menu-item:hover a {
  color: #c9051d;
  text-shadow: 0 0 8px rgba(201,5,29,0.6);
}

.menu-search {
  background: linear-gradient(180deg, rgba(166,3,22,0.2), rgba(0,0,0,0)), #1f1a1b;
  border-radius: 10px;
  height: 48px;
  min-width: 200px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-search:hover {
  background: rgba(31,26,27,0.8);
}

.menu-search svg {
  width: 20px;
  height: 20px;
  color: #fff6;
}

.menu-search span {
  color: #fff6;
  font-size: 14px;
}

/* ==================== GAMES SECTION ==================== */
.games-section {
  padding: 20px 0;
  position: relative;
}

.utils-box {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.utils-box-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d1d1d1;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.utils-box-item svg {
  width: 16px;
  height: 16px;
}

.utils-box-item span {
  font-size: 14px;
  font-weight: 500;
}

.utils-box-item:hover {
  background: rgba(209,2,27,0.1);
  color: rgb(209, 2, 27);
}

.utils-box-item:hover svg {
  fill: rgb(209, 2, 27);
}

.games-box {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  padding: 16px 0;
}

.game-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.game-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(209,2,27,0.3);
}

.game-img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.game-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-item:hover .game-img img {
  transform: scale(1.1);
}

.popup-shadow {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-item:hover .popup-shadow {
  opacity: 1;
}

.popup-button {
  background: linear-gradient(180deg, #d1021b, #a71023);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  height: 44px;
  padding: 0 24px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.popup-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(209,2,27,0.5);
}

.game-title {
  color: #d1d1d1;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== SEO TEXT SECTION ==================== */
.seo-text-section {
  margin-top: 48px;
  padding: 32px;
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
}

.seo-text {
  color: #d1d1d1;
  font-size: 15px;
  line-height: 1.8;
}

.seo-text h1 {
  color: #ffd700;
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 24px;
  text-align: center;
}

.seo-text h2 {
  color: #00d4ff;
  font-size: clamp(20px, 3vw, 28px);
  margin: 32px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0,212,255,0.3);
}

.seo-text h3 {
  color: #ff6b6b;
  font-size: clamp(18px, 2.5vw, 22px);
  margin: 24px 0 12px;
}

.seo-text p {
  margin: 16px 0;
  text-align: justify;
}

.seo-text ul, .seo-text ol {
  margin: 16px 0;
  padding-left: 24px;
}

.seo-text li {
  margin: 12px 0;
}

.content-box {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  border: 1px solid rgba(255,255,255,0.1);
}

.important {
  background: rgba(255,215,0,0.1);
  border-left: 4px solid #ffd700;
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
}

.important strong {
  color: #ffd700;
}

.toc {
  background: rgba(0,212,255,0.1);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}

.toc h3 {
  color: #00d4ff;
  margin-top: 0;
}

.toc ul {
  list-style: none;
  padding-left: 0;
}

.toc li {
  margin: 10px 0;
}

.toc a {
  color: #e0e0e0;
  transition: color 0.3s;
}

.toc a:hover {
  color: #ffd700;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

th {
  background: rgba(0,212,255,0.15);
  color: #00d4ff;
  font-weight: 600;
}

tr:hover {
  background: rgba(255,255,255,0.05);
}

.faq-item {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 20px;
  margin: 16px 0;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(255,255,255,0.08);
}

.faq-question {
  color: #ffd700;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 16px;
}

.emoji {
  font-size: 1.2em;
  margin-right: 4px;
}

/* ==================== FOOTER ==================== */
footer {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 32px 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-info-box {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.links-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.links-item a {
  color: #d1d1d1;
  font-size: 14px;
  transition: color 0.3s ease;
}

.links-item a:hover {
  color: #ffd700;
}

.disclaimer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.disclaimer img {
  height: 40px;
  width: auto;
}

.disclaimer p {
  font-size: 13px;
  color: #888;
  margin: 0;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* ==================== RESPONSIVE ==================== */
@media screen and (min-width: 1200px) {
  .header-box, .banner-content {
    width: 1152px;
  }
}

@media screen and (max-width: 992px) {
  .header-box, .banner-content, .main-content {
    width: 100%;
    padding: 12px;
  }

  .banner-content {
    bottom: 10%;
    text-align: center;
  }

  .upper-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .jackpot-box {
    justify-content: center;
  }

  .menu-button {
    width: 100%;
  }

  .footer-info-box {
    gap: 32px;
  }
}

@media screen and (max-width: 768px) {
  .header-buttons {
    gap: 8px;
  }

  .header-reg {
    max-width: 140px;
    min-width: 100px;
    font-size: 12px;
    height: 40px;
  }

  .header-sigh {
    width: 70px;
    font-size: 12px;
    height: 40px;
  }

  .menu {
    padding: 0 12px;
  }

  .menu ul {
    gap: 0;
  }

  .menu-item a {
    padding: 0 12px;
    font-size: 13px;
  }

  .menu-search {
    display: none;
  }

  .games-box {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
  }

  .seo-text-section {
    padding: 20px 16px;
  }

  .footer-info-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  .header-logo {
    max-width: 100px;
  }

  .header-reg {
    max-width: 100px;
    font-size: 11px;
  }

  .header-sigh {
    width: 60px;
    font-size: 11px;
  }

  .jackpot-box {
    flex-direction: column;
    padding: 12px 16px;
  }

  .jack-text, .jack-prize {
    font-size: 20px;
  }

  .games-box {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }

  .game-item {
    border-radius: 8px;
  }

  .popup-button {
    height: 36px;
    font-size: 12px;
    padding: 0 16px;
  }
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a:focus, button:focus {
  outline: 2px solid #d1021b;
  outline-offset: 2px;
}

/* ==================== DARK MODE ==================== */
@media (prefers-color-scheme: dark) {
  body {
    background-color: rgb(17, 13, 14);
  }
}

/* ==================== PRINT ==================== */
@media print {
  header, footer, .banner, .menu, .games-section {
    display: none;
  }

  .seo-text-section {
    width: 100%;
  }
}
