/*! Manduca Club © 2026 Jordi Sain. Todos los derechos reservados. Uso, copia o distribución no autorizados prohibidos. */
@font-face {
  font-family: 'Fraunces'; src: url('fonts/fraunces.woff2') format('woff2');
  font-weight: 300 900; font-display: swap;
}
:root {
  --bg: #f6efe4; --paper: #fffaf2; --ink: #2b1d16; --muted: #8a7566; --line: #eadfce;
  --accent: #d9482b; --accent-2: #f3c9b8; --accent-ink: #fff; --olive: #5b6b3a;
  --star: #e8a317; --danger: #b3261e; --ok: #4a7a3a;
  --radius: 20px; --shadow: 0 1px 1px rgba(80,45,20,.05), 0 8px 24px -8px rgba(80,45,20,.18);
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --nav-h: 78px;
  color-scheme: light;
}
/* Tema oscuro: lo activa app.js (data-theme="dark") según la elección del usuario en "Yo" */
:root[data-theme="dark"] {
  --bg: #17120f; --paper: #221b17; --ink: #f6ece1; --muted: #a8968a; --line: #342a24;
  --accent: #ff6a47; --accent-2: #4a2a20; --accent-ink: #1a110d; --olive: #a9bb7c;
  --star: #f5b93a; --shadow: 0 8px 24px -10px rgba(0,0,0,.6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px);
}
a { color: var(--accent); }
h1, h2, h3, .display { font-family: var(--display); font-optical-sizing: auto; letter-spacing: -.015em; }

/* Barra superior */
#top {
  position: sticky; top: 0; z-index: 500; display: flex; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 18px 10px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-family: var(--display); font-weight: 700; font-size: 20px;
}
#top .logo {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: 16px;
}
body.no-top #top { display: none; }
main { max-width: 720px; margin: 0 auto; padding: 6px 18px 24px; }
.loading, .empty { text-align: center; color: var(--muted); padding: 48px 8px; }
.empty .big-emoji { font-size: 54px; display: block; margin-bottom: 8px; }

/* Navegación inferior flotante */
#nav {
  position: fixed; z-index: 600; left: 14px; right: 14px; bottom: calc(10px + env(safe-area-inset-bottom));
  height: 64px; display: flex; align-items: center; padding: 0 6px; max-width: 560px; margin: 0 auto;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
}
#nav[hidden] { display: none; }
#nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; height: 100%;
}
#nav a span { font-size: 20px; line-height: 1; }
#nav a.on { color: var(--ink); }
#nav a.on span { transform: scale(1.08); }
#nav a.add span {
  background: var(--accent); color: var(--accent-ink); width: 50px; height: 50px; border-radius: 17px;
  display: grid; place-items: center; font-size: 28px; font-weight: 300; margin-top: -26px;
  box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
#nav a.add { color: var(--accent); }

/* Formularios */
label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin: 16px 0 7px; text-transform: uppercase; letter-spacing: .04em; }
input, textarea, select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 14px; outline: none; transition: border-color .15s;
}
input:focus, textarea:focus { border-color: var(--accent); }
textarea { min-height: 84px; resize: vertical; }
.row { display: flex; gap: 10px; align-items: flex-end; }
.row > * { flex: 1; min-width: 0; }
.row > .shrink { flex: 0 0 auto; }
button, .btn {
  font: inherit; font-weight: 700; border: 0; border-radius: 14px; padding: 13px 18px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center; gap: 6px; white-space: nowrap; transition: transform .1s;
}
button:active, .btn:active { transform: scale(.97); }
button:disabled { opacity: .55; }
.btn-2 { background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); }
.btn-danger { background: transparent; color: var(--danger); border: 1.5px solid var(--line); }
.btn-block { width: 100%; margin-top: 20px; padding: 16px; font-size: 17px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.back { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; color: var(--muted); margin: 4px 0 6px; }

/* Login */
.login { max-width: 380px; margin: 0 auto; padding-top: calc(8vh + env(safe-area-inset-top)); }
.login .plate {
  width: 96px; height: 96px; border-radius: 30px; display: grid; place-items: center; font-size: 50px;
  background: var(--accent); box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--accent) 80%, transparent);
  transform: rotate(-6deg); margin-bottom: 22px;
}
.login h1 { font-size: 44px; line-height: 1; margin: 0 0 8px; font-weight: 800; }
.login p { color: var(--muted); margin: 0 0 10px; font-size: 17px; }
.err { color: var(--danger); font-size: 14px; min-height: 20px; margin-top: 10px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Lista: cabecera */
.hello { margin: 6px 0 14px; }
.hello h1 { font-size: 34px; line-height: 1.05; margin: 0; font-weight: 800; }
.hello h1 em { font-style: italic; color: var(--accent); font-weight: 600; }
.hello .sub { color: var(--muted); margin-top: 6px; }
.toolbar { position: sticky; top: calc(50px + env(safe-area-inset-top)); z-index: 400; background: var(--bg); padding: 2px 0 12px; margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
.search { position: relative; }
.search input { padding-left: 42px; border-radius: 16px; background: var(--paper); }
.search::before { content: '⌕'; position: absolute; left: 15px; top: 50%; transform: translateY(-52%); color: var(--muted); font-size: 21px; }
.chips { display: flex; gap: 7px; overflow-x: auto; margin: 12px -18px 0; padding: 0 18px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--paper); color: var(--ink); border: 1.5px solid var(--line);
}
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Lista: tarjetas */
.cards { display: grid; gap: 12px; }
.card {
  display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center;
  background: var(--paper); border-radius: var(--radius); padding: 14px; color: inherit; text-decoration: none;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.tile {
  width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; font-size: 30px;
  background: hsl(var(--h, 20) 70% 90%);
}
:root[data-theme="dark"] .tile { background: hsl(var(--h, 20) 30% 22%); }
.card h3 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .body { min-width: 0; }
.meta { color: var(--muted); font-size: 14px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tags { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: var(--bg); color: var(--muted); }
.tag.me { background: color-mix(in srgb, var(--olive) 16%, transparent); color: var(--olive); }
.rating { text-align: center; min-width: 50px; }
.rating b { display: block; font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1; }
.rating .s { font-size: 12px; }
.rating small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.rating.none b { font-size: 15px; color: var(--muted); font-family: inherit; font-weight: 600; }
.count { color: var(--muted); font-size: 13px; font-weight: 600; margin: 0 2px 10px; text-transform: uppercase; letter-spacing: .05em; }

/* Detalle */
.hero {
  background: var(--paper); border-radius: 26px; padding: 18px; box-shadow: var(--shadow); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.hero::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 92px; background: hsl(var(--h, 20) 70% 90%); }
:root[data-theme="dark"] .hero::before { background: hsl(var(--h, 20) 30% 20%); }
.hero > * { position: relative; }
.hero .tile { width: 76px; height: 76px; font-size: 42px; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); margin-top: 26px; }
.hero h1 { margin: 14px 0 2px; font-size: 32px; line-height: 1.05; font-weight: 800; }
.hero .meta { white-space: normal; }
.stats { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-top: 18px; }
.bigscore b { font-family: var(--display); font-size: 54px; font-weight: 800; line-height: .9; display: block; }
.bigscore .s { font-size: 15px; }
.bigscore small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.dist { display: grid; gap: 4px; }
.dist div { display: grid; grid-template-columns: 12px 1fr; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); font-weight: 700; }
.dist i { display: block; height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
.dist i::after { content: ''; display: block; height: 100%; width: var(--w); background: var(--star); border-radius: 4px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.pill { display: inline-flex; align-items: center; gap: 5px; background: var(--bg); border-radius: 12px; padding: 8px 12px; font-size: 14px; font-weight: 600; }
.pill b { font-family: var(--display); font-size: 17px; }
.minimap { height: 170px; border-radius: 18px; margin-top: 16px; z-index: 0; }
h2 { font-size: 22px; margin: 28px 0 10px; font-weight: 700; }
h2 small { font-family: -apple-system, sans-serif; font-size: 14px; color: var(--muted); font-weight: 500; }
.box { background: var(--paper); border-radius: var(--radius); padding: 4px 16px 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.review { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px;
  background: hsl(var(--h) 60% 85%); color: hsl(var(--h) 50% 28%);
}
:root[data-theme="dark"] .avatar { background: hsl(var(--h) 30% 28%); color: hsl(var(--h) 60% 85%); }
.review .who { font-weight: 700; }
.review p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.review.solo { display: block; color: var(--muted); }
.s { color: var(--star); letter-spacing: 1px; }

/* Selector de estrellas */
.stars { display: flex; gap: 6px; }
.stars button { background: none; color: var(--line); font-size: 40px; padding: 0; line-height: 1; border: 0; transition: transform .12s, color .12s; }
.stars button.on { color: var(--star); }
.stars button:active { transform: scale(1.25); }

/* Ubicación */
.results { list-style: none; margin: 8px 0 0; padding: 0; border-radius: 14px; overflow: hidden; border: 1.5px solid var(--line); }
.results:empty { display: none; }
.results li { padding: 11px 14px; background: var(--paper); border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; color: var(--muted); }
.results li:last-child { border-bottom: 0; }
.results li b { display: block; font-size: 15px; color: var(--ink); }
.picked { font-size: 14px; color: var(--ok); margin-top: 10px; font-weight: 600; }

/* Mapa */
body.full main { padding: 0; }
#bigmap { position: fixed; z-index: 1; inset: 0; }
.pin {
  background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; border-radius: 999px;
  padding: 4px 9px; border: 2.5px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.3); white-space: nowrap;
  transform: translate(-50%, -50%); display: inline-block;
}
.pin.none { background: #8a7566; width: 18px; height: 18px; padding: 0; }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-popup-content a { font-weight: 700; font-size: 15px; }

/* Toast */
/* Aviso grande en el centro (verde = guardado, rojo = error). Se cierra solo o tocándolo. */
#toast {
  position: fixed; left: 50%; top: 50%; z-index: 1000;
  transform: translate(-50%, -50%) scale(.85); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .25s cubic-bezier(.2,.9,.3,1.3);
  width: min(86vw, 360px); padding: 26px 22px 24px; border-radius: 24px; text-align: center;
  background: var(--ink); color: var(--bg); box-shadow: 0 24px 60px -12px rgba(0,0,0,.55);
  display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer;
}
#toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
#toast .t-icon {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-size: 36px; font-weight: 800; line-height: 1; background: rgba(255,255,255,.2);
}
#toast .t-msg { font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.25; }
#toast.ok { background: var(--ok); color: #fff; }
#toast .t-sub { font-size: 16px; font-weight: 600; opacity: .9; margin-top: -4px; }
#toast.err { background: var(--danger); color: #fff; }
#toast.err .t-msg { font-family: inherit; font-size: 18px; }
/* Botón que confirma el guardado */
button.saved, .btn.saved { background: var(--ok) !important; color: #fff !important; border-color: var(--ok) !important; }

/* Copyright */
.copy { text-align: center; color: var(--muted); font-size: 12px; margin: 32px 0 8px; opacity: .85; }

/* Portada de bienvenida */
body.welcome { padding-bottom: 0; background: var(--accent); }
body.welcome main { max-width: none; padding: 0; }
.cover {
  position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden; color: #fff8ee;
  background:
    radial-gradient(120% 70% at 85% 0%, #f07a52 0%, transparent 60%),
    radial-gradient(90% 60% at 0% 100%, #a8331c 0%, transparent 65%),
    #d9482b;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: calc(40px + env(safe-area-inset-top)) 26px calc(18px + env(safe-area-inset-bottom));
}
.cover::before { /* grano de papel */
  content: ''; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.7) 1px, transparent 1px); background-size: 6px 6px;
}
.float {
  position: absolute; font-size: 38px; width: 66px; height: 66px; display: grid; place-items: center;
  background: rgba(255,248,238,.16); border: 1px solid rgba(255,248,238,.28); border-radius: 22px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: bob 6s ease-in-out infinite;
}
.f1 { top: 7%;  left: 8%;  transform: rotate(-10deg); }
.f2 { top: 4%;  right: 12%; animation-delay: -1s; }
.f3 { top: 22%; right: 4%;  animation-delay: -2s; font-size: 30px; width: 54px; height: 54px; }
.f4 { top: 25%; left: 2%;   animation-delay: -3s; font-size: 30px; width: 54px; height: 54px; }
.f5 { top: 44%; left: 6%;   animation-delay: -4s; }
.f6 { top: 46%; right: 7%;  animation-delay: -5s; font-size: 30px; width: 54px; height: 54px; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }

.ticket {
  position: relative; width: min(290px, 78vw); margin: 0 auto auto; margin-top: 9vh;
  background: #fffaf2; color: #2b1d16; border-radius: 6px 6px 0 0; padding: 18px 18px 26px;
  font: 600 13px/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .02em;
  transform: rotate(-4deg); box-shadow: 0 30px 50px -20px rgba(60,15,5,.55);
  animation: drop .7s cubic-bezier(.2,.9,.3,1.2) both;
}
.ticket::after { /* borde dentado */
  content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background: linear-gradient(-45deg, transparent 7px, #fffaf2 0) 0 0 / 14px 10px repeat-x,
              linear-gradient(45deg, transparent 7px, #fffaf2 0) 0 0 / 14px 10px repeat-x;
}
@keyframes drop { from { opacity: 0; transform: translateY(-30px) rotate(-12deg); } }
.t-head { display: flex; justify-content: space-between; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 2px dashed #e3d5c2; color: #d9482b; font-weight: 800; }
.t-row { display: flex; align-items: baseline; gap: 6px; padding: 5px 0; }
.t-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-row i { flex: 1; border-bottom: 2px dotted #d8c9b5; transform: translateY(-3px); min-width: 12px; }
.t-row b { color: #c88a0c; }
.t-row b::before { content: '★ '; }
.t-total { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 2px dashed #e3d5c2; font-size: 15px; font-weight: 800; }
.t-total b { background: #d9482b; color: #fff; padding: 1px 9px; border-radius: 6px; transform: rotate(4deg); }

.c-text { position: relative; width: 100%; max-width: 420px; text-align: center; margin-top: 30px; }
.cover h1 { font-family: var(--display); font-size: clamp(52px, 16vw, 76px); line-height: .95; margin: 0; font-weight: 800; letter-spacing: -.03em; font-style: italic; }
.cover p { font-size: 18px; margin: 12px 0 26px; opacity: .92; }
.c-btn {
  width: 100%; padding: 18px; font-size: 18px; border-radius: 18px;
  background: #fff8ee; color: #2b1d16; box-shadow: 0 14px 28px -12px rgba(60,15,5,.6);
}
.c-btn span { transition: transform .2s; }
.c-btn:active span { transform: translateX(4px); }
.c-small { font-size: 13px; opacity: .75; margin-top: 14px; }
.cover .copy { position: relative; color: #fff8ee; opacity: .6; margin: 22px 0 0; }
.login .back { margin-bottom: 18px; }
.t-row b { white-space: nowrap; }
@media (max-height: 720px) {
  .cover { padding-top: calc(20px + env(safe-area-inset-top)); }
  .ticket { margin-top: 3vh; padding: 14px 16px 18px; font-size: 12px; width: min(270px, 76vw); }
  .t-row { padding: 3px 0; }
  .t-row:nth-of-type(5) { display: none; }
  .float { width: 52px; height: 52px; font-size: 28px; border-radius: 18px; }
  .f5, .f6 { display: none; }
  .c-text { margin-top: 18px; }
  .cover p { font-size: 16px; margin: 8px 0 18px; }
  .c-btn { padding: 15px; }
  .cover .copy { margin-top: 12px; }
}
/* Centrado vertical en cualquier altura de pantalla */
.cover { justify-content: center; padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
.ticket { margin: 0 auto; }
.c-text { margin-top: clamp(26px, 7vh, 72px); }
.cover .copy { position: absolute; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); margin: 0; }
@media (max-height: 720px) { .cover { padding-bottom: calc(50px + env(safe-area-inset-bottom)); } .c-text { margin-top: 18px; } }

/* Avatar del chef */
.t-wrap { position: relative; width: min(290px, 78vw); margin: 0 auto; }
.t-wrap .ticket { width: 100%; }
.chef-badge {
  position: absolute; right: -26px; bottom: -54px; width: 124px; text-align: center;
  transform: rotate(8deg); animation: pop .6s .35s cubic-bezier(.2,.9,.3,1.4) both;
}
.chef-badge img { width: 124px; height: 124px; display: block; filter: drop-shadow(0 10px 16px rgba(60,15,5,.45)); }
.chef-badge span {
  display: inline-block; margin-top: -8px; position: relative; background: #2b1d16; color: #fff8ee;
  font: 700 11px/1 -apple-system, sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 8px;
}
@keyframes pop { from { opacity: 0; transform: scale(.4) rotate(-20deg); } }
.login .plate { overflow: visible; }
.login .plate img { width: 104px; height: 104px; transform: rotate(6deg) translateY(-6px); filter: drop-shadow(0 6px 10px rgba(60,15,5,.35)); }
img.avatar.img { width: 38px; height: 38px; background: none; object-fit: contain; }
.me-avatar { width: 110px; height: 110px; display: block; margin: 4px 0 -4px -6px; filter: drop-shadow(0 8px 14px rgba(80,45,20,.25)); }
.copy { display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; }
.copy img { width: 22px; height: 22px; }
.cover .c-text { margin-top: clamp(64px, 10vh, 96px); }
@media (max-height: 720px) {
  .t-wrap { width: min(260px, 72vw); }
  .chef-badge { width: 96px; right: -22px; bottom: -40px; }
  .chef-badge img { width: 96px; height: 96px; }
  .cover .c-text { margin-top: 52px; }
}
/* Sello del chef: abajo a la izquierda, sin tapar el tique */
.chef-badge { left: -30px; right: auto; bottom: -96px; width: 116px; transform: rotate(-8deg); }
.chef-badge img { width: 116px; height: 116px; }
.chef-badge span { white-space: nowrap; }
.f5 { display: none; }
.cover .c-text { margin-top: clamp(104px, 13vh, 130px); }
@media (max-height: 720px) {
  .chef-badge { left: -24px; bottom: -74px; width: 92px; }
  .chef-badge img { width: 92px; height: 92px; }
  .cover .c-text { margin-top: 84px; }
}
.t-total { justify-content: flex-end; gap: 10px; }
@media (max-height: 720px) {
  .c-small { display: none; }
  .cover .copy { font-size: 11px; }
}

/* Sello con el nombre alrededor del círculo (sustituye a "Chef de la casa") */
.chef-badge { width: 172px; left: -44px; bottom: -128px; transform: rotate(-8deg); }
.chef-badge svg { width: 172px; height: 172px; display: block; overflow: visible; filter: drop-shadow(0 10px 14px rgba(60,15,5,.45)); }
.seal-text { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 2.2px; fill: #fff8ee; }
.cover .c-text { margin-top: clamp(118px, 15vh, 150px); }
@media (max-height: 720px) {
  .chef-badge { width: 136px; left: -34px; bottom: -100px; }
  .chef-badge svg { width: 136px; height: 136px; }
  .cover .c-text { margin-top: 96px; }
}
.seal-text { font-size: 16px; letter-spacing: 2.6px; }

/* Selector de tema en "Yo" */
.seg { display: flex; gap: 4px; padding: 4px; margin: 12px 0 0; background: var(--bg); border-radius: 14px; }
.seg button { flex: 1; padding: 10px 6px; font-size: 14px; background: transparent; color: var(--muted); border-radius: 11px; }
.seg button.on { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.review .mod-del { margin-top: 10px; padding: 7px 12px; font-size: 13px; }

/* Logo de la cabecera = volver al inicio */
#top .home { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
#nav a span svg { display: block; }
