:root{
    --bg: #ffffff;
    --muted: #6b7280;
    --accent: #111827;
    --card-bg: #fff;
    --shadow: 0 10px 22px rgba(15,23,42,0.08);
}

/* Reset / layout */
*{box-sizing:border-box}
html,body{height:100%}
body{
    margin:0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background:var(--bg);
    color:var(--accent);
    display:flex;
    flex-direction:column;
    min-height:100vh;
}

/* Title Bar: single centered bar */
.title-bar{
    width:100%;
    text-align:center;
    padding:14px 12px;
    border-bottom:1px solid #eee;
    background:linear-gradient(180deg,#ffffff,#fbfdff);
    box-shadow: 0 1px 0 rgba(0,0,0,0.02);
    position:sticky;
    top:0;
    z-index:30;
}
.title-bar h1{
    margin:0;
    font-size:1.05rem;
    font-weight:700;
    letter-spacing:0.02em;
}

/* Main content */
main{flex:1;padding:16px;display:flex;align-items:flex-start;justify-content:center}

/* Grid: 2 columns default, 3 on tablet, 4 on wide */
.menu-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:14px;
    width:100%;
    max-width:1100px;
    padding:8px;
}

/* Card style */
.menu-card{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
    background:transparent; /* Changed to transparent */
    border-radius:14px;
    padding:14px 8px;
    box-shadow:var(--shadow);
    border: none;
    cursor:pointer;
    transition: transform .16s ease, box-shadow .16s ease;
    min-height: 120px;
    justify-content:center;
    user-select:none;
    outline:none;
}
.menu-card:hover,
.menu-card:focus{
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(12,17,30,0.12);
}

/* Circular image (exact 18mm diameter) */
.menu-img{
    width:18mm;
    height:18mm;
    min-width:18mm;
    min-height:18mm;
    border-radius:50%;
    object-fit:cover;
    display:block;
    box-shadow: 0 8px 20px rgba(15,23,42,0.08);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.04);
}

/* label text */
.menu-text{
    font-weight:600;
    font-size:0.95rem;
    color:var(--accent);
}

/* Sponsor carousel area: full width, ~15% of viewport height */
footer{
    width:100%;
}
.sponsor-carousel{
    width:100%;
    height:15vh; /* approx 15% of screen height */
    min-height:72px;
    max-height:160px;
    overflow:hidden;
    display:flex;
    align-items:center;
    background: #fafafa;
    border-top:1px solid #eee;
    -webkit-tap-highlight-color: transparent;
}
.sponsor-track{
    display:flex;
    align-items:center;
    gap:0; /* Removed gap between items */
    padding:0; /* Removed padding */
    width: fit-content; /* Allow track to expand to fit all items */
    will-change: transform;
    flex-wrap: nowrap; /* Ensure items stay in a single row */
}
.sponsor-item{
    height: calc(15vh - 28px); /* approximate within track padding */
    max-height:120px;
    width:100%; /* Make each item take full width of its container (carousel) */
    flex-shrink: 0; /* Prevent items from shrinking */
    object-fit:contain;
    user-select:none;
    -webkit-user-drag:none;
    opacity:0.95;
}

/* Responsive breakpoints */
@media(min-width:640px){
    .menu-grid{ grid-template-columns:repeat(2,1fr); }
}
@media(min-width:768px){
    .menu-grid{ grid-template-columns:repeat(3,1fr); }
}
@media(min-width:1024px){
    .menu-grid{ grid-template-columns:repeat(4,1fr); }
}

/* Admin page layout */
.admin-menu-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1100px;
}

.admin-back-button-container {
    text-align: center;
    margin-top: 24px;
    width: 100%;
}

/* Accessibility reduced motion */
@media (prefers-reduced-motion: reduce){
    *{transition:none !important; animation:none !important}
}