﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --orange: #FF7A00;
    --orange-light: #FF9933;
    --orange-glow: rgba(255,122,0,0.25);
    --green: #3CAB5A;
    --green-light: #E8F7ED;
    --yellow: #FFF3CD;
    --bg: #DCE9F5;
    --white: #FFFFFF;
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-400: #ADB5BD;
    --gray-600: #6C757D;
    --gray-800: #343A40;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);
    --radius: 14px;
    --font-display: 'Nunito',sans-serif;
    --font-body: 'Inter',sans-serif;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--gray-800);
    overflow-x: hidden
}

/* NAV */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm)
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 1.5rem;
    height: 60px
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0
}

.nav-logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.13);
    padding: 3px;
    flex-shrink: 0
}

    .nav-logo-icon svg {
        width: 36px;
        height: 36px
    }

.nav-logo-text {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--gray-800);
    letter-spacing: -0.3px;
    line-height: 1
}

    .nav-logo-text .logo-the {
        color: #5A6A7A;
        font-weight: 700;
        font-size: .95rem
    }

    .nav-logo-text .logo-name {
        color: #E5292A
    }

    .nav-logo-text .logo-dot {
        color: #5A6A7A;
        font-weight: 700;
        font-size: .85rem
    }

.nav-links {
    display: flex;
    gap: .2rem;
    align-items: center;
    flex: 1
}

    .nav-links a {
        font-size: .875rem;
        font-weight: 600;
        color: var(--gray-600);
        text-decoration: none;
        padding: .4rem .75rem;
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 4px;
        transition: background .15s,color .15s
    }

        .nav-links a:hover {
            background: var(--gray-100);
            color: var(--gray-800)
        }

.nav-dropdown {
    position: relative
}

.nav-drop-trigger {
    font-size: .875rem;
    font-weight: 600;
    color: var(--gray-600);
    text-decoration: none;
    padding: .4rem .75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background .15s,color .15s;
    cursor: pointer;
    white-space: nowrap
}

    .nav-drop-trigger:hover, .nav-dropdown.open .nav-drop-trigger {
        background: var(--gray-100);
        color: var(--gray-800)
    }

.nav-drop-menu {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 8px 0;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .18s,transform .18s
}

    .nav-drop-menu::before {
        content: '';
        position: absolute;
        top: -10px;
        left: 0;
        width: 100%;
        height: 12px;
        background: transparent
    }

.nav-dropdown.open .nav-drop-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0)
}

.drop-section-label {
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--gray-400);
    padding: 8px 14px 4px
}

.drop-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    font-size: .85rem;
    font-weight: 600;
    color: #495057;
    text-decoration: none;
    transition: background .12s,color .12s
}

    .drop-item:hover {
        background: #FFF5EE;
        color: var(--orange)
    }

    .drop-item.active-drop {
        color: var(--orange);
        background: #FFF3E0
    }

.nav-profile {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--gray-600);
    border: none;
    transition: background .15s
}

    .nav-profile:hover {
        background: var(--gray-100)
    }

/* BREADCRUMB */
.breadcrumb {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: .5rem 0
}

.breadcrumb-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: var(--gray-600)
}

    .breadcrumb-inner a {
        color: #4A90D9;
        text-decoration: none;
        font-weight: 500
    }

        .breadcrumb-inner a:hover {
            text-decoration: underline
        }

.breadcrumb-sep {
    color: var(--gray-400)
}

.breadcrumb-current {
    color: var(--gray-800);
    font-weight: 600
}

/* HERO */
.hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    align-items: start
}

/* WHEEL SECTION */
.wheel-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative
}

.wheel-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: .25rem
}

.wheel-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--gray-800)
}

.wheel-subtitle {
    color: var(--gray-600);
    font-size: .9rem;
    margin-bottom: .5rem
}

.edit-btn {
    width: 28px;
    height: 28px;
    background: #EEF2FF;
    border: none;
    border-radius: 6px;
    color: #5C6BC0;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center
}

/* MODE TABS */
.mode-row {
    display: flex;
    gap: 6px;
    margin-bottom: .25rem
}

.mode-tab {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid var(--gray-200);
    color: var(--gray-600);
    background: var(--white);
    transition: all .2s
}

    .mode-tab.active {
        background: var(--orange);
        color: #fff;
        border-color: var(--orange)
    }

/* FLOATING ACTIONS */
.floating-actions {
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10
}

.float-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 600;
    color: #495057;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s,transform .2s;
    white-space: nowrap
}

    .float-btn:hover {
        box-shadow: var(--shadow-md);
        transform: translateX(-2px)
    }

.float-icon {
    font-size: 16px
}

/* WHEEL CANVAS */
.wheel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 80px
}

.wheel-pointer {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 36px;
    z-index: 20;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3))
}

canvas#wheelCanvas {
    border-radius: 50%;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18),0 0 0 6px white,0 0 0 8px var(--gray-200);
    cursor: pointer;
    transition: filter .2s
}

    canvas#wheelCanvas:hover {
        filter: brightness(1.04)
    }

/* SPIN CONTROLS */
.wheel-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: 80px
}

.btn-spin {
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 40px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    letter-spacing: 1px;
    box-shadow: 0 4px 16px var(--orange-glow);
    transition: transform .15s,box-shadow .15s,background .15s
}

    .btn-spin:hover {
        transform: scale(1.06);
        box-shadow: 0 6px 24px rgba(255,122,0,0.45),0 0 0 6px var(--orange-glow);
        background: var(--orange-light)
    }

    .btn-spin:active {
        transform: scale(0.97)
    }

.btn-secondary {
    background: var(--white);
    color: var(--gray-800);
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    padding: 12px 20px;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background .15s,box-shadow .15s,transform .15s;
    box-shadow: var(--shadow-sm)
}

    .btn-secondary:hover {
        background: var(--gray-100);
        transform: translateY(-1px);
        box-shadow: var(--shadow-md)
    }

/* CONTROL PANEL */
.control-panel {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    overflow: hidden
}

.panel-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
    padding: 0 1rem;
    gap: 0;
    position: relative
}

.panel-tab {
    background: none;
    border: none;
    padding: .9rem 1rem;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .15s
}

    .panel-tab.active {
        color: var(--orange);
        border-bottom-color: var(--orange)
    }

.panel-tab-actions {
    margin-left: auto;
    display: flex;
    gap: 4px;
    align-items: center
}

.icon-btn {
    width: 30px;
    height: 30px;
    background: var(--gray-100);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: background .15s
}

    .icon-btn:hover {
        background: var(--gray-200)
    }

.panel-body {
    padding: 1rem
}

.tab-content {
    display: none
}

    .tab-content.active {
        display: block
    }

/* ENTRIES */
.entries-count {
    display: inline-block;
    background: var(--gray-100);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: .78rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 12px
}

.entries-search-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px
}

.entries-search {
    flex: 1;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: .85rem;
    color: var(--gray-800);
    outline: none;
    transition: border-color .15s
}

    .entries-search:focus {
        border-color: var(--orange)
    }

.btn-add {
    background: var(--green);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background .15s,transform .15s
}

    .btn-add:hover {
        background: #2E9449;
        transform: scale(1.04)
    }

.team-list {
    max-height: 340px;
    overflow-y: auto;
    margin-bottom: 10px
}

    .team-list::-webkit-scrollbar {
        width: 4px
    }

    .team-list::-webkit-scrollbar-thumb {
        background: var(--gray-200);
        border-radius: 4px
    }

.team-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 4px;
    border-bottom: 1px solid var(--gray-100);
    transition: background .1s;
    border-radius: 6px
}

    .team-item:hover {
        background: var(--gray-50)
    }

    .team-item.highlighted {
        background: #FFF3E0;
        border-left: 3px solid var(--orange)
    }

.drag-handle {
    color: var(--gray-400);
    cursor: grab;
    font-size: 13px;
    padding: 0 2px
}

.color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0
}

.team-flag-thumb {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--gray-100);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.team-name-text {
    flex: 1;
    font-size: .875rem;
    font-weight: 600
}

.team-group-badge {
    font-size: .7rem;
    font-weight: 700;
    color: var(--gray-400);
    background: var(--gray-100);
    border-radius: 4px;
    padding: 2px 6px
}

.team-actions {
    display: flex;
    gap: 4px
}

.team-action-btn {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: var(--gray-400);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .1s,background .1s
}

    .team-action-btn:hover {
        background: var(--gray-100);
        color: var(--gray-800)
    }

    .team-action-btn.del:hover {
        color: #DC3545;
        background: #FFF5F5
    }

.entries-footer {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid var(--gray-100)
}

.btn-sm {
    background: var(--gray-100);
    border: none;
    border-radius: 7px;
    padding: 6px 10px;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #495057;
    transition: background .15s
}

    .btn-sm:hover {
        background: var(--gray-200)
    }

    .btn-sm.danger:hover {
        background: #FFF5F5;
        color: #DC3545
    }

/* RESULTS TAB */
.results-empty {
    text-align: center;
    padding: 2rem;
    color: var(--gray-400)
}

.result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--gray-100);
    border-radius: 8px;
    margin-bottom: 6px
}

.result-medal {
    font-size: 18px
}

.result-name {
    font-weight: 700;
    font-size: .9rem;
    flex: 1
}

.result-time {
    font-size: .75rem;
    color: var(--gray-400)
}

/* SETTINGS */
.settings-group {
    margin-bottom: 1.2rem
}

.settings-label {
    font-size: .8rem;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: .6rem
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px
}

.setting-name {
    font-size: .85rem;
    color: var(--gray-800)
}

.toggle {
    position: relative;
    width: 36px;
    height: 20px;
    background: var(--gray-200);
    border-radius: 20px;
    cursor: pointer;
    border: none;
    transition: background .2s
}

    .toggle.on {
        background: var(--orange)
    }

    .toggle::after {
        content: '';
        position: absolute;
        top: 2px;
        left: 2px;
        width: 16px;
        height: 16px;
        background: white;
        border-radius: 50%;
        transition: transform .2s;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2)
    }

    .toggle.on::after {
        transform: translateX(16px)
    }

input[type=range] {
    accent-color: var(--orange);
    width: 100px
}

/* FEATURE CARDS */
.features {
    max-width: 1280px;
    margin: .5rem auto 0;
    padding: 0 1.5rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1rem
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.2rem;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: box-shadow .2s,transform .2s
}

    .feature-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px)
    }

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px
}

.fi-purple {
    background: #F3E8FF
}

.fi-green {
    background: var(--green-light)
}

.fi-orange {
    background: #FFF3E0
}

.fi-blue {
    background: #E8F4FF
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 800;
    margin-bottom: 4px
}

.feature-card p {
    font-size: .82rem;
    color: var(--gray-600);
    line-height: 1.5
}

.fc-purple h3 {
    color: #7C3AED
}

.fc-green h3 {
    color: var(--green)
}

.fc-orange h3 {
    color: var(--orange)
}

.fc-blue h3 {
    color: #2563EB
}

/* SECTION SHARED */
.section-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--gray-800);
    margin-bottom: .4rem
}

.section-sub {
    color: var(--gray-600);
    font-size: .9rem;
    margin-bottom: 1.5rem
}

/* TEAMS INCLUDED */
.section-teams-included {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200)
}

.ti-header {
    text-align: center;
    margin-bottom: 1.5rem
}

.ti-badge {
    display: inline-block;
    background: #E8F4FF;
    color: #2563EB;
    border-radius: 20px;
    padding: 4px 16px;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: .6rem
}

.ti-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gray-800);
    margin-bottom: .3rem
}

.ti-sub {
    color: var(--gray-600);
    font-size: .88rem
}

.ti-filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.2rem
}

.ti-filter {
    background: var(--gray-100);
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--gray-600);
    transition: all .2s
}

    .ti-filter.active, .ti-filter:hover {
        background: var(--orange);
        color: #fff
    }

.ti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(130px,1fr));
    gap: 12px;
    margin-bottom: 1.2rem
}

.ti-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: .8rem .5rem;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    position: relative;
    overflow: hidden
}

    .ti-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
        border-color: var(--orange)
    }

    .ti-card.highlighted {
        background: #FFF3E0;
        border-color: var(--orange)
    }

    .ti-card.hidden-card {
        opacity: .4
    }

.ti-flag {
    font-size: 2rem;
    margin-bottom: 4px
}

.ti-name {
    font-size: .78rem;
    font-weight: 700;
    color: var(--gray-800)
}

.ti-conf {
    font-size: .68rem;
    color: var(--gray-400)
}

.ti-color-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px
}

.ti-spin-hint {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: .6rem;
    background: var(--orange);
    color: #fff;
    border-radius: 4px;
    padding: 1px 4px;
    opacity: 0;
    transition: opacity .2s
}

.ti-card:hover .ti-spin-hint {
    opacity: 1
}

.ti-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    flex-wrap: wrap;
    gap: 10px
}

.ti-footer-info {
    font-size: .82rem;
    color: var(--gray-600)
}

.ti-add-btn {
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s
}

    .ti-add-btn:hover {
        background: var(--orange-light)
    }

/* EDU */
.section-edu {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200)
}

.edu-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px
}

.edu-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 12px
}

.edu-icon {
    font-size: 1.6rem;
    flex-shrink: 0
}

.edu-card strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: .9rem;
    margin-bottom: 2px
}

.edu-card span {
    font-size: .8rem;
    color: var(--gray-600)
}

/* HOW TO */
.section-howto {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200)
}

.howto-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1.5rem;
    position: relative
}

.howto-step {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem 1.2rem;
    position: relative;
    text-align: center
}

.howto-num {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: var(--orange);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: .85rem
}

.howto-icon {
    font-size: 2rem;
    margin-bottom: .5rem
}

.howto-step h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: .95rem;
    margin-bottom: .5rem
}

.howto-step p {
    font-size: .82rem;
    color: var(--gray-600);
    line-height: 1.5
}

.howto-arrow {
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--orange);
    z-index: 1
}

/* CATEGORIES */
.section-cats {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200)
}

.cats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1rem
}

.cat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.2rem;
    cursor: pointer;
    transition: all .2s
}

    .cat-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
        border-color: var(--orange)
    }

.cat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: .8rem
}

.cat-emoji {
    font-size: 1.5rem
}

.cat-header h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: .95rem
}

.cat-animals {
    display: flex;
    flex-wrap: wrap;
    gap: 4px
}

.cat-pill {
    background: var(--gray-100);
    border-radius: 20px;
    padding: 3px 8px;
    font-size: .75rem;
    font-weight: 600;
    color: #495057
}

/* WHO USES */
.section-whouses {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200)
}

.whouses-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1rem
}

.whouses-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.2rem
}

.whouses-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px
}

.whouses-card h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: .95rem;
    margin-bottom: 4px
}

.whouses-card p {
    font-size: .82rem;
    color: var(--gray-600);
    line-height: 1.5
}

/* RELATED */
.section-related {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200)
}

.related-scroll {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.related-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    min-width: 110px
}

    .related-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
        border-color: var(--orange)
    }

.related-emoji {
    font-size: 2rem;
    margin-bottom: .4rem
}

.related-card h4 {
    font-family: var(--font-display);
    font-size: .85rem;
    font-weight: 800;
    color: var(--gray-800)
}

/* SEO */
.section-seo {
    background: var(--white);
    border-top: 1px solid var(--gray-200)
}

.seo-content {
    max-width: 860px
}

    .seo-content h1 {
        font-family: var(--font-display);
        font-size: 1.5rem;
        font-weight: 900;
        margin-bottom: .8rem;
        color: var(--gray-800)
    }

    .seo-content h2 {
        font-family: var(--font-display);
        font-size: 1.1rem;
        font-weight: 800;
        margin: 1.5rem 0 .5rem;
        color: var(--gray-800)
    }

    .seo-content p {
        font-size: .9rem;
        color: var(--gray-600);
        line-height: 1.7;
        margin-bottom: .6rem
    }

    .seo-content ul {
        padding-left: 1.5rem;
        margin-bottom: .6rem
    }

    .seo-content li {
        font-size: .9rem;
        color: var(--gray-600);
        line-height: 1.7
    }

.faq-item {
    border-bottom: 1px solid var(--gray-200)
}

.faq-q {
    width: 100%;
    background: none;
    border: none;
    padding: 1rem 0;
    font-size: .9rem;
    font-weight: 700;
    color: var(--gray-800);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left
}

.faq-a {
    padding: 0 0 1rem;
    color: var(--gray-600);
    font-size: .9rem;
    line-height: 1.7;
    display: none
}

    .faq-a.open {
        display: block
    }

.faq-arrow {
    transition: transform .2s
}

    .faq-arrow.open {
        transform: rotate(180deg)
    }

/* FOOTER */
footer {
    background: var(--gray-800);
    color: #9CA3AF;
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: .82rem
}

    footer a {
        color: var(--orange);
        text-decoration: none
    }

/* WINNER MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px)
}

    .modal-overlay.show {
        display: flex
    }

.modal-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: modalPop .35s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
    overflow: hidden
}

@keyframes modalPop {
    from {
        transform: scale(0.7);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.winner-trophy {
    font-size: 2.5rem;
    margin-bottom: .5rem
}

.winner-label {
    font-size: .8rem;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: .5rem
}

.winner-team-flag {
    font-size: 5rem;
    margin: .5rem 0;
    animation: bounce .6s ease
}

@keyframes bounce {
    0%,100% {
        transform: translateY(0)
    }

    40% {
        transform: translateY(-15px)
    }

    60% {
        transform: translateY(-8px)
    }
}

.winner-group-label {
    font-size: .78rem;
    background: var(--gray-100);
    display: inline-block;
    border-radius: 20px;
    padding: 3px 12px;
    color: var(--gray-600);
    font-weight: 600;
    margin-bottom: .4rem
}

.winner-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--gray-800);
    margin-bottom: 1.5rem
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap
}

    .modal-actions .btn-spin {
        padding: 11px 24px;
        font-size: .9rem
    }

.btn-outline {
    background: none;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    padding: 10px 20px;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
    color: #495057;
    transition: background .15s
}

    .btn-outline:hover {
        background: var(--gray-100)
    }

/* CONFETTI */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999
}

/* FULLSCREEN CONTAINER */
#wheelFullscreenTarget {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

    /* Fullscreen active styles */
    #wheelFullscreenTarget:fullscreen,
    #wheelFullscreenTarget:-webkit-full-screen,
    #wheelFullscreenTarget:-moz-full-screen,
    #wheelFullscreenTarget:-ms-fullscreen {
        background: var(--bg);
        width: 100vw;
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
    }

        /* Canvas fills most of screen in fullscreen */
        #wheelFullscreenTarget:fullscreen canvas#wheelCanvas,
        #wheelFullscreenTarget:-webkit-full-screen canvas#wheelCanvas {
            width: 80vmin !important;
            height: 80vmin !important;
        }

/* FS spin controls */
#fsControls {
    display: none;
    gap: 12px;
    justify-content: center;
    align-items: center
}

#wheelFullscreenTarget:fullscreen #fsControls,
#wheelFullscreenTarget:-webkit-full-screen #fsControls {
    display: flex !important
}

/* Modal switches to absolute inside fullscreen */
#wheelFullscreenTarget:fullscreen .modal-overlay,
#wheelFullscreenTarget:-webkit-full-screen .modal-overlay,
#wheelFullscreenTarget:-moz-full-screen .modal-overlay,
#wheelFullscreenTarget:-ms-fullscreen .modal-overlay {
    position: absolute;
    inset: 0;
    z-index: 200
}

/* Confetti fills FS container in fullscreen */
#wheelFullscreenTarget:fullscreen #confetti-canvas,
#wheelFullscreenTarget:-webkit-full-screen #confetti-canvas,
#wheelFullscreenTarget:-moz-full-screen #confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 150;
}

/* RESPONSIVE */
@media(max-width:1024px) {
    .hero {
        grid-template-columns: 1fr
    }

    .features {
        grid-template-columns: repeat(2,1fr)
    }

    .cats-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .edu-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .whouses-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .howto-grid {
        grid-template-columns: repeat(2,1fr)
    }
}

@media(max-width:768px) {
    .nav-links {
        display: none
    }

    .features {
        grid-template-columns: 1fr
    }

    .cats-grid {
        grid-template-columns: repeat(2,1fr)
    }

    .wheel-wrapper {
        margin-left: 0
    }

    .wheel-controls {
        margin-left: 0
    }

    .floating-actions {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center
    }
}


