:root {
  --bg: #0d0d0d;
  --card: #1a1a1a;
  --border: #333;
  --text: #e0e0e0;
  --gray: #888;
  --lightgray: #aaa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

h1 {
  font-size: clamp(2.8rem, 10vw, 5rem);
  font-weight: 800;
  letter-spacing: -2px;
  color: white;
  margin-bottom: 0.3em;
}

.date {
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  color: var(--gray);
  margin: 1.5rem 0 3rem;
  letter-spacing: 3px;
}

.countdown {
  display: flex;
  gap: 12px;
  margin-bottom: 4rem;
  max-width: 500px;
  width: 100%;
  justify-content: center;
}

.box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  min-width: 70px;
  text-align: center;
  transition: all 0.2s;
}

.box:hover {
  border-color: #555;
  transform: translateY(-3px);
}

.number {
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  font-weight: 700;
  color: white;
  line-height: 1;
}

.label {
  font-size: clamp(0.8rem, 2.5vw, 0.95rem);
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

footer {
  margin-top: auto;
  padding: 20px 0;
  text-align: center;
  color: #555;
  font-size: 0.85rem;
  border-top: 1px solid #222;
}

.admin-btn {
  position: fixed;
  top: 12px;
  right: 16px;
  background: var(--card);
  color: var(--gray);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-btn:hover {
  color: #ddd;
  border-color: #555;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  width: 90%;
  max-width: 360px;
  opacity: 0;
  transform: scale(0.92);
  transition: all 0.3s ease;
}

.modal.show .modal-content {
  opacity: 1;
  transform: scale(1);
}

.modal h2 {
  color: #ddd;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.4rem;
}

.modal input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  background: #111;
  border: 1px solid #444;
  border-radius: 6px;
  color: #eee;
  font-size: 1rem;
}

.modal input:focus {
  outline: none;
  border-color: #666;
}

.btn-group {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
}

.btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary   { background: #444; color: white; }
.btn-primary:hover { background: #555; }
.btn-secondary { background: #2a2a2a; color: #aaa; }
.btn-secondary:hover { background: #333; }

.error {
  color: #ff6666;
  text-align: center;
  margin-top: 10px;
  font-size: 0.9rem;
}

.welcome {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  color: #ddd;
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.welcome.show {
  display: flex;
  opacity: 1;
}

@media (max-width: 480px) {
  .countdown { gap: 8px; }
  .box { padding: 12px 14px; }
  .number { font-size: clamp(1.8rem, 6.5vw, 3rem); }
}