/* =====================================================================
   Catalog layouts (grid / tiles / list / magazine / swipe) + dish page
   ===================================================================== */
body:not(.fixed) .top { position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.stage-emoji { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(90px, 26vw, 170px); filter: drop-shadow(0 18px 30px rgb(0 0 0 / .35)); }
.emoji { display: grid; place-items: center; width: 100%; height: 100%; font-size: 3.2em; line-height: 1; }
img.obj { width: 100%; height: 100%; object-fit: contain; }
img.cover { width: 100%; height: 100%; object-fit: cover; }
.ar-chip { position: absolute; inset-inline-end: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 99px; background: var(--primary); color: var(--on-primary); font-size: 11px; font-weight: 800; letter-spacing: .04em; box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 40%, transparent); }
.ar-chip svg { width: 13px; height: 13px; }
.badge { z-index: 2; }

.hero { padding: 6px 16px 4px; }
.hero-in { position: relative; display: flex; align-items: center; gap: 14px; border-radius: calc(var(--radius) + 8px); padding: 20px 18px; background: var(--card-stage); overflow: hidden; min-height: 132px; }
.hero-in[style*='--cover'] { background: linear-gradient(to top, rgb(0 0 0 / .65), rgb(0 0 0 / .15)), var(--cover) center/cover; color: #fff; min-height: 190px; align-items: flex-end; }
.hero-txt { flex: 1; min-width: 0; position: relative; z-index: 1; }
.hero h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(26px, 7.5vw, 44px); line-height: 1.05; margin: 0 0 6px; letter-spacing: -.01em; }
.hero p { margin: 0 0 12px; color: color-mix(in srgb, currentColor 72%, transparent); font-size: 14.5px; }
.tap-hint { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 99px; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 13px; box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 35%, transparent); }
.hero-img { width: 38%; max-width: 190px; aspect-ratio: 1; flex: none; filter: drop-shadow(0 16px 22px rgb(0 0 0 / .35)); animation: bob 5s ease-in-out infinite; }
.hero-img .emoji { font-size: 4.4em; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-2deg); } }

.ccats { position: sticky; z-index: 4; top: calc(max(10px, env(safe-area-inset-top)) + 48px); display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); scrollbar-width: none; }
.ccats::-webkit-scrollbar { display: none; }
.ccats button { flex: none; height: 36px; padding: 0 14px; border-radius: var(--btn-radius); background: var(--soft); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.ccats button.on { background: var(--text); color: var(--bg); border-color: transparent; }

.catalog { padding: 4px 16px 24px; }
.sec { scroll-margin-top: 120px; }
.sec-h { font-family: var(--font-head); font-weight: 700; font-size: 22px; margin: 22px 0 12px; display: flex; align-items: center; gap: 8px; }
.sec-h span { flex: none; }
.sec-h::after { content: ''; flex: 1; height: 1px; background: var(--line); margin-inline-start: 6px; }
.powered { display: block; text-align: center; color: var(--muted); font-size: 12px; text-decoration: none; padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); opacity: .85; }
.powered b { color: var(--text); }
[data-dish] { cursor: pointer; -webkit-user-select: none; user-select: none; }
[data-dish]:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* ---------- grid ---------- */
.C-grid .sec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gcard { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform .15s; }
.gcard:active { transform: scale(.98); }
.g-media { position: relative; aspect-ratio: 1; background: var(--card-stage); overflow: hidden; }
.g-media .badge { position: absolute; top: 8px; inset-inline-start: 8px; font-size: 10.5px; padding: 4px 8px; }
.g-txt { padding: 10px 11px 11px; display: flex; flex-direction: column; flex: 1; }
.g-txt h3 { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.2; }
.g-txt p { margin: 4px 0 8px; color: var(--muted); font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.g-foot b { color: var(--primary); font-size: 15px; font-family: var(--font-head); }
.mini-info { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--muted); }

/* ---------- tiles ---------- */
.C-tiles .sec-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tcard { text-align: center; }
.t-media { position: relative; aspect-ratio: 1; border-radius: calc(var(--radius) - 2px); background: var(--card-stage); overflow: hidden; border: 1px solid var(--line); }
.t-media .emoji { font-size: 2.4em; }
.t-ar { position: absolute; top: 6px; inset-inline-end: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); }
.t-ar svg { width: 13px; height: 13px; }
.tcard h3 { margin: 6px 0 1px; font-size: 12.5px; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard b { color: var(--primary); font-size: 12.5px; }

/* ---------- classic list ---------- */
.C-list .sec-h { justify-content: center; text-transform: uppercase; letter-spacing: .14em; font-size: 15px; color: var(--primary); }
.C-list .sec-h::before { content: ''; flex: 1; height: 1px; background: var(--line); margin-inline-end: 6px; }
.lrow { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.l-thumb { width: 64px; height: 64px; flex: none; border-radius: 14px; background: var(--card-stage); overflow: hidden; }
.l-thumb .emoji { font-size: 1.9em; }
.l-txt { flex: 1; min-width: 0; }
.l-line { display: flex; align-items: baseline; gap: 8px; }
.l-line h3 { margin: 0; font-family: var(--font-head); font-size: 17px; font-weight: 600; }
.l-line i { flex: 1; border-bottom: 2px dotted color-mix(in srgb, var(--text) 25%, transparent); transform: translateY(-4px); min-width: 12px; }
.l-line b { font-family: var(--font-head); font-size: 16px; color: var(--primary); white-space: nowrap; }
.l-txt p { margin: 3px 0 6px; color: var(--muted); font-size: 13px; }
.l-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.l-ar { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--on-primary); background: var(--primary); padding: 4px 9px; border-radius: 99px; }
.l-ar svg { width: 13px; height: 13px; }
.l-meta .badge { font-size: 11px; padding: 3px 8px; }
.l-alg span { font-size: 11px; color: var(--muted); margin-inline-end: 6px; }

/* ---------- magazine ---------- */
.C-magazine .sec-h { font-size: clamp(28px, 8vw, 40px); }
.C-magazine .sec-list { display: grid; gap: 18px; }
.mcard { border-radius: calc(var(--radius) + 6px); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.m-media { position: relative; aspect-ratio: 4 / 3; background: var(--card-stage); }
.m-media img.obj { width: 82%; height: 92%; margin: 4% 9%; filter: drop-shadow(0 22px 26px rgb(0 0 0 / .35)); }
.m-media .emoji { font-size: 5.5em; }
.m-media .badge { position: absolute; top: 14px; inset-inline-start: 14px; }
.m-txt { padding: 16px 18px 18px; }
.m-txt h3 { margin: 0; font-family: var(--font-head); font-size: 26px; font-weight: 700; line-height: 1.1; }
.m-txt p { margin: 6px 0 14px; color: var(--muted); font-size: 14.5px; }
.m-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.m-foot b { font-family: var(--font-head); font-size: 22px; color: var(--primary); }
.m-ar { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-radius: var(--btn-radius); background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 14px; }
.m-ar.ghost { background: var(--soft); color: var(--text); border: 1px solid var(--line); }

/* ---------- swipe (one dish per screen) ---------- */
body.L-swipe { overflow: hidden; }
body.L-swipe .top { position: fixed; inset-inline: 0; top: 0; z-index: 6; background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 80%, transparent), transparent); backdrop-filter: none; -webkit-backdrop-filter: none; }
body.L-swipe .hero, body.L-swipe .powered { display: none; }
body.L-swipe .ccats { position: fixed; inset-inline: 0; top: calc(max(10px, env(safe-area-inset-top)) + 50px); background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.L-swipe .ccats button { background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
body.L-swipe .ccats button.on { background: var(--text); }
.C-swipe { position: fixed; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; padding: 0; overscroll-behavior: contain; scrollbar-width: none; }
.C-swipe::-webkit-scrollbar { display: none; }
.slide { position: relative; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; justify-content: flex-end; background: var(--card-stage); overflow: hidden; }
.s-media { position: absolute; inset: 110px 6% 34%; display: grid; place-items: center; }
.s-media img.obj { filter: drop-shadow(0 30px 34px rgb(0 0 0 / .4)); }
.s-media img.cover { border-radius: calc(var(--radius) + 6px); }
.s-media .emoji { font-size: 9em; }
.slide > .badge { position: absolute; top: 108px; inset-inline-start: 18px; }
.s-txt { position: relative; padding: 22px 20px calc(26px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 55%, transparent); }
.s-txt h3 { margin: 0; font-family: var(--font-head); font-size: clamp(28px, 8vw, 40px); font-weight: 700; line-height: 1.05; }
.s-txt p { margin: 8px 0 16px; color: var(--muted); font-size: 15px; max-width: 520px; }
.s-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.s-foot > b { font-family: var(--font-head); font-size: 26px; color: var(--primary); }
.s-btns { display: flex; gap: 8px; }
.s-ar { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 20px; border-radius: var(--btn-radius); background: var(--primary); color: var(--on-primary); font-weight: 800; font-size: 15px; box-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 45%, transparent); }
.s-3d { width: 50px; height: 50px; border-radius: var(--btn-radius); display: inline-grid; place-items: center; background: var(--soft); border: 1px solid var(--line); }
.s-3d.wide { width: auto; padding: 0 16px; display: inline-flex; gap: 8px; font-weight: 600; }
.s-end { height: 40dvh; display: grid; place-items: center; scroll-snap-align: end; color: var(--muted); font-family: var(--font-head); font-size: 20px; }

/* ---------- dish page ---------- */
.dview { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: flex; flex-direction: column; overflow-y: auto; animation: up .3s cubic-bezier(.2, .9, .3, 1); }
.dv-stage { position: relative; flex: none; height: min(58dvh, 520px); background: var(--stage-bg); isolation: isolate; }
.dv-stage.bg-color { background: var(--stage-color); }
.dv-stage.bg-image { background: var(--stage-image) center/cover no-repeat, var(--bg); }
.dv-stage.glow::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: 12%; height: 24%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); filter: blur(8px); z-index: -1; }
.dv-close { position: absolute; top: max(14px, env(safe-area-inset-top)); inset-inline-end: 14px; z-index: 3; }
.dv-badge { position: absolute; top: max(18px, env(safe-area-inset-top)); inset-inline-start: 16px; }
.dv-body { padding: 18px 18px calc(28px + env(safe-area-inset-bottom)); max-width: 640px; width: 100%; margin: 0 auto; }
.dv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.dv-head h2 { margin: 0; font-family: var(--font-head); font-size: clamp(26px, 7vw, 34px); line-height: 1.08; }
.dv-head b { font-family: var(--font-head); font-size: 24px; color: var(--primary); white-space: nowrap; }
.dv-desc { color: var(--muted); margin: 8px 0 0; }
.dv-actions { display: grid; gap: 10px; margin-top: 16px; }
.ar-btn.big { width: 100%; justify-content: center; height: 54px; font-size: 16px; }
.dv-actions .wa-btn { margin: 0; }
.dv-body h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 8px; font-weight: 600; }
.muted { color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80; max-width: min(92vw, 460px); padding: 12px 16px; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; text-align: center; box-shadow: 0 16px 40px rgb(0 0 0 / .35); animation: fade .2s; }
.missing { position: fixed; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: #111; color: #eee; font-family: system-ui, sans-serif; z-index: 100; }
.missing b { font-size: 56px; display: block; }
.missing a { color: #ffb36b; font-weight: 700; }

@media (min-width: 700px) {
  .C-grid .sec-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .C-tiles .sec-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .C-magazine .sec-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog, .hero { max-width: 1100px; margin-inline: auto; }
  .ccats { justify-content: center; }
  .dview { flex-direction: row; }
  .dv-stage { flex: 1 1 60%; height: 100dvh; }
  .dv-body { flex: 1 1 40%; max-width: 480px; padding-top: 70px; }
}
@media (min-width: 1100px) { .C-grid .sec-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
