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


b/* 1. Global Background - Deep Casino Green */
body {
    

    color: #ffffff;
     font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
}

h1, h2, h3, #displayParagraph {
    font-weight: 600; /* Makes headings slightly bolder but still round */
    color: goldenrod; /* Using a soft color instead of pure black helps the vibe */
}

#mainContainer
{
    position: fixed;
    display: none; /* Ensure it is in the flex flow */
    
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    justify-content: space-around;
    align-items: center;
    display: flex;
    flex-direction: row; /* Center vertically and horizontally */
   
 
  
}

.adBlock{
    height: 100%;
    width: 15%;
    display: none;
}

@media (min-width: 769px) {
    .adBlock{
        display: block; /* Display the ad columns on wider screens */
    }
}

.overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column; /* Center vertically and horizontally */
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    backdrop-filter: blur(5px); /* Apply blur effect to the background */
    z-index: -100; /* Ensure the overlay is on top of other elements */
    opacity: 0;
}



.overlayCountdown{
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column; /* Center vertically and horizontally */
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    backdrop-filter: blur(5px); /* Apply blur effect to the background */
    z-index: -100;
    opacity: 0;
    
}


.overlayPause{
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column; /* Center vertically and horizontally */
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    backdrop-filter: blur(5px); /* Apply blur effect to the background */
    z-index: -100;
    opacity: 0%;
}

#overlayApp{
    
    position: fixed;
    z-index: 1000;
    opacity: 100%;
}



.centered-panel {
    position: relative;
    display:flex;
    flex-direction: column;
    height: 100%; /* 50% of the height of the overlay */
    max-height: 100%;
    width: 800px;
   
    
    text-align: center; /* Center text horizontally */
    padding: 5px; /* Example padding */
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
    gap: 0.75rem;

    background: radial-gradient(
        circle at 50% 40%, 
        #3d9e4a 0%,    /* Bright "lit" center */
        #1b5e20 50%,   /* Natural felt color */
        #07240a 100%   /* Deep shadow at the corners */
    );
    background-attachment: fixed; /* Keeps the light source centered as you scroll */
    height: 100vh;
    margin: 0;
    
}

/* CSS for small screens (e.g., max-width: 768px) */
@media (max-width: 768px) {
    .centered-panel {
        width: 100%; /* Set the desired width for small screens */
        height: 100%;
    }
}


@media (min-width: 768px) {
    .centered-panel {
        width: 50%; 
        height: 80%;
    }
}

.bar-chart
{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 300px;
    height: 200px;
    border: 1px whitesmoke;
    border-radius: 13px;
}

.bar-inner{
    height: 40px;
    margin: 0 5px;
    transition: width 0.5s;
}


.countdown-panel {
    display:flex;
    position: fixed;
    flex-direction: column;
    height: 400px; /* 50% of the height of the overlay */
    width: 300px;
    background-color: white;
    text-align: center; /* Center text horizontally */
    padding: 10px; /* Example padding */
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    
}





.header {
    /* Ensure it takes full width within its parent (.rowHolder) */
    width: 100%; 
    
    /* Set up as a Flex container to center its child item (the h1) */
    display: flex;
    
    /* CRITICAL: Centers the h1 element horizontally */
    justify-content: center; 
    
    /* Ensure vertical alignment is centered, if needed */
    align-items: center; 
    
    /* These properties were already in your CSS, keeping them */
    text-align: center; 
    min-width: 100px;
    padding: 0px;
    margin: auto;
}

h1 {
    color: goldenrod;
    text-shadow: #ccc;
    font-size:40px;
    text-align: center;
}

@media (max-width: 767px) {
    h1 {
        
        font-size: 18px;
    }
}


/* Styles for medium screens (768px to 991px wide) */
@media (min-width: 768px) and (max-width: 991px) {
    h1 {
        
        font-size: 24px;
    }
}

/* Styles for medium screens (768px to 991px wide) */
@media (min-width: 992px) and (max-width: 1199px) {
    h1 {
       
        font-size: 32px;
      
    }
}

/* Styles for medium screens (768px to 991px wide) */
@media (min-width: 1200px) {
    h1 {
       
        font-size: 40px;
    }
}


h2 {
    color: goldenrod;
    text-shadow: #ccc;
    font-size:32px;
    text-align: center;
    max-width: 80%;
}

@media (max-width: 992px) {
    h2 {
        font-size: 20px; /* Set the desired width for small screens */
    }
}

.horizontalButtonHolder {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    width: 90%;
    height: 15%;
    min-height: 60px;

}


.actionButton{

    height: 40px;
    width: 60px;
    border: solid 3px darkgrey;
    border-radius: 10px;
    
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    background-color:lightgrey;
    margin:auto;

    color: goldenrod;
    font-size: 18px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
   
    text-align: center;
    padding:10px;


}



#gameContainer {
    position: relative;
    width: 100%;
    height: 100%;
    left: 0%;
    top: 0%;
    justify-content: center; /* Distribute space evenly between items */
    align-items: center;
    display: flex;
    flex-direction: column; /* Center vertically and horizontally */
    padding: 0px;
}

/* Styles for medium screens (768px to 991px wide) */

@media (min-width: 992px) {
    #gameContainer {
        width: 70%;
        padding: 30px;
        padding-bottom: 0px;
    }
}

@media (min-width: 1200px) and (orientation: landscape) {
    #gameContainer {
        width: 60%;
        padding: 30px;
        padding-bottom: 0px;
        max-width: 1000px;

    }
}
.rowHolder{
    height: 65px;
    width:100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: auto;
      
}

@media (min-width: 577px) {
    .rowHolder {
        width:90%;
        
    }
}

#header{
    text-align: center;
    align-items: center;
    display:flex;
    min-width: 100px;
    padding: 20px;
    margin: auto;
}

.mainHolder{
    
    width: 100%;
    height: 55%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    
}



#adHolder{
    background-color: white;
    width: 100%;
    border: solid goldenrod;
    border-radius: 10px;
    border-width: 2px;
    
    bottom: 0;
    left: 0;
}

.sidePanel{
  
    height: 100%;
    width: 15%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px;
    margin-top:10px; 
    margin-bottom:10px;
    min-height: 100%;
    max-width: 200px;
    padding: 10px;
  
}

.holder{

    text-align: center;
    justify-content: center;
    font-size: 16px;
    color: goldenrod;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
   
}


/* Styles for medium screens (768px to 991px wide) */
@media (max-width: 992px) {
    .holder {
        
        font-size: 14px;
    }
}
.scoreHolder{
    width:100px;
    height: 70%;
    width:80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
   
  
}


@media (max-width: 991px) {
    .scoreHolder {
        width: 90%; /* Set the desired width for small screens */
    }
}



.scoreTile {
    height: 100px;
    width: 110px;
    border-radius: 10px;
 
    
    /* Fix: Use flex and direction */
    display: flex;
    flex-direction: column; 
    justify-content: center; /* Centers vertically */
    align-items: center;     /* Centers horizontally */
    
    /* Clean up */
    margin: 3px 0; /* Shortcut for top/bottom 3px, left/right 0 */
  
    font-size: 12px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    color: darkslateblue;
 
    /* Warning: Large padding will "squish" content on a 70px fixed-size box */
    gap: 8px;
    padding: 8px; 
    box-sizing: border-box; /* Ensures padding doesn't make the box larger than 70px */
    
    z-index: 4;
    cursor: pointer; /* Makes it feel like a button */
}
/* Styles for medium screens (768px to 991px wide) */

@media (min-width: 768px) and (max-width: 991px) {
    .scoreTile {
       
        width: 80px;
        height:80px;
        font-size: 14px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .scoreTile {
       
        width: 100px;
        height:10px;
        font-size: 16px;
    }
}

@media (min-width: 1200px) {
    .scoreTile {
       
        max-width: 160px;
        height:100px;
        font-size: 18px;
    }
}
#startButton {
    position: absolute;
    right: 0; /* Adjust the right value as needed */
    bottom: 0;
    
    font-size: 14px;
}




#landscapeMessage {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    text-align: center;
    z-index: 9999;
}

#landscapeMessage p {
    font-size: 24px;
    margin: 20% 0;
}





.opaque {
    opacity: 1;
}
    


#canvasGame{
    font-size: 20px;
}


.hide {
    display: none;
}


.panel-container {
   
    width: 70px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: solid 3px goldenrod;
    border-radius: 10px;
    background-color: whitesmoke;
  }


  @media (max-width: 767px) {
    .panel-container {
        
        height: 60px;
        width: 60px;
    }

  }
/* Styles for medium screens (768px to 991px wide) */
@media (min-width: 768px) and (max-width: 991px) {
    .panel-container {
        
        width: 70px;
        height: 70px;
    }
}

/* Styles for medium screens (768px to 991px wide) */
@media (min-width: 992px) and (max-width: 1199px) {
    .panel-container {
       
        width: 70px;
        height:70px;
      
    }
}

.holder{
    font-size: 12px;
}

@media (min-width: 768px)  {
    .holder {
       
        font-size: 14px;
        
    }
}
 

#pausePanel
{
    
    max-width: 90%;
    height: 600px;
}


 
  
  @keyframes countdown {
    from {
      stroke-dashoffset: 0;
    }
    to {
      stroke-dashoffset: -220; /* Set this to 0 to have a full countdown */
    }
  }


  
  
#quoteContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
}



  .quoteBox{
    position: relative;
    max-width: 400px;
    height: 20px;
    font-size: 18px;
    margin: 10px;
    color: goldenrod;
    font-weight: bold;
  }
  
  .quoterBox{
    position:relative;
    width: 170px;
    height: 20px;
   font-size: 12px;
   color: goldenrod;

  }
  




.silver {
    background-color: silver;
    color: black;
}

.grey {
    background-color: grey;
    color: black;
}

.green {
    background-color: green;
    color: white;
}
 
.content {
    padding: 10px;
}


.footer {
    
    width: 100% !important; /* Ensure it takes full width */
    color: #fff;
    padding: 20px !important;
    text-align: center;
    
    /* --- CRITICAL FLEX PROPERTIES --- */
    display: flex !important; /* Force Flexbox */
    flex-direction: row !important; /* Force Horizontal alignment */
    justify-content: space-between !important; 
    align-items: center !important; /* Force vertical centering */
}
/* Add this new block to ensure the items start and end cleanly */
.footer a, .footer button {
    margin: 0; 
    padding: 0;
    /* This is critical for space-between to work cleanly */
    flex-shrink: 0; 
    flex-grow: 0;
    
   

}
    



  

.statsPanel {
    min-height: 360px;
    height: 50vh;             /* Use height instead of min-height for scroll to work */
    width: 90%;
    margin: 20px auto;
    
    display: flex;
    flex-direction: column;
    align-items: center;      /* Centers horizontally */
    
    /* Fix: Only use justify-content if content is SMALLER than the box */
    justify-content: flex-start; 
    
    /* Scrolling logic */
    overflow-y: auto;         /* Changed from scroll to auto */
    overflow-x: hidden;
    scrollbar-width: none;    /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    
    border: 2px solid goldenrod;
    border-radius: 10px;
    padding: 20px 0;          /* Give some breathing room at top/bottom */
    box-sizing: border-box;
}

/* Chrome/Safari scrollbar hide */
.statsPanel::-webkit-scrollbar {
    display: none;
}


.displayPanel {
    min-height: 360px;
    height: 90%;             /* Use height instead of min-height for scroll to work */
    width: 90%;
    margin: 20px auto;
    
    display: flex;
 
    flex-direction: column;    /* Stack items vertically */
    justify-content: center;   /* Center items vertically (Middle of div) */
    align-items: center;       /* Center items horizontally */
    
    /* This creates the consistent gap between the text and the button */
    gap: 20px;                 
    
    padding: 10px;
    
    /* Scrolling logic */
    /*overflow-y: auto;         /* Changed from scroll to auto */
    overflow-x: hidden;
    scrollbar-width: none;    /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    
    border: 2px solid goldenrod;
    border-radius: 10px;
    padding: 10px 0;          /* Give some breathing room at top/bottom */
    box-sizing: border-box;
}

/* Chrome/Safari scrollbar hide */
.displayPanel::-webkit-scrollbar {
    display: none;
}

#puzzlesPanel{

    overflow-y: auto;
}

#displayParagraph {
    white-space: pre-wrap; /* This honors line breaks and spaces from your .js file */
    font-family: inherit;  /* Optional: keeps your current font */
    height: 40vh;
    align-items: center;
    justify-content: center;
    width: 90%;
    display: flex;
    max-height: 50vh; /* Adjust this (e.g., 400px) based on your panel size */
    
    /* 2. Enable internal scrolling */
    overflow-y: auto; 
    
    /* 3. Ensure it doesn't break the layout */
    display: block !important;
    width: 100%;
    margin: 10px auto;
    padding: 15px;
   

}


/* Container to keep menu button and list together */
.menu-wrapper {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 9999;
    
    pointer-events: auto !important; /* This forces the div to listen to clicks */
}

/* The Hamburger Button */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    pointer-events: auto !important; /* This forces the div to listen to clicks */
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: grey;
    border-radius: 10px;
    transition: 0.3s;
}

/* The Dropdown Box */
.dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    top: 35px;
    right: 0;
    background-color: whitesmoke;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    border: 2px solid grey;
    border-radius: 8px;
    overflow: hidden;
}

/* Links inside the menu */
.dropdown-content a {
    color: grey;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: #eeeeee; /* Lighter grey than lightgrey */
}

/* Special styling for the CLOSE button */
.dropdown-content a.menu-close-item {
    color: #b22222; /* Reddish color */
    border-top: 1px solid #ddd;
    background-color: #fffafa;
    text-align: center;
}

.dropdown-content a.menu-close-item:hover {
    background-color: #ffebeb;
}

/* Toggle Class */
.show-menu {
    display: block !important;
}

#holderPanel{
    display: grid;
    width: 100%;
    height: 100vh; /* or your desired height */
}



.button-container {
    /* 1. Anchors the banner so it doesn't fly to the window center */
    position: relative !important; 
    
    /* 2. Shrinks the container to the button's exact width */
    display: inline-flex !important; 
    
    /* 3. Debugging: This MUST appear tightly around the button */
    border: none !important;
    border-radius: 10px;
    padding: 0;
    margin: 0;
}

.diagonal-banner {
    position: absolute !important;
    /* Now 50% means the center of the RED BOX, not the screen */
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) rotate(-45deg) !important;
    
    width: 120%;
    z-index: 9999;
    pointer-events: none;
}


.layer {
    /* This stacks them on top of each other */
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
}

/* Helper class to hide the inactive one */
.hidden {
    display: none;
}

.invisible{
    visibility: hidden !important;
}

/* 2. Main Containers - Goldenrod Trim */
#overallPanel, .scoreTile, #menuPanel {
    background-color: rgba(0, 0, 0, 0.4); /* Dark translucent overlay */
    border: 3px solid #daa520; /* Goldenrod */
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.3), inset 0 0 10px rgba(0,0,0,0.5);
}

/* 1. Ensure the container is stripped of all styling */
#displayTile {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0; /* Removes any internal spacing */
}

/* 2. Put the border directly on the image */
#displayTile img {
    border: 3px solid #daa520; /* Your Goldenrod theme */
    border-radius: 10px;        /* Optional: softens the casino look */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Adds depth to the image */
    display: block;             /* Prevents tiny gaps at the bottom */
    max-width: 100%;            /* Ensures it doesn't overflow the panel */
    height: auto;
    background-color: whitesmoke;
}




/* 3. Headers and Titles */
h1, h2, h3, .myLongText {
    color: goldenrod !important; /* Gold */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Georgia', serif; /* Gives a more classic casino feel */
}

/* 4. Buttons - Giving them a "Poker Chip" or Gold Feel */
button.scoreTile {
    background: linear-gradient(145deg, #daa520, #b8860b) !important;
    color: white !important;
    border: 2px solid #ffffff !important;
    font-weight: 700;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

button.scoreTile:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #ffd700;
    background: linear-gradient(145deg, #ffd700, #daa520) !important;
}

/* 5. The Menu Dropdown */
.dropdown-content {
    background-color: #0b3d26; /* Darker green for menu */
    border: 2px solid #daa520;
}

.dropdown-content a {
    color: #ffd700;
}

.dropdown-content a:hover {
    background-color: #1a6344;
    color: #ffffff;
}

/* 6. Ad Blocks - Subtler integration */
.adBlock {
    border: 1px solid rgba(218, 165, 32, 0.2);
    background-color: rgba(0, 0, 0, 0.2);
}

.miniTile {
    height: 70px;
    width: 100px;
    border-radius: 10px;
    background-color: transparent;
    border: none;
    /* Fix: Use flex and direction */
    display: flex;
    flex-direction: column; 
    justify-content: center; /* Centers vertically */
    align-items: center;     /* Centers horizontally */
    
    /* Clean up */
    margin: 3px 0; /* Shortcut for top/bottom 3px, left/right 0 */
  
    font-size: 12px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    color: darkslateblue;
 
    /* Warning: Large padding will "squish" content on a 70px fixed-size box */
    gap: 8px;
    padding: 8px; 
    box-sizing: border-box; /* Ensures padding doesn't make the box larger than 70px */
    
    z-index: 4;
    cursor: pointer; /* Makes it feel like a button */
}

/* Ensure the contact info stays vertical and centered */
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    width: 100%;
}

.contact-container p {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 0;
}

/* Casino Gold Link */
.casino-link {
    color: #daa520 !important; /* Goldenrod */
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.casino-link:hover {
    color: #ffd700 !important; /* Brighter Gold on hover */
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    border-bottom: 1px solid #ffd700;
}

/* The Parent Container */
#menuPanel {
    
    flex-direction: column;
    max-height: 80vh;   /* Limits height so it can scroll */
    overflow-y: auto;    /* Enables the scrollbar on the panel itself */
    position: relative;
    
    padding: 20px;
}

/* The Close Button */
.menu-close-item {
    display: block;      /* Makes it take its own line */
    position: fixed;  /* NOT fixed or absolute */
    margin: 20px auto 0; /* Adds space above and centers it */
    padding: 10px 20px;
    color: #daa520;
    text-decoration: none;
    border: 1px solid #daa520;
    width: fit-content;
    text-align: center;
}

/* —— Landing Venn launcher (matches Sevenns ellipse proportions) —— */
.landing-hero-copy {
    width: 100%;
    padding: 0.5rem 1rem 0;
    text-align: center;
    z-index: 2;
}

.brand-mark {
    font-family: 'Fraunces', Georgia, serif !important;
    font-weight: 700;
    font-size: clamp(1.7rem, 6.5vw, 2.8rem);
    letter-spacing: 0.04em;
    color: #f0d78c !important;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
    line-height: 1.1;
    margin: 0;
}

.brand-sub {
    font-family: 'Outfit', system-ui, sans-serif !important;
    font-weight: 600;
    font-size: clamp(0.95rem, 3.2vw, 1.2rem);
    letter-spacing: 0.12em;
    color: rgba(240, 215, 140, 0.88) !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
    margin: 0.45rem 0 0;
    text-transform: uppercase;
}

.venn-launcher {
    width: min(96vw, 640px);
    margin: 0.5rem auto 1rem;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 68vh;
}

/* Larger ellipses so icon buttons sit clear of the stroke */
.venn-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.78;
    max-height: 62vh;
}

.venn-ellipse {
    position: absolute;
    /* Bigger than Sevenns board ratio so buttons have room inside */
    width: 72%;
    height: 72%;
    border-radius: 50%;
    border: 3px solid #daa520;
    box-shadow:
        0 0 0 1px rgba(255, 215, 0, 0.15),
        inset 0 0 40px rgba(0, 0, 0, 0.25),
        0 12px 28px rgba(0, 0, 0, 0.35);
    background: radial-gradient(
        ellipse at 40% 35%,
        rgba(61, 158, 74, 0.35) 0%,
        rgba(7, 36, 10, 0.55) 70%
    );
    pointer-events: none;
    animation: vennDrawIn 0.9s ease-out both;
}

.venn-left {
    left: 0%;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: 0.05s;
}

.venn-right {
    left: 28%;
    top: 50%;
    transform: translateY(-50%);
    animation-delay: 0.2s;
}

@keyframes vennDrawIn {
    from {
        opacity: 0;
        filter: blur(2px);
        transform: translateY(-50%) scale(0.92);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(-50%) scale(1);
    }
}

.venn-btn {
    position: absolute;
    z-index: 4;
    width: clamp(64px, 17%, 96px);
    aspect-ratio: 1;
    border: none;
    border-radius: 18px;
    padding: 0.3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    cursor: pointer;
    background: linear-gradient(160deg, rgba(255, 248, 220, 0.96), rgba(218, 165, 32, 0.92));
    box-shadow:
        0 4px 0 rgba(120, 80, 10, 0.55),
        0 10px 22px rgba(0, 0, 0, 0.35);
    color: #1a3a22;
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 600;
    font-size: clamp(0.6rem, 2.2vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    animation: vennBtnIn 0.55s ease-out both;
    -webkit-tap-highlight-color: transparent;
}

.venn-btn img {
    width: 68%;
    height: auto;
    max-height: 62%;
    object-fit: contain;
    border-radius: 10px;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.55);
}

.venn-btn-mid img {
    background: #000;
    border-radius: 12px;
}

.venn-btn span {
    line-height: 1.1;
    pointer-events: none;
}

.venn-btn-left:hover,
.venn-btn-left:focus-visible,
.venn-btn-mid:hover,
.venn-btn-mid:focus-visible,
.venn-btn-right:hover,
.venn-btn-right:focus-visible {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow:
        0 5px 0 rgba(120, 80, 10, 0.55),
        0 14px 28px rgba(0, 0, 0, 0.4),
        0 0 18px rgba(255, 215, 0, 0.35);
    outline: none;
}

.venn-btn-left:active,
.venn-btn-mid:active,
.venn-btn-right:active {
    transform: translate(-50%, -50%) scale(0.97);
    box-shadow: 0 2px 0 rgba(120, 80, 10, 0.55);
}

/* Inset from ellipse edges: left lobe · intersection · right lobe
   Side buttons shifted outward by ~1/3 button width (button ≈ 17% → ~5.7%) */
.venn-btn-left {
    left: 16.3%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0.35s;
}

.venn-btn-mid {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0.48s;
}

.venn-btn-right {
    left: 83.7%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0.6s;
}

@keyframes vennBtnIn {
    from {
        opacity: 0;
        transform: translate(-50%, -42%) scale(0.85);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

#holderPanel {
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
}

@media (max-width: 420px) {
    .venn-btn span {
        font-size: 0.58rem;
    }
}