/* ═══════════════════════════════════════════════════════
   MISHKA & VIAAN — shared design system
   One source of truth for palette, glass surfaces, jelly
   interactions and navigation across every page.
   ═══════════════════════════════════════════════════════ */

:root {
  --sky:       #87CEEB;
  --sky-mid:   #6DBBDC;
  --rose:      #F08FAA;
  --rose-dark: #D96E8C;
  --white:     #FFFFFF;
  --card-dim:  #C8D8E2;
  --ink:       #1A1A2E;
  --ink-soft:  rgba(26,26,46,0.55);
  --green:     #4CD97B;
  --green-dk:  #2EA855;
  --red:       #FF5C5C;
  --red-dk:    #CC3030;
  --yellow:    #FFC93C;
  --orange:    #FF8A3C;

  --glass-bg: linear-gradient(160deg,
      rgba(255,255,255,0.94) 0%,
      rgba(255,255,255,0.74) 45%,
      rgba(255,255,255,0.86) 100%);
  --glass-border: 1px solid rgba(255,255,255,0.85);
  --glass-shadow:
      0 6px 0 rgba(0,0,0,0.08),
      0 10px 24px rgba(0,0,0,0.13),
      inset 0 1px 1px rgba(255,255,255,0.95);
  --spring: cubic-bezier(.34,1.7,.5,1);
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  margin: 0; min-height: 100vh;
  font-family: 'Nunito', sans-serif;
  color: var(--ink);
  background: linear-gradient(170deg, var(--sky) 0%, var(--sky-mid) 45%, var(--rose) 100%);
  background-attachment: fixed;
}

.display, h1, h2 { font-family: 'Betania Patmos', cursive; font-weight: 400; }

/* ══════ LIQUID GLASS SURFACE ══════
   Frosted panel: real backdrop blur lets the background bleed through,
   a bright inner top edge fakes the specular highlight. */
.glass {
  position: relative; overflow: hidden;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 22px;
}

/* travelling specular sheen */
.glass.sheen { isolation: isolate; }
.glass.sheen::before {
  content: ''; position: absolute; top: 0; left: -60%;
  width: 45%; height: 100%; pointer-events: none; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent);
  transform: skewX(-18deg);
  animation: sheen 5.5s ease-in-out infinite;
}
@keyframes sheen {
  0%, 62% { left: -60%; }
  88%,100%{ left: 115%; }
}

/* ══════ JELLY PRESS ══════ */
.pressable {
  cursor: pointer;
  transition: transform .16s var(--spring), box-shadow .16s ease;
  will-change: transform;
}
.pressable:active {
  transform: translateY(6px) scale(.96,.89);
  box-shadow:
      0 0 0 rgba(0,0,0,0.08),
      0 3px 8px rgba(0,0,0,0.14),
      inset 0 3px 10px rgba(0,0,0,0.10);
}
.jelly { animation: jellyPop .52s cubic-bezier(.22,1.4,.36,1); }
@keyframes jellyPop {
  0%  { transform: scale(.94,.86) translateY(5px); }
  32% { transform: scale(1.06,1.09) translateY(-3px); }
  55% { transform: scale(.98,.965) translateY(1px); }
  78% { transform: scale(1.02,1.015); }
  100%{ transform: scale(1,1); }
}

/* ══════ NAV ══════ */
.site-nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px clamp(14px,4vw,32px);
  background: rgba(255,255,255,0.55);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.6);
}
.brand {
  font-family: 'Betania Patmos', cursive; font-size: 20px;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand .m { color: var(--rose-dark); }
.brand .v { color: var(--sky-mid); }

/* ══════ SHARED BUTTON ══════ */
.btn {
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 16px;
  padding: 14px 28px; border: none; border-radius: 999px;
  color: var(--ink); background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  backdrop-filter: blur(12px) saturate(170%);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.btn.primary {
  background: linear-gradient(160deg, var(--yellow), var(--orange));
  color: #3A2000; border-color: rgba(255,255,255,.6);
  box-shadow: 0 6px 0 #D9701F, 0 10px 24px rgba(255,138,60,.35),
              inset 0 1px 1px rgba(255,255,255,.8);
}

@media (prefers-reduced-motion: reduce) {
  .glass.sheen::before { animation: none; }
  .jelly { animation: none; }
  .pressable { transition: none; }
}


/* ══════ AVATAR PICKER ══════ */
.av-block{ width:100%; max-width:420px; }
.av-label{ font-size:11.5px; font-weight:800; letter-spacing:1px; text-transform:uppercase;
  color:var(--ink-soft); text-align:center; margin-bottom:8px; }
.av-row{ display:flex; gap:8px; justify-content:center; flex-wrap:wrap; }
.av-opt{ border:2px solid transparent; background:rgba(255,255,255,.62);
  border-radius:16px; padding:6px 5px 5px; cursor:pointer; width:68px;
  display:flex; flex-direction:column; align-items:center; gap:2px;
  transition:transform .16s var(--spring), border-color .2s, background .2s; }
.av-opt img{ width:46px; height:46px; object-fit:contain; }
.av-opt span{ font-size:9.5px; font-weight:800; color:var(--ink-soft);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.av-opt.sel{ border-color:var(--green); background:#fff;
  box-shadow:0 4px 0 var(--green-dk), 0 6px 14px rgba(76,217,123,.28); }
.av-opt.sel span{ color:var(--ink); }
.av-opt:active{ transform:translateY(4px) scale(.96); }


/* The tab strip holds every page, so on a phone most of it sits off-screen.
   A fading edge makes it obvious there is more to swipe to, and the scrollbar
   is nudged into view on devices that show one. */
.site-nav{ position:relative; }
@media (min-width: 760px){
}
