:root{
  --bg: #e9ecef;
  --fg: #222;
  --accent: #1f7a8c;
}

*{ box-sizing: border-box; }

html, body, #app {
  height: 100%;
  margin: 0;
}

body{
  /* Set fondo.png as the page background */
  background: url("fondo.png") center center / cover no-repeat fixed;
  color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

#app{
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: start center;
  padding: 6vh 24px 24px;
}

.overlay{
  text-align: center;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  backdrop-filter: blur(2px);
}

.title{
  margin: 0 0 16px;
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #000;
}

.btn-row{
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.btn{
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease;
}

.btn-dark{
  background: #000;
  color: #fff;
}

.btn-dark:active{ transform: scale(0.98); }

.sub{
  margin: 24px 0 14px;
  font-size: 14px;
  color: #f3f3f3;
}

#c{
  width: min(92vw, 560px);
  height: min(60vh, 360px);
  max-height: 420px;
  display: block;
  margin: 8px auto 16px;
  border-radius: 12px;
  outline: 1px solid rgba(255,255,255,0.15);
  background: transparent; /* renderer is transparent */
}

.btn-link{
  background: #000;
  color: #fff;
  text-decoration: none;
  display: inline-block;
}

.btn-link:active{ transform: scale(0.98); }

#hint{
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  font-size: 14px;
  backdrop-filter: blur(6px);
  user-select: none;
  color: #333;
}

.modal{
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background: transparent;
}
.modal.hidden{ display: none; }
.modal > *{
  /* reduced size to half */
  background: #111; color: #fff;
  padding: 12px; border-radius: 12px; max-width: calc(260px * 1.4);
  margin-top: 50px;
}
.modal-card h3{ margin: 0 0 8px; font-size: 16px; }
/* Gold title and button styles for modal */
.modal-card h3 { color: #d4af37; }
#modal-close {
  background: #d4af37 !important;
  color: #000 !important;
}