/* Reset + Base */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background: #0f0f0f;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* App Container */

#app {
  width: 100%;
  max-width: 420px;
  background: #1b1b1d;
  padding: 24px 22px 28px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
}

/* Header */

h1 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

#date {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 14px;
}

/* Emoji Display */

#emoji {
  font-size: 3rem;
  line-height: 1.2;
  margin: 18px 0 22px;
  user-select: none;
}

/* Input + Buttons */

input,
button {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  outline: none;
}

input {
  background: #111113;
  color: #ffffff;
  margin-bottom: 8px;
  border: 1px solid #2a2a2e;
}

input::placeholder {
  color: #777;
}

input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

/* Primary Button */

button {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.15s ease;
}

button:active {
  transform: scale(0.98);
}

button:hover {
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}

/* Navigation */

.nav {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.nav button {
  background: #26262b;
  font-weight: 500;
}

.nav button:hover {
  box-shadow: none;
  background: #2f2f36;
}

/* Result / Hint */

#hint {
  margin-top: 12px;
  min-height: 24px;
}

#hint span {
  background: #22c55e;
  color: #04210f;
  padding: 2px 8px;
  border-radius: 6px;
  margin: 2px;
  font-size: 0.8rem;
  display: inline-block;
  font-weight: 600;
}

#result {
  margin-top: 14px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #e5e5e5;
}

#result strong {
  font-size: 1.05rem;
  display: block;
  margin-bottom: 4px;
}

/* Share Button */

#share {
  margin-top: 14px;
  background: linear-gradient(135deg, #10b981, #059669);
}

#share:hover {
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

/* Creator Spotlight */

#spotlight {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid #2a2a2e;
  font-size: 0.8rem;
  opacity: 0.8;
  line-height: 1.4;
}

#spotlight strong {
  color: #a5b4fc;
}

/* Utilities */

.hidden {
  display: none !important;
}

/* Accessibility */

button:focus-visible,
input:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* Small Screens */

@media (max-width: 360px) {
  #app {
    padding: 20px 16px 24px;
  }

  h1 {
    font-size: 1.45rem;
  }

  #emoji {
    font-size: 2.6rem;
  }
}
