:root {
  --primary-bg: #000;
  --card-bg: #111;
  --button-bg: #e4d183;
  --button-fg: #232931;
  --gradient-start: #ff0000;
  --gradient-mid: #ffff00;
  --gradient-end: #0000ff;
  --timer-bg: rgba(0,0,0,0.6);
  --timer-fg: #fff;
}

html, body {
  margin: 0; padding: 0;
  background: var(--primary-bg);
  color: #fff;
  font-family: 'Allerta Stencil', Arial, sans-serif;
  min-height: 100%;
}

.main-wrapper {
  display: flex; flex-direction: column;
  min-height: 100vh;
}

.spacer { flex: 1 1 0; }

.site-content {
  flex: 0 1 auto;
  display: flex; flex-direction: column;
  align-items: center;
}

/* center header */
header { display: flex; justify-content: center; }
.romania-title {
  margin: 0; text-align: center;
  font-size: clamp(3rem,16vw,10rem);
  background: linear-gradient(90deg,
    var(--gradient-start) 0%, var(--gradient-start) 30%,
    var(--gradient-mid) 48%, var(--gradient-mid) 50%,
    var(--gradient-end) 68%, var(--gradient-end) 100%);
  -webkit-background-clip: text; color: transparent;
  white-space: nowrap; overflow-x: auto;
}
.romania-title::-webkit-scrollbar { display: none; }

/* hero video */
.video-container {
  width: 90vw; max-width: 600px;
  aspect-ratio: 21/9; background: var(--card-bg);
  border-radius: 1vw; overflow: hidden;
  margin: 2vw auto;
}
.video-container video {
  width: 100%; height: 100%; object-fit: cover;
}

/* mobile layout preserved on desktop */
.buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "b1 b2"
    "b3 b3"
    "b4 b5";
  gap: 1rem;
  width: 95vw; max-width: 700px;
  margin: 1rem auto;
}
.buttons-grid [data-area="b1"] { grid-area: b1; }
.buttons-grid [data-area="b2"] { grid-area: b2; }
.buttons-grid [data-area="b3"] { grid-area: b3; }
.buttons-grid [data-area="b4"] { grid-area: b4; }
.buttons-grid [data-area="b5"] { grid-area: b5; }

.button {
  position: relative;
  background: var(--button-bg);
  color: var(--button-fg);
  border: 2px solid var(--button-bg);
  border-radius: 0.5rem;
  font-size: clamp(1rem,4vw,2rem);
  padding: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  overflow: hidden;
}
.button::before {
  content: ""; position: absolute;
  left: 0; right: 0; top: 100%; height: 100%;
  background: var(--button-fg);
  transition: top 0.4s ease;
}
.button:hover::before { top: 0; }
.button:hover { color: var(--button-bg); }

/* big button spans two columns */
.button-big { aspect-ratio: 17/1; }

/* portrait promo */
.promo-iframe-container {
  position: relative;
  width: 90vw; max-width: 400px;
  aspect-ratio: 9/16;
  background: var(--card-bg);
  border-radius: 1vw;
  overflow: hidden;
  margin: 1.5rem auto;
}
.shared-iframe {
  width: 100%; height: 100%; border: none;
}
/* clickable overlay */
.promo-overlay {
  position: absolute; top:0; left:0;
  width:100%; height:100%;
  z-index: 2;
  /* transparent, captures clicks */
}

/* ad modal full screen */
.ad-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 9999;
}
.ad-modal.active { display: flex; }
.ad-content {
  position: absolute; inset: 0;
  background: var(--card-bg);
}
/* NEW: invisible overlay over entire ad iframe */
.ad-modal-overlay {
  position: absolute; top:0; left:0;
  width:100%; height:100%;
  z-index: 1;
}

.ad-iframe {
  position: relative;
  z-index: 0;
  width: 100%; height: 100%; border: none;
}

#adClose {
  position: absolute; top:1rem; right:1rem;
  background: #fff; color: #000;
  border: none; border-radius: 50%;
  width: 2rem; height: 2rem;
  font-weight: bold; cursor: pointer;
  z-index: 3;
}
#adClose:disabled {
  opacity: 0.3; background: #444; color: #ddd;
}

.timer {
  position: absolute; bottom:1rem; left:50%;
  transform: translateX(-50%);
  background: var(--timer-bg);
  color: var(--timer-fg);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.9rem; font-weight: bold;
  z-index: 2;
}

/* GDPR banner */
.gdpr-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
  display: none;          /* <- hide by default */
  align-items: center;
  justify-content: center;
  z-index:100000;
}
.gdpr-content {
  background: #fff; color: #222;
  padding: 2rem; border-radius: 0.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  text-align: center; max-width: 90vw; width: 340px;
  position: relative;
}
#gdpr-accept {
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  background: var(--button-fg); color: #fff;
  border: none; border-radius: 0.5rem;
  cursor: pointer;
}
.gdpr-close {
  position: absolute; top:0.5rem; right:0.5rem;
  background: none; border: none; font-size: 1.5rem; color: #888;
  cursor: pointer;
}

/* community & footer */
.community-info {
  max-width: 700px; margin: 1rem auto;
  line-height: 1.5; text-align: center; color: var(--button-bg);
  font-size: 1rem;
}
footer {
  text-align: center; padding: 1rem 0; font-size: 0.8rem;
  color: #888;
}
