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

html, body {
  margin:0;
  padding:0;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: radial-gradient(circle at top left,#f9fafb,#e5edf6);
  color:#111827;
}

/* Generic link reset, keep it clean and non-underlined */
a {
  color: inherit;
  text-decoration: none;
}

/* Fullscreen layout for home & timer */
.fullscreen-body {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100vh;
  padding:2rem 1.5rem;
}

/* Center stack */
.fullscreen-center,
.timer-fullscreen-center {
  max-width: 960px;
  width:100%;
  text-align:center;
  margin:0 auto;
}

/* Big clock on home */
.big-clock {
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 700;
  color:#111827;
  letter-spacing: 0.08em;
  text-shadow:0 8px 32px rgba(15,23,42,0.16);
  margin-bottom: 2.5rem;
}

/* Primary hero button */
.fullscreen-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:1rem 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 10px 30px rgba(15,23,42,0.16);
  font-size:1.2rem;
  font-weight: 500;
  color:#111827;
  cursor:pointer;
}

/* Hover effect */
.fullscreen-btn:hover {
  border-color:#0f172a;
  box-shadow: 0 14px 40px rgba(15,23,42,0.22);
  transform: translateY(-1px);
}

/* Intro / SEO text block */
.hero-description {
  margin-top: 3rem;
  max-width: 720px;
  margin-left:auto;
  margin-right:auto;
  text-align:left;
}

.hero-title {
  font-size:1.6rem;
  margin-bottom:0.8rem;
}

.hero-text {
  margin:0.35rem 0;
  line-height:1.6;
  font-size:0.96rem;
}

.hero-text strong {
  font-weight: 600;
}

.hero-text-muted {
  color:#6b7280;
}

/* Timer big display */
.timer-big {
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight:700;
  letter-spacing:0.08em;
  color:#111827;
  text-shadow:0 8px 32px rgba(15,23,42,0.16);
  margin-bottom:2.5rem;
}

/* Timer title */
.timer-title {
  font-size:1.5rem;
  margin-bottom:1.2rem;
}

/* Action buttons under timer */
.action-btn {
  padding:0.9rem 1.8rem;
  margin:0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.4);
  background: rgba(255,255,255,0.75);
  box-shadow: 0 4px 16px rgba(15,23,42,0.12);
  font-size:1rem;
  cursor:pointer;
}

.action-btn:hover {
  border-color:#111827;
}

/* Ended text */
.ended-text {
  margin-top:1rem;
  font-weight:500;
  color:#ef4444;
}

/* Share area styling */
.share-area {
  margin-top:2.4rem;
  display:inline-flex;
  align-items:center;
  gap:0.75rem;
  padding:0.5rem 0.8rem;
  border-radius:999px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.8);
  box-shadow: 0 8px 22px rgba(15,23,42,0.12);
}

#share-link {
  border:none;
  outline:none;
  background:transparent;
  font-size:0.9rem;
  padding:0.35rem 0.9rem;
  min-width: 260px;
  color:#4b5563;
}

.copy-btn {
  padding:0.5rem 1.1rem;
  border-radius:999px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(248,250,252,0.9);
  font-size:0.85rem;
  cursor:pointer;
}

.copy-btn:hover {
  border-color:#111827;
}

/* Create page styling */
.page-body {
  min-height:100vh;
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background: radial-gradient(circle at top left,#f9fafb,#e5edf6);
}

.create-container {
  max-width:480px;
  width:100%;
  margin:3rem auto;
  padding:2.2rem 2rem;
  border-radius: 28px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 20px 50px rgba(15,23,42,0.16);
}

.create-container h1 {
  font-size:1.5rem;
  margin-bottom:1.2rem;
}

.create-form label {
  display:block;
  font-size:0.9rem;
  color:#4b5563;
  margin-top:0.6rem;
}

.create-form input,
.create-form select {
  width:100%;
  padding:0.75rem 0.9rem;
  margin-top:0.35rem;
  border-radius:14px;
  border:1px solid rgba(148,163,184,0.8);
  background: rgba(255,255,255,0.9);
  font-size:0.92rem;
  outline:none;
}

.create-form input:focus,
.create-form select:focus {
  border-color:#111827;
}

.primary-btn {
  margin-top:1.4rem;
  padding:0.9rem;
  width:100%;
  border-radius:999px;
  border:none;
  background: #111827;
  color:#f9fafb;
  font-size:1rem;
  font-weight:500;
  cursor:pointer;
}

.primary-btn:hover {
  filter:brightness(1.05);
}

/* Responsive tweaks */
@media (max-width:640px) {
  .fullscreen-body {
    padding:1.5rem 1rem;
  }
  .hero-description {
    margin-top: 2rem;
  }
  .share-area {
  margin-top:2.4rem;
  display:inline-flex;
  align-items:center;
  gap:0.75rem;
  padding:0.5rem 0.8rem;
  border-radius:999px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.8);
  box-shadow: 0 8px 22px rgba(15,23,42,0.12);
}
  #share-link {
    min-width:0;
    width:100%;
  }
}
