/* GameKey98 Editorial Rail 0.2.2 — every frontend selector is isolated under gk98er-* classes. */
.gk98er-root{
    --gk98er-bg:#fff;
    --gk98er-bg-soft:#f7f8fa;
    --gk98er-bg-accent:#f3f6fb;
    --gk98er-text:#161b22;
    --gk98er-text-soft:#303843;
    --gk98er-muted:#707985;
    --gk98er-border:#e7eaf0;
    --gk98er-border-strong:#dce1e8;
    --gk98er-accent:#172033;
    --gk98er-accent-soft:#eef2f8;
    --gk98er-success:#16834a;
    --gk98er-success-soft:#edf8f2;
    --gk98er-warning:#9a6400;
    --gk98er-warning-soft:#fff7e6;
    --gk98er-danger:#7b828c;
    --gk98er-sale:#b42318;
    --gk98er-sale-soft:#fff1f0;
    --gk98er-radius:16px;
    --gk98er-shadow:0 8px 26px rgba(16,24,40,.055);
    --gk98er-shadow-hover:0 10px 30px rgba(16,24,40,.075);
    --gk98er-viewport-height:100vh;
    box-sizing:border-box;
    direction:rtl;
    color:var(--gk98er-text);
    font-family:inherit;
}
.gk98er-root *,
.gk98er-root *::before,
.gk98er-root *::after{box-sizing:border-box}

/* Rail stays in normal document flow: no sticky positioning and no rail-level scrollbar. */
.gk98er-desktop-rail{
    width:100%;
    max-width:320px;
    margin-inline:auto;
    position:static;
    top:auto;
    align-self:start;
    height:auto;
    max-height:none;
    overflow:visible;
    padding:2px 0 8px;
}

.gk98er-card{
    position:relative;
    background:var(--gk98er-bg);
    border:1px solid var(--gk98er-border);
    border-radius:var(--gk98er-radius);
    padding:17px;
    margin:0 0 13px;
    box-shadow:var(--gk98er-shadow);
}
.gk98er-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 12px}
.gk98er-card-title{font-size:15px!important;font-weight:700!important;line-height:1.8!important;margin:0!important;color:var(--gk98er-text)!important}
.gk98er-section-kicker{display:block;font-size:11.5px;font-weight:500;line-height:1.8;color:var(--gk98er-muted);margin:0 0 1px}
.gk98er-count-badge{display:flex;align-items:center;justify-content:center;min-width:25px;height:25px;padding:0 7px;border-radius:999px;background:var(--gk98er-bg-soft);border:1px solid var(--gk98er-border);font-size:11px;font-weight:700;color:var(--gk98er-muted)}

/* Product */
.gk98er-product-card{
    overflow:hidden;
    border-color:var(--gk98er-border-strong);
    background:linear-gradient(180deg,#fff 0%,#fcfdff 100%);
    padding:17px;
    transition:box-shadow 180ms ease,border-color 180ms ease,transform 180ms ease;
}
.gk98er-product-card::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,#172033,#56647a);opacity:.92}
.gk98er-product-card:hover{box-shadow:var(--gk98er-shadow-hover);border-color:#dce1e9}
.gk98er-product-topline{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:1px 0 12px}
.gk98er-product-kicker{font-size:11.5px;font-weight:600;line-height:1.7;color:var(--gk98er-muted)}
.gk98er-discount,.gk98er-product-type{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;line-height:1.6;white-space:nowrap}
.gk98er-discount{color:var(--gk98er-sale);background:var(--gk98er-sale-soft);border:1px solid #ffd7d3}
.gk98er-product-type{color:#465267;background:var(--gk98er-accent-soft);border:1px solid #dfe5ee}
.gk98er-product-head{display:flex;align-items:center;gap:13px}
.gk98er-product-thumb{width:72px;height:72px;flex:0 0 72px;border-radius:13px;overflow:hidden;background:var(--gk98er-bg-soft);border:1px solid var(--gk98er-border);display:block;text-decoration:none!important}
.gk98er-product-image{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;margin:0!important;transition:transform 180ms ease}
.gk98er-product-thumb:hover .gk98er-product-image{transform:scale(1.025)}
.gk98er-product-copy{min-width:0;flex:1}
.gk98er-product-name{font-size:15px!important;font-weight:800!important;line-height:1.75!important;margin:0!important;color:var(--gk98er-text)!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gk98er-product-name a{color:inherit!important;text-decoration:none!important}
.gk98er-product-meta-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:5px}
.gk98er-stock{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:500;line-height:1.7;color:var(--gk98er-muted)}
.gk98er-stock-dot{width:7px;height:7px;border-radius:50%;background:currentColor;flex:0 0 7px;box-shadow:0 0 0 3px rgba(0,0,0,.035)}
.gk98er-stock--in-stock{color:var(--gk98er-success)}
.gk98er-stock--backorder{color:var(--gk98er-warning)}
.gk98er-stock--out-of-stock{color:var(--gk98er-danger)}
.gk98er-rating{display:inline-flex;align-items:center;gap:3px;font-size:11.5px;font-weight:700;line-height:1.7;color:#8a5c00}
.gk98er-rating small{font-size:10.5px;font-weight:500;color:var(--gk98er-muted)}
.gk98er-product-commerce{margin-top:15px;padding:13px 14px;background:var(--gk98er-bg-soft);border:1px solid #edf0f4;border-radius:13px}
.gk98er-price-label{font-size:11.5px;font-weight:500;line-height:1.7;color:var(--gk98er-muted);margin-bottom:1px}
.gk98er-price{font-size:21px;font-weight:850;line-height:1.65;color:var(--gk98er-text);word-break:keep-all}
.gk98er-price del{font-size:12.5px;font-weight:500;color:#89919d;opacity:.85;margin-inline-end:4px}
.gk98er-price ins{text-decoration:none}
.gk98er-price .woocommerce-Price-amount{font:inherit}
.gk98er-live-note{display:flex;align-items:center;gap:6px;margin-top:3px;font-size:10.5px;font-weight:400;line-height:1.7;color:#7a838f}
.gk98er-live-note>span{width:5px;height:5px;border-radius:999px;background:var(--gk98er-success);box-shadow:0 0 0 3px var(--gk98er-success-soft)}
.gk98er-button{min-height:47px;border-radius:11px;text-decoration:none!important;font-size:14px!important;font-weight:750!important;line-height:1.5!important;display:flex;align-items:center;justify-content:center;gap:9px;padding:10px 14px;background:var(--gk98er-accent);color:#fff!important;border:1px solid var(--gk98er-accent);box-shadow:none;transition:transform 180ms ease,opacity 180ms ease,background-color 180ms ease,border-color 180ms ease}
.gk98er-button:hover{transform:translateY(-1px);background:#202b40;border-color:#202b40;color:#fff!important}
.gk98er-button:focus-visible{outline:2px solid #64748b;outline-offset:2px}
.gk98er-product-cta{width:100%;margin-top:12px;justify-content:space-between;padding-inline:16px}
.gk98er-button-arrow{font-size:17px;line-height:1;transition:transform 180ms ease}
.gk98er-product-cta:hover .gk98er-button-arrow{transform:translateX(-2px)}

/* TOC: compact card with its own internal scroll area. */
.gk98er-toc-card{padding-bottom:13px}
.gk98er-toc-marker{width:8px;height:8px;margin-top:9px;border-radius:50%;background:var(--gk98er-accent);box-shadow:0 0 0 4px var(--gk98er-accent-soft);flex:0 0 8px}
.gk98er-toc-card .gk98er-card-heading{margin-bottom:7px}
.gk98er-toc-nav{display:flex;flex-direction:column;gap:1px}
.gk98er-toc-card .gk98er-toc-nav{max-height:var(--gk98er-toc-max,260px);overflow-y:auto;overflow-x:hidden;padding:1px 0 2px 4px;scrollbar-width:thin;scrollbar-color:rgba(116,126,139,.24) transparent}
.gk98er-toc-card .gk98er-toc-nav::-webkit-scrollbar{width:3px}
.gk98er-toc-card .gk98er-toc-nav::-webkit-scrollbar-track{background:transparent}
.gk98er-toc-card .gk98er-toc-nav::-webkit-scrollbar-thumb{background:rgba(116,126,139,.20);border-radius:999px}
.gk98er-toc-card .gk98er-toc-nav:hover::-webkit-scrollbar-thumb{background:rgba(116,126,139,.34)}
.gk98er-toc-link{position:relative;display:block;padding:6px 14px 6px 7px;text-decoration:none!important;color:var(--gk98er-muted)!important;font-size:12.5px!important;font-weight:450!important;line-height:1.8!important;border-radius:9px;transition:background-color 160ms ease,color 160ms ease,transform 160ms ease}
.gk98er-toc-link::before{content:"";position:absolute;right:2px;top:9px;bottom:9px;width:2px;border-radius:99px;background:#e0e4ea;transition:background-color 160ms ease,transform 160ms ease}
.gk98er-toc-link:hover{color:var(--gk98er-text-soft)!important;background:#fafbfc;transform:translateX(-1px)}
.gk98er-toc-link.is-active{color:var(--gk98er-text)!important;font-weight:700!important;background:var(--gk98er-bg-accent)}
.gk98er-toc-link.is-active::before{background:var(--gk98er-accent);transform:scaleY(1.1)}

/* Related content */
.gk98er-related{padding-bottom:10px}
.gk98er-related-list{display:flex;flex-direction:column;gap:2px}
.gk98er-related-item{display:grid;grid-template-columns:70px minmax(0,1fr);gap:11px;align-items:center;padding:9px 8px;margin-inline:-8px;border-radius:11px;text-decoration:none!important;color:var(--gk98er-text)!important;transition:background-color 160ms ease,transform 160ms ease}
.gk98er-related-item:hover{background:var(--gk98er-bg-soft);transform:translateY(-1px)}
.gk98er-related-item+.gk98er-related-item{border-top:1px solid #f0f2f5;border-top-left-radius:0;border-top-right-radius:0}
.gk98er-related-media{width:70px;height:56px;border-radius:10px;overflow:hidden;background:linear-gradient(135deg,#f0f2f5,#fafbfc);border:1px solid var(--gk98er-border);display:block}
.gk98er-related-image{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;margin:0!important;transition:transform 180ms ease}
.gk98er-related-item:hover .gk98er-related-image{transform:scale(1.025)}
.gk98er-related-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;letter-spacing:.08em;color:#7b8490}
.gk98er-related-copy{min-width:0;display:flex;flex-direction:column;gap:4px}
.gk98er-related-copy strong{font-size:13.5px!important;font-weight:700!important;line-height:1.75!important;color:var(--gk98er-text)!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gk98er-related-meta{display:flex!important;align-items:center;justify-content:space-between;gap:7px;font-size:11.5px!important;font-weight:450!important;line-height:1.7!important;color:var(--gk98er-muted)!important}
.gk98er-related-arrow{font-size:14px;line-height:1;opacity:.6;transition:transform 160ms ease,opacity 160ms ease}
.gk98er-related-item:hover .gk98er-related-arrow{transform:translateX(-2px);opacity:1}

/* Support */
.gk98er-support-card{background:linear-gradient(145deg,#f8fafc,#fff);padding:15px 16px}
.gk98er-support-head{display:flex;align-items:center;gap:10px}
.gk98er-support-icon{width:34px;height:34px;flex:0 0 34px;display:flex;align-items:center;justify-content:center;border-radius:11px;background:var(--gk98er-accent-soft);border:1px solid #dfe5ee;color:#354158;font-size:15px;font-weight:800}
.gk98er-support-card .gk98er-card-title{font-size:14px!important}
.gk98er-support-card p{font-size:12px;font-weight:400;line-height:1.75;margin:1px 0 0;color:var(--gk98er-muted)}
.gk98er-support-link{margin-top:11px;min-height:39px;padding:7px 10px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--gk98er-border);font-size:13px;font-weight:700;line-height:1.7;text-decoration:none!important;color:var(--gk98er-text)!important;transition:padding 160ms ease,color 160ms ease}
.gk98er-support-link:hover{padding-inline-start:12px;color:#000!important}

/* Article reading progress: fixed 2px line at the viewport edge, outside the rail.
   Transform-based updates avoid layout/reflow while scrolling. */
.gk98er-reading-progress-top{position:fixed;inset:0 0 auto 0;height:2px;z-index:2147482000;pointer-events:none;background:transparent;opacity:0;transition:opacity 140ms ease}
.gk98er-reading-progress-top.is-active,.gk98er-reading-progress-top.is-complete{opacity:1}
.gk98er-reading-progress-top-bar{display:block;width:100%;height:100%;background:#172033;transform:scaleX(0);transform-origin:right center;will-change:transform}

/* Mobile */
.gk98er-mobile-only,.gk98er-bottom-cta{display:none}
.gk98er-mobile-toc{border:1px solid var(--gk98er-border);border-radius:13px;background:var(--gk98er-bg);margin:18px 0;padding:0 15px;box-shadow:0 5px 18px rgba(16,24,40,.035)}
.gk98er-mobile-toc summary{min-height:50px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;font-size:14px;font-weight:700;line-height:1.8;list-style:none}
.gk98er-mobile-toc summary::-webkit-details-marker{display:none}
.gk98er-summary-chevron{font-size:17px;transition:transform 180ms ease}.gk98er-mobile-toc[open] .gk98er-summary-chevron{transform:rotate(180deg)}
.gk98er-mobile-toc .gk98er-toc-nav{max-height:52vh;overflow-y:auto;padding:0 0 12px;overscroll-behavior:contain}
.gk98er-inline-product{margin:24px 0}.gk98er-mobile-related{margin:30px 0 8px}
.gk98er-bottom-cta{position:fixed;right:12px;left:12px;bottom:max(12px,env(safe-area-inset-bottom));z-index:9990;min-height:68px;align-items:center;gap:10px;padding:9px 10px;background:rgba(255,255,255,.97);backdrop-filter:blur(10px);border:1px solid var(--gk98er-border-strong);border-radius:15px;box-shadow:0 14px 38px rgba(16,24,40,.18);transform:translateY(calc(100% + 30px));opacity:0;pointer-events:none;transition:transform 180ms ease,opacity 180ms ease}
.gk98er-bottom-cta.is-visible{transform:translateY(0);opacity:1;pointer-events:auto}
.gk98er-bottom-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:1px}
.gk98er-bottom-copy strong{font-size:12.5px;font-weight:750;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--gk98er-text)}
.gk98er-bottom-price{font-size:13.5px;font-weight:850;line-height:1.6;white-space:nowrap;color:var(--gk98er-text)}
.gk98er-bottom-price del{display:none}.gk98er-bottom-price ins{text-decoration:none}
.gk98er-bottom-button{min-width:78px;min-height:46px;flex:0 0 auto}
.gk98er-content-anchor{display:none!important}

@media (max-width:1099px){
    body.gk98er-enabled .gk98er-desktop-rail{display:none!important}
    .gk98er-mobile-only{display:block}.gk98er-bottom-cta{display:flex}
    .gk98er-inline-product .gk98er-card,.gk98er-mobile-related .gk98er-card{margin:0}
    .gk98er-mobile-only .gk98er-product-name{font-size:15px!important}
    .gk98er-mobile-only .gk98er-price{font-size:21px}
    .gk98er-mobile-only .gk98er-product-card{padding:16px}
}
@media (min-width:1100px){.gk98er-mobile-only,.gk98er-bottom-cta{display:none!important}}
@media (prefers-reduced-motion:reduce){.gk98er-root *,.gk98er-root *::before,.gk98er-root *::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
