@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&display=swap');

@font-face {
    font-family: 'Tovari Sans';
    src: url('./fonts/tovari-sans.woff?v=cyrillic') format('woff'),
        url('./fonts/tovari-sans.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-blue: #6593CB;
    --primary-orange: #EE722D;
    --card-bg-blue: #D4E3F6;
    --card-border-blue: #B5CEF1;
    --bg-color: #F4F6FA;
    --dot-color: #DDE3EC;
    --text-color: #2C2C2C;
    --btn-light-blue: #B6CBE9;
}

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

body {
    font-family: 'Tovari Sans', 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: radial-gradient(var(--dot-color) 2px, transparent 2px);
    background-size: 30px 30px;
    background-position: 0 0;

    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 480px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header */
header {
    background-color: var(--primary-blue);
    border-radius: 20px;
    padding: 0 20px;
    /* Removed top/bottom padding */
    height: 70px;
    /* Fixed height to match design proportions */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* To ensure logo clips nicely if needed */
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 120%;
    /* Scale up slightly beyond container */
    margin-left: -10px;
    /* Pull left to match bleed effect in mock */
    display: block;
    object-fit: contain;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.icon-btn.info {
    background-color: rgba(255, 255, 255, 0.25);
    font-weight: 800;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}

/* Container Cards */
.card-wrapper {
    background-color: var(--card-bg-blue);
    border-radius: 20px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.filter-card-inner {
    background-color: white;
    border-radius: 12px;
    width: 100%;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Filter Toggles */
.card-title {
    font-size: 16px;
    font-weight: 900;
    color: #4A4A4A;
    text-transform: uppercase;
    text-align: center;
}

/* Filter Toggles */
.filter-toggle {
    display: flex;
    gap: 6px;
    background: transparent;
}

.filter-btn {
    border: none;
    background-color: var(--primary-blue);
    color: white;
    padding: 7px 10px;
    /* Reduced padding */
    border-radius: 8px;
    /* More square */
    font-family: inherit;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.filter-btn.active {
    background-color: var(--primary-orange);
}

.filter-btn:active {
    transform: scale(0.95);
}


/* Main Game Card inner */
.game-card-inner {
    background-color: white;
    border-radius: 15px;
    width: 100%;
    padding: 35px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.word-display {
    font-size: 40px;
    font-weight: 900;
    color: var(--text-color);
    text-transform: uppercase;
    margin-bottom: 30px;
    word-break: break-word;
    line-height: 1.1;
}

.main-controls {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.btn-primary {
    border: none;
    padding: 8px 10px;
    /* Reduced padding */
    border-radius: 8px;
    /* More square */
    font-family: inherit;
    font-weight: 900;
    font-size: 19px;
    color: white;
    cursor: pointer;
    transition: transform 0.1s;
    flex: 1;
    max-width: 180px;
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-blue {
    background-color: var(--primary-blue);
}

.btn-orange {
    background-color: var(--primary-orange);
}

/* Feedback */
.feedback-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
    text-align: center;
}

.feedback-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-secondary {
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    color: white;
    background-color: var(--btn-light-blue);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-secondary:active {
    transform: scale(0.95);
}

.btn-secondary.active,
.btn-secondary:hover {
    background-color: var(--primary-blue);
}

/* Support Section */
.support-section {
    background-color: var(--card-bg-blue);
    border-radius: 20px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.support-banner {
    background-color: var(--primary-blue);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    width: 100%;
}

.support-title {
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 4px;
}

.support-subtitle {
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 16px;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: white;
    color: var(--primary-orange);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 30px;
    transition: transform 0.1s;
}

.support-btn:active {
    transform: scale(0.95);
}

.support-btn img {
    height: 18px;
    width: 18px;
}

.brand-container {
    margin-top: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.brand-container img {
    max-height: 40px;
}