/* Full viewport reset */
html, body {
margin:0;
padding:0;
overflow-x:hidden;
width:100%;
}

body {
min-height:100vh;
}

.landing-section{
height:100vh;
min-height:100vh;
width:100vw;
max-width:100%;
margin:0;
padding:0;
display:flex;
justify-content:center;
align-items:center;
position:relative;
background:linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary-color) 100%);
overflow:hidden;
box-sizing:border-box;
/* Add padding for small height devices */
padding:40px 0;
}

.landing-background-video {
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
object-fit:cover;
z-index:0;
opacity:0.4;
}

.landing-section::before {
content:'';
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
backdrop-filter:blur(8px);
-webkit-backdrop-filter:blur(8px);
z-index:1;
pointer-events:none;
}

.landing-section::after {
content:'';
position:absolute;
top:0;
left:0;
right:0;
bottom:0;
background: 
    radial-gradient(ellipse at center, transparent 0%, transparent 30%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.6) 100%),
    url('../images/textures/cooltexturebetter.png') center/cover no-repeat;
opacity:0.2;
z-index:2;
}

/* Vignette overlay */
.landing-section .vignette-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: radial-gradient(ellipse at center, transparent 0%, transparent 40%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.8) 100%);
z-index: 4;
pointer-events: none;
}

/* Removed logo background */

/* Gradient fade to next section */
.landing-section-fade {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 120px;
background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, var(--dark-bg) 100%);
z-index: 5;
pointer-events: none;
}

.landing-container{
position:relative;
z-index:3;
text-align:center;
max-width:90%;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
min-height:80vh;
}

.logo-container{
margin-bottom:140px;
position:relative;
z-index:2;
}

.logo-container .landing-buttons-inline {
display: none; /* Hidden on large screens, shown on smaller screens */
gap: 15px;
justify-content: center;
margin-top: 30px;
}

.landing-logo{
max-width:50%;
height:auto;
filter:drop-shadow(0 0 8px rgba(var(--highlight-color-rgb), 0.25));
transition:transform 0.3s ease;
opacity: 0;
animation: logoGlow 0.8s ease-out forwards;
animation-delay: 0s;
}

/* Add responsive sizing for logo on larger displays */
@media (min-width: 1200px) {
  .landing-logo {
    max-width: 40%;
  }
}

@media (min-width: 1600px) {
  .landing-logo {
    max-width: 35%;
  }
}

@media (min-width: 1920px) {
  .landing-logo {
    max-width: 30%;
  }
}

.landing-buttons{
display:flex;
gap:15px;
margin-top:30px;
width:100%;
max-width:600px;
justify-content:center;
}

.landing-button{
background-color:rgba(30,30,30,0.95);
color:var(--text-color);
border:1px solid rgba(255,255,255,0.15);
border-radius:6px;
padding:0.7rem 1.8rem;
font-size:1rem;
font-weight:600;
cursor:pointer;
position:relative;
overflow:hidden;
transition:all 0.2s ease-in-out;
text-decoration:none;
display:inline-block;
text-transform:uppercase;
letter-spacing:0.5px;
min-width:200px;
flex:1;
text-align:center;
line-height:1.4;
backdrop-filter:blur(8px);
-webkit-backdrop-filter:blur(8px);
box-shadow:0 4px 15px rgba(0,0,0,0.2);
}

.landing-button:hover{
background-color:rgba(40,40,40,0.98);
transform:translateY(-2px);
box-shadow:0 6px 20px rgba(0,0,0,0.3);
border-color:rgba(255,255,255,0.3);
color:var(--text-color);
}

.join-button-large {
background-color: rgba(46,204,113,0.15);
color: #f5f5f5;
border: 1px solid rgba(46,204,113,0.4);
border-radius: 6px;
padding: 18px 45px;
font-size: 1.4rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1.5px;
text-decoration: none;
transition: all 0.2s ease-in-out;
box-shadow: 0 4px 15px rgba(46,204,113,0.15), inset 0 0 10px rgba(46,204,113,0.1);
min-width: 180px;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}

.join-button-large:hover {
color: #2ecc71;
background-color: rgba(46,204,113,0.2);
border-color: rgba(46,204,113,0.6);
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(46,204,113,0.2), inset 0 0 15px rgba(46,204,113,0.2);
text-shadow: 0 0 10px rgba(46,204,113,0.5);
}

/* Removed join-section.nearly-full container styling - only target specific elements */

.server-players span.nearly-full {
color: #ff6b00;
}

.server-players span.getting-full {
color: #4CAF50;
}

.join-button-large.nearly-full {
background-color: rgba(255,107,0,0.3);
border: 2px solid rgba(255,107,0,0.6);
color: #ffffff;
box-shadow: 0 4px 12px rgba(255,107,0,0.25), inset 0 0 8px rgba(255,107,0,0.15);
text-shadow: 0 0 4px rgba(255,107,0,0.4);
position: relative;
overflow: hidden;
}

.join-button-large.nearly-full:hover {
color: #ff6b00;
background-color: rgba(255,107,0,0.4);
border-color: rgba(255,107,0,0.8);
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(255,107,0,0.3), inset 0 0 12px rgba(255,107,0,0.2);
text-shadow: 0 0 6px rgba(255,107,0,0.5);
}

/* Removed shimmer and pulse animations */

/* Removed join-section.getting-full container styling - only target specific elements */

.join-button-large.getting-full {
background-color: rgba(76,175,80,0.2);
border: 2px solid rgba(76,175,80,0.4);
color: #ffffff;
box-shadow: 0 4px 10px rgba(76,175,80,0.2), inset 0 0 6px rgba(76,175,80,0.1);
text-shadow: 0 0 3px rgba(76,175,80,0.3);
position: relative;
}

.join-button-large.getting-full:hover {
color: #4CAF50;
background-color: rgba(76,175,80,0.3);
border-color: rgba(76,175,80,0.6);
transform: translateY(-2px);
box-shadow: 0 6px 14px rgba(76,175,80,0.25), inset 0 0 10px rgba(76,175,80,0.15);
text-shadow: 0 0 5px rgba(76,175,80,0.4);
}

/* Removed warning glow animation */

.landing-button-discord{
background-color:rgba(114,137,218,0.2);
color:#f5f5f5;
border-color:rgba(114,137,218,0.3);
display:flex;
align-items:center;
justify-content:center;
gap:4px;
}

.landing-button-discord:hover{
color:#7289da;
background-color:rgba(114,137,218,0.15);
border-color:rgba(114,137,218,0.5);
}

.landing-button-discord:hover .discord-icon {
    transform: scale(1.1);
}

.discord-icon{
margin-left:6px;
vertical-align:middle;
width:20px;
height:20px;
transition: transform 0.3s ease;
}

.servers-icon, .store-icon{
margin-left:6px;
vertical-align:middle;
width:20px;
height:20px;
transition: transform 0.3s ease;
}

.player-icon, .steam-icon{
vertical-align:middle;
margin-top:-2px;
width:18px;
height:18px;
}

.steam-icon{
margin-left:6px;
}

.landing-button-join.mobile-view {
background-color:rgba(220,53,69,0.7);
color:#ffffff;
border-color:rgba(220,53,69,0.8);
font-weight:700;
}

.landing-button-join.mobile-view:hover {
background-color:rgba(220,53,69,0.8);
color:#ffffff;
border-color:rgba(220,53,69,0.9);
}

.landing-subtitle{
font-size:2rem;
text-transform:uppercase;
font-weight:600;
color:var(--text-color);
margin-top:20px;
letter-spacing:2px;
background:linear-gradient(135deg, #ffffff 0%, #a8a8a8 100%);
-webkit-background-clip:text;
background-clip:text;
color:transparent;
-webkit-text-fill-color:transparent;
text-shadow:0 0 5px rgba(255,255,255,0.2);
opacity: 0;
animation: fadeInUp 0.6s ease-out forwards;
animation-delay: 0.1s;
}

/* Player Count Pill Styles */
.server-info {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 5px;
flex: 1;
}

.server-name {
font-size: 1.2rem;
font-weight: 700;
color: #f5f5f5;
text-transform: uppercase;
letter-spacing: 1px;
}

.server-players {
font-size: 0.9rem;
font-weight: 500;
color: #a8a8a8;
letter-spacing: 0.5px;
}

.server-players span {
color: #4CAF50;
font-weight: 600;
transition: color 0.3s ease;
}

.server-gamemode {
font-size: 0.85rem;
font-weight: 500;
color: #a8a8a8;
letter-spacing: 0.5px;
margin-top: 2px;
}

.server-gamemode span {
color: #4CAF50;
font-weight: 600;
}

#joinPlayerCount {
font-weight:700;
color:#ff9b4d;
text-shadow: 0 0 3px rgba(0,0,0,0.2);
}

/* Animation for number updates */
@keyframes countUpdate {
0% {
transform:scale(1);
}
50% {
transform:scale(1.2);
color:#fff;
}
100% {
transform:scale(1);
}
}

#joinPlayerCount.update-animation {
animation:countUpdate 0.5s ease-out;
}

/* Nearly full or full server styling */
.player-count-pill.nearly-full {
background-color:rgba(220,53,69,0.3);
border-color:rgba(220,53,69,0.4);
border-bottom:0;
}

.player-count-pill.nearly-full #joinPlayerCount {
color:#ff6b6b;
text-shadow: 0 0 3px rgba(0,0,0,0.2);
}

/* Also update the join button style when pill is nearly full */
.player-count-pill.nearly-full + .landing-button-join {
border-color:rgba(220,53,69,0.4);
background-color:rgba(220,53,69,0.15);
box-shadow: 0 4px 15px rgba(220,53,69,0.15), inset 0 0 10px rgba(220,53,69,0.1);
}

.player-count-pill.nearly-full + .landing-button-join:hover {
border-color:rgba(220,53,69,0.6);
background-color:rgba(220,53,69,0.3);
color:#fff;
box-shadow: 0 6px 20px rgba(220,53,69,0.2), inset 0 0 15px rgba(220,53,69,0.2);
text-shadow: 0 0 10px rgba(220,53,69,0.5);
}

/* Add shimmer effect for the button */
.landing-button-join::before {
content: '';
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
border-radius: 27px;
background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255,107,0,0.2) 25%,
    rgba(255,107,0,0.3) 50%,
    rgba(255,107,0,0.2) 75%,
    transparent 100%
);
z-index: -1;
animation: borderShimmer 3s ease-in-out infinite;
background-size: 200% 100%;
background-position: 100% 0;
}

@keyframes borderShimmer {
0% {
    background-position: 200% 0;
}
100% {
    background-position: -200% 0;
}
}

/* Update the shimmer for nearly full state */
.player-count-pill.nearly-full + .landing-button-join::before {
background: linear-gradient(90deg, 
    transparent 0%,
    rgba(220, 53, 69, 0.2) 25%,
    rgba(220, 53, 69, 0.3) 50%,
    rgba(220, 53, 69, 0.2) 75%,
    transparent 100%
);
}

/* Responsive styles */
@media (max-width:992px){
.landing-section{
height:100vh;
min-height:100vh;
padding:30px 0;
}
.landing-logo{
max-width:45%;
}
.landing-buttons{
max-width:550px;
}
.landing-button{
min-width:180px;
font-size:0.9rem;
padding:0.6rem 1.4rem;
}
.landing-button-join.mobile-view {
text-transform:uppercase;
letter-spacing:1px;
}
.landing-subtitle{
font-size:1.7rem;
letter-spacing:1.5px;
}
}

@media (max-width:768px){
.landing-section{
height:100vh;
min-height:100vh;
padding:25px 0;
}
.landing-logo{
max-width:55%;
}
.landing-buttons{
flex-direction:row;
gap:12px;
max-width:350px;
}
.landing-button{
font-size:0.8rem;
padding:0.5rem 1.2rem;
min-width:0;
width:auto;
}
.discord-icon{
width:14px;
height:14px;
margin-left:2px;
transition: transform 0.3s ease;
}
.servers-icon, .store-icon{
width:14px;
height:14px;
margin-left:2px;
transition: transform 0.3s ease;
}
.landing-subtitle{
font-size:1.1rem;
letter-spacing:1px;
}
.player-count-pill {
font-size:0.7rem;
padding:3px 10px;
margin-bottom:0;
border-radius:14px 14px 0 0;
}
.logo-container{
margin-bottom:90px;
}
}

/* Medium sized mobile devices */
@media (max-width:767px) and (min-width:481px){
.landing-container{
width: 90%;
max-width: 450px;
}

.landing-logo{
max-width:60%;
}

.landing-buttons{
max-width: 100%;
}

.landing-buttons-row {
display: flex;
justify-content: center;
align-items: stretch;
width: 100%;
max-width: 450px;
gap: 20px;
}

.landing-buttons-row .landing-button {
flex: 1 1 50%;
display: flex;
justify-content: center;
align-items: center;
padding: 0.8rem 1rem;
font-size: 0.9rem;
min-height: 45px;
}

/* Hide player count on tablets */
.player-count-pill {
display: none;
}

.player-count-wrapper {
display: none;
}

.landing-button-join{
display: none;
}

/* Make view servers button more prominent */
.landing-button-view-servers {
padding: 0.8rem 1rem;
font-size: 0.9rem;
}

.landing-button-discord {
padding: 0.8rem 1rem;
font-size: 0.9rem;
}
}

@media (max-width:480px){
.landing-section{
height:100vh;
min-height:100vh;
padding:20px 0;
}
.landing-logo{
max-width:65%;
}
.landing-button{
padding:0.5rem 1rem;
font-size:0.75rem;
min-width:120px;
}
.landing-button-join {
border-radius: 6px;
}
/* For mobile, make the VIEW SERVERS button more prominent since it's the only action */
.landing-button-view-servers {
padding: 0.7rem 1rem;
font-size: 0.85rem;
font-weight: 700;
box-shadow: 0 4px 15px rgba(46,204,113,0.15), inset 0 0 10px rgba(46,204,113,0.1);
}
.landing-button-view-servers:hover {
transform: translateY(-3px);
box-shadow: 0 6px 20px rgba(46,204,113,0.2), inset 0 0 15px rgba(46,204,113,0.2);
}

.landing-button-view-servers:hover .servers-icon {
    transform: scale(1.1);
}
.discord-icon{
width:14px;
height:14px;
margin-left:2px;
transition: transform 0.3s ease;
}
.servers-icon, .store-icon{
width:14px;
height:14px;
margin-left:2px;
transition: transform 0.3s ease;
}
.landing-subtitle{
font-size:0.9rem;
letter-spacing:0.8px;
margin-top:10px;
}
.player-count-pill {
display:none; /* Hide on mobile */
}
.logo-container{
margin-bottom:30px;
}
}

.join-button-container {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
}

.join-section {
display: flex;
align-items: flex-start;
justify-content: flex-start;
flex: 1;
background-color: rgba(30,30,30,0.6);
border: 2px solid rgba(255,255,255,0.15);
border-radius: 16px;
padding: 20px;
margin-bottom: 0;
position: relative;
overflow: hidden;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
}

.join-section::after {
content: '';
position: absolute;
top: 0;
right: -20%;
bottom: 0;
width: 80%;
background: url('../images/homigrad-render2.png') center center/cover no-repeat;
mask: linear-gradient(to right, transparent 0%, transparent 10%, rgba(255,255,255,0.1) 15%, rgba(255,255,255,0.2) 20%, rgba(255,255,255,0.3) 25%, rgba(255,255,255,0.4) 30%, rgba(255,255,255,0.5) 35%, rgba(255,255,255,0.6) 40%, rgba(255,255,255,0.7) 45%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.9) 55%, rgba(255,255,255,0.95) 60%, rgba(255,255,255,1) 65%);
-webkit-mask: linear-gradient(to right, transparent 0%, transparent 10%, rgba(255,255,255,0.1) 15%, rgba(255,255,255,0.2) 20%, rgba(255,255,255,0.3) 25%, rgba(255,255,255,0.4) 30%, rgba(255,255,255,0.5) 35%, rgba(255,255,255,0.6) 40%, rgba(255,255,255,0.7) 45%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.9) 55%, rgba(255,255,255,0.95) 60%, rgba(255,255,255,1) 65%);
opacity: 0.3;
z-index: 0;
pointer-events: none;
}

.join-section .server-info {
position: relative;
z-index: 1;
}

/* Removing the green line */
.player-count-wrapper::after {
content: none;
}

.player-count-wrapper.nearly-full::after {
content: none;
}

/* Override button styles to stay rounded */
.landing-button {
position: relative;
}

/* Height responsive styles */
@media (max-height: 800px) {
  .landing-section {
    padding: 40px 0;
  }
  
  .logo-container {
    margin-bottom: 80px;
  }
  
  .landing-logo {
    max-width: 35%;
  }
  
  .landing-subtitle {
    margin-top: 15px;
  }
}

@media (max-height: 700px) {
  .landing-section {
    padding: 30px 0;
  }
  
  .logo-container {
    margin-bottom: 65px;
  }
  
  .landing-logo {
    max-width: 30%;
  }
  
  .landing-subtitle {
    margin-top: 10px;
    font-size: 1.5rem;
  }
  
  .landing-buttons {
    margin-top: 20px;
  }
}

@media (max-height: 600px) {
  .landing-section {
    padding: 25px 0;
    overflow-y: auto;
  }
  
  .logo-container {
    margin-bottom: 45px;
  }
  
  .landing-logo {
    max-width: 25%;
  }
  
  .landing-subtitle {
    margin-top: 8px;
    font-size: 1.2rem;
  }
  
  .landing-buttons {
    margin-top: 15px;
  }
  
  .landing-button {
    padding: 0.6rem 1.2rem;
  }
}

/* Very small height devices */
@media (max-height: 500px) {
  .landing-section {
    padding: 15px 0;
    overflow-y: auto;
  }
  
  .landing-container {
    min-height: auto;
  }
  
  .logo-container {
    margin-bottom: 35px;
  }
  
  .landing-logo {
    max-width: 20%;
  }
  
  .landing-subtitle {
    margin-top: 5px;
    font-size: 1rem;
  }
  
  .landing-buttons {
    margin-top: 10px;
  }
  
  .landing-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* ===== MERGED FROM SERVER-BUTTONS.CSS ===== */

.landing-buttons-inline .landing-button {
    font-size: 1rem;
    padding: 1rem 2rem;
    width: auto;
    min-width: 160px;
    border-radius: 8px;
    flex: none;
    font-weight: 700;
}

.landing-buttons-inline .landing-button-view-servers {
    min-width: 160px;
}

.landing-buttons-inline .landing-button-discord {
    min-width: 140px;
}

.landing-buttons-inline .landing-button-store {
    min-width: 120px;
}



.landing-button-view-servers {
    background-color: rgba(46,204,113,0.15);
    color: #f5f5f5;
    border-color: rgba(46,204,113,0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.landing-button-view-servers:hover {
    color: #2ecc71;
    background-color: rgba(46,204,113,0.2);
    border-color: rgba(46,204,113,0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.landing-button-view-servers:hover .servers-icon {
    transform: scale(1.1);
}

.landing-button-store {
    background-color: rgba(255,107,0,0.15);
    color: #f5f5f5;
    border-color: rgba(255,107,0,0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.landing-button-store:hover {
    color: #ff6b00;
    background-color: rgba(255,107,0,0.2);
    border-color: rgba(255,107,0,0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.landing-button-store:hover .store-icon {
    transform: scale(1.1);
}

.join-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    gap: 15px;
}

.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.landing-buttons-inline {
    display: flex;
    gap: 15px;
}

.join-row {
    display: flex;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}

.join-button-container::before {
    content: none;
}

.join-button-container .join-section {
    margin-top: 0;
    width: 95%;
    max-width: none;
}

.start-playing-text {
    color: #f5f5f5;
    font-size: 2.4rem;
    margin-bottom: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 0 0 4px rgba(200, 200, 200, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 50%, #c0c0c0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 3s linear infinite;
    background-size: 200% auto;
    position: relative;
    opacity: 0;
    animation: fadeInDown 0.6s ease-out forwards;
    animation-delay: 0.35s;
}

.start-playing-text::after {
    display: none;
}

@keyframes textPulse {
    0% {
        filter: drop-shadow(0 0 2px rgba(255, 107, 0, 0.3)) brightness(1);
    }
    100% {
        filter: drop-shadow(0 0 3px rgba(255, 107, 0, 0.4)) brightness(1.05);
    }
}

@keyframes textShimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes textFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0);
    }
}

.server-note {
    font-size: 0.9rem;
    color: #ff6b6b;
    font-weight: 600;
    display: block;
    margin-top: 4px;
    text-transform: none;
    letter-spacing: 0.5px;
}

/* Ultra-wide screens: keep horizontal layout but adjust spacing */
@media (min-width: 1600px) {
    .landing-buttons-inline {
        gap: 20px;
    }
    
    .landing-buttons-inline .landing-button {
        font-size: 1rem;
        padding: 1rem 2rem;
        min-width: 160px;
    }
    
    .landing-buttons-inline .landing-button-view-servers {
        min-width: 160px;
    }
    
    .landing-buttons-inline .landing-button-discord {
        min-width: 140px;
    }
    
    .landing-buttons-inline .landing-button-store {
        min-width: 120px;
    }
}

/* Medium desktop screens: show buttons in logo container, hide top row buttons */
@media (min-width: 769px) and (max-width: 1200px) {
    .logo-container {
        margin-bottom: 80px;
    }
    
    .logo-container .landing-buttons-inline {
        display: flex; /* Show buttons in logo container */
        gap: 20px;
        margin-top: 40px;
    }
    
    .top-row .landing-buttons-inline {
        display: none; /* Hide buttons in top row, but keep START PLAYING NOW visible */
    }
    
    .landing-buttons-inline .landing-button {
        font-size: 1rem;
        padding: 1rem 2rem;
        min-width: 160px;
    }
    
    .landing-buttons-inline .landing-button-view-servers {
        min-width: 160px;
    }
    
    .landing-buttons-inline .landing-button-discord {
        min-width: 140px;
    }
    
    .landing-buttons-inline .landing-button-store {
        min-width: 120px;
    }
}

/* Mobile: show buttons in logo container, hide top row buttons */
@media (max-width: 768px) {
    .logo-container {
        margin-bottom: 60px;
    }
    
    .logo-container .landing-buttons-inline {
        display: flex; /* Show buttons in logo container */
        gap: 12px;
        margin-top: 25px;
    }
    
    .join-button-container {
        align-items: center;
        gap: 20px;
    }
    
    .top-row .landing-buttons-inline {
        display: none; /* Hide buttons in top row */
    }
    
    .landing-buttons-inline .landing-button {
        font-size: 0.9rem;
        padding: 0.8rem 1.2rem;
        width: auto;
        min-width: 130px;
        flex: none;
    }
    
    .landing-buttons-inline .landing-button-view-servers {
        min-width: 130px;
    }
    
    .landing-buttons-inline .landing-button-discord {
        min-width: 120px;
    }
    
    .landing-buttons-inline .landing-button-store {
        min-width: 100px;
    }
    
    /* Hide icons on mobile */
    .servers-icon,
    .discord-icon,
    .store-icon {
        display: none;
    }
    
    .join-row {
        width: 100%;
        max-width: 600px;
        gap: 15px;
    }
    
    .join-section {
        align-items: flex-start;
        padding: 15px;
        margin-bottom: 0;
    }
    
    .join-button-large {
        padding: 15px 30px;
        font-size: 1.1rem;
        min-width: 130px;
    }
    
    .start-playing-text {
        font-size: 2rem;
        margin-bottom: 0;
        align-self: center;
    }
}

/* Medium sized mobile devices / tablets */
@media (max-width: 767px) and (min-width: 481px) {
    .start-playing-text {
        display: none;
    }
    
    .join-row {
        display: none;
    }
    
    .top-row {
        justify-content: center;
    }
    
    .landing-buttons-inline {
        max-width: 450px;
        width: 100%;
        display: flex;
        align-items: stretch;
        justify-content: center;
        gap: 20px;
    }
    
    .landing-buttons-inline .landing-button {
        flex: none;
        min-width: auto;
        min-height: 45px;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        display: flex;
        justify-content: center;
        align-items: center;
        white-space: nowrap;
        width: auto;
    }
    
    .landing-buttons-inline .landing-button-view-servers {
        min-width: auto;
    }
    
    .landing-buttons-inline .landing-button-discord {
        min-width: 120px;
    }

    /* Make both buttons equally prominent */
    .landing-button-view-servers,
    .landing-button-discord {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), inset 0 0 10px rgba(0, 0, 0, 0.05);
    }
    
    .landing-button-view-servers:hover,
    .landing-button-discord:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), inset 0 0 15px rgba(0, 0, 0, 0.1);
    }

    .landing-button-view-servers:hover .servers-icon,
    .landing-button-discord:hover .discord-icon {
        transform: scale(1.1);
    }

    .landing-button-discord {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .join-button-container {
        align-items: center;
        gap: 15px;
    }
    
    .top-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .landing-buttons-inline .landing-button {
        font-size: 0.75rem;
        padding: 0.6rem 0.8rem;
        width: auto;
        min-width: 100px;
        flex: none;
    }
    
    .landing-buttons-inline .landing-button-view-servers {
        min-width: 100px;
    }
    
    .landing-buttons-inline .landing-button-discord {
        min-width: 90px;
    }
    
    .landing-buttons-inline .landing-button-store {
        min-width: 80px;
    }
    
    /* Hide START PLAYING NOW and related elements on mobile */
    .start-playing-text {
        display: none;
    }
    
    .join-row {
        display: none;
    }
}

/* Server capacity status gradients */
.join-section.nearly-full::before {
content: '';
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: radial-gradient(ellipse 300px 100% at -50px center, 
    rgba(255, 107, 0, 0.25) 0%,
    rgba(255, 107, 0, 0.15) 40%,
    rgba(255, 107, 0, 0.05) 70%,
    transparent 100%
);
z-index: 1;
pointer-events: none;
border-radius: 16px;
}

.join-section.getting-full::before {
content: '';
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: radial-gradient(ellipse 300px 100% at -50px center, 
    rgba(76,175,80, 0.25) 0%,
    rgba(76,175,80, 0.15) 40%,
    rgba(76,175,80, 0.05) 70%,
    transparent 100%
);
z-index: 1;
pointer-events: none;
border-radius: 16px;
}

/* Ensure server info stays above the gradient */
.join-section .server-info {
position: relative;
z-index: 2;
}

/* Add animation initial states and keyframes at the top */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes logoGlow {
    from {
        opacity: 0;
        transform: scale(0.9);
        filter: drop-shadow(0 0 8px rgba(var(--highlight-color-rgb), 0.25));
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 0 12px rgba(var(--highlight-color-rgb), 0.4));
    }
}

/* Animation classes - initially hidden, will be triggered by JavaScript */
.landing-buttons-inline .landing-button {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.landing-buttons-inline .landing-button:nth-child(1) {
    animation-delay: 0.2s;
}

.landing-buttons-inline .landing-button:nth-child(2) {
    animation-delay: 0.25s;
}

.landing-buttons-inline .landing-button:nth-child(3) {
    animation-delay: 0.3s;
}

.start-playing-text {
    opacity: 0;
    animation: fadeInDown 0.6s ease-out forwards;
    animation-delay: 0.35s;
}

.join-button-container .join-section {
    opacity: 0;
    animation: fadeInLeft 0.6s ease-out forwards;
    animation-delay: 0.4s;
}

.join-button-large {
    opacity: 0;
    animation: fadeInRight 0.6s ease-out forwards;
    animation-delay: 0.4s;
}

.server-info .server-name {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: 0.5s;
}

.server-info .server-players {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: 0.55s;
}

.server-info .server-gamemode {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: 0.6s;
}

.top-row .landing-buttons-inline .landing-button {
    opacity: 0;
    animation: scaleIn 0.5s ease-out forwards;
}

.top-row .landing-buttons-inline .landing-button:nth-child(1) {
    animation-delay: 0.65s;
}

.top-row .landing-buttons-inline .landing-button:nth-child(2) {
    animation-delay: 0.7s;
}

.top-row .landing-buttons-inline .landing-button:nth-child(3) {
    animation-delay: 0.75s;
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .landing-logo,
    .landing-subtitle,
    .landing-buttons-inline .landing-button,
    .start-playing-text,
    .join-button-container .join-section,
    .join-button-large,
    .server-info .server-name,
    .server-info .server-players,
    .server-info .server-gamemode,
    .top-row .landing-buttons-inline .landing-button {
        opacity: 1;
        animation: none;
        transform: none;
    }
}

/* Reduce animation intensity on smaller screens */
@media (max-width: 768px) {
    .landing-logo {
        animation-duration: 0.6s;
        animation-delay: 0s;
    }
    
    .landing-subtitle {
        animation-duration: 0.5s;
        animation-delay: 0.05s;
    }
    
    .landing-buttons-inline .landing-button:nth-child(1) {
        animation-delay: 0.1s;
        animation-duration: 0.4s;
    }
    
    .landing-buttons-inline .landing-button:nth-child(2) {
        animation-delay: 0.12s;
        animation-duration: 0.4s;
    }
    
    .landing-buttons-inline .landing-button:nth-child(3) {
        animation-delay: 0.14s;
        animation-duration: 0.4s;
    }
    
    .start-playing-text {
        animation-delay: 0.16s;
        animation-duration: 0.5s;
    }
    
    .join-button-container .join-section {
        animation-delay: 0.18s;
        animation-duration: 0.5s;
    }
    
    .join-button-large {
        animation-delay: 0.18s;
        animation-duration: 0.5s;
    }
    
    .server-info .server-name,
    .server-info .server-players,
    .server-info .server-gamemode {
        animation-duration: 0.4s;
    }
    
    .server-info .server-name {
        animation-delay: 0.2s;
    }
    
    .server-info .server-players {
        animation-delay: 0.22s;
    }
    
    .server-info .server-gamemode {
        animation-delay: 0.24s;
    }
    
    .top-row .landing-buttons-inline .landing-button {
        animation-duration: 0.4s;
    }
    
    .top-row .landing-buttons-inline .landing-button:nth-child(1) {
        animation-delay: 0.26s;
    }
    
    .top-row .landing-buttons-inline .landing-button:nth-child(2) {
        animation-delay: 0.28s;
    }
    
    .top-row .landing-buttons-inline .landing-button:nth-child(3) {
        animation-delay: 0.3s;
    }
} 