/* ============================================================
   VEXA STUDIO — index.css
   enter page styles
   ============================================================ */

/* ── FONTS ── */
@font-face {
  font-family: 'Vanosky';
  src: url('/fonts/Vanosky.woff2') format('woff2'),
       url('/fonts/Vanosky.woff') format('woff'),
       url('/fonts/Vanosky.otf') format('opentype');
}

@font-face {
  font-family: 'Digital Tech';
  src: url('/fonts/Digitaltech.woff2') format('woff2'),
       url('/fonts/Digitaltech.woff') format('woff'),
       url('/fonts/Digitaltech.otf') format('opentype');
}

@font-face {
  font-family: 'Rollbox';
  src: url('/fonts/RollboxMedium.woff2') format('woff2'),
       url('/fonts/RollboxMedium.woff') format('woff'),
       url('/fonts/RollboxMedium.ttf') format('truetype');
}

@font-face {
  font-family: 'New Academy';
  src: url('/fonts/newacademy-webfont.woff2') format('woff2'),
       url('/fonts/newacademy-webfont.woff') format('woff');
}

/* ── ROOT ── */
:root {
  --white: #ffffff;
  --pink: #ff9dce;
  --pink-light: #ffbedd;
  --pink-hot: #fa3b9b;
  --black: #000000;
  --title: 'New Academy', serif;
  --body: 'Rollbox', monospace;
  --heading: 'Vanosky', sans-serif;
  --digit: 'Digital Tech', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── BODY ── */
body {
  min-height: 100vh;
  background: linear-gradient(145deg, #ffffff 0%, #fccadf 55%, #d7a6eb 100%);
  font-family: var(--body);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* ── CURSORS ── */
* { cursor: url('/assets/pinkcursorbig.png'), auto; }
a, button { cursor: url('/assets/pinkpointerbig.png'), pointer; }

/* ══════════════════════════════
   DECORATIVE CORNER BRACKETS
══════════════════════════════ */
.corner {
  position: fixed;
  width: 36px;
  height: 36px;
  z-index: 5;
  pointer-events: none;
}
.corner::before,
.corner::after {
  content: '';
  position: absolute;
  background: var(--black);
}
.corner::before { width: 100%; height: 1.5px; }
.corner::after  { width: 1.5px; height: 100%; }

.corner-tl { top: 18px; left: 18px; }
.corner-tl::before { top: 0; left: 0; }
.corner-tl::after  { top: 0; left: 0; }

.corner-tr { top: 18px; right: 18px; }
.corner-tr::before { top: 0; right: 0; left: auto; }
.corner-tr::after  { top: 0; right: 0; left: auto; }

.corner-bl { bottom: 48px; left: 18px; }
.corner-bl::before { bottom: 0; top: auto; left: 0; }
.corner-bl::after  { bottom: 0; top: auto; left: 0; }

.corner-br { bottom: 48px; right: 18px; }
.corner-br::before { bottom: 0; top: auto; right: 0; left: auto; }
.corner-br::after  { bottom: 0; top: auto; right: 0; left: auto; }

/* ══════════════════════════════
   VERTICAL SIDE TEXT
══════════════════════════════ */
.side-text {
  position: fixed;
  font-family: var(--body);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  color: rgba(0,0,0,0.45);
  writing-mode: vertical-rl;
  z-index: 5;
  pointer-events: none;
  top: 50%;
  transform: translateY(-50%);
}
.side-text-left  { left: 22px; transform: translateY(-50%) rotate(180deg); }
.side-text-right { right: 22px; }

/* ══════════════════════════════
   DECORATIVE STARS (confetti)
══════════════════════════════ */
.deco-star {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  /* color, size, and animation assigned per-element by JS */
}

/* ══════════════════════════════
   MAIN CONTENT AREA
══════════════════════════════ */
.page-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 60px;
  position: relative;
}

/* ── BIG TITLE ── */
.site-title {
  font-family: var(--title);
  font-size: clamp(7rem, 22vw, 14rem);
  font-weight: 900;
  color: var(--black);
  letter-spacing: 0.03em;
  line-height: 0.9;
  text-rendering: optimizeLegibility;
  text-align: center;
  text-shadow:
    4px 4px 0 var(--pink),
    6px 6px 0 rgba(0,0,0,0.08);
  animation: title-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes title-in {
  from { opacity: 0; transform: translateY(-18px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── SUBHEADING TYPEWRITER ── */
.site-subheading {
  font-family: var(--body);
  font-size: clamp(0.65rem, 1.4vw, 0.9rem);
  letter-spacing: 0.22em;
  color: var(--black);
  margin-top: 6px;
  margin-bottom: 40px;
  min-height: 1.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.5s ease 0.4s both;
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--black);
  margin-left: 3px;
  vertical-align: middle;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── STAR SEPARATOR ── */
.star-sep {
  font-size: 0.9rem;
  color: var(--black);
  margin-bottom: 36px;
  animation: fade-in 0.5s ease 0.6s both;
}

/* ══════════════════════════════
   WIN95-STYLE POPUP MODAL
══════════════════════════════ */
.win-modal {
  background: #fff;
  border: 2px solid var(--black);
  box-shadow:
    6px 6px 0 var(--pink),
    8px 8px 0 var(--black);
  width: min(580px, 88vw);
  animation: pop-in 0.45s cubic-bezier(0.34, 1.45, 0.64, 1) 0.3s both;
  position: relative;
  z-index: 10;
  margin-top: 15px;
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.85) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── TITLE BAR ── */
.win-titlebar {
  background: linear-gradient(90deg, var(--pink) 0%, #e8b0d8 50%, #c8a0d8 100%);
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1.5px solid var(--black);
}

.win-titlebar-icon {
  font-size: 0.75rem;
  color: var(--black);
}

.win-titlebar-label {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  color: var(--black);
  flex: 1;
}

.win-titlebar-btns {
  display: flex;
  gap: 3px;
}

.win-ctrl-btn {
  width: 18px;
  height: 16px;
  background: #ffffff;
  border: 1.5px solid var(--black);
  border-radius: 0;
  font-size: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-family: monospace;
  padding: 0;
  cursor: url('/assets/pinkpointerbig.png'), pointer;
  transition: background 0.12s, color 0.12s, transform 0.08s;
}
.win-ctrl-btn:hover  { background: var(--pink-light); color: var(--black); }
.win-ctrl-btn:active { transform: scale(0.88); }

/* ── MODAL BODY ── */
.win-body {
  padding: 36px 44px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}

.win-intro {
  font-family: 'Courier New', monospace;
  font-size: clamp(0.82rem, 2vw, 1rem);
  color: #111;
  letter-spacing: 0.05em;
  line-height: 1.9;
  margin-bottom: 28px;
}

.win-intro strong { font-weight: 900; letter-spacing: 0.08em; }
.win-intro em     { font-style: italic; color: #555; font-size: 0.92em; }

/* ── ENTER BUTTON ── */
.enter-btn {
  display: block;
  width: 100%;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: bold;
  letter-spacing: 0.28em;
  padding: 22px 0 14px;
  border: 2px solid var(--black);
  text-decoration: none;
  text-align: center;
  margin-top: 4px;
  cursor: url('/assets/pinkpointerbig.png'), pointer;
  position: relative;
  box-shadow:
    5px 5px 0 var(--pink),
    7px 7px 0 var(--black);
  transition: box-shadow 0.08s ease, transform 0.08s ease;
  user-select: none;
  -webkit-user-select: none;
}

.enter-btn:hover,
.enter-btn:focus {
  box-shadow:
    2px 2px 0 var(--pink),
    4px 4px 0 var(--black);
  transform: translate(3px, 3px);
  color: var(--white);
  outline: none;
}

.enter-btn:active {
  box-shadow: none;
  transform: translate(7px, 7px);
}

/* ══════════════════════════════
   SLIDE-IN NAV PANEL
══════════════════════════════ */
#nav-panel {
  display: none;
  flex-direction: column;
  gap: 26px;
  width: min(580px, 88vw);
  position: relative;
  z-index: 10;
}

#nav-panel.visible {
  display: flex;
}

@keyframes nav-slide-in {
  from { transform: translateX(-60px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  font-family: var(--heading);
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  font-weight: bold;
  letter-spacing: 0.3em;
  padding: 22px 0 14px;
  border: 2px solid var(--black);
  text-decoration: none;
  text-align: center;
  cursor: url('/assets/pinkpointerbig.png'), pointer;
  box-shadow:
    5px 5px 0 var(--pink),
    7px 7px 0 var(--black);
  transition: box-shadow 0.08s ease, transform 0.08s ease;
  user-select: none;
  -webkit-user-select: none;
  opacity: 0;
}

.nav-btn:hover,
.nav-btn:focus {
  color: var(--white);
  box-shadow:
    2px 2px 0 var(--pink),
    4px 4px 0 var(--black);
  transform: translate(3px, 3px);
  outline: none;
}

.nav-btn:active {
  box-shadow: none;
  transform: translate(7px, 7px);
  color: var(--white);
}

/* ══════════════════════════════
   BOTTOM AREA
══════════════════════════════ */
.bottom-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 25px;
  animation: fade-in 0.5s ease 0.9s both;
}

.best-viewed {
  font-family: var(--body);
  font-size: 0.62rem;
  color: rgba(0,0,0,0.6);
  letter-spacing: 0.2em;
}

.visitor-label {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.22em;
  color: rgba(0,0,0,0.9);
  text-transform: uppercase;
  margin-top: 70px;
}

.visitor-counter {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.visitor-counter .digit {
  font-family: var(--digit);
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--black);
  background: #fff;
  border: 2px solid var(--black);
  box-shadow:
    3px 3px 0 var(--pink),
    5px 5px 0 var(--black);
  width: 1.6rem;
  height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}

/* NAV RESET */
.nav-reset-wrap {
  margin-top: 8px;
}

.nav-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  font-family: var(--heading);
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  font-weight: bold;
  letter-spacing: 0.3em;
  padding: 22px 0 14px;
  border: 2px solid var(--black);
  text-decoration: none;
  text-align: center;
  cursor: url('/assets/pinkpointerbig.png'), pointer;
  box-shadow:
    5px 5px 0 var(--pink),
    7px 7px 0 var(--black);
  transition: box-shadow 0.08s ease, transform 0.08s ease;
  user-select: none;
  -webkit-user-select: none;
}

.nav-reset:hover,
.nav-reset:focus {
  color: var(--pink);
  box-shadow:
    2px 2px 0 var(--pink),
    4px 4px 0 var(--black);
  transform: translate(3px, 3px);
  outline: none;
}

.nav-reset:active {
  box-shadow: none;
  transform: translate(7px, 7px);
}

/* FOOTER */
footer {
  margin-top: auto;
  padding: 0;
}

.footer-inner {
  max-width: 100%;
  padding: 0 40px;
}

.footer-divider {
  height: 1px;
  background: #c0c0c0;
  margin-bottom: 22px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 28px;
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--body);
  font-size: 0.78rem;
  color: #444444;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.footer-icon {
  width: 14px;
  height: 14px;
  color: #888;
  flex-shrink: 0;
  position: relative;
  top: 1px;
}

.footer-copy {
  font-family: var(--body);
  font-size: 0.72rem;
  color: #888888;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.footer-link {
  text-decoration: none;
  color: #444444;
  transition: color 0.18s ease;
}

.footer-link:hover { color: #ff69b4; }
.footer-link:hover .footer-icon { color: #ff69b4; }

/* footer mobile */
@media (max-width: 950px) {
  .footer-inner {
    padding: 0 20px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-bottom: 32px;
  }

  .footer-info {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    width: 100%;
  }

  .footer-item {
    font-size: 0.62rem;
    white-space: normal;
    line-height: 1.5;
    gap: 6px;
  }

  .footer-link {
    white-space: normal;
    font-size: 0.62rem;
  }

  .footer-icon {
    flex-shrink: 0;
    position: relative;
    top: 1px;
  }

  .footer-copy {
    font-size: 0.58rem;
    white-space: normal;
    color: #aaa;
    text-align: center;
  }

  .footer-divider {
    margin-bottom: 28px;
    margin-top: 12px;
  }
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 600px) {
  .page-center { padding: 16px 20px; }
  .win-body    { padding: 24px 22px 22px; }
  .side-text   { display: none; }
  .corner      { display: none; }
}