@import url("assets/boosted-creatures.css?v=b039513b192bdeac");

.realm-watch {
    --watch-border: #625b48;
    position: fixed;
    inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) auto;
    z-index: 7;
    color: var(--ivory);
    font: 450 .875rem/1.4 var(--sans);
}
.rw-panel, .rw-launch {
    background: #132227;
    border: 1px solid var(--watch-border);
    border-radius: 5px;
    box-shadow: 0 10px 32px #050c1073, inset 0 0 0 2px #d4b7820e;
}
.rw-launch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 44px;
    padding: .45rem .85rem;
    color: var(--ivory);
    font-weight: 650;
}
.rw-launch:hover, .rw-close:hover { background-color: #283a3d; border-color: var(--gold); }
.rw-launch:focus-visible, .rw-close:focus-visible { outline-offset: 2px; }
.rw-dot {
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #b4a68a;
    box-shadow: 0 0 0 3px #b4a68a1c;
}
.realm-watch[data-feed-state="live"] .rw-dot { background: #9fd5b8; box-shadow: 0 0 0 3px #88b99c24; }
.rw-panel {
    width: min(19rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: start;
}
.rw-header {
    flex: none;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .8rem .85rem .8rem 1rem;
    border-bottom: 1px solid var(--hairline);
    background: linear-gradient(110deg,#203336,#17282c);
}
.rw-compass { flex: none; }
.rw-header h2, .rw-event h3, .rw-group h3 { margin: 0; font-family: var(--sans); }
.rw-header h2 { font-size: 1.18rem; line-height: 1.2; font-weight: 650; letter-spacing: -.025em; }
.rw-feed-state { display: inline-flex; align-items: center; gap: .45rem; margin-top: .22rem; color: #bdc9c4; font-size: .73rem; }
.rw-close {
    display: grid;
    place-items: center;
    margin: -.3rem -.3rem -.3rem auto;
    padding: 0;
    width: 44px;
    height: 44px;
    color: #c0cbc4;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    font: 400 1.45rem/1 var(--sans);
}
.rw-sections { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #65756b #152529; }
.rw-event {
    padding: 1rem;
    background: linear-gradient(90deg,#172729fa 25%,#16262bda 65%,#16262bcf),
        url("assets/observatory.webp") center 45% / cover;
    border-bottom: 1px solid var(--hairline);
}
.rw-label {
    display: block;
    color: var(--gold);
    font: 650 .69rem/1.4 var(--sans);
    letter-spacing: .13em;
    text-transform: uppercase;
}
.rw-event h3 { font-size: 1.13rem; font-weight: 650; letter-spacing: -.02em; margin: .26rem 0 .5rem; }
.rw-event-schedule { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; color: #c8d0c9; font-size: .81rem; }
.rw-event-schedule time { color: #e8d2a3; font-weight: 650; font-size: 1rem; line-height: 1.2; }
.rw-event[data-event-active] .rw-event-schedule time { color: var(--jade); }
.rw-event-bonuses, .rw-daily p { margin: .5rem 0 0; color: #b8c5be; font-size: .75rem; line-height: 1.5; }
.rw-group { margin: 0; padding: .9rem 1rem .65rem; }
.rw-group + .rw-group { border-top: 1px solid var(--hairline); }
.rw-group ul { list-style: none; margin: .35rem 0 0; padding: 0; }
.rw-boost { display: flex; align-items: center; gap: .55rem; padding: .46rem 0; min-height: 34px; }
.rw-boost + .rw-boost { border-top: 1px solid #c1cfbb12; }
.rw-icon {
    width: 20px;
    height: 20px;
    flex: none;
    opacity: .8;
    background: url("assets/watch-boosts.png") no-repeat;
    image-rendering: pixelated;
}
.rw-icon--skills { background-position: -20px 0; }
.rw-icon--loot { background-position: -40px 0; }
.rw-boost-name { min-width: 0; font-weight: 550; color: #e4e9e0; }
.rw-boost-name small { display: block; font-size: .69rem; font-weight: 500; color: var(--jade); }
.rw-boost-state { margin-inline-start: auto; font-size: .77rem; color: #a5b4b1; white-space: nowrap; }
.rw-boost[data-active] .rw-boost-state { color: var(--jade); font-weight: 650; }
.rw-boost-state, .rw-event-schedule time { font-variant-numeric: tabular-nums; }
.rw-daily { padding-bottom: .95rem; }
.rw-daily ul { display: grid; gap: .2rem; }
.rw-daily li { display: flex; align-items: center; gap: .55rem; min-width: 0; overflow-wrap: anywhere; color: #e2e8df; font-size: .85rem; }
.rw-daily li::before {
    content: var(--rw-portrait, none);
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 3px;
    background-color: #0e191c;
    background-position: var(--rw-frame-x) 0;
    background-size: auto 40px;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 1px #c6ab752c;
    image-rendering: pixelated;
}
.rw-daily p { margin-top: .35rem; }
@media (min-width: 82rem) {
    .realm-watch-layout[data-watch-open] {
        --watch-width: 18rem;
        --watch-edge: max(2.5rem, calc((100% - 97rem) / 2));
        --watch-gap: clamp(1.3rem, 2vw, 2.5rem);
        display: grid;
        grid-template: auto / minmax(0, 1fr);
    }
    .realm-watch-layout[data-watch-open] > main, .realm-watch-layout[data-watch-open] > .realm-watch { grid-area: 1 / 1; }
    .realm-watch-layout[data-watch-open] > main > .shell,
    .realm-watch-layout[data-watch-open] > main > section > .shell {
        width: min(1240px, calc(100% - 2 * var(--watch-edge) - var(--watch-width) - var(--watch-gap)));
        margin-inline: var(--watch-edge) auto;
    }
    .realm-watch-layout[data-watch-open] .realm-watch {
        position: sticky;
        inset: 1rem auto auto;
        justify-self: end;
        align-self: start;
        margin: 1.6rem var(--watch-edge) 1.6rem 0;
    }
    .realm-watch-layout[data-watch-open] .rw-panel { width: var(--watch-width); }
}
@media (max-width: 81.999rem) {
    body:has(.realm-watch:not([hidden])) .site-footer { padding-bottom: calc(3.75rem + env(safe-area-inset-bottom)); }
    .realm-watch-layout[data-watch-open] .realm-watch { z-index: 10; }
    .realm-watch-layout[data-watch-open] .rw-panel { animation: rw-reveal .16s ease-out; }
    @keyframes rw-reveal { from { opacity: .2; transform: translateY(6px); } }
}
@media (prefers-reduced-motion: reduce) {
    .realm-watch-layout[data-watch-open] .rw-panel { animation: none; }
}
@media print {
    .realm-watch { display: none !important; }
    .realm-watch-layout[data-watch-open] { display: block; }
    .realm-watch-layout[data-watch-open] main .shell { width: auto !important; margin-inline: auto !important; }
}
