:root {
  --color-ice-white: #f0f8ff;
  --color-ice-blue-light: #e1f5fe;
  --color-ice-blue-mid: #81d4fa;
  --color-ice-blue-dark: #0277bd;
  --color-deep-ocean: #002147;
  --color-text-body: #1a3c5a;
  --color-text-head: #00152e;
  --color-accent: #00bcd4;
  --radius-soft: 8px;
  --font-heading: 'Impact', 'Haettenschweiler', 'Arial Narrow Bold', sans-serif;
  --font-body: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --spacing-base: 10px;
  --shadow-frosted: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: linear-gradient(to bottom, var(--color-ice-white), var(--color-ice-blue-light));
  color: var(--color-text-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Headings: keep the condensed, icy vibe without forcing white text everywhere */
h1, h2, h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-head);
}

/* 3D Typography helper (use on headings that need the "logo-like" effect) */
.text-3d {
  text-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.75),
    2px 2px 0 rgba(129, 212, 250, 0.9),
    3px 3px 0 rgba(0, 33, 71, 0.85),
    4px 4px 6px rgba(0, 0, 0, 0.22);
}

.text-volumetric {
  text-shadow:
    1px 1px 0 rgba(255, 255, 255, 0.78),
    2px 2px 0 rgba(129, 212, 250, 0.92),
    3px 3px 0 rgba(2, 119, 189, 0.85),
    4px 4px 0 rgba(0, 33, 71, 0.9),
    6px 6px 10px rgba(0, 0, 0, 0.25);
}

/* Frosted glass primitives (custom classes used in HTML) */
.glass-panel {
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(2, 119, 189, 0.18);
  box-shadow: 0 18px 48px rgba(0, 33, 71, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}


/* Darker glass (use when text is light on light backgrounds) */
.glass-panel--deep{
  background: rgba(0, 33, 71, 0.50);
  border: 1px solid rgba(129, 212, 250, 0.22);
  box-shadow: 0 22px 60px rgba(0, 12, 30, 0.32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Responsive media safety */
img{max-width:100%;height:auto;display:block;}

/* Species preview frame (root.html trophy row) */
.species-frame{
  position: relative;
  border-radius: 14px;
}
.species-frame::before,
.species-frame::after{
  content:"";
  position:absolute;
  top: 12px;
  bottom: 12px;
  width: 70px;
  background: rgba(129, 212, 250, 0.22);
  border: 1px solid rgba(2, 119, 189, 0.16);
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(0, 33, 71, 0.10);
  pointer-events:none;
  z-index:0;
}
.species-frame img{position:relative;z-index:1;}
.species-frame::before{left: -14px;}
.species-frame::after{right: -14px;}

/* Mobile menu scrim */
.nav-scrim{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  top: var(--hdr-h, 76px);
  background: rgba(0, 33, 71, 0.25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 800;
}
body.nav-open{overflow:hidden;}

.glass-card {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(129, 212, 250, 0.18);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Primary CTA button (custom class used in HTML) */
.btn-frost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(180deg, rgba(0, 188, 212, 0.98), rgba(2, 119, 189, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 14px 30px rgba(0, 33, 71, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-frost:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 18px 38px rgba(0, 33, 71, 0.28);
}

.btn-frost:active {
  transform: translateY(0);
}

.btn-frost:focus-visible {
  outline: 3px solid rgba(0, 188, 212, 0.45);
  outline-offset: 3px;
}

/* Rarity badges (catch-collection.html) */
.rarity-badge-common {
  background: rgba(148, 163, 184, 0.22);
  color: rgba(226, 232, 240, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.rarity-badge-rare {
  background: rgba(34, 211, 238, 0.18);
  color: rgba(207, 250, 254, 0.98);
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.rarity-badge-epic {
  background: rgba(168, 85, 247, 0.16);
  color: rgba(243, 232, 255, 0.98);
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.rarity-badge-legendary {
  background: rgba(251, 191, 36, 0.16);
  color: rgba(254, 243, 199, 0.98);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

/* Header - Frosted Glass */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-frosted);
  padding: calc(var(--spacing-base) * 1.5) 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-base);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: var(--spacing-base);
  color: var(--color-deep-ocean);
}

.brand-text {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.5rem;
  margin: 0;
  color: var(--color-deep-ocean);
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.8), 3px 3px 0 var(--color-ice-blue-mid);
}

.main-nav {
  display: none;
}

.main-nav.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 1400;
  background: rgba(255, 255, 255, 0.95);
  padding: 18px 14px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  text-align: center;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: calc(var(--spacing-base) * 3);
  margin: 0;
  padding: 0;
}

.main-nav.is-open .nav-list {
  flex-direction: column;
  gap: 14px;
}

.nav-item {
  text-decoration: none;
  color: var(--color-deep-ocean);
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-item:hover {
  color: var(--color-accent);
  text-shadow: 0 0 10px rgba(0, 188, 212, 0.35);
}

.nav-item.is-active {
  color: var(--color-ice-blue-dark);
  text-shadow: 0 0 10px rgba(129, 212, 250, 0.55);
}

.nav-toggle {
  background: transparent;
  border: none;
  color: var(--color-deep-ocean);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1500;
}

.icon-menu {
  width: 28px;
  height: 28px;
}

/* Footer */
.site-footer {
  background-color: var(--color-deep-ocean);
  background-image: linear-gradient(180deg, var(--color-deep-ocean) 0%, #001025 100%);
  color: var(--color-ice-white);
  padding: calc(var(--spacing-base) * 5) 0 calc(var(--spacing-base) * 2);
  margin-top: calc(var(--spacing-base) * 5);
  border-top: 4px solid var(--color-ice-blue-mid);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 calc(var(--spacing-base) * 2);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing-base) * 4);
  justify-content: space-between;
  text-align: center;
}

.footer-brand, .footer-contact, .footer-legal {
  flex: 1 1 250px;
  margin-bottom: calc(var(--spacing-base) * 2);
}

.footer-logo-text {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-ice-white);
  text-shadow:
    1px 1px 0 var(--color-ice-blue-dark),
    2px 2px 0 var(--color-ice-blue-dark),
    3px 3px 0 var(--color-deep-ocean),
    4px 4px 5px rgba(0, 0, 0, 0.3);
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: var(--spacing-base);
}

.footer-tagline {
  font-style: italic;
  font-family: var(--font-body);
  opacity: 0.9;
  font-size: 1.1rem;
}

.footer-heading {
  font-size: 1.25rem;
  margin-bottom: calc(var(--spacing-base) * 1.5);
  color: var(--color-ice-blue-mid);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-block;
  padding-bottom: 5px;
}

.contact-details p {
  margin: var(--spacing-base) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-ice-blue-mid);
}

.contact-details a {
  color: var(--color-ice-white);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-details a:hover {
  color: var(--color-accent);
}

.legal-links {
  list-style: none;
  padding: 0;
}

.legal-links li {
  margin-bottom: var(--spacing-base);
}

.legal-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.legal-links a:hover {
  color: var(--color-ice-white);
}

.footer-bottom {
  margin-top: calc(var(--spacing-base) * 4);
  padding-top: calc(var(--spacing-base) * 2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Snow Particles */
.snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -10px;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: fall linear infinite;
}

/* Support for the extra snow created by assets/js/site.js (if present) */
.snow-particle {
  position: absolute;
  top: -10px;
  background: white;
  border-radius: 50%;
  opacity: 0.6;
  animation: fall linear infinite;
}

@keyframes fall {
  to {
    transform: translateY(100vh);
  }
}

@media (min-width: 768px) {
  .main-nav {
    display: block;
    position: static;
  }
  .main-nav.is-open {
    position: static;
    background: transparent;
    padding: 0;
    box-shadow: none;
    text-align: left;
  }
  .main-nav.is-open .nav-list {
    flex-direction: row;
    gap: calc(var(--spacing-base) * 3);
  }
  .nav-toggle {
    display: none;
  }
  .footer-row {
    text-align: left;
  }
  .contact-details p {
    justify-content: flex-start;
  }
}

/* footer extras */
.footer__extras{margin-top:16px;}
.footer__extrasInner{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start;justify-content:space-between;}
.footer__social{display:flex;gap:10px;align-items:center;}
.footer-social{display:inline-flex;gap:8px;align-items:center;text-decoration:none;}
.footer-social__icon{display:block;}
.footer__poemWrap{max-width:520px;}
.footer-poem{opacity:0.9;font-size:0.95em;line-height:1.35;}

/* --- injected by logo step --- */
.brand{display:inline-flex;align-items:center;gap:10px}
.brand-logo{width:28px;height:28px;display:inline-block;flex:0 0 auto}
.brand-logo *{vector-effect:non-scaling-stroke}
/* --- /injected by logo step --- */


/* details open state on deep glass */
details.glass-panel--deep[open]{background: rgba(0, 33, 71, 0.62);}
