* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f4f6;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Mobile Frame Container */
.app-container {
    background: #ffffff;
    width: 100%;
    max-width: 410px;
    height: 90vh;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 24px;
}

.app-header {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
}

/* Fixed Wheel Container - Added flex-shrink to prevent collapsing */
.wheel-outer-wrapper {
    position: relative;
    margin-top: 30px;
    width: 320px;   
    height: 320px;  
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* CRITICAL: Prevents info-section from crushing the wheel */
}

/* Force Canvas Grid System */
#wheelCanvas {
    width: 320px !important;
    height: 320px !important;
    display: block;
    transition: transform 4s cubic-bezier(0.1, 0.8, 0.25, 1);
}

/* The Triangle Indicator at the Top */
.pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 22px solid #2c3e50; 
    z-index: 10;
}

/* Content Panel */
.info-section {
    margin-top: auto;
    text-align: center;
    width: 100%;
    padding-bottom: 15px;
}

.info-section h2 {
    font-size: 1.9rem;
    color: #2c3e50;
    font-weight: bold;
    margin-bottom: 12px;
}

.info-section p {
    color: #7f8c8d;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 30px;
    padding: 0 10px;
}

/* Action Button - Updated color to match your exact UI banner green */
.spin-button {
    background-color: #2ecc71; 
    color: white;
    border: none;
    width: 85%;
    padding: 14px 0;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.35);
    transition: transform 0.1s ease, background-color 0.2s ease;
}

.spin-button:hover {
    background-color: #27ae60;
}

.spin-button:active {
    transform: scale(0.97);
}

.spin-button:disabled {
    background-color: #95a5a6;
    box-shadow: none;
    cursor: not-allowed;
}