*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: #000;
    color: #e2e8f0;
}

.hootz-home {
    max-width: 42rem;
    margin: 4rem auto;
    padding: 0 1.5rem;
    overflow: auto;
    height: 100%;
    background: #0f172a;
}

.hootz-home h1 {
    margin-bottom: 0.75rem;
}

.hootz-home__hint code {
    background: rgba(148, 163, 184, 0.15);
    padding: 0.15rem 0.35rem;
    border-radius: 0.25rem;
}

.hootz-loading,
.hootz-error {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
    text-align: center;
    background: #0f172a;
}

.hootz-shell {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.hootz-frame {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border: 0;
    display: block;
    background: #fff;
}

.hootz-static-scroll {
    position: fixed;
    inset: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
}

.hootz-static-link {
    display: block;
    text-decoration: none;
}

.hootz-static {
    width: 100%;
    height: auto;
    display: block;
    border: 0;
    background: #fff;
}

.hootz-banner {
    position: fixed;
    z-index: 1000;
    width: min(24rem, calc(100vw - 2rem));
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
    pointer-events: auto;
}

.hootz-shell--bottom .hootz-banner {
    left: 1rem;
    bottom: 1rem;
}

.hootz-shell--top .hootz-banner {
    left: 1rem;
    top: 1rem;
}

.hootz-shell--right .hootz-banner {
    right: 1rem;
    bottom: 1rem;
}

.hootz-shell--left .hootz-banner {
    left: 1rem;
    bottom: 1rem;
}

.hootz-banner__meta {
    display: flex;
    justify-content: flex-end;
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.hootz-banner__headline {
    margin: 0 0 0.35rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

.hootz-banner__message {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.hootz-banner__form {
    display: flex;
    gap: 0.5rem;
}

.hootz-banner__input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 0.5rem;
    padding: 0.65rem 0.75rem;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
}

.hootz-banner__button {
    border: 0;
    border-radius: 0.5rem;
    padding: 0.65rem 1rem;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.hootz-banner__button--full {
    width: 100%;
}

.hootz-banner__button--link {
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.hootz-banner__text-link {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 640px) {
    .hootz-banner {
        left: 0.75rem !important;
        right: 0.75rem !important;
        width: auto;
    }

    .hootz-banner__form {
        flex-direction: column;
    }
}
