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

html, body {
    font-family: 'Press Start 2P', cursive;
    background-color: #389c44; /* Same as grass color to prevent visible gaps */
    color: #FAFAFA;
    width: 100%;
    height: 100%;
    overflow: hidden;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: fixed; /* Fix position to prevent scrolling */
    background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.05) 25%, transparent 25%),
                      linear-gradient(-45deg, rgba(0, 0, 0, 0.05) 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.05) 75%),
                      linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.05) 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
}

#game-container {
    position: fixed;
    width: 100%; /* Full width */
    height: 100vh; /* Full height */
    overflow: hidden;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #389c44; /* Match grass color */
    background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.05) 25%, transparent 25%),
                      linear-gradient(-45deg, rgba(0, 0, 0, 0.05) 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.05) 75%),
                      linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.05) 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
}

/* Tilemap background with grid */
#tilemap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* 100% width to avoid black bars */
    height: 100vh; /* 100% height to avoid black bars */
    display: grid;
    grid-template-columns: repeat(auto-fill, 32px);
    grid-template-rows: repeat(auto-fill, 32px);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.25s;
    overflow: hidden;
    background-color: #389c44; /* Match grass color */
}

/* Tile styles */
.tile {
    width: 32px;
    height: 32px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hidden and revealed tile states for animation */
.hidden-tile {
    opacity: 0;
    transform: translateY(-20px);
}

.revealed-tile {
    opacity: 1;
    transform: translateY(0);
}

.grass {
    background-color: #389c44;
    position: relative;
    overflow: hidden;
}

.grass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.05) 25%, transparent 25%),
                      linear-gradient(-45deg, rgba(0, 0, 0, 0.05) 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.05) 75%),
                      linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.05) 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
    opacity: 0.5;
}

.tree {
    background-color: #389c44;
    position: relative;
    overflow: hidden;
}

/* Tree trunk */
.tree::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 10px;
    bottom: 2px;
    left: 13px;
    background-color: #6b4226;
    z-index: 1;
}

/* Tree foliage - layered for more dimension */
.tree::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    top: 2px;
    left: 4px;
    background-color: #1e5631;
    clip-path: polygon(50% 0%, 25% 40%, 10% 70%, 0% 100%, 100% 100%, 90% 70%, 75% 40%);
    box-shadow: inset 2px -2px 4px rgba(0, 0, 0, 0.2), 
                inset -2px -4px 4px rgba(255, 255, 255, 0.1);
}

/* Add texture and shading to trees */
.tree {
    position: relative;
}

.tree:nth-child(odd)::after {
    background-color: #1a4f2c; /* Slightly darker variation */
}

.tree:nth-child(3n)::after {
    transform: scaleX(-1); /* Flip some trees for variety */
}

.tree:nth-child(5n)::after {
    width: 22px; /* Slightly smaller */
    height: 22px;
    top: 3px;
    left: 5px;
}

/* Path styles */
.path {
    background-color: #b3894b;
    position: relative;
    overflow: hidden;
}

.path::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%),
                      linear-gradient(-45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%);
    background-size: 8px 8px;
    opacity: 0.4;
}

/* Content positioning */
#content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0; /* Added to ensure full width */
    width: 100%;
    height: 100vh;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align content at top */
    padding-top: 2vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 100px; /* Reduced to account for prompt at bottom */
    -webkit-overflow-scrolling: touch;
    margin: 0 auto; /* Center content */
}

/* World element shared styles */
.world-element {
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
    transition: transform 0.2s, opacity 0.25s;
    will-change: transform, opacity;
    transform: translateZ(0);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hidden {
    opacity: 0;
    transform: translateY(20px);
}

/* Title sign */
#title-sign {
    width: 95%;
    max-width: 550px;
    margin-bottom: 0.5rem; /* Further reduced bottom margin */
    margin-top: 1rem;
}

.title-text {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    font-size: 4rem;
    text-align: center;
    text-shadow: 0 0 12px rgba(94, 187, 255, 0.8), 0 0 24px rgba(94, 187, 255, 0.6),
                 0 0 30px rgba(94, 187, 255, 0.4), 0 0 40px rgba(94, 187, 255, 0.3);
    letter-spacing: 1px;
    padding: 1rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 800;
    text-transform: uppercase;
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    box-sizing: border-box;
    animation: title-pulse 3s infinite alternate;
}

.title-text:hover {
    text-shadow: 0 0 18px rgba(94, 187, 255, 0.9), 0 0 30px rgba(94, 187, 255, 0.7),
                 0 0 40px rgba(94, 187, 255, 0.5), 0 0 50px rgba(94, 187, 255, 0.4);
    transform: scale(1.03);
    letter-spacing: 2px;
}

.title-line {
    line-height: 1.05; /* Reduced by 25% from 1.4 */
    width: 100%;
    max-width: 100%;
    white-space: nowrap; /* Prevent line breaks within each title line */
    box-sizing: border-box;
    overflow-wrap: normal; /* Don't break words */
    word-wrap: normal; /* Don't break words */
    text-align: center;
    margin-bottom: 0.225rem; /* Reduced by 25% from 0.3rem */
}

.title-line.year {
    font-size: 0.6em;
    color: #FFD700;
    margin-bottom: 0.25rem; /* Reduced by 50% from 0.5rem */
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 25px rgba(255, 215, 0, 0.6);
}

.title-line:last-child {
    margin-top: 0.15rem; /* Reduced by 25% from 0.2rem */
    color: #4DE0FF;
    text-shadow: 0 0 15px rgba(77, 224, 255, 0.8), 0 0 25px rgba(77, 224, 255, 0.6);
}

/* Description & Hashtag signs */
#description-sign {
    margin-top: 0.45rem; /* Further reduced by ~25px (0.45rem ≈ 7px less than 1rem) */
    margin-bottom: 1.5rem; /* Slightly reduced */
}

#hashtag-sign {
    margin-bottom: 2.5rem;
}

.sign-board.description {
    font-size: 0.9rem;
    max-width: 400px;
    padding: 1rem;
}

.sign-board.hashtag {
    font-size: 1rem; /* Reduced from 1.2rem */
    padding: 0.7rem 1.3rem; /* Reduced padding */
    background-color: #000000;
    transition: all 0.15s ease;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    color: #FFFFFF; /* Changed to white text */
}

.sign-board.description {
    background-color: #8B4513;
    color: #FFD700;
    border: 4px solid #111;
    font-size: 0.9rem;
    max-width: 400px;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.sign-board {
    background-color: #8B4513;
    color: #FFD700;
    padding: 1.2rem 2rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    text-align: center;
    line-height: 1.3;
    border: 4px solid #111;
    font-size: 1.7rem;
    transition: transform 0.1s; /* Ultra-fast hover effect */
    width: 100%;
    max-width: 100%;
}

/* Sponsors section */
#sponsors-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem; /* Reduced from 2rem */
}

.section-label {
    color: #FFD700;
    padding: 0.8rem;
    margin-bottom: 1.2rem;
    min-width: 150px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    width: 100%;
    max-width: 100%;
    font-family: 'Montserrat', sans-serif;
}

/* Special styling for SPONSORED BY text */
#sponsors-section .section-label {
    animation: sponsorGlow 4s infinite alternate;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.7);
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: 100%;
    text-align: center;
    margin: 0 auto 1rem auto;
    font-weight: 800;
}

@keyframes sponsorGlow {
    0% {
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.7);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
        transform: scale(1.03);
    }
    100% {
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.7);
        transform: scale(1);
    }
}

.sponsors-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
}

.sponsor {
    width: 180px;
    height: 95px;
    background-color: #333;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #222;
    padding: 5px;
    transition: transform 0.1s, box-shadow 0.1s;
}

.sponsor:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Sponsor link styling */
.sponsor-link {
    text-decoration: none;
    display: block;
}

/* Bolt logo styling */
#bolt {
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

#bolt img {
    width: 95%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Make the logo white */
    padding: 0;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* CodeRabbit logo styling */
#coderabbit {
    background-color: white;
}

#coderabbit img {
    width: auto;
    height: auto;
    max-width: 160px;
    max-height: 75px;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Judges section */
#judges-section {
    margin-top: 0.5rem; /* Reduced from 1.5rem */
    margin-bottom: 2.5rem;
    width: 100%;
    text-align: center;
}

.judges-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 4rem;
    row-gap: 3.5rem; /* Increased from 2.5rem to provide more vertical space */
    margin-top: 1rem; /* Reduced from 1.5rem */
    max-width: 700px; /* Increased from 600px to accommodate larger images */
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Create two rows with flex layout */
.judges-container::after {
    content: '';
    width: 100%;
    order: 1;
    margin-bottom: -1.5rem;
}

/* First 3 judges in top row */
.judges-container .judge:nth-child(1),
.judges-container .judge:nth-child(2),
.judges-container .judge:nth-child(3) {
    order: 0;
}

/* Last 2 judges in bottom row, centered */
.judges-container .judge:nth-child(4),
.judges-container .judge:nth-child(5) {
    order: 2;
    margin-left: 2.5rem;
    margin-right: 2.5rem;
}

.judge {
    width: 119px; /* Increased by 40% from 85px */
    height: 119px; /* Increased by 40% from 85px */
    position: relative;
    transition: transform 0.1s;
    margin-bottom: 2.2rem;
    cursor: pointer;
}

.judge:hover {
    transform: scale(1.1);
}

.judge:hover img {
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
    /* The mask properties ensure the glow stays circular */
}

.judge img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FFD700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    transition: transform 0.1s, box-shadow 0.1s;
    overflow: hidden; /* Ensure glow doesn't exceed the circular shape */
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* Clip the glow to the circle */
    mask-image: radial-gradient(white, black); /* Modern browsers */
    position: relative;
    z-index: 1;
}

.judge-name {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: rgba(77, 224, 255, 0.9);
    background-color: rgba(10, 10, 10, 0.8);
    padding: 5px 10px;
    border-radius: 4px;
    opacity: 1;
    transition: opacity 0.2s;
    white-space: nowrap;
    z-index: 10; /* Added to ensure handles don't overlap visually */
}

.judge:hover {
    transform: scale(1.1);
}

/* Always show judge names */
.judge .judge-name {
    opacity: 1;
}

/* Style for judge name links to match original light blue color */
.judge-name a {
    color: rgba(77, 224, 255, 0.9);
    text-decoration: none;
}

/* Submit portal */
#submit-portal {
    margin-bottom: 5rem; /* Reduced bottom margin to account for prompt at bottom */
    margin-top: -1rem;
    z-index: 5;
}

.submit-link {
    text-decoration: none;
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.hashtag-link {
    text-decoration: none;
    display: block;
    margin: 0 auto;
}

.portal-element {
    padding: 1.2rem 2rem;
    background-color: rgba(10, 10, 10, 0.7);
    border-radius: 10px;
    border: 2px solid #4DE0FF;
    color: #4DE0FF;
    box-shadow: 0 0 15px rgba(77, 224, 255, 0.7);
    display: flex;
    transition: transform 0.3s, box-shadow 0.3s;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.portal-element:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(77, 224, 255, 0.9);
}

.portal-text {
    font-size: 1.2rem;
}

.portal-url {
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    color: rgba(77, 224, 255, 0.8);
}

.portal-description {
    font-family: 'VT323', monospace;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #FAFAFA;
}

/* Prompt console */
#prompt-console {
    position: fixed;
    bottom: 20px; /* Position at bottom of page */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background-color: rgba(18, 18, 18, 0.95);
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    font-family: 'JetBrains Mono', monospace;
    z-index: 100;
    height: 64px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

#prompt-history {
    display: none;
}

#input-line {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

.ai-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.ai-icon img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.prompt-symbol {
    color: #4DE0FF;
    margin-right: 10px;
}

#prompt-input {
    background: transparent;
    border: none;
    color: rgba(250, 250, 250, 0.9);
    width: 100%;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
    text-align: center;
    font-size: 16px;
    padding: 5px 10px;
}

#prompt-input::placeholder {
    color: rgba(250, 250, 250, 0.35);
    opacity: 1;
}

/* Animation for confetti easter egg */
@keyframes fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: 1000;
    animation: fall 2s linear forwards;
}

/* Animation for element hover */
@keyframes gentle-sway {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(1.5deg); }
    75% { transform: rotate(-1.5deg); }
    100% { transform: rotate(0deg); }
}

/* Title glow animation */
@keyframes title-pulse {
    0% {
        text-shadow: 0 0 12px rgba(94, 187, 255, 0.8), 0 0 24px rgba(94, 187, 255, 0.6),
                     0 0 30px rgba(94, 187, 255, 0.4), 0 0 40px rgba(94, 187, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 15px rgba(94, 187, 255, 0.9), 0 0 30px rgba(94, 187, 255, 0.7),
                     0 0 40px rgba(94, 187, 255, 0.5), 0 0 50px rgba(94, 187, 255, 0.4);
    }
    100% {
        text-shadow: 0 0 12px rgba(94, 187, 255, 0.8), 0 0 24px rgba(94, 187, 255, 0.6),
                     0 0 30px rgba(94, 187, 255, 0.4), 0 0 40px rgba(94, 187, 255, 0.3);
    }
}

#title-sign:hover .sign-board {
    animation: gentle-sway 0.5s infinite; /* Ultra-fast animation */
}

/* Path from elements to create a visual guide */
.pathway {
    position: absolute;
    width: 20px;
    height: 100px;
    background-color: #b3894b;
    z-index: 1;
}

/* ======= RESPONSIVE STYLES ======= */
@media screen and (max-width: 768px) {
    .sign-board {
        font-size: 1.4rem;
        padding: 1rem 1.5rem;
    }
    
    .judge {
        width: 91px; /* Increased by 40% from 65px */
        height: 91px; /* Increased by 40% from 65px */
    }
    
    .judges-container {
        max-width: 400px; /* Increased to accommodate larger images */
        column-gap: 3rem; /* Increased spacing between judges */
        row-gap: 3.5rem; /* Increased vertical spacing */
    }
    
    .sponsor {
        width: 80px;
        height: 80px;
    }
    
    #bolt img, #coderabbit img {
        max-width: 60px;
    }
}

@media screen and (max-width: 480px) {
    /* Fix prompt positioning on mobile */
    #prompt-console {
        bottom: 15px; /* Keep at bottom for mobile */
        height: 54px;
        padding: 12px 15px;
    }
    
    /* Adjust description spacing for mobile */
    #description-sign {
        margin-top: 0.45rem; /* Reduced space on mobile by the same amount */
    }
    
    /* Fix hashtag sign alignment on mobile */
    .sign-board.hashtag {
        text-align: center;
        padding: 0.6rem 1rem; /* Reduced padding */
        width: auto;
        margin: 0 auto;
        font-size: 0.9rem; /* Reduced from 1.1rem */
        color: #FFFFFF; /* Ensuring white text on mobile */
    }
    
    .hashtag-link {
        width: auto;
    }
    
    /* Improved title for mobile */
    .title-text {
        font-size: 2.2rem; /* Slightly smaller to fit 'VIBE CODING' on one line */
        padding: 0.8rem;
        letter-spacing: 0;
        width: 100%;
        text-align: center;
        font-family: 'Montserrat', sans-serif;
        text-shadow: 0 0 10px rgba(94, 187, 255, 0.9), 0 0 20px rgba(94, 187, 255, 0.7),
                     0 0 30px rgba(94, 187, 255, 0.5);
        font-weight: 800;
    }
    
    #title-sign {
        width: 95%;
        max-width: 340px;
        margin: 1rem auto 1.5rem auto;
    }
    
    .title-line {
        width: 100%;
        max-width: 100%;
        padding: 0 5px;
        white-space: nowrap; /* Prevent line breaks */
        text-align: center;
        margin-bottom: 0.15rem; /* Reduced by 25% from 0.2rem */
        line-height: 1.05; /* Reduced by 25% */
    }
    
    .title-line.year {
        font-size: 0.5em;
        margin-bottom: 0.15rem; /* Reduced by 50% from 0.3rem */
    }
    
    #title-sign {
        width: 95%;
        max-width: 280px;
        padding: 0;
        margin: 0.5rem auto 1rem auto; /* Centered with auto margins */
    }
    
    .section-label {
        font-size: 1.3rem;
        padding: 0.6rem;
        font-family: 'Montserrat', sans-serif;
        width: 100%;
        text-align: center;
    }
    
    .sponsor {
        width: 150px;
        height: 75px;
        margin: 0 0.5rem;
    }
    
    #bolt img {
        width: 95%;
        max-width: 140px;
        image-rendering: auto !important;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    #coderabbit img {
        max-width: 130px;
        max-height: 65px;
        image-rendering: auto !important;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Remove this duplicate prompt-console style that's overriding the bottom positioning */
    
    .judges-container {
        column-gap: 3.5rem; /* Increased from 1.5rem for more horizontal space */
        row-gap: 4rem; /* Increased vertical spacing to prevent overlap */
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 0.5rem; /* Reduced from 1rem */
        max-width: 90%; /* Constrain width on small screens */
    }
    
    .judge {
        width: 91px; /* Increased by 40% from 65px */
        height: 91px; /* Increased by 40% from 65px */
        margin-bottom: 3rem; /* Increased from 2rem */
    }
    
    .judge-name {
        font-size: 0.7rem;
        padding: 4px 8px;
        bottom: -32px;
        z-index: 10; /* Ensure handles don't overlap visually */
    }
    
    html, body {
        width: 100%;
        overflow: hidden;
        margin: 0;
        padding: 0;
        position: fixed;
    }
    
    #game-container, #game-world, #tilemap {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        left: 0;
        right: 0;
    }
    
    .sign-board {
        font-size: 1.1rem;
        padding: 0.8rem 1.2rem;
        width: 90%;
        max-width: 90%;
        margin: 0 auto; /* Center sign boards */
    }
    
    .section-label {
        font-size: 0.9rem;
        width: 90%;
        max-width: 90%;
        margin: 0 auto 0.8rem auto; /* Center with bottom margin */
    }
    
    .judge {
        width: 70px; /* Increased by 40% from 50px */
        height: 70px; /* Increased by 40% from 50px */
        margin: 0 1rem 2.5rem 1rem; /* Increased spacing */
    }
    
    .judge-name {
        font-size: 0.6rem;
        width: max-content; /* Ensure text fits */
        text-align: center;
    }
    
    .judges-container {
        gap: 0.5rem; /* Reduced gap */
        max-width: 280px;
        width: 95%;
        margin: 0 auto; /* Centered */
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Simplified judge layout for mobile */
    .judges-container .judge:nth-child(n) {
        order: 0; /* Reset order */
        margin: 0 0.5rem 1.8rem 0.5rem; /* Even spacing */
    }
    
    .judges-container::after {
        display: none; /* Remove the row separator */
    }
    
    .portal-text {
        font-size: 1rem;
        text-align: center;
    }
    
    .portal-url {
        font-size: 0.9rem;
        text-align: center;
    }
    
    #prompt-console {
        width: 95%;
        height: 54px;
    }
    
    #prompt-input {
        font-size: 14px;
    }
    
    .sponsor {
        width: 120px;
        height: 70px;
        margin: 0 0.5rem; /* Even spacing */
    }
    
    .sponsors-container {
        gap: 1rem;
        justify-content: center;
        width: 100%;
    }
    
    #bolt img {
        width: 100%;
        max-width: 120px;
    }
    
    #coderabbit img {
        width: 100%;
        max-width: 120px;
    }
}

@media screen and (max-height: 700px) {
    #title-sign {
        margin-bottom: 1rem;
    }
    
    #description-sign, #hashtag-sign {
        margin-bottom: 2rem;
    }
    
    .judge {
        margin-bottom: 1.5rem;
    }
}
