@font-face {
  font-family: "Neue Jothama";
  src: url("../fonts/NeueJothama-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Jothama";
  src: url("../fonts/NeueJothama-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #141414;
  --white: #ffffff;
  --white-soft: #f3f3f3;
  --text: #f7f7f7;
  --muted: #d6d6d6;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --radius-sm: 14px;
  --pill: 12px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Neue Jothama", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image: url("../img/bg.webp"), url("../img/bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page {
  width: min(1080px, 92vw);
  padding: 40px 20px 60px;
  text-align: center;
}

.topbar {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 48px;
}

.topbar__label {
  opacity: 0.9;
}

.topbar__divider {
  opacity: 0.7;
}

.topbar__pill {
  padding: 8px 18px;
  background: var(--white-soft);
  color: #1e1e1e;
  border-radius: var(--pill);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.title {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.answer {
  width: min(720px, 92vw);
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 10px 12px 10px 18px;
  box-shadow: var(--shadow);
}

.answer input {
  flex: 1;
  border: none;
  outline: none;
  font-size: clamp(16px, 2.2vw, 22px);
  font-style: italic;
  padding: 12px 6px;
  color: #111;
  background: transparent;
}

.answer__btn {
  border: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #111;
  color: var(--white);
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.answer__btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.subtitle {
  margin: 0;
  font-size: clamp(14px, 2.2vw, 18px);
  color: var(--muted);
}

.share-btn {
  display: none;
  border: none;
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.share-btn.show {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.countdown {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.countdown__item {
  display: grid;
  place-items: center;
  gap: 10px;
}

.countdown__value {
  width: 96px;
  height: 96px;
  background: var(--white);
  color: #111;
  font-weight: 800;
  font-size: 36px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.countdown__label {
  font-size: 16px;
  color: var(--muted);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1f1f1f;
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .topbar {
    margin-bottom: 32px;
  }

  .answer {
    flex-direction: row;
  }

  .answer__btn {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }

  .countdown__value {
    width: 80px;
    height: 80px;
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .topbar {
    font-size: 18px;
  }

  .answer {
    padding: 8px 10px 8px 14px;
  }

  .answer input {
    font-size: 16px;
  }

  .countdown {
    gap: 12px;
  }
}
