/* Saigon Breath / Quầy Tarot - một buổi tối ở quán cà phê hẻm Sài Gòn
 * Chất liệu: bảng hiệu neon, gạch bông, tường gạch, bảng số nhà tráng men, vở ô ly, hóa đơn quán, tường vàng cửa xanh. */
:root {
  --night: #131A33;          /* trời đêm trong hẻm */
  --night-deep: #0C1124;
  --night-soft: #1B2547;
  --wall: #F4C542;           /* tường vàng kiểu Pháp */
  --shutter: #2C6B52;        /* cửa chớp xanh */
  --brick: #C0402B;          /* gạch đỏ, Nhà thờ Đức Bà */
  --tile-cream: #F4E9CF;     /* nền gạch bông */
  --paper: #FBF4E2;
  --ink: #1B1612;
  --muted: #AEB7DA;
  --neon-pink: #FF4D8D;
  --neon-amber: #FFB020;
  --neon-mint: #2DE2B0;
  --neon-cyan: #4DD8FF;
  --neon-red: #FF5A3C;
  --enamel: #1D5FB4;         /* bảng số nhà tráng men */
  --line: rgba(244, 233, 207, .22);
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Alfa Slab One", Georgia, serif;
  --font-neon: "Pacifico", "Be Vietnam Pro", cursive;
  --font-mono: "Space Mono", ui-monospace, Menlo, monospace;
  --gutter: 16px;
  --maxw: 1080px;
  /* một ô gạch bông (64x64) dùng làm họa tiết */
  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' fill='%23F4E9CF'/%3E%3Cg fill='%23C0402B'%3E%3Ccircle cx='0' cy='0' r='13'/%3E%3Ccircle cx='64' cy='0' r='13'/%3E%3Ccircle cx='0' cy='64' r='13'/%3E%3Ccircle cx='64' cy='64' r='13'/%3E%3C/g%3E%3Cpath d='M32 8L56 32L32 56L8 32Z' fill='%232C6B52'/%3E%3Cpath d='M32 16L48 32L32 48L16 32Z' fill='%23F4E9CF'/%3E%3Ccircle cx='32' cy='32' r='7' fill='%23E8A82E'/%3E%3Cg fill='%231B2A49'%3E%3Ccircle cx='32' cy='0' r='6'/%3E%3Ccircle cx='32' cy='64' r='6'/%3E%3Ccircle cx='0' cy='32' r='6'/%3E%3Ccircle cx='64' cy='32' r='6'/%3E%3C/g%3E%3Crect x='.5' y='.5' width='63' height='63' fill='none' stroke='%231B2A49' stroke-opacity='.3'/%3E%3C/svg%3E");
  /* tường gạch */
  --bricks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='48' viewBox='0 0 72 48'%3E%3Crect width='72' height='48' fill='%232A1620'/%3E%3Cg fill='%2349222A'%3E%3Crect x='2' y='2' width='32' height='20' rx='1'/%3E%3Crect x='38' y='2' width='32' height='20' rx='1'/%3E%3Crect x='-16' y='26' width='32' height='20' rx='1'/%3E%3Crect x='20' y='26' width='32' height='20' rx='1'/%3E%3Crect x='56' y='26' width='32' height='20' rx='1'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  color: #ECEFFB; background: var(--night-deep);
  background-image: linear-gradient(180deg, var(--night-deep) 0, var(--night) 760px, var(--night-deep) 100%);
}
img, svg { max-width: 100%; }
a { color: var(--wall); text-underline-offset: 3px; }
a:hover { color: #FFE08A; }
h1, h2, h3, h4 { text-wrap: balance; font-family: var(--font-head); line-height: 1.12; font-weight: 400; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.4rem, 8.6vw, 4.9rem); }
h2 { font-size: clamp(1.6rem, 4.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--neon-cyan); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--wall); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
.center { text-align: center; }

/* ---------- nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; cursor: pointer; text-decoration: none;
  font: 700 1rem/1 var(--font-body); min-height: 48px; padding: 0 24px; border-radius: 8px; border: 3px solid var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-lantern { background: var(--wall); color: var(--ink); box-shadow: 4px 4px 0 var(--brick); }
.btn-lantern:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--brick); }
.btn-lantern:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--brick); }
.btn-ghost { background: transparent; color: #ECEFFB; border-color: rgba(236, 239, 251, .55); }
.btn-ghost:hover { border-color: var(--neon-pink); color: var(--neon-pink); }
.btn-big { min-height: 56px; padding: 0 30px; font-size: 1.15rem; }

/* ---------- đầu trang ---------- */
.site-header { position: relative; z-index: 6; }
.home .site-header { position: absolute; left: 0; right: 0; top: 0; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 20px; padding-top: 14px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font: 400 1.5rem var(--font-head); }
.brand:hover { color: var(--wall); }
.brand-sub { align-self: center; padding: 2px 8px; border: 1.5px solid rgba(255, 176, 32, .6); border-radius: 99px; font: 400 .72rem/1.3 var(--font-mono); color: var(--neon-amber); white-space: nowrap; }
.brand span { white-space: nowrap; }
@media (max-width: 379px) { .brand-sub { display: none; } }
.brand svg { width: 38px; height: 38px; flex: none; }
.site-header nav { flex: 1 1 100%; }
.nav { display: flex; flex-wrap: wrap; justify-content: space-between; margin: 0; padding: 0; list-style: none; }
.nav a { display: block; padding: 7px 5px; color: #ECEFFB; text-decoration: none; font: 600 .86rem var(--font-body); white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--neon-pink); }
.nav a[aria-current="page"] { border-bottom-color: var(--neon-pink); text-shadow: 0 0 10px rgba(255, 77, 141, .6); }

/* ---------- hero: tường gạch trong hẻm, biển neon bật sáng ---------- */
.hero { position: relative; isolation: isolate; min-height: 580px; display: flex; align-items: flex-end; overflow: hidden; background-color: #2A1620; }
.hero-wall { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(55% 70% at 82% 30%, rgba(255, 77, 141, .38), transparent 62%),
  radial-gradient(40% 55% at 8% 78%, rgba(255, 176, 32, .2), transparent 62%),
  linear-gradient(180deg, rgba(12, 17, 36, .78) 0%, rgba(12, 17, 36, .15) 45%, rgba(19, 26, 51, .75) 100%),
  var(--bricks); background-size: auto, auto, auto, 72px 48px; }
.hero-copy { padding-top: 150px; padding-bottom: 104px; position: relative; }
.hero-tag { display: inline-block; font: 400 .85rem var(--font-mono); color: var(--neon-amber); border: 1.5px dashed rgba(255, 176, 32, .6); padding: 3px 10px; margin-bottom: 18px; }
.hero h1 { max-width: 10em; margin-bottom: .3em; color: #fff; text-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.hero-lead { max-width: 32ch; font-size: 1.15rem; color: #FFE9C9; margin-bottom: 1.3em; }
.neon-sign { display: none; }
.tile-band { height: 48px; background: var(--tile) 0 -8px / 64px 64px repeat-x; box-shadow: 0 -4px 0 var(--night-deep); }

/* ---------- quầy: bàn gạch bông + bảng hiệu neon ---------- */
.stall { position: relative; z-index: 3; margin-top: -56px; }
.board {
  position: relative; padding: 36px calc(var(--gutter) - 4px) 28px; color: #ECEFFB;
  border: 14px solid transparent;
  background: linear-gradient(180deg, var(--night-soft), var(--night)) padding-box, var(--tile) 0 0 / 56px 56px border-box;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
}
.step[hidden] { display: none; }
.step-title { font-size: clamp(1.5rem, 4.6vw, 2.1rem); margin-bottom: .2em; outline: none; color: #fff; }
.step-sub { color: var(--muted); margin-bottom: 1.2em; }

/* chủ đề = ống neon; tắt thì mờ, chọn thì sáng */
.signs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0 28px; padding: 0; border: 0; }
.signs .sign-slot:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sign-slot { position: relative; }
.sign {
  --neon: var(--neon-amber);
  position: relative; width: 100%; height: 100%; min-height: 104px; text-align: left; font: inherit; cursor: pointer; display: grid; gap: 4px; align-content: start;
  padding: 12px 14px; background: rgba(0, 0, 0, .28); color: #fff; border: 3px solid color-mix(in srgb, var(--neon) 38%, transparent); border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5); opacity: .8; transition: opacity .25s, box-shadow .25s, border-color .25s;
}
.sign[data-topic="love"] { --neon: var(--neon-pink); }
.sign[data-topic="work"] { --neon: var(--neon-mint); }
.sign[data-topic="choice"] { --neon: var(--neon-cyan); }
.sign[data-topic="yesno"] { --neon: var(--neon-red); }
.sign-name { font: 400 1.4rem/1.4 var(--font-neon); color: color-mix(in srgb, var(--neon) 55%, #fff); transition: text-shadow .25s; }
.sign-desc { font: 400 .82rem/1.35 var(--font-body); color: #C9D0EE; }
.sign:hover { opacity: 1; border-color: color-mix(in srgb, var(--neon) 70%, transparent); }
.sign[aria-checked="true"] { opacity: 1; border-color: var(--neon); animation: neon-on .9s steps(1, end) 1; box-shadow: 0 0 8px var(--neon), 0 0 28px color-mix(in srgb, var(--neon) 55%, transparent), inset 0 0 14px color-mix(in srgb, var(--neon) 40%, transparent); }
.sign[aria-checked="true"] .sign-name { color: #fff; text-shadow: 0 0 6px var(--neon), 0 0 16px var(--neon), 0 0 30px var(--neon); }
@keyframes neon-on { 0% { opacity: .25; } 12% { opacity: 1; } 22% { opacity: .35; } 34% { opacity: 1; } 46% { opacity: .55; } 60%, 100% { opacity: 1; } }

/* phiếu ghi câu hỏi (vở ô ly) + menu */
.pair { display: grid; gap: 22px; }
.slip { position: relative; background: #FFF6C9; color: #1D3A8A; padding: 6px 16px 12px 26px; box-shadow: 0 10px 16px rgba(0, 0, 0, .45); }
.slip::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 2px; background: #E0484A; opacity: .75; }
.slip-label { display: block; font: 700 .95rem var(--font-body); color: #B3282B; margin-bottom: 2px; }
.slip-hint { font-weight: 400; color: #8A7B4A; }
textarea {
  width: 100%; min-height: 96px; resize: vertical; border: 0; background: repeating-linear-gradient(180deg, transparent 0 31px, #9DB9EA 31px 32px);
  font: 500 1.05rem/32px var(--font-body); color: #1D3A8A; padding: 0; display: block;
}
textarea::placeholder { color: #8DA1CF; }
textarea:focus { outline: none; background-color: rgba(77, 216, 255, .1); }
.menu { background: var(--paper); color: var(--ink); padding: 12px 16px 14px; border-top: 8px solid var(--brick); box-shadow: 0 10px 16px rgba(0, 0, 0, .45); }
.menu-title { font: 700 .95rem var(--font-mono); color: var(--brick); margin: 0 0 6px; }
.spreads { display: grid; gap: 2px; }
.menu-row { position: relative; display: flex; align-items: baseline; gap: 8px; width: 100%; text-align: left; background: transparent; border: 0; color: inherit; font: 700 .98rem var(--font-body); padding: 7px 4px 7px 22px; cursor: pointer; }
.menu-row::after { content: ""; order: 2; flex: 1 1 20px; border-bottom: 2px dotted rgba(27, 22, 18, .45); transform: translateY(-4px); }
.menu-row .cr-desc { order: 3; font: 400 .84rem var(--font-body); color: #4A4038; text-align: right; }
.menu-row .cr-name { order: 1; white-space: nowrap; }
.menu-row:hover { background: rgba(244, 197, 66, .3); }
.menu-row[aria-checked="true"] { background: linear-gradient(transparent 12%, rgba(244, 197, 66, .85) 12% 88%, transparent 88%); }
.menu-row[aria-checked="true"]::before { content: "\2713"; position: absolute; left: 4px; top: 50%; transform: translateY(-50%); color: var(--brick); font-weight: 800; }
.menu[hidden] { display: none; }
.opts { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; margin-top: 24px; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: .95rem; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--neon-pink); }
.coin-btn { cursor: pointer; width: 104px; height: 104px; border-radius: 50%; border: 4px solid #fff; background: var(--neon-pink); color: #fff; font: 400 1.3rem/1.05 var(--font-neon); position: relative; transition: transform .12s, box-shadow .12s; box-shadow: 0 0 10px var(--neon-pink), 0 0 30px rgba(255, 77, 141, .55), inset 0 0 14px rgba(255, 255, 255, .35); text-shadow: 0 0 8px rgba(255, 255, 255, .8); }
.coin-btn::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .6); }
.coin-btn:hover { transform: rotate(-5deg) scale(1.04); }
.coin-btn:active { transform: scale(.96); }

/* xào bài */
.shuffle-stage { position: relative; height: 240px; max-width: 420px; margin: 16px auto 10px; }
.shuffle-stage .sc { position: absolute; left: 50%; top: 50%; width: 92px; margin: -77px 0 0 -46px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55)); }
.shuffle-stage .sc svg { display: block; width: 100%; height: auto; }
.shuffle-stage.is-shuffling .sc { animation: riffle 1.1s ease-in-out infinite; animation-delay: calc(var(--n) * -.14s); }
.shuffle-stage:not(.is-shuffling) .sc { transform: translate(calc(var(--n) * 1.5px), calc(var(--n) * -1.5px)); }
@keyframes riffle {
  0% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(calc(var(--n) * 14px - 40px), -16px) rotate(calc(var(--n) * 4deg - 12deg)); }
  50% { transform: translate(0, 0) rotate(0); }
  75% { transform: translate(calc(40px - var(--n) * 14px), 12px) rotate(calc(12deg - var(--n) * 4deg)); }
  100% { transform: translate(0, 0) rotate(0); }
}
.shuffle-q { text-align: center; max-width: 40ch; margin: 0 auto 14px; color: #E3E8FF; }

/* chọn bài: các lá úp trên mặt bàn */
.fan { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 14px 10px; max-width: 640px; margin: 18px auto 6px; padding: 8px 6px 14px; }
.fan-card { position: relative; display: block; padding: 0; border: 0; background: none; cursor: pointer; aspect-ratio: 3 / 5; transform: rotate(var(--r)); animation: float 4.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.37s); filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .55)); transition: filter .2s; }
.fan-card svg { display: block; width: 100%; height: 100%; }
.fan-card:hover:not(:disabled) { filter: drop-shadow(0 0 10px rgba(255, 77, 141, .9)); }
.fan-card.is-picked { animation: none; transform: translateY(-14px) rotate(0); filter: drop-shadow(0 0 14px rgba(255, 77, 141, 1)); }
.fan-card:disabled:not(.is-picked) { opacity: .45; cursor: default; }
.fan-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 400 1.3rem var(--font-head); color: var(--ink); background: var(--wall); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.fan-badge:empty { display: none; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-6px) rotate(calc(var(--r) * -1)); } }
.pick-count { text-align: center; font: 700 1.05rem var(--font-mono); color: var(--neon-amber); }

/* lật bài: các lá nằm trên mặt bàn gạch bông */
.slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 14px; margin: 18px auto 8px; padding: 22px 10px; list-style: none; max-width: 720px;
  background: linear-gradient(rgba(12, 17, 36, .72), rgba(12, 17, 36, .72)), var(--tile) 0 0 / 56px 56px; border: 3px solid rgba(244, 233, 207, .4); }
.slot { flex: 0 0 calc((100% - 28px) / 3); min-width: 0; display: grid; justify-items: center; gap: 8px; text-align: center; }
.slot:nth-child(odd) .flip { transform: rotate(-1.4deg); }
.slot:nth-child(even) .flip { transform: rotate(1.2deg); }
.slots[data-count="1"] { max-width: 270px; }
.slots[data-count="1"] .slot { flex-basis: 100%; }
.slot-label { text-align: center; font: 700 .74rem var(--font-mono); background: var(--wall); color: var(--ink); padding: 1px 10px; min-height: 1.6em; box-shadow: 2px 2px 0 var(--brick); }
.slot-name { font-size: .88rem; color: #fff; line-height: 1.3; background: rgba(12, 17, 36, .88); padding: 2px 10px; border-radius: 4px; }
.flip { perspective: 900px; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; aspect-ratio: 440 / 764; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .6)); }
.flip-inner { position: relative; display: block; width: 100%; height: 100%; transition: transform .8s cubic-bezier(.3, .7, .2, 1); transform-style: preserve-3d; }
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip:not(.is-flipped) .flip-inner { animation: float 4s ease-in-out infinite; --r: 0deg; }
.face { position: absolute; inset: 0; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face svg, .face img { display: block; width: 100%; height: 100%; }
.face-front { transform: rotateY(180deg); }
.face-front.is-rev img { transform: rotate(180deg); }
.hint { text-align: center; color: var(--muted); margin: 10px 0 0; }

/* trả lời có/không: biển neon lớn */
.verdict { --neon: var(--neon-mint); text-align: center; margin: 24px auto 6px; padding: 16px 18px 18px; max-width: 460px; border: 4px solid var(--neon); border-radius: 22px; background: rgba(0, 0, 0, .35); box-shadow: 0 0 10px var(--neon), 0 0 36px color-mix(in srgb, var(--neon) 50%, transparent), inset 0 0 20px color-mix(in srgb, var(--neon) 35%, transparent); }
.verdict[hidden] { display: none; }
.verdict[data-v="no"] { --neon: var(--neon-red); }
.verdict[data-v="maybe"] { --neon: var(--neon-cyan); }
.verdict-word { display: block; font: 400 clamp(2.4rem, 12vw, 3.8rem)/1.3 var(--font-neon); color: #fff; text-wrap: balance; text-shadow: 0 0 8px var(--neon), 0 0 22px var(--neon), 0 0 44px var(--neon); }
.verdict-sub { margin: 8px 0 0; font-size: .98rem; color: #E3E8FF; }

/* lời giải: mỗi lá là một tờ hóa đơn */
.reading { margin-top: 26px; }
.reading[hidden], .summary[hidden], .actions[hidden] { display: none; }
.reading > h3 { color: #fff; }
.reading-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .5)); }
.reading-item { position: relative; background: #FFFDF4; color: #1E1B16; padding: 16px 20px 30px; animation: fadein .5s ease both;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%; }
.reading-item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--brick) 0 14px, var(--wall) 14px 28px, var(--shutter) 28px 42px); }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.reading-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 6px 0 10px; padding-bottom: 10px; border-bottom: 2px dashed #B9B2A2; }
.reading-pos { font: 700 .88rem var(--font-mono); color: var(--brick); }
.reading-name { margin: 0; font-size: 1.35rem; flex: 1 1 auto; color: #1E1B16; }
.reading-en { font: italic 400 .9rem var(--font-body); color: #776E5E; margin-left: 6px; }
.badge { font: 700 .78rem var(--font-mono); padding: 2px 8px; border: 1.5px solid currentColor; }
.badge-up { color: #1E6A45; }
.badge-rev { color: #6A2E8A; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 10px; padding: 0; }
.chips li { font-size: .85rem; padding: 2px 10px; border-radius: 99px; background: rgba(244, 197, 66, .35); color: #5A4306; }
.reading-topic { padding: 8px 12px; border-left: 4px solid var(--brick); background: rgba(192, 64, 43, .09); }
.reading-note { font-size: .92rem; font-style: italic; color: #6A4A12; }
.reading-item .more { color: #8A2A1A; font-weight: 600; font-size: .95rem; }
.reading-item p { margin: 0 0 .8em; }

/* lời nhắn tổng hợp: tờ giấy note vàng */
.summary { position: relative; margin-top: 30px; background: var(--wall); color: var(--ink); padding: 18px 20px 20px; box-shadow: 0 14px 22px rgba(0, 0, 0, .5); }
.summary::before { content: ""; position: absolute; left: 50%; top: -13px; width: 84px; height: 26px; margin-left: -42px; background: rgba(255, 255, 255, .55); transform: rotate(-2deg); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.summary > h3 { font-family: var(--font-head); color: var(--ink); }
.sum-sec { margin-top: 14px; }
.sum-sec h4 { margin: 0 0 4px; font: 700 .95rem var(--font-mono); color: #7A1F12; }
.sum-sec p, .sum-sec ul { margin: 0; }
.sum-sec ul { padding-left: 1.2em; }
.sum-sec li { margin-bottom: .35em; }
.sum-sec.is-soft { font-size: .92rem; color: #3A311A; border-top: 2px dashed rgba(27, 22, 18, .4); padding-top: 12px; }
.sum-sec.is-soft h4 { color: #3A311A; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; align-items: center; }
.share-status { min-height: 1.5em; color: var(--neon-mint); font-size: .92rem; margin: 8px 0 0; }
.disclaimer { font-size: .85rem; color: var(--muted); margin: 18px 0 0; }

/* ---------- nội dung dưới quầy ---------- */
.section { padding: 64px 0 8px; }
.section-head { max-width: 60ch; margin-bottom: 22px; }
.section-head p { color: var(--muted); }

.daily { display: grid; gap: 28px; align-items: center; }
.daily-card { position: relative; width: min(220px, 60vw); margin: 0 auto; padding: 10px 10px 34px; background: #FFFDF4; transform: rotate(-2.5deg); box-shadow: 0 14px 22px rgba(0, 0, 0, .55); }
.daily-card::before { content: ""; position: absolute; left: 50%; top: -14px; width: 76px; height: 26px; margin-left: -38px; background: rgba(244, 197, 66, .8); transform: rotate(3deg); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.daily-art img { display: block; width: 100%; height: auto; }
.daily-date { color: var(--neon-amber); font: 700 .95rem var(--font-mono); margin: 0 0 4px; }
.daily-name { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0; color: #fff; }
.daily-en { color: var(--muted); font-style: italic; margin: 0 0 8px; }
.daily .chips li { background: rgba(255, 77, 141, .18); color: #FFC1D8; }
.daily-actbox { padding: 10px 14px; border-left: 4px solid var(--neon-pink); background: rgba(255, 77, 141, .1); }

/* ba bước = bảng số nhà tráng men */
.steps3 { display: grid; gap: 26px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps3 li { counter-increment: s; position: relative; padding: 0 0 0 78px; min-height: 64px; }
.steps3 li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 56px; height: 64px; display: grid; place-items: center; background: var(--enamel); color: #fff; font: 400 2rem/1 var(--font-head); border: 3px solid #fff; border-radius: 6px; box-shadow: 0 0 0 3px var(--enamel), 0 8px 12px rgba(0, 0, 0, .5); }
.steps3 strong { display: block; font: 400 1.2rem var(--font-head); margin-bottom: 4px; color: #fff; }
.steps3 span { color: var(--muted); }

.strip { display: flex; gap: 14px; margin: 4px 0 8px; padding: 14px 4px 18px; overflow-x: auto; list-style: none; scroll-snap-type: x proximity; }
.strip li { flex: 0 0 auto; width: 124px; transform: rotate(var(--t)); transition: transform .2s; scroll-snap-align: start; }
.strip li:hover { transform: rotate(0) translateY(-6px); }
.strip a { display: grid; gap: 8px; text-align: center; text-decoration: none; color: #fff; font: 600 .9rem/1.25 var(--font-body); }
.strip img { display: block; width: 100%; height: auto; box-shadow: 0 10px 14px rgba(0, 0, 0, .55); }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--neon-pink); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-right: 24px; }
.about-cols { display: grid; gap: 0 40px; }

/* ---------- quảng cáo ---------- */
/* Giữ khoảng cách rộng với nút bấm và liên kết để tránh bấm nhầm. Không dính màn hình, không đè nội dung. */
.ad { margin: 44px auto; text-align: center; max-width: 100%; clear: both; }
.ad[hidden] { display: none; }
.ad-label { display: block; font-size: .72rem; color: var(--muted); margin-bottom: 6px; }
.ad.is-live .ad-body { min-height: 250px; }
.ad.is-debug .ad-body { min-height: 250px; display: grid; place-items: center; border: 2px dashed var(--line); color: var(--muted); }
/* Không có quảng cáo phù hợp thì thu gọn luôn cả nhãn, không để lại ô trống */
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.paper .ad-label { color: #6A5F52; }
.paper .ad.is-debug .ad-body { color: #6A5F52; border-color: rgba(27, 22, 18, .3); }
.ad-li { grid-column: 1 / -1; list-style: none; }
.ad-li[hidden] { display: none; }
.ad-li .ad { margin: 28px auto; }
.meaning-ad { grid-column: 1 / -1; }
.meaning-ad .ad { margin: 24px auto; }
@media (min-width: 860px) { .ad.is-live .ad-body { min-height: 120px; } }

/* ---------- trang bài viết (giấy) ---------- */
.page-head { padding: 28px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 6vw, 3.1rem); color: #fff; }
.page-head p { color: var(--muted); max-width: 60ch; }
.page-head .chips li { background: rgba(255, 77, 141, .18); color: #FFC1D8; }
.paper { background: var(--paper); color: var(--ink); padding: 26px var(--gutter) 34px; margin: 18px 0 28px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); border-top: 8px solid var(--brick); position: relative; }
.paper::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(90deg, var(--brick) 0 14px, var(--wall) 14px 28px, var(--shutter) 28px 42px); }
.paper h2 { color: var(--ink); margin-top: 1.4em; }
.paper h2:first-child { margin-top: 0; }
.paper h3 { color: #3A2E22; margin-top: 1.2em; }
.paper a { color: #A2301D; }
.paper a:hover { color: #7A1F12; }
.paper .btn-lantern, .paper .btn-lantern:hover { color: var(--ink); }
.paper .prose { max-width: 68ch; }
.paper li { margin-bottom: .4em; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.filters button { font: 700 .92rem var(--font-body); min-height: 40px; padding: 0 16px; cursor: pointer; background: transparent; color: #ECEFFB; border: 2px solid rgba(236, 239, 251, .45); border-radius: 99px; }
.filters button[aria-pressed="true"] { background: var(--neon-pink); color: #fff; border-color: #fff; box-shadow: 0 0 14px rgba(255, 77, 141, .7); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 18px 12px; list-style: none; margin: 0 0 28px; padding: 0; }
.grid-cards li[hidden] { display: none; }
.card-link { display: grid; gap: 8px; text-decoration: none; color: #fff; text-align: center; }
.card-link img { display: block; width: 100%; height: auto; box-shadow: 0 8px 12px rgba(0, 0, 0, .55); transition: transform .2s; }
.card-link:hover img { transform: translateY(-4px) rotate(-1deg); }
.card-link span { font-size: .92rem; font-weight: 600; line-height: 1.3; }

.card-page { display: grid; gap: 22px; align-items: start; }
.card-page .art { width: min(260px, 70vw); margin: 0 auto; box-shadow: 0 16px 24px rgba(0, 0, 0, .6); }
.card-page .art img { display: block; width: 100%; height: auto; }
.meaning { display: grid; gap: 14px; margin: 14px 0; }
.meaning section { background: rgba(244, 197, 66, .25); padding: 14px 16px; border-left: 4px solid var(--brick); }
.meaning h3 { margin: 0 0 4px; font-size: 1.05rem; }
.meaning p { margin: 0; }
.nav-cards { display: flex; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; margin-top: 18px; }
.nav-cards a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- chân trang ---------- */
.site-footer { margin-top: 64px; background: var(--night-deep); position: relative; }
.site-footer::before { content: ""; display: block; height: 40px; background: var(--tile) 0 -12px / 56px 56px repeat-x; }
.site-footer .wrap { padding-top: 30px; padding-bottom: 36px; display: grid; gap: 22px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { display: inline-block; padding: 8px 0; color: #ECEFFB; text-decoration: none; }
.footer-nav a:hover { color: var(--neon-pink); text-decoration: underline; }
.footer-note { color: var(--muted); font-size: .88rem; max-width: 70ch; margin: 0; }
.consent { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 12px; max-width: 560px; margin: 0 auto; background: var(--night); border: 3px solid var(--neon-pink); padding: 14px 16px; box-shadow: 0 0 24px rgba(255, 77, 141, .45), 0 18px 40px rgba(0, 0, 0, .6); }
.consent p { margin: 0 0 10px; font-size: .92rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.consent .btn { min-height: 42px; font-size: .92rem; padding: 0 16px; }

/* biển neon TAROT ở hero (chỉ hiện trên màn hình đủ rộng), bật sáng một lần khi vào trang */
.neon-sign .ns-main { display: block; font: 400 clamp(3.2rem, 8vw, 6rem)/1 var(--font-neon); color: #fff; text-shadow: 0 0 6px var(--neon-pink), 0 0 18px var(--neon-pink), 0 0 42px var(--neon-pink), 0 0 80px rgba(255, 77, 141, .6); animation: neon-boot 1.4s steps(1, end) 1; }
.neon-sign .ns-sub { display: inline-block; margin-top: 10px; padding: 3px 16px; font: 400 1rem var(--font-neon); color: #fff; border: 3px solid var(--neon-cyan); border-radius: 99px; text-shadow: 0 0 8px var(--neon-cyan), 0 0 20px var(--neon-cyan); box-shadow: 0 0 10px var(--neon-cyan), inset 0 0 10px rgba(77, 216, 255, .5); animation: neon-boot 1.4s steps(1, end) .3s 1; }
@keyframes neon-boot { 0% { opacity: .2; } 10% { opacity: 1; } 18% { opacity: .3; } 30% { opacity: 1; } 42% { opacity: .5; } 52% { opacity: .15; } 60%, 100% { opacity: 1; } }

/* ---------- màn hình rộng ---------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .site-header nav { flex: 0 1 auto; }
  .nav { gap: 4px; justify-content: flex-start; }
  .nav a { padding: 8px 12px; font-size: 1rem; }
  .signs { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .signs .sign-slot:last-child:nth-child(odd) { grid-column: auto; }
  .neon-sign { display: block; position: absolute; right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); top: 130px; text-align: center; transform: rotate(4deg); }
  .steps3 { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .meaning { grid-template-columns: 1fr 1fr; }
  .meaning .wide { grid-column: 1 / -1; }
  .fan { grid-template-columns: repeat(7, 1fr); }
  .slot { flex-basis: calc((100% - 56px) / 3); }
  .slot-label { font-size: .85rem; }
  .slots { gap: 26px 28px; padding: 28px 24px; }
  .strip li { width: 140px; }
}
@media (min-width: 860px) {
  body { font-size: 18px; }
  .board { padding: 44px 36px 40px; }
  .pair { grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
  .hero { min-height: 660px; }
  .hero-copy { padding-bottom: 124px; }
  .daily { grid-template-columns: 260px 1fr; gap: 56px; }
  .daily-card { margin: 0; width: 260px; }
  .card-page { grid-template-columns: 280px 1fr; gap: 36px; }
  .card-page .art { margin: 0; position: sticky; top: 16px; }
  .paper { padding: 36px 40px 44px; }
  .about-cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- trang chủ Saigon Breath: dãy quầy dưới mái hiên ---------- */
.hero-hem { min-height: 520px; }
.hero-hem h1 { max-width: none; }
.hero-hem .hero-lead { max-width: 34ch; }
.shops { display: grid; gap: 40px 24px; padding-top: 6px; }
.shop { position: relative; margin-top: 4px; }
.awning {
  position: relative; height: 46px; border: 3px solid var(--ink); border-bottom: 0; border-radius: 10px 10px 0 0;
  background: repeating-linear-gradient(90deg, var(--brick) 0 28px, var(--tile-cream) 28px 56px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .25);
}
/* viền tròn dưới mái hiên, xen kẽ hai màu theo sọc */
.awning::after {
  content: ""; position: absolute; left: -3px; right: -3px; top: 100%; height: 14px;
  background:
    radial-gradient(circle at 14px 0, var(--brick) 13.5px, transparent 14.5px) 0 0 / 56px 14px repeat-x,
    radial-gradient(circle at 42px 0, var(--tile-cream) 13.5px, transparent 14.5px) 0 0 / 56px 14px repeat-x;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .3));
}
.shop-body {
  position: relative; padding: 36px 20px 24px; color: #ECEFFB; overflow: hidden;
  border: 3px solid var(--ink); border-top: 0; border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, var(--night-soft), var(--night));
  box-shadow: 0 24px 40px rgba(0, 0, 0, .45);
}
.shop-status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 400 .85rem var(--font-mono); color: var(--neon-mint); text-transform: uppercase; letter-spacing: .06em; }
.shop-status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--neon-mint); box-shadow: 0 0 8px var(--neon-mint), 0 0 18px var(--neon-mint); }
.shop-name { font: 400 clamp(2.2rem, 9vw, 3.4rem)/1.15 var(--font-neon); color: #fff; margin: 0 0 .2em; }
.shop-desc { color: #C9D0EE; max-width: 46ch; }

/* quầy đang mở: biển neon sáng, ba lá bài bày trước quầy */
.shop-open .shop-name { text-shadow: 0 0 6px var(--neon-pink), 0 0 18px var(--neon-pink), 0 0 42px rgba(255, 77, 141, .7); animation: neon-boot 1.4s steps(1, end) 1; }
.shop-open .shop-body { border-color: var(--wall); box-shadow: 0 0 0 1px rgba(244, 197, 66, .35), 0 24px 50px rgba(0, 0, 0, .55), 0 0 60px rgba(255, 77, 141, .18); }
.shop-open .awning { border-color: var(--wall); }
.shop-fan { display: flex; justify-content: center; margin: 0 0 26px; padding: 6px 0 0; list-style: none; }
.shop-fan li { width: min(31%, 150px); margin: 0 -2.5%; transform: translateY(calc(var(--i) * 0px)) rotate(calc((var(--i) - 1) * 9deg)); transform-origin: 50% 110%; }
.shop-fan li:nth-child(2) { position: relative; z-index: 1; transform: translateY(-8px); }
.shop-fan img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 10px 16px rgba(0, 0, 0, .55); }
.shop-text .btn { margin-top: 6px; }

/* quầy chưa mở: cửa cuốn kéo xuống, đèn tắt */
.shop-closed .awning { background: repeating-linear-gradient(90deg, #3B4468 0 28px, #2D3555 28px 56px); border-color: #0C1124; }
.shop-closed .awning::after {
  background:
    radial-gradient(circle at 14px 0, #3B4468 13.5px, transparent 14.5px) 0 0 / 56px 14px repeat-x,
    radial-gradient(circle at 42px 0, #2D3555 13.5px, transparent 14.5px) 0 0 / 56px 14px repeat-x;
}
.shop-closed .shop-body { border-color: #0C1124; background: var(--night-deep); box-shadow: 0 18px 30px rgba(0, 0, 0, .4); }
.shop-closed .shop-status { color: var(--muted); }
.shop-closed .shop-status .dot { background: #5A6490; box-shadow: none; }
.shop-closed .shop-name { font-size: clamp(1.7rem, 6vw, 2.2rem); color: #9AA3CC; }
.shop-closed .shop-desc { color: #8790B8; margin-bottom: 0; }
.shutter {
  position: relative; height: 88px; margin: 24px -20px -24px; border-top: 4px solid #0C1124;
  background: repeating-linear-gradient(180deg, #2A3254 0 9px, #1F2745 9px 11px);
  box-shadow: inset 0 14px 18px rgba(0, 0, 0, .45);
}
.shutter::after { content: ""; position: absolute; left: 50%; bottom: 16px; width: 34px; height: 8px; margin-left: -17px; border-radius: 4px; background: #0C1124; }

@media (min-width: 640px) {
  .hero-hem .neon-sign { top: 150px; }
  .hero-hem .ns-main { font-size: clamp(2.6rem, 7vw, 4.6rem); }
}
@media (min-width: 760px) {
  .shops { grid-template-columns: 1fr 1fr; gap: 48px 28px; }
  .shop-open { grid-column: 1 / -1; }
  .shop-open .shop-body { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: 40px; align-items: center; padding: 44px 40px 40px; }
  .shop-open .shop-fan { margin: 0; }
}

/* ---------- bài viết ---------- */
.crumbs { margin: 18px 0 0; font: 400 .85rem var(--font-mono); color: var(--muted); }
.crumbs a { color: var(--muted); }
.page-head .meta { margin: .4em 0 0; font: 400 .82rem var(--font-mono); color: var(--muted); }
.article h2 { font-size: clamp(1.35rem, 3.6vw, 1.75rem); margin-top: 1.7em; }
.article h3 { margin-top: 1.3em; }
.article p, .article li { line-height: 1.75; }
.article ul, .article ol { padding-left: 1.3em; }
.article blockquote { margin: 1.2em 0; padding: 4px 0 4px 16px; border-left: 4px solid var(--brick); color: #3A2E22; font-style: italic; }
.fig { margin: .4em auto 1.2em; width: 168px; text-align: center; }
.fig img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 8px 14px rgba(0, 0, 0, .35); }
.fig a { display: block; }
.fig figcaption { margin-top: 8px; font: 400 .8rem/1.4 var(--font-body); color: #6A5F52; }
.cta { margin: 1.6em 0 .4em; }
.related-list, .article-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.related-list a, .article-card a { display: grid; gap: 4px; height: 100%; padding: 14px 16px; text-decoration: none; color: #ECEFFB; background: var(--night-soft); border: 2px solid rgba(244, 233, 207, .22); border-radius: 10px; transition: border-color .15s, transform .15s; }
.related-list a:hover, .article-card a:hover { border-color: var(--neon-pink); transform: translateY(-2px); color: #fff; }
.related-list strong, .article-card strong { font: 700 1.02rem/1.35 var(--font-body); color: #fff; }
.related-list span, .article-card-text > span { font-size: .9rem; line-height: 1.5; color: var(--muted); }
.article-card a { grid-template-columns: 1fr; align-content: start; }
.thumbs { display: flex; margin: 0 0 6px; padding: 0; list-style: none; }
.thumbs li { width: 52px; margin-right: -14px; }
.thumbs li:nth-child(1) { transform: rotate(-6deg); }
.thumbs li:nth-child(3) { transform: rotate(6deg); }
.thumbs img { display: block; width: 100%; height: auto; border-radius: 3px; box-shadow: 0 4px 8px rgba(0, 0, 0, .5); }
.article-card-text { display: grid; gap: 4px; }
@media (min-width: 640px) {
  .fig { float: right; margin: .3em 0 .8em 22px; width: 150px; }
  .related-list { grid-template-columns: repeat(3, 1fr); }
  .article-list { grid-template-columns: repeat(2, 1fr); }
  .article h2 { clear: right; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
