:root {
  --cream: #f6eddf;
  --deep-green: #093818;
  --gold: #bd8209;
  --gold-light: #e0b24f;
  --shadow: rgba(31, 22, 9, 0.28);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #111;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--deep-green);
  touch-action: pan-y;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.phone-stage {
  position: relative;
  width: min(100vw, 56.25vh); /* keeps 9:16 portrait ratio */
  height: min(100vh, 177.78vw);
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
}

.screen.active {
  display: block;
}

/* HOME */
.home-screen {
  background: var(--cream);
}

.home-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.hotspot {
  position: absolute;
  border: 2px solid rgba(220, 170, 70, 0);
  background: rgba(255, 255, 255, 0.01);
  border-radius: 22px;
}

.hotspot:active,
.hotspot:focus-visible {
  border-color: rgba(220, 170, 70, 0.9);
  background: rgba(220, 170, 70, 0.12);
  outline: none;
}

/* These positions match the uploaded Home.png layout */
.hotspot.limmu { left: 6%; top: 48%; width: 28%; height: 24%; }
.hotspot.gumma { left: 36%; top: 48%; width: 28%; height: 24%; }
.hotspot.gomma { left: 67%; top: 48%; width: 28%; height: 24%; }
.hotspot.jimma { left: 18%; top: 72%; width: 28%; height: 22%; }
.hotspot.gera  { left: 55%; top: 72%; width: 28%; height: 22%; }

.home-actions {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 2.1%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
}

.gold-btn,
.icon-btn,
.nav-btn {
  border: 1px solid rgba(255, 232, 170, 0.75);
  color: #fffdf4;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  box-shadow: 0 5px 15px var(--shadow);
}

.gold-btn {
  min-height: 36px;
  padding: 0.35rem 0.15rem;
  border-radius: 999px;
  font-size: clamp(0.68rem, 2.2vw, 0.95rem);
  font-weight: 700;
}

/* SLIDE PAGE */
.slide-screen {
  background:
    radial-gradient(circle at top, rgba(255, 246, 225, 0.98), rgba(242, 225, 194, 0.96)),
    var(--cream);
  padding: 2.2% 3.2%;
}

.topbar {
  height: 8%;
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  align-items: center;
  gap: 0.5rem;
}

.topbar h1 {
  margin: 0;
  text-align: center;
  color: var(--deep-green);
  font-size: clamp(1rem, 4.3vw, 2rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.icon-btn {
  min-height: 42px;
  padding: 0.45rem 0.55rem;
  border-radius: 999px;
  font-size: clamp(0.65rem, 2.1vw, 0.95rem);
  font-weight: 700;
}

.slide-frame {
  position: relative;
  height: 82%;
  margin-top: 1.8%;
  border: 4px solid rgba(189, 130, 9, 0.9);
  border-radius: 28px;
  overflow: hidden;
  background: #efe0c7;
  box-shadow: inset 0 0 0 2px rgba(255, 246, 220, 0.65), 0 18px 30px var(--shadow);
  touch-action: pan-y;
}

.slide-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(255, 238, 177, 0.7);
  border-radius: 20px;
}

#slideImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f3e5cf;
  user-select: none;
}

.controls {
  height: 8%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.7rem;
  padding-top: 1.8%;
}

.nav-btn {
  min-height: 50px;
  border-radius: 18px;
  font-size: clamp(0.85rem, 2.7vw, 1.15rem);
  font-weight: 800;
}

.counter {
  min-width: 72px;
  text-align: center;
  color: var(--deep-green);
  font-weight: 800;
  font-size: clamp(0.9rem, 2.8vw, 1.2rem);
}

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

@media (max-width: 430px) {
  .home-actions {
    gap: 0.25rem;
  }

  .gold-btn {
    font-size: 0.62rem;
  }

  .topbar {
    grid-template-columns: 0.8fr 1fr 0.95fr;
  }
}
