html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    color: #f1dfc8;
}

html {
    background-color: #000 !important;
    background-image: url('/res/5d7950f6-eec7-4105-b1d5-3fd9a8226e65.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
}

body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

.floating-nut-hole {
    position: fixed;
    top: 0;
    right: 0;
    width: 50vw;
    height:70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.floating-nut-hole img {
    width: 70%;
    height: auto;
    display: block;
    opacity: 0.88;
}

.rust-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: radial-gradient(circle at 50% 40%, #2a1f14 0%, #120d08 60%, #000 100%);
    color: #e6d3b3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.rust-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.rust-loader-inner {
    text-align: center;
    font-family: "Courier New", monospace;
    letter-spacing: 2px;
}

.rust-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(230, 211, 179, 0.2);
    border-top: 4px solid #e6d3b3;
    border-radius: 50%;
    margin: 0 auto 16px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.rust-loader-text {
    opacity: 0.8;
    animation: flicker 2s infinite;
}

@keyframes flicker {
    0%, 100% {
        opacity: 0.8;
    }

    50% {
        opacity: 0.5;
    }
}

.layout-root {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 28px;
    padding: clamp(18px, 4vw, 36px);
    box-sizing: border-box;
}

.submit-panel {
   /* posiition:relative;
    width: min(85%,750px);
    margin: 0 auto;
    background: rgba(14, 10, 7, 0.76);
    border: 1px solid rgba(230, 211, 179, 0.22);
    border-radius: 18px;
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.35);
    padding: 18px;
    backdrop-filter: blur(5px);*/

}

.submit-copy {
    margin-bottom: 12px;
    text-align: center;
}

.submit-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #f0d7a7;
    margin-bottom: 6px;
}

.submit-instruction {
    font-size: 14px;
    line-height: 1.45;
    color: rgba(241, 223, 200, 0.9);
}

.submit-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: stretch;
}

#subdomainInput {
    width: 100%;
    min-width: 0;
    border-radius: 10px;
    border: 1px solid rgba(230, 211, 179, 0.18);
    background: rgba(0, 0, 0, 0.35);
    color: #f0f0f0;/*#f1dfc8;*/
    padding: 14px 16px;
    font-size: 16px;
    outline: none;
    text-align: center;
    font-weight:bolder;
}

#subdomainInput::placeholder {
    color: rgba(241, 223, 200, 0.55);
}

#submitButton {
    border: 0;
    border-radius: 10px;
    background: #d48d2a;
    color: #1f1308;
    font-weight: bold;
    padding: 0 18px;
    cursor: pointer;
    min-height: 48px;
}

#submitButton:disabled {
    opacity: 0.7;
    cursor: wait;
}

.submit-message {
    min-height: 20px;
    margin-top: 12px;
    font-size: 13px;
    color: #f0d7a7;
    text-align: center;
}

.center-stack,.submit-panel {
    posiiton:relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

.word-cloud {
    position: relative;
    width:100%;
    height:100%;
    /*width: min(920px, 100%);
    height: min(34vh, 300px);*/
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(230, 211, 179, 0.16);
    background: radial-gradient(circle at 20% 20%, rgba(212, 141, 42, 0.14), transparent 28%), radial-gradient(circle at 80% 75%, rgba(255, 255, 255, 0.05), transparent 24%), rgba(0, 0, 0, 0.28);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.dashboard {
    width: min(760px, 94vw);
    background: rgba(14, 10, 7, 0.82);
    border: 1px solid rgba(230, 211, 179, 0.22);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    border-radius: 18px;
    padding: 22px;
    backdrop-filter: blur(5px);
}

.dashboard-title {
    margin: 0 0 18px 0;
    font-size: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

.stats-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat {
    border: 1px solid rgba(230, 211, 179, 0.16);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 34px;
    font-weight: bold;
    line-height: 1;
}

.cloud-word {
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    font-weight: 700;
    user-select: none;
    text-shadow: 0 0 12px rgba(0, 0, 0, .35);
    transition: opacity 0.6s ease, filter 0.6s ease, font-size 0.4s ease, color 0.4s ease;
    opacity: 1;
    will-change: transform, opacity;
    cursor: pointer;
}

@media (orientation: portrait), (max-width: 640px) {
    html {
        background-position: left top;
    }

    .floating-nut-hole {
        width: 65vw;
        height: 30vh;
        justify-content: flex-end;
        align-items: flex-start;
    }

    .floating-nut-hole img {
        width: 82%;
        opacity: 0.72;
    }

    .layout-root {
        grid-template-rows: auto auto;
        gap: 20px;
        padding: 16px;
    }

    .center-stack {
        justify-content: flex-start;
    }

    .submit-panel,
    .word-cloud,
    .dashboard {
        width: 100%;
    }

    .submit-copy {
        text-align: left;
    }

    .submit-row {
        grid-template-columns: 1fr;
    }

    .dashboard {
        padding: 16px;
    }

    .stats-box {
        grid-template-columns: 1fr;
    }

    #submitButton {
        min-height: 46px;
    }

    .word-cloud {
        height: 240px;
    }
}
