/* Flow Discover — light food-delivery UI */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --surface: #ffffff;
  --ink: #181c2e;
  --ink-2: #646982;
  --ink-3: #a0a5ba;
  --line: #ededed;
  --field: #f6f7f9;
  --accent: #fc6e2a;
  --accent-soft: #ffeade;
  --star: #ff9c00;
  --cta-bg: #181c2e;
  --cta-ink: #ffffff;
  --scrim: rgba(24, 28, 46, 0.45);
  --skel-1: #f0f1f4;
  --skel-2: #f8f9fb;
  --art-bldg: #2f3550;
  --art-trim: #3c4363;
  --art-door: #434a6d;
  --shadow-sm: 0 4px 16px rgba(24, 28, 46, 0.05);
  --shadow-md: 0 12px 30px rgba(24, 28, 46, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.3, 0.5, 1);
  --sans: "Sen", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --pad: 20px;
}
@media (min-width: 600px) { :root { --pad: 24px; } }

:root[data-theme="dark"] {
  --bg: #101116;
  --bg-soft: #191b23;
  --surface: #191b23;
  --ink: #f1f2f6;
  --ink-2: #a2a8bb;
  --ink-3: #6d7386;
  --line: #262932;
  --field: #1b1e27;
  --accent: #ff7f3d;
  --accent-soft: rgba(255, 127, 61, 0.16);
  --star: #ffb020;
  --cta-bg: #f1f2f6;
  --cta-ink: #101116;
  --scrim: rgba(0, 0, 0, 0.66);
  --skel-1: #1b1e27;
  --skel-2: #232733;
  --art-bldg: #464e73;
  --art-trim: #58608a;
  --art-door: #5d6595;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.dir-body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
::selection { background: var(--accent-soft); }

.dir-wrap { width: 100%; max-width: 560px; margin: 0 auto; padding-inline: var(--pad); }

/* ── Header ── */
.dir-top {
  padding-top: calc(18px + env(safe-area-inset-top));
  padding-bottom: 4px;
}
.dir-top-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.dir-loc { text-align: left; min-width: 0; }
.dir-loc-kicker {
  display: block;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 2px;
}
.dir-loc-btn {
  appearance: none; border: 0; background: none; padding: 0;
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 100%;
  font: inherit; font-size: 0.95rem; font-weight: 700; color: var(--ink-2);
  cursor: pointer;
}
.dir-loc-btn span {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dir-loc-btn svg { width: 14px; height: 14px; color: var(--ink); }
.dir-loc-btn:hover { color: var(--ink); }

.dir-top-actions { display: flex; align-items: center; gap: 8px; }

.dir-theme {
  appearance: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); padding: 0;
  transition: color 0.2s, border-color 0.2s, transform 0.25s var(--spring);
}
.dir-theme:hover { color: var(--accent); border-color: var(--accent); }
.dir-theme:active { transform: scale(0.92); }
.dir-theme svg { width: 18px; height: 18px; }
.dir-theme .icon-sun { display: none; }
:root[data-theme="dark"] .dir-theme .icon-sun { display: block; }
:root[data-theme="dark"] .dir-theme .icon-moon { display: none; }

.dir-top-cta {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 20px;
  background: var(--cta-bg); color: var(--cta-ink);
  text-decoration: none; font-size: 0.78rem; font-weight: 700;
  white-space: nowrap;
  transition: transform 0.25s var(--spring), filter 0.2s;
}
.dir-top-cta:hover { filter: brightness(1.15); transform: translateY(-1px); }
.dir-top-cta:active { transform: scale(0.96); }

.dir-greet {
  margin: 20px 0 16px;
  font-size: 1.15rem; font-weight: 400; color: var(--ink-2);
  letter-spacing: -0.01em;
}
.dir-greet b { font-weight: 800; color: var(--ink); }

/* ── Sticky tabs + search ── */
.dir-stick {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg);
  padding-top: 4px;
  padding-bottom: 8px;
}
.dir-stick.is-stuck { box-shadow: 0 1px 0 var(--line); }

.dir-stick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dir-switch {
  display: flex;
  align-items: baseline;
  gap: 20px;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: none;
}
.dir-switch a {
  flex: none;
  text-align: left;
  padding: 8px 0 10px;
  border-radius: 0;
  text-decoration: none;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-3);
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.dir-switch a:hover { color: var(--ink-2); }
.dir-switch a.is-on {
  background: none;
  color: var(--ink);
  box-shadow: none;
}
.dir-switch a.is-on::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 5px;
  background: var(--accent);
  transform-origin: left center;
  animation: dir-tab-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes dir-tab-in {
  from { transform: scaleX(0); opacity: 0.4; }
  to { transform: scaleX(1); opacity: 1; }
}
:root[data-theme="dark"] .dir-switch a.is-on { background: none; }

.dir-search-btn {
  appearance: none;
  width: 40px; height: 40px;
  border: 0; background: none; padding: 0;
  color: var(--ink);
  display: grid; place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}
.dir-search-btn svg { width: 20px; height: 20px; }
.dir-search-btn .dir-search-close { display: none; }
.dir-search-btn:active { transform: scale(0.9); }
.dir-search-btn:hover { background: var(--field); }
body.dir-search-on .dir-search-btn { color: var(--accent); }
body.dir-search-on .dir-search-btn .dir-search-ico { display: none; }
body.dir-search-on .dir-search-btn .dir-search-close { display: block; }

.dir-search-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.dir-search-panel.is-open { grid-template-rows: 1fr; }
.dir-search-panel-inner { overflow: hidden; }
.dir-search-bar {
  display: flex; align-items: center; gap: 10px;
  height: 46px; margin-top: 8px; padding: 0 14px;
  background: var(--field);
  border: 0;
  border-radius: 10px;
}
.dir-search-bar svg { width: 16px; height: 16px; color: var(--ink-3); flex-shrink: 0; }
.dir-search {
  flex: 1; min-width: 0;
  border: 0; background: transparent; outline: none;
  font: inherit; font-size: 0.94rem; font-weight: 500; color: var(--ink);
}
.dir-search::placeholder { color: var(--ink-3); font-weight: 400; }
.dir-search::-webkit-search-cancel-button { -webkit-appearance: none; }

@media (max-width: 400px) {
  .dir-switch { gap: 14px; }
  .dir-switch a { font-size: 1.12rem; }
}
@media (prefers-reduced-motion: reduce) {
  .dir-search-panel, .dir-switch a, .dir-switch a.is-on::after {
    transition: none !important; animation: none !important;
  }
}

/* ── Section head ── */
.dir-sec { margin-top: 26px; }
.dir-sec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.dir-sec-head h2 {
  margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em;
}
.dir-sec-head span { font-size: 0.76rem; font-weight: 700; color: var(--ink-3); }

/* ── Category chips ── */
.dir-chips {
  display: flex; gap: 8px;
  /* overflow-x:auto also clips vertically, so the row needs enough padding to
     hold the active chip's glow — negative margins keep the spacing unchanged */
  overflow-x: auto;
  padding: 12px var(--pad) 24px;
  margin-inline: calc(-1 * var(--pad));
  margin-block: -10px -16px;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-padding-inline: var(--pad);
  -webkit-overflow-scrolling: touch;
}
.dir-chips::-webkit-scrollbar { display: none; }
.dir-chip {
  flex-shrink: 0;
  appearance: none; cursor: pointer;
  padding: 9px 16px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-size: 0.8rem; font-weight: 700; color: var(--ink-2);
  transition: all 0.25s var(--ease);
}
.dir-chip:active { transform: scale(0.95); }
.dir-chip:hover { border-color: var(--accent); color: var(--accent); }
.dir-chip.is-on {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 6px 16px rgba(252, 110, 42, 0.3);
}

/* ── Restaurant card ── */
.dir-list { display: grid; gap: 22px; }

.dir-card {
  display: block; text-decoration: none; color: inherit;
  opacity: 0; transform: translateY(18px);
  transition: transform 0.25s var(--spring);
}
.dir-card.is-in { animation: dir-rise 0.55s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms); }
.dir-card:active { transform: scale(0.985); }

.dir-cover {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-soft);
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--ease);
}
.dir-card:hover .dir-cover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.dir-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
/* keeps the white badges readable on bright dishes */
.dir-cover:not(.is-art)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(24, 28, 46, 0.22), transparent 34%);
}
.dir-card:hover .dir-cover img { transform: scale(1.05); }

/* Illustrated fallback for businesses with no photos.
   Derived here, not on :root, so each card's own --art-h applies. */
.dir-cover.is-art {
  --art-1: hsl(var(--art-h, 24) 90% 94%);
  --art-2: hsl(var(--art-h, 24) 85% 85%);
  --art-3: hsl(var(--art-h, 24) 82% 58%);
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 35%, var(--art-2), transparent 62%),
    linear-gradient(160deg, var(--art-1), var(--art-2));
}
:root[data-theme="dark"] .dir-cover.is-art {
  --art-1: hsl(var(--art-h, 24) 38% 17%);
  --art-2: hsl(var(--art-h, 24) 44% 27%);
  --art-3: hsl(var(--art-h, 24) 78% 56%);
}
/* direct child only — descendant would also catch the badge icons */
.dir-cover.is-art > svg { width: 62%; height: auto; max-height: 88%; overflow: visible; }
.dir-sign-text {
  font-family: var(--sans); font-weight: 800; fill: #fff;
  letter-spacing: 0.02em;
}
.dir-sign-glow { filter: blur(2.4px); opacity: 0.4; }
/* blurred so the drifting motes read as light, not as specks */
.dir-amb { filter: blur(1.8px); }

/* Idle motion, only while the card is near the viewport (see .is-live) */
.dir-card.is-live .dir-art-shop { animation: dir-shop-float 6.5s ease-in-out infinite; }
.dir-card.is-live .dir-art-shadow {
  transform-box: fill-box; transform-origin: center;
  animation: dir-shop-shadow 6.5s ease-in-out infinite;
}
.dir-card.is-live .dir-awn {
  transform-box: fill-box; transform-origin: 50% 0;
  animation: dir-awn-sway 5.2s ease-in-out infinite;
}
.dir-card.is-live .dir-sign-glow {
  transform-box: fill-box; transform-origin: center;
  animation: dir-sign-pulse 3.8s ease-in-out infinite;
}
.dir-card.is-live .dir-window-glow { animation: dir-glow 4.5s ease-in-out infinite; }
.dir-card.is-live .dir-pole-stripes { animation: dir-pole 1.8s linear infinite; }
.dir-card.is-live .dir-plant {
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: dir-plant-sway 4.4s ease-in-out infinite;
}
.dir-amb circle, .dir-steam circle, .dir-spark {
  transform-box: fill-box; transform-origin: center;
}
.dir-card.is-live .dir-amb-a { animation: dir-amb-drift 9s ease-in-out infinite; }
.dir-card.is-live .dir-amb-b { animation: dir-amb-drift 11s ease-in-out -3.5s infinite; }
.dir-card.is-live .dir-amb-c { animation: dir-amb-drift 8s ease-in-out -5s infinite; }
.dir-steam circle { opacity: 0; }
.dir-card.is-live .dir-steam-a { animation: dir-steam 3.6s ease-out infinite; }
.dir-card.is-live .dir-steam-b { animation: dir-steam 3.6s ease-out -1.2s infinite; }
.dir-card.is-live .dir-steam-c { animation: dir-steam 3.6s ease-out -2.4s infinite; }
.dir-spark { opacity: 0.2; }
.dir-card.is-live .dir-spark-a { animation: dir-twinkle 3.2s ease-in-out infinite; }
.dir-card.is-live .dir-spark-b { animation: dir-twinkle 3.2s ease-in-out -1.1s infinite; }
.dir-card.is-live .dir-spark-c { animation: dir-twinkle 3.2s ease-in-out -2.1s infinite; }

.dir-badge {
  position: absolute; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  height: 27px; padding: 0 11px; border-radius: 14px;
  /* sits on photos, so it stays light in both themes */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  font-size: 0.7rem; font-weight: 800; color: #181c2e;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.dir-badge svg { width: 12px; height: 12px; color: #fc6e2a; }
.dir-rating-of { font-size: 0.88em; font-weight: 700; opacity: 0.68; letter-spacing: -0.03em; }
.dir-meta-item .dir-rating-of { font-size: 0.92em; opacity: 0.75; }
.dir-badge.is-price { left: auto; right: 10px; color: #fc6e2a; }

.dir-card-body { padding: 11px 2px 0; }
.dir-card-body h3 {
  margin: 0; font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dir-card-sub {
  margin: 4px 0 0; font-size: 0.82rem; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.dir-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px 14px;
  margin-top: 10px;
}
.dir-meta-item {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.8rem; font-weight: 700; color: var(--ink);
}
.dir-meta-item svg { width: 15px; height: 15px; }
.dir-meta-item.is-star svg { color: var(--star); }
.dir-meta-item.is-soft { color: var(--ink-2); font-weight: 400; }
.dir-meta-item.is-soft svg { color: var(--accent); }
.dir-meta-item em { font-style: normal; color: var(--ink-2); font-weight: 400; }

/* ── Skeleton ── */
.dir-skel .dir-card { opacity: 1; transform: none; animation: none; }
.dir-skel .dir-cover { background: var(--bg-soft); }
.dir-sk {
  height: 13px; border-radius: 7px; margin-top: 12px;
  background: linear-gradient(100deg, var(--skel-1) 30%, var(--skel-2) 50%, var(--skel-1) 70%);
  background-size: 220% 100%;
  animation: dir-shimmer 1.4s linear infinite;
}
.dir-sk.w55 { width: 55%; }
.dir-sk.w35 { width: 35%; height: 11px; }

/* ── Empty ── */
.dir-state {
  text-align: center; padding: 56px 24px;
  background: var(--bg-soft); border-radius: 18px;
}
.dir-state strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.dir-state span { font-size: 0.88rem; color: var(--ink-2); }

/* ── Footer ── */
.dir-foot {
  margin-top: 40px;
  padding-top: 20px;
  padding-bottom: calc(36px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
  font-size: 0.75rem; color: var(--ink-3);
}
.dir-foot:has(.dir-foot-brand) {
  margin-top: 48px;
  padding-top: 28px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.dir-foot-brand {
  display: block;
  line-height: 0;
  text-decoration: none;
}
.dir-foot-mark {
  display: block;
  height: 20px;
  width: auto;
}
.dir-brand-light { display: none; }
html[data-theme="light"] .dir-brand-dark { display: none; }
html[data-theme="light"] .dir-brand-light { display: block; }
.dir-foot-tag {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.dir-foot-meta {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.dir-foot a { color: var(--accent); text-decoration: none; font-weight: 700; }
.dir-foot-brand:hover { opacity: 0.8; }

.dir-gps-gate {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: var(--scrim);
}
.dir-gps-gate[hidden] { display: none; }
.dir-gps-card {
  width: min(400px, 100%);
  padding: 28px 24px 24px;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  text-align: center;
  animation: dir-sheet-up 0.35s var(--spring);
}
.dir-gps-card h3 { margin: 0 0 8px; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; }
.dir-gps-card p { margin: 0 0 22px; font-size: 0.92rem; color: var(--ink-2); line-height: 1.45; }
.dir-gps-card .dir-btn { width: 100%; }
.dir-sheet {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
}
.dir-sheet[hidden] { display: none; }
.dir-sheet-scrim {
  position: absolute; inset: 0;
  background: var(--scrim);
  animation: dir-fade 0.25s var(--ease);
}
.dir-sheet-panel {
  position: relative; width: min(560px, 100%);
  padding: 24px var(--pad) calc(24px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  animation: dir-sheet-up 0.4s var(--spring);
}
.dir-sheet-panel h3 { margin: 0 0 4px; font-size: 1.2rem; font-weight: 800; }
.dir-sheet-panel > p { margin: 0 0 18px; font-size: 0.85rem; color: var(--ink-2); }
.dir-field {
  width: 100%; height: 54px; margin-bottom: 12px;
  padding: 0 18px;
  background: var(--field); color: var(--ink);
  border: 1px solid transparent; border-radius: 12px;
  font: inherit; font-size: 0.92rem; outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.dir-field:focus { background: #fff; border-color: var(--accent); }
.dir-city-picks {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 16px;
}
.dir-city-pick {
  height: 36px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--field); color: var(--ink);
  font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer;
}
.dir-city-pick.is-on, .dir-city-pick:hover { border-color: var(--accent); color: var(--accent); }
.dir-away {
  padding: 36px 8px 20px; text-align: center; animation: dir-fade 0.4s var(--ease);
}
.dir-away strong { display: block; font-size: 1.25rem; letter-spacing: -0.03em; }
.dir-away span { display: block; margin: 8px 0 18px; color: var(--ink-2); font-size: 0.92rem; line-height: 1.45; }
.dir-away-cities { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dir-sheet-actions { display: flex; gap: 10px; }
.dir-btn {
  flex: 1; height: 52px;
  border: 1px solid transparent; border-radius: 12px;
  font: inherit; font-size: 0.88rem; font-weight: 800; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.2s var(--spring), filter 0.2s, background 0.2s;
}
.dir-btn:active { transform: scale(0.97); }
.dir-btn svg { width: 16px; height: 16px; }
.dir-btn-ghost { background: var(--field); color: var(--ink); border-color: var(--line); }
.dir-btn-ghost:hover { filter: brightness(1.08); }
.dir-btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 24px rgba(252, 110, 42, 0.3);
}
.dir-btn-primary:hover { filter: brightness(1.05); }

/* ── Animations ── */
@keyframes dir-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dir-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -60% 0; }
}
@keyframes dir-glow { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
@keyframes dir-pole { to { transform: translateY(7px); } }
@keyframes dir-shop-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.1px); }
}
@keyframes dir-shop-shadow {
  0%, 100% { transform: scaleX(1); opacity: 0.14; }
  50% { transform: scaleX(0.93); opacity: 0.1; }
}
@keyframes dir-awn-sway {
  0%, 100% { transform: rotate(-0.75deg); }
  50% { transform: rotate(0.75deg); }
}
@keyframes dir-plant-sway {
  0%, 100% { transform: rotate(-1.6deg); }
  50% { transform: rotate(1.6deg); }
}
@keyframes dir-sign-pulse {
  0%, 100% { opacity: 0.26; transform: scale(0.97); }
  50% { opacity: 0.6; transform: scale(1.035); }
}
@keyframes dir-amb-drift {
  0%, 100% { transform: translate(0, 0); opacity: 0.45; }
  50% { transform: translate(2.5px, -3.5px); opacity: 1; }
}
@keyframes dir-steam {
  0% { opacity: 0; transform: translateY(0) scale(0.45); }
  22% { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-7px) scale(1.5); }
}
@keyframes dir-twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.55) rotate(0deg); }
  50% { opacity: 0.95; transform: scale(1) rotate(50deg); }
}
@keyframes dir-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dir-sheet-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 900px) {
  .dir-wrap { max-width: 1000px; }
  .dir-list { grid-template-columns: 1fr 1fr; gap: 30px 26px; }
  .dir-cover { aspect-ratio: 16 / 9; }
  .dir-greet { font-size: 1.35rem; }
  .dir-sec { margin-top: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .dir-card { opacity: 1; transform: none; animation: none !important; }
  .dir-card *, .dir-sk { animation: none !important; }
  .dir-steam circle { opacity: 0.35; }
  .dir-spark { opacity: 0.7; }
}
