:root {
    --bg-start: #0f172a;
    --bg-end: #1e293b;
    --accent-primary: #7c3aed;
    --accent-secondary: #22d3ee;
    --card-bg: rgba(15, 23, 42, 0.72);
    --text-main: #f8fafc;
    --text-subtle: #cbd5e1;
    --glow: 0 0 25px rgba(124, 58, 237, 0.45);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top left, #312e81 0%, #0f172a 45%, #020617 100%);
    color: var(--text-main);
}

.header {
    height: 78px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(34, 211, 238, 0.85));
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 22px rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(6px);
}

.header h1 {
    font-size: clamp(18px, 4vw, 34px);
    font-weight: 800;
    letter-spacing: 1.5px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.hero {
    min-height: calc(100vh - 78px);
    background-image: linear-gradient(rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.8)), url("imgs/background.png");
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 44px 20px 36px;
}

.hero-btn {
    display: flex;
    gap: clamp(12px, 4vw, 48px);
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.sec {
    width: min(220px, 100%);
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sec:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.65);
    box-shadow: var(--glow);
}

.sec h2 {
    font-size: clamp(15px, 3vw, 22px);
    letter-spacing: 1px;
    color: var(--text-subtle);
}

.img {
    height: clamp(115px, 22vw, 180px);
    width: clamp(115px, 22vw, 180px);
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.img:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 26px rgba(34, 211, 238, 0.45);
    border-color: rgba(34, 211, 238, 0.9);
    cursor: pointer;
}

.rockimg {
    background-image: url("imgs/rock.png");
}

.paperimg {
    background-image: url("imgs/paper.png");
}

.scissorimg {
    background-image: url("imgs/scissor.png");
}

.score-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(20px, 9vw, 140px);
}

.score {
    min-height: 110px;
    width: min(190px, 44vw);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.5);
}

.score h1 {
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1;
}

.score h2 {
    font-size: clamp(14px, 2.5vw, 22px);
    color: var(--text-subtle);
    font-weight: 600;
}

.heroText {
    display: flex;
    justify-content: center;
}

.textBox {
    min-height: 68px;
    max-width: 94%;
    width: 580px;
    padding: 12px 20px;
    background: linear-gradient(130deg, rgba(124, 58, 237, 0.88), rgba(34, 211, 238, 0.86));
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--glow);
}

.textBox h2 {
    font-size: clamp(17px, 3vw, 28px);
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

@media (max-width: 600px) {
    .hero {
        gap: 26px;
        padding-top: 26px;
    }

    .hero-btn {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .sec {
        width: min(280px, 92%);
    }

    .score-hero {
        gap: 14px;
    }

    .score {
        width: min(160px, 45vw);
    }
}
