@font-face {
    font-family: "JetBrains Sans";
    src: url("fonts/JetBrainsSans-Regular.woff2");
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("fonts/JetBrainsMono-Regular.woff2");
}

:root {
    font-family: "JetBrains Sans", Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.87);
    background-color: #1a1a1a;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
}

header {
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(20, 20, 40, 0.85)),
        radial-gradient(ellipse at 20% 50%, rgba(255, 0, 100, 0.3), transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 150, 255, 0.3), transparent 50%),
        url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='blur'%3E%3CfeGaussianBlur stdDeviation='8'/%3E%3C/filter%3E%3Ccircle cx='40' cy='40' r='20' fill='%23ff0066' filter='url(%23blur)'/%3E%3Ccircle cx='160' cy='60' r='15' fill='%2300ffff' filter='url(%23blur)'/%3E%3Ccircle cx='100' cy='150' r='25' fill='%23ffff00' filter='url(%23blur)'/%3E%3Ccircle cx='180' cy='140' r='18' fill='%23ff6600' filter='url(%23blur)'/%3E%3Ccircle cx='20' cy='180' r='22' fill='%2300ff88' filter='url(%23blur)'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    pointer-events: none;
}

header h1 {
    margin: 0 0 20px 0;
    font-size: 36px;
    font-weight: 700;
    color: white;
    text-shadow:
        0 0 10px rgba(0, 200, 255, 0.8),
        0 0 20px rgba(255, 0, 100, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.tab-button {
    padding: 12px 35px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 200, 255, 0.3);
}

.tab-button.active {
    background: linear-gradient(135deg, #00ffff, #ff0066);
    color: white;
    border-color: transparent;
    font-weight: 700;
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.5),
        0 4px 15px rgba(255, 0, 100, 0.4);
}

#app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.venue-selector {
    margin-bottom: 30px;
}

.venue-selector label {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.venue-selector select {
    width: 100%;
    max-width: 400px;
    padding: 15px;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(25, 25, 28, 0.8);
    color: white;
    cursor: pointer;
    font-family: inherit;
}

.venue-selector select:focus {
    outline: none;
    border-color: #667eea;
}

.machines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.machine-card {
    background: rgba(25, 25, 28, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.machine-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.machine-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.machine-card h3 {
    margin: 10px 0 0 0;
    font-size: 18px;
    color: white;
}

.no-selection {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    padding: 40px;
}

.strategy-view {
    margin-top: 20px;
}

#back-button {
    margin-bottom: 20px;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(25, 25, 28, 0.8);
    color: white;
    cursor: pointer;
    font-family: inherit;
}

#back-button:hover {
    border-color: #667eea;
    background-color: rgba(102, 126, 234, 0.2);
}

#strategy-content {
    background: rgba(25, 25, 28, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    color: white;
}

#strategy-content h2 {
    color: #667eea;
    margin-top: 0;
}

#strategy-content ul {
    text-align: left;
    line-height: 1.8;
}

#strategy-content ul ul {
    margin-top: 8px;
    margin-bottom: 12px;
}

#strategy-content h3 {
    color: #00ffff;
    margin-top: 25px;
    margin-bottom: 15px;
}

.tip-with-image {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.tip-content {
    flex: 1;
}

.tip-image {
    width: 150px;
    height: auto;
    border-radius: 8px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.schedule-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.team-toggle {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.toggle-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    width: 150px;
}

.toggle-option:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
}

.toggle-option.active {
    opacity: 1;
    background: rgba(102, 126, 234, 0.2);
    border: 2px solid #667eea;
    transform: scale(1.05);
}

/* Custom Team Icons */
.team-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #222;
    transition: all 0.3s ease;
}

.toggle-option.active .team-icon {
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

/* Tilting Titans Icon */
.icon-titans {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
}

.icon-titans .crown {
    width: 40px;
    height: 30px;
    background: gold;
    clip-path: polygon(0% 100%, 100% 100%, 100% 30%, 80% 60%, 50% 0%, 20% 60%, 0% 30%);
    position: absolute;
    top: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.icon-titans .tilt-bar {
    width: 50px;
    height: 8px;
    background: #fff;
    position: absolute;
    bottom: 15px;
    transform: rotate(-15deg);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Danger Rangers Icon */
.icon-rangers {
    background: linear-gradient(45deg, #4b6cb7, #182848);
}

.icon-rangers .badge {
    width: 45px;
    height: 45px;
    background: #ff4b2b;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 2px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-rangers .bolt {
    width: 20px;
    height: 30px;
    background: #ffff00;
    clip-path: polygon(40% 0%, 100% 0%, 60% 45%, 90% 45%, 30% 100%, 50% 55%, 10% 55%);
    filter: drop-shadow(0 0 5px rgba(255,255,0,0.8));
}

.toggle-option span {
    font-weight: 700;
    font-size: 14px;
    color: white;
    text-transform: uppercase;
}

.team-schedule {
    background: rgba(25, 25, 28, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    width: 100%;
    max-width: 600px;
}

.team-schedule h2 {
    color: #667eea;
    margin: 0 0 10px 0;
    font-size: 24px;
}

.home-venue {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0 0 20px 0;
}

.schedule-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
}

.schedule-item .week-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.schedule-item .week {
    font-weight: 600;
    color: #667eea;
    font-size: 14px;
}

.schedule-item .date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.schedule-item .matchup {
    font-size: 16px;
    color: white;
    margin-top: 5px;
}

.schedule-item .home {
    color: #4caf50;
    font-weight: 600;
}

.schedule-item .away {
    color: #ff9800;
    font-weight: 600;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .tab-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .machines-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .machine-card {
        padding: 10px;
    }

    .machine-card img {
        height: 120px;
    }

    .machine-card h3 {
        font-size: 16px;
    }

    #strategy-content {
        padding: 20px;
    }

    .tip-with-image {
        flex-direction: column;
    }

    .tip-image {
        width: 100%;
        max-width: 250px;
    }
}
