/* =========================================================
   BlueEye SMP — style3.css
   Mobile-first, accessible, no external dependencies.
   Honors prefers-reduced-motion.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --blue-deep:    #0a1a3a;
  --blue-mid:     #0f2862;
  --blue-soft:    #1a3a7a;
  --cyan:         #4ad9ff;
  --cyan-bright:  #7ce8ff;
  --cyan-pale:    #cff7ff;
  --gold:         #ffd166;
  --text:         #e8f4ff;
  --text-muted:   #98b8d8;
  --text-dim:     #6c8ab0;
  --bg:           #06122a;
  --bg-card:      #11254a;
  --border:       rgba(122, 200, 255, 0.18);
  --border-strong:rgba(122, 200, 255, 0.45);
  --shadow-glow:  0 0 24px rgba(74, 217, 255, 0.35);
  --radius:       14px;
  --radius-sm:    8px;
  --container:    1140px;
  --font-display: 'Luckiest Guy', 'Comic Sans MS', system-ui, sans-serif;
  --font-body:    'Nunito', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --t-fast:       150ms ease;
  --t-med:        280ms ease;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a {
  color: var(--cyan-bright);
  text-decoration: none;
  transition: color var(--t-fast), text-shadow var(--t-fast);
}
a:hover, a:focus-visible {
  color: var(--cyan-pale);
  text-shadow: 0 0 8px rgba(122, 232, 255, 0.6);
}

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

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cyan);
  color: var(--blue-deep);
  padding: 10px 16px;
  font-weight: 800;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Section base ---------- */
.section {
  padding: 72px 0;
  position: relative;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: 0.02em;
  text-align: center;
  margin: 0 0 10px;
  color: var(--cyan-bright);
  text-shadow: 0 0 14px rgba(74, 217, 255, 0.35);
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 36px;
  font-size: 1.05rem;
}
.lede {
  max-width: 760px;
  margin: 0 auto 14px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text);
}
.lede strong { color: var(--cyan-bright); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 18, 42, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.nav-brand:hover, .nav-brand:focus-visible { color: var(--cyan-bright); text-shadow: none; }
.brand-icon {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 8px rgba(74, 217, 255, 0.5));
}
.brand-accent { color: var(--cyan-bright); }

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-menu a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--text);
}
.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: rgba(74, 217, 255, 0.12);
  color: var(--cyan-bright);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  width: 44px;
  height: 44px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cyan-bright);
  margin: 4px auto;
  transition: transform var(--t-med), opacity var(--t-fast);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(6, 18, 42, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-med);
  }
  .nav-menu.is-open {
    max-height: 420px;
  }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    display: block;
    padding: 14px 20px;
    border-radius: 0;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 90vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 100px;
  background:
    radial-gradient(ellipse at top, var(--blue-soft) 0%, var(--blue-mid) 35%, var(--blue-deep) 70%, var(--bg) 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.float-block {
  position: absolute;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue-mid) 100%);
  border: 2px solid var(--cyan-bright);
  border-radius: 4px;
  opacity: 0.35;
  box-shadow: 0 0 14px rgba(74, 217, 255, 0.35);
  animation: floatUp 14s linear infinite;
}
.fb1  { left:  6%; top: 70%; animation-duration: 16s; animation-delay: -1s;  width: 18px; height: 18px; }
.fb2  { left: 14%; top: 80%; animation-duration: 19s; animation-delay: -4s;  width: 30px; height: 30px; }
.fb3  { left: 22%; top: 75%; animation-duration: 13s; animation-delay: -7s;  width: 22px; height: 22px; }
.fb4  { left: 32%; top: 90%; animation-duration: 22s; animation-delay: -2s;  width: 16px; height: 16px; }
.fb5  { left: 42%; top: 85%; animation-duration: 17s; animation-delay: -9s;  width: 28px; height: 28px; }
.fb6  { left: 52%; top: 78%; animation-duration: 15s; animation-delay: -3s;  width: 20px; height: 20px; }
.fb7  { left: 62%; top: 88%; animation-duration: 20s; animation-delay: -6s;  width: 24px; height: 24px; }
.fb8  { left: 72%; top: 82%; animation-duration: 18s; animation-delay: -11s; width: 18px; height: 18px; }
.fb9  { left: 80%; top: 90%; animation-duration: 16s; animation-delay: -8s;  width: 26px; height: 26px; }
.fb10 { left: 88%; top: 76%; animation-duration: 21s; animation-delay: -5s;  width: 14px; height: 14px; }
.fb11 { left: 94%; top: 88%; animation-duration: 14s; animation-delay: -10s; width: 22px; height: 22px; }
.fb12 { left: 48%; top: 92%; animation-duration: 23s; animation-delay: -12s; width: 18px; height: 18px; }

@keyframes floatUp {
  0%   { transform: translateY(0)    rotate(0deg);   opacity: 0; }
  10%  { opacity: 0.45; }
  90%  { opacity: 0.45; }
  100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  width: 100%;
}
.hero-mascot {
  width: 110px;
  height: 110px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 24px rgba(74, 217, 255, 0.55));
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.85rem;
  color: var(--cyan-bright);
  margin: 0 0 6px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  margin: 0 0 4px;
  color: var(--text);
  text-shadow:
    0 0 20px rgba(74, 217, 255, 0.6),
    0 0 40px rgba(74, 217, 255, 0.3);
  letter-spacing: 0.02em;
  line-height: 1.05;
}
.hero-tagline {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--cyan-bright);
  margin: 0 0 18px;
  letter-spacing: 0.06em;
  font-weight: 800;
  text-transform: uppercase;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 auto 30px;
  max-width: 560px;
}

.ip-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 18, 42, 0.7);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin: 0 auto 22px;
  max-width: 480px;
  box-shadow: var(--shadow-glow);
}
.ip-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ip-value {
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  color: var(--cyan-pale);
  font-weight: 800;
  flex: 1;
  text-align: center;
  user-select: all;
  overflow-wrap: anywhere;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cyan);
  color: var(--blue-deep);
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-weight: 800;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.copy-btn:hover { background: var(--cyan-bright); transform: translateY(-1px); }
.copy-btn:active { transform: translateY(0); }
.copy-btn.is-copied {
  background: #b8ffce;
  box-shadow: 0 0 14px rgba(184, 255, 206, 0.6);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-bright) 100%);
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  padding: 16px 32px;
  border-radius: var(--radius);
  border: 3px solid var(--cyan-pale);
  box-shadow:
    0 0 0 4px rgba(74, 217, 255, 0.18),
    0 0 30px rgba(74, 217, 255, 0.5);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.cta-button:hover, .cta-button:focus-visible {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 0 0 6px rgba(74, 217, 255, 0.25),
    0 0 40px rgba(74, 217, 255, 0.75);
}
.cta-arrow { width: 22px; height: 22px; }

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--blue-mid);
  color: var(--cyan-pale);
  border: 2px solid var(--cyan-bright);
  border-radius: var(--radius);
  padding: 12px 22px;
  font-weight: 800;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med), transform var(--t-med);
  z-index: 100;
  max-width: 90vw;
  text-align: center;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.is-error {
  border-color: #ff8a8a;
  color: #ffd0d0;
}

@media (max-width: 480px) {
  .ip-box { flex-wrap: wrap; justify-content: center; }
  .ip-value { font-size: 1rem; flex-basis: 100%; order: 2; margin: 4px 0; }
  .ip-label { order: 1; }
  .copy-btn { order: 3; }
}

/* ---------- About ---------- */
.about {
  background: linear-gradient(180deg, var(--bg) 0%, var(--blue-deep) 100%);
}

/* ---------- Features ---------- */
.features {
  background: var(--blue-deep);
}
.features-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  text-align: center;
  transition: transform var(--t-med), border-color var(--t-fast), box-shadow var(--t-med);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 24px rgba(74, 217, 255, 0.2);
}
.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 8px rgba(74, 217, 255, 0.4));
}
.feature-card h3 {
  margin: 0 0 8px;
  color: var(--cyan-bright);
  font-size: 1.2rem;
  font-weight: 800;
}
.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ---------- How to Join ---------- */
.how-to-join {
  background: linear-gradient(180deg, var(--blue-deep) 0%, var(--bg) 100%);
}
.steps {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  counter-reset: step;
}
.step {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  text-align: center;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 12px;
  box-shadow: 0 0 14px rgba(74, 217, 255, 0.5);
}
.step h3 {
  margin: 0 0 6px;
  color: var(--cyan-bright);
  font-size: 1.15rem;
}
.step p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }
.ip-inline {
  font-family: 'Courier New', ui-monospace, monospace;
  background: rgba(74, 217, 255, 0.12);
  color: var(--cyan-pale);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 800;
}

/* Isometric screenshot placeholder */
.screenshot {
  margin: 0 auto;
  max-width: 560px;
  text-align: center;
}
.iso-scene {
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 22px;
  padding: 30px 20px;
  background:
    radial-gradient(ellipse at center bottom, rgba(74, 217, 255, 0.18), transparent 70%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4));
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.iso-block {
  position: relative;
  width: 70px;
  height: 70px;
  transform: rotate(-30deg) skewX(30deg);
  margin-bottom: 0;
}
.iso-block span {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(0, 0, 0, 0.4);
}
.iso-block span:nth-child(1) {
  transform: translateZ(35px);
  background: var(--blue-soft);
}
.iso-block span:nth-child(2) {
  background: var(--blue-mid);
  transform: rotateY(-90deg) translateX(-35px);
  transform-origin: left;
  width: 70px;
  left: 0;
}
.iso-block span:nth-child(3) {
  background: var(--blue-deep);
  transform: rotateY(90deg) translateX(35px);
  transform-origin: right;
  width: 70px;
  right: 0;
  left: auto;
}
.iso-block span:nth-child(4) {
  background: var(--cyan);
  transform: rotateX(90deg) translateY(35px);
  transform-origin: bottom;
  height: 70px;
  top: auto;
  bottom: 0;
}
.iso-block span:nth-child(5) {
  background: var(--cyan-bright);
  transform: rotateX(-90deg) translateY(-35px);
  transform-origin: top;
  height: 70px;
}
.iso-dirt  span:nth-child(1) { background: #8b5a2b; }
.iso-grass span:nth-child(1) { background: #4ea8a4a; }
.iso-stone span:nth-child(1) { background: #6e6e6e; }

.screenshot figcaption {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-style: italic;
}

/* ---------- Rules ---------- */
.rules {
  background: var(--bg);
}
.rules-list {
  list-style: none;
  margin: 0 auto 36px;
  padding: 0;
  max-width: 760px;
  display: grid;
  gap: 12px;
}
.rules-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.rules-list li:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
}
.rule-num {
  flex: 0 0 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan);
  color: var(--blue-deep);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.rules-list strong { color: var(--cyan-bright); }

.parents {
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(74, 217, 255, 0.12), rgba(74, 217, 255, 0.04));
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.parents h3 {
  margin: 0 0 10px;
  color: var(--cyan-bright);
  font-size: 1.2rem;
}
.parents p {
  margin: 0 0 8px;
  color: var(--text);
}
.parents a { font-weight: 800; text-decoration: underline; }

/* ---------- Community ---------- */
.community {
  background: linear-gradient(180deg, var(--bg) 0%, var(--blue-deep) 100%);
}
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
}
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  color: var(--text);
  transition: transform var(--t-med), border-color var(--t-fast), box-shadow var(--t-med);
}
.social-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-bright);
  box-shadow: 0 0 22px rgba(74, 217, 255, 0.35);
  color: var(--cyan-pale);
  text-shadow: none;
}
.social-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}
.social-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--cyan-bright);
  margin-bottom: 4px;
}
.social-handle {
  font-size: 0.92rem;
  color: var(--text-muted);
  word-break: break-all;
}

/* ---------- Stats ---------- */
.stats-bar {
  background: var(--blue-mid);
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  padding: 36px 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--cyan-bright);
  text-shadow: 0 0 12px rgba(74, 217, 255, 0.5);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 800;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
}
.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cyan-bright);
  letter-spacing: 0.04em;
}
.footer-brand span {
  color: var(--text-muted);
  font-size: 0.92rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
}
.footer-nav a {
  color: var(--text);
  font-weight: 700;
}
.copyright {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin: 8px 0 0;
}
.disclaimer {
  color: var(--text-dim);
  font-size: 0.8rem;
  max-width: 540px;
  margin: 4px 0 0;
  font-style: italic;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .float-block { display: none; }
  .hero-mascot { animation: none; }
}

/* ---------- High-contrast support ---------- */
@media (prefers-contrast: more) {
  :root {
    --border: rgba(122, 200, 255, 0.55);
    --border-strong: rgba(122, 200, 255, 0.85);
    --text-muted: #c0d4ee;
  }
}
