/* Header: tiny rotating promos, the home banners in miniature */
.khp{position:absolute;right:18px;top:50%;height:44px;transform:translateY(-50%);border-radius:12px;overflow:hidden;isolation:isolate;box-shadow:0 0 0 1px rgba(230,200,143,.35),0 10px 24px -14px rgba(40,6,10,.7);background:radial-gradient(90% 130% at 80% 50%,#b82734 0%,#9e1b26 45%,#6f1019 100%);transition:background .6s}
.khp[hidden]{display:none}
.khp[data-key="khp-museum"],.khp[data-key="khp-cata"]{background:radial-gradient(90% 130% at 80% 40%,#3a2a20 0%,#1f1612 55%,#140e0b 100%)}
.khp[data-key="khp-news"]{background:radial-gradient(90% 130% at 80% 40%,#5a1a24 0%,#35101a 55%,#1c080c 100%)}
.khp::after{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;background:linear-gradient(105deg,transparent 35%,rgba(255,240,210,.18) 48%,transparent 60%) no-repeat;background-size:250% 100%;background-position:130% 0}
.khp.is-tick::after{animation:khpSweep 1.2s .1s ease-out both}
@keyframes khpSweep{to{background-position:-40% 0}}
.khp-item{position:absolute;inset:0;display:grid;grid-template-columns:30px minmax(0,1fr) 14px;align-items:center;gap:10px;padding:0 12px 0 8px;color:#fbf4ea;text-decoration:none;opacity:0;transform:translateY(100%);transition:opacity .45s,transform .6s cubic-bezier(.16,1,.3,1)}
.khp-item.is-on{opacity:1;transform:none}
.khp-item:not(.is-on){pointer-events:none}
.khp-art{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:rgba(255,255,255,.1);color:#f3d9a8}
.khp-art img{width:30px;height:30px;object-fit:contain;filter:drop-shadow(0 3px 4px rgba(0,0,0,.4))}
.khp-sell .khp-art{background:none}
.khp-art .i{width:16px;height:16px}
.khp-cal{display:flex;flex-direction:column;align-items:center;width:28px;overflow:hidden;border-radius:5px;background:#fbf4ea}
.khp-cal small{display:block;width:100%;padding:2px 0;background:#6f1019;color:#f3d9a8;font:800 6.5px/1 var(--sans);letter-spacing:.12em;text-align:center;text-transform:uppercase}
.khp-cal b{padding:1px 0 2px;color:#5b1019;font:500 14px/1 var(--serif)}
.khp-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.khp-text small{color:#f3d9a8;font:800 8.5px/1 var(--sans);letter-spacing:.16em;text-transform:uppercase;white-space:nowrap}
.khp-text b{overflow:hidden;color:#fff;font:500 13.5px/1.15 var(--serif);text-overflow:ellipsis;white-space:nowrap}
.khp-go{width:14px;height:14px;color:#f3d9a8;transition:transform .25s}
.khp-item:hover .khp-go{transform:translateX(3px)}
.khp-bar{position:absolute;left:0;bottom:0;z-index:4;width:100%;height:2px;background:rgba(243,217,168,.9);transform:scaleX(0);transform-origin:left}
.khp.is-tick .khp-bar{animation:khpBar 5s linear both}
.khp.is-hold .khp-bar{animation-play-state:paused}
@keyframes khpBar{to{transform:none}}
@media(prefers-reduced-motion:reduce){.khp-item{transition:opacity .2s}.khp.is-tick::after,.khp.is-tick .khp-bar{animation:none}}

/* v2: slower, one refined look for every item: dark smoked glass with a thin gold edge, a real thumbnail, cream type */
.khp,.khp[data-key]{height:52px;border-radius:14px;background:linear-gradient(180deg,#2a1a1c 0%,#1a1012 100%)!important;box-shadow:0 0 0 1px rgba(230,200,143,.28),inset 0 1px 0 rgba(255,235,200,.08),0 14px 30px -18px rgba(20,4,8,.8)}
.khp::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;z-index:4;background:linear-gradient(180deg,#b82734,#6f1019)}
.khp[data-key="khp-museum"]::before,.khp[data-key="khp-cata"]::before{background:linear-gradient(180deg,#e6c88f,#a8844f)}
.khp-item{grid-template-columns:38px minmax(0,1fr) 16px;gap:11px;padding:0 13px 0 12px}
.khp-art{width:38px;height:38px;border-radius:9px;background:rgba(255,255,255,.07);box-shadow:inset 0 0 0 1px rgba(230,200,143,.25);overflow:hidden}
.khp-art .i{width:18px;height:18px}
.khp-photo{width:100%!important;height:100%!important;object-fit:cover;filter:none!important;background:#f3ede3}
.khp-sell .khp-art{box-shadow:none;background:none}
.khp-art img:not(.khp-photo){width:36px;height:36px}
.khp-cal{width:34px}
.khp-cal small{font-size:7px;padding:3px 0 2px}
.khp-cal b{font-size:16px;padding:2px 0 3px}
.khp-text{gap:3px}
.khp-text small{color:#d9b77c;font-size:9px}
.khp-text b{color:#fbf4ea;font:500 14.5px/1.15 var(--serif)}
.khp-go{width:16px;height:16px;padding:0;color:#d9b77c}
.khp.is-tick .khp-bar{animation-duration:8.5s}
.khp-bar{height:2px;background:linear-gradient(90deg,#b82734,#e6c88f)}
.khp-item{transition:opacity .6s,transform .8s cubic-bezier(.16,1,.3,1)}

/* v3: light and quiet, part of the header rather than a dark block on top of it */
.khp,.khp[data-key]{height:54px;border-radius:14px;background:linear-gradient(180deg,#fffdf9,#f8f2e8)!important;box-shadow:0 0 0 1px rgba(201,166,107,.45),0 1px 0 rgba(255,255,255,.9) inset,0 10px 26px -18px rgba(60,30,20,.45)}
.khp::before{display:none}
.khp::after{background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.8) 48%,transparent 60%) no-repeat;background-size:250% 100%;background-position:130% 0}
.khp-item{color:var(--ink,#1f1c18);grid-template-columns:40px minmax(0,1fr) 22px;padding:0 10px 0 7px}
.khp-art{width:40px;height:40px;border-radius:10px;background:#f1e9dc;box-shadow:inset 0 0 0 1px rgba(201,166,107,.35);color:#8e1522}
.khp-cal{box-shadow:0 0 0 1px rgba(201,166,107,.5)}
.khp-text small{color:#8e1522;font-size:9px}
.khp-text b{color:#1f1c18;font-size:14.5px}
.khp-go{box-sizing:border-box;width:22px;height:22px;padding:4px;border:1px solid rgba(201,166,107,.6);border-radius:50%;color:#8e1522;transition:background .25s,color .25s,transform .25s}
.khp-item:hover .khp-go{background:#8e1522;border-color:#8e1522;color:#fff;transform:none}
.khp:hover{box-shadow:0 0 0 1px rgba(201,166,107,.8),0 14px 30px -18px rgba(60,30,20,.55)}
.khp-dots{position:absolute;left:54px;bottom:5px;z-index:4;display:flex;gap:3px}
.khp-dots i{width:4px;height:2px;border-radius:2px;background:rgba(142,21,34,.2);transition:width .4s,background .4s}
.khp-dots i.is-on{width:12px;background:#8e1522}
html[data-theme="dark"] .khp,html.dark .khp{background:linear-gradient(180deg,#26201d,#1c1715)!important}
html[data-theme="dark"] .khp-text b,html.dark .khp-text b{color:#f3ebe1}
html[data-theme="dark"] .khp-art,html.dark .khp-art{background:#2e2622}

/* v4: back to a rich, noticeable card (deep brand red), no progress dots, no side stripe */
.khp,.khp[data-key]{height:54px;border-radius:14px;background:radial-gradient(120% 160% at 85% 50%,#a82230 0%,#7e1522 45%,#4a0c15 100%)!important;box-shadow:0 0 0 1px rgba(230,200,143,.45),inset 0 1px 0 rgba(255,225,190,.18),0 14px 30px -16px rgba(80,10,20,.7)}
.khp:hover{box-shadow:0 0 0 1px rgba(243,217,168,.8),inset 0 1px 0 rgba(255,225,190,.2),0 18px 34px -16px rgba(80,10,20,.8)}
.khp::before,.khp-dots,.khp-bar{display:none!important}
.khp::after{background:linear-gradient(105deg,transparent 35%,rgba(255,236,205,.22) 48%,transparent 60%) no-repeat;background-size:250% 100%;background-position:130% 0}
.khp-item{color:#fbf4ea}
.khp-art{background:rgba(0,0,0,.18);box-shadow:inset 0 0 0 1px rgba(243,217,168,.35);color:#f3d9a8}
.khp-text small{color:#f3d9a8}
.khp-text b{color:#fff}
.khp-go{border-color:rgba(243,217,168,.55);color:#f3d9a8}
.khp-item:hover .khp-go{background:#f3d9a8;border-color:#f3d9a8;color:#5b1019}
html[data-theme="dark"] .khp,html.dark .khp{background:radial-gradient(120% 160% at 85% 50%,#a82230 0%,#7e1522 45%,#4a0c15 100%)!important}
html[data-theme="dark"] .khp-text b,html.dark .khp-text b{color:#fff}
html[data-theme="dark"] .khp-art,html.dark .khp-art{background:rgba(0,0,0,.18)}

/* v5: tidier. Same height as the search field, softer shadow, clear arrow, no clipped titles */
.khp,.khp[data-key]{height:48px;border-radius:12px;box-shadow:0 0 0 1px rgba(230,200,143,.4),inset 0 1px 0 rgba(255,225,190,.16),0 8px 18px -12px rgba(80,10,20,.6)}
.khp-item{grid-template-columns:34px minmax(0,1fr) 26px;gap:10px;padding:0 8px 0 7px}
.khp-art{width:34px;height:34px;border-radius:9px}
.khp-sell .khp-art img{width:34px;height:34px}
.khp-cal{width:30px}
.khp-text small{font-size:8.5px;letter-spacing:.15em}
.khp-text b{font-size:14px;letter-spacing:-.005em}
.khp-go{width:26px;height:26px;padding:6px;border:0;border-radius:8px;background:rgba(0,0,0,.2);color:#f3d9a8}
.khp-item:hover .khp-go{background:#f3d9a8;color:#5b1019}
