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

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --text: #e8e8e8;
  --text-muted: #888;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --radius: 12px;
}

html {
  color-scheme: dark;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  padding: 2rem 1rem 0;
  text-align: center;
}

header h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

header h1 a {
  color: var(--text);
  text-decoration: none;
}

header h1 a:hover {
  color: var(--accent);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  width: 100%;
  max-width: 720px;
}

.meme-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.meme-date {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.meme-image {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: contain;
  background-color: var(--surface);
}

.meme-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}

.btn:hover {
  border-color: var(--accent);
  background-color: #222;
}

.countdown-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.countdown-image {
  max-width: 100%;
  max-height: 50vh;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: contain;
  background-color: var(--surface);
}

.countdown-emoji {
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1;
}

.countdown-number {
  font-size: clamp(4rem, 15vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}

.countdown-label {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--text-muted);
}

.see-you-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.see-you-emoji {
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1;
}

.see-you-text {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
}

.noscript-content {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 480px;
}

footer {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  width: 100%;
  border-top: 1px solid var(--border);
}

footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

@media (max-width: 480px) {
  header {
    padding: 1.5rem 1rem 0;
  }

  main {
    padding: 1.5rem 0.75rem;
  }

  .meme-image {
    border-radius: 8px;
  }
}
