:root {
    --tpm-black: #030307;
    --tpm-white: #f5f5f5;
    --tpm-main: #d31c1c;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    background: var(--tpm-black);
}

body.tpm-coming-soon {
    color: var(--tpm-white);
    font-family: "Circular Std", "Circular", "Avenir Next", Avenir, Arial, sans-serif;
}

.tpm-coming-soon__panel {
    display: grid;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 0;
    place-items: center;
    padding: 80px 32px;
    background: var(--tpm-black);
}

.tpm-coming-soon__content {
    display: flex;
    width: min(908px, 100%);
    flex-direction: column;
    gap: 32px;
}

.tpm-coming-soon__description {
    display: flex;
    flex-direction: column;
    gap: 27px;
}

.tpm-coming-soon__logo-wrap {
    width: 338px;
    height: 261px;
}

.tpm-coming-soon__logo {
    display: block;
    width: 292px;
    height: 262px;
    margin-left: 32px;
    object-fit: contain;
}

.tpm-coming-soon__copy {
    position: relative;
    margin: 0;
    font-size: 32px;
    font-weight: 400;
    line-height: normal;
    text-align: justify;
    white-space: pre-line;
}

.tpm-coming-soon__copy-reserve {
    display: block;
    visibility: hidden;
}

.tpm-coming-soon__copy-output {
    position: absolute;
    inset: 0;
    display: block;
    white-space: pre-line;
}

.tpm-coming-soon__form {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.tpm-field {
    position: relative;
    display: flex;
    width: 100%;
    height: 48px;
    align-items: center;
    gap: 16px;
    padding: 0 8px 0 12px;
    border: 4px solid currentColor;
    color: var(--tpm-white);
    transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tpm-field__icon {
    display: block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
}

.tpm-field__icon svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.tpm-field__icon path {
    fill: currentColor;
}

.tpm-field input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--tpm-white);
    background: transparent;
    font: 700 20px/1.3 "IBM Plex Mono", "Courier New", monospace;
    caret-color: transparent;
    text-shadow: 0 0 5px rgb(245 245 245 / 28%);
    transition: color 160ms ease, text-shadow 160ms ease;
}

.tpm-terminal-cursor {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: none;
    width: 10px;
    height: 24px;
    background: currentColor;
    box-shadow: 0 0 7px currentColor;
    opacity: .92;
    pointer-events: none;
    transform: translateY(-50%);
}

.tpm-field:focus-within .tpm-terminal-cursor {
    display: block;
    animation: tpm-input-cursor-blink 820ms steps(1, end) infinite;
}

.tpm-field input::placeholder {
    color: var(--tpm-white);
    opacity: 1;
}

.tpm-field:focus-within {
    border-color: var(--tpm-main);
    box-shadow: inset 0 0 14px rgb(245 245 245 / 5%);
}

.tpm-field.is-error {
    border-color: var(--tpm-main);
    color: var(--tpm-main);
}

.tpm-field.is-error input,
.tpm-field.is-error input::placeholder {
    color: var(--tpm-main);
}

.tpm-field.is-success {
    border-color: var(--tpm-white);
}

.tpm-submit {
    display: flex;
    width: 332px;
    height: 64px;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    border: 0;
    color: var(--tpm-white);
    background: var(--tpm-main);
    cursor: not-allowed;
    font: 700 24px/1.3 "IBM Plex Mono", "Courier New", monospace;
    opacity: .5;
    text-align: center;
}

.tpm-submit.is-ready,
.tpm-submit.is-confirming,
.tpm-submit.is-success,
.tpm-submit.is-error {
    cursor: pointer;
    opacity: 1;
}

.tpm-submit.is-confirming {
    cursor: wait;
}

.tpm-submit.is-success {
    font-size: 21px;
}

.tpm-arrows {
    display: none;
}

@media (min-width: 1280px) {
    .tpm-arrows {
        position: absolute;
        z-index: 3;
        inset: 0;
        display: block;
        overflow: visible;
        pointer-events: none;
    }

    .tpm-arrow {
        position: absolute;
        display: block;
        opacity: 0;
    }

    .tpm-arrow--right-top {
        top: -33px;
        left: 918px;
        width: 81px;
        height: 149px;
    }

    .tpm-arrow--right-bottom {
        top: 158px;
        left: 920px;
        width: 98px;
        height: 50px;
    }

    .tpm-arrow--left {
        top: 148px;
        left: 421px;
        width: 140px;
        height: 34px;
    }

    .tpm-coming-soon__form.is-success .tpm-arrow,
    .tpm-coming-soon__form.is-error .tpm-arrow {
        opacity: 1;
    }
}

.screen-reader-text {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Keep the complete desktop composition inside short 16:9 viewports. */
@media (min-width: 768px) and (max-height: 900px) {
    .tpm-coming-soon__panel {
        padding: clamp(20px, 4vh, 48px) 32px;
    }

    .tpm-coming-soon__content {
        gap: clamp(12px, 2.4vh, 24px);
    }

    .tpm-coming-soon__description {
        gap: clamp(10px, 1.8vh, 18px);
    }

    .tpm-coming-soon__logo-wrap {
        height: clamp(160px, 29vh, 240px);
    }

    .tpm-coming-soon__logo {
        width: auto;
        height: 100%;
    }

    .tpm-coming-soon__copy {
        font-size: clamp(20px, 3.2vh, 28px);
        line-height: 1.28;
    }

    .tpm-coming-soon__form {
        gap: clamp(8px, 1.4vh, 12px);
    }

    .tpm-field {
        height: clamp(40px, 6vh, 48px);
        border-width: 3px;
    }

    .tpm-field input {
        font-size: clamp(15px, 2.5vh, 20px);
    }

    .tpm-submit {
        height: clamp(48px, 7.5vh, 60px);
        font-size: clamp(18px, 3vh, 24px);
    }
}

@media (max-width: 767px) {
    .tpm-coming-soon__panel {
        height: 100vh;
        height: 100svh;
        min-height: 0;
        padding: 59px 16px 60px;
    }

    .tpm-coming-soon__content {
        width: min(288px, 100%);
        gap: 24px;
    }

    .tpm-coming-soon__description {
        gap: 12px;
    }

    .tpm-coming-soon__logo-wrap {
        width: 100%;
        height: 153px;
    }

    .tpm-coming-soon__logo {
        width: 168px;
        height: 150px;
        margin: 0 auto;
    }

    .tpm-coming-soon__copy {
        font-size: 16px;
    }

    .tpm-coming-soon__form {
        gap: 8px;
    }

    .tpm-field {
        border-width: 2px;
        padding-left: 14px;
    }

    .tpm-field__icon {
        flex-basis: 20px;
        width: 20px;
        height: 20px;
    }

    .tpm-field input {
        font-size: 14px;
    }

    .tpm-terminal-cursor {
        width: 7px;
        height: 18px;
    }

    .tpm-submit {
        width: 100%;
        height: 48px;
        padding: 10px 16px;
        font-size: 20px;
    }

    .tpm-submit.is-success {
        font-size: 16px;
    }
}
