/* Giọt Phin — hướng thiết kế: hoá đơn giấy nhiệt, bao bì giấy kraft, biển hiệu men tráng của quán cà phê cũ.
   Màu lấy từ ảnh: tường đất nung, khăn lanh, cà phê rang, sữa đặc, inox phin. Một màu nhấn: đồng đất. */
:root {
  --paper: #F4EBDD; --paper-2: #EADCC6; --card: #FBF6EE; --slip: #FFFCF6;
  --ink: #2A1A12; --ink-2: #5A4334; --ink-3: #75594A;
  --line: rgba(42, 26, 18, .12); --line-2: rgba(42, 26, 18, .22);
  --roast: #2A1A12; --milk: #F6ECDC; --terra: #C98A62; --linen: #E4D2B6; --steel: #8E8A83;
  --copper: #A64F22; --copper-2: #8E4018; --copper-soft: #F3DCC8; --on-copper: #FFF7EE;
  --ok: #4C6A2A; --ok-soft: #E3E8D2; --bad: #A3301C; --bad-soft: #F5DCD3; --warn: #8D5A0C; --warn-soft: #F5E5C6;
  --f-d: 'Fraunces', 'Be Vietnam Pro', Georgia, serif;
  --f-b: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  --f-m: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.2, 1.3, .35, 1);
  --r: 10px; --r-s: 6px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .12 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  --linen-tex: repeating-linear-gradient(0deg, rgba(90, 60, 30, .035) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(90, 60, 30, .03) 0 1px, transparent 1px 4px);
  color-scheme: light;
}
[data-theme="dark"] {
  --paper: #17100C; --paper-2: #21170F; --card: #24190F; --slip: #2B1F16;
  --ink: #F3E6D2; --ink-2: #D7C3A8; --ink-3: #B19A80;
  --line: rgba(243, 230, 210, .1); --line-2: rgba(243, 230, 210, .2);
  --copper: #E58A52; --copper-2: #F09C66; --copper-soft: #3A2316; --on-copper: #1A0E07;
  --ok: #A7C47A; --ok-soft: #26301A; --bad: #F08A72; --bad-soft: #3B1C14; --warn: #E3B064; --warn-soft: #33260F;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .8 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  --linen-tex: repeating-linear-gradient(0deg, rgba(255, 230, 200, .025) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(255, 230, 200, .02) 0 1px, transparent 1px 4px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper) var(--grain); color: var(--ink); font: 400 16px/1.6 var(--f-b); -webkit-font-smoothing: antialiased; min-height: 100dvh; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
button:disabled { cursor: not-allowed; opacity: .45; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--f-m); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.muted { color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2.5px solid var(--copper); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--copper); color: var(--on-copper); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--roast); color: var(--milk); padding: 12px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
kbd { font: 500 13px var(--f-m); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 6px; color: var(--ink-3); }
[hidden] { display: none !important; }

/* ---------- nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 8px; font-weight: 600; font-size: 15px; transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s; text-decoration: none; white-space: nowrap; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn .i { width: 20px; height: 20px; }
.btn-copper { background: var(--copper); color: var(--on-copper); }
.btn-copper:hover { background: var(--copper-2); }
.btn-ink { background: var(--roast); color: var(--milk); }
[data-theme="dark"] .btn-ink { background: var(--milk); color: var(--roast); }
.btn-ink:hover { filter: brightness(1.15); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); background: var(--card); }
.btn-ghost { color: var(--ink-3); }
.btn-ghost:hover { color: var(--bad); }
.btn-bad { background: var(--bad); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-wide { width: 100%; }
.btn.armed { background: var(--bad-soft); color: var(--bad); box-shadow: none; }
.lnk { color: var(--copper); font-weight: 600; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.lnk:hover { text-decoration: underline; text-underline-offset: 4px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-b { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; color: var(--ink-2); }
.icon-b:hover { background: var(--paper-2); }

/* con dấu kiểu mộc đỏ trên hoá đơn */
.stamp { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--f-m); letter-spacing: .06em; text-transform: uppercase; color: var(--copper); border: 1.5px solid currentColor; padding: 6px 9px 5px; border-radius: 4px; transform: rotate(-2deg); white-space: nowrap; }
.stamp-sm { padding: 4px 7px 3px; font-size: 13px; letter-spacing: .03em; transform: rotate(-1.5deg); }
.stamp-ok, .stamp-run { color: var(--ok); }
.stamp-bad, .stamp-end { color: var(--ink-3); }
.stamp-plan { color: var(--warn); }
.stamp-pause { color: var(--ink-3); }

/* chips, tabs */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); background: var(--card); transition: background .2s, color .2s, transform .2s var(--ease); display: inline-flex; align-items: center; gap: 8px; }
.chip .mono { font-size: 13px; color: var(--ink-3); }
.chip:hover { background: var(--paper-2); }
.chip:active { transform: scale(.97); }
.chip.on { background: var(--roast); color: var(--milk); }
.chip.on .mono { color: var(--terra); }
[data-theme="dark"] .chip.on { background: var(--milk); color: var(--roast); }
[data-theme="dark"] .chip.on .mono { color: var(--copper-2); }

/* ---------- thanh trên ---------- */
.gh { position: sticky; top: 0; z-index: 40; height: 64px; display: flex; align-items: center; gap: 20px; padding: 0 28px; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.gh-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo { width: 38px; height: 38px; flex: none; }
.gh-name { font: 700 21px/1 var(--f-d); letter-spacing: -.01em; display: flex; flex-direction: column; gap: 3px; }
.gh-name small { font: 500 13px/1 var(--f-b); color: var(--ink-3); letter-spacing: 0; }
.gh-mode { margin: 0 auto; display: flex; background: var(--paper-2); padding: 4px; border-radius: 10px; }
.gh-mode a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 7px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); transition: background .25s var(--ease), color .25s; }
.gh-mode a .i { width: 20px; height: 20px; }
.gh-mode a { white-space: nowrap; }
.l-short { display: none; }
.gh-mode a.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(42, 26, 18, .12); }
.gh-r { display: flex; gap: 4px; }
.gh-b { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-2); transition: background .2s; }
.gh-b:hover { background: var(--paper-2); }
.gh-b.on { color: var(--copper); }
.gh-b .mono { font-size: 14px; font-weight: 600; }
.gh-m { display: none; }

/* =================== APP KHÁCH =================== */
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; padding: 28px 48px 64px 28px; min-height: calc(100dvh - 64px); align-items: center; }
.story { position: relative; height: calc(100dvh - 160px); min-height: 640px; max-height: 860px; display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr auto; gap: 0 40px; }
.st-fig { grid-row: 1 / 3; grid-column: 1; margin: 0; overflow: hidden; border-radius: 4px; position: relative; background: var(--terra); }
.st-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.08); transition: transform 1.2s var(--ease); animation: unveil 1.1s var(--ease) both; }
@keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.st-sign { position: absolute; left: 28px; top: 28px; z-index: 2; background: var(--roast); color: var(--milk); padding: 16px 20px 14px; border-radius: 3px; box-shadow: inset 0 0 0 3px var(--roast), inset 0 0 0 4.5px #C9A27E; display: flex; flex-direction: column; gap: 4px; max-width: 300px; }
.st-sign b { font: 700 30px/1 var(--f-d); letter-spacing: .06em; }
.st-sign span { font: 600 13px/1.3 var(--f-m); letter-spacing: .08em; color: #E2C3A0; }
.st-sign small { font: 500 13px/1 var(--f-m); color: #B99A7C; letter-spacing: .06em; }
.st-copy { grid-column: 2; grid-row: 1; align-self: center; padding-top: 20px; }
.st-eye { font: 600 13px/1 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--copper); margin-bottom: 20px; }
.st-h { font: 600 clamp(36px, 3.6vw, 56px)/1.05 var(--f-d); letter-spacing: -.025em; margin-bottom: 22px; }
.st-p { font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 30em; }
.st-ticket { grid-column: 2; grid-row: 2; align-self: end; margin-bottom: 8px; transform: rotate(-1deg); }
.st-ticket ol { counter-reset: s; display: grid; gap: 10px; }
.st-ticket li { counter-increment: s; position: relative; padding-left: 30px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.st-ticket li::before { content: counter(s) "."; position: absolute; left: 0; top: 0; font: 600 15px/1.5 var(--f-m); color: var(--copper); }
.st-ticket a { color: var(--copper); font-weight: 600; }
.st-foot { position: absolute; left: 0; right: 0; bottom: -48px; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.st-foot a { color: var(--ink-2); }

/* hoá đơn giấy nhiệt: răng cưa dưới */
.receipt { background: var(--slip); padding: 26px 24px 30px; position: relative; filter: drop-shadow(0 1px 1px rgba(42, 26, 18, .08)); --zz: 10px; -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zz) 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zz) 100%; }
.r-h { font: 600 13px/1.5 var(--f-m); letter-spacing: .12em; text-align: center; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1.5px dashed var(--line-2); color: var(--ink-2); }
.r-h small { letter-spacing: .02em; font-weight: 500; color: var(--ink-3); }
.receipt hr { border: 0; border-top: 1.5px dashed var(--line-2); margin: 14px 0; }

/* khung điện thoại */
.phone-wrap { display: flex; justify-content: center; }
.ph { position: relative; width: 410px; height: min(860px, calc(100dvh - 112px)); min-height: 640px; border-radius: 54px; background: var(--paper) var(--grain); border: 12px solid #1C120C; box-shadow: 0 0 0 1.5px #4A3528, 0 40px 80px -30px rgba(42, 26, 18, .55), 0 18px 30px -18px rgba(42, 26, 18, .4); overflow: hidden; display: flex; flex-direction: column; isolation: isolate; }
.ph-status { height: 46px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; font-size: 15px; font-weight: 600; }
.ph-isl { width: 110px; height: 30px; border-radius: 20px; background: #1C120C; }
.ph-sig { display: flex; align-items: flex-end; gap: 2px; font-size: 13px; }
.ph-sig i { width: 3px; background: currentColor; border-radius: 1px; }
.ph-sig i:nth-child(1) { height: 5px; } .ph-sig i:nth-child(2) { height: 7px; } .ph-sig i:nth-child(3) { height: 9px; } .ph-sig i:nth-child(4) { height: 11px; margin-right: 4px; }
.pv { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior: contain; position: relative; }
.pv::-webkit-scrollbar { display: none; }
.pv-in { padding: 0 22px 32px; }
.pv-in.enter { animation: pvIn .45s var(--ease) both; }
@keyframes pvIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.pv[data-view="item"] .pv-in { padding: 0; }
.ph-tab { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 8px 18px; background: var(--card); border-top: 1px solid var(--line); }
.ph-tab a { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; justify-content: center; text-decoration: none; font-size: 13px; font-weight: 500; color: var(--ink-3); border-radius: 10px; transition: color .2s; }
.ph-tab a.on { color: var(--copper); }
.ph-tab a.on .i { stroke-width: 2; }
.ph-tab a.tab-c .i { width: 46px; height: 46px; padding: 11px; margin-top: -20px; border-radius: 50%; background: var(--roast); color: var(--milk); box-shadow: 0 0 0 5px var(--card); }
.ph-tab a.tab-c.on .i { background: var(--copper); color: var(--on-copper); }

/* stagger + reveal */
[data-st] { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease) var(--d, 0ms), transform .55s var(--ease) var(--d, 0ms); }
[data-st].in { opacity: 1; transform: none; }
.rv { clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); }
.rv.in { clip-path: inset(0 0 0 0); }
.rv[data-st] { clip-path: none; }

/* đầu trang khách */
.k-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; min-height: 64px; margin: 0 -22px 8px; padding: 8px 22px; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(6px); }
.k-h { font: 600 28px/1.1 var(--f-d); letter-spacing: -.02em; flex: 1; }
.k-top-home { position: static; padding-top: 14px; padding-bottom: 14px; }
.k-top-home > div { flex: 1; }
.k-hi { color: var(--ink-3); font-size: 15px; }
.k-name { font: 600 32px/1.1 var(--f-d); letter-spacing: -.02em; }
.k-back { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--card); margin-left: -4px; }
.k-bag { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--card); color: var(--ink); }
.k-bag b { position: absolute; top: 2px; right: 0; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--copper); color: var(--on-copper); font: 600 13px/22px var(--f-m); text-align: center; }
.k-eye, .q-eye { font: 600 13px/1.3 var(--f-m); letter-spacing: .07em; text-transform: uppercase; color: var(--copper); }
.k-sec { margin-top: 32px; }
.k-sh { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.k-sh h2 { font: 600 21px/1.2 var(--f-d); letter-spacing: -.01em; }
.k-sh .muted, .k-sh .mono { font-size: 13px; }
.k-hint { font-size: 14px; color: var(--ink-3); margin-top: 12px; line-height: 1.55; }
.k-note { font-size: 14px; color: var(--ink-3); margin-top: 28px; padding-top: 18px; border-top: 1.5px dashed var(--line-2); }
.k-foot { margin-top: 40px; font-size: 13px; color: var(--ink-3); line-height: 1.55; }
.k-foot a { color: var(--ink-2); }

/* thẻ mini */
.tilt { position: relative; transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .5s var(--ease); transform-style: preserve-3d; }
.tilt.tilting { transition: transform .12s linear; }
.sheen { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(105deg, transparent 35%, rgba(255, 244, 225, .32) 50%, transparent 65%); background-size: 250% 100%; background-position: calc(100% - var(--mx, 0%)) 0; opacity: 0; transition: opacity .3s; z-index: 2; }
.tilt.tilting .sheen { opacity: 1; }
.k-cardmini { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 24px; border-radius: 12px; color: var(--milk); background: var(--roast) var(--grain); overflow: hidden; }
.k-cardmini:active { transform: scale(.98); }
.km-l { display: flex; flex-direction: column; gap: 8px; }
.km-l .stamp { color: #E9A877; align-self: flex-start; }
.km-bal { font-size: 16px; color: #E8D6BF; }
.km-bal b { font: 600 48px/1 var(--f-d); color: var(--milk); letter-spacing: -.02em; }
.km-sub { font-size: 14px; color: #D8C2A6; }
.km-bar { height: 6px; border-radius: 3px; background: rgba(246, 236, 220, .18); overflow: hidden; margin-top: 4px; }
.km-bar i { display: block; height: 100%; background: #E9A877; border-radius: 3px; }
.km-qr { padding: 6px; background: #FBF5EA; border-radius: 6px; }
.k-active { margin-top: 16px; width: 100%; display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px 14px 14px; border-radius: 12px; background: var(--copper-soft); }
.ka-img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.k-active span { display: flex; flex-direction: column; }
.k-active small { font-size: 13px; color: var(--ink-3); }
.k-active b { font-size: 16px; }
.k-active em { font-style: normal; font-size: 14px; color: var(--ink-2); }
.k-offer { margin-top: 32px; border-radius: 12px; overflow: hidden; background: var(--card); }
.ko-img { height: 200px; overflow: hidden; }
.ko-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.k-offer:hover .ko-img img { transform: scale(1.04); }
.ko-t { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ko-t h2 { font: 600 24px/1.2 var(--f-d); letter-spacing: -.015em; }
.ko-t p:not(.k-eye) { font-size: 15px; color: var(--ink-2); margin-bottom: 8px; }
.k-bday { margin-top: 24px; display: grid; grid-template-columns: 88px 1fr; gap: 18px; padding: 22px; border-radius: 12px; background: var(--linen-tex) var(--paper-2); }
.kb-img { width: 88px; height: 112px; border-radius: 6px; object-fit: cover; }
.k-bday h3 { font: 600 19px/1.25 var(--f-d); margin: 4px 0 6px; }
.k-bday p:not(.k-eye) { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; line-height: 1.5; }
.k-bday .btn { min-height: 44px; padding: 0 16px; font-size: 14px; }
.k-usual { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 16px; border-radius: 12px; background: var(--card); }
.ku-img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }
.k-usual div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.k-usual b { font-size: 16px; }
.k-usual span { font-size: 14px; color: var(--ink-3); line-height: 1.4; }
.k-usual .mono { color: var(--ink); font-size: 15px; }
.k-store { width: 100%; display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 12px; border-radius: 12px; background: var(--card); }
.kst-img { width: 96px; height: 96px; border-radius: 8px; object-fit: cover; }
.k-store span { display: flex; flex-direction: column; gap: 2px; }
.k-store b { font: 600 19px/1.2 var(--f-d); }
.k-store small { font-size: 14px; color: var(--ink-3); line-height: 1.4; }
.k-store em, .kst-m .ok, .kst-m .bad { font-style: normal; font-size: 14px; font-weight: 600; }
.ok { color: var(--ok); } .bad { color: var(--bad); } .warn { color: var(--warn); }
.k-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 152px; gap: 14px; overflow-x: auto; margin: 0 -22px; padding: 4px 22px 10px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.k-rail::-webkit-scrollbar { display: none; }
.k-tile { scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; border-radius: 10px; }
.kt-img { width: 152px; height: 184px; border-radius: 8px; object-fit: cover; }
.k-tile b { font-size: 15px; line-height: 1.3; }
.k-tile .mono { font-size: 14px; color: var(--ink-3); }

/* thực đơn */
.k-msticky { position: sticky; top: 64px; z-index: 4; margin: 0 -22px; padding: 4px 22px 12px; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(6px); display: flex; flex-direction: column; gap: 12px; }
.k-search, .q-search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 10px; background: var(--card); color: var(--ink-3); transition: box-shadow .2s; }
.k-search:focus-within, .q-search:focus-within { box-shadow: 0 0 0 2px var(--copper); }
.k-search input, .q-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; color: var(--ink); }
.k-search input::placeholder, .q-search input::placeholder { color: var(--ink-3); }
.k-msticky .chips { margin: 0 -22px; padding: 2px 22px; }
.k-mgroup { margin-top: 26px; }
.k-mh { font: 600 13px/1 var(--f-m); letter-spacing: .1em; text-transform: uppercase; color: var(--copper); padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); margin-bottom: 4px; }
.k-mrow { display: flex; align-items: center; gap: 8px; border-bottom: 1.5px dashed var(--line-2); }
.km-main { flex: 1; min-width: 0; display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; }
.km-img { width: 76px; height: 76px; object-fit: cover; border-radius: 6px; transition: transform .4s var(--ease); }
.km-main:hover .km-img { transform: scale(1.04) rotate(-1deg); }
.km-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: flex-start; }
.km-t b { font: 600 18px/1.25 var(--f-d); }
.km-t small { font-size: 14px; color: var(--ink-3); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.km-p { display: flex; align-items: center; gap: 4px; align-self: flex-start; padding-top: 2px; }
.km-p .mono { font-size: 16px; font-weight: 600; }
.km-add { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--copper); transition: transform .2s var(--spring), background .2s; }
.km-add:hover { background: var(--copper); color: var(--on-copper); }
.km-add:active { transform: scale(.9); }
.k-empty, .q-empty { text-align: center; padding: 40px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ke-img, .qe-img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; margin-bottom: 10px; }
.k-empty h3, .q-empty h3 { font: 600 21px/1.25 var(--f-d); }
.k-empty p, .q-empty p { color: var(--ink-3); font-size: 15px; max-width: 28em; margin-bottom: 8px; }

/* skeleton */
.skel-wrap { display: flex; flex-direction: column; gap: 18px; padding-top: 20px; }
.skel-row { display: flex; gap: 14px; align-items: center; }
.sk-col { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.sk { display: block; border-radius: 6px; background: linear-gradient(100deg, var(--paper-2) 30%, var(--card) 50%, var(--paper-2) 70%) 0 0 / 300% 100%; animation: shimmer 1.3s linear infinite; }
.sk-img { width: 76px; height: 76px; flex: none; }
.sk-l { height: 16px; width: 70%; } .sk-s { height: 12px; width: 45%; }
.skel-t .sk-img { width: 48px; height: 48px; border-radius: 50%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* chi tiết món */
.k-item { min-height: 100%; display: flex; flex-direction: column; }
.ki-hero { position: relative; height: 360px; flex: none; overflow: hidden; background: var(--terra); }
.ki-img { width: 100%; height: 100%; object-fit: cover; }
.k-back-f { position: absolute; left: 16px; top: 12px; z-index: 2; background: var(--card); width: 48px; height: 48px; }
.ki-hero .k-bag { position: absolute; right: 16px; top: 12px; z-index: 2; }
.ki-body { padding: 24px 22px 24px; flex: 1; background: var(--paper) var(--grain); border-radius: 18px 18px 0 0; margin-top: -24px; position: relative; }
.ki-head { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1.5px dashed var(--line-2); }
.ki-head h1 { font: 600 32px/1.1 var(--f-d); letter-spacing: -.02em; }
.ki-head p { font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.ki-p { font-size: 20px !important; font-weight: 600; color: var(--ink) !important; }
.ki-opts { display: flex; flex-direction: column; gap: 24px; padding-top: 22px; }
.opt { border: 0; margin: 0; padding: 0; min-width: 0; }
.opt legend, .opt > span { font-weight: 600; font-size: 16px; margin-bottom: 10px; padding: 0; display: block; }
.opt legend small { font-weight: 400; color: var(--ink-3); font-size: 14px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg-b { flex: 1 0 auto; min-height: 48px; min-width: 56px; padding: 6px 12px; border-radius: 8px; background: var(--card); font-size: 15px; font-weight: 500; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; transition: background .2s, color .2s, transform .2s var(--ease); }
.seg-b small { font-size: 13px; color: var(--ink-3); font-weight: 400; }
.seg-b:active { transform: scale(.97); }
.seg-b.on { background: var(--roast); color: var(--milk); }
.seg-b.on small { color: #D5BC9E; }
[data-theme="dark"] .seg-b.on { background: var(--milk); color: var(--roast); }
[data-theme="dark"] .seg-b.on small { color: var(--ink-3); }
.stepper { display: inline-flex; align-items: center; background: var(--card); border-radius: 10px; }
.stepper button { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 10px; }
.stepper button:active:not(:disabled) { transform: scale(.9); }
.stepper output { min-width: 32px; text-align: center; font: 600 17px var(--f-m); }
.stepper-sm button { width: 44px; height: 44px; }
.stepper-sm .i { width: 18px; height: 18px; }
.opt-note input { width: 100%; height: 50px; border: 0; border-radius: 8px; background: var(--card); padding: 0 14px; font-size: 16px; }
.ki-bar { position: sticky; bottom: 0; z-index: 3; display: flex; gap: 10px; align-items: center; padding: 14px 22px 16px; margin: 24px -22px -32px; background: color-mix(in srgb, var(--paper) 95%, transparent); backdrop-filter: blur(6px); border-top: 1px solid var(--line); }
.k-item .ki-bar { margin: 0; }
.ki-bar .btn { flex: 1; min-height: 52px; font-size: 16px; }
.fly { position: fixed; z-index: 300; object-fit: cover; pointer-events: none; }

/* túi */
.k-bagr { margin-top: 4px; }
.bl { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; padding: 12px 0; align-items: start; }
.bl + .bl { border-top: 1px dashed var(--line-2); }
.bl-img { width: 60px; height: 60px; border-radius: 6px; object-fit: cover; }
.bl-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bl-t b { font-size: 16px; line-height: 1.3; }
.bl-t small { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.bl-a { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.bl-a .stepper { background: var(--paper); }
.bl-p { font-size: 15px; font-weight: 600; padding-top: 2px; text-align: right; }
.bl-p s { display: block; font-weight: 400; color: var(--ink-3); font-size: 13px; }
.k-pick { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 12px; background: var(--card); border-radius: 10px; }
.kp-img { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; }
.k-pick span { display: flex; flex-direction: column; }
.k-pick b { font: 600 17px var(--f-d); }
.k-pick small { font-size: 14px; color: var(--ink-3); line-height: 1.4; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { min-height: 62px; border-radius: 8px; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 13px; color: var(--ink-3); transition: background .2s, transform .2s var(--ease); }
.slot b { font-size: 16px; color: var(--ink); }
.slot:active:not(:disabled) { transform: scale(.97); }
.slot.on { background: var(--copper); color: var(--on-copper); }
.slot.on b { color: var(--on-copper); }
.slot:disabled { opacity: 1; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: line-through; }
.slot:disabled span { text-decoration: none; }
.pays { display: grid; gap: 8px; }
.pay { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s; }
.pay span { display: flex; flex-direction: column; }
.pay b { font-size: 16px; } .pay small { font-size: 14px; color: var(--ink-3); }
.pay.on { box-shadow: inset 0 0 0 2px var(--copper); }
.tog { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; margin-top: 12px; padding: 14px 16px; border-radius: 10px; background: var(--linen-tex) var(--paper-2); cursor: pointer; }
.tog input { position: absolute; opacity: 0; }
.tog-s { width: 52px; height: 30px; border-radius: 15px; background: var(--line-2); position: relative; transition: background .25s; }
.tog-s::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--slip); transition: transform .3s var(--spring); }
.tog input:checked + .tog-s { background: var(--copper); }
.tog input:checked + .tog-s::after { transform: translateX(22px); }
.tog input:focus-visible + .tog-s { outline: 2.5px solid var(--copper); outline-offset: 3px; }
.tog > span:last-child { display: flex; flex-direction: column; }
.tog b { font-size: 16px; } .tog small { font-size: 14px; color: var(--ink-3); }
.k-sum { margin-top: 28px; }
.rl { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 5px 0; color: var(--ink-2); }
.rl-off { color: var(--ok); }
.rl-t { font-size: 20px; font-weight: 700; color: var(--ink); padding-top: 12px; margin-top: 8px; border-top: 1.5px dashed var(--line-2); }
.rl-earn { color: var(--copper); font-weight: 600; }
.rl-earn span:first-child { display: flex; align-items: center; gap: 6px; }
.rl-earn .i { width: 18px; height: 18px; }
.k-err { margin-top: 16px; display: flex; gap: 10px; padding: 14px 16px; border-radius: 10px; background: var(--bad-soft); color: var(--bad); font-size: 15px; line-height: 1.45; }
.btn.loading { opacity: .85; }

/* phiếu lấy ly */
.k-slip { margin-top: 4px; }
.slip-code { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 20px; }
.slip-code span { font: 500 13px var(--f-m); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.slip-code b { font-size: 56px; line-height: 1; font-weight: 600; letter-spacing: .02em; }
.slip-stamp { display: flex; justify-content: center; width: max-content; margin: 0 auto 18px; font-size: 18px; color: var(--bad); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); text-align: center; position: relative; }
.steps li::before { content: ''; position: absolute; top: 9px; right: 50%; width: 100%; height: 2px; background: var(--line-2); z-index: 0; }
.steps li:first-child::before { display: none; }
.steps i { width: 20px; height: 20px; border-radius: 50%; background: var(--paper-2); position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--slip); }
.steps li.done i, .steps li.done::before, .steps li.now::before { background: var(--copper); }
.steps li.now i { background: var(--copper); box-shadow: 0 0 0 4px var(--slip), 0 0 0 7px var(--copper-soft); animation: beat 1.6s var(--ease) infinite; }
.steps li.now, .steps li.done { color: var(--ink); font-weight: 600; }
@keyframes beat { 50% { box-shadow: 0 0 0 4px var(--slip), 0 0 0 10px transparent; } }
.bl-ro { grid-template-columns: 52px 1fr auto; }
.bl-ro .bl-img { width: 52px; height: 52px; }
.slip-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 22px; padding-top: 22px; border-top: 1.5px dashed var(--line-2); }
.slip-qr small { font-size: 13px; color: var(--ink-3); }
.k-demo { display: flex; gap: 10px; padding: 16px; border-radius: 10px; background: var(--copper-soft); color: var(--ink-2); margin-top: 24px; }
.k-demo .i { color: var(--copper); }

/* thẻ thành viên */
.k-card { margin-top: 4px; padding: 26px 24px 24px; border-radius: 14px; color: var(--roast); background: #D4AE82 var(--grain); background-image: var(--grain), radial-gradient(120% 80% at 20% 0%, #E2C29C, #C99D6E); display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.k-card::before { content: ''; position: absolute; inset: 10px; border: 1.5px dashed rgba(42, 26, 18, .35); border-radius: 8px; pointer-events: none; }
.kc-top { width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.kc-logo { width: 42px; height: 42px; }
.kc-top > span:not(.stamp) { flex: 1; display: flex; flex-direction: column; }
.kc-top b { font: 700 19px/1.1 var(--f-d); letter-spacing: .06em; }
.kc-top small { font-size: 13px; color: #5A3F2C; }
.kc-top .stamp { color: #7E2E0C; }
.kc-qr { padding: 12px; background: #FBF5EA; border-radius: 8px; }
.kc-no { margin-top: 14px; font-size: 17px; font-weight: 600; letter-spacing: .1em; }
.kc-name { font: 600 18px var(--f-d); }
.kc-holes { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; width: 100%; margin-top: 18px; }
.kc-holes i { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(42, 26, 18, .4); }
.kc-holes i.on { background: #7E2E0C; border-color: #7E2E0C; box-shadow: inset 0 0 0 3px #D9B78E; }
.kc-hn { font-size: 13px; color: #4E3626; margin-top: 8px; }
.ladder { position: relative; height: 70px; margin: 8px 12px 0; }
.ld-bar { position: absolute; left: 0; right: 0; top: 8px; height: 8px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.ld-bar i { display: block; height: 100%; background: var(--copper); border-radius: 4px; }
.ld-m { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ld-m i { width: 24px; height: 24px; border-radius: 50%; background: var(--paper-2); box-shadow: 0 0 0 4px var(--paper); }
.ld-m.on i { background: var(--copper); }
.ld-m b { font-size: 14px; white-space: nowrap; } .ld-m small { font-size: 13px; color: var(--ink-3); }
.ld-m:first-of-type { transform: none; align-items: flex-start; }
.ld-m:last-of-type { transform: translateX(-100%); align-items: flex-end; }
.perks { display: grid; gap: 10px; margin-top: 20px; }
.perk { padding: 18px 20px; border-radius: 10px; background: var(--card); }
.perk.cur { box-shadow: inset 0 0 0 2px var(--copper); }
.perk h3 { font: 600 18px var(--f-d); margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.perk h3 em { font: 600 13px var(--f-m); color: var(--copper); font-style: normal; text-transform: uppercase; letter-spacing: .05em; }
.perk li { font-size: 15px; color: var(--ink-2); padding-left: 18px; position: relative; line-height: 1.6; }
.perk li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 8px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--copper); }
.ledger li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line-2); }
.ledger span:first-child { display: flex; flex-direction: column; }
.ledger b { font-size: 15px; font-weight: 500; } .ledger small { font-size: 13px; color: var(--ink-3); }
.ledger .pos { color: var(--ok); font-weight: 600; } .ledger .neg { color: var(--bad); font-weight: 600; }

/* bản đồ */
.seg-city { margin-bottom: 14px; }
.seg-city .seg-b { flex-direction: row; gap: 6px; }
.k-map { position: relative; border-radius: 12px; overflow: hidden; background: var(--linen-tex) var(--paper-2); }
.k-map svg { width: 100%; height: auto; }
.k-map text { font: 500 11px var(--f-b); fill: var(--ink-3); }
.mp-water { fill: #A9C2BF; opacity: .55; }
[data-theme="dark"] .mp-water { fill: #3B5653; }
.mp-river { fill: none; stroke: #A9C2BF; stroke-width: 14; stroke-linecap: round; opacity: .55; }
[data-theme="dark"] .mp-river { stroke: #3B5653; }
.mp-road { fill: none; stroke: var(--card); stroke-width: 5; stroke-linecap: round; }
.mp-road-s { stroke-width: 2.5; opacity: .8; }
.mp-me circle:last-child { fill: #2F6DB0; stroke: #fff; stroke-width: 2.5; }
.mp-me .pulse { fill: #2F6DB0; opacity: .2; animation: pulse 2s var(--ease) infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0% { transform: scale(.4); opacity: .4; } 100% { transform: scale(1.4); opacity: 0; } }
.mp-pin { cursor: pointer; outline: none; }
.mp-pin path { fill: var(--roast); transition: fill .2s; }
[data-theme="dark"] .mp-pin path { fill: var(--milk); }
.mp-pin circle { fill: var(--paper); }
.mp-pin text { font: 600 13px var(--f-b) !important; fill: var(--ink) !important; text-anchor: middle; paint-order: stroke; stroke: var(--paper-2); stroke-width: 4px; }
.mp-pin.on path, .mp-pin:hover path, .mp-pin:focus-visible path { fill: var(--copper); }
.mp-pin:focus-visible circle { fill: var(--copper-soft); }
.mp-note { position: absolute; right: 12px; bottom: 10px; font-size: 13px; color: var(--ink-3); }
.k-stores { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.k-st { border-radius: 12px; background: var(--card); overflow: hidden; transition: box-shadow .3s; }
.k-st.on { box-shadow: inset 0 0 0 2px var(--copper); }
.k-st.hl { box-shadow: inset 0 0 0 2px var(--ink-3); }
.kst-ph { width: 100%; height: 150px; object-fit: cover; }
.kst-b { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.kst-h { display: flex; align-items: center; gap: 10px; }
.kst-h h3 { font: 600 21px/1.2 var(--f-d); }
.kst-a { font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.kst-m { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--ink-3); }
.kst-n { font-size: 14px; color: var(--ink-3); line-height: 1.5; margin-bottom: 8px; }
.is-sel { color: var(--copper); box-shadow: none; padding: 0; min-height: 44px; }

/* tôi */
.k-me { display: flex; gap: 16px; align-items: center; margin-top: 4px; }
.av { display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--copper-soft); color: var(--copper); font: 600 22px var(--f-d); width: 68px; height: 68px; }
.k-me h2 { font: 600 24px/1.2 var(--f-d); }
.k-me p { font-size: 15px; }
.k-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.k-stats span { display: flex; flex-direction: column; gap: 2px; padding: 16px 14px; border-radius: 10px; background: var(--card); }
.k-stats b { font-size: 24px; font-weight: 600; }
.k-stats small { font-size: 13px; color: var(--ink-3); line-height: 1.3; }
.hist { margin-top: 12px; }
.hist li { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line-2); }
.h-img { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; }
.h-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; min-height: 44px; }
.h-t b { font-size: 15px; font-weight: 600; line-height: 1.35; }
.h-t small { font-size: 13px; color: var(--ink-3); }
.h-st { font-weight: 600; }
.h-st.done { color: var(--ok); } .h-st.cancel { color: var(--bad); } .h-st.new, .h-st.brewing, .h-st.ready { color: var(--copper); }
.k-set { display: flex; flex-direction: column; background: var(--card); border-radius: 12px; overflow: hidden; }
.k-set > * { display: grid; grid-template-columns: 24px 1fr auto; gap: 14px; align-items: center; min-height: 56px; padding: 0 18px; text-decoration: none; font-size: 16px; transition: background .2s; }
.k-set > * + * { border-top: 1px solid var(--line); }
.k-set > *:hover { background: var(--paper-2); }
.k-set em { font-style: normal; color: var(--ink-3); font-size: 15px; }
.k-set .i { color: var(--ink-2); }

/* lớp phủ */
.ov { position: fixed; inset: 0; z-index: 90; display: flex; }
.ph .ov { position: absolute; z-index: 20; }
.ov-bg { position: absolute; inset: 0; background: rgba(28, 18, 12, .45); opacity: 0; transition: opacity .35s var(--ease); }
.ov.in .ov-bg { opacity: 1; }
.ov-p { position: relative; background: var(--paper) var(--grain); outline: none; transition: transform .45s var(--ease), opacity .35s var(--ease); }
.ov-drawer { justify-content: flex-end; }
.ov-drawer .ov-p { width: min(500px, 100%); height: 100%; transform: translateX(40px); opacity: 0; }
.ov-drawer.in .ov-p { transform: none; opacity: 1; }
.ov-confirm { align-items: center; justify-content: center; padding: 20px; }
.ov-confirm .ov-p { width: min(460px, 100%); border-radius: 14px; transform: translateY(16px) scale(.98); opacity: 0; }
.ov-confirm.in .ov-p { transform: none; opacity: 1; }
.ov-pal { align-items: flex-start; justify-content: center; padding: 12vh 20px 20px; }
.ov-pal .ov-p { width: min(620px, 100%); border-radius: 14px; overflow: hidden; transform: translateY(-10px); opacity: 0; }
.ov-pal.in .ov-p { transform: none; opacity: 1; }
.ov-drip .ov-p { width: 100%; height: 100%; background: #C98A62; opacity: 0; transform: scale(1.02); }
.ov-drip.in .ov-p { opacity: 1; transform: none; }
.cf { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.cf h2 { font: 600 24px/1.2 var(--f-d); }
.cf p { color: var(--ink-2); font-size: 16px; }
.cf-a { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
.cf .k-set { margin-top: 4px; }

/* khoảnh khắc 3D */
.drip { height: 100%; display: flex; flex-direction: column; color: #2A1A12; }
.drip-stage { position: relative; flex: 1; min-height: 0; background: linear-gradient(#C98A62, #D29A72 70%, #DDB08D); }
.drip-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.drip-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease); }
.drip-stage.live .drip-poster { opacity: 0; }
.drip-t { flex: none; padding: 24px 24px 28px; background: var(--linen-tex) #F1E2CC; display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; border-radius: 18px 18px 0 0; margin-top: -18px; position: relative; }
.drip-t .k-eye { color: #8A3D16; }
.drip-n { font: 600 52px/1.1 var(--f-d); letter-spacing: -.02em; }
.drip-n .mono { font-family: var(--f-d); }
.drip-s { font-size: 15px; color: #5A4334; margin-bottom: 16px; }
.drip-t .btn { background: #A64F22; color: #FFF7EE; }

/* toast */
#toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 10px; background: var(--roast); color: var(--milk); font-size: 15px; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .3s var(--ease), transform .4s var(--spring); pointer-events: auto; }
[data-theme="dark"] .toast { background: var(--milk); color: var(--roast); }
.toast.in { opacity: 1; transform: none; }
.toast .i { color: #9BC46A; width: 20px; height: 20px; }
.toast.bad .i { color: #F08A72; }
.toast a { color: #E9A877; font-weight: 600; }

/* =================== BẢNG CHỦ QUÁN =================== */
.ow { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: calc(100dvh - 64px); }
.qsb { position: sticky; top: 64px; height: calc(100dvh - 64px); overflow-y: auto; padding: 24px 18px; display: flex; flex-direction: column; gap: 4px; background: var(--linen-tex) var(--paper-2); }
.qsb-top { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; margin-bottom: 18px; }
.qsb-img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.qsb-top div { display: flex; flex-direction: column; }
.qsb-top b { font: 600 18px var(--f-d); }
.qsb-top small { font-size: 13px; color: var(--ink-3); }
.qk { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 8px; background: var(--card); color: var(--ink-3); font-size: 15px; margin-bottom: 18px; }
.qk span { flex: 1; }
.qk:hover { color: var(--ink); }
.qn-g { font: 600 13px var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 16px 14px 8px; }
.qn { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 8px; text-decoration: none; font-size: 16px; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; }
.qn:hover { background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--ink); }
.qn.on { background: var(--card); color: var(--ink); font-weight: 600; }
.qn.on .i { color: var(--copper); }
.qn span { flex: 1; }
.qn em { font: 600 13px var(--f-m); font-style: normal; color: var(--copper); }
.qsb-f { margin-top: auto; padding: 18px 14px 0; font-size: 13px; color: var(--ink-3); line-height: 1.55; display: flex; flex-direction: column; gap: 8px; }
.qsb-f a { color: var(--ink-2); }
.qtab { display: none; }
.qmain { min-width: 0; padding: 36px 48px 80px; }
.qv { max-width: 1180px; margin: 0 auto; }
.qv.enter { animation: pvIn .45s var(--ease) both; }
.q-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.q-h1 { font: 600 40px/1.1 var(--f-d); letter-spacing: -.025em; margin-top: 6px; }
.q-sel { position: relative; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-radius: 10px; background: var(--card); color: var(--ink-2); }
.q-sel select { appearance: none; border: 0; background: none; font-size: 16px; font-weight: 600; color: var(--ink); padding-right: 22px; outline: none; cursor: pointer; }
.q-sel:focus-within { box-shadow: 0 0 0 2px var(--copper); }
.sel-c { position: absolute; right: 12px; width: 18px; height: 18px; pointer-events: none; }
.q-branch select { min-width: 190px; }
.q-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: 320px; gap: 0; margin-bottom: 36px; border-radius: 14px; overflow: hidden; background: var(--card); }
.qh-img { grid-column: 2; grid-row: 1; width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.qh-t { grid-column: 1; grid-row: 1; padding: 36px 40px; display: flex; flex-direction: column; gap: 10px; justify-content: center; align-items: flex-start; }
.qh-big { font: 600 64px/1 var(--f-d); letter-spacing: -.03em; }
.qh-sub { font-size: 17px; color: var(--ink-2); line-height: 1.55; max-width: 28em; margin-bottom: 10px; }
.delta { font: 600 16px var(--f-m); padding: 3px 8px; border-radius: 6px; }
.delta.up { color: var(--ok); background: var(--ok-soft); } .delta.down { color: var(--bad); background: var(--bad-soft); }
.q-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.q-tools .q-search { width: 320px; }
.q-tr { display: flex; gap: 10px; }
.q-past { display: flex; align-items: center; gap: 10px; min-height: 48px; color: var(--ink-3); font-size: 15px; margin-bottom: 12px; }
.q-past:hover { color: var(--ink); }
.slotg { margin-bottom: 32px; }
.sg-h { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.sg-h b { font-size: 18px; }
.now-tag { font: 600 13px var(--f-m); color: var(--on-copper); background: var(--copper); padding: 4px 9px; border-radius: 4px; }
.sg-cap { flex: 1; max-width: 220px; height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.sg-cap i { display: block; height: 100%; background: var(--ink-3); border-radius: 3px; }
.sg-cap i.hot { background: var(--copper); }
.sg-n { font-size: 14px; color: var(--ink-3); }
.slotg.is-now { padding: 22px; margin-left: -22px; margin-right: -22px; border-radius: 14px; background: var(--linen-tex) var(--paper-2); }
.sg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.tk { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 16px; border-radius: 12px; background: var(--card); transition: transform .25s var(--ease), box-shadow .25s; min-height: 104px; }
.tk:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -16px rgba(42, 26, 18, .45); }
.tk:active { transform: scale(.98); }
.tk-img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }
.tk-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tk-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tk-h b { font-size: 16px; }
.tk-n { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-i, .tk-f { font-size: 14px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk.done, .tk.tk-done, .tk.tk-cancel { opacity: .7; }
.tk.late { box-shadow: inset 3px 0 0 var(--bad); }
.tk.mine { box-shadow: inset 0 0 0 2px var(--copper); }
.pill { font: 600 13px var(--f-m); padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.pill-new { background: var(--warn-soft); color: var(--warn); }
.pill-brewing { background: var(--copper-soft); color: var(--copper); }
.pill-ready { background: var(--ok-soft); color: var(--ok); }
.pill-done { background: var(--paper-2); color: var(--ink-3); }
.pill-cancel { background: var(--bad-soft); color: var(--bad); }
.tier { font: 600 13px var(--f-m); font-style: normal; padding: 2px 7px; border-radius: 4px; background: var(--paper-2); color: var(--ink-2); }
.tier-vang { background: #F1DDB4; color: #7A4B05; }
.tier-rang { background: var(--copper-soft); color: var(--copper); }
.tier-you { background: var(--copper); color: var(--on-copper); }
[data-theme="dark"] .tier-vang { background: #3D2E10; color: #F0C978; }

/* hàng đợi: phiếu treo trên dây */
.q-qhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.q-h2 { font: 600 34px/1.15 var(--f-d); letter-spacing: -.02em; margin-top: 6px; }
.q-qhead > p { font-size: 15px; max-width: 26em; }
.rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.rail-c { border-radius: 14px; background: var(--linen-tex) var(--paper-2); padding: 0 16px 20px; position: relative; min-height: 420px; }
.rail-c::before { content: ''; position: absolute; left: 0; right: 0; top: 74px; height: 3px; background: linear-gradient(var(--steel), #B9B5AE); box-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
.rail-h { padding: 18px 4px 0; height: 74px; }
.rail-h h3 { font: 600 20px var(--f-d); display: flex; gap: 10px; align-items: baseline; }
.rail-h h3 .mono { font-size: 16px; color: var(--copper); }
.rail-h p { font-size: 13px; color: var(--ink-3); }
.rail-l { display: flex; flex-direction: column; gap: 18px; padding-top: 18px; }
.qt { position: relative; background: var(--slip); padding: 24px 20px 24px; border-radius: 2px; transform-origin: 50% -16px; transition: transform .3s var(--ease), opacity .3s; filter: drop-shadow(0 6px 10px rgba(42, 26, 18, .12)); --zz: 10px; -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zz) 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zz) 100%; }
.qt:nth-child(2n) { transform: rotate(.6deg); } .qt:nth-child(3n) { transform: rotate(-.5deg); }
.qt.leaving { transform: translateX(40px) rotate(4deg); opacity: 0; }
.qt-clip { position: absolute; top: -2px; left: 50%; width: 34px; height: 12px; margin-left: -17px; border-radius: 0 0 4px 4px; background: linear-gradient(#C8C4BD, #8E8A83); }
.qt header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-bottom: 10px; border-bottom: 1.5px dashed var(--line-2); margin-bottom: 12px; }
.qt header b { font-size: 26px; }
.qt-due { font: 600 14px var(--f-m); color: var(--ink-2); }
.qt-due.bad { color: var(--bad); } .qt-due.warn { color: var(--warn); }
.qt-n { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.qt-l { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 8px 0; align-items: center; }
.ql-img { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; }
.qt-l b { font-size: 17px; display: block; line-height: 1.3; }
.qt-l span { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.qt-note { display: flex; gap: 8px; font-size: 14px; color: var(--warn); background: var(--warn-soft); padding: 10px 12px; border-radius: 6px; margin: 8px 0 4px; }
.qt-note .i { width: 18px; height: 18px; }
.qt .btn { margin-top: 14px; }
.qt.late header b { color: var(--bad); }
.qt.mine { outline: 2px solid var(--copper); outline-offset: 3px; }
.rail-e { text-align: center; padding: 22px 10px; color: var(--ink-3); font-size: 15px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.re-img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; opacity: .9; }

/* hội viên */
.mt { display: flex; flex-direction: column; background: var(--card); border-radius: 14px; overflow: hidden; }
.mt-r { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 1.5fr) 120px; gap: 20px; align-items: center; padding: 14px 24px; min-height: 76px; width: 100%; transition: background .2s; }
.mt-r + .mt-r { border-top: 1px solid var(--line); }
button.mt-r:hover { background: color-mix(in srgb, var(--paper-2) 60%, transparent); }
.mt-hd { min-height: 52px; font: 600 13px var(--f-m); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.r { text-align: right; justify-self: end; }
.mt-n { display: flex; gap: 14px; align-items: center; min-width: 0; }
.av-sm { width: 48px; height: 48px; font-size: 17px; }
.av-lg { width: 72px; height: 72px; font-size: 24px; }
.mt-n > span:last-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mt-n b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-n small { font-size: 14px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.mt-f { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.mt-f small { display: block; font-size: 13px; color: var(--ink-3); }
.fbar { width: 100%; max-width: 160px; height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.fbar i { display: block; height: 100%; background: var(--copper); border-radius: 3px; }
.mt-d { display: flex; gap: 12px; align-items: center; font-size: 15px; min-width: 0; }
.md-img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex: none; }
.mt-y { font-size: 18px; font-weight: 600; }
.skel-t { background: var(--card); border-radius: 14px; padding: 24px; }

/* drawer */
.dw { height: 100%; display: flex; flex-direction: column; }
.dw-h { display: flex; justify-content: space-between; gap: 16px; padding: 28px 28px 20px; }
.dw-h h2 { font: 600 28px/1.15 var(--f-d); letter-spacing: -.02em; margin: 4px 0; }
.dw-h p.muted { font-size: 15px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dw-who { display: flex; gap: 16px; align-items: center; }
.dw-b { flex: 1; overflow-y: auto; padding: 4px 28px 24px; display: flex; flex-direction: column; gap: 18px; }
.dw-f { padding: 18px 28px 24px; display: flex; gap: 10px; border-top: 1px solid var(--line); background: var(--paper); }
.dw-f .btn-wide { flex: 1; }
.dw-line { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: center; }
.dl-img { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; }
.dw-line b { font-size: 17px; } .dw-line p { font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.dw-line .mono { font-weight: 600; }
.dw-sum { display: flex; justify-content: space-between; padding: 16px 0; border-top: 1.5px dashed var(--line-2); font-size: 16px; }
.dw-sum b { font-size: 20px; }
.dw-mem { display: grid; grid-template-columns: 48px 1fr 22px; gap: 14px; align-items: center; padding: 16px; border-radius: 12px; background: var(--card); }
.dw-mem span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
.dw-mem small { font-size: 14px; color: var(--ink-3); }
.dw-note { color: var(--warn) !important; }
.dw-big { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dw-big span { display: flex; flex-direction: column; padding: 20px; border-radius: 12px; background: var(--card); }
.dw-big b { font-size: 34px; font-weight: 600; line-height: 1.1; }
.dw-big small { font-size: 14px; color: var(--ink-3); }
.wk { padding: 20px; background: var(--card); border-radius: 12px; }
.wk-b { display: flex; gap: 6px; align-items: flex-end; height: 90px; margin-top: 14px; }
.wk-b i { flex: 1; background: var(--linen); border-radius: 3px 3px 0 0; }
.wk-b i.now { background: var(--copper); }
[data-theme="dark"] .wk-b i { background: #4A3828; }
[data-theme="dark"] .wk-b i.now { background: var(--copper); }
.favs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.favs .q-eye { grid-column: 1 / -1; }
.fav { display: flex; flex-direction: column; gap: 8px; }
.fv-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.fav b { font-size: 15px; }
.fld { display: flex; flex-direction: column; gap: 8px; }
.fld > span { font-weight: 600; font-size: 15px; }
.fld input, .fld select, .fld textarea { border: 0; border-radius: 8px; background: var(--card); padding: 12px 14px; font-size: 16px; min-height: 50px; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--copper); }
.fld textarea { resize: vertical; }
.fld-e { font-style: normal; font-size: 14px; color: var(--bad); min-height: 0; }
.fld-e:empty { display: none; }
.fld-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dw-o { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; min-height: 52px; padding: 0 14px; border-radius: 8px; background: var(--card); font-size: 14px; text-align: left; }
.cprev { padding: 20px; border-radius: 12px; background: var(--linen-tex) var(--paper-2); }
.cpv { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; margin-top: 12px; padding: 12px; border-radius: 10px; background: var(--card); }
.cpv-img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }
.cpv div { display: flex; flex-direction: column; }
.cpv b { font: 600 17px var(--f-d); } .cpv span { font-size: 15px; color: var(--copper); font-weight: 600; } .cpv small { font-size: 13px; color: var(--ink-3); }

/* ưu đãi */
.camps { display: grid; grid-template-columns: repeat(auto-fill, minmax(480px, 1fr)); gap: 20px; }
.camp { display: grid; grid-template-columns: 170px 1fr; border-radius: 14px; background: var(--card); overflow: hidden; }
.cp-img { width: 100%; height: 100%; min-height: 250px; object-fit: cover; }
.cp-b { padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.cp-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.cp-h .muted { font-size: 14px; }
.camp h3 { font: 600 23px/1.2 var(--f-d); letter-spacing: -.01em; }
.cp-o { font-size: 16px; color: var(--copper); font-weight: 600; }
.camp p.muted { font-size: 14px; }
.cp-m { display: flex; gap: 28px; margin: 12px 0 6px; }
.cp-m span { display: flex; flex-direction: column; }
.cp-m b { font-size: 28px; font-weight: 600; line-height: 1.1; }
.cp-m small { font-size: 13px; color: var(--ink-3); }
.cp-a { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }

/* báo cáo */
.q-hero-num .qh-big { font-size: 64px; }
.rp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rp { padding: 28px; border-radius: 14px; background: var(--card); }
.rp h3 { font: 600 22px/1.2 var(--f-d); letter-spacing: -.01em; }
.rp > p.muted { font-size: 14px; margin: 4px 0 22px; }
.hb { display: flex; flex-direction: column; gap: 14px; }
.hb-r { display: grid; grid-template-columns: 44px 130px 1fr auto; gap: 14px; align-items: center; transition: opacity .3s; }
.hb-r.dim { opacity: .45; }
.hb-img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.hb-n { font-size: 15px; font-weight: 500; }
.hb-t { display: block; height: 10px; border-radius: 5px; background: var(--paper-2); overflow: hidden; }
.hb-t i { display: block; height: 100%; background: var(--copper); border-radius: 5px; transform-origin: left; animation: grow .9s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.hb-r b { font-size: 15px; }
.ln { width: 100%; height: auto; overflow: visible; }
.ln-a { fill: var(--copper-soft); opacity: .7; }
.ln-l { fill: none; stroke: var(--copper); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ln-d { fill: var(--copper); stroke: var(--card); stroke-width: 3; }
.ln-t { font: 600 14px var(--f-m); fill: var(--ink); }
.ln-x { font: 500 13px var(--f-m); fill: var(--ink-3); }
.hr { display: flex; align-items: flex-end; gap: 6px; height: 170px; }
.hr-c { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.hr-c i { width: 100%; background: var(--linen); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: growY .8s var(--ease) both; }
[data-theme="dark"] .hr-c i { background: #4A3828; }
.hr-c.pk i { background: var(--copper); }
.hr-c small { font: 500 13px var(--f-m); color: var(--ink-3); height: 16px; }
@keyframes growY { from { transform: scaleY(0); } }
.topd { display: flex; flex-direction: column; gap: 14px; }
.topd li { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; }
.td-img { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; }
.topd li > span { display: flex; flex-direction: column; gap: 8px; }
.topd li > span b { font-size: 15px; }
.topd > li > b { font-size: 16px; }

/* tìm nhanh */
.pal-i { display: flex; align-items: center; gap: 12px; padding: 0 20px; height: 64px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.pal-i input { flex: 1; border: 0; background: none; outline: none; font-size: 18px; color: var(--ink); }
.pal-l { max-height: 60vh; overflow-y: auto; padding: 8px; }
.pal-l li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.pal-l li.on, .pal-l li:hover { background: var(--card); }
.pal-l li span { display: flex; flex-direction: column; }
.pal-l b { font-size: 16px; font-weight: 600; } .pal-l small { font-size: 14px; color: var(--ink-3); }
.pal-img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; }
.pal-ic { width: 48px; height: 48px; border-radius: 6px; display: grid; place-items: center; background: var(--paper-2); color: var(--copper); }
.pal-e { padding: 22px; text-align: center; color: var(--ink-3); }

/* =================== responsive =================== */
@media (max-width: 1240px) {
  .story { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .st-fig { grid-row: 1; height: 100%; }
  .st-copy { grid-column: 1; grid-row: 2; padding-top: 28px; }
  .st-ticket { display: none; }
  .st-h { font-size: 40px; }
  .st-foot { position: static; margin-top: 16px; }
  .story { height: auto; max-height: none; }
  .st-fig { height: 480px; }
  .camps { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .ow { grid-template-columns: 1fr; }
  .qsb { display: none; }
  .qtab { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--line); padding: 6px 6px calc(8px + env(safe-area-inset-bottom)); }
  .qtab a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; text-decoration: none; font-size: 13px; font-weight: 500; color: var(--ink-3); text-align: center; line-height: 1.15; }
  .qtab a.on { color: var(--copper); }
  .qmain { padding: 28px 28px 110px; }
  .rail { grid-template-columns: 1fr; }
  .rail-c { min-height: 0; }
  .rp-grid { grid-template-columns: 1fr; }
  #toasts { bottom: 96px; }
}
@media (max-width: 880px) {
  .stage { display: block; padding: 0; min-height: 0; }
  .story { display: none; }
  .phone-wrap { display: block; }
  .ph { width: 100%; height: calc(100dvh - 64px); min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
  .ph-status { display: none; }
  .ph-tab { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  body[data-mode="k"] #toasts { bottom: 100px; }
  .gh-d { display: none; }
  .gh-m { display: grid; }
}
@media (max-width: 720px) {
  .gh { padding: 0 12px; gap: 8px; height: 60px; }
  .gh-name { display: none; }
  .logo { width: 36px; height: 36px; }
  .gh-mode { margin: 0 auto; }
  .gh-mode a { padding: 0 12px; font-size: 14px; gap: 6px; }
  .gh-mode a .i { display: none; }
  .l-long { display: none; } .l-short { display: inline; }
  .ph { height: calc(100dvh - 60px); }
  .qsb, .qmain { top: 60px; }
  .qmain { padding: 22px 18px 110px; }
  .q-top { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 20px; }
  .q-h1 { font-size: 30px; }
  .q-branch select { width: 100%; }
  .q-hero { grid-template-columns: 1fr; grid-template-rows: 170px auto; margin-bottom: 28px; }
  .qh-img { grid-column: 1; grid-row: 1; height: 170px; }
  .qh-t { grid-column: 1; grid-row: 2; padding: 24px 22px 26px; }
  .qh-big, .q-hero-num .qh-big { font-size: 46px; }
  .qh-sub { font-size: 16px; }
  .q-tools { flex-direction: column; align-items: stretch; }
  .q-tools .chips { margin: 0 -18px; padding: 2px 18px; }
  .q-tools .q-search { width: 100%; }
  .q-tr { flex-direction: column; }
  .slotg.is-now { margin-left: -12px; margin-right: -12px; padding: 16px 12px; }
  .sg-list { grid-template-columns: 1fr; }
  .sg-cap { max-width: none; }
  .tk { grid-template-columns: 60px 1fr; padding: 14px; }
  .tk-img { width: 60px; height: 60px; }
  .q-h2 { font-size: 26px; }
  .mt-hd { display: none; }
  .mt-r { grid-template-columns: 1fr auto; gap: 10px 14px; padding: 16px 18px; }
  .mt-f { grid-column: 1; }
  .mt-d { display: none; }
  .mt-y { grid-column: 2; grid-row: 1; }
  .mt-f { padding-left: 62px; }
  .camp { grid-template-columns: 1fr; }
  .cp-img { min-height: 0; height: 170px; }
  .rp { padding: 22px 18px; }
  .hb-r { grid-template-columns: 40px 1fr auto; }
  .hb-r .hb-t { grid-column: 2 / 4; grid-row: 2; }
  .hb-img { grid-row: 1 / 3; width: 40px; height: 40px; }
  .ov-drawer { align-items: flex-end; }
  .ov-drawer .ov-p { width: 100%; height: 92dvh; border-radius: 18px 18px 0 0; transform: translateY(40px); }
  .dw-h, .dw-b, .dw-f { padding-left: 20px; padding-right: 20px; }
  .fld-2 { grid-template-columns: 1fr; }
  .dw-line { grid-template-columns: 64px 1fr; }
  .dw-line .dl-img { width: 64px; height: 64px; }
  .dw-line .mono { grid-column: 2; }
}
@media (max-width: 400px) {
  .pv-in { padding: 0 18px 28px; }
  .k-top { margin: 0 -18px 8px; padding: 8px 18px; }
  .k-msticky { margin: 0 -18px; padding: 4px 18px 12px; }
  .k-msticky .chips, .k-rail { margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
  .ki-bar { margin: 24px -18px -28px; padding: 12px 18px 14px; }
  .km-main { grid-template-columns: 64px 1fr auto; gap: 12px; }
  .km-img { width: 64px; height: 64px; }
  .km-t b { font-size: 17px; }
  .k-cardmini { padding: 20px; }
  .km-bal b { font-size: 42px; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .gh-mode a { padding: 0 10px; }
}

/* giảm chuyển động */
html.calm *, html.calm *::before, html.calm *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
html.calm [data-st] { opacity: 1; transform: none; }
html.calm .rv { clip-path: none; }
html.calm .tilt { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-st] { opacity: 1; transform: none; }
  .rv { clip-path: none; }
}



/* =================== TRANG GIỚI THIỆU =================== */
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn-glass { background: rgba(246, 236, 220, .1); color: var(--milk); box-shadow: inset 0 0 0 1.5px rgba(246, 236, 220, .4); }
.btn-glass:hover { background: rgba(246, 236, 220, .2); }
.l-eye { font: 600 13px/1.3 var(--f-m); letter-spacing: .1em; text-transform: uppercase; color: var(--copper); margin-bottom: 18px; }
.land h2 { font-family: var(--f-d); font-weight: 600; letter-spacing: -.025em; }

.lh { position: relative; height: calc(100dvh - 64px); min-height: 640px; overflow: hidden; color: var(--milk); background: #170E09; isolation: isolate; }
.lh-media { position: absolute; inset: 0; animation: kb 2.6s var(--ease) both; }
.lh-frame { position: absolute; top: 0; bottom: -8%; left: 26%; right: 0; overflow: hidden; will-change: transform; }
.lh-img, .lh-vid { position: absolute; left: 0; top: 0; width: 108%; height: 108%; object-fit: cover; object-position: 50% 40%; }
.lh-vid { opacity: 0; transition: opacity .8s var(--ease); }
.lh-vid.on { opacity: 1; }
html.calm .lh-vid { display: none; }
@keyframes kb { from { transform: scale(1.12); opacity: .4; } to { transform: none; opacity: 1; } }
.lh::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #170E09 0%, #170E09 30%, rgba(23, 14, 9, .55) 44%, rgba(23, 14, 9, .1) 70%, rgba(23, 14, 9, 0)), linear-gradient(0deg, rgba(23, 14, 9, .7), transparent 40%); }
.lh-in { position: relative; z-index: 2; height: 100%; max-width: 960px; padding: 0 72px 120px; display: flex; flex-direction: column; justify-content: flex-end; }
.lh-sign { align-self: flex-start; display: flex; flex-direction: column; gap: 3px; padding: 12px 16px 10px; border-radius: 3px; background: #2A1A12; box-shadow: inset 0 0 0 3px #2A1A12, inset 0 0 0 4.5px #C9A27E; margin-bottom: 32px; animation: rise .8s var(--ease) both; }
.lh-sign b { font: 700 20px/1 var(--f-d); letter-spacing: .08em; }
.lh-sign span { font: 600 13px var(--f-m); letter-spacing: .1em; color: #E2C3A0; }
.lh-h { font: 600 clamp(56px, 8.6vw, 140px)/.94 var(--f-d); letter-spacing: -.04em; margin-bottom: 28px; }
.lh-h span { display: block; animation: rise 1s var(--ease) both; }
.lh-h .ln1 { animation-delay: .15s; } .lh-h .ln2 { animation-delay: .3s; color: #EDB68A; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 -20% 0); } }
.lh-p { font-size: 19px; line-height: 1.6; color: #E8D6BF; max-width: 34em; animation: rise .9s var(--ease) .45s both; }
.lh-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; animation: rise .9s var(--ease) .6s both; }
.lh-live { position: absolute; z-index: 2; right: 48px; bottom: 44px; max-width: 380px; font-size: 14px; color: #E8D6BF; display: flex; gap: 10px; align-items: baseline; line-height: 1.5; }
.lh-live b { color: var(--milk); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #9BC46A; flex: none; box-shadow: 0 0 0 0 rgba(155, 196, 106, .6); animation: live 2s infinite; transform: translateY(-1px); }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(155, 196, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(155, 196, 106, 0); } }
.lh-down { position: absolute; z-index: 2; left: 50%; bottom: 28px; width: 48px; height: 48px; margin-left: -24px; display: grid; place-items: center; border-radius: 50%; color: var(--milk); box-shadow: inset 0 0 0 1.5px rgba(246, 236, 220, .4); animation: bob 2.4s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

.lm { max-width: 1280px; margin: 0 auto; padding: 160px 72px 140px; }
.lm-t { font: 500 clamp(30px, 3.5vw, 52px)/1.25 var(--f-d); letter-spacing: -.02em; max-width: 22em; }
.lm-t .w { opacity: .16; transition: opacity .4s var(--ease); }
.lm-t .w.lit { opacity: 1; }
.lm-n { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 100px; padding-top: 40px; border-top: 1.5px dashed var(--line-2); }
.lm-n div { display: flex; flex-direction: column; gap: 8px; }
.lm-n b { font: 600 clamp(48px, 5vw, 76px)/1 var(--f-d); letter-spacing: -.03em; }
.lm-n span { font-size: 16px; color: var(--ink-2); }

.lp { height: 340vh; position: relative; }
.lp-sticky { position: sticky; top: 64px; height: calc(100dvh - 64px); max-width: 1280px; margin: 0 auto; padding: 0 72px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.lp-txt { position: relative; height: 380px; padding-left: 40px; }
.lp-s { position: absolute; left: 40px; right: 0; top: 0; opacity: 0; transform: translateY(28px); transition: opacity .55s var(--ease), transform .6s var(--ease); pointer-events: none; }
.lp-s.on { opacity: 1; transform: none; pointer-events: auto; }
.lp-s h2 { font-size: clamp(36px, 3.8vw, 56px); line-height: 1.05; margin-bottom: 22px; }
.lp-s p:not(.l-eye) { font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 28em; }
.lp-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line-2); }
.lp-bar i { display: block; height: 100%; background: var(--copper); transform-origin: top; transform: scaleY(0); }
.lp-ph-m { display: none; }
.lp-dev { display: flex; justify-content: center; }
.dev-ph { position: relative; width: 330px; aspect-ratio: 390 / 784; border-radius: 48px; border: 11px solid #1C120C; background: var(--paper); overflow: hidden; box-shadow: 0 0 0 1.5px #4A3528, 0 50px 90px -40px rgba(42, 26, 18, .6); }
.dev-ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dev-isl { position: absolute; z-index: 2; top: 9px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 14px; background: #1C120C; }
.dev-stack img { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.dev-stack img.on { opacity: 1; transform: none; }

.l3 { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100dvh; background: #C98A62; color: #2A1A12; }
.l3-stage { position: relative; min-height: 640px; overflow: hidden; background: linear-gradient(#C98A62, #D7A27A); }
.l3-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.l3-stage.live .drip-poster { opacity: 0; }
.l3-t { padding: 120px 72px; display: flex; flex-direction: column; justify-content: center; background: var(--linen-tex) #EBD9BE; }
.l3-t .l-eye { color: #8A3D16; }
.l3-t h2 { font-size: clamp(48px, 5.4vw, 84px); line-height: .98; margin-bottom: 24px; }
.l3-c { font-size: 17px; color: #5A4334; margin-bottom: 40px; }
.l3-c .mono { font-size: 20px; font-weight: 600; color: #8A3D16; }
.l3-tiers li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 0; border-top: 1.5px dashed rgba(42, 26, 18, .25); }
.l3-tiers b { font: 600 26px/1.1 var(--f-d); }
.l3-tiers .mono { font-size: 15px; align-self: center; color: #5A4334; }
.l3-tiers small { grid-column: 1 / -1; font-size: 15px; color: #5A4334; }

.lo { max-width: 1320px; margin: 0 auto; padding: 150px 72px 140px; }
.lo-h h2 { font-size: clamp(38px, 4.4vw, 68px); line-height: 1.02; max-width: 16em; }
.lo-dev { position: relative; margin: 72px 0 96px; }
.dev-lt { width: 84%; }
.dev-scr { border: 14px solid #1C120C; border-bottom-width: 18px; border-radius: 20px 20px 0 0; overflow: hidden; aspect-ratio: 1440 / 836; background: var(--paper); }
.dev-scr img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.dev-base { display: block; height: 18px; width: 108%; margin-left: -4%; background: linear-gradient(#3A2C23, #140D09); border-radius: 0 0 16px 16px; }
.dev-card { position: absolute; right: 0; bottom: -56px; width: 40%; border-radius: 12px; overflow: hidden; border: 6px solid var(--card); box-shadow: 0 30px 60px -30px rgba(42, 26, 18, .55); transform: rotate(1.5deg); }
.dev-card img { width: 100%; aspect-ratio: 1440 / 836; object-fit: cover; object-position: 20% 0; }
.lo-pts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-bottom: 48px; }
.lo-pts h3 { font: 600 24px/1.2 var(--f-d); margin-bottom: 10px; }
.lo-pts p { font-size: 16px; color: var(--ink-2); line-height: 1.65; }

.ls { overflow: hidden; padding: 120px 0 130px; background: var(--linen-tex) var(--paper-2); }
.ls-h { max-width: 1320px; margin: 0 auto 48px; padding: 0 72px; }
.ls-h h2 { font-size: clamp(34px, 3.6vw, 56px); line-height: 1.05; }
.ls-track { display: flex; gap: 22px; padding: 0 72px; width: max-content; will-change: transform; }
.ls-i { width: 280px; text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.ls-img { width: 280px; height: 360px; object-fit: cover; border-radius: 4px; transition: transform .6s var(--ease); }
.ls-i:hover .ls-img { transform: scale(1.02) rotate(-.5deg); }
.ls-i > span { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ls-i b { font: 600 19px/1.25 var(--f-d); }
.ls-i .mono { font-size: 15px; color: var(--ink-3); white-space: nowrap; }

.lq { max-width: 1320px; margin: 0 auto; padding: 140px 72px; }
.lq-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.lq-c { margin: 0; padding: 32px 30px 40px; }
.lq-c:nth-child(2) { margin-top: 48px; } .lq-c:nth-child(3) { margin-top: 16px; }
.lq-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.lq-c blockquote { margin: 22px 0 24px; font: 500 21px/1.5 var(--f-d); letter-spacing: -.01em; }
.lq-c figcaption { display: flex; flex-direction: column; gap: 2px; padding-top: 18px; border-top: 1.5px dashed var(--line-2); }
.lq-c figcaption b { font-size: 16px; } .lq-c figcaption span { font-size: 14px; color: var(--ink-3); }

.lg { padding: 140px 72px; background: var(--linen-tex) var(--paper-2); }
.lg-h { max-width: 1320px; margin: 0 auto 56px; }
.lg-h h2 { font-size: clamp(34px, 3.8vw, 58px); line-height: 1.05; }
.lg-g { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.lg-c { padding: 34px 32px; border-radius: 14px; background: var(--card); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; overflow: hidden; }
.lg-c h3 { font: 600 24px var(--f-d); }
.lg-p { display: flex; align-items: baseline; gap: 6px; }
.lg-p b { font: 600 52px/1 var(--f-d); letter-spacing: -.03em; }
.lg-p b.mono { font-family: var(--f-d); }
.lg-p span { font-size: 16px; color: var(--ink-3); }
.lg-d { font-size: 16px; color: var(--ink-2); min-height: 3.2em; }
.lg-c ul { display: flex; flex-direction: column; gap: 12px; margin: 10px 0 24px; flex: 1; }
.lg-c li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.lg-c li .i { color: var(--copper); width: 20px; height: 20px; }
.lg-c.hot { background: #2A1A12; color: #F6ECDC; }
.lg-c.hot .lg-d, .lg-c.hot .lg-p span { color: #D8C2A6; }
.lg-c.hot li .i, .lg-c.hot .stamp { color: #E9A877; }
[data-theme="dark"] .lg-c.hot { box-shadow: inset 0 0 0 2px var(--copper); }
.lg-n { max-width: 1320px; margin: 28px auto 0; font-size: 14px; color: var(--ink-3); }

.lc { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 80vh; }
.lc-img { overflow: hidden; }
.lc-img img { width: 100%; height: 100%; object-fit: cover; }
.lc-t { padding: 96px 72px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; }
.lc-t h2 { font-size: clamp(44px, 5vw, 80px); line-height: 1; }
.lc-t p { font-size: 18px; color: var(--ink-2); max-width: 28em; line-height: 1.65; }

.lf { background: #1A110C; color: #E8D6BF; padding: 80px 72px 56px; display: grid; gap: 48px; }
.lf-b { display: flex; gap: 14px; align-items: center; }
.lf-b .logo { width: 48px; height: 48px; }
.lf-b p { display: flex; flex-direction: column; }
.lf-b b { font: 700 26px var(--f-d); color: #F6ECDC; }
.lf-b span { font-size: 14px; color: #B99A7C; }
.lf-s { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; padding-top: 32px; border-top: 1px solid rgba(232, 214, 191, .15); }
.lf-s div { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; }
.lf-s b { font: 600 18px var(--f-d); color: #F6ECDC; }
.lf-s .mono { font-size: 13px; color: #B99A7C; }
.lf-n { font-size: 14px; color: #B99A7C; display: flex; flex-direction: column; gap: 8px; }
.lf-n a { color: #E9A877; }

@media (max-width: 1100px) {
  .lf-s { grid-template-columns: repeat(3, 1fr); }
  .lg-g, .lq-g { grid-template-columns: 1fr; max-width: 640px; }
  .lq-c:nth-child(n) { margin-top: 0; }
}
@media (max-width: 960px) {
  .lp { height: auto; padding: 40px 0 60px; }
  .lp-sticky { position: static; height: auto; display: block; padding: 0 28px; }
  .lp-dev, .lp-bar { display: none; }
  .lp-txt { height: auto; padding: 0; }
  .lp-s { position: static; opacity: 1; transform: none; pointer-events: auto; margin-bottom: 96px; }
  .lp-ph-m { display: block; width: min(300px, 78vw); margin: 36px auto 0; }
  .l3 { grid-template-columns: 1fr; }
  .l3-stage { min-height: 460px; }
  .lc { grid-template-columns: 1fr; }
  .lc-img { height: 380px; }
  .lo-pts { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .gh-intro { display: none !important; }
  .lh { height: calc(100dvh - 60px); min-height: 600px; }
  .lh-in { padding: 0 22px 120px; }
  .lh::after { background: linear-gradient(0deg, rgba(23, 14, 9, .96) 0%, rgba(23, 14, 9, .8) 50%, rgba(23, 14, 9, .25) 85%); }
  .lh-frame { left: 0; }
  .lh-h { font-size: 54px; }
  .lh-p { font-size: 16px; }
  .lh-cta .btn { flex: 1 1 100%; }
  .lh-live { left: 22px; right: 22px; bottom: 40px; font-size: 13px; }
  .lh-down { display: none; }
  .lm { padding: 96px 22px; }
  .lm-n { grid-template-columns: 1fr 1fr; gap: 28px 18px; margin-top: 64px; }
  .lp-sticky { padding: 0 22px; }
  .l3-t { padding: 64px 22px; }
  .lo { padding: 96px 22px; }
  .lo-dev { margin: 48px 0 64px; }
  .dev-lt { width: 100%; }
  .dev-scr { border-width: 7px; border-bottom-width: 10px; border-radius: 10px 10px 0 0; }
  .dev-base { height: 10px; }
  .dev-card { width: 56%; bottom: -44px; border-width: 4px; }
  .ls { padding: 80px 0 90px; }
  .ls-h, .ls-track { padding: 0 22px; }
  .ls-i, .ls-img { width: 220px; } .ls-img { height: 280px; }
  .lq { padding: 96px 22px; }
  .lg { padding: 96px 22px; }
  .lc-t { padding: 64px 22px; }
  .lf { padding: 64px 22px 48px; }
  .lf-s { grid-template-columns: 1fr; }
}
html.calm .lh-media, html.calm .lh-h span, html.calm .lh-p, html.calm .lh-cta, html.calm .lh-sign { animation: none; }
html.calm .lm-t .w { opacity: 1; }
.lm-fig { margin: 120px 0 0; display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: end; }
.lm-img { height: 560px; overflow: hidden; border-radius: 4px; }
.lm-img img { width: 100%; height: 115%; object-fit: cover; }
.lm-fig figcaption { display: flex; flex-direction: column; gap: 10px; padding-bottom: 12px; border-bottom: 1.5px dashed var(--line-2); }
.lm-fig b { font: 600 26px var(--f-d); }
.lm-fig span { font-size: 16px; color: var(--ink-2); line-height: 1.6; }
.lg-h { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.lg-h .l-eye, .lg-h h2 { grid-column: 1; }
.lg-img { grid-column: 2; grid-row: 1 / 3; height: 300px; border-radius: 6px; overflow: hidden; }
.lg-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) {
  .lm-fig { grid-template-columns: 1fr; gap: 20px; margin-top: 72px; }
  .lm-img { height: 320px; }
  .lg-h { grid-template-columns: 1fr; gap: 0; }
  .lg-img { grid-column: 1; grid-row: auto; height: 220px; margin-top: 28px; }
}
[data-theme="dark"] .ph-tab a.tab-c .i { background: var(--milk); color: var(--roast); }
[data-theme="dark"] .ph-tab a.tab-c.on .i { background: var(--copper); color: var(--on-copper); }
[data-theme="dark"] .ph { border-color: #0C0806; box-shadow: 0 0 0 1.5px #3A2A20, 0 40px 80px -30px rgba(0, 0, 0, .8); }
[data-theme="dark"] .ph-isl { background: #0C0806; }
@media (max-width: 1080px) {
  .gh-name { display: none; }
  .q-hero { grid-template-rows: minmax(300px, auto); }
  .qh-t { padding: 32px; }
  .qh-big { font-size: 48px; }
  .mt-r { grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1.3fr) 90px; gap: 16px; padding: 14px 18px; }
  .mt-n small { flex-wrap: wrap; white-space: normal; }
}
@media (max-width: 960px) { .lh-down { display: none; } }
@media (max-width: 720px) { .q-hero { grid-template-rows: 170px auto; } }
@media (min-width: 560px) and (max-width: 880px) {
  .pv-in { max-width: 600px; margin: 0 auto; }
  .pv[data-view="item"] .pv-in { max-width: 600px; }
  .ki-hero { height: 420px; }
}
