/* ============================================================
   RESET
============================================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {

    font-family: 'Inter', Arial, Helvetica, sans-serif;

    background:
        radial-gradient(circle at 12% -10%, rgba(66, 232, 140, 0.18) 0%, transparent 42%),
        radial-gradient(circle at 88% 0%, rgba(124, 92, 255, 0.16) 0%, transparent 40%),
        linear-gradient(180deg, #0e0e17 0%, #08080d 55%, #030304 100%);
    background-attachment: fixed;

    color: #f5f7fa;

    min-height: 100vh;

    padding-bottom: 60px;

}


h1, h2, h3, .logo {

    font-family: 'Space Grotesk', 'Inter', Arial, sans-serif;

}


/* ============================================================
   HEADER
============================================================ */

.header {

    height: 75px;

    display: flex;

    position: relative;

    align-items: center;

    justify-content: space-between;

    padding: 0 6%;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    background: rgba(6, 6, 10, 0.65);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

}


.logo {

    font-size: 25px;

    font-weight: 800;

    letter-spacing: -1px;

}


.logo span {

    background: linear-gradient(135deg, #ffffff 0%, #42e88c 55%, #2fd17c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

}


.header-right {

    display: flex;

    align-items: center;

    gap: 9px;

    color: #9aa3ac;

    font-size: 14px;

}


.online-dot {

    width: 9px;

    height: 9px;

    border-radius: 50%;

    background: #42e88c;

    box-shadow: 0 0 12px rgba(66, 232, 140, 0.8);

}


/* ============================================================
   HERO
============================================================ */

.hero {

    text-align: center;

    padding: 65px 20px 45px;

}


.badge {

    display: inline-block;

    padding: 8px 14px;

    border-radius: 30px;

    background: rgba(66, 232, 140, 0.1);

    border: 1px solid rgba(66, 232, 140, 0.25);

    color: #42e88c;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1px;

    margin-bottom: 20px;

}


.hero h1 {

    font-size: clamp(42px, 7vw, 76px);

    font-weight: 800;

    line-height: 1;

    letter-spacing: -3px;

    margin-bottom: 20px;

}


.hero h1 span {

    background: linear-gradient(135deg, #ffffff 0%, #42e88c 55%, #2fd17c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

}


.hero p {

    color: #9aa3ac;

    font-size: 17px;

}


/* ============================================================
   GAME CARD
============================================================ */

.game-card {

    width: min(1100px, calc(100% - 30px));

    margin: auto;

    padding: 30px;

    border-radius: 22px;

    background: rgba(255, 255, 255, 0.045);

    border: 1px solid rgba(255, 255, 255, 0.09);

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

}


/* ============================================================
   SEARCH
============================================================ */

.search-section {

    max-width: 700px;

    margin: 0 auto 25px;

}


.search-title {

    font-size: 15px;

    font-weight: 700;

    margin-bottom: 10px;

}


.search-container {

    position: relative;

}


.search-icon {

    position: absolute;

    left: 17px;

    top: 50%;

    transform: translateY(-50%);

    font-size: 18px;

    z-index: 2;

}


.search-box {

    width: 100%;

    height: 58px;

    padding: 0 20px 0 50px;

    border-radius: 14px;

    border: 1px solid rgba(255, 255, 255, 0.1);

    background: rgba(255, 255, 255, 0.05);

    color: #f5f7fa;

    outline: none;

    font-size: 16px;

    transition: border-color 0.2s ease, box-shadow 0.2s ease;

}


.search-box:focus {

    border-color: #42e88c;

    box-shadow: 0 0 0 3px rgba(66, 232, 140, 0.12);

}


.search-box::placeholder {

    color: #9aa3ac;

}


/* ============================================================
   DROPDOWN
============================================================ */

.dropdown {

    position: absolute;

    left: 0;

    right: 0;

    top: calc(100% + 7px);

    background: rgba(12, 13, 18, 0.92);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.09);

    border-radius: 16px;

    overflow: hidden;

    z-index: 100;

    display: none;

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);

}


.dropdown.show {

    display: block;

}


.dropdown-item {

    padding: 14px 18px;

    cursor: pointer;

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

    transition: background 0.15s ease;

}


.dropdown-item:hover {

    background: rgba(66, 232, 140, 0.1);

}


.player-dropdown-name {

    font-weight: 700;

    font-size: 15px;

}


.player-dropdown-info {

    color: #9aa3ac;

    font-size: 12px;

    margin-top: 4px;

}


.dropdown-empty {

    padding: 18px;

    color: #9aa3ac;

    text-align: center;

}


/* ============================================================
   GUESS BUTTON
============================================================ */

.guess-button {

    width: 100%;

    height: 54px;

    margin-top: 12px;

    border: none;

    border-radius: 14px;

    background: linear-gradient(135deg, #4df09b, #2fd17c);

    color: #04160d;

    font-size: 15px;

    font-weight: 800;

    cursor: pointer;

    box-shadow: 0 10px 30px rgba(66, 232, 140, 0.22);

    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;

}


.guess-button:hover:not(:disabled) {

    transform: translateY(-1px);

    box-shadow: 0 14px 40px rgba(66, 232, 140, 0.38);

}


.guess-button:disabled {

    opacity: 0.35;

    cursor: not-allowed;

}


/* ============================================================
   STATUS
============================================================ */

.api-status {

    text-align: center;

    color: #9aa3ac;

    font-size: 12px;

    margin-top: 12px;

}


.api-status.success {

    color: #42e88c;

}


.api-status.error {

    color: #ff6464;

}


/* ============================================================
   MESSAGE
============================================================ */

.message {

    min-height: 24px;

    text-align: center;

    font-weight: 700;

    margin: 20px 0;

}


.message.success {

    color: #42e88c;

}


.message.wrong {

    color: #ff6971;

}


/* ============================================================
   ANSWER
============================================================ */

.answer-card {

    padding: 25px;

    border-radius: 22px;

    background: rgba(255, 255, 255, 0.045);

    border: 1px solid rgba(255, 255, 255, 0.09);

    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);

    margin-bottom: 20px;

}


.answer-label {

    color: #9aa3ac;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 12px;

}


.answer-hidden {

    font-size: 28px;

    letter-spacing: 7px;

    color: #9aa3ac;

}


.answer-content {

    display: none;

    align-items: center;

    gap: 16px;

}


.answer-photo {

    width: 70px;

    height: 70px;

    object-fit: cover;

    border-radius: 50%;

}


.answer-name {

    font-size: 22px;

    font-weight: 800;

}


.answer-details {

    color: #9aa3ac;

    margin-top: 5px;

    font-size: 13px;

}


/* ============================================================
   GAME INFO
============================================================ */

.game-info {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 12px;

    margin-bottom: 25px;

}


.info-box {

    background: rgba(255, 255, 255, 0.045);

    border: 1px solid rgba(255, 255, 255, 0.09);

    border-radius: 16px;

    padding: 18px;

    text-align: center;

}


.info-label {

    color: #9aa3ac;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;

}


.info-value {

    font-size: 25px;

    font-weight: 800;

    margin-top: 5px;

}


/* ============================================================
   GUESSES
============================================================ */

.guesses {

    overflow-x: auto;

    margin-bottom: 30px;

}


.guess-header,
.guess-row {

    min-width: 850px;

    display: grid;

    grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr 1.3fr .7fr .7fr;

    gap: 8px;

    align-items: center;

}


.guess-header {

    color: #9aa3ac;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .7px;

    padding: 0 10px 10px;

}


.guess-row {

    padding: 14px 10px;

    background: rgba(255, 255, 255, 0.045);

    border: 1px solid rgba(255, 255, 255, 0.09);

    border-radius: 14px;

    margin-bottom: 7px;

    font-size: 13px;

    transition: background 0.15s ease;

}


.guess-player {

    font-weight: 700;

}


.correct {

    color: #42e88c;

    background: rgba(66, 232, 140, 0.09);

    padding: 8px;

    border-radius: 8px;

    text-align: center;

}


.wrong {

    color: #ff6c73;

    background: rgba(255, 108, 115, 0.08);

    padding: 8px;

    border-radius: 8px;

    text-align: center;

}


.neutral {

    color: #9aa3ac;

    text-align: center;

}


/* ============================================================
   TIPS
============================================================ */

.tips-section {

    border-top: 1px solid rgba(255, 255, 255, 0.07);

    padding-top: 25px;

}


.tips-title {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 15px;

}


.tips-title h2 {

    font-size: 18px;

}


.tip-button {

    border: none;

    background: linear-gradient(135deg, #4df09b, #2fd17c);

    color: #04160d;

    padding: 10px 15px;

    border-radius: 12px;

    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 10px 30px rgba(66, 232, 140, 0.22);

    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;

}


.tip-button:hover:not(:disabled) {

    transform: translateY(-1px);

    box-shadow: 0 14px 40px rgba(66, 232, 140, 0.38);

}


.tip-button:disabled {

    opacity: .4;

    cursor: not-allowed;

}


.tip-list {

    display: grid;

    gap: 8px;

}


.tip {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 15px;

    background: rgba(255, 255, 255, 0.045);

    border: 1px solid rgba(255, 255, 255, 0.09);

    border-radius: 16px;

}


.tip-label {

    font-size: 13px;

    font-weight: 700;

}


.tip-value {

    color: #9aa3ac;

    font-size: 13px;

}


/* ============================================================
   ACTIONS
============================================================ */

.bottom-actions {

    display: flex;

    gap: 12px;

    margin-top: 25px;

}


.action-button {

    flex: 1;

    height: 52px;

    border-radius: 14px;

    cursor: pointer;

    font-weight: 700;

    font-size: 14px;

    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;

}


.reveal {

    background: rgba(255, 255, 255, 0.05);

    border: 1px solid rgba(255, 255, 255, 0.12);

    color: #f5f7fa;

}


.reveal:hover {

    background: rgba(255, 255, 255, 0.09);

    border-color: rgba(255, 255, 255, 0.2);

}


.new-game {

    background: linear-gradient(135deg, #4df09b, #2fd17c);

    border: none;

    color: #04160d;

    box-shadow: 0 10px 30px rgba(66, 232, 140, 0.22);

}


.new-game:hover {

    box-shadow: 0 14px 40px rgba(66, 232, 140, 0.38);

}


.action-button:hover {

    transform: translateY(-1px);

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 700px) {

    .header {

        padding: 0 20px;

    }


    .header-right {

        font-size: 11px;

    }


    .hero {

        padding: 45px 15px 30px;

    }


    .hero h1 {

        letter-spacing: -2px;

    }


    .game-card {

        padding: 18px;

        border-radius: 18px;

    }


    .game-info {

        grid-template-columns: 1fr;

    }


    .bottom-actions {

        flex-direction: column;

    }

}

.Home {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #f5f7fa;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.Home:hover {
    color: #42e88c;
}
