:root {
  --pink-light: #ffe5f1;
  --pink-main:  #ffb6c9;
  --pink-dark:  #ff8fb3;
  --white:      #fff;
  --shadow:     #e8a0c0;
  --text-color: #4a4a4a;
}
/* Dark mode overrides */
body.dark-mode {
  background: #1e1e2f !important;
  color: #e0e0e0 !important;
}

body.dark-mode .site-header {
  background: #2c2c3a !important;
}
.news-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.news-list li {
  background: var(--pink-light);
  border: 2px solid #fff;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 14px;
  color: #4a4a4a;
}

body.dark-mode .news-list li {
  background: #2c2c3a;
  color: #ddd;
  border-color: #555;
}
body.dark-mode .login-button,
body.dark-mode .copy-ip-button {
  background: #44445a !important;
  color: #fff !important;
  border-color: #666 !important;
}

body.dark-mode .pixel-card {
  background: #2c2c3a !important;
  color: #fff !important;
  border-color: #555 !important;
}

body.dark-mode .pixel-alert {
  background: #44445a !important;
  color: #fff !important;
  border-color: #666 !important;
}

body.dark-mode .site-footer {
  background: #2c2c3a !important;
  color: #e0e0e0 !important;
}
body.dark-mode .faq-item {
  background: #2c2c3a !important;
  border-color: #555 !important;
}

body.dark-mode .faq-question {
  background: #44445a !important;
  color: #fff !important;
}

body.dark-mode .faq-answer {
  background: #33334a !important;
  color: #e0e0e0 !important;
}
body {
  font-family: "Press Start 2P", "Segoe UI Emoji", "Noto Color Emoji",
               "Apple Color Emoji", sans-serif;
  background: var(--pink-light);
  color: #4a4a4a;
  font-size: 14px;
  line-height: 1.7;
}
/* Кнопка темы только с эмодзи */
.theme-toggle {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: inherit;
  padding: 0;
  margin-left: 0.5rem;
}

.theme-toggle:hover {
  transform: scale(1.2);
  transition: 0.2s;
}
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}


/* ====================== */
/*        FAQ SECTION     */
/* ====================== */
.faq-section h2 {
  font-family: 'Press Start 2P', cursive;
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}
.faq-item {
  margin-bottom: 1rem;
  border: 4px solid #fff;
  border-radius: 12px;
  background: #ffedf3;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: var(--pink-dark);
  color: #fff;
  border: none;
  padding: 1rem;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
.faq-question:hover { background: #ffa6c1; }
.faq-answer {
  display: none;
  padding: 1rem;
  background: #fff0f5;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #333;
  font-family: 'Press Start 2P', cursive;
}

/* ====================== */
/*         HEADER         */
/* ====================== */
.site-header {
  background: var(--pink-main);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.logo-text-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo { width: 64px; height: 64px; }
.brand-text h1 { font-size: 22px; margin-bottom: 0.4rem; color: var(--white);}
.brand-text p  { font-size: 14px; margin: 0; color: var(--white); }

/* Desktop nav */
.nav a {
  color: var(--white);
  text-decoration: none;
  margin: 0 0.6rem;
  font-size: 12px;
}

/* --- FIXED BUTTON LAYOUT --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;       /* spacing between login & copy-IP */
}
.header-actions .login-button,
.header-actions .copy-ip-button {
  font-family: 'Press Start 2P', cursive;
  white-space: nowrap;
}

/* Buttons */
.login-button,
.copy-ip-button {
  background: var(--pink-dark);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border: 4px solid #fff;
  box-shadow: 4px 4px 0 var(--shadow);
  text-decoration: none;
  font-size: 12px;
  border-radius: 8px;
  cursor: pointer;
}
.copy-ip-button {
  background: linear-gradient(-45deg,#ff7eea,#ffa6c1,#ff90da,#ff8ae6);
  background-size: 400% 400%;
  animation: gradientBG 3s ease infinite;
}
@keyframes gradientBG {
  0%{background-position:0 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0 50%;}
}

/* Hamburger button */
.hamburger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  transition: 0.3s;
  z-index: 1001;
}

.hamburger:hover {
  transform: scale(1.2);
}

/* Mobile menu */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 300px;
  height: 100vh;
  background: var(--pink-main);
  padding: 2rem 1.5rem;
  box-shadow: -4px 0 10px rgba(0,0,0,0.3);
  transition: right 0.3s ease;
  gap: 1.5rem;
  z-index: 1000;
}

.mobile-menu.show {
  right: 0;
}

/* Mobile menu links & buttons */
.mobile-menu a,
.mobile-menu button {
  display: block;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 2px solid #fff;
  text-align: center;
  font-size: 14px;
  font-family: 'Press Start 2P', cursive;
  cursor: pointer;
  transition: 0.3s;
  color: #fff;
  background: transparent;
}

.mobile-menu a:hover,
.mobile-menu button:hover {
  background: var(--pink-dark);
}

/* Dark mode for mobile menu */
body.dark-mode .mobile-menu {
  background: #2c2c44;
}

body.dark-mode .mobile-menu a,
body.dark-mode .mobile-menu button {
  border-color: #888;
  color: #fff;
}

body.dark-mode .mobile-menu a:hover,
body.dark-mode .mobile-menu button:hover {
  background: #44445a;
}


/* ====================== */
/*        SECTIONS        */
/* ====================== */
.section {
  padding: 2.5rem 1rem;
  text-align: center;
}
.section h2 {
  font-size: 16px;
  margin-bottom: 1rem;
}
.ip-box {
  display: inline-block;
  background: var(--pink-dark);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border: 4px solid #fff;
  box-shadow: 4px 4px 0 var(--shadow);
  margin-top: 1rem;
  font-size: 14px;
}

/* ====================== */
/*        PIXEL CARDS     */
/* ====================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.pixel-card {
  background: var(--white);
  border: 4px solid var(--pink-dark);
  padding: 1.2rem;
  box-shadow: 4px 4px 0 var(--shadow);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}
.pixel-card.active {
  background: var(--pink-dark);
  color: var(--white);
}

/* ====================== */
/*     ALERT / POPUP      */
/* ====================== */
.pixel-alert {
  background: var(--pink-dark);
  color: var(--white);
  border: 4px solid #fff;
  padding: 1rem;
  box-shadow: 4px 4px 0 var(--shadow);
  font-size: 14px;
  white-space: pre-line;
}
#popup-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
}
.popup {
  background: #ffb3c6;
  color: #fff;
  padding: 10px 16px;
  margin-top: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInOut 3s forwards;
  font-size: 0.8rem;
}
@keyframes fadeInOut {
  0%{opacity:0;transform:translateY(-10px);}
  10%,90%{opacity:1;transform:translateY(0);}
  100%{opacity:0;transform:translateY(-10px);}
}

/* ====================== */
/*         FOOTER         */
/* ====================== */
.site-footer {
  background: var(--pink-main);
  color: var(--white);
  text-align: center;
  padding: 1.2rem 0;
  margin-top: 2rem;
}
.twitch-link {
  color: var(--pink-dark);
  text-decoration: none;
  border-bottom: 2px dotted var(--pink-dark);
  transition: color 0.2s, border-color 0.2s;
}
.twitch-link:hover {
  color: #d16a8c;
  border-color: #d16a8c;
}

/* ====================== */
/*       RESPONSIVE       */
/* ====================== */
@media (max-width: 768px) {
  .nav,
  .header-actions .login-button,
  .header-actions .copy-ip-button { display: none; }
  .hamburger { display: block; }
}

/* ====================== */
/*   FORCE LIGHT MODE     */
/* ====================== */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: light; }
  body {
    background: var(--pink-light) !important;
    color: #4a4a4a !important;
  }
  .site-header { background: var(--pink-main) !important; }
  .login-button,
  .copy-ip-button { background: var(--pink-dark) !important; color: #fff !important; }
  .pixel-card { background: var(--white) !important; color: #000 !important; }
  .pixel-alert { background: var(--pink-dark) !important; color: #fff !important; }
  .site-footer { background: var(--pink-main) !important; }
}
