:root {
  --mirth-bg: #0b0f2d;
  --mirth-pink: #ff6f9f;
  --mirth-cyan: #65e4ff;
  --mirth-lime: #b7ff71;
  --mirth-card: #111741;
  --mirth-ink: #f8f9ff;
  --mirth-soft: #d4dafc;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  color: var(--mirth-ink);
  background:
    radial-gradient(circle at 8% 14%, rgba(255, 111, 159, 0.22), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(101, 228, 255, 0.22), transparent 32%),
    radial-gradient(circle at 42% 88%, rgba(183, 255, 113, 0.2), transparent 30%),
    var(--mirth-bg);
}
body.mirth-locked { overflow: hidden; }
.mirth-header {
  padding: 0.8rem 1rem 1rem;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.25);
}
.mirth-brandline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.mirth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--mirth-ink);
}
.mirth-brand img { width: 50px; height: 38px; }
.mirth-brand span {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
}
.mirth-toggle {
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  background: linear-gradient(90deg, var(--mirth-pink), var(--mirth-cyan));
  color: #091028;
  font-weight: 700;
  cursor: pointer;
}
.mirth-menu {
  margin-top: 0.8rem;
  display: none;
  gap: 0.55rem;
  flex-direction: column;
}
.mirth-menu.expanded { display: flex; }
.mirth-menu a {
  text-decoration: none;
  color: var(--mirth-soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
}
.mirth-menu a:hover,
.mirth-menu a:focus-visible { color: var(--mirth-ink); border-color: var(--mirth-cyan); }
.mirth-grid-home {
  width: min(1360px, 100% - 1.4rem);
  margin: 1rem auto 2rem;
  display: grid;
  gap: 0.95rem;
}
.mirth-hero,
.mirth-pillars,
.mirth-stage,
.mirth-widgets article,
.mirth-docframe {
  background: linear-gradient(140deg, rgba(17, 23, 65, 0.95), rgba(10, 14, 42, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 24px;
  padding: 1rem;
}
.mirth-hero h1,
.mirth-docframe h1 {
  margin-top: 0;
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.8rem, 6vw, 3.1rem);
}
.mirth-pillars h2,
.mirth-stage h2,
.mirth-widgets h2 { margin-top: 0; font-family: 'Fredoka', sans-serif; }
.mirth-pillars ul { margin: 0; padding-left: 1rem; line-height: 1.7; }
.mirth-frame {
  min-height: 440px;
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid rgba(101, 228, 255, 0.42);
  background: #000;
}
.mirth-frame.tall { min-height: 72vh; }
.mirth-frame iframe {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}
.mirth-widgets {
  display: grid;
  gap: 0.9rem;
}
.mirth-docframe {
  width: min(1120px, 100% - 1.4rem);
  margin: 1rem auto 2rem;
  line-height: 1.7;
  color: var(--mirth-soft);
}
.mirth-footer {
  margin: 0 0.7rem 0.8rem;
  padding: 1rem;
  border: 2px dotted rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  color: var(--mirth-soft);
}
.mirth-footer div {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.mirth-footer a { color: var(--mirth-cyan); text-decoration: none; }
.mirth-age {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 30, 0.9);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 100;
}
.mirth-age[hidden] { display: none; }
.mirth-age-card {
  width: min(430px, 100%);
  background: var(--mirth-card);
  border: 2px solid var(--mirth-cyan);
  border-radius: 20px;
  padding: 1.1rem;
}
.mirth-age-card h2 {
  margin-top: 0;
  font-family: 'Fredoka', sans-serif;
}
.mirth-age-buttons {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.7rem;
}
.mirth-age-buttons button {
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
#mirth-yes { background: var(--mirth-lime); color: #0e1e05; }
#mirth-no { background: #31438f; color: #fff; }
@media (min-width: 920px) {
  .mirth-toggle { display: none; }
  .mirth-menu {
    display: flex;
    margin-top: 0.8rem;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .mirth-grid-home {
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-areas:
      'hero pillars'
      'stage stage'
      'widgets widgets';
  }
  .mirth-hero { grid-area: hero; transform: rotate(-0.4deg); }
  .mirth-pillars { grid-area: pillars; transform: rotate(0.5deg); }
  .mirth-stage { grid-area: stage; }
  .mirth-widgets {
    grid-area: widgets;
    grid-template-columns: repeat(3, 1fr);
  }
}