/* ═══════════════════════════════════════════════════
   MAMB · Design System · Acuarela Digital
   Fonts: Baloo 2 (display) + Quicksand (body)
═══════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────── */
:root {
  /* Core palette */
  --bg: #FDFAF5;
  --surface: #FFFFFF;
  --ink: #1C1B2E;
  --ink-soft: #5C5B72;
  --ink-faint: #9998AA;
  --border: #E8E4DA;
  --border-2: #D4CFC4;

  /* Brand accents */
  --amber: #F5A623;
  --amber-l: #FEF3DC;
  --teal: #0F6B6B;
  --teal-l: #E4F4F4;
  --coral: #E94560;
  --coral-l: #FDEDF0;
  --violet: #6B4EBB;
  --violet-l: #F0ECFB;
  --green: #27AE60;
  --green-l: #E8F8EE;
  --sky: #3A8FDB;
  --sky-l: #EBF4FD;

  /* Typography */
  --f-display: 'Baloo 2', cursive;
  --f-body: 'Quicksand', sans-serif;

  /* Spacing scale */
  --s1: .25rem;
  --s2: .5rem;
  --s3: .75rem;
  --s4: 1rem;
  --s5: 1.25rem;
  --s6: 1.5rem;
  --s8: 2rem;
  --s10: 2.5rem;

  /* Radii */
  --r-sm: .5rem;
  --r-md: .875rem;
  --r-lg: 1.25rem;
  --r-xl: 1.75rem;
  --r-pill: 99rem;

  /* Shell */
  --tab-h: 4.25rem;
  --header-h: 3.25rem;

  /* Easing */
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

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

body {
  font-family: var(--f-body);
  background: #D8D4CC;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  user-select: none;
}

button {
  font-family: var(--f-body);
  cursor: pointer;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

input {
  font-family: var(--f-body);
}

svg {
  display: block;
  flex-shrink: 0;
}

/* ── PHONE SHELL ────────────────────────────────── */
#phone-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: var(--bg);
  overflow: hidden;
}

#notch {
  display: none;
}

/* ── APP / SCREEN SYSTEM ───────────────────────── */
#app {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: var(--bg);
}

.screen.active {
  display: flex;
}

.screen.entering {
  animation: screen-slide-in .28s var(--ease-out) both;
}

@keyframes screen-slide-in {
  from {
    transform: translateX(24px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.scroll-host {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.scroll-host::-webkit-scrollbar {
  display: none;
}

.bottom-space {
  height: calc(var(--tab-h) + 1.5rem + env(safe-area-inset-bottom));
}

/* ── SCREEN HEADER ──────────────────────────────── */
.screen-header {
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 var(--s3);
  background: var(--surface);
  border-bottom: 1.5px solid var(--border);
  gap: var(--s2);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.screen-header h2 {
  flex: 1;
  text-align: center;
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.dark-header {
  background: var(--ink);
  border-bottom-color: transparent;
}

.dark-header h2 {
  color: #fff;
}

/* ── ICON BUTTON ────────────────────────────────── */
.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: var(--ink);
  transition: background .15s;
}

.icon-btn:hover {
  background: var(--border);
}

.icon-btn.light {
  color: #fff;
}

.icon-btn.light:hover {
  background: rgba(255, 255, 255, .12);
}

.home-user-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.25rem 0.25rem 0.75rem;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background 0.2s;
}

.home-user-badge:hover {
  background: rgba(255, 255, 255, 0.2);
}

.home-user-badge-name {
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.home-user-badge-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  overflow: hidden;
  border: 2px solid #fff;
}

.home-user-badge-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── BOTTOM TAB BAR ─────────────────────────────── */
.tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1.5px solid var(--border);
  display: flex;
  align-items: flex-start;
  padding: .5rem 0 calc(.25rem + env(safe-area-inset-bottom));
  z-index: 100;
}

.tb-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  color: var(--ink-faint);
  font-size: .6rem;
  font-weight: 700;
  padding: 0 .2rem;
  transition: color .18s;
}

.tb-btn svg {
  width: 22px;
  height: 22px;
}

.tb-btn span {
  font-size: .6rem;
  line-height: 1;
}

.tb-btn.active {
  color: var(--teal);
}

.tb-center {
  position: relative;
  top: -14px;
}

.tb-fab {
  width: 52px;
  height: 52px;
  background: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 18px rgba(28, 27, 46, .35);
  transition: transform .2s var(--ease-spring), box-shadow .2s;
}

.tb-fab:hover,
.tb-fab:focus {
  transform: scale(1.07);
  box-shadow: 0 6px 24px rgba(28, 27, 46, .45);
}

.tb-fab svg {
  width: 24px;
  height: 24px;
}

.tb-btn.tb-center {
  color: var(--ink-faint);
}

.tb-btn.tb-center span {
  margin-top: .1rem;
}

/* ── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: var(--r-pill);
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform .15s var(--ease-spring), box-shadow .15s, filter .15s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.btn:active {
  transform: scale(.95);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 14px rgba(28, 27, 46, .28);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(28, 27, 46, .38);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--border-2);
}

.btn-outline:hover {
  border-color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
}

.btn-ghost:hover {
  background: var(--border);
}

.btn-danger {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 4px 12px rgba(233, 69, 96, .3);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  font-size: .875rem;
  padding: .5rem 1.1rem;
}

/* ── FORMS ──────────────────────────────────────── */
.form-group {
  padding: 0 var(--s5);
  margin-bottom: var(--s5);
}

.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .45rem;
}

.form-sublabel {
  font-size: .775rem;
  color: var(--ink-faint);
  margin-bottom: .65rem;
}

.form-input {
  width: 100%;
  padding: .85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  font-size: 1rem;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--surface);
  transition: border-color .2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--teal);
}

.form-input::placeholder {
  color: var(--ink-faint);
}

.input-row {
  position: relative;
}

.input-row .form-input {
  padding-right: 3rem;
}

.pw-toggle {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  padding: .25rem;
}

.autosave-indicator {
  font-size: .72rem;
  color: var(--green);
  font-weight: 600;
  margin-top: .35rem;
  opacity: 0;
  transition: opacity .3s;
}

.autosave-indicator.visible {
  opacity: 1;
}

.grade-grid {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.grade-chip {
  padding: .5rem 1rem;
  border-radius: var(--r-pill);
  border: 2px solid var(--border);
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--surface);
  transition: all .15s;
}

.grade-chip.active,
.grade-chip:hover {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.form-footer {
  padding: 0 var(--s5) var(--s5);
}

/* ── HERO ───────────────────────────────────────── */
.hero-wrap {
  position: relative;
  overflow: hidden;
  padding: 2rem var(--s5) 2.25rem;
  background: var(--ink);
  color: #fff;
}

.hero-bg-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  opacity: .1;
}

.b1 {
  width: 220px;
  height: 220px;
  background: var(--amber);
  top: -70px;
  right: -55px;
}

.b2 {
  width: 130px;
  height: 130px;
  background: var(--coral);
  bottom: -30px;
  left: -25px;
}

.b3 {
  width: 80px;
  height: 80px;
  background: var(--violet);
  top: 60px;
  left: 40px;
}

.hero-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.mamb-wordmark {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .06em;
}

.hero-title {
  font-family: var(--f-display);
  font-size: 1.55rem;
  line-height: 1.2;
  color: #fff;
  margin-bottom: .35rem;
}

.hero-sub {
  font-size: .875rem;
  color: rgba(255, 255, 255, .6);
}

/* ── PINTO CHARACTER ────────────────────────────── */
.hero-guide-wrap,
.pinto-hero-wrap {
  display: flex;
  align-items: flex-end;
  gap: .875rem;
  margin-bottom: 1.5rem;
}

.pinto {
  position: relative;
  display: inline-block;
}

/* Sizes */
.pinto-lg .pinto-head {
  width: 58px;
  height: 58px;
}

.pinto-lg .pinto-body {
  width: 48px;
  height: 50px;
}

.pinto-md .pinto-head {
  width: 44px;
  height: 44px;
}

.pinto-md .pinto-body {
  width: 36px;
  height: 38px;
}

.pinto-sm .pinto-head {
  width: 32px;
  height: 32px;
}

.pinto-sm .pinto-body {
  width: 26px;
  height: 28px;
}

.pinto-xl .pinto-head {
  width: 84px;
  height: 84px;
}

.pinto-xl .pinto-body {
  width: 68px;
  height: 68px;
}

.pinto-head {
  background: var(--amber);
  border-radius: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 3px 10px rgba(245, 166, 35, .35);
}

.pinto-eyes {
  display: flex;
  gap: 7px;
  margin-bottom: 4px;
}

.pinto-eyes span {
  width: 6px;
  height: 7px;
  background: var(--ink);
  border-radius: 50% 50% 50% 50%/60% 60% 40% 40%;
  display: block;
}

.pinto-lg .pinto-eyes {
  gap: 9px;
  margin-bottom: 5px;
}

.pinto-lg .pinto-eyes span {
  width: 7px;
  height: 8px;
}

.pinto-xl .pinto-eyes {
  gap: 12px;
  margin-bottom: 7px;
}

.pinto-xl .pinto-eyes span {
  width: 9px;
  height: 11px;
}

.pinto-nose {
  width: 5px;
  height: 4px;
  border-radius: 50%;
  background: rgba(28, 27, 46, .2);
  margin-bottom: 3px;
}

.pinto-mouth {
  width: 14px;
  height: 5px;
  border-bottom: 2.5px solid var(--ink);
  border-left: 2.5px solid var(--ink);
  border-right: 2.5px solid var(--ink);
  border-radius: 0 0 8px 8px;
}

.pinto-lg .pinto-mouth {
  width: 17px;
  height: 6px;
}

.pinto-xl .pinto-mouth {
  width: 22px;
  height: 8px;
  border-width: 3px;
}

.pinto-cheek {
  position: absolute;
  bottom: 9px;
  width: 9px;
  height: 5px;
  background: rgba(233, 69, 96, .35);
  border-radius: 50%;
}

.pinto-cheek.left {
  left: 9px;
}

.pinto-cheek.right {
  right: 9px;
}

.pinto-hair {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 10px;
  background: var(--ink);
  border-radius: 10px 10px 0 0;
}

.pinto-lg .pinto-hair {
  width: 36px;
  height: 13px;
}

.pinto-xl .pinto-hair {
  width: 52px;
  height: 18px;
}

.pinto-body {
  background: var(--teal);
  border-radius: .5rem;
  margin: 2px auto 0;
  position: relative;
}

.pinto-smock {
  position: absolute;
  inset: 4px 3px;
  background: rgba(255, 255, 255, .2);
  border-radius: .35rem;
}

.pinto-arm {
  position: absolute;
  background: var(--teal);
  border-radius: var(--r-pill);
  top: 6px;
}

.pinto-lg .pinto-arm {
  width: 11px;
  height: 32px;
}

.pinto-md .pinto-arm {
  width: 9px;
  height: 25px;
}

.pinto-sm .pinto-arm {
  width: 7px;
  height: 18px;
}

.pinto-xl .pinto-arm {
  width: 14px;
  height: 45px;
}

.pinto-arm.left {
  left: -9px;
  transform: rotate(14deg);
}

.pinto-arm.right {
  right: -9px;
  transform: rotate(-18deg);
}

.pinto-brush {
  position: absolute;
  bottom: -13px;
  right: -3px;
  width: 5px;
  height: 17px;
  background: var(--amber);
  border-radius: var(--r-pill);
  transform: rotate(10deg);
}

.pinto-brush::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -1px;
  width: 7px;
  height: 6px;
  background: var(--coral);
  border-radius: 0 0 3px 3px;
}

/* Speech bubble */
.speech-bubble {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-lg);
  padding: .65rem .9rem;
  font-size: .8rem;
  line-height: 1.45;
  max-width: 200px;
  backdrop-filter: blur(4px);
  position: relative;
}

.speech-bubble p {
  color: rgba(255, 255, 255, .92);
}

.speech-bubble strong {
  font-weight: 800;
}

.bubble-tail {
  position: absolute;
  left: -10px;
  bottom: 14px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 10px solid rgba(255, 255, 255, .12);
}

/* ── QUICK ACTIONS ──────────────────────────────── */
.quick-actions {
  display: flex;
  gap: .75rem;
  padding: var(--s5);
  background: var(--ink);
  padding-top: 0;
}

.qa-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: .9rem .4rem;
  border-radius: var(--r-lg);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s var(--ease-spring);
}

.qa-btn:active {
  transform: scale(.92);
}

.qa-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  color: #fff;
}

.qa-create {
  background: var(--amber-l);
  color: var(--ink);
}

.qa-create .qa-icon {
  background: var(--amber);
}

.qa-gallery {
  background: var(--teal-l);
  color: var(--ink);
}

.qa-gallery .qa-icon {
  background: var(--teal);
}

.qa-events {
  background: var(--coral-l);
  color: var(--ink);
}

.qa-events .qa-icon {
  background: var(--coral);
}

/* ── SECTIONS ───────────────────────────────────── */
.section-block {
  padding: var(--s5) var(--s5) 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .85rem;
}

.section-title {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.section-header .section-title {
  margin-bottom: 0;
}

.see-all {
  font-size: .8rem;
  font-weight: 700;
  color: var(--teal);
  padding: .3rem .5rem;
  border-radius: var(--r-sm);
}

.see-all:hover {
  background: var(--teal-l);
}

.screen-intro {
  padding: .75rem var(--s5) .25rem;
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ── ABOUT CARD ─────────────────────────────────── */
.about-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: var(--s5);
  box-shadow: 0 2px 12px rgba(28, 27, 46, .08);
  border: 1.5px solid var(--border);
}

.about-building-art {
  margin-bottom: .75rem;
}

.about-text {
  font-size: .85rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.about-text strong {
  color: var(--ink);
}

.info-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.info-chip {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .65rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  font-size: .7rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.info-chip svg {
  flex-shrink: 0;
}

/* ── SCROLL ROW ─────────────────────────────────── */
.scroll-row {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

/* ── EVENT MINI ─────────────────────────────────── */
.event-mini {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border-radius: var(--r-lg);
  min-width: 195px;
}

.ec1 {
  background: var(--amber-l);
}

.ec2 {
  background: var(--teal-l);
}

.ec3 {
  background: var(--violet-l);
}

.em-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.em-date b {
  font-family: var(--f-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
}

.em-date span {
  font-size: .65rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.em-info strong {
  display: block;
  font-size: .85rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: .1rem;
}

.em-info small {
  font-size: .72rem;
  color: var(--ink-soft);
}

/* ── ARTIST PILLS ───────────────────────────────── */
.artist-pill {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
}

.artist-pill span {
  font-size: .7rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.ap-av {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  transition: transform .2s var(--ease-spring);
}

.artist-pill:hover .ap-av,
.artist-pill:focus .ap-av {
  transform: scale(1.1);
}

/* Avatar colors */
.av-obregon {
  background-image: url('https://radionacional-v3.s3.amazonaws.com/s3fs-public/styles/portadas_relaciona_4_3/public/senalradio/articulo-noticia/galeriaimagen/ezqv-3wxqaayyea_1.jpg?h=c9267243&itok=M0uxKqVA');
  background-size: cover;
  background-position: center;
}

.av-botero {
  background-image: url('https://artnexus.com:5000/uploads/2021-06-01T17:20:29.610Zfernando%20botero.jpeg');
  background-size: cover;
  background-position: center;
}

.av-grau {
  background-image: url('https://imagenes.elpais.com/resizer/v2/XXW4ANSAJ4V3HD725YSFDYMGEA.jpg?auth=24e57f1770227258dd61befb0804afbe6f885e80c47eacb14f1a1f8cc964ed0d&width=414');
  background-size: cover;
  background-position: center;
}

.av-cepeda {
  background-image: url('https://gaceta.co/wp-content/uploads/2025/03/WhatsApp-Image-2025-03-29-at-12.36.17.jpeg');
  background-size: cover;
  background-position: center;
}

.av-barrios {
  background-image: url('https://premioggm.org/wp-content/uploads/2016/08/%C3%81lvaro_Barrios-378x378.png');
  background-size: cover;
  background-position: center;
}

.av-loochkartt {
  background-image: url('https://static.arteinformado.com/resources/app/docs/profesional/13/47313/579fa76a049f3__fotografia_de_carlos_baquero_web.jpg');
  background-size: cover;
  background-position: center;
}

.av-dali {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/2/24/Salvador_Dal%C3%AD_1939.jpg');
  background-size: cover;
  background-position: center;
}

.av-appel {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/e/e7/Karel_Appel_%281982%29.jpg');
  background-size: cover;
  background-position: center;
}

.av-profile {
  background: linear-gradient(135deg, #5C6BC0, #9FA8DA);
}

/* ── ACH STRIP ──────────────────────────────────── */
.ach-strip {
  display: flex;
  gap: .65rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  scrollbar-width: none;
}

.ach-strip::-webkit-scrollbar {
  display: none;
}

.ach-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .8rem .65rem;
  border-radius: var(--r-lg);
  min-width: 80px;
  font-size: .68rem;
  font-weight: 700;
}

.ach-earned {
  background: var(--amber-l);
  color: var(--amber);
}

.ach-locked {
  background: var(--bg);
  color: var(--ink-faint);
  border: 1.5px dashed var(--border-2);
}

.ach-medal {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ach-medal svg {
  width: 28px;
  height: 28px;
}

.gold {
  color: #D4A017;
}

.silver {
  color: #8B8B8B;
}

.bronze {
  color: #A0522D;
}

.locked {
  color: var(--ink-faint);
}

/* ── CAMERA SCREEN ──────────────────────────────── */
.viewfinder {
  flex: 1;
  background: #0A0A0A;
  display: grid;
  overflow: hidden;
  position: relative;
}

#camera-video {
  grid-area: 1/1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vf-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  pointer-events: none;
}

.vf-grid span {
  border: 1px solid rgba(255, 255, 255, .08);
}

.vf-corners {
  position: absolute;
  inset: 10%;
}

.vc {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--amber);
  border-style: solid;
  border-width: 0;
}

.vc.tl {
  top: 0;
  left: 0;
  border-top-width: 3px;
  border-left-width: 3px;
  border-radius: 3px 0 0 0;
}

.vc.tr {
  top: 0;
  right: 0;
  border-top-width: 3px;
  border-right-width: 3px;
  border-radius: 0 3px 0 0;
}

.vc.bl {
  bottom: 0;
  left: 0;
  border-bottom-width: 3px;
  border-left-width: 3px;
  border-radius: 0 0 0 3px;
}

.vc.br {
  bottom: 0;
  right: 0;
  border-bottom-width: 3px;
  border-right-width: 3px;
  border-radius: 0 0 3px 0;
}

.vf-tip {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .4rem;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-pill);
  padding: .4rem .875rem;
  color: rgba(255, 255, 255, .85);
  font-size: .75rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

.cam-pinto-tip {
  position: absolute;
  left: 1rem;
  bottom: 5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.float-bubble {
  background: var(--ink);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .4rem .75rem;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.cam-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: #111;
  flex-shrink: 0;
}

.cam-aux {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1.5px solid rgba(255, 255, 255, .18);
  color: #fff;
}

.cam-aux.active {
  color: var(--amber);
  background: rgba(245, 166, 35, .15);
}

.shutter {
  width: 70px;
  height: 70px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .1s;
}

.shutter:active {
  transform: scale(.88);
}

.shutter-ring {
  position: absolute;
  inset: 0;
  border: 3.5px solid white;
  border-radius: 50%;
}

.shutter-core {
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 50%;
}

/* ── PREVIEW SCREEN ─────────────────────────────── */
.preview-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #111;
}

.photo-frame {
  width: 280px;
  height: 220px;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .5);
}

.preview-actions {
  display: flex;
  gap: .75rem;
  padding: 1.25rem;
  background: #111;
  border-top: 1px solid rgba(255, 255, 255, .08);
  flex-shrink: 0;
}

.preview-actions .btn {
  flex: 1;
}

/* ── FORM SCREEN ────────────────────────────────── */
.form-thumb-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem;
  gap: .45rem;
}

.form-thumb {
  width: 100px;
  height: 75px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 4px 16px rgba(28, 27, 46, .12);
}

.form-thumb-label {
  font-size: .72rem;
  color: var(--ink-faint);
  font-weight: 700;
}

/* Style carousel */
.style-carousel {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.style-carousel::-webkit-scrollbar {
  display: none;
}

.style-card {
  flex-shrink: 0;
  width: 215px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 2.5px solid var(--border);
  background: var(--surface);
  scroll-snap-align: start;
  cursor: pointer;
  position: relative;
  transition: border-color .2s, transform .2s var(--ease-spring);
}

.style-card.selected {
  border-color: var(--teal);
  transform: scale(1.015);
}

.style-card:hover {
  border-color: var(--ink-soft);
}

.style-thumb {
  height: 105px;
}

.sth-imp {
  background: linear-gradient(135deg, #4A90E2 0%, #F5A623 55%, #E94560 100%);
}

.sth-vg {
  background: linear-gradient(135deg, #1A2458 0%, #3A6BC0 45%, #F5C842 100%);
}

.sth-wc {
  background: linear-gradient(135deg, #EDD5F0 0%, #A8D8F0 55%, #C8F0A8 100%);
}

.sth-cb {
  background: linear-gradient(135deg, #7B3A10 0%, #F5C842 35%, #2A7AC0 65%, #E94560 100%);
}

.sth-pt {
  background-color: #FDFAF5;
  background-image:
    radial-gradient(circle, transparent 1.5px, transparent 1.5px),
    radial-gradient(circle, transparent 1.5px, transparent 1.5px),
    radial-gradient(circle, transparent 1.5px, transparent 1.5px),
    radial-gradient(circle, transparent 1.5px, transparent 1.5px);
  background-size: 11px 11px, 11px 11px, 11px 11px, 11px 11px;
  background-position: 0 0, 5.5px 5.5px, 2.75px 8.25px, 8.25px 2.75px;
}

.sth-fa {
  background: linear-gradient(135deg, #FFD700 0%, #FF6EC7 35%, #7B00FF 65%, #00CED1 100%);
}

.style-body {
  padding: .85rem;
}

.style-body strong {
  display: block;
  font-size: .95rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: .35rem;
}

.style-body p {
  font-size: .775rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-bottom: .45rem;
}

.style-ref {
  font-size: .68rem;
  color: var(--ink-faint);
  font-weight: 700;
}

.style-check {
  position: absolute;
  top: .6rem;
  right: .6rem;
  width: 22px;
  height: 22px;
  background: var(--teal);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.style-card.selected .style-check {
  display: flex;
}

.carousel-dots {
  display: flex;
  gap: .35rem;
  justify-content: center;
  padding: .5rem 0 .75rem;
}

.cdot {
  width: 6px;
  height: 6px;
  background: var(--border-2);
  border-radius: 50%;
  transition: all .2s;
}

.cdot.active {
  width: 16px;
  background: var(--teal);
  border-radius: var(--r-pill);
}

/* ── PROCESSING ─────────────────────────────────── */
#s-processing {
  background: var(--ink);
  justify-content: center;
}

.processing-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.proc-blob {
  position: absolute;
  border-radius: 50%;
  opacity: .08;
}

.pb1 {
  width: 260px;
  height: 260px;
  background: var(--violet);
  top: -80px;
  right: -80px;
}

.pb2 {
  width: 180px;
  height: 180px;
  background: var(--amber);
  bottom: -40px;
  left: -40px;
}

.proc-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  gap: 1.15rem;
  position: relative;
  z-index: 1;
}

.proc-art-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.proc-art {
  width: 105px;
  height: 78px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .1);
  flex-shrink: 0;
}

.proc-art-result {
  position: relative;
}

.proc-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent);
  animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

.proc-art-result {
  animation: pulse-glow 2.2s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 166, 35, .15);
  }

  50% {
    box-shadow: 0 0 18px 6px rgba(245, 166, 35, .3);
  }
}

.proc-arrow {
  color: rgba(255, 255, 255, .35);
}

.proc-pinto {
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

.proc-title {
  font-family: var(--f-display);
  font-size: 1.4rem;
  color: #fff;
  text-align: center;
  line-height: 1.25;
}

.proc-steps {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  width: 100%;
}

.proc-step {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .87rem;
  font-weight: 700;
}

.proc-step.done {
  color: var(--green);
}

.proc-step.active {
  color: var(--amber);
}

.proc-step.pending {
  color: rgba(255, 255, 255, .25);
}

.spin-ring {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 2.5px solid rgba(245, 166, 35, .25);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.progress-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
}

.progress-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, .1);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--amber), var(--coral));
  border-radius: var(--r-pill);
  transition: width .5s var(--ease-out);
}

.progress-pct {
  font-size: .8rem;
  font-weight: 800;
  color: var(--amber);
  min-width: 2.5rem;
  text-align: right;
}

.proc-fact {
  font-size: .78rem;
  color: rgba(255, 255, 255, .4);
  text-align: center;
  font-style: italic;
  max-width: 275px;
}

/* ── RESULT ─────────────────────────────────────── */
#s-result {
  background: #000;
}

.result-fs {
  position: absolute;
  inset: 0;
}

.result-info-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.result-info-text h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--f-display);
}

.result-info-text p {
  color: rgba(255, 255, 255, .7);
  font-size: .8rem;
  margin-top: .1rem;
}

.fav-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .12);
  border: 1.5px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: #fff;
  transition: all .2s;
}

.fav-btn.active {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

.tap-hint {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .4rem;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-pill);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: .45rem 1rem;
  cursor: pointer;
  animation: float-up 2s ease-in-out infinite;
}

@keyframes float-up {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Result drawer */
.drawer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: .75rem 1.25rem 2rem;
  transform: translateY(100%);
  transition: transform .35s var(--ease-out);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .3);
  z-index: 50;
}

.drawer.open {
  transform: translateY(0);
}

.drawer-handle {
  width: 40px;
  height: 4px;
  background: var(--border-2);
  border-radius: var(--r-pill);
  margin: 0 auto .875rem;
}

.drawer-thumb {
  width: 80px;
  height: 56px;
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 0 auto 1.15rem;
  box-shadow: 0 4px 16px rgba(28, 27, 46, .15);
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: .75rem;
}

.drawer .btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Drawer backdrop */
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 49;
  display: none;
}

.drawer-backdrop.open {
  display: block;
}

.da-btn {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.1rem;
  border-radius: var(--r-lg);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .15s;
}

.da-btn svg {
  flex-shrink: 0;
}

.da-save {
  background: var(--green-l);
  color: var(--green);
}

.da-save:hover {
  background: var(--green);
  color: #fff;
}

.da-share {
  background: var(--teal-l);
  color: var(--teal);
}

.da-share:hover {
  background: var(--teal);
  color: #fff;
}

.da-discard {
  background: var(--coral-l);
  color: var(--coral);
}

.da-discard:hover {
  background: var(--coral);
  color: #fff;
}

.da-fav {
  background: var(--coral-l);
  color: var(--coral);
}

.da-fav.active {
  background: var(--coral);
  color: #fff;
}
.da-fav.active svg {
  fill: currentColor;
}

@media (hover: hover) {
  .da-fav:not(.active):hover {
    background: var(--coral);
    color: #fff;
  }
}

.fav-text-remove { display: none !important; }
.is-fav .fav-text-add { display: none !important; }
.is-fav .fav-text-remove { display: inline !important; }

/* ── GALLERY ────────────────────────────────────── */
.filter-strip {
  display: flex;
  gap: .5rem;
  padding: .65rem var(--s5);
  overflow-x: auto;
  border-bottom: 1.5px solid var(--border);
  scrollbar-width: none;
  flex-shrink: 0;
}

.filter-strip::-webkit-scrollbar {
  display: none;
}

.fchip {
  flex-shrink: 0;
  padding: .38rem .85rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--surface);
  cursor: pointer;
  transition: all .15s;
}

.fchip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .875rem;
  padding: var(--s4) var(--s5);
}

.gal-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: 0 2px 10px rgba(28, 27, 46, .07);
  cursor: pointer;
  transition: transform .2s var(--ease-spring), box-shadow .2s;
  touch-action: manipulation;
}

.gal-card:hover,
.gal-card:focus {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(28, 27, 46, .14);
}

.gal-card:active {
  transform: scale(.97);
}

.gal-thumb {
  width: 100%;
  aspect-ratio: 1;
  min-height: 130px;
  position: relative;
}

.gt1 {
  background: linear-gradient(135deg, #4A90E2, #F5A623);
}

.gt2 {
  background: linear-gradient(135deg, #1A2458, #4A90E2, #F5C842);
}

.gt3 {
  background: linear-gradient(135deg, #EDD5F0, #A8D8F0, #C8F0A8);
}

.gt4 {
  background: linear-gradient(135deg, #7B3A10, #F5C842, #2A7AC0);
}

.gt5 {
  background: linear-gradient(135deg, #0D1B3E, #27AE60, #4A90E2);
}

.gt6 {
  background: linear-gradient(135deg, #FFD700, #FF69B4, #9400D3);
}

.gal-fav {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 26px;
  height: 26px;
  background: var(--coral);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.gal-card:not(.is-fav) .gal-fav {
  display: none;
}

.gal-info {
  padding: .6rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
}

.gal-info-text {
  flex: 1;
  min-width: 0;
}

.gal-options {
  position: relative;
}

.gal-opt-btn {
  background: transparent;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
  padding: .2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .2s;
}

.gal-opt-btn:hover {
  background: var(--border);
  color: var(--ink);
}

.gal-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 4px 12px rgba(28,27,46,.1);
  padding: .35rem 0;
  min-width: max-content;
  z-index: 10;
  display: none;
}

.gal-dropdown.show {
  display: block;
  animation: drop-fade .2s var(--ease-out);
}

@keyframes drop-fade {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.gal-dropdown-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  padding: .6rem 1rem;
  background: transparent;
  border: none;
  text-align: left;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s;
}

.gal-dropdown-item:hover {
  background: var(--border);
}

.gal-dropdown-item svg {
  flex-shrink: 0;
}

.gal-dropdown-item.is-fav svg {
  fill: var(--coral);
  color: var(--coral);
}

.gal-info strong {
  display: block;
  font-size: .8rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: .15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gal-info span {
  font-size: .7rem;
  color: var(--ink-faint);
  display: block;
  margin-bottom: .35rem;
}

.style-tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: var(--r-pill);
  font-size: .6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.st-imp {
  background: var(--sky-l);
  color: var(--sky);
}

.st-vg {
  background: var(--violet-l);
  color: var(--violet);
}

.st-wc {
  background: var(--green-l);
  color: var(--green);
}

.st-cb {
  background: var(--amber-l);
  color: #8B4513;
}

.st-fa {
  background: var(--coral-l);
  color: var(--coral);
}

/* ── ARTISTS ────────────────────────────────────── */
.artist-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: .85rem var(--s5);
}

.artist-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1.5px solid var(--border);
  box-shadow: 0 2px 8px rgba(28, 27, 46, .07);
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: box-shadow .2s, transform .2s var(--ease-spring);
}

.artist-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(28, 27, 46, .12);
}

.ac-av {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ac-info {
  flex: 1;
  min-width: 0;
}

.ac-info strong {
  display: block;
  font-size: .95rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: .18rem;
}

.ac-info span {
  font-size: .72rem;
  color: var(--ink-faint);
  font-weight: 700;
  display: block;
  margin-bottom: .35rem;
}

.ac-info p {
  font-size: .78rem;
  color: var(--ink-soft);
  line-height: 1.4;
  margin-bottom: .4rem;
}

.fun-tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .68rem;
  font-weight: 700;
  background: var(--amber-l);
  color: var(--amber);
  padding: .2rem .55rem;
  border-radius: var(--r-pill);
}

.ac-arrow {
  color: var(--ink-faint);
  flex-shrink: 0;
  margin-top: .2rem;
}

/* ── PROGRAMS ───────────────────────────────────── */
.prog-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: .85rem var(--s5);
}

.prog-card {
  padding: 1.15rem 1.15rem 1.15rem 1.35rem;
  border-radius: var(--r-xl);
  border-left: 5px solid;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(28, 27, 46, .07);
}

.pc-violet {
  border-color: var(--violet);
}

.pc-teal {
  border-color: var(--teal);
}

.pc-amber {
  border-color: var(--amber);
}

.prog-badge {
  display: inline-block;
  padding: .22rem .65rem;
  border-radius: var(--r-pill);
  font-size: .7rem;
  font-weight: 900;
  margin-bottom: .45rem;
  letter-spacing: .06em;
}

.pc-violet .prog-badge {
  background: var(--violet-l);
  color: var(--violet);
}

.pc-teal .prog-badge {
  background: var(--teal-l);
  color: var(--teal);
}

.pc-amber .prog-badge {
  background: var(--amber-l);
  color: #8B4513;
}

.prog-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: .45rem;
}

.prog-card p {
  font-size: .82rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: .85rem;
}

.prog-meta {
  display: flex;
  flex-direction: column;
  gap: .12rem;
}

.prog-meta span {
  font-size: .7rem;
  color: var(--ink-faint);
  font-weight: 600;
}

.collab-card {
  margin: 0 var(--s5);
  padding: 1.15rem;
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1.5px dashed var(--border-2);
  text-align: center;
}

.collab-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: .65rem;
}

.collab-name {
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: var(--ink);
}

.collab-x {
  font-size: 1.2rem;
  color: var(--ink-faint);
  font-weight: 900;
}

.collab-card>p {
  font-size: .8rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ── ABOUT ──────────────────────────────────────── */
.about-hero-img {
  background: var(--surface);
}

.about-stats {
  display: flex;
  padding: 1.1rem var(--s5);
  gap: .5rem;
}

.astat {
  flex: 1;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: .85rem .5rem;
  text-align: center;
  border: 1.5px solid var(--border);
}

.astat strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.35rem;
  color: var(--ink);
}

.astat span {
  font-size: .68rem;
  color: var(--ink-faint);
  font-weight: 700;
}

.about-blocks {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: 0 var(--s5);
}

.about-block {
  padding: 1rem 1.15rem;
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1.5px solid var(--border);
}

.about-block h3 {
  font-size: .9rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: .45rem;
  padding-bottom: .45rem;
  border-bottom: 2px solid var(--border);
}

.about-block p {
  font-size: .82rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.map-placeholder {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: .75rem;
}

/* ── EVENTS ─────────────────────────────────────── */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: .85rem var(--s5);
}

.ev-card {
  display: flex;
  gap: .875rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1.5px solid var(--border);
  box-shadow: 0 2px 8px rgba(28, 27, 46, .07);
}

.ev-past {
  opacity: .55;
}

.ev-datecol {
  flex-shrink: 0;
}

.ev-datebox {
  width: 52px;
  height: 58px;
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .05rem;
}

.edc1 {
  background: var(--amber-l);
}

.edc2 {
  background: var(--teal-l);
}

.edc3 {
  background: var(--violet-l);
}

.edc-past {
  background: var(--bg);
  border: 1.5px solid var(--border);
}

.ev-day {
  font-family: var(--f-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
}

.ev-mo {
  font-size: .62rem;
  font-weight: 800;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ev-body {
  flex: 1;
  min-width: 0;
}

.ev-tag {
  display: inline-block;
  padding: .14rem .55rem;
  border-radius: var(--r-pill);
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--amber-l);
  color: #8B4513;
  margin-bottom: .35rem;
}

.ev-tag-fam {
  background: var(--violet-l);
  color: var(--violet);
}

.ev-tag-past {
  background: var(--bg);
  color: var(--ink-faint);
}

.ev-body h3 {
  font-size: .9rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: .4rem;
}

.ev-meta {
  display: flex;
  flex-direction: column;
  gap: .18rem;
  margin-bottom: .5rem;
}

.ev-meta span {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.ev-body p {
  font-size: .775rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-bottom: .7rem;
}

/* ── PROFILE ────────────────────────────────────── */
.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem var(--s5) 1rem;
  background: var(--surface);
  border-bottom: 1.5px solid var(--border);
  gap: .45rem;
}

.profile-av-wrap {
  position: relative;
  margin-bottom: .25rem;
}

.profile-av {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 3px solid var(--border);
}

.profile-av-edit {
  position: absolute;
  bottom: 0;
  right: -4px;
  width: 24px;
  height: 24px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.profile-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
}

.profile-grade {
  font-size: .78rem;
  color: var(--ink-faint);
  font-weight: 600;
}

.profile-stats {
  display: flex;
  gap: 2rem;
  margin-top: .5rem;
}

.pstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .08rem;
}

.pstat strong {
  font-family: var(--f-display);
  font-size: 1.3rem;
  color: var(--ink);
}

.pstat span {
  font-size: .65rem;
  color: var(--ink-faint);
  font-weight: 700;
}

.profile-section {
  padding: 1.15rem var(--s5);
}

.profile-section h3 {
  font-size: .95rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: .8rem;
}

.ach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
}

.ach-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .8rem .4rem;
  border-radius: var(--r-lg);
  text-align: center;
  font-size: .68rem;
  font-weight: 800;
}

.ach-earned {
  background: var(--surface);
  border: 1.5px solid var(--border);
}

.ach-locked {
  opacity: .4;
  border: 1.5px dashed var(--border-2);
}

.ach-m {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ach-m svg {
  width: 28px;
  height: 28px;
}

.ach-cell span {
  font-size: .68rem;
  font-weight: 800;
  color: var(--ink);
}

.ach-cell small {
  font-size: .6rem;
  color: var(--ink-faint);
}

.ach-m i.bi {
  font-size: 1.6rem;
  line-height: 1;
}

.ach-m-earned i.bi {
  color: var(--amber);
}

.ach-m-locked i.bi {
  color: var(--ink-faint);
}

.ach-loading-msg {
  grid-column: 1 / -1;
  text-align: center;
  font-size: .75rem;
  color: var(--ink-faint);
  padding: 1rem 0;
}

@keyframes logros-highlight {
  0%   { background: transparent; }
  25%  { background: var(--amber-l); }
  75%  { background: var(--amber-l); }
  100% { background: transparent; }
}

.logros-highlight {
  animation: logros-highlight 1s ease;
  border-radius: var(--r-lg);
}

.gold {
  color: #C8980A;
}

.silver {
  color: #7A7A7A;
}

.bronze {
  color: #8B4513;
}

.lk {
  color: var(--ink-faint);
}

.pw-thumb {
  width: 78px;
  height: 78px;
  border-radius: var(--r-md);
  flex-shrink: 0;
}

.pmenu {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.pmenu-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1rem;
  border-radius: var(--r-lg);
  font-size: .93rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border);
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all .15s;
}

.pmenu-item svg {
  color: var(--ink-soft);
  flex-shrink: 0;
}

.pmenu-item:hover {
  border-color: var(--teal);
  background: var(--teal-l);
}

.pmenu-danger {
  color: var(--coral);
}

.pmenu-danger svg {
  color: var(--coral);
}

.pmenu-danger:hover {
  border-color: var(--coral);
  background: var(--coral-l);
}

/* ── AUTH ───────────────────────────────────────── */
#s-login {
  padding-top: 30px;
}

.auth-top {
  position: relative;
  overflow: hidden;
  padding: 2rem var(--s5) 1.75rem;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.auth-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ab1 {
  position: absolute;
  width: 180px;
  height: 180px;
  background: var(--amber);
  border-radius: 50%;
  opacity: .1;
  top: -60px;
  right: -40px;
}

.ab2 {
  position: absolute;
  width: 110px;
  height: 110px;
  background: var(--coral);
  border-radius: 50%;
  opacity: .1;
  bottom: -25px;
  left: -20px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-display);
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: .06em;
  position: relative;
}

.auth-pinto {
  position: relative;
}

.auth-title {
  font-family: var(--f-display);
  font-size: 1.65rem;
  color: #fff;
  text-align: center;
  position: relative;
}

.auth-sub {
  font-size: .875rem;
  color: rgba(255, 255, 255, .6);
  text-align: center;
  position: relative;
}

.auth-form-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem var(--s5);
}

.auth-forgot {
  display: block;
  margin: -1rem 0 1rem auto;
  font-size: .82rem;
  font-weight: 700;
  color: var(--teal);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: .875rem;
  margin: 1rem 0;
  color: var(--ink-faint);
  font-size: .8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.signup-intro {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .875rem var(--s5);
  font-size: .88rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.step-indicator {
  display: flex;
  align-items: center;
  padding: .65rem var(--s5) 1.15rem;
}

.si-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .22rem;
}

.si-step span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 900;
  background: var(--border);
  color: var(--ink-faint);
}

.si-step.active span {
  background: var(--teal);
  color: #fff;
}

.si-step small {
  font-size: .63rem;
  color: var(--ink-faint);
  font-weight: 700;
}

.si-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 .4rem .875rem;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .5rem;
  margin-top: .3rem;
}

.avatar-chip {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  padding: .25rem;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-chip img {
  width: 100%;
  border-radius: var(--r-sm);
  aspect-ratio: 1;
}

.avatar-chip.active {
  border-color: var(--teal);
  background: var(--teal-l);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(45, 206, 137, .15);
}

/* ── TUTORIAL ───────────────────────────────────── */
#s-tutorial {
  background: var(--ink);
}

.tut-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tut-blob {
  position: absolute;
  border-radius: 50%;
  opacity: .07;
}

.tb1 {
  width: 280px;
  height: 280px;
  background: var(--amber);
  top: -80px;
  right: -80px;
}

.tb2 {
  width: 200px;
  height: 200px;
  background: var(--teal);
  bottom: -50px;
  left: -50px;
}

.tut-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.tut-pinto {
  animation: bob 2s ease-in-out infinite;
}

.tut-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 1.75rem 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .875rem;
  text-align: center;
}

.tut-dots {
  display: flex;
  gap: .4rem;
}

.tdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-2);
}

.tdot.active {
  background: var(--teal);
  width: 20px;
  border-radius: var(--r-pill);
}

.tut-card h2 {
  font-family: var(--f-display);
  font-size: 1.6rem;
  color: var(--ink);
}

.tut-card p {
  font-size: .93rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.tut-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  width: 100%;
}

/* ── UI STATES ──────────────────────────────────── */
.state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1.5px solid var(--border);
  text-align: center;
  margin: 0 var(--s5) var(--s4);
}

.state-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.state-card p {
  font-size: .83rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.state-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.si-error {
  background: var(--coral-l);
  color: var(--coral);
}

.state-error {
  border-color: var(--coral);
}

.si-empty {
  background: var(--sky-l);
  color: var(--sky);
}

.si-success {
  background: var(--green-l);
  color: var(--green);
}

.state-success {
  border-color: var(--green);
}

.si-offline {
  background: var(--amber-l);
  color: var(--amber);
}

.state-offline {
  border-color: var(--amber);
}

.loading-dots {
  display: flex;
  gap: .5rem;
}

.loading-dots span {
  width: 10px;
  height: 10px;
  background: var(--ink);
  border-radius: 50%;
  animation: ldot 1.2s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: .2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: .4s;
}

@keyframes ldot {

  0%,
  80%,
  100% {
    transform: scale(.6);
    opacity: .4;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── MODALS ─────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, .65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
}

.modal-backdrop.open {
  display: flex;
}

.modal-sheet {
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 1.65rem 1.5rem 2.5rem;
  width: 100%;
  max-width: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  text-align: center;
  animation: sheet-up .3s var(--ease-out) both;
}

@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--border-2);
  border-radius: var(--r-pill);
  margin-bottom: .45rem;
}

.modal-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mi-success {
  background: var(--green-l);
  color: var(--green);
}

.mi-warning {
  background: var(--amber-l);
  color: var(--amber);
}

.modal-sheet h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
}

.modal-sheet p {
  font-size: .875rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.modal-btns {
  display: flex;
  gap: .65rem;
  width: 100%;
  margin-top: .45rem;
}

.modal-btns .btn {
  flex: 1;
}

.modal-close-x {
  align-self: flex-end;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink-soft);
  margin-bottom: -.25rem;
}

.confetti-host {
  position: relative;
  width: 100%;
  height: 40px;
  overflow: hidden;
}

.modal-artist-sheet {
  align-items: flex-start;
  text-align: left;
}

.mad-av {
  width: 80px;
  height: 80px;
  border-radius: var(--r-xl);
  margin-bottom: .25rem;
}

.modal-artist-sheet h3 {
  font-size: 1.25rem;
  font-weight: 900;
}

.mad-origin {
  font-size: .72rem;
  color: var(--ink-faint);
  font-weight: 700;
  display: block;
  margin: .1rem 0 .75rem;
}

.mad-bio {
  font-size: .87rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.fun-fact-card {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  background: var(--amber-l);
  border-radius: var(--r-lg);
  padding: .85rem;
  margin-bottom: 1rem;
  width: 100%;
}

.fun-fact-card svg {
  flex-shrink: 0;
  margin-top: .1rem;
  color: var(--amber);
}

.fun-fact-card strong {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  color: var(--amber);
  margin-bottom: .25rem;
}

.fun-fact-card p {
  font-size: .78rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.mad-works {
  display: flex;
  gap: .5rem;
}

.maw {
  flex: 1;
  aspect-ratio: 1;
  border-radius: var(--r-md);
}

.aw1 {
  background: linear-gradient(135deg, #4A90E2, #F5A623);
}

.aw2 {
  background: linear-gradient(135deg, #27AE60, #4A90E2);
}

.aw3 {
  background: linear-gradient(135deg, #E94560, #7B3F8C);
}

/* ── TOAST ──────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: .6rem 1.25rem;
  border-radius: var(--r-pill);
  font-size: .84rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease-spring);
  z-index: 2000;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── DEV NAV ────────────────────────────────────── */
.dev-nav {
  position: fixed;
  bottom: 5.5rem;
  /* Movido hacia arriba para que no tape la barra inferior */
  right: 1rem;
  z-index: 9000;
}

.dev-toggle {
  width: 42px;
  height: 42px;
  background: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
}

.dev-panel {
  position: absolute;
  bottom: 52px;
  right: 0;
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: 1rem;
  display: none;
  flex-direction: column;
  gap: .32rem;
  min-width: 185px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
  max-height: 400px;
  overflow-y: auto;
}

.dev-panel.open {
  display: flex;
}

.dev-panel strong {
  color: var(--amber);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .2rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.dev-panel button {
  color: rgba(255, 255, 255, .75);
  font-size: .8rem;
  font-weight: 700;
  text-align: left;
  padding: .33rem .5rem;
  border-radius: var(--r-sm);
  transition: background .12s;
}

.dev-panel button:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

/* ── ACCESSIBILITY ──────────────────────────────── */
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

input:focus-visible {
  outline: none;
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* Desktop mockup frame */
@media (min-width: 768px) {
  #phone-shell {
    width: 390px;
    height: 844px;
    border-radius: 2.75rem;
    box-shadow:
      0 0 0 10px #111,
      0 40px 100px rgba(0, 0, 0, .55),
      inset 0 0 0 1px rgba(255, 255, 255, .12);
  }

  #notch {
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 126px;
    height: 30px;
    background: #111;
    border-radius: 0 0 1.5rem 1.5rem;
    z-index: 9999;
  }

  #app {
    width: 390px;
    height: 844px;
  }

  .screen {
    padding-top: 30px;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .artist-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* ── ARTIST DETAIL SCREEN ───────────────────────── */
.artist-works-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.artist-works-carousel::-webkit-scrollbar {
  display: none;
}

.artwork-card {
  min-width: 260px;
  max-width: 260px;
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1.5px solid var(--border);
  box-shadow: 0 2px 8px rgba(28, 27, 46, .05);
  overflow: hidden;
  scroll-snap-align: start;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.artwork-img-container {
  width: 100%;
  height: 180px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.artwork-info {
  padding: 1rem;
  text-align: left;
}

.artwork-info h4 {
  font-size: 1rem;
  margin: 0 0 0.2rem 0;
  color: var(--ink);
}

.artwork-date {
  font-size: 0.8rem;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 0.5rem;
}

.artwork-info p {
  font-size: 0.85rem;
  color: var(--ink-light);
  line-height: 1.4;
  margin: 0;
}