:root {
  /* Core colors */
  --bg: #0b0d12;
  --panel: #121521;
  --panel-2: #181c2b;

  --text: #e6e9f0;
  --text-dim: #aab0c0;

  --accent: #7c8cff;
  --accent-2: #c77dff;

  /* Effects */
  --border: rgba(255,255,255,0.08);
  --glow: 0 0 12px rgba(124,140,255,0.35);
  --shadow: 0 8px 24px rgba(0,0,0,0.45);

  /* Layout */
  --radius: 14px;
  --radius-sm: 10px;
  --pad: 14px;
}
html, body {
  margin: 0;
  background: radial-gradient(
    circle at top,
    #12152a 0%,
    var(--bg) 60%
  );
  color: var(--text);
  font-family: "minecraftia", system-ui, sans-serif;
}
.tile {
  background: linear-gradient(
    160deg,
    var(--panel) 0%,
    var(--panel-2) 100%
  );
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--pad);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(124,140,255,0.15),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.tile:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(124,140,255,0.4);
  box-shadow:
    0 0 0 1px rgba(124,140,255,0.2),
    0 12px 30px rgba(0,0,0,0.6),
    var(--glow);
}

.tile:hover::before {
  opacity: 1;
}
.iframe-container {
  width: 100%;
  max-width: 1200px;
  margin: 16px auto 32px;

  height: calc(100vh - 180px); /* accounts for controls + banner */

  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--panel);
}
#iframeContainer iframe,
#embeddedSite {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

section,
#history,
#about,
#update,
#linkGrid {
  margin: 48px auto;
  max-width: 1200px;
  padding: 0 16px;
}
#engineContainer {
  max-width: 1200px;
  margin: 16px auto;
  height: calc(100vh - 180px);
}

#engineFrame {
  width: 100%;
  height: 100%;
}
body.modal-open {
  overflow: hidden;
}
.modal-content {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.modal {
  overflow: hidden;
}
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(124,140,255,0.35);
  border-radius: 6px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(124,140,255,0.55);
}
.glow-on-hover {
  position: relative;
  z-index: 0;
  border-radius: 10px;
  background: #111;
  color: #fff;
  padding: 10px;
  width: 90%;
  cursor: pointer;
  overflow: hidden;
    border-radius: 32px;
}

.glow-on-hover::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(
    45deg,
    #ff0000, #ff7300, #fffb00,
    #48ff00, #00ffd5, #002bff,
    #7a00ff, #ff00c8, #ff0000
  );
  background-size: 800%;
  border-radius: inherit;
  filter: blur(5px);
  opacity: 0;
  transition: opacity .3s;
  animation: rainbow 10s linear infinite;
}

.glow-on-hover:hover::before {
  opacity: 1;
}

@keyframes rainbow {
  0%   { background-position: 0 0; }
  50%  { background-position: 400% 0; }
  100% { background-position: 0 0; }
}
.animated-glow {
  color: #fff;
  animation: pulse 2s infinite alternate;
}
h2 {
  margin-bottom: 16px;
  font-size: 1.1rem;
  color: var(--accent);
  text-shadow: 0 0 6px rgba(124,140,255,0.4);
}
#linkGrid .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.carousel-item h3,
.carousel-item p {
  margin: 0;
}

.carousel-item h3 {
  font-size: 0.9rem;
}

.carousel-item p {
  font-size: 0.75rem;
  color: var(--text-dim);
  overflow: hidden;
}

.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.carousel::-webkit-scrollbar {
  height: 6px;
}
.carousel .tile img {
  height: 50%;
  width: 100%;

  object-fit: cover;
  flex-shrink: 0;

  display: block;
}

.carousel .tile {
  min-width: 240px;
  
  height: 260px; 
}
button,
input,
select {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

button:hover {
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.banner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 10px 16px;
}


.flashing-text {
  margin: 4px 0;
  line-height: 1.4;
  text-align: center;
}

.low-end * {
  animation: none !important;
  transition: none !important;
  box-shadow: none !important;
}
.controls {
  position: sticky;
  top: 0;
  z-index: 100;

  display: grid;
  grid-template-columns:
    auto
    auto
    1fr
    auto
    auto;
  gap: 12px;

  align-items: center;
  max-width: 1200px;
  margin: 16px auto;
  padding: 12px 16px;

  background: linear-gradient(
    180deg,
    rgba(18,21,33,0.95),
    rgba(18,21,33,0.85)
  );

  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
#urlInput {
  width: 100%;
  min-width: 240px;
}
.controls button {
  white-space: nowrap;
}
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1000;

  backdrop-filter: blur(6px);
}
.modal-content {
  background: linear-gradient(
    160deg,
    var(--panel),
    var(--panel-2)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);

  max-width: 520px;
  width: calc(100% - 32px);
  margin: 8vh auto;
  padding: 20px;

  position: relative;
}
#closeSettings {
  position: absolute;
  top: 12px;
  right: 14px;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--text-dim);
}

#closeSettings:hover {
  color: var(--accent);
}
#settingsBtn {
  position: relative;
  z-index: 2;
}
.sticky-footer {
  position: sticky;
  bottom: 0;
  z-index: 90;

  background: linear-gradient(
    180deg,
    rgba(18,21,33,0.85),
    rgba(18,21,33,0.95)
  );

  border-top: 1px solid var(--border);
  padding: 10px 16px;
}
.beta-popup {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: #111;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 1rem;
  z-index: 10000;
  width: 220px;
}

.beta-popup .actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.beta-popup button,
.beta-popup .beta-link {
  flex: 1;
  font-size: 0.8rem;
  padding: 0.4rem;
}

.beta-popup .beta-link {
  text-align: center;
  text-decoration: none;
  background: #3cff96;
  color: #000;
  border-radius: 6px;
}

.beta-bubble {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #3cff96;
  color: #000;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.hidden {
  display: none;
}


.iframe-container {
  min-height: 400px;
}





