* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #101820;
  color: #ffffff;
  margin: 0;
  padding: 24px 16px;
  display: flex;
  justify-content: center;
}
.card {
  width: 100%;
  max-width: 480px;
  background: #17232b;
  border-radius: 16px;
  padding: 28px 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
  margin: 0 0 2px;
}
.subtitle {
  font-size: 0.8rem;
  color: #bbbbbb;
  text-align: center;
  margin: 0 0 18px;
}
h1 {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 4px;
}
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin: 16px 0 6px;
  text-align: center;
}
textarea, input[type="text"] {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #2a3944;
  background: #ffffff;
  color: #111111;
  padding: 10px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}
.timer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.timer-field { display: flex; flex-direction: column; }
.timer-field span { font-size: 0.7rem; color: #bbbbbb; margin-top: 4px; text-align: center; }
input[type="number"] {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #2a3944;
  background: #ffffff;
  color: #111111;
  padding: 8px;
  font-size: 1.1rem;
  text-align: center;
}
button, .btn {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 700;
}
.primary {
  width: 100%;
  margin-top: 22px;
  background: #159957;
  color: white;
  letter-spacing: 0.5px;
}
.primary:disabled { opacity: 0.6; }
.hidden { display: none !important; }
.link-box { display: flex; gap: 8px; margin-top: 14px; }
.link-box input { flex: 1; }
.link-box button { background: #24343f; color: #fff; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.share-buttons a, .share-buttons button {
  flex: 1;
  min-width: 120px;
  text-align: center;
  text-decoration: none;
  background: #24343f;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}
#countdown {
  font-family: "Courier New", Courier, monospace;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1px;
  margin: 18px 0;
  font-variant-numeric: tabular-nums;
}
#message-box {
  background: #193d2a;
  color: #ffffff;
  border-radius: 10px;
  padding: 16px;
  white-space: pre-wrap;
  line-height: 1.5;
  margin-top: 16px;
}
#status {
  text-align: center;
  color: #ffd166;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.status-revealed { color: #80ed99 !important; }
