/* Stillumen: shared by every page. A night sky, hairline gold, book covers (also used by the search box).
   Page-specific rules live in trang-chu.css, sach.css, noi-dung.css. */
:root {
  --night: #070b1e; --night-2: #0b0f27; --glass: rgba(10, 13, 34, .9);
  --star: #f6f1ff; --lav: #cfc7ea; --lav-2: #bdb4e0; --lav-3: #a99fd0;
  --gold: #e3c98f; --gold-line: rgba(214, 182, 120, .45); --gold-deep: #b8935a;
  --paper: #f6f2ea; --ink: #2e2b27; --ink-2: #6b6359; --rose: #8e4d68;
  --serif: "EB Garamond", "Times New Roman", serif;
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Alegreya Sans", system-ui, sans-serif;
  --top-h: 64px;
}
* { box-sizing: border-box; }
html { scrollbar-color: rgba(185, 168, 255, .35) transparent; }
body {
  margin: 0; min-height: 100vh; color: var(--lav); font-family: var(--sans); font-size: 16px; line-height: 1.6;
  background-color: var(--night);
  background-image:
    radial-gradient(1px 1px at 82px 38px, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 137px 121px, rgba(255,255,255,.4), transparent),
    radial-gradient(1.4px 1.4px at 23px 97px, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 61px 150px, rgba(220,210,255,.45), transparent),
    radial-gradient(1px 1px at 190px 66px, rgba(255,255,255,.35), transparent),
    radial-gradient(1.5px 1.5px at 231px 201px, rgba(255,240,220,.6), transparent),
    radial-gradient(1px 1px at 112px 233px, rgba(255,255,255,.4), transparent);
  background-size: 160px 160px, 160px 160px, 160px 160px, 160px 160px, 260px 260px, 260px 260px, 260px 260px;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 18% 20%, rgba(98, 66, 170, .32), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 85%, rgba(40, 70, 150, .25), transparent 60%);
}
::selection { background: rgba(214, 182, 120, .35); }
a { color: inherit; }
img { max-width: 100%; height: auto; }

/* two interface languages: every label exists twice, only the chosen one shows */
html[data-lang="vi"] [data-l="en"], html[data-lang="en"] [data-l="vi"] { display: none !important; }

/* top bar: brand, slogan, search, menu, language */
.st-top {
  position: sticky; top: 0; z-index: 50; height: var(--top-h);
  display: flex; align-items: center; gap: 28px; padding: 0 40px;
  background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(214, 182, 120, .28);
}
.st-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.st-brand svg { width: 34px; height: 34px; }
.st-brand b { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: .1em; color: #fff; text-shadow: 0 0 16px rgba(200, 170, 255, .5); }
.st-slg { display: flex; align-items: center; height: 30px; padding-left: 20px; margin-left: -6px; border-left: 1px solid rgba(214, 182, 120, .35); }
.st-slg span { font-family: var(--display); font-style: italic; font-size: 18px; letter-spacing: .06em; color: var(--gold); white-space: nowrap; }
.st-nav { display: flex; align-items: center; gap: 22px; margin-left: 24px; white-space: nowrap; }
.st-nav a, .st-nav button { display: inline-flex; align-items: center; border: 0; border-bottom: 1px solid transparent; background: none; cursor: pointer; padding: 6px 0; font: 14.5px var(--sans); letter-spacing: .08em; color: var(--lav); text-decoration: none; transition: color .25s, border-color .25s; }
.st-nav a:hover, .st-nav button:hover { color: #fff; }
.st-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold-line); }
.st-lng { display: flex; margin-left: 6px; border: 1px solid rgba(214, 182, 120, .4); border-radius: 999px; overflow: hidden; }
.st-lng button { border: 0; background: none; cursor: pointer; padding: 6px 12px; font: 600 12.5px var(--sans); letter-spacing: .1em; color: var(--lav-2); }
.st-lng button[aria-pressed="true"] { background: rgba(214, 182, 120, .25); color: #fff; }

/* light / dark button: shows the mode it switches to */
.st-thm { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px 0 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(214, 182, 120, .4); background: rgba(255, 255, 255, .04); color: var(--gold); font: 600 13px var(--sans); letter-spacing: .06em; transition: background-color .25s; }
.st-thm:hover { background: rgba(214, 182, 120, .14); }
.st-thm svg { width: 17px; height: 17px; flex: none; }
.st-thm .i-moon, .st-thm .to-dark { display: none; }
html[data-theme="light"] .st-thm .i-sun, html[data-theme="light"] .st-thm .to-light { display: none; }
html[data-theme="light"] .st-thm .i-moon { display: block; }
html[data-theme="light"] .st-thm .to-dark { display: inline; }

/* search box with book suggestions */
.st-find { position: relative; display: flex; align-items: center; gap: 10px; width: clamp(240px, 24vw, 380px); margin-left: auto; padding: 0 6px 0 16px; height: 40px; border-radius: 999px; border: 1px solid rgba(214, 182, 120, .38); background: rgba(10, 13, 34, .5); }
.st-find:focus-within { border-color: var(--gold); }
.st-find > svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.st-find input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 15px var(--sans); color: #f3eefc; }
.st-find input::placeholder { color: #a9a2c0; }
.st-find input::-webkit-search-cancel-button { filter: invert(.8); }
.st-sg { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; padding: 8px; border-radius: 14px; border: 1px solid rgba(214, 182, 120, .4); background: rgba(14, 16, 42, .98); box-shadow: 0 24px 60px rgba(0, 0, 0, .65); }
.st-sg[hidden] { display: none; }
.st-sg .h { padding: 6px 10px 4px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.st-sg a { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--lav); }
.st-sg a.on, .st-sg a:hover { background: rgba(214, 182, 120, .14); }
.st-sg .bk { width: 30px; flex: none; padding: 0; border-radius: 2px 4px 4px 2px; }
.st-sg .bk .fr, .st-sg .bk-title, .st-sg .bk-author, .st-sg .bk-slg { display: none; }
.st-sg .bk-lotus { width: 16px; height: 16px; margin-top: 8px; }
.st-sg b { display: block; font-family: var(--display); font-size: 17px; font-weight: 600; line-height: 1.2; color: #fff; }
.st-sg small { display: block; font-size: 12.5px; color: var(--lav-3); }
.st-sg mark { background: rgba(214, 182, 120, .35); color: inherit; border-radius: 2px; }
.st-sg .all { margin-top: 4px; border-top: 1px solid rgba(214, 182, 120, .2); border-radius: 0 0 8px 8px; padding: 10px; font-size: 14px; color: var(--gold); }
.st-sg .none { padding: 10px; font-size: 14px; color: var(--lav-3); }

/* book cover: night cloth, the lotus, the slogan, a gold-foil title. Two shelf styles:
   v-khung (ornate frame, colored glow) and v-vang (single gold: gold lotus, one deep color) */
.bk {
  --glow: rgba(126, 88, 214, .6);
  position: relative; aspect-ratio: 2 / 3; display: flex; flex-direction: column; align-items: center; overflow: hidden;
  container-type: inline-size; border-radius: 3px 8px 8px 3px; padding: 0;   /* each line places itself in cqw of the cover (the cover is the container, so not its own padding) */
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .45) 0, rgba(255, 255, 255, .08) 5px, rgba(0, 0, 0, .25) 9px, transparent 14px),
    radial-gradient(1px 1px at 22% 18%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 78% 12%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.3px 1.3px at 64% 34%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 30% 72%, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 84% 80%, rgba(255,255,255,.5), transparent),
    radial-gradient(ellipse 80% 45% at 50% 30%, var(--glow), transparent 70%),
    linear-gradient(180deg, #17123c, #0a0d26);
  box-shadow: 8px 14px 32px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: transform .4s ease, box-shadow .4s ease;
}
.bk-lotus { position: relative; z-index: 1; flex: none; width: 26cqw; height: 26cqw; margin: 20cqw 0 0 4cqw; filter: drop-shadow(0 0 12px rgba(255, 200, 230, .65)); }
.bk-slg { position: relative; z-index: 1; margin: 2.5cqw 0 0 4cqw; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 6.2cqw; letter-spacing: .01em; white-space: nowrap; color: rgba(232, 208, 154, .9); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
/* sizes follow the cover's width (cqw): any cover, large or small, keeps the proportions of a printed book */
.bk-title { position: relative; z-index: 1; box-sizing: border-box; width: 100%; margin-top: auto; padding: 0 11cqw 0 15cqw; text-align: center; font-family: var(--display); font-size: 9.6cqw; line-height: 1.18; font-weight: 600; letter-spacing: .01em; text-wrap: balance; overflow-wrap: break-word; }
.bk-author { position: relative; z-index: 1; flex: none; box-sizing: border-box; width: 100%; margin: 6cqw 0 16cqw; padding: 0 11cqw 0 15cqw; font-size: 4.3cqw; letter-spacing: .2em; text-align: center; text-transform: uppercase; color: var(--gold); }
.foil { background: linear-gradient(180deg, #fff3cf 0%, #e8c77e 40%, #b98a3e 60%, #f2d792 85%) 0 0 / 100% 1.15em repeat-y; line-height: 1.15; -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .6)); }
/* the frame is one vector drawing: 2px lines on whole pixels at any cover size */
.fr { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; shape-rendering: crispEdges; }
.fr rect, .fr path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.fr .o { stroke: rgba(227, 201, 143, .55); }
.fr .k { display: none; }
.v-khung .fr .k { display: inline; }
.fr .k rect { stroke: rgba(227, 201, 143, .25); }
.fr .k path { stroke: #f0d898; }
.fr circle { fill: #f0d898; shape-rendering: geometricPrecision; }
.bk.violet { --glow: rgba(126, 88, 214, .7); --solid: #2c1f5e; }
.bk.gold { --glow: rgba(214, 170, 96, .6); --solid: #4a3418; }
.bk.sea { --glow: rgba(52, 150, 176, .62); --solid: #123c48; }
.bk.ion { --glow: rgba(200, 84, 146, .55); --solid: #4a1832; }
.bk.teal { --glow: rgba(40, 140, 140, .6); --solid: #0f3d3c; }
.bk.rose { --glow: rgba(214, 110, 150, .55); --solid: #4d1d33; }
.bk.jade { --glow: rgba(70, 160, 110, .55); --solid: #173b2a; }
.bk.indigo { --glow: rgba(70, 80, 200, .65); --solid: #1c2258; }
.bk.saffron { --glow: rgba(230, 140, 40, .55); --solid: #4d2e0c; }
.bk.maroon { --glow: rgba(150, 40, 60, .65); --solid: #3f1019; }
.bk.v-vang { background: linear-gradient(90deg, rgba(0, 0, 0, .45) 0, rgba(255, 255, 255, .06) 5px, rgba(0, 0, 0, .25) 9px, transparent 14px), radial-gradient(ellipse 90% 60% at 50% 35%, rgba(255, 255, 255, .06), transparent 70%), var(--solid, #2a1f5c); }
.v-vang .bk-lotus { filter: sepia(1) saturate(2.2) hue-rotate(-12deg) brightness(1.05) drop-shadow(0 0 8px rgba(240, 200, 120, .45)); }

/* guided tour (Driver.js), dressed in night glass and gold */
.driver-popover.st-tour { max-width: 340px; padding: 18px 20px 16px; border-radius: 14px; border: 1px solid rgba(214, 182, 120, .5); background: rgba(16, 18, 48, .98); color: var(--lav); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); font-family: var(--sans); }
.driver-popover.st-tour * { font-family: var(--sans); }
.st-tour .driver-popover-title { font-family: var(--display) !important; font-size: 22px; font-weight: 600; color: #fff; }
.st-tour .driver-popover-description { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--lav); }
.st-tour .driver-popover-description a { color: var(--gold); }
.st-tour .driver-popover-progress-text { font-size: 12.5px; color: var(--lav-3); }
.st-tour .driver-popover-navigation-btns button { border: 1px solid rgba(214, 182, 120, .45); border-radius: 999px; padding: 6px 14px; background: none; text-shadow: none; font: 13.5px var(--sans); color: var(--lav); }
.st-tour .driver-popover-navigation-btns .driver-popover-next-btn { border: 0; background: linear-gradient(180deg, #e8d09a, #c9a463); color: #1c1630; font-weight: 600; }
.st-tour .driver-popover-close-btn { color: var(--lav-3); }
.st-tour .driver-popover-close-btn:hover { color: #fff; }
.st-tour .driver-popover-arrow { border-color: rgba(16, 18, 48, .98); }
.st-tour .driver-popover-arrow-side-left.driver-popover-arrow { border-right-color: transparent; border-top-color: transparent; border-bottom-color: transparent; }
.st-tour .driver-popover-arrow-side-right.driver-popover-arrow { border-left-color: transparent; border-top-color: transparent; border-bottom-color: transparent; }
.st-tour .driver-popover-arrow-side-top.driver-popover-arrow { border-right-color: transparent; border-left-color: transparent; border-bottom-color: transparent; }
.st-tour .driver-popover-arrow-side-bottom.driver-popover-arrow { border-left-color: transparent; border-top-color: transparent; border-right-color: transparent; }

/* footer */
.st-foot { margin: 80px auto 0; padding: 26px 40px 34px; border-top: 1px solid rgba(214, 182, 120, .18); display: flex; gap: 26px; justify-content: center; font-size: 13.5px; letter-spacing: .05em; color: var(--lav-3); }
.st-foot a { text-decoration: none; }
.st-foot a:hover { color: #fff; }

.st-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- light (paper): the Sáng / Tối button in the top bar, st.theme ---------- */
html[data-theme="light"] {
  --lav: #3a352f; --lav-2: #5e564c; --lav-3: #8a8073; --gold: #9c7536; --gold-line: rgba(156, 117, 54, .4);
  --glass: rgba(251, 247, 239, .94);
  scrollbar-color: rgba(156, 117, 54, .35) transparent;
}
html[data-theme="light"] body { background-color: #f4efe5; background-image: none; }
html[data-theme="light"] body::before {
  background: radial-gradient(ellipse 60% 50% at 18% 10%, rgba(214, 182, 120, .2), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(142, 77, 104, .07), transparent 60%);
}
html[data-theme="light"] .st-top { box-shadow: 0 1px 0 #e3d9c6, 0 2px 14px rgba(90, 70, 30, .06); }
html[data-theme="light"] .st-brand b { color: #2a2622; text-shadow: none; }
html[data-theme="light"] .st-slg { border-left-color: #e3d9c6; }
html[data-theme="light"] .st-nav a:hover, html[data-theme="light"] .st-nav button:hover { color: #2a2622; }
html[data-theme="light"] .st-thm { color: #5b4a8a; border-color: #d8ccb6; background: #fff; }
html[data-theme="light"] .st-thm:hover { background: #f3ecff; }
html[data-theme="light"] .st-lng { border-color: #d8ccb6; }
html[data-theme="light"] .st-lng button[aria-pressed="true"] { background: #efe4cc; color: #2a2622; }
html[data-theme="light"] .st-find { background: #fff; border-color: #d8ccb6; }
html[data-theme="light"] .st-find input { color: #2a2622; }
html[data-theme="light"] .st-find input::placeholder { color: #9a9083; }
html[data-theme="light"] .st-find input::-webkit-search-cancel-button { filter: none; }
html[data-theme="light"] .st-sg { background: #fffaf2; border-color: #e3d9c6; box-shadow: 0 24px 60px rgba(60, 40, 10, .18); }
html[data-theme="light"] .st-sg b { color: #2a2622; }
html[data-theme="light"] .st-sg a.on, html[data-theme="light"] .st-sg a:hover { background: #f3ebdc; }
html[data-theme="light"] .bk { --gold: #e3c98f; --lav: #cfc7ea; box-shadow: 6px 12px 26px rgba(60, 40, 10, .3), inset 0 0 0 1px rgba(255, 255, 255, .06); }
html[data-theme="light"] .st-foot { border-top-color: #e3d9c6; }
html[data-theme="light"] .st-foot a:hover { color: #2a2622; }

/* dialogs shared by every page (progress to another device, keyboard shortcuts) */
.st-ov { position: fixed; inset: 0; z-index: 10020; display: grid; place-items: center; padding: 16px; background: rgba(4, 6, 18, .62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.st-box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 26px 28px 24px; border-radius: 16px;
  border: 1px solid rgba(214, 182, 120, .35); background: #11143a; color: var(--lav); box-shadow: 0 30px 90px rgba(0, 0, 0, .5); font-family: var(--sans); }
.st-box h3 { margin: 0 40px 6px 0; font: 600 26px var(--display); color: #fff; }
.st-box h4 { margin: 22px 0 8px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.st-sub { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; color: var(--lav-2); }
.st-x { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(214, 182, 120, .3); background: none; cursor: pointer; font-size: 20px; line-height: 1; color: var(--lav-2); }
.st-qr { width: 200px; margin: 6px auto 14px; padding: 10px; border-radius: 10px; background: #fff; }
.st-qr:empty { display: none; }
.st-qr svg { display: block; width: 100%; height: auto; }
.st-qr p { margin: 0; color: #333; text-align: center; font-size: 13px; }
.st-row { display: flex; gap: 8px; }
.st-row input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 9px; border: 1px solid rgba(214, 182, 120, .3); background: rgba(0, 0, 0, .25); font: 13.5px var(--sans); color: #f3eefc; outline: 0; }
.st-btn { flex: none; padding: 9px 16px; border-radius: 9px; border: 1px solid rgba(214, 182, 120, .45); background: none; cursor: pointer; font: 600 13.5px var(--sans); color: var(--gold); }
.st-btn:hover { background: rgba(214, 182, 120, .12); }
.st-btn.st-pri { border: 0; background: var(--gold); color: #1d1608; }
.st-end { justify-content: flex-end; margin-top: 10px; }
.st-msg { margin: 12px 0 0; font-size: 13.5px; color: #8fd3a5; }
.st-keys table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.st-keys td { padding: 7px 0; border-bottom: 1px solid rgba(214, 182, 120, .15); }
.st-keys kbd { display: inline-block; min-width: 26px; padding: 2px 8px; border-radius: 6px; border: 1px solid rgba(214, 182, 120, .4); background: rgba(0, 0, 0, .25); font: 600 12.5px var(--sans); color: var(--gold); text-align: center; }
.st-markn { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 5px; padding: 0 5px; border-radius: 9px; background: rgba(214, 182, 120, .25); font: 600 11px var(--sans); color: var(--gold); letter-spacing: 0; }
.st-markn[hidden] { display: none; }
.st-foot button { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; letter-spacing: inherit; color: inherit; }
.st-foot button:hover { color: #fff; }
html[data-theme="light"] .st-ov { background: rgba(60, 45, 20, .3); }
html[data-theme="light"] .st-box { background: #fffaf2; border-color: #e3d9c6; color: #3a352f; box-shadow: 0 30px 90px rgba(60, 40, 10, .25); }
html[data-theme="light"] .st-box h3 { color: #2a2622; }
html[data-theme="light"] .st-row input { background: #fff; border-color: #d8ccb6; color: #2a2622; }
html[data-theme="light"] .st-btn.st-pri { color: #fff; }
html[data-theme="light"] .st-keys kbd { background: #fff; border-color: #d8ccb6; }
html[data-theme="light"] .st-msg { color: #3f8a5c; }
html[data-theme="light"] .st-foot button:hover { color: #2a2622; }

/* ---------- narrower screens (desktop layout first, these only adapt it) ---------- */
.st-more { display: contents; }
.st-ib { display: none; flex: none; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(214, 182, 120, .35); border-radius: 50%;
  background: none; cursor: pointer; color: var(--gold); }
.st-ib svg { width: 19px; height: 19px; }
.st-foot { flex-wrap: wrap; }
@media (max-width: 1180px) {
  .st-slg { display: none; }
  .st-top { gap: 20px; padding: 0 24px; }
}
@media (max-width: 900px) {
  :root { --top-h: 58px; }
  .st-top { gap: 10px; padding: 0 14px; }
  .st-brand svg { width: 30px; height: 30px; }
  .st-brand b { font-size: 23px; }
  .st-ib { display: grid; }
  .st-sbtn { margin-left: auto; }
  .st-find { display: none; position: absolute; left: 12px; right: 12px; top: calc(var(--top-h) + 8px); width: auto; margin: 0; height: 46px;
    background: #0c0e26; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
  .st-top.search-open .st-find { display: flex; }
  .st-more { display: none; position: absolute; top: calc(var(--top-h) + 8px); right: 12px; width: min(300px, calc(100vw - 24px)); padding: 10px 16px 16px;
    flex-direction: column; align-items: stretch; gap: 12px; border-radius: 14px; border: 1px solid rgba(214, 182, 120, .35); background: #0e102a; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
  .st-top.menu-open .st-more { display: flex; }
  .st-more .st-nav { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  .st-more .st-nav a, .st-more .st-nav button { padding: 12px 4px; border-bottom: 1px solid rgba(214, 182, 120, .15); font-size: 16px; }
  .st-more .st-nav a[aria-current="page"] { border-bottom-color: rgba(214, 182, 120, .15); }
  .st-more .st-thm { justify-content: center; height: 40px; }
  .st-more .st-lng { margin: 0; align-self: stretch; }
  .st-more .st-lng button { flex: 1; padding: 9px 12px; }
  .st-foot { gap: 14px 22px; padding: 22px 16px 30px; margin-top: 50px; }
  html[data-theme="light"] .st-find, html[data-theme="light"] .st-more { background: #fffaf2; box-shadow: 0 16px 40px rgba(60, 40, 10, .18); }
  html[data-theme="light"] .st-ib { color: #9c7536; border-color: #d8ccb6; }
}

/* the quote picture, shown before it is saved or shared */
.st-pic { width: min(460px, 100%); }
.st-picbox { display: grid; place-items: center; min-height: 200px; margin: 6px 0 14px; border-radius: 8px; background: rgba(0, 0, 0, .2); }
.st-picbox img { display: block; width: 100%; height: auto; max-height: calc(100vh - 230px); object-fit: contain; border-radius: 6px; }
.st-picbox span { font-size: 14px; color: var(--lav-3); }
.st-btn:disabled { opacity: .5; cursor: default; }

/* the guide must not look like part of the site: paper card on the night site, night card on the paper site,
   a "Hướng dẫn" label on top, and a bright gold ring around what it points at */
.driver-popover.st-tour { background: #fffaf2; border: 0; color: #3a352f; box-shadow: 0 0 0 1px #e3c98f, 0 24px 70px rgba(0, 0, 0, .7); }
.driver-popover.st-tour .driver-popover-title { color: #2a2622; }
.driver-popover.st-tour .driver-popover-description { color: #4c4640; }
.driver-popover.st-tour .driver-popover-description a { color: #8e4d68; }
.driver-popover.st-tour .driver-popover-progress-text { color: #8a8073; }
.driver-popover.st-tour .driver-popover-close-btn { color: #8a8073; }
.driver-popover.st-tour .driver-popover-close-btn:hover { color: #2a2622; }
.driver-popover.st-tour .driver-popover-navigation-btns button { border-color: #d8ccb6; color: #4c4640; background: #fff; }
.driver-popover.st-tour .driver-popover-navigation-btns .driver-popover-next-btn { color: #fff; background: #8e4d68; }
.driver-popover.st-tour .driver-popover-arrow { display: none; }   /* the gold ring shows what it points at */
.st-tour .st-tk { display: table; margin-bottom: 8px; padding: 2px 9px; border-radius: 999px; background: #8e4d68; color: #fff;
  font: 700 10.5px var(--sans); letter-spacing: .18em; text-transform: uppercase; vertical-align: middle; }
.driver-active-element { outline: 2px solid #e3c98f !important; outline-offset: 4px; border-radius: 8px; }
html[data-theme="light"] .driver-popover.st-tour { background: #11143a; color: #cfc7ea; box-shadow: 0 0 0 1px #9c7536, 0 24px 70px rgba(60, 40, 10, .45); }
html[data-theme="light"] .driver-popover.st-tour .driver-popover-title { color: #fff; }
html[data-theme="light"] .driver-popover.st-tour .driver-popover-description { color: #cfc7ea; }
html[data-theme="light"] .driver-popover.st-tour .driver-popover-description a { color: #e3c98f; }
html[data-theme="light"] .driver-popover.st-tour .driver-popover-navigation-btns button { background: none; border-color: rgba(214, 182, 120, .45); color: #cfc7ea; }
html[data-theme="light"] .driver-popover.st-tour .driver-popover-navigation-btns .driver-popover-next-btn { background: #e3c98f; color: #1c1630; }
html[data-theme="light"] .st-tour .st-tk { background: #e3c98f; color: #1c1630; }
/* while the guide runs, the player's small notes stay out of its way */
body.driver-active .lp-note, body.driver-active .lp-back, body.driver-active .sa-sbar { display: none !important; }

/* back to the top */
.st-up { position: fixed; right: 24px; bottom: 24px; z-index: 9500; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(214, 182, 120, .45); background: rgba(17, 20, 58, .92); color: #e3c98f; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s; }
.st-up.on { opacity: 1; transform: none; pointer-events: auto; }
.st-up svg { width: 20px; height: 20px; }
html[data-theme="light"] .st-up { background: #fffaf2; border-color: #d8ccb6; color: #9c7536; box-shadow: 0 8px 22px rgba(60, 40, 10, .18); }
body.driver-active .st-up { display: none; }
/* on a book page the player's "back to the sentence" button sits to its left; on a phone, above the player strip */
body[data-page="book"] .lp-portal .lp-back { right: 80px; }
@media (max-width: 1179px) {
  body.sa-mob .st-up { bottom: calc(var(--sheet-h, 130px) + 12px); right: 14px; }
  body.sa-sheet-open .st-up { display: none; }
}
