:root {
  --violet-deep: #4b33b8;
  --violet: #6a4fd8;
  --violet-mid: #8a5cc8;
  --lilac: #b57bee;
  --pink-lilac: #e0a8f7;
  --blush: #f6dcff;
  --white: #fdf6ff;

  --flowers: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cdefs%3E%3Cg id='f'%3E%3Cellipse cy='-9' rx='6' ry='9'/%3E%3Cellipse cy='-9' rx='6' ry='9' transform='rotate(72)'/%3E%3Cellipse cy='-9' rx='6' ry='9' transform='rotate(144)'/%3E%3Cellipse cy='-9' rx='6' ry='9' transform='rotate(216)'/%3E%3Cellipse cy='-9' rx='6' ry='9' transform='rotate(288)'/%3E%3Ccircle r='3.5' fill='%23e0a8f7'/%3E%3C/g%3E%3C/defs%3E%3Cg fill='%23c9a3f5' opacity='.34'%3E%3Cuse href='%23f' transform='translate(34 40) rotate(12)'/%3E%3Cuse href='%23f' transform='translate(150 28) scale(.7) rotate(40)'/%3E%3Cuse href='%23f' transform='translate(104 112) scale(1.15) rotate(-20)'/%3E%3Cuse href='%23f' transform='translate(190 150) scale(.85) rotate(25)'/%3E%3Cuse href='%23f' transform='translate(40 176) scale(.75) rotate(-35)'/%3E%3C/g%3E%3C/svg%3E");

  --cursor-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M4 3v18l5-4.5 3.5 7.5 3.5-1.6-3.5-7.4H19z' fill='%23e0a8f7' stroke='%23fdf6ff' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M4 3v18l5-4.5 3.5 7.5 3.5-1.6-3.5-7.4H19z' fill='none' stroke='%234b33b8' stroke-width='.8' stroke-linejoin='round'/%3E%3C/svg%3E");

  --cursor-flower: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg transform='translate(16 16)' fill='%23fdf6ff' stroke='%234b33b8' stroke-width='1.2'%3E%3Cellipse cy='-8' rx='5.5' ry='7.5'/%3E%3Cellipse cy='-8' rx='5.5' ry='7.5' transform='rotate(72)'/%3E%3Cellipse cy='-8' rx='5.5' ry='7.5' transform='rotate(144)'/%3E%3Cellipse cy='-8' rx='5.5' ry='7.5' transform='rotate(216)'/%3E%3Cellipse cy='-8' rx='5.5' ry='7.5' transform='rotate(288)'/%3E%3Ccircle r='3.6' fill='%23e0a8f7'/%3E%3C/g%3E%3C/svg%3E");

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after {
  box-sizing: inherit;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 80px);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
  color: var(--white);
  font-family: 'Silkscreen', monospace;
  background-color: var(--violet);
  background-image: var(--flowers), linear-gradient(170deg, #7a5be6 0%, #6a4fd8 45%, #4b33b8 100%);
  background-attachment: fixed;
  cursor: var(--cursor-arrow) 4 3, auto;
}

a,
button {
  cursor: var(--cursor-flower) 16 16, pointer;
}

:focus-visible {
  outline: 3px solid var(--blush);
  outline-offset: 4px;
  border-radius: 4px;
}

.top-bar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px clamp(18px, 5vw, 64px);
  background: rgba(75, 51, 184, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px solid rgba(253, 246, 255, 0.35);
}

.logo {
  justify-self: start;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: linear-gradient(180deg, #fdf6ff 0%, #e0a8f7 55%, #b57bee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(2px 0 0 #8a5cc8)
    drop-shadow(-2px 0 0 #8a5cc8)
    drop-shadow(0 2px 0 #8a5cc8)
    drop-shadow(0 -2px 0 #8a5cc8)
    drop-shadow(0 0 8px rgba(224, 168, 247, 0.7));
}

.main-nav {
  display: flex;
  gap: clamp(18px, 4.5vw, 60px);
}

.main-nav a {
  padding: 6px 4px;
  color: var(--blush);
  font-size: clamp(15px, 2.1vw, 22px);
  text-decoration: none;
  text-shadow: 2px 2px 0 var(--violet-mid);
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}

.main-nav a:hover {
  color: #fff;
  border-bottom-color: var(--pink-lilac);
}

.nav-item {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  padding-top: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

.dropdown span {
  display: block;
  padding: 8px 14px;
  color: var(--white);
  font-family: 'Pixelify Sans', 'Silkscreen', monospace;
  font-size: clamp(14px, 1.7vw, 16px);
  line-height: 1.3;
  white-space: nowrap;
  background: rgba(75, 51, 184, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(224, 168, 247, 0.55);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(40, 24, 120, 0.35);
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 48px 20px;
}

.intro {
  width: min(100%, 820px);
  text-align: center;
}

.intro h1,
.page-title {
  margin: 0 0 28px;
  color: var(--pink-lilac);
  font-family: 'Bagel Fat One', 'Silkscreen', cursive;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-shadow:
    -3px 0 0 var(--violet-mid),
    3px 0 0 var(--violet-mid),
    0 -3px 0 var(--violet-mid),
    0 3px 0 var(--violet-mid),
    -3px -3px 0 var(--violet-mid),
    3px 3px 0 var(--violet-mid),
    -3px 3px 0 var(--violet-mid),
    3px -3px 0 var(--violet-mid),
    0 7px 0 var(--violet-deep),
    0 0 26px rgba(224, 168, 247, 0.55);
}

.intro p {
  margin: 0;
  color: var(--white);
  font-family: 'Pixelify Sans', 'Silkscreen', monospace;
  font-size: clamp(17px, 2.4vw, 24px);
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  text-shadow: 0 1px 0 rgba(75, 51, 184, 0.7), 0 0 12px rgba(75, 51, 184, 0.6);
}

.intro p strong {
  color: var(--blush);
  font-weight: 600;
}

.intro p a,
.intro p a strong {
  color: var(--lilac);
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(181, 123, 238, 0.6);
}

.intro p a:hover {
  color: var(--pink-lilac);
  text-decoration: underline dotted;
  text-underline-offset: 5px;
}

.page-main {
  place-items: start;
}

.page-content {
  width: min(100%, 820px);
  margin-right: auto;
}

.placeholder-section {
  display: none;
}

.site-footer {
  padding: 28px 16px 32px;
  text-align: center;
  font-size: clamp(13px, 1.9vw, 18px);
  letter-spacing: 0.03em;
  background: rgba(75, 51, 184, 0.55);
  border-top: 3px solid rgba(253, 246, 255, 0.35);
}

.site-footer a {
  color: var(--lilac);
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(181, 123, 238, 0.6);
}

.site-footer a:hover {
  color: var(--pink-lilac);
  text-decoration: underline dotted;
  text-underline-offset: 4px;
}

.sparkle {
  position: fixed;
  z-index: 50;
  color: var(--blush);
  font-size: 16px;
  pointer-events: none;
  animation: sparkle-fade 0.7s ease-out forwards;
}

@keyframes sparkle-fade {
  to {
    transform: translate(var(--drift-x), var(--drift-y)) scale(0.2) rotate(120deg);
    opacity: 0;
  }
}

@media (max-width: 520px) {
  .top-bar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
  }

  .logo {
    justify-self: center;
  }

  .dropdown span {
    width: max-content;
    max-width: 70vw;
    text-align: center;
    white-space: normal;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sparkle {
    display: none;
  }
}

.page-content {
  padding-bottom: 24px;
}

.page-content p,
.page-content h2,
.page-content h3 {
  max-width: 70ch;
}

.page-content p {
  margin: 0 0 18px;
  font-family: 'Pixelify Sans', 'Silkscreen', monospace;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
  text-shadow: 0 1px 0 rgba(75, 51, 184, 0.7), 0 0 12px rgba(75, 51, 184, 0.6);
}

.page-content .last-updated {
  margin-bottom: 28px;
  color: var(--pink-lilac);
}

.page-content h2 {
  margin: 38px 0 12px;
  color: var(--blush);
  font-size: clamp(15px, 2.2vw, 20px);
  line-height: 1.4;
  text-shadow: 2px 2px 0 var(--violet-mid);
}

.page-content h3 {
  margin: 22px 0 8px;
  color: var(--pink-lilac);
  font-family: 'Pixelify Sans', 'Silkscreen', monospace;
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(181, 123, 238, 0.6);
}

.page-content ul {
  max-width: 70ch;
  margin: 0 0 18px;
  padding-left: 1.4em;
  font-family: 'Pixelify Sans', 'Silkscreen', monospace;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
  text-shadow: 0 1px 0 rgba(75, 51, 184, 0.7), 0 0 12px rgba(75, 51, 184, 0.6);
}

.page-content li {
  margin-bottom: 6px;
}

.page-content li::marker {
  color: var(--pink-lilac);
}

.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  z-index: 40;
  width: min(360px, calc(100% - 40px));
  padding: 20px 22px;
  background: rgba(75, 51, 184, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--pink-lilac);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(40, 24, 120, 0.45);
  animation: cookie-rise 0.45s ease-out;
}

.cookie-title {
  margin: 0 0 8px;
  color: var(--blush);
  font-family: 'Pixelify Sans', 'Silkscreen', monospace;
  font-size: 19px;
  font-weight: 600;
}

.cookie-text {
  margin: 0 0 16px;
  font-family: 'Pixelify Sans', 'Silkscreen', monospace;
  font-size: 16px;
  line-height: 1.5;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-button {
  flex: 1;
  padding: 10px 14px;
  font-family: 'Silkscreen', monospace;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--pink-lilac);
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.cookie-accept {
  color: var(--violet-deep);
  background: var(--pink-lilac);
}

.cookie-accept:hover {
  background: var(--blush);
}

.cookie-decline {
  color: var(--blush);
  background: transparent;
}

.cookie-decline:hover {
  background: rgba(224, 168, 247, 0.2);
}

@keyframes cookie-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    animation: none;
  }
}

.inline-link {
  color: var(--lilac);
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(181, 123, 238, 0.6);
}

.inline-link:hover {
  color: var(--pink-lilac);
  text-decoration: underline dotted;
  text-underline-offset: 5px;
}

.select {
  max-width: 380px;
  margin-top: 28px;
}

.select-label {
  margin: 0 0 10px;
  color: var(--blush);
  font-weight: 600;
}

.select-field {
  position: relative;
}

.select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 18px;
  color: var(--white);
  font-family: 'Pixelify Sans', 'Silkscreen', monospace;
  font-size: 18px;
  background: rgba(75, 51, 184, 0.7);
  border: 2px solid var(--pink-lilac);
  border-radius: 999px;
  transition: background 0.15s;
}

.select-button:hover,
.select-button[aria-expanded="true"] {
  background: rgba(75, 51, 184, 0.95);
}

.select-arrow {
  color: var(--pink-lilac);
}

.select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 15;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: rgba(75, 51, 184, 0.96);
  border: 2px solid var(--pink-lilac);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(40, 24, 120, 0.45);
}

.select-menu[hidden] {
  display: none;
}

.select-option {
  width: 100%;
  padding: 9px 14px;
  color: var(--white);
  font-family: 'Pixelify Sans', 'Silkscreen', monospace;
  font-size: 17px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 12px;
}

.select-option:hover,
.select-option.selected {
  color: var(--blush);
  background: rgba(224, 168, 247, 0.22);
}

#gallery {
  margin-top: 36px;
}

#gallery h2 {
  margin-top: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  max-width: none;
}

.gallery-tile {
  aspect-ratio: 4 / 3;
  background: rgba(75, 51, 184, 0.35);
  border: 2px dashed rgba(224, 168, 247, 0.6);
  border-radius: 16px;
}

.page-content.centered {
  margin: 0 auto;
  text-align: center;
}

.page-content.centered p,
.page-content.centered h2 {
  margin-left: auto;
  margin-right: auto;
}

.page-content.centered .select {
  margin-left: auto;
  margin-right: auto;
}

.page-content.centered .select-option {
  text-align: center;
}

.page-content.centered .gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.page-content.centered .gallery-tile {
  flex: 0 0 min(100%, 200px);
}
