/* ════════════════════════════════════════════════════════
   fun.css  —  Clean Under Construction / Experiments Page
   Theme System: var(--bg), var(--bg-alt), var(--text), var(--border), var(--blue), var(--yellow)
════════════════════════════════════════════════════════ */

body.fun-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

/* ════════════════════════════════════════════════════
   MAIN WRAPPER & CENTERING
════════════════════════════════════════════════════ */
.fun-main-wrapper {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 80px;
  box-sizing: border-box;
  width: 100%;
}

.fun-main-wrapper .container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* ════════════════════════════════════════════════════
   UNDER CONSTRUCTION BRUTALIST CARD
════════════════════════════════════════════════════ */
.unc-card {
  width: 100%;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

/* HAZARD TOP BAR */
.unc-hazard-bar {
  background: var(--yellow, #ffd600);
  color: #000000;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border);
  position: relative;
  overflow: hidden;
}

.unc-hazard-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(0, 0, 0, 0.08) 12px,
    rgba(0, 0, 0, 0.08) 24px
  );
  pointer-events: none;
}

.unc-badge {
  font-family: 'BBHBartle', monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.unc-badge-sub {
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.75;
  position: relative;
  z-index: 1;
}

/* CARD BODY */
.unc-card-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 42px 38px;
  align-items: center;
  box-sizing: border-box;
}

/* MASCOT */
.unc-mascot-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.unc-mascot-img {
  width: 100%;
  max-width: 190px;
  height: auto;
  display: block;
  animation: mascotFloat 3.5s ease-in-out infinite;
  transform-origin: center bottom;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.15));
}

@keyframes mascotFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1.5deg); }
}

/* CONTENT */
.unc-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* TITLE CONTAINER WITH FIXED STABLE HEIGHT */
.unc-title-container {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.unc-title {
  font-family: 'Boldonse', 'SourceHanSansSC', sans-serif;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
  text-align: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, filter 0.35s ease;
  will-change: transform, opacity;
}

.unc-title.is-zh {
  font-family: 'SourceHanSansSC', sans-serif !important;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.unc-title.unc-slide-active {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}

.unc-title.unc-slide-out {
  transform: translateY(-16px);
  opacity: 0;
  filter: blur(4px);
}

.unc-title.unc-slide-prep {
  transform: translateY(16px);
  opacity: 0;
  filter: blur(4px);
  transition: none !important;
}

.unc-title.unc-slide-in {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}

.unc-desc {
  font-size: 0.95rem;
  line-height: 1.68;
  color: var(--text-muted);
  margin: 0;
  max-width: 500px;
}

/* ACTION BUTTONS */
.unc-action-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.unc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  font-family: 'BBHBartle', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 0px;
  transition: all 0.18s ease;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.unc-btn.primary-btn {
  background: var(--blue, #007BFF);
  color: #ffffff;
  border: 1.5px solid var(--blue, #007BFF);
}

.unc-btn.primary-btn:hover {
  background: var(--yellow, #ffd600);
  color: #000000;
  border-color: var(--yellow, #ffd600);
}

.unc-btn.secondary-btn {
  background: var(--bg);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.unc-btn.secondary-btn:hover {
  border-color: var(--blue, #007BFF);
  color: var(--blue, #007BFF);
}

/* ════════════════════════════════════════════════════
   RESPONSIVE DESIGN (Rock-Solid on Mobile)
════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .fun-main-wrapper {
    padding: 24px 14px 60px;
  }
  .unc-card-body {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 20px;
    text-align: center;
  }
  .unc-mascot-wrap {
    margin-bottom: 4px;
  }
  .unc-mascot-img {
    max-width: 120px;
  }
  .unc-content-wrap {
    align-items: center;
    gap: 14px;
  }
  .unc-title-container {
    min-height: 72px;
    justify-content: center;
  }
  .unc-title {
    font-size: clamp(1.2rem, 5.2vw, 1.65rem);
    text-align: center;
    line-height: 1.35;
  }
  .unc-desc {
    font-size: 0.88rem;
    line-height: 1.6;
  }
  .unc-action-row {
    width: 100%;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
  }
  .unc-btn {
    width: 100%;
    padding: 13px 16px;
  }
}
