/* Đường chạy ngôi sao (challenge cá nhân tính sao theo buổi). Mọi selector nằm trong .slc-sao / .slc-pv để không vỡ theme.
   Nền kem; đỏ cam chỉ làm điểm nhấn (nút, thanh tiến độ, vòng chọn). */
.slc-sec { margin: 0 0 28px; }
.slc-sao {
	--s-bg: #fbf6ec; --s-bg2: #ffffff; --s-ink: #1d2433; --s-mut: #6b7389; --s-card: #ffffff; --s-line: rgba(29, 36, 51, .12);
	--s-gold: #c98f12; --s-red: #ee3a26; --s-or: #f7842c; --s-shadow: 0 12px 30px rgba(60, 40, 20, .18);
	--s-font: var(--font-body, 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
	position: relative; max-width: 560px; margin: 10px auto 0; padding: 12px 12px 14px; border-radius: 22px; color: var(--s-ink);
	font-family: var(--s-font); font-size: 16px; line-height: 1.4;
	background: radial-gradient(90% 46% at 50% 40%, var(--s-bg2) 0, rgba(255, 255, 255, 0) 70%), var(--s-bg);
	box-shadow: inset 0 0 0 1px var(--s-line);
}
.slc-sao *, .slc-sao *::before, .slc-sao *::after, .slc-pv *, .slc-pv *::before, .slc-pv *::after { box-sizing: border-box; }
.slc-sao button, .slc-sao input, .slc-pv button, .slc-pv a { margin: 0; text-transform: none; letter-spacing: normal; font-family: var(--s-font); -webkit-tap-highlight-color: transparent; }
.slc-sao h3 { margin: 0; text-transform: none; letter-spacing: normal; font-family: var(--s-font); }
.slc-sao [hidden] { display: none !important; }

.slc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 10px; }
.slc-stat { background: var(--s-card); border: 1px solid var(--s-line); border-radius: 14px; padding: 8px 10px; min-width: 0; }
.slc-stat b { display: block; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.slc-stat span { display: block; font-size: 10.5px; color: var(--s-mut); margin-top: 2px; font-weight: 500; line-height: 1.25; }
.slc-stat.slc-hot b { color: var(--s-gold); }

.slc-find { position: relative; margin-bottom: 8px; }
.slc-find input { display: block; width: 100%; height: 42px; border-radius: 21px; border: 1px solid var(--s-line); background: var(--s-card); color: var(--s-ink); font: 500 14px var(--s-font); padding: 0 16px 0 40px; outline: none; box-shadow: none; -webkit-appearance: none; appearance: none; }
.slc-find input:focus { border-color: rgba(255, 106, 43, .7); }
.slc-find svg { position: absolute; left: 14px; top: 12px; width: 18px; height: 18px; stroke: var(--s-mut); fill: none; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
#slc-sug { position: absolute; left: 0; right: 0; top: 46px; z-index: 20; list-style: none; margin: 0; padding: 0; background: var(--s-card); border: 1px solid var(--s-line); border-radius: 14px; box-shadow: var(--s-shadow); overflow: hidden; display: none; }
#slc-sug li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 13.5px; font-weight: 600; border-top: 1px solid var(--s-line); margin: 0; list-style: none; cursor: pointer; }
#slc-sug li:first-child { border-top: 0; }
#slc-sug li small { margin-left: auto; color: var(--s-mut); font-weight: 500; font-size: 12px; }

/* Ảnh đầu chibi cắt từ ảnh dáng đứng (rộng 156): phần 7%–89% chiều rộng, từ trên xuống bằng chiều rộng đó */
.slc-av { display: block; flex: none; width: var(--d, 32px); height: var(--d, 32px); border-radius: 50%; background-color: #f3e9dc; background-repeat: no-repeat; background-size: calc(var(--d, 32px) * 1.2195) auto; background-position: calc(var(--d, 32px) * -.0854) 0; }
.slc-av.an { background-size: cover; background-position: center; }
.slc-av.ph { background-image: linear-gradient(135deg, #ee3a26, #f7842c); color: #fff; font: 800 calc(var(--d, 32px) * .46)/var(--d, 32px) var(--s-font); text-align: center; }
.slc-av28 { --d: 28px; }
.slc-av32 { --d: 32px; border: 2px solid var(--s-gold); }
.slc-av58 { --d: 58px; border: 2.5px solid var(--s-gold); }

.slc-stage { position: relative; width: 100%; border-radius: 22px; overflow: hidden; background: transparent; }
#slc-cv { display: block; width: 100%; touch-action: pan-y; -webkit-user-select: none; user-select: none; background: transparent; }
.slc-legend { position: absolute; left: 10px; bottom: 9px; right: 12px; font-size: 10.5px; font-weight: 600; color: var(--s-mut); pointer-events: none; line-height: 1.35; }
.slc-legend b { color: var(--s-ink); font-weight: 700; }
.slc-zoom { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; }
.slc-zoom button { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid var(--s-line); background: var(--s-card); color: var(--s-ink); font: 600 18px/1 var(--s-font); display: grid; place-items: center; cursor: pointer; box-shadow: none; }
.slc-zoom button:active { transform: scale(.92); }
#slc-fs svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#slc-fs .dong, #slc-fs.on .mo { display: none; }
#slc-fs.on .dong { display: inline; }
/* toàn màn hình: khung phủ cả màn, đường chạy chiếm hết phần còn lại; bảng top 10 ẩn bớt cho rộng chỗ */
html.slc-fs-on, html.slc-fs-on body { overflow: hidden !important; }
.slc-sao.fs { position: fixed; inset: 0; z-index: 99990; max-width: none; margin: 0; border-radius: 0; display: flex; flex-direction: column; height: 100vh; height: 100dvh;
	padding: calc(10px + env(safe-area-inset-top)) calc(10px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left)); }
.slc-sao.fs .slc-stage { flex: 1; min-height: 0; }
.slc-sao.fs #slc-cv { height: 100%; }
.slc-sao.fs .slc-board, .slc-sao.fs .slc-empty { display: none !important; }
@media (max-height: 520px) { .slc-sao.fs .slc-stats { display: none; } } /* điện thoại xoay ngang: nhường chỗ cho đường chạy */
.slc-load { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: var(--s-mut); font-weight: 600; pointer-events: none; }
.slc-toast { position: absolute; left: 50%; bottom: 46px; transform: translate(-50%, 14px); opacity: 0; max-width: 84%; background: var(--s-card); border: 1px solid var(--s-line); color: var(--s-ink); font-size: 11.5px; font-weight: 600; padding: 6px 12px; border-radius: 99px; box-shadow: var(--s-shadow); pointer-events: none; transition: opacity .35s, transform .35s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slc-toast.on { opacity: 1; transform: translate(-50%, 0); }
.slc-toast i { font-style: normal; color: var(--s-gold); font-weight: 800; }

.slc-card { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 10; background: var(--s-card); border: 1px solid var(--s-line); border-radius: 20px; padding: 11px 14px 12px; box-shadow: var(--s-shadow); transform: translateY(120%); opacity: 0; transition: transform .35s cubic-bezier(.2, .9, .3, 1), opacity .25s; pointer-events: none; }
.slc-card.on { transform: none; opacity: 1; pointer-events: auto; }
.slc-card .slc-row { display: flex; gap: 12px; align-items: center; }
.slc-card h3 { font-size: 16px; font-weight: 800; line-height: 1.15; padding-right: 26px; overflow-wrap: anywhere; }
.slc-card .slc-meta { font-size: 12px; color: var(--s-mut); font-weight: 500; margin-top: 3px; }
.slc-card .slc-nums { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.slc-card .slc-nums em { font-style: normal; color: var(--s-gold); }
.slc-card .slc-x { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--s-mut); font-size: 20px; line-height: 1; cursor: pointer; box-shadow: none; }
.slc-seg { display: grid; grid-template-columns: repeat(var(--n, 10), 1fr); gap: 3px; margin: 8px 0 5px; }
.slc-seg i { height: 5px; border-radius: 3px; background: var(--s-line); }
.slc-seg i.on { background: linear-gradient(90deg, var(--s-red), var(--s-or)); }
.slc-nxt { font-size: 12px; color: var(--s-ink); font-weight: 500; line-height: 1.4; }
.slc-nxt b { font-weight: 800; }
.slc-acts { display: flex; gap: 8px; margin-top: 8px; }
.slc-share { flex: 1; height: 38px; padding: 0; border: 0; border-radius: 20px; background: linear-gradient(90deg, var(--s-red), var(--s-or)); color: #fff; font: 700 14px var(--s-font); cursor: pointer; box-shadow: none; }
.slc-share:active { transform: scale(.98); }
.slc-hs { display: grid; place-items: center; height: 38px; padding: 0 16px; border-radius: 20px; border: 1px solid var(--s-line); color: var(--s-ink); background: var(--s-card); font: 700 13px var(--s-font); text-decoration: none; }

.slc-empty { margin: 10px 2px 0; padding: 10px 14px; border-radius: 14px; background: var(--s-card); border: 1px dashed rgba(238, 58, 38, .45); color: var(--s-ink); font-size: 13px; font-weight: 600; line-height: 1.45; text-align: center; }
.slc-board { margin-top: 14px; background: var(--s-card); border: 1px solid var(--s-line); border-radius: 20px; padding: 12px 12px 6px; }
.slc-board .slc-bh { font-size: 14px; font-weight: 800; margin: 0 2px 6px; display: flex; justify-content: space-between; align-items: baseline; }
.slc-board .slc-bh small { font-size: 10.5px; color: var(--s-mut); font-weight: 500; }
.slc-rw { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-top: 1px solid var(--s-line); cursor: pointer; }
.slc-rw:first-child { border-top: 0; }
.slc-rw .n { width: 20px; text-align: center; font-size: 13px; font-weight: 800; color: var(--s-mut); }
.slc-rw.t3 .n { color: var(--s-gold); }
.slc-rw .nm { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slc-rw .v { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.slc-rw .v em { font-style: normal; color: var(--s-gold); margin-left: 8px; }
.slc-rw:active { background: var(--s-line); }
.slc-bnone { padding: 8px 4px 10px; font-size: 12.5px; color: var(--s-mut); font-weight: 500; }

.slc-pv { position: fixed; inset: 0; z-index: 99999; background: rgba(5, 8, 20, .82); display: none; align-items: center; justify-content: center; flex-direction: column; gap: 12px; padding: 16px; }
.slc-pv.on { display: flex; }
.slc-pv img { max-height: 72vh; max-width: 100%; border-radius: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.slc-pv .slc-bt { display: flex; gap: 10px; }
.slc-pv a, .slc-pv button { height: 42px; padding: 0 20px; border-radius: 21px; border: 0; font: 700 14px var(--s-font, system-ui, sans-serif); display: grid; place-items: center; text-decoration: none; cursor: pointer; }
.slc-pv a { background: linear-gradient(90deg, #ee3a26, #f7842c); color: #fff; }
.slc-pv button { background: #fff; color: #1d2433; }
@media (prefers-reduced-motion: reduce) { .slc-card, .slc-toast { transition: none; } }
/* 2.5D: điện thoại xoay ngang toàn màn hình nhường chỗ cho sân sao (ô tìm tên ẩn, chú giải gọn); tìm tên vẫn dùng được ở khung thường */
@media (max-height: 520px) { .slc-sao.fs .slc-find { display: none; } .slc-sao.fs .slc-legend { right: auto; max-width: 200px; font-size: 9.5px; } }
