/* =============================================================
   Đi Đâu Trời — style.css
   Chuẩn: design/mockup-refined.html (bố cục, màu, chữ, khoảng cách, hiệu ứng).
   CSS thuần — không Tailwind; các giá trị px lấy từ class Tailwind của mockup.
   Mốc responsive giống mockup: <640 (dọc) · 640–1099 (gập/tablet, 1 cột hero) · ≥1100 (hero 2 cột)
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: #F5F0E6;
  color: var(--ink-dark);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, p, figure { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.hand { font-family: var(--font-hand); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 0; top: 0; z-index: 100; transform: translateY(-120%);
  background: var(--ink-dark); color: var(--bg-cream); padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip:focus { transform: none; }

:where(a, button):focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ---------- Nền giấy nắng sớm -------------------------------- */
.paper-stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden; /* cắt tán lá/bóng ở mép → không cuộn ngang */
  background:
    radial-gradient(circle at 8% 5%, rgba(255, 238, 192, .86) 0%, rgba(255, 243, 214, .42) 32%, transparent 62%),
    radial-gradient(circle at 90% 10%, rgba(255, 234, 194, .54) 0%, transparent 48%),
    linear-gradient(180deg, #F8F4EC 0%, #F4EFE4 52%, #F5F0E6 100%);
}

.paper-noise {
  position: fixed; inset: 0; z-index: 45; pointer-events: none; opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =============================================================
   HỆ THỰC VẬT 3 LỚP + BÓNG KOMOREBI (port từ mockup)
   ============================================================= */
/* <svg> chứa defs: không display:none (gradient/filter sẽ mất) */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

/* wrapper không tạo stacking context → z-index của từng khung so với nội dung như mockup */
.foliage-stage { display: contents; }

.foliage-box { position: absolute; pointer-events: none; user-select: none; }
.foliage-svg { display: block; width: 100%; height: 100%; overflow: visible; }

#canopy-tl-container   { top: -34px; left: -42px;  width: 460px; height: 395px; z-index: 15; }
#shadow-cluster-tl     { top: 2px;   left: 28px;   width: 520px; height: 410px; z-index: 10; }
#shadow-cluster-center { top: 128px; left: 255px;  width: 460px; height: 425px; z-index: 10; }
#shadow-cluster-bl     { top: 345px; left: 36px;   width: 370px; height: 240px; z-index: 10; }
#canopy-tr-container   { top: -26px; right: -32px; width: 420px; height: 350px; z-index: 10; }
#shadow-cluster-tr     { top: 12px;  right: 4px;   width: 410px; height: 330px; z-index: 0; }

/* Lớp 1 — lá gần ống kính, mờ bokeh */
.dof-bokeh-near { filter: blur(5.2px); opacity: .68; }
/* Lớp 2 — lá trung cảnh, nét + nhiễu hữu cơ ở mép lá */
.dof-mid-natural-tl { filter: url(#natural-foliage-dof-tl) drop-shadow(0 12px 22px rgba(72, 60, 32, .11)); }
.dof-mid-natural-tr { filter: url(#natural-foliage-dof-tr) drop-shadow(0 10px 20px rgba(45, 58, 24, .15)); }
/* Lớp 3 — tán xa, mờ nhẹ */
.dof-canopy-far { filter: blur(2.4px); opacity: .72; }

/* Bóng 2 tầng: penumbra rộng mờ + umbra lỗ chỗ; vệt nắng vàng hoà soft-light */
.komorebi-penumbra { mix-blend-mode: multiply; filter: blur(13px); }
.komorebi-umbra    { mix-blend-mode: multiply; filter: url(#komorebi-dappled-blur); }
.komorebi-caustics { mix-blend-mode: soft-light; filter: blur(16px); }

/* Keep the reference's offset pivots: changing to view-box moves every blade
   and its projected shadow, even when the wind equations are identical. */
.branch-tier-1, .subbranch-tier-2, .leaflet-tier-3 { transform-box: fill-box; will-change: transform; }
.wind-layer, .dof-bokeh-near, .dof-mid-natural-tl, .dof-mid-natural-tr,
.dof-canopy-far, .komorebi-penumbra, .komorebi-umbra { will-change: transform; }
.komorebi-caustics { will-change: transform, opacity; }

/* 4 đường gợn sóng đất nung mép trái */
.wavy-lines { display: none; position: absolute; top: 212px; left: 0; width: 64px; height: 44px; z-index: 20; opacity: .75; pointer-events: none; }
@media (min-width: 768px) { .wavy-lines { display: block; } }

@media (max-width: 639px) {
  #canopy-tl-container { width: 280px; height: 250px; top: -22px; left: -28px; }
  #canopy-tr-container { width: 250px; height: 220px; }
}
@media (min-width: 1680px), (min-aspect-ratio: 20/9) and (min-width: 1200px) {
  #canopy-tl-container { width: 520px; height: 440px; }
  #canopy-tr-container { width: 480px; height: 400px; }
}

/* =============================================================
   KHUNG TRANG + HEADER
   ============================================================= */
.container {
  position: relative; z-index: 20;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad) 80px;
}

.masthead {
  position: relative;
  height: 82px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.brand { flex-shrink: 0; display: block; border-radius: 10px; }
.brand__logo { height: 40px; width: 166px; transition: transform .5s var(--ease-out); }
.brand:hover .brand__logo { transform: rotate(-2deg) scale(1.02); }

.masthead__nav { display: none; }
.masthead__nav a, .masthead__nav button { transition: color .2s; }
.masthead__nav a:hover, .masthead__nav button:hover { color: var(--terracotta); }
.masthead__nav a[aria-current] { color: var(--terracotta); }

.masthead__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.iconbtn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 999px; color: #2B221C;
  transition: background-color .2s;
}
.iconbtn:hover { background: rgba(0, 0, 0, .05); }

.btn-login {
  display: none;
  padding: 7px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: #2B221C;
  border: 1px solid #B8AEA0; background: rgba(250, 246, 238, .8);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  transition: background-color .2s, border-color .2s;
}
.btn-login:hover { background: #fff; border-color: #8C7F70; }

.profile { display: flex; align-items: center; gap: 4px; color: #5A4F47; border-radius: 999px; }
.profile:hover { color: var(--ink-dark); }
.profile__img {
  width: 36px; height: 36px; border-radius: 999px; overflow: hidden;
  border: 2px solid #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.profile__img svg { width: 100%; height: 100%; display: block; }

/* Menu thu gọn (<1024px): nav thành bảng thả xuống */
.masthead__nav.is-open {
  display: flex; flex-direction: column;
  position: absolute; top: 74px; right: 0; z-index: 60;
  min-width: 220px; padding: 8px;
  background: rgba(252, 249, 242, .97);
  border: 1px solid #E6DDD0; border-radius: 18px;
  box-shadow: 0 18px 40px rgba(55, 40, 25, .16);
}
.masthead__nav.is-open a, .masthead__nav.is-open button {
  padding: 11px 14px; border-radius: 12px; text-align: left;
  font-size: 15px; font-weight: 500; color: #352C26;
}
.masthead__nav.is-open a:hover, .masthead__nav.is-open button:hover { background: rgba(191, 90, 56, .08); }

@media (min-width: 640px) {
  .masthead { height: 86px; }
  .brand__logo { height: 44px; width: 196px; }
  .masthead__actions { gap: 16px; }
  .btn-login { display: inline-block; }
  .masthead__nav-login { display: none; }
  .profile__img { width: 38px; height: 38px; }
}
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .masthead__nav {
    display: flex; align-items: center; gap: 44px;
    font-size: 15px; font-weight: 500; color: #352C26;
  }
}
@media (min-width: 1280px) { .masthead__nav { gap: 44px; } }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px;
  align-items: start;
  padding: 12px 0 8px;
}
.hero__copy { position: relative; z-index: 20; padding-top: 4px; padding-bottom: 2px; }

.kicker {
  font-size: 11.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: #786C61; margin-bottom: 12px;
}

.hero__title {
  font-family: var(--font-editorial);
  font-size: 44px; font-weight: 700; line-height: 1.06; letter-spacing: -.025em;
  color: var(--ink-dark);
  isolation: isolate;
}
.highlight { position: relative; display: inline-block; white-space: nowrap; }
.highlight svg {
  position: absolute; left: 4px; bottom: -10px; z-index: -1;
  width: 98%; height: 14px; pointer-events: none;
}

.hero__lead {
  margin: 20px 0 28px;
  font-size: 15.5px; line-height: 1.625; color: #4A4039;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13.5px 28px; border-radius: 999px;
  color: #fff; font-size: 15.5px; font-weight: 500;
  background: linear-gradient(135deg, #C7603D 0%, #B44E2D 100%);
  box-shadow: 0 10px 24px rgba(180, 78, 45, .28);
  transition: transform .3s, box-shadow .3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(180, 78, 45, .32); }
.btn-primary:active { transform: none; }

.motto {
  display: block; width: max-content; margin: 24px 0 0 4px;
  font-size: 20px; line-height: .98; color: #5B5047;
  transform: rotate(-11deg);
  user-select: none;
}

/* --- Cụm polaroid --- */
.polaroid-stage {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  min-height: 360px; margin-top: 12px;
}

.polaroid {
  position: relative;
  background: #FCF9F2;
  padding: 12px 12px 16px;
  border-radius: 4px;
  box-shadow: 0 20px 44px rgba(42, 31, 21, .17), 0 4px 12px rgba(42, 31, 21, .08), inset 0 0 0 1px rgba(255, 255, 255, .75);
  transition: transform .45s var(--ease-out), box-shadow .45s ease;
}
.polaroid--left  { z-index: 20; width: 94%; max-width: 340px; transform: rotate(-3.3deg); }
.polaroid--right { z-index: 10; width: 88%; max-width: 310px; top: -18px; transform: rotate(5.6deg); }
.polaroid--left:hover  { transform: rotate(-1.5deg) translateY(-5px) scale(1.015); box-shadow: 0 28px 56px rgba(42, 31, 21, .24); z-index: 28; }
.polaroid--right:hover { transform: rotate(3.4deg) translateY(-5px) scale(1.015); box-shadow: 0 28px 56px rgba(42, 31, 21, .24); z-index: 28; }

.polaroid__photo { position: relative; overflow: hidden; border-radius: 2px; }
.polaroid__photo img { width: 100%; height: 100%; object-fit: cover; }
/* chiều cao ảnh cố định như mockup (h-[265px] sm:h-[312px] / h-[255px] sm:h-[298px]) */
.polaroid__photo--left  { height: 265px; background: #D8E4E8; }
.polaroid__photo--right { height: 255px; background: #E6D7C3; }
.polaroid__photo--left img  { filter: brightness(1.03) contrast(1.02); }
.polaroid__photo--right img { filter: brightness(1.02); object-position: left center; }
.polaroid__photo--left::after,
.polaroid__photo--right::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.polaroid__photo--left::after  { background: linear-gradient(to top right, rgba(30, 77, 92, .15), transparent 50%, rgba(255, 246, 214, .2)); }
.polaroid__photo--right::after { background: linear-gradient(to right, rgba(255, 251, 235, .1), transparent 50%, rgba(0, 0, 0, .15)); }

/* băng keo giấy */
.tape {
  position: absolute; top: -14px; right: 14px; z-index: 30;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(246, 231, 201, .95) 0%, rgba(240, 221, 186, .92) 100%);
  box-shadow: 0 3px 9px rgba(45, 35, 20, .11);
  transform: rotate(-2.2deg);
  clip-path: polygon(2% 0%, 98% 1%, 100% 18%, 98% 36%, 100% 55%, 98% 74%, 100% 92%, 97% 100%, 2% 99%, 0% 82%, 2% 64%, 0% 46%, 2% 28%, 0% 11%);
  user-select: none;
}
.tape .hand { font-size: 21px; font-weight: 600; letter-spacing: .025em; line-height: 1; color: #3C3128; white-space: nowrap; }
.tape svg { flex-shrink: 0; }

.bougainvillea { position: absolute; top: 0; left: 32px; width: 208px; height: 128px; opacity: .92; pointer-events: none; z-index: 1; }

/* bảng gỗ viết tay */
.woodsign {
  position: absolute; right: 10px; top: 12%; z-index: 2;
  width: 31%; min-width: 92px; max-width: 112px; height: 66%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 12px 8px;
  border-radius: 3px;
  background: linear-gradient(165deg, #DFCBB2 0%, #CBB294 48%, #B99D7B 100%);
  border: 1.5px solid #8F7355;
  box-shadow: -4px 6px 14px rgba(35, 22, 10, .28), inset 0 0 12px rgba(95, 68, 42, .25);
  transform: rotate(1.5deg);
  user-select: none;
}
.woodsign__text { font-size: 17px; line-height: 1.22; font-weight: 600; letter-spacing: -.025em; text-align: center; color: #2C2018; }
.woodsign__heart { align-self: flex-end; margin: 4px 8px 0 0; font-size: 14px; color: #B83B2B; line-height: 1; }

.margin-note {
  display: none;
  position: absolute; right: -22px; bottom: 4px; z-index: 30;
  text-align: center; color: #3B322B; user-select: none; pointer-events: none;
}
.margin-note > svg:first-child { display: block; margin: 0 0 -4px 16px; color: #4A3F37; }
.margin-note span { display: block; font-size: 20px; line-height: 1.06; transform: rotate(-7deg); }
.margin-note__heart { display: block; margin: 4px auto 0; transform: rotate(-7deg); }

/* --- 640–1099: hero 1 cột, 2 polaroid cạnh nhau (khung gập / tablet) --- */
@media (min-width: 640px) {
  .kicker { font-size: 12px; }
  .hero { padding-top: 28px; }
  .hero__copy { padding-top: 16px; }
  .hero__title { font-size: 56px; }
  .hero__lead { font-size: 17.5px; }
  .motto { margin-top: 28px; }
  .polaroid__photo--left  { height: 312px; }
  .polaroid__photo--right { height: 298px; }
  .polaroid-stage {
    flex-direction: row; justify-content: center; align-items: center; gap: 0;
    min-height: 365px; margin-top: 8px;
  }
  .polaroid--left  { width: 340px; max-width: none; left: -25px; top: 6px; }
  .polaroid--right { width: 310px; max-width: none; margin-left: -65px; top: -4px; }
}

/* --- ≥1100: hero 2 cột (5/7), polaroid định vị tuyệt đối như mockup --- */
@media (min-width: 1100px) {
  .hero { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
  .hero__copy { grid-column: span 5; }
  .polaroid-stage { grid-column: span 7; display: block; min-height: 415px; margin-top: 0; }
  .polaroid--left  { position: absolute; left: 8px; top: 12px; width: 415px; }
  .polaroid--right { position: absolute; right: 22px; top: -6px; width: 375px; margin: 0; }
  .woodsign { top: 40px; height: 196px; width: 112px; }
  .woodsign__text { font-size: 17.5px; }
}
@media (min-width: 1280px) {
  .hero__title { font-size: 63px; }
  .margin-note { display: block; }
}
/* Match the reference's implicit five-track span on the tablet grid. */
@media (min-width: 1024px) and (max-width: 1099px) {
  .hero__copy { width: calc(100% - 48px); }
}
@media (min-width: 640px) and (max-width: 648px) {
  .hero__copy, .polaroid-stage { width: 585px; }
}

/* =============================================================
   DẢI CHỌN VIBE
   ============================================================= */
.vibebar-wrap { position: relative; z-index: 30; display: flex; justify-content: center; margin: 8px 0 40px; }
.vibebar {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 22px; border: 1px solid #E6DDD0;
  background: rgba(252, 249, 242, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(55, 40, 25, .08);
}
.vibebar__label { font-size: 14px; font-weight: 600; color: #2B221C; margin-right: 2px; }

.vibe-pill {
  padding: 8px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; line-height: 1.5;
  background: #F6F1E8; color: var(--ink-brown); border: 1px solid #E2D9CB;
  transition: background-color .2s, color .2s, border-color .2s, padding .2s;
}
.vibe-pill { display: inline-block; }
.vibe-pill:hover { border-color: rgba(191, 90, 56, .5); color: var(--terracotta); }
.vibe-pill[aria-pressed="true"] {
  padding-inline: 20px;
  background: var(--terracotta); color: #fff; border: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.wind-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 14px; border-radius: 999px;
  background: #F6F1E8; color: #2B221C; border: 1px solid #E2D9CB;
  transition: background-color .2s;
}
.wind-btn:hover { background: #EDE5D8; }
.wind-btn[data-level="off"] { color: #8C7F70; }

@media (min-width: 640px) {
  .vibebar-wrap { margin-top: -12px; }
  .vibebar { gap: 12px; padding: 10px 24px; }
  .vibebar__label { font-size: 15px; margin-right: 4px; }
  .vibe-pill { padding: 8.5px 20px; font-size: 14.5px; }
  .vibe-pill[aria-pressed="true"] { padding-inline: 24px; }
}

/* =============================================================
   MOODBOARD
   ============================================================= */
.moodboard { position: relative; z-index: 20; }
.moodboard__head {
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  margin-bottom: 24px;
}
.moodboard__title {
  font-family: var(--font-editorial);
  font-size: 29px; font-weight: 700; line-height: 1.25; letter-spacing: -.022em;
}
.moodboard__sun {
  display: inline-block; width: 28px; height: 28px; margin-left: 2px;
  vertical-align: top; transform: translateY(-14px);
  color: #E8833A;
}
.moodboard__sub { margin-top: 4px; font-size: 15px; color: var(--ink-muted); }

.view-all {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  padding-bottom: 2px;
  font-size: 15px; font-weight: 500; color: #2B221C;
  border-bottom: 1.5px solid #2B221C;
  transition: color .2s, border-color .2s;
}
.view-all:hover { color: var(--terracotta); border-color: var(--terracotta); }
.view-all:focus-visible { border-radius: 4px; }

@media (min-width: 640px) {
  .moodboard__head { flex-direction: row; align-items: flex-end; }
  .moodboard__title { font-size: 38px; }
  .view-all { align-self: flex-end; }
}

.mood-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 20px; }
@media (min-width: 640px)  { .mood-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mood-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.grid-empty { grid-column: 1 / -1; padding: 32px 0; text-align: center; color: var(--ink-muted); }

/* --- Card --- */
.mood-card { display: flex; flex-direction: column; min-width: 0; }

.mood-card__box {
  position: relative;
  height: 355px;
  border-radius: 18px; overflow: hidden;
  background: #2C2520;
  box-shadow: 0 8px 24px rgba(40, 28, 18, .10);
  transition: transform .38s var(--ease-out), box-shadow .38s ease;
}
.mood-card--short .mood-card__box { height: 245px; }
.mood-card__box:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(40, 28, 18, .18); }
@media (min-width: 640px) {
  .mood-card__box { height: 372px; }
  .mood-card--short .mood-card__box { height: 260px; }
}

.mood-card__photo { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease-out); }
.mood-card__box:hover .mood-card__photo { transform: scale(1.05); }

.mood-card__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 14, 10, .20) 0%, rgba(18, 14, 10, .02) 32%, rgba(18, 14, 10, .44) 64%, rgba(14, 10, 8, .88) 100%);
}

.mood-card__top {
  position: absolute; top: 14px; left: 14px; right: 14px; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.location-pill {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0;
  padding: 4px 12px; border-radius: 999px;
  color: #fff; font-size: 12px; font-weight: 500;
  background: rgba(38, 32, 27, .5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .24);
}
.location-pill svg { flex-shrink: 0; color: #F6D388; }
.location-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 175px; }

.mood-card__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px;
}
.mood-card__type {
  align-self: flex-start;
  margin-bottom: 6px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}
.mood-card__title {
  font-family: var(--font-card);
  font-size: 19px; font-weight: 700; line-height: 1.22; letter-spacing: -.01em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .12);
  overflow-wrap: anywhere;
}
.mood-card__desc {
  margin-top: 4px;
  font-size: 12.8px; line-height: 1.42; color: rgba(255, 255, 255, .85);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 640px) { .mood-card__title { font-size: 20px; } }

/* Vùng bấm của tiêu đề phủ cả khung ảnh (không lồng nút trong link). Body là phần tử
   absolute nên ::after vươn lên trên và bị overflow:hidden của khung cắt gọn. */
.mood-card__link { color: inherit; }
.mood-card__link::after { content: ""; position: absolute; inset: -640px 0 0 0; z-index: 2; }
.mood-card__link:focus-visible { outline: none; }
.mood-card__box:has(.mood-card__link:focus-visible) { outline: 3px solid var(--terracotta); outline-offset: 3px; }

/* Không có ảnh: khung giấy minh hoạ, giữ nguyên kích thước card */
.mood-card__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding-bottom: 96px;
  color: rgba(246, 211, 136, .55);
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(232, 132, 60, .28), transparent 60%),
    linear-gradient(165deg, #6F5A47 0%, #4A3D33 55%, #2E2621 100%);
}
.mood-card__placeholder .hand { font-size: 21px; color: rgba(255, 246, 225, .7); transform: rotate(-4deg); }
.mood-card__sketch { width: 78px; height: 78px; }
.mood-card--no-photo .mood-card__box:hover .mood-card__placeholder { filter: brightness(1.06); }

.mood-card__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px;
  padding: 10px 4px 0;
  color: var(--ink-brown);
}
.place-rating { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-size: 13px; font-weight: 500; color: #2F2722; }
.place-rating svg { flex-shrink: 0; color: #D9822E; }
.place-rating--none { font-weight: 400; color: var(--ink-muted); }
.place-price { font-size: 12.5px; color: #5A4F47; white-space: nowrap; }

/* Khối trạng thái nằm trong lưới: trải hết các cột */
.mood-grid > .state { grid-column: 1 / -1; margin: 0; }
.state__retry { cursor: pointer; margin-top: 14px; }

/* =============================================================
   TRANG CON (shell): mở đầu trang, breadcrumb, khối trạng thái
   ============================================================= */
.paper-stage--page { min-height: 100vh; }
.page { padding-top: 16px; min-height: 40vh; }
.breadcrumb ol {
  margin: 0 0 14px; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13.5px; color: var(--ink-muted);
}
.breadcrumb li { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.breadcrumb li + li::before { content: "›"; color: #A39887; }
.breadcrumb a { color: #5A4F47; text-decoration: underline; text-decoration-color: rgba(90, 79, 71, .35); text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--terracotta); }
.page-intro { padding: 12px 0 8px; }
.page-intro .kicker { margin-bottom: 8px; }
.page-intro__title {
  font-family: var(--font-editorial); font-weight: 700; color: var(--ink-dark);
  font-size: clamp(30px, 6vw, 48px); line-height: 1.12; overflow-wrap: anywhere;
}
.page-intro__lead { margin-top: 12px; max-width: 60ch; font-size: 16px; color: var(--ink-brown); }
.state {
  margin: 28px 0; padding: 22px 20px; border-radius: 18px;
  background: rgba(252, 249, 242, .85); border: 1px dashed #D9CDBB;
}
.state__title { font-size: 18px; font-weight: 600; color: var(--ink-dark); }
.state__message { margin-top: 6px; color: var(--ink-brown); max-width: 62ch; }
.state--error { border-style: solid; border-color: rgba(191, 90, 56, .45); }
.state__actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.state__action {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  border: 1px solid #B8AEA0; background: rgba(250, 246, 238, .9);
  font-size: 14px; font-weight: 500; color: #2B221C; transition: background-color .2s, border-color .2s;
}
.state__action:hover { background: #fff; border-color: var(--terracotta); }

.compass {
  position: fixed; right: 16px; bottom: 20px; z-index: 50;
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 8px 12px; border-radius: 38px;
  background: rgba(250, 247, 240, .95); border: 1px solid #E5DEC9;
  box-shadow: 0 12px 30px rgba(38, 28, 18, .18);
  transition: transform .3s;
}
.compass:hover { transform: translateY(-4px); }
.compass__btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px;
  background: #C65D3B; color: #fff;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .06);
  transition: transform .5s;
}
.compass:hover .compass__btn { transform: rotate(45deg); }
.compass__label { margin-top: 6px; padding: 0 4px; font-size: 11px; font-weight: 600; line-height: 1.15; text-align: center; color: var(--ink-brown); }
@media (min-width: 640px) {
  .compass { right: 24px; bottom: 24px; }
  .compass__btn { width: 52px; height: 52px; }
}
/* màn thấp/hẹp: thu la bàn thành nút tròn để không che card */
@media (max-width: 639px) {
  .compass { padding: 6px; }
  .compass__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

.toast {
  position: fixed; top: 20px; right: 20px; z-index: 70;
  display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 40px);
  padding: 12px 20px; border-radius: 16px;
  background: #251E19; color: #FAF6EE; border: 1px solid #4A3F35;
  font-size: 14px; font-weight: 500;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
  transform: translateY(-96px); opacity: 0; pointer-events: none;
  transition: transform .3s, opacity .3s;
}
.toast.is-shown { transform: none; opacity: 1; }
.toast__spark { color: #F7D586; }

/* =============================================================
   GIẢM CHUYỂN ĐỘNG
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* Foliage stays behind the content at every size; retain all three optical
   planes without painting bokeh over the logo, navigation or small copy. */
