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

body {
  background: #ffffff;
  color: #111;
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SETUP */
#setup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 40px 24px;
  width: 100%;
  max-width: 460px;
  max-height: 100vh;
  overflow-y: auto;
  background: #ffffff;
}
#setup .logo-svg {
  width: 80px;
  max-height: 18vh;
  height: auto;
  object-fit: contain;
}
#setup h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: .15em;
  color: #111;
}
#setup label {
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #999;
  align-self: flex-start;
}
#nameInput {
  width: 100%;
  background: #f5f5f5;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  color: #111;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 16px 20px;
  outline: none;
  text-align: center;
  letter-spacing: .05em;
  transition: border-color .2s;
}
#nameInput:focus { border-color: #F5C800; }
#nameInput::placeholder { color: #bbb; font-weight: 400; }
#showBtn {
  width: 100%;
  background: #F5C800;
  color: #111;
  border: none;
  border-radius: 4px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: .15em;
  padding: 16px;
  cursor: pointer;
}
#showBtn:hover { background: #ffd700; }

/* DISPLAY */
#display {
  display: none;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  flex-direction: column;
  overflow: hidden;
}

/* top bar */
#topBar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 24px;
  flex-shrink: 0;
}
#logoCorner {
  width: min(110px, 14vw);
  max-height: 22vh;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
#backBtn {
  background: transparent;
  border: 1px solid #ddd;
  color: #aaa;
  font-family: 'Montserrat', sans-serif;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
#backBtn:hover { border-color: #aaa; color: #555; }

/* centre content */
#textArea {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 4vw 20px;
}
#nameText {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 10rem;
  letter-spacing: .04em;
  line-height: 1;
  color: #111;
  text-align: center;
  white-space: nowrap;
  max-width: 92vw;
}
.divider {
  width: 70px;
  height: 3px;
  background: #F5C800;
}
#welcomeText {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  letter-spacing: .35em;
  color: #F5C800;
}

/* ── Landscape mobile ───────────────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {

  /* Setup screen: tighter spacing so everything fits */
  #setup {
    gap: 10px;
    padding: 12px 24px;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 700px;
    align-items: center;
  }
  #setup .logo-svg {
    width: 52px;
    max-height: 12vh;
  }
  #setup h2 {
    font-size: 1rem;
    width: 100%;
    text-align: center;
  }
  #setup label { display: none; } /* hide label to save space */
  #nameInput {
    padding: 10px 16px;
    font-size: 1.1rem;
  }
  #showBtn {
    padding: 10px;
    font-size: 1.1rem;
  }

  /* Display screen: smaller logo, tighter gaps */
  #topBar {
    padding: 8px 16px;
  }
  #logoCorner {
    width: min(70px, 10vw);
    max-height: 16vh;
  }
  #textArea {
    gap: 6px;
    padding: 0 4vw 8px;
  }
  #welcomeText {
    font-size: clamp(1.4rem, 4vw, 2.5rem);
    letter-spacing: .25em;
  }
  .divider {
    width: 50px;
    height: 2px;
    margin: 0;
  }
}

