.site-guide {
    position: relative;
    grid-area: guide;
    align-self: end;
    justify-self: start;
    width: 100%;
    max-width: 500px;
    min-height: 44px;
    direction: ltr;
    color: var(--theme-text, #1e251b);
    isolation: isolate;
}
.site-guide[hidden], .site-guide [hidden] { display: none !important; }
.site-guide-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.site-guide button {
    display: inline-grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
}
.site-guide button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.site-guide button:focus-visible, .site-guide input:focus-visible { outline: 3px solid #b58b1e; outline-offset: 2px; }
.site-guide-panel {
    position: relative;
    margin: 0;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--theme-border, #75826e66);
    border-radius: 8px;
    background: var(--theme-surface-2, #fff);
    box-shadow: 0 8px 28px #10231b35;
}
.site-guide-screen { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #14271f; }
.site-guide-screen video { display: block; width: 100%; height: 100%; object-fit: contain; }
.site-guide .site-guide-retry { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); border-radius: 50%; color: #fff; background: #14271fe8; border: 1px solid #d9b34c; }
.site-guide-overlay { position: absolute; inset: auto 0 0; z-index: 1; padding: 18px 5px 2px; color: #fff; background: linear-gradient(transparent, #07110bd9); opacity: 1; transition: opacity .18s ease; }
.site-guide[data-controls="hidden"] .site-guide-panel:not(:focus-within) .site-guide-overlay { opacity: 0; visibility: hidden; pointer-events: none; }
.site-guide-controls { display: flex; align-items: center; min-height: 44px; padding-inline: 2px; direction: ltr; }
.site-guide-controls button:hover { color: #edce6b; background: #ffffff1f; }
.site-guide-controls time { flex: 1; min-width: 35px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.site-guide-controls [aria-pressed="true"] { color: #edce6b; }
.site-guide-seek { display: block; width: calc(100% - 12px); height: 20px; margin: 0 6px; padding: 0; appearance: none; background: transparent; cursor: pointer; direction: ltr; }
html[data-theme] #siteGuide .site-guide-seek { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
html[data-theme] #siteGuide .site-guide-overlay button { color: #fff !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
html[data-theme] #siteGuide .site-guide-overlay button:hover { color: #edce6b !important; background: #ffffff1f !important; }
.site-guide-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, #b58b1e var(--guide-progress, 0%), #87967e55 var(--guide-progress, 0%)); }
.site-guide-seek::-moz-range-track { height: 4px; border-radius: 2px; background: #87967e55; }
.site-guide-seek::-moz-range-progress { height: 4px; background: #b58b1e; }
.site-guide-seek::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; border: 1px solid #745b19; background: #d9b34c; }
.site-guide-seek::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; border: 1px solid #745b19; background: #d9b34c; }
.site-guide-error { position: absolute; inset: 0 0 auto; margin: 0; padding: 8px 10px; font-size: 12px; text-align: center; direction: inherit; color: #fff; background: #14271fe8; }
html[data-theme="dark"] .site-guide-controls button:hover, html[data-theme="dark"] .site-guide-controls [aria-pressed="true"] { color: #edce6b; }
.site-guide-panel:fullscreen { display: flex; flex-direction: column; justify-content: center; width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; background: #101b16; color: #fff; }
.site-guide-panel:fullscreen .site-guide-screen { flex: 1; min-height: 0; aspect-ratio: auto; }
.site-guide-panel:fullscreen .site-guide-overlay { padding-bottom: env(safe-area-inset-bottom, 0px); }
.site-guide-panel:fullscreen .site-guide-controls { justify-content: center; }
.site-guide-panel:fullscreen .site-guide-controls time { flex: 0 1 100px; }
.site-guide-panel:fullscreen .site-guide-seek { width: calc(100% - 32px); margin-inline: 16px; }
@media (prefers-reduced-motion: reduce) { .site-guide-overlay { transition: none; } }
@media print { .site-guide { display: none !important; } }
