  :root{
    --bg:#0a0a0a;
    --text:#e9e9ee;
    --muted:#a8a8b3;
    --accent:#b065ff;              /* default */
    --radius:18px;
    --shadow:0 8px 24px rgba(0,0,0,.35);
    --pad: clamp(22px, 3vw, 40px); /* base content padding */
    --safe: 64px;                  /* button safety margin */
	--safe-bottom: 20px;
  }
  

/* Phones + small tablets: add dynamic lift */
@media (max-height: 900px) {
  :root {
    --safe-bottom: calc(env(safe-area-inset-bottom, 0px) + 60px);
  }
}

/* Very short screens (landscape phones) */
@media (max-height: 600px) {
  :root {
    --safe-bottom: calc(env(safe-area-inset-bottom, 0px) + 80px);
  }
}


.tile.center { --accent: #b065ff; }
.tile.n  { --accent: #4bd4a0; }   /* Emerald */
.tile.ne { --accent: #49c8d3; }   /* Teal Cyan */
.tile.e  { --accent: #ff8c3a; }   /* Sunset Orange */
.tile.se { --accent: #e4b253; }   /* Gold/Copper */
.tile.s  { --accent: #d84b63; }   /* Ruby Red */
.tile.sw { --accent: #c77a52; }   /* Crimson Gold */
.tile.w  { --accent: #5c79e0; }   /* Sapphire Blue */
.tile.nw { --accent: #a7a9b5; }   /* Gunmetal */


html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  font-family: "Poppins", system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
}

	/* --- Dynamic accent-colored noise background --- */
	body::before {
	  content: "";
	  position: fixed;
	  inset: 0;
	  z-index: 0;
	  pointer-events: none;

	  /* procedural SVG noise texture */
	  background-image: url("data:image/svg+xml;utf8,\
	  <svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'>\
		<filter id='n'>\
		  <feTurbulence type='fractalNoise' baseFrequency='0.35' numOctaves='3'/>\
		</filter>\
		<rect width='100%' height='100%' filter='url(%23n)'/>\
	  </svg>"); 
	  background-size: 200px 200px;
	  opacity: 0.92;
	  filter: contrast(160%) brightness(1.4);
	  mix-blend-mode: overlay;
	  animation: drift 40s linear infinite;
	}

	/* overlay tinted by current section accent color */
	body::after {
	  content: "";
	  position: fixed;
	  inset: 0;
	  z-index: 0;
	  pointer-events: none;
	  background: var(--accent);
	  mix-blend-mode: soft-light;
	  opacity: 0.60;
	  transition: background-color 0.8s ease, opacity 0.8s ease;
	  
	  background: radial-gradient(circle at center, var(--accent) 0%, transparent 70%);
	  mix-blend-mode: soft-light;
	  opacity: 0.85;
	  transition: background 0.8s ease, opacity 0.6s ease;
	}
	body {
	  opacity: 0;
	  transition: opacity 0.8s ease;
	}
	body.ready {
	  opacity: 1;
	}
	html, body {
	  overscroll-behavior-y: contain;
	  touch-action: pan-x pan-y;
	}




  .viewport{position:relative;z-index:1;overflow:hidden;height:100dvh}
  @supports not (height: 100dvh) {
		.viewport { height: 100vh; }
	}
  
  .stage {
	  width: 300vw;
	  height: 300vh;
	  display: grid;
	  grid-template-columns: 100vw 100vw 100vw;
	  grid-template-rows: 100vh 100vh 100vh;
	  transform: translate(-100vw, -100vh) scale(1);
	  transform-origin: center center;
	  transition: transform 0.8s cubic-bezier(.22, .8, .15, 1);
	  will-change: transform;
	}

	#stage {
	  transition: opacity 0.4s ease-in-out, transform 0.75s cubic-bezier(.22,.8,.15,1);
	}
	
	#stage.fading {
		opacity: 0;
		transform: scale(0.95);
		filter:blur(3px);
		transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
	}

  .tile{position:relative;display:flex;flex-direction:column;overflow:hidden;
        background:linear-gradient(180deg, rgba(255,255,255,.02), transparent 30%);}
		
  .tile-content{
    flex:1;overflow:auto;
    padding: var(--pad);
    /* safety margins so text never sits under edge / home buttons */
    padding-left:  calc(var(--pad) + var(--safe));
    padding-right: calc(var(--pad) + var(--safe));
    padding-top:   calc(var(--pad));
    padding-bottom:calc(var(--pad) + var(--safe-bottom));
    scrollbar-width:thin;
	font-size: clamp(0.8rem, 0.9vw + 0.4rem, 0.95rem);
	line-height: 1.5;
  }
  .tile {
	  transform: perspective(800px) rotateX(0deg) rotateY(0deg);
	  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.22, .8, .15, 1);
	}
	.tile.active {
	  transform: perspective(800px) rotateX(0deg) rotateY(0deg);
	  z-index: 2;
	  box-shadow: 0 0 60px rgba(0,0,0,0.4) inset;
	}
	.tile:not(.active) {
	  opacity: 0.5
	  filter: brightness(0.9) saturate(0.9);
      pointer-events: none; /* prevents ghost button clicks from neighbors */
	  transform: perspective(800px) rotateX(1deg) rotateY(1deg);
	}

  .tile-content {
	  opacity: 0.5;
	  transform: translateY(20px);
	  transition: opacity .6s ease, transform .6s ease;
	}
	.tile.active .tile-content {
	  opacity: 1;
	  transform: translateY(0);
	}
  .tile h1,.tile h2,.tile h3{
	  color:var(--accent);
	  margin:.25em 0;
	  font-family: "Cinzel", serif;
	  font-optical-sizing: auto;
	  font-weight: 500;
	  font-style: normal;
	  letter-spacing: 0.5px;
	}
  
  h1.title{
	  font-family: "Cinzel", serif;
	  font-optical-sizing: auto;
	  font-weight: 500;
	  font-style: normal;
  }

  /* grid placement */
  .tile.center{grid-column:2;grid-row:2;}
  .tile.n {grid-column:2;grid-row:1;}
  .tile.ne{grid-column:3;grid-row:1;}
  .tile.e {grid-column:3;grid-row:2;}
  .tile.se{grid-column:3;grid-row:3;}
  .tile.s {grid-column:2;grid-row:3;}
  .tile.sw{grid-column:1;grid-row:3;}
  .tile.w {grid-column:1;grid-row:2;}
  .tile.nw{grid-column:1;grid-row:1;}

  /* buttons */
  .btn{
    border:0;border-radius:999px;padding:.6rem 1rem;font-weight:700;
    background:var(--accent);color:#0a0614;cursor:pointer;
    box-shadow:var(--shadow);
    transition:transform .15s ease, filter .2s ease;
	font-weight: 600;

  }
  .btn:hover{
    filter:drop-shadow(0 0 12px color-mix(in oklab, var(--accent) 80%, white 20%));
  }
  .btn:active{ transform:scale(.97); }
  
	.btn.disabled,
	.btn:disabled {
	  opacity: 0.4;
	  cursor: not-allowed;
	  filter: grayscale(80%);
	  pointer-events: none;
	}


  /* edge neighbor buttons (desktop) */
  .nav{position:absolute;z-index:3}
  .nav.top    { top:10px; left:50%; transform:translateX(-50%); }
  .nav.bottom { bottom: var(--safe-bottom); left:50%; transform:translateX(-50%);  }
  .nav.left   { left:10px; top:50%; transform:translateY(-50%); }
  .nav.right  { right:10px; top:50%; transform:translateY(-50%); }
  


	/* HOME button fixed top-left on all sections */
	.home-btn {
	  position: fixed;
	  top: 10px;
	  left: 10px;
	  z-index: 20;
	  border: 0;
	  border-radius: 999px;
	  padding: .6rem 1rem;
	  font-weight: 700;
	  background: var(--accent);
	  color: #0a0614;
	  cursor: pointer;
	  box-shadow: var(--shadow);
	  transition: transform .15s ease, filter .2s ease;
	}
	.home-btn:hover {
	  filter: drop-shadow(0 0 12px color-mix(in oklab, var(--accent) 80%, white 20%));
	}
	.home-btn:active {
	  transform: scale(.97);
	}


  /* center landing */
  .landing{margin:auto;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
  .landing .logo{width:min(220px,38vw);aspect-ratio:1/1;object-fit:contain;filter:drop-shadow(0 0 18px rgba(176,101,255,.25))}
  .subtitle{color:var(--muted)}
  
	@keyframes spin360 {
	  from { transform: rotate(0deg); }
	  to { transform: rotate(360deg); }
	}
	
	@keyframes pulse {
	  0%,100% { filter: drop-shadow(0 0 10px var(--accent)); }
	  50% { filter: drop-shadow(0 0 18px var(--accent)); }
	}

	.landing .logo {
	  display: inline-block;
	  cursor: pointer;
	  animation: pulse 3s ease-in-out infinite;
	  transition: filter 0.4s ease;
	}

	.landing .logo.spin {
	  animation: pulse 3s ease-in-out infinite, spin360 1.2s ease-in-out;
	}

	.landing .logo {
	  animation: pulse 3s ease-in-out infinite;
	}


  /* radial (desktop) */
	.radial {
	  position: absolute;
	  inset: 0;
	  pointer-events: none;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  padding-bottom: var(--safe-bottom); 
	  overflow: hidden;
	}

	.radial-wrap {
	  position: relative;
	  width: 100%;
	  height: 100%;
	  max-width: min(90vmin, 700px);
	  max-height: min(90vmin, 700px);
	  transform-origin: center;
	  transition: transform 0.3s ease;
	}

	/* Slightly shrink in landscape mobile */
	@media (orientation: landscape) and (max-height: 300px) {
	  .radial-wrap {
		transform: scale(0.8);
	  }
	}




  .radial .item{position:absolute;pointer-events:auto;transform:translate(-50%,-50%);white-space:nowrap}
  .radial .n  {top:18%; left:50%;}
  .radial .ne {top:30%; left:70%;}
  .radial .e  {top:50%; left:82%;}
  .radial .se {top:70%; left:70%;}
  .radial .s  {top:82%; left:50%;}
  .radial .sw {top:70%; left:30%;}
  .radial .w  {top:50%; left:18%;}
  .radial .nw {top:30%; left:30%;}
  
  .radial .btn {
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -52%) scale(1.03); }
}

  /* mobile two-block menu */
  .mobile-blocks{display:none;gap:10px;width:min(520px,92vw);margin-inline:auto;margin-top:8px}
  .mobile-blocks .row{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
  .mobile-blocks .btn{padding:.55rem .9rem}
  .mobile-blocks.top {
	  margin-bottom: 1rem;
	}
/* bottom group near footer */
	.mobile-blocks.bottom {
	  margin-top: 1rem;
	}

  /* quick dropdown + language */
  .quick-menu{
    position:fixed;top:10px;right:92px;z-index:5;
    background:#1a1a1a;border:1px solid #2e2e2e;border-radius:var(--radius);
    padding:6px 8px;box-shadow:var(--shadow)
  }
  .quick-menu select{background:#1a1a1a;color:var(--text);border:0;font-weight:700;outline:none}
  .quick-menu option{background:#1a1a1a;color:var(--text)}
  .quick-menu select:hover{filter:brightness(1.15)}

  .lang{
    position:fixed;top:10px;right:12px;z-index:6;display:flex;gap:8px;align-items:center
  }
  .lang button{background:transparent;color:var(--muted);border:0;font-weight:800;cursor:pointer}
  .lang .active{color:var(--text);text-decoration:underline}

  /* mobile layout */
  @media (max-width:600px){
    .radial{ display:none; } 
    .mobile-blocks{ display:flex; flex-direction:column; }
    .nav{ display:none; }          /* hide corner neighbor buttons on mobile */
    .tile-content{ padding: 40px 16px 88px 16px; } /* comfy margins */
    .quick-menu{ top:auto; top:10px; right:50%; transform:translateX(50%); }
  }



	@keyframes drift {
	  from { background-position: 0 0; }
	  to { background-position: 200px 200px; }
	}

	
	.video-frame {
  position: relative;
  width: min(100%, 960px); /* fills width but capped for readability */
  aspect-ratio: 16 / 9;
  margin: 20px auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}

.video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* optional: tweak on mobile to keep it elegant */
@media (max-width: 600px) {
  .video-frame {
    aspect-ratio: 16 / 9;
    width: 100%;
    margin: 12px 0;
    border-radius: 12px;
  }
}

/* Contacts */
.tile.center {
	position: relative;
}
.contacts-row {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  right: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 50; /* above stage */
  pointer-events: auto;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeUp 0.8s ease 0.5s forwards;
}

@keyframes fadeUp {
  to { opacity: 0.7; transform: translateY(0); }
}


.contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-size: 15px;
  background: transparent;
  transition: all 0.25s ease;
  opacity: 0.75;
}

.contact:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 0 10px color-mix(in oklab, var(--accent) 80%, white 20%);
}

.contact:active {
  transform: scale(0.95);
}


/* optional: hide the icons row on desktop and show below mobile grid */
@media (max-width: 800px) {

  .contact {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
}

/* Accent-styled hyperlink */
a.accent-link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
  transition: color 0.25s ease, border-color 0.25s ease;
}

/* Hover / focus state */
a.accent-link:hover,
a.accent-link:focus {
  color: color-mix(in srgb, var(--accent) 90%, white 10%);
  border-bottom-color: currentColor;
  text-shadow: 0 0 6px color-mix(in srgb, var(--accent) 40%, transparent);
}

.content-image {
  display: block;
  max-width: 800px;
  width: 100%;
  height: auto;
  margin: 24px auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

span.accent {
	  color:var(--accent);
	  font-weight: bold;
}

strong {
	color:var(--accent);
}

.title, .subtitle {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 1s ease-out forwards;
}
.subtitle { animation-delay: 0.5s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.form-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 900px;       /* upper limit on wide screens */
  margin: 0 auto;         /* center horizontally */
}

.form-wrapper iframe {
  width: 100%;
  max-width: 100%;
  min-height: 70vh;       /* makes sure it’s tall enough initially */
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02); /* subtle overlay if you like */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}


/* Program / Tickets block */
.cta-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 14px 0 18px;
}

/* QR block (naudojam jūsų radius/shadow/accent logiką) */
.qr-block{
  width: fit-content;
  max-width: 100%;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.10);
  box-shadow: var(--shadow);
}

.qr-img{
  display:block;
  width: min(260px, 70vw);
  height: auto;
  border-radius: 12px;
  margin: 0 auto;
  background: #fff; /* kad QR visada turėtų baltą foną */
  padding: 10px;
}
