:root {
    --val-red: #ff4655;
    --val-dark: #0f1923;
    --val-dark-accent: #1f2731;
    --val-white: #ece8e1;
    --val-gray: #768089;
    --border-color: rgba(236, 232, 225, 0.5);
}

body {
    background-color: var(--val-dark);
    color: var(--val-white);
    font-family: 'Kanit', sans-serif;
    margin: 0;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

/* Background Grid & Overlay */
.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #0f1923 90%);
    z-index: 1;
    pointer-events: none;
}

/* Main Layout */
.main-container {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 90%;
    max-width: 600px;
    padding: 2rem;
    border: 1px solid rgba(255, 70, 85, 0.1);
    background: rgba(15, 25, 35, 0.85);
    backdrop-filter: blur(10px);
    /* Cut corners effect using simple borders or clip-path */
    clip-path: polygon(20px 0, 100% 0,
            100% calc(100% - 20px), calc(100% - 20px) 100%,
            0 100%, 0 20px);
}

/* Logo */
.valorant-logo {
    font-family: 'Anton', sans-serif;
    font-size: 4rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    color: var(--val-white);
    position: relative;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 70, 85, 0.5);
}

/* Form Inputs */
.control-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.input-group {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: center;
}

.input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.input-wrapper label {
    font-size: 0.8rem;
    color: var(--val-gray);
    margin-bottom: 0.3rem;
    font-weight: 600;
    letter-spacing: 1px;
}

input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--val-gray);
    padding: 12px 16px;
    color: var(--val-white);
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    width: 180px;
    /* Cut corner top-left and bottom-right */
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

input:focus {
    border-color: var(--val-white);
    background: rgba(255, 255, 255, 0.1);
}

input::placeholder {
    color: rgba(236, 232, 225, 0.3);
}

/* Button */
.roast-btn {
    position: relative;
    background: var(--val-red);
    color: var(--val-white);
    border: none;
    padding: 15px 40px;
    font-family: 'Anton', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    overflow: hidden;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: transform 0.2s;
    width: 100%;
    max-width: 250px;
}

.roast-btn:hover {
    transform: translateY(-2px);
    background: #ff5864;
}

.roast-btn:active {
    transform: translateY(1px);
}

/* Result Box */
.result-box {
    margin-top: 2.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--val-gray);
    min-height: 100px;
    padding: 20px;
    text-align: left;
    position: relative;
    transition: opacity 0.5s ease;
}

.result-box.hidden {
    opacity: 0;
    pointer-events: none;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--val-red);
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
    font-family: 'Kanit', sans-serif;
    letter-spacing: 1px;
    font-weight: 600;
}

.rec-dot {
    width: 8px;
    height: 8px;
    background-color: var(--val-red);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--val-red);
}

.result-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--val-white);
    word-wrap: break-word;
    word-break: normal;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

/* Floating Emojis used for "Funny" aspect */
.emoji-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.emoji {
    position: absolute;
    font-size: 4rem;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
}

.e1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.e2 {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
    font-size: 5rem;
}

.e3 {
    bottom: 15%;
    left: 20%;
    animation-delay: 2s;
}

.e4 {
    bottom: 25%;
    right: 10%;
    animation-delay: 3s;
    font-size: 3.5rem;
}

.e5 {
    top: 50%;
    left: 5%;
    animation-delay: 1.5s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(-20px) rotate(5deg) scale(1.1);
    }

    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }

    input {
        width: 100%;
        box-sizing: border-box;
    }

    .valorant-logo {
        font-size: 3rem;
    }
}