* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000000;

    cursor: default;
}

body.wp-revealed {
    cursor: none;
}


/* The whole backdrop is one very subtle vignette: rgb(48,48,48) behind the
   window, falling away to pure black at the edges. Nothing else is on it. */
#wp-backdrop {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #000000;
    background: radial-gradient(ellipse 90% 80% at 50% 42%,
        rgb(48, 48, 48) 0%,
        rgb(26, 26, 26) 45%,
        rgb(0, 0, 0) 100%);
}


#wp-window {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;

    font-family: "Segoe UI", Tahoma, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    color: #E8E8E8;

    width: 60em;
    max-width: 95vw;
    background: #121212;
    border: 1px solid #6E0A0A;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9), 0 24px 70px rgba(0, 0, 0, 0.85);
}

@media (min-width: 1600px) {
    #wp-window {
        font-size: 16px;
    }
}

@media (min-width: 2400px) {
    #wp-window {
        font-size: 21px;
    }
}


.wp-titlebar {
    display: flex;
    align-items: center;
    gap: 0.55em;
    padding: 0.5em 0.5em 0.5em 0.75em;
    background: linear-gradient(#A50E0E, #6B0000);
    border-bottom: 1px solid #3D0000;
    color: #FFFFFF;
    font-weight: 700;
    user-select: none;
}

.wp-titlebar-icon {
    flex: 0 0 auto;
    display: block;
    width: 1.15em;
    height: 1.15em;
}

.wp-titlebar-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.wp-titlebar-btn {
    flex: 0 0 auto;
    width: 2.1em;
    height: 1.5em;
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: 0.9em;
    line-height: 1;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.22);
    cursor: default;
}

.wp-titlebar-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.wp-titlebar-btn.wp-titlebar-close:hover {
    background: #E81123;
}


.wp-body {
    display: flex;
    align-items: stretch;
}


/* Left column: the two clocks and the two buttons, on flat red. */
.wp-side {
    flex: 0 0 15.5em;
    padding: 1.5em 1.2em;
    background: linear-gradient(#7E0303, #560000);
    border-right: 1px solid #3D0000;
    display: flex;
    flex-direction: column;
    gap: 1.4em;
}

.wp-timer-label {
    font-size: 0.92em;
    color: #FFC9C9;
}

.wp-timer-date {
    font-size: 0.92em;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.55em;
}

.wp-timer-caption {
    font-size: 0.85em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FFB0B0;
}

.wp-timer-value {
    font-family: "Consolas", "DejaVu Sans Mono", "Courier New", monospace;
    font-size: 1.95em;
    font-weight: 700;
    line-height: 1.15;
    color: #FFFFFF;
    text-shadow: 0 0 0.5em rgba(255, 120, 120, 0.55);
}

body.wp-expired .wp-timer-value {
    color: #FFD0D0;
    text-shadow: none;
}

.wp-actions {
    margin-top: auto;
    padding-top: 0.4em;
    display: flex;
    flex-direction: column;
    gap: 0.55em;
}

.wp-btn {
    font-family: inherit;
    font-size: 1em;
    padding: 0.5em 0.9em;
    color: #1A1A1A;
    background: #DCDCDC;
    border: 1px solid #9A9A9A;
    cursor: default;
}

.wp-btn:hover {
    background: #EFEFEF;
}

.wp-btn:active {
    background: #C4C4C4;
}

.wp-btn.wp-btn-default {
    color: #FFFFFF;
    font-weight: 700;
    background: #C10D0D;
    border-color: #FFFFFF;
}

.wp-btn.wp-btn-default:hover {
    background: #DC1616;
}


/* Right column: the note itself. */
.wp-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1.5em 1.6em;
}

.wp-alert {
    display: none;
    margin: 0 0 1.1em;
    padding: 0.55em 0.85em;
    background: #3A0000;
    border-left: 4px solid #FF2A2A;
    color: #FF8A8A;
    font-weight: 700;
}

body.wp-expired .wp-alert {
    display: block;
}

/* The title bar carries the product name, so the shout goes here, exactly as
   the ransom notes this is a pastiche of laid it out. */
.wp-shout {
    margin: 0 0 1em;
    font-size: 1.45em;
    font-weight: 700;
    line-height: 1.25;
    color: #FF2A2A;
}

.wp-main h2 {
    margin: 0 0 0.3em;
    font-size: 1.1em;
    font-weight: 700;
    color: #FF4B4B;
}

.wp-main h2 + p {
    margin-top: 0;
}

.wp-main p {
    margin: 0 0 1.15em;
    color: #D8D8D8;
}

.wp-main p:last-child {
    margin-bottom: 0;
}

.wp-strong {
    color: #FFFFFF;
    font-weight: 700;
}

.wp-links {
    display: flex;
    gap: 1.4em;
    margin: 0 0 1.15em;
    font-size: 0.92em;
    color: #FF7A7A;
    text-decoration: underline;
}

.wp-links span {
    cursor: default;
}


/* The address box. The address is not a valid bitcoin address: it starts
   bc0 (no real bech32 address does) and says so in the middle. */
.wp-address {
    display: flex;
    align-items: stretch;
    border: 1px dashed #B02020;
    background: #000000;
}

.wp-address-label {
    flex: 0 0 auto;
    padding: 0.6em 0.7em;
    background: #1C0000;
    border-right: 1px dashed #B02020;
    color: #FF8A8A;
    font-size: 0.9em;
    white-space: nowrap;
    align-self: center;
}

.wp-address-value {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.6em 0.7em;
    font-family: "Consolas", "DejaVu Sans Mono", "Courier New", monospace;
    font-size: 0.95em;
    color: #FFFFFF;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    align-self: center;
}

.wp-address .wp-btn {
    flex: 0 0 auto;
    border-width: 0 0 0 1px;
    border-color: #B02020;
}


/* Deliberately quiet, but never absent: the page does not actually lie. */
.wp-disclaimer {
    padding: 0.6em 1.2em;
    background: #0A0A0A;
    border-top: 1px solid #262626;
    font-size: 0.82em;
    color: #4E4E4E;
    text-align: center;
}


/* The reveal: a console purging files that were never there, and then the
   punchline. */
#wp-console {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 3;

    background: #000000;
    overflow: hidden;
}

body.wp-revealed #wp-console {
    display: block;
}

body.wp-revealed #wp-backdrop,
body.wp-revealed #wp-window,
body.wp-revealed #wp-hint {
    display: none;
}

#wp-console pre {
    margin: 0;
    padding: 3vh 3vw;
    font-family: "DejaVu Sans Mono", "Consolas", "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #C8C8C8;
    white-space: pre-wrap;
    word-break: break-all;
}

@media (min-width: 1600px) {
    #wp-console pre {
        font-size: 17px;
    }
}

@media (min-width: 2400px) {
    #wp-console pre {
        font-size: 22px;
    }
}

#wp-console pre > div {
    min-height: 1.5em;
}

.wp-tag {
    color: #FF3B30;
}

.wp-keep {
    color: #FFFFFF;
    font-weight: 700;
}

#wp-cursor {
    animation: wp-blink 1s steps(1, end) infinite;
}

@keyframes wp-blink {
    50% {
        opacity: 0;
    }
}


#wp-hint {
    position: fixed;
    left: 50%;
    bottom: 1.5em;
    transform: translateX(-50%);
    z-index: 4;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 9px 18px;
    white-space: nowrap;
    max-width: 92vw;
    overflow: hidden;
    text-overflow: ellipsis;

    transition: opacity 0.6s ease;
}

#wp-hint kbd {
    font-family: inherit;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    padding: 1px 6px;
}

#wp-hint.wp-hint-gone {
    opacity: 0;
    pointer-events: none;
}


@media (max-width: 900px) {
    .wp-body {
        flex-direction: column;
    }

    .wp-side {
        flex: 0 0 auto;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1em 1.6em;
        border-right: 0;
        border-bottom: 1px solid #3D0000;
    }

    .wp-timer-date {
        display: none;
    }

    .wp-actions {
        margin-top: 0;
        flex-direction: row;
        width: 100%;
    }

    .wp-actions .wp-btn {
        flex: 1 1 0;
    }
}

@media (max-width: 760px) {
    #wp-window {
        font-size: 11px;
    }

    .wp-links {
        display: none;
    }

    .wp-address {
        flex-wrap: wrap;
    }

    .wp-address-label {
        flex: 1 1 100%;
        border-right: 0;
        border-bottom: 1px dashed #B02020;
    }

    #wp-console pre {
        font-size: 11px;
        padding: 2vh 3vw;
    }
}
