.archive-replay {
    padding: clamp(17px, 3.9vw, 49px);
    margin-bottom: clamp(33px, 5.4vw, 72px);
    border: 1px solid #30487f;
    border-radius: 24px;
    background: radial-gradient(ellipse at 100% 0, #283f83, #121d3b 66%);
    color: var(--white);
}

.replay-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 20px;
    margin-bottom: clamp(16px, 2.5vw, 28px);
}
.replay-heading h2 { font-size: clamp(1.88rem, 3.8vw, 3.45rem); }
.replay-heading p { color: #d3dcf6; }

.replay-timeline {
    --replay-thumb: 26px;
    --replay-progress: 0%;
    padding: 11px clamp(11px, 2vw, 21px) 9px;
    margin-bottom: clamp(14px, 2.2vw, 25px);
    border: 1px solid #4a6097;
    border-radius: 15px;
    background: #121c36;
}
.replay-controls {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 5px 12px;
    color: #dbe6ff;
    font-weight: 640;
}
.replay-controls label { font-size: .89rem; }
.replay-controls time {
    color: var(--white);
    font: 750 clamp(1rem, 2vw, 1.5rem)/1.1 var(--display);
}
.replay-counter {
    color: #bfcbed;
    font-size: .89rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.replay-track { position: relative; }
.replay-track::before, .replay-ticks {
    position: absolute;
    inset-inline: calc(var(--replay-thumb) / 2);
    pointer-events: none;
}
.replay-track::before {
    content: "";
    top: 18px;
    height: 8px;
    border-radius: 8px;
    background: linear-gradient(to right, var(--lime) var(--replay-progress), #526798 var(--replay-progress));
}
.replay-ticks {
    display: flex;
    justify-content: space-between;
    top: 29px;
}
.replay-ticks span {
    width: 2px;
    height: 5px;
    margin-inline: -1px;
    border-radius: 1px;
    background: #93a6d0;
}
.replay-track input {
    position: relative;
    z-index: 1;
    display: block;
    appearance: none;
    width: 100%;
    height: 44px;
    margin: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--lime);
    cursor: grab;
    touch-action: pan-y;
}
.replay-track input:active { cursor: grabbing; }
.replay-track input:focus-visible { outline-color: var(--lime); outline-offset: -2px; }
.replay-track input::-webkit-slider-runnable-track { height: var(--replay-thumb); background: transparent; }
.replay-track input::-moz-range-track { height: var(--replay-thumb); background: transparent; }
.replay-track input::-webkit-slider-thumb {
    appearance: none;
    box-sizing: border-box;
    width: var(--replay-thumb);
    height: var(--replay-thumb);
    border: 3px solid #17213b;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 1px currentColor;
}
.replay-track input::-moz-range-thumb {
    box-sizing: border-box;
    width: var(--replay-thumb);
    height: var(--replay-thumb);
    border: 3px solid #17213b;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 1px currentColor;
}
.replay-years {
    display: flex;
    justify-content: space-between;
    color: #bfcbed;
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
}

.replay-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(19px, 4vw, 56px);
    border-radius: 14px;
}
.replay-browser {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #5469a0;
    border-radius: 14px;
    background: #e6ebfb;
    color: #1b2646;
    box-shadow: 0 16px 26px #07112a42;
}
.replay-chrome {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 7px 10px;
    border-bottom: 1px solid #c4cee8;
    background: #ebeff9;
}
.replay-address {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
    padding: 3px 8px;
    border: 1px solid #ced7e9;
    border-radius: 8px;
    background: #fff;
    color: #344368;
    font: 600 .82rem/1.3 var(--sans);
}
.replay-address > span { white-space: nowrap; }
.replay-address select {
    flex: 1;
    min-width: 0;
    min-height: 36px;
    padding: 2px 4px;
    border: 0;
    border-radius: 4px;
    background: #f4f6fc;
    color: #253655;
    cursor: pointer;
}
.replay-http {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 6px;
    background: #dfeee3;
    color: #294c34;
    font-size: .78rem;
    font-weight: 750;
    white-space: nowrap;
}
.replay-http[data-status="404"] { background: #f5dedc; color: #802c26; }
.replay-http[data-status="uncaptured"] { background: #f5eacb; color: #69491a; }

.replay-site {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: center;
    min-height: clamp(238px, 22vw, 310px);
    font-size: .9rem;
}
.replay-site[data-snapshot-phase="garden"] { background: #f9f6ed; color: #293b2b; }
.replay-site[data-snapshot-phase="property"] { background: #fff; color: #253b57; }
.replay-masthead {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 10px;
    min-height: 44px;
    padding: 2px clamp(10px, 2vw, 24px);
    border-bottom: 1px solid #667b7d38;
    background: #fff;
}
[data-snapshot-phase="garden"] .replay-masthead { background: #f1f1e7; color: #23452f; }
.replay-masthead strong { font: 750 .96rem/1.16 var(--display); }
.replay-masthead nav { display: flex; flex-wrap: wrap; gap: 2px; }
.replay-masthead button {
    min-height: 38px;
    padding: 3px 6px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font-size: .81rem;
    text-underline-offset: 3px;
    cursor: pointer;
}
.replay-masthead button:hover, .replay-masthead button[aria-current="page"] { text-decoration: underline; }
.replay-masthead button[aria-current="page"] { font-weight: 730; }
.replay-mock-copy { padding: clamp(13px, 2.3vw, 27px); }
.replay-mock-label { color: inherit; font-size: .78rem; font-weight: 720; }
.replay-mock-title {
    margin-block: 5px 9px;
    font: 750 clamp(1.35rem, 3.15vw, 3rem)/1 var(--display);
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
}
.replay-site[data-snapshot-phase="garden"] .replay-mock-title {
    font-family: Georgia, serif;
    font-weight: 600;
    color: #293e2b;
}
.replay-art {
    align-self: stretch;
    min-height: 115px;
    margin: clamp(10px, 1.9vw, 24px) clamp(10px, 1.9vw, 24px) clamp(10px, 1.9vw, 24px) 0;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
}
[data-snapshot-phase="garden"] .replay-art {
    background-color: #aab491;
    background-image: url("archive-garden.webp");
    background-position: 68% center;
}
[data-snapshot-art="autumn"] .replay-art { filter: sepia(.23) saturate(.8); }
[data-snapshot-art="seed"] .replay-art { background-position: 77% center; }
[data-snapshot-art="compost"] .replay-art { background-position: 54% bottom; }
[data-snapshot-art="calendar"] .replay-art { background-position: 35% center; }
[data-snapshot-art="harvest"] .replay-art { filter: saturate(.82); }
[data-snapshot-phase="property"] .replay-art {
    background-color: #d0dbe0;
    background-image: url("archive-house.webp");
    background-position: center 55%;
}
[data-snapshot-art="closing"] .replay-art { filter: saturate(.55); }

.replay-site:is([data-snapshot-phase="parked"], [data-snapshot-phase="unavailable"]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr;
    justify-items: center;
    background: #f5f6f9;
    color: #43506d;
    text-align: center;
}
.replay-site[data-snapshot-phase="unavailable"] { background: #fff; }
.replay-site:is([data-snapshot-phase="parked"], [data-snapshot-phase="unavailable"]) .replay-mock-title { color: #28354f; }
:is([data-snapshot-phase="parked"], [data-snapshot-phase="unavailable"]) :is(.replay-masthead, .replay-art) { display: none; }
.replay-site[data-snapshot-art="placeholder"] { background: #f3f0e9; }
.replay-site[data-snapshot-art="placeholder"] .replay-mock-title { font-family: var(--sans); font-weight: 660; }
.replay-site[data-snapshot-art="inactive"] { background: #ecf2ea; }
.replay-jump {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 14px;
    padding: 6px 10px;
    border: 1px solid #b8c4e1;
    border-radius: 6px;
    background: #edf1fc;
    color: #263c76;
    font-weight: 680;
    cursor: pointer;
}
.replay-jump:hover { background: #dfe8ff; }

.replay-reading-label {
    margin-bottom: 6px;
    color: var(--lime);
    font: 730 1.1rem/1.1 var(--display);
}
.replay-reading h3 { margin-bottom: 9px; font-size: clamp(1.55rem, 2.95vw, 2.8rem); }
.replay-reading p:last-child { max-width: 37ch; color: #d3dcf6; }

@media (max-width: 740px) {
    .archive-replay { border-radius: 18px; }
    .replay-panel { grid-template-columns: minmax(0, 1fr); }
    .replay-controls { gap: 5px 8px; }
    .replay-controls label, .replay-counter { font-size: .78rem; }
}
@media (max-width: 520px) {
    .replay-chrome { position: relative; grid-template-columns: minmax(0, 1fr); }
    .replay-address { flex-direction: column; align-items: stretch; }
    .replay-address > span { min-height: 24px; padding: 3px 78px 0 0; }
    .replay-address select { min-height: 34px; }
    .replay-http { position: absolute; inset: 10px 14px auto auto; min-height: 20px; font-size: .72rem; }
    .replay-masthead { padding-top: 6px; }
    .replay-masthead button { min-height: 37px; }
    .replay-site { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; }
    .replay-art { margin: 0 11px 11px; background-position: center; }
}
@media (forced-colors: active) {
    .replay-track::before { border: 1px solid CanvasText; }
    .replay-track input::-webkit-slider-thumb { background: Highlight; }
    .replay-track input::-moz-range-thumb { background: Highlight; }
}
