/* Title screen and resume-style layout */
.title-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 800px 400px at 30% 70%, rgba(139, 69, 19, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse 600px 300px at 80% 60%, rgba(160, 82, 45, 0.1) 0%, transparent 70%),
        linear-gradient(135deg, #8B4513 0%, #A0522D 30%, #CD853F 70%, #DEB887 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: titleFadeIn 1s ease-out;
    overflow: hidden;
}

.title-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 120px,
            rgba(139, 69, 19, 0.1) 121px,
            rgba(139, 69, 19, 0.1) 123px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 80px,
            rgba(101, 67, 33, 0.08) 81px,
            rgba(101, 67, 33, 0.08) 83px
        );
    pointer-events: none;
}

.title-content {
    background: linear-gradient(145deg, #fefefe 0%, #f8f8f8 50%, #f0f0f0 100%);
    border: none;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    color: #212529;
    max-width: 650px;
    width: 90%;
    padding: 3rem;
    font-family: 'Georgia', serif;
    line-height: 1.6;
    transform: rotate(-2deg);
    position: relative;
    border-radius: 0;
}

.title-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -20px;
    right: 20px;
    bottom: 15px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 3px 10px rgba(0, 0, 0, 0.1);
    transform: rotate(1.5deg);
    z-index: -1;
    border-radius: 0;
}

.title-content::after {
    content: '';
    position: absolute;
    top: -25px;
    left: 10px;
    right: -15px;
    bottom: 25px;
    background: linear-gradient(145deg, #f0f0f0 0%, #e0e0e0 100%);
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.08);
    transform: rotate(0.8deg);
    z-index: -2;
    border-radius: 0;
}

.game-title {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    text-align: center;
    color: #2c3e50;
    letter-spacing: 2px;
    border-bottom: 3px solid #2c3e50;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    animation: titleSlideDown 1s ease-out 0.3s both;
    transform: rotate(1deg);
}

.game-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    animation: titleSlideUp 1s ease-out 0.5s both;
    transform: rotate(-0.5deg);
}

.title-features {
    margin-bottom: 3rem;
    animation: titleSlideUp 1s ease-out 0.7s both;
    transform: rotate(0.3deg);
}

.title-features::before {
    content: "CORE COMPETENCIES";
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
}

.feature {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
    color: #495057;
    padding: 0.4rem 0;
    background: none;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    display: flex;
    align-items: center;
    text-align: left;
}

.feature::before {
    content: "•";
    margin-right: 0.8rem;
    color: #2c3e50;
    font-weight: bold;
}

.start-game-btn {
    background: #2c3e50;
    color: white;
    border: 2px solid #2c3e50;
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(44, 62, 80, 0.3),
        0 2px 8px rgba(44, 62, 80, 0.2);
    animation: titleSlideUp 1s ease-out 0.9s both;
    font-family: inherit;
    letter-spacing: 1px;
    display: block;
    margin: 0 auto;
    text-transform: uppercase;
    transform: rotate(-0.8deg);
    position: relative;
}

.start-game-btn::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: 3px;
    bottom: 3px;
    background: linear-gradient(145deg, #34495e 0%, #2c3e50 100%);
    z-index: -1;
    transform: rotate(1.2deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.start-game-btn:hover {
    background: white;
    color: #2c3e50;
    transform: rotate(-0.8deg) translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(44, 62, 80, 0.25),
        0 3px 12px rgba(44, 62, 80, 0.15);
}

.start-game-btn:active {
    transform: translateY(1px);
}

.load-game-btn {
    background: #8e44ad;
    color: white;
    border: 2px solid #8e44ad;
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(142, 68, 173, 0.3),
        0 2px 8px rgba(142, 68, 173, 0.2);
    animation: titleSlideUp 1s ease-out 1.1s both;
    font-family: inherit;
    letter-spacing: 1px;
    display: block;
    margin: 1rem auto 0;
    text-transform: uppercase;
    transform: rotate(0.8deg);
    position: relative;
}

.load-game-btn::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: 3px;
    bottom: 3px;
    background: linear-gradient(145deg, #9b59b6 0%, #8e44ad 100%);
    z-index: -1;
    transform: rotate(-1.2deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.load-game-btn:hover {
    background: white;
    color: #8e44ad;
    transform: rotate(0.8deg) translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(142, 68, 173, 0.25),
        0 3px 12px rgba(142, 68, 173, 0.15);
}

.load-game-btn:active {
    transform: translateY(1px);
}

@keyframes titleFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes titleSlideDown {
    from { 
        opacity: 0; 
        transform: translateY(-50px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes titleSlideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.title-screen.fade-out {
    animation: titleFadeOut 0.8s ease-in forwards;
}

@keyframes titleFadeOut {
    to { 
        opacity: 0; 
        transform: scale(0.95); 
    }
}

/* Add styles for business name input */
.business-name-input {
    background: white;
    border: 2px solid #2c3e50;
    padding: 1rem;
    font-size: 1.2rem;
    font-family: inherit;
    width: 100%;
    margin-bottom: 2rem;
    text-align: center;
    transform: rotate(0.5deg);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.business-name-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 
        0 4px 15px rgba(52, 152, 219, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.business-name-label {
    display: block;
    margin-bottom: 1rem;
    color: #34495e;
    font-size: 1.1rem;
    text-align: center;
    transform: rotate(-0.8deg);
}

/* Add creator credit style */
.creator-credit {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-style: italic;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease-out 1.5s backwards;
}