body {
  background: linear-gradient(-45deg, #f8f4e6, #f3e7c9, #ffe0b2, #e0b800, #fffbe9);
  background-size: 400% 400%;
  animation: gradientBG 12s ease-in-out infinite;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.container {
  max-width: 480px;
  margin: 48px auto;
  background: #fffbe9;
  border-radius: 18px;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.08);
  padding: 38px 28px 28px 28px;
  text-align: center;
  position: relative;
  border: 1.5px solid #f3e7c9;
}
h1 {
  margin-bottom: 18px;
  color: #222;
  font-size: 2.1em;
  font-family: 'Georgia', serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  position: relative;
}
h1:before {
  content: '✶';
  color: #bfa76a;
  font-size: 1.1em;
  margin-right: 8px;
}
h1:after {
  content: '✶';
  color: #bfa76a;
  font-size: 1.1em;
  margin-left: 8px;
}
#password-input {
  display: block;
  margin: 0 auto 22px auto;
  width: 90%;
  max-width: 400px;
  box-sizing: border-box;
  padding: 13px 12px;
  font-size: 1.13rem;
  border: 1.5px solid #bfa76a;
  border-radius: 7px;
  outline: none;
  background: #fff;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(191,167,106,0.07);
}
#password-input:focus {
  border-color: #e0b800;
  box-shadow: 0 0 0 2px #fffde7;
}
#rules-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  text-align: left;
}
#rules-list li {
  margin-bottom: 14px;
  border-radius: 10px;
  box-shadow: 0 1px 6px #f3e7c9;
  padding: 0;
  border: 1.5px solid #f3e7c9;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: background 0.2s, border 0.2s;
}
.todo-rule {
  background: #ffeaea;
  border: 1.5px solid #e57373;
  box-shadow: 0 2px 10px #ffeaea;
  margin-bottom: 18px;
  padding: 0;
}
.todo-rule .rule-header {
  display: flex;
  align-items: center;
  padding: 12px 16px 6px 16px;
}
.todo-rule .rule-icon {
  font-size: 1.3em;
  color: #e53935;
  margin-right: 10px;
}
.todo-rule .rule-title {
  font-weight: bold;
  color: #b71c1c;
  font-size: 1.08em;
}
.todo-rule .rule-desc {
  color: #b71c1c;
  font-size: 1em;
  padding: 0 16px 12px 44px;
}
.passed-small {
  background: #e7ffe9;
  border: 1.5px solid #81c784;
  box-shadow: 0 2px 10px #e7ffe9;
  margin-bottom: 10px;
  padding: 0;
}
.passed-small .rule-header {
  display: flex;
  align-items: center;
  padding: 12px 16px 6px 16px;
}
.passed-small .rule-icon {
  font-size: 1.3em;
  color: #388e3c;
  margin-right: 10px;
}
.passed-small .rule-title {
  font-weight: bold;
  color: #388e3c;
  font-size: 1.08em;
}
.passed-small .rule-desc {
  color: #388e3c;
  font-size: 1em;
  padding: 0 16px 12px 44px;
}
#congrats {
  margin-top: 28px;
  background: #e7ffe9;
  border-radius: 12px;
  padding: 18px 10px 10px 10px;
  box-shadow: 0 2px 12px #e7ffe9;
  color: #2e7d32;
  font-size: 1.2em;
  font-weight: bold;
  border: 1.5px solid #81c784;
  letter-spacing: 0.2px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#congrats h2 {
  margin: 0 0 10px 0;
  font-size: 1.3em;
  color: #2e7d32;
  font-family: 'Georgia', serif;
  font-weight: 700;
}
#restart-btn {
  background: #e0b800;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 10px 24px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 16px;
  font-weight: bold;
  box-shadow: 0 2px 8px #fffde7;
  transition: background 0.2s;
}
#restart-btn:hover {
  background: #bfa76a;
}
.sponsor-logos {
  display: flex;
  gap: 18px;
  margin: 10px 0 10px 44px;
}
.sponsor-logos img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 1px 6px #f3e7c9;
  background: #fff;
  border: 1.5px solid #f3e7c9;
}
@media (max-width: 600px) {
  .container {
    max-width: 99vw;
    padding: 18px 2vw 18px 2vw;
  }
  h1 {
    font-size: 1.18em;
  }
  #password-input {
    font-size: 0.98em;
    padding: 10px;
  }
}
#popup-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
#popup-modal.hidden {
  display: none;
}
.popup-content {
  background: #fffbe9;
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18);
  padding: 38px 32px 28px 32px;
  text-align: center;
  min-width: 280px;
  max-width: 90vw;
  animation: popin 0.5s cubic-bezier(.68,-0.55,.27,1.55);
}
.popup-content h2 {
  color: #388e3c;
  font-size: 1.5em;
  margin-bottom: 22px;
  font-weight: bold;
}
#popup-btn {
  background: #e0b800;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 12px 32px;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 2px 8px #fffde7;
  transition: background 0.2s;
  margin-bottom: 18px;
}
#popup-btn:hover {
  background: #bfa76a;
}
.popup-replay {
  color: #888;
  font-size: 1em;
  margin-top: 10px;
}
#dev-badge {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 2000;
  background: rgba(255,255,255,0.85);
  color: #bfa76a;
  font-size: 1em;
  font-family: 'Segoe UI', Arial, sans-serif;
  padding: 7px 16px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
}
#dev-badge:hover {
  opacity: 1;
  background: #fffbe9;
  color: #e0b800;
} 