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

:root {
  /* ---- Brand palette: Y2K Sticker Chaos — dark purple/black canvas, orange-to-magenta graffiti gradient, comic stickers ---- */
  --black:     #14071F;
  --bg-dark:   #1A0E2E;
  --bg-dark2:  #120820;

  --orange:      #FF9142;
  --orange-deep: #F4722E;
  --purple:      #8B3FE8;
  --pink:        #FF4FA8;
  --magenta:     #C43FD9;

  --text:  #FFF3E8;
  --muted: #C9A8E8;
  --dim:   #7E5EA8;

  --cream: #FFF8EE;
  --ink:   #1A0E2E;

  --grad-sticker: linear-gradient(135deg, #FF9142 0%, #F4722E 35%, #C43FD9 75%, #8B3FE8 100%);
  --font-display: 'Prompt', sans-serif;
  --container-sm: 420px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Prompt', sans-serif;
  background: var(--bg-dark);
  background-image:
    radial-gradient(circle, rgba(255,145,66,0.12) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  color: var(--text);
  min-height: 100svh;
  overflow-x: hidden;
  position: relative;
  padding-bottom: 106px;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; }

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 40% at 15% 8%, rgba(196,63,217,0.28) 0%, transparent 60%),
    radial-gradient(55% 45% at 90% 85%, rgba(255,145,66,0.22) 0%, transparent 60%);
}

/* ===== LANGUAGE TOGGLE (sticker style) ===== */
.lang-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2px;
  transform: rotate(8deg);
  box-shadow: 3px 3px 0 var(--ink);
}
.lang-btn svg { width: 100%; height: 100%; border-radius: 50%; }

/* ===== HERO LOGO ===== */
.hero {
  display: flex;
  justify-content: center;
  padding: 2rem 1.25rem 0.5rem;
  position: relative;
  z-index: 2;
}
.hero-logo {
  width: min(74vw, 300px);
  height: auto;
  transform: rotate(-4deg);
  filter: drop-shadow(4px 5px 0 rgba(20,7,31,0.5));
}

/* ===== STICKER STACK (login form) ===== */
.sticker-stack {
  max-width: var(--container-sm);
  margin: 0.5rem auto 0;
  padding: 0 1.25rem;
  position: relative;
  z-index: 2;
}

.sticker {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.1rem;
  position: relative;
}
.sticker.tilt-l { transform: rotate(-1.6deg); }
.sticker.tilt-r { transform: rotate(1.4deg); }

.title-sticker {
  text-align: center;
  padding: 0.7rem 1rem;
}
.title-sticker h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 5vw, 1.5rem);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.field { text-align: left; }
.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--magenta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
}
.field-input {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
}
.field-input svg { flex-shrink: 0; color: var(--orange-deep); width: 17px; height: 17px; }
.field-input input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.field-input input::placeholder { color: #A99BB8; }

.btn-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--grad-sticker);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.9rem 1.5rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-login:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-login:active:not(:disabled) { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.btn-login svg { width: 19px; height: 19px; }
.btn-login:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; transform: none; }

.register-sticker {
  text-align: center;
  padding: 0.8rem 1rem;
}
.register-sticker a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--purple);
  text-transform: uppercase;
}
.register-sticker svg { width: 15px; height: 15px; }

/* ===== ABOUT TEXT ===== */
.about-text {
  position: relative;
  z-index: 2;
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 0.75rem 1.5rem 1.5rem;
  text-align: center;
}
.about-text h2 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.about-text p {
  font-size: 0.76rem;
  line-height: 1.85;
  color: var(--muted);
}

/* ===== LINE FAB (floating chat bubble) ===== */
.line-fab {
  position: fixed;
  right: 1rem;
  bottom: 92px;
  z-index: 35;
  width: 56px;
  height: 56px;
  border-radius: 50% 50% 6px 50%;
  background: #06C755;
  border: 3px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0 var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  animation: fab-bounce 2.4s ease-in-out infinite;
}
@keyframes fab-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .line-fab { animation: none; } }

/* ===== BOTTOM DOCK (floating, not edge-to-edge) ===== */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 340px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0.5rem 0.4rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
}
.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--dim);
  padding: 0.2rem;
  background: none;
  border: none;
  text-transform: uppercase;
}
.bn-item svg { width: 18px; height: 18px; color: var(--dim); }
.bn-item.active,
.bn-item:hover { color: var(--magenta); }
.bn-item.active svg,
.bn-item:hover svg { color: var(--orange-deep); }

/* ===== HOW-TO MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(20, 7, 31, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-sheet {
  width: 100%;
  max-width: var(--container-sm);
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 1.5rem 1.5rem;
  transform: scale(0.95) rotate(-1deg);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal-sheet { transform: scale(1) rotate(0); }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.modal-head h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
}
.modal-close {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange); border: 2px solid var(--ink);
  color: #fff; font-size: 0.9rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.modal-steps { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.modal-steps li { display: flex; gap: 0.75rem; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--grad-sticker); border: 2px solid var(--ink); color: #fff; font-weight: 800; font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
}
.modal-steps p { font-size: 0.83rem; color: #4A3A5C; line-height: 1.6; }
.modal-steps strong { color: var(--ink); }
