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

html, body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background-color: #A7D5EA;
  font-family: 'EB Garamond', serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

.screen {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
}


/* ==============================
   Lock Screen
   ============================== */

#lock-screen {
  background-color: #A7D5EA;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lock-content {
  text-align: center;
  padding-top: 20vh;
  padding-left: 2rem;
  padding-right: 2rem;
  position: relative;
  z-index: 1;
}

.lock-heading {
  font-size: clamp(1.2rem, 5vw, 2rem);
  font-weight: 400;
  color: #000;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.lock-subheading {
  font-size: clamp(1.2rem, 5vw, 2rem);
  font-weight: 400;
  color: #000;
  letter-spacing: 0.02em;
  line-height: 1.4;
  margin-top: 0.15em;
}

.countdown {
  font-size: clamp(2.8rem, 11vw, 5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  margin-top: 0.2em;
  font-variant-numeric: tabular-nums;
}

.suggestion-area {
  margin-top: 8vh;
}

.suggestion-label {
  font-size: clamp(1.05rem, 3.8vw, 1.5rem);
  font-weight: 400;
  color: #000;
  line-height: 1.4;
}

.suggestion-text {
  font-size: clamp(1rem, 3.5vw, 1.35rem);
  font-weight: 400;
  color: #fff;
  margin-top: 0.35em;
  min-height: 1.5em;
  opacity: 1;
  transition: opacity 0.25s ease;
}


/* ==============================
   Hedge (single cropped image)
   ============================== */

.hedge-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 0;
}

.hedge {
  width: 100%;
  max-height: 20vh;
  object-fit: cover;
  object-position: top center;
  display: block;
}

@media (min-width: 768px) {
  .hedge {
    max-height: 30vh;
  }

  .lock-content {
    max-width: 600px;
    padding-top: 12vh;
  }
}


/* ==============================
   Password Gate
   ============================== */

.password-box {
  margin-top: 3em;
}

.password-input {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.05rem, 3.8vw, 1.3rem);
  font-weight: 400;
  color: #000;
  background: #fff;
  border: 1.5px solid #21617E;
  padding: 0.55em 1.2em;
  width: min(280px, 70vw);
  text-align: center;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.password-input::placeholder {
  color: #999;
}

.password-input:focus {
  border-color: #000;
}

.password-hint {
  font-size: clamp(0.85rem, 3vw, 1rem);
  font-weight: 400;
  color: #fff;
  margin-top: 0.8em;
  font-style: italic;
}

.password-btn {
  margin-top: 1.5em;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.shake {
  animation: shake 0.4s ease;
}


/* ==============================
   Home Screen
   ============================== */

#home-screen {
  background-color: #A7D5EA;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-content {
  text-align: center;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.home-greeting {
  font-size: clamp(1rem, 3.5vw, 1.3rem);
  font-weight: 400;
  color: #000;
  letter-spacing: 0.01em;
}

.home-title {
  font-size: clamp(1.35rem, 5.5vw, 2.2rem);
  font-weight: 400;
  color: #000;
  letter-spacing: 0.02em;
  line-height: 1.35;
  margin-top: 0.6em;
}

.home-body {
  margin-top: 1.8em;
}

.home-body p {
  font-size: clamp(0.95rem, 3.5vw, 1.2rem);
  font-weight: 400;
  color: #000;
  line-height: 1.5;
}

.home-body p + p {
  margin-top: 1em;
}


/* ==============================
   Nav Buttons
   ============================== */

.home-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 2.2em;
}

.nav-btn {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.05rem, 3.8vw, 1.3rem);
  font-weight: 400;
  color: #000;
  background: #fff;
  border: 1.5px solid #21617E;
  padding: 0.55em 2.2em;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* offset dark rectangle behind button */
.nav-btn::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  width: 100%;
  height: 100%;
  background: #21617E;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.nav-btn:hover::after,
.nav-btn:focus-visible::after {
  opacity: 1;
}

.nav-btn:active {
  background: #e0e0e0;
}

.nav-btn:active::after {
  opacity: 1;
}

@media (hover: none) {
  .nav-btn:active::after {
    opacity: 1;
  }
}


/* ==============================
   Decorative Illustrations
   ============================== */

.deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 0;
}

/* Fireworks: top-left, partially out of frame */
.deco-fireworks {
  top: -3vh;
  left: -5vw;
  width: clamp(140px, 38vw, 200px);
}

/* Bunting: top-right, draping down */
.deco-bunting {
  top: -2vh;
  right: -3vw;
  width: clamp(160px, 42vw, 240px);
}

/* Books: bottom strip, like the hedge */
.books-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 15vh;
  background: url('../assets/books.png') no-repeat bottom center;
  background-size: 100% auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 0;
}

@media (min-width: 768px) {
  .home-content {
    max-width: 560px;
  }

  .deco-fireworks {
    width: 280px;
    top: -3vh;
    left: -4vw;
  }

  .deco-bunting {
    width: 320px;
    top: -2vh;
    right: -2vw;
  }

  .books-container {
    height: 18vh;
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: bottom left;
  }
}
