:root {
  --em-plum: #351748;
  --em-gold: #ffd34d;
  --em-pink: #ff5e82;
  --em-cream: #fff7df;
  --em-purple: #592877;
  --em-ink: #2a1539;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  color: var(--em-ink);
  background:
    repeating-linear-gradient(45deg, #ffe9a8 0, #ffe9a8 18px, #fff0bf 18px, #fff0bf 36px),
    linear-gradient(180deg, #fff6d8 0, #fff0c3 100%);
}

.em-wrap {
  width: min(1500px, 97vw);
  margin: 0 auto;
}

.em-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--em-plum);
  border-bottom: 4px solid var(--em-pink);
}

.em-header .em-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.em-brand img {
  width: 236px;
  max-width: 74vw;
}

.em-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 2px solid #f7c84b;
  background: #4d1f67;
  color: #fff;
  border-radius: 10px;
  font-size: 1.1rem;
}

.em-nav {
  display: flex;
  gap: 0.55rem;
}

.em-nav a {
  text-decoration: none;
  color: #ffe9a8;
  border: 2px solid #8356a6;
  border-radius: 8px;
  padding: 0.4rem 0.74rem;
  font-weight: 700;
}

.em-nav a:hover,
.em-nav a[aria-current="page"] {
  background: #ffd34d;
  color: #3b1a51;
  border-color: #ffd34d;
}

.em-hero {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 1rem;
}

.em-card,
.em-side,
.em-pill,
.em-policy {
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid #e9c35c;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 0 #f2d98f;
}

h1,
h2,
h3 {
  font-family: "Bungee", sans-serif;
  margin-top: 0;
  letter-spacing: 0.01em;
}

.em-notices {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.em-notices article {
  border: 2px dashed #af84d6;
  border-radius: 12px;
  padding: 0.7rem;
  background: #fffdf4;
}

.em-stage {
  margin-top: 1rem;
  border: 5px solid #4d1f67;
  border-radius: 18px;
  overflow: hidden;
}

.em-stage iframe {
  width: 100%;
  height: min(76vh, 700px);
  border: 0;
  display: block;
}

.em-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.em-footer {
  margin-top: 2rem;
  background: var(--em-plum);
  border-top: 4px solid var(--em-pink);
  color: #fff0bb;
}

.em-footer .em-wrap {
  padding: 1rem 0 1.5rem;
}

.em-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.em-links a {
  color: #ffd85f;
}

.em-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(46, 13, 63, 0.86);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.em-gate[hidden] {
  display: none;
}

.em-gate-box {
  width: min(520px, 96vw);
  border-radius: 16px;
  background: #fff6d7;
  border: 3px solid #ffcb47;
  padding: 1rem;
}

.em-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
}

.em-actions button {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 0.68rem;
  font-weight: 800;
  cursor: pointer;
}

.em-ok {
  background: #ff5e82;
  color: #fff;
}

.em-stop {
  background: #4c2468;
  color: #ffe7a0;
}

@media (max-width: 1000px) {
  .em-hero {
    grid-template-columns: 1fr;
  }

  .em-notices,
  .em-row {
    grid-template-columns: 1fr;
  }

  .em-toggle {
    display: inline-block;
  }

  .em-nav {
    display: none;
    position: absolute;
    top: 74px;
    right: 2vw;
    width: min(280px, 92vw);
    flex-direction: column;
    background: #4d1f67;
    border: 2px solid #f7c84b;
    border-radius: 12px;
    padding: 0.6rem;
  }

  .em-nav.open {
    display: flex;
  }
}