* {
    box-sizing: border-box;
    margin: 0;
    font-family: Arial, sans-serif;
}

body {
    background: white;
}

.header {
    background: #d32f2f;
    color: white;
    min-height: 60px;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 24px;
    gap: 25px;
}

.logo {
    display: block;
    flex-shrink: 0;
    height: 40px;
}

.logo img {
    display: block;
    height: 100%;
}

.container {
    padding: 40px;
    display: flex;
    justify-content: center;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 900px;
}

.tile {
    width: 220px;
    max-width: 100%;
    height: 180px;
    background: #e5e5e5;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s ease;
}

.tile:hover {
    background: white;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    border-color: #bdbdbd;
}

.tile-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
}

.tile-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.tile:hover .tile-icon {
    transform: scale(1.15);
}

.error {
    max-width: 600px;
    text-align: center;
}

.error h1 {
    color: #d32f2f;
    font-size: 48px;
    margin-bottom: 16px;
}

.error p {
    line-height: 1.5;
    margin-bottom: 24px;
}

.home-link {
    display: inline-block;
    padding: 12px 20px;
    background: #d32f2f;
    color: white;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
}

.home-link:hover {
    background: #b71c1c;
}

@media (max-width: 400px) {
    .header {
        font-size: 18px;
        gap: 15px;
    }

    .container {
        padding: 30px 20px;
    }

    .tiles {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}
