
/* Stats Grid and Stat Card */
.stats-detail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.stat-card {
    background: linear-gradient(135deg, rgba(11,34,51,0.95) 80%, #00b4d8 120%);
    border-radius: 12px;
    padding: 18px 20px 14px 20px;
    box-shadow: 0 2px 8px rgba(0,180,216,0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 70px;
    border: 2px solid #00b4d8;
    transition: box-shadow 0.2s, border 0.2s;
}
.stat-card:hover {
    box-shadow: 0 4px 16px rgba(0,180,216,0.18);
    border: 2.5px solid #4dd0e1;
}
.stat-label {
    font-size: 13px;
    color: #b3e5fc;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}
.stat-value {
    font-size: 26px;
    font-weight: 800;
    color: #00b4d8;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0,180,216,0.10);
}
/* Profile Tabs and Scrollable Stats */
.profile-tabs-container {
    margin: 20px 0;
}
.profile-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #00b4d8;
    margin-bottom: 18px;
    background: rgba(11,34,51,0.85);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 8px rgba(0,180,216,0.08);
    padding: 6px 8px 0 8px;
    align-items: flex-end;
}
.profile-tab-btn {
    background: none;
    border: none;
    color: #4dd0e1;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 28px 10px 28px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s, border-bottom 0.2s;
    border-bottom: 3px solid transparent;
    border-radius: 10px 10px 0 0;
    margin-bottom: -2px;
    position: relative;
    z-index: 1;
    box-shadow: 0 1px 4px rgba(0,180,216,0.04);
}
.profile-tab-btn.active {
    color: #fff;
    background: linear-gradient(90deg, #00b4d8 60%, #4dd0e1 100%);
    border-bottom: 3px solid #00b4d8;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 16px rgba(0,180,216,0.13);
    font-weight: 800;
    z-index: 2;
    position: relative;
}
.profile-tab-content {
    min-height: 120px;
}
.profile-stats-scroll {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 6px;
}
.recent-games-list {
    padding: 0 2px;
}
.recent-game-item {
    background: rgba(11,34,51,0.85);
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0,180,216,0.08);
    font-size: 15px;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.recent-game-item .game-result {
    font-weight: 700;
    color: #00b4d8;
}
.recent-game-item .game-date {
    font-size: 13px;
    color: #b3e5fc;
}
.recent-game-item .game-shark {
    font-size: 14px;
    color: #ffd700;
}
/* Meet the Dev Modal Custom Styles */
#devModal .modal-content {
    background: linear-gradient(135deg, #0b2233 80%, #00b4d8 120%);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,180,216,0.25), 0 2px 8px rgba(0,0,0,0.25);
    padding: 44px 32px 32px 32px;
    position: relative;
    max-width: 410px;
    color: #e2e8f0;
    animation: devModalPop 0.35s cubic-bezier(.68,-0.55,.27,1.55);
}
#devModal .modal-content h2 {
    color: #4dd0e1;
    font-size: 1.5em;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
#devModal .modal-content img {
    border: 3px solid #00b4d8;
    box-shadow: 0 2px 12px rgba(0,180,216,0.18);
    margin-bottom: 12px;
    background: #fff;
}
#devModal .modal-content h3 {
    color: #ffd700;
    font-size: 1.18em;
    margin-bottom: 6px;
    font-weight: 700;
}
#devModal .modal-content p {
    color: #b3e5fc;
    font-size: 15px;
    margin-bottom: 18px;
    line-height: 1.7;
}
#devModal .modal-content a {
    color: #ffd700;
    text-decoration: underline;
    margin: 0 10px;
    font-weight: 600;
    transition: color 0.2s;
}
#devModal .modal-content a:hover {
    color: #4dd0e1;
}
#devModal .modal-content button {
    background: linear-gradient(135deg, #00b4d8, #4dd0e1);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1em;
    padding: 12px 0;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(0,180,216,0.13);
    transition: background 0.2s, color 0.2s;
}
#devModal .modal-content button:hover {
    background: linear-gradient(135deg, #0096c7, #00b4d8);
    color: #ffd700;
}
@keyframes devModalPop {
    0% { opacity: 0; transform: scale(0.85) translateY(30px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{

font-family:Poppins;
background:linear-gradient(135deg,#061a40,#0b3c5d);
color:white;

}


/* NAVBAR */

.navbar{

display:flex;
justify-content:space-between;
align-items:center;

padding:20px 40px;

background:#071c2c;
box-shadow:0 5px 20px rgba(0,0,0,0.5);

}

.logo{

font-size:28px;
font-weight:800;
background:linear-gradient(135deg,#4dd0e1,#00b4d8);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
background-clip:text;

}

nav button{

background:none;
border:none;

color:white;

margin-left:20px;

font-size:16px;
cursor:pointer;

transition:.2s;

}

nav button:hover{

color:#4dd0e1;

}


/* HERO */

.hero{

text-align:center;

padding:120px 20px;

background:linear-gradient(rgba(0,0,0,0.4),rgba(0,0,0,0.7));

}

.hero h1{

font-size:60px;
margin-bottom:10px;

}

.hero p{

opacity:.8;

}

.play-btn{

margin-top:25px;

padding:14px 40px;

font-size:18px;

border:none;
border-radius:8px;

background:#00b4d8;

color:white;

cursor:pointer;

transition:.2s;

}

.play-btn:hover{

transform:scale(1.05);
background:#0096c7;

}


/* GAME GRID */

.menu-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

gap:25px;

padding:50px;

}


.game-card{

background:#0b2233;

padding:30px;

border-radius:12px;

text-align:center;

cursor:pointer;

transition:.25s;

box-shadow:0 10px 30px rgba(0,0,0,0.5);

}

.game-card i{

font-size:30px;
margin-bottom:10px;

color:#4dd0e1;

}

.game-card:hover{

transform:translateY(-8px);
background:#0f2d44;

}


/* STATS */

.stats{

max-width:600px;

margin:auto;

padding:40px;

}

.stats h2{

text-align:center;
margin-bottom:20px;

}

.stat{

display:flex;
justify-content:space-between;

padding:10px;

border-bottom:1px solid rgba(255,255,255,0.1);

}


/* FOOTER */

footer{

text-align:center;

padding:30px;

margin-top:50px;

background:#071c2c;

}

footer a{

color:#4dd0e1;
margin:0 10px;

}


/* MODAL */

.modal{

position:fixed;

top:0;
left:0;

width:100%;
height:100%;

background:rgba(0,0,0,0.7);

display:flex;
justify-content:center;
align-items:center;

}

.hidden{

display:none;

}

.modal-content{

background:#0b2233;

padding:40px;

border-radius:10px;

text-align:center;

max-height:90vh;

overflow-y:auto;

}

.modal-content button{

margin-top:15px;

padding:10px 20px;

border:none;

background:#00b4d8;

color:white;

cursor:pointer;

}

/* Avatar/PFP Selector Scrolling */
.avatar-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 12px;
    padding: 8px;
    overflow-y: auto;
    max-height: 250px;
    -webkit-overflow-scrolling: touch;
}

/* Profile Picture Modal Section Containment */
#profilePicModal > .modal-content > div {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#profilePicModal > .modal-content > div .avatar-selector {
    flex: 1;
    overflow-y: auto;
}

/* Username Edit Styles */
.username-edit-container {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideIn 0.3s ease-out;
}

.username-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #4dd0e1;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.username-input:focus {
    outline: none;
    border-color: #00b4d8;
    box-shadow: 0 0 8px rgba(0, 180, 216, 0.5);
}

.username-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.btn-save, .btn-cancel {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-save {
    background: linear-gradient(135deg, #00b4d8, #4dd0e1);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

.btn-save:hover {
    background: linear-gradient(135deg, #0096c7, #00b4d8);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 180, 216, 0.4);
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* END PAGE */

.end-page{

display:flex;
justify-content:center;
align-items:center;

height:100vh;

background:linear-gradient(135deg,#061a40,#0b3c5d);

overflow:hidden;

}


.end-container{

background:#0b2233;

padding:40px;

border-radius:12px;

text-align:center;

box-shadow:0 20px 50px rgba(0,0,0,0.6);

max-width:420px;

z-index:2;

}


.end-container h1{

font-size:40px;
margin-bottom:10px;

}

.end-container p{

font-size:18px;
margin:8px 0;

}


.end-buttons{

margin-top:20px;

}

.end-buttons button{

padding:12px 24px;

margin:5px;

border:none;

border-radius:8px;

background:#00b4d8;

color:white;

font-size:16px;

cursor:pointer;

transition:.2s;

}

.end-buttons button:hover{

background:#0096c7;
transform:scale(1.05);

}


/* BUBBLES */

.bubble{

position:absolute;

bottom:-50px;

border-radius:50%;

background:rgba(255,255,255,0.4);

animation:bubbleRise linear infinite;

}


@keyframes bubbleRise{

0%{

transform:translateY(0);
opacity:.5;

}

100%{

transform:translateY(-900px);
opacity:0;

}

}

/* SHARK PASS PAGE */

.sharkpass-container {

max-width: 750px;
margin: 40px auto;

background: rgba(11,34,51,0.9);

border-radius: 24px;

box-shadow: 0 10px 40px rgba(0,0,0,0.6);

padding: 40px 34px;

}


/* TITLE */

.sharkpass-container h1{

text-align:center;

font-size:2.3rem;
font-weight:700;

margin-bottom:12px;

background: linear-gradient(135deg,#00b4d8,#4dd0e1);

-webkit-background-clip:text;
background-clip:text;

color:transparent;

}


.sharkpass-desc{

text-align:center;

color:#b3e5fc;

margin-bottom:20px;

font-size:1.1em;

}


/* LEVEL TEXT */

.level-info{

text-align:center;

color:#f4a261;

font-weight:600;

margin-bottom:10px;

}


/* XP BAR */

.xp-bar-container{

position:relative;

background:#071c2c;

border-radius:14px;

overflow:hidden;

height:34px;

margin:20px 0;

box-shadow: inset 0 0 10px rgba(0,0,0,0.6);

}

.xp-bar-fill{

height:100%;

width:0%;

background:linear-gradient(90deg,#00b4d8,#4dd0e1);

transition:width .5s ease;

}

.xp-text{

position:absolute;

width:100%;

top:0;
left:0;

height:100%;

display:flex;
align-items:center;
justify-content:center;

font-weight:600;

color:white;

}


/* REWARD GRID */

.level-grid{

display:flex;

flex-direction:column;

gap:20px;

margin-top:20px;

}

.reward-row{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(120px,1fr));

gap:18px;

}

.reward-row.center{

display:flex;
justify-content:center;

}


/* REWARD CARD */

.reward-card{

background:#0b2233;

border-radius:14px;

padding:14px;

text-align:center;

transition:.25s;

box-shadow:0 6px 16px rgba(0,0,0,0.5);

}

.reward-card img{

width:80px;
height:80px;

border-radius:50%;

border:3px solid #00b4d8;

object-fit:cover;

transition:.3s;

}


/* LOCKED */

.reward-card img.locked{

filter:grayscale(1) brightness(.7);

border:3px dashed #ff6b6b;

}


/* UNLOCKED */

.reward-card.unlocked img{

box-shadow:0 0 10px #4dd0e1;

}

.reward-card:hover{

transform:translateY(-4px);

}


/* NEXT REWARD */

.reward-card.next{

border:3px solid #ff6b6b;

box-shadow:0 0 20px rgba(255,107,107,0.4);

}

.reward-card.next img{

width:110px;
height:110px;

}


/* NAME */

.reward-name{

margin-top:6px;

color:#4dd0e1;

font-weight:600;

font-size:14px;

}


/* SECTION TITLES */

.reward-section-title{

text-align:center;

color:#4dd0e1;

margin-top:10px;

}


/* XP NEEDED */

.xp-needed{

text-align:center;

font-size:14px;

color:#b3e5fc;

}


/* MAX REWARD */

.max-rewards{

text-align:center;

font-weight:700;

font-size:18px;

color:#4dd0e1;

margin-top:10px;

}


/* COSMETIC BADGE */

.cosmetic-badge{

text-align:center;

margin-top:30px;

padding:12px;

background:rgba(77,208,225,0.1);

border-radius:10px;

color:#4dd0e1;

font-size:12px;

font-weight:600;

border:1px dashed #4dd0e1;

}

/* AUTH CONTAINER */

.auth-container {
    /* EASTER EGG HUNT */
    .easter-egg-hunt {
        box-shadow: 0 2px 12px rgba(255, 223, 186, 0.5);
        border-radius: 50%;
        border: 2.5px solid #ffd700;
        background: #fffbe7;
        transition: transform 0.2s, box-shadow 0.2s;
        cursor: pointer;
    }
    .easter-egg-hunt:hover {
        transform: scale(1.13) rotate(-8deg);
        box-shadow: 0 6px 24px 0 #ffd70099;
    }
    display: flex;
    gap: 10px;
    align-items: center;
}

.auth-btn {
    background: #00b4d8;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.auth-btn:hover {
    background: #0088a0;
}

.nav-btn {
    background: linear-gradient(135deg, #00b4d8, #0088a0);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-btn i {
    font-size: 14px;
    display: inline;
}

.nav-btn span {
    font-size: 14px;
    display: inline;
}

.nav-btn:hover {
    background: linear-gradient(135deg, #0088a0, #006080);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 180, 216, 0.5);
}

.nav-btn:active {
    transform: translateY(0);
}

.profile-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    transition: transform 0.3s;
}

.profile-btn:hover {
    transform: scale(1.1);
}

.login-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.login-warning button {
    padding: 4px 12px;
    background: #ff9800;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
}

.login-warning button:hover {
    background: #e68900;
}

.hidden {
    display: none !important;
}

.login-form, .signup-form {
    display: block;
}

.login-form.hidden, .signup-form.hidden {
    display: none;
}

#profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
    background: #00b4d8;
}

#profile-pic:hover {
    opacity: 0.8;
    transition: opacity 0.3s;
}

/* MOBILE MEDIA QUERIES */

@media (max-width: 768px) {
    /* NAVBAR */
    .navbar {
        padding: 15px 20px;
        gap: 10px;
    }

    .logo {
        font-size: 22px;
        flex-shrink: 0;
    }

    nav {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    nav button {
        margin-left: 0;
        font-size: 12px;
        padding: 8px 10px;
    }

    /* HERO */
    .hero {
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 16px;
    }

    .play-btn {
        padding: 12px 32px;
        font-size: 16px;
    }

    /* GAME GRID */
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 20px;
        padding: 40px 20px;
    }

    .game-card {
        padding: 24px 16px;
    }

    .game-card i {
        font-size: 28px;
    }

    /* STATS */
    .stats {
        padding: 30px 20px;
    }

    .stat {
        flex-direction: column;
        padding: 12px 8px;
        font-size: 14px;
    }

    /* FOOTER */
    footer {
        padding: 20px;
        font-size: 14px;
    }

    footer a {
        margin: 0 5px;
    }

    /* MODAL */
    .modal-content {
        padding: 30px 20px;
        margin: 20px;
        width: 92%;
        max-width: 95vw;
        max-height: 85vh;
    }

    .modal-content button {
        padding: 10px 18px;
        font-size: 14px;
    }

    .avatar-selector {
        max-height: 250px;
    }

    /* PROFILE PIC MODAL */
    .avatar-selector {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)) !important;
        gap: 12px !important;
        padding: 8px !important;
        margin: 10px 0 !important;
    }

    /* PFP Modal Section Containment */
    #profilePicModal > .modal-content > div {
        max-height: calc(50vh - 80px);
    }

    /* PROFILE MODAL - STATS GRID */
    .stats-detail {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .profile-section img {
        width: 70px;
        height: 70px;
    }

    .profile-section > div:first-child {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .profile-section > div:first-child button {
        position: absolute;
        bottom: 0;
        right: -8px;
        min-width: 32px;
        min-height: 32px;
        padding: 0;
        visibility: visible !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #00b4d8, #0088a0);
        border: 2px solid rgba(7, 28, 44, 0.9);
        border-radius: 50%;
        font-size: 14px;
        cursor: pointer;
    }

    #edit-profile-btn {
        margin-left: 0;
    }

    #username-edit-container {
        flex-direction: column;
        width: 100%;
    }

    .username-input {
        width: 100%;
    }

    /* USERNAME EDIT */
    .username-edit-container {
        gap: 5px;
        flex-wrap: wrap;
    }

    .username-input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .btn-save, .btn-cancel {
        padding: 8px 12px;
        font-size: 12px;
        flex: 1;
    }

    /* REDEEM CODE SECTION */
    #redeem-code-input {
        font-size: 14px !important;
    }

    /* END PAGE */
    .end-container {
        padding: 30px 20px;
        margin: 20px;
        max-width: 100%;
    }

    .end-container h1 {
        font-size: 32px;
    }

    .end-container p {
        font-size: 16px;
    }

    .end-buttons button {
        padding: 10px 20px;
        margin: 5px 2px;
        font-size: 14px;
    }

    /* SHARK PASS */
    .sharkpass-container {
        max-width: 100%;
        margin: 20px;
        padding: 30px 20px;
        border-radius: 16px;
    }

    .sharkpass-container h1 {
        font-size: 1.8rem;
    }

    .sharkpass-desc {
        font-size: 1em;
    }

    /* XP BAR */
    .xp-bar-container {
        height: 30px;
        margin: 15px 0;
    }

    /* REWARD GRID */
    .reward-row {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 14px;
    }

    .reward-card {
        padding: 12px;
    }

    .reward-card img {
        width: 70px;
        height: 70px;
    }

    .reward-card.next img {
        width: 90px;
        height: 90px;
    }

    .reward-name {
        font-size: 12px;
    }

    /* AUTH CONTAINER */
    .auth-container {
        gap: 8px;
    }

    .auth-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .nav-btn {
        padding: 6px 8px;
        font-size: 11px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }

    .nav-btn i {
        font-size: 14px;
    }

    .nav-btn span {
        font-size: 10px;
    }

    .profile-btn {
        font-size: 20px;
    }

    #profile-pic {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    /* NAVBAR */
    .navbar {
        flex-direction: row;
        align-items: center;
        padding: 10px 12px;
        gap: 6px;
        justify-content: space-between;
    }

    .logo {
        font-size: 18px;
        flex-shrink: 0;
    }

    nav {
        display: flex;
        flex-direction: row;
        gap: 3px;
        flex-wrap: nowrap;
        min-width: 0;
    }

    nav button {
        margin-left: 0;
        margin-right: 0;
        font-size: 8px;
        padding: 4px 6px;
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        line-height: 1;
    }

    nav button i {
        font-size: 12px;
    }

    nav button span {
        font-size: 8px;
    }

    /* HERO */
    .hero {
        padding: 60px 15px;
    }

    .hero h1 {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .hero p {
        font-size: 14px;
    }

    .play-btn {
        padding: 10px 24px;
        font-size: 14px;
        min-height: 44px;
        min-width: 44px;
    }

    /* GAME GRID */
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
        padding: 12px;
    }

    .game-card {
        padding: 12px;
    }

    .game-card h2 {
        font-size: 14px;
        margin-top: 8px;
        margin-bottom: 4px;
    }

    .game-card p {
        font-size: 11px;
        line-height: 1.3;
    }

    .game-card i {
        font-size: 18px;
    }

    /* STATS */
    .stats {
        padding: 20px 15px;
    }

    .stats h2 {
        font-size: 18px;
    }

    .stat {
        font-size: 13px;
        padding: 10px 5px;
    }

    /* FOOTER */
    footer {
        padding: 15px 10px;
        font-size: 12px;
    }

    footer a {
        margin: 0 3px;
        display: block;
        margin-top: 5px;
    }

    /* MODAL */
    .modal-content {
        padding: 25px 15px;
        margin: 15px;
        max-width: calc(100% - 30px);
        width: 95%;
        max-height: 90vh;
    }

    .modal-content button {
        padding: 8px 14px;
        font-size: 12px;
        min-height: 44px;
    }

    .modal-content h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .modal-content h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .avatar-selector {
        max-height: 280px;
    }

    /* PROFILE MODAL - STATS GRID */
    .stats-detail {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stats-detail > div {
        padding: 12px !important;
    }

    .stats-detail > div p:last-child {
        font-size: 18px !important;
    }

    .stats-detail > div p:first-child {
        font-size: 11px !important;
    }

    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 15px !important;
        position: relative;
    }

    .profile-section img {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }

    .profile-section > div:first-child {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        width: 100%;
    }

    .profile-section > div:first-child button {
        position: absolute;
        bottom: 0;
        right: -8px;
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        padding: 0;
        font-size: 14px;
        visibility: visible !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #00b4d8, #0088a0);
        border: 2px solid rgba(7, 28, 44, 0.9);
        border-radius: 50%;
    }

    /* USERNAME EDIT */
    .username-edit-container {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .username-input {
        width: 100%;
        padding: 10px 12px;
        font-size: 14px;
    }

    .btn-save, .btn-cancel {
        width: 100%;
        padding: 10px 12px;
        font-size: 12px;
        min-height: 44px;
    }

    /* REDEEM CODE SECTION */
    #redeem-code-input {
        padding: 10px 12px !important;
        font-size: 14px !important;
        width: 100% !important;
    }

    /* PROFILE PIC MODAL */
    #profilePicModal .modal-content {
        max-width: 100%;
        max-height: 85vh;
        padding: 15px 12px;
        margin: 10px 5px;
        width: 100%;
    }

    #profilePicModal .modal-content h2 {
        font-size: 16px;
    }

    #profilePicModal .modal-content h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    /* PFP Modal Section Containment */
    #profilePicModal > .modal-content > div {
        max-height: calc(50vh - 80px);
    }

    .avatar-selector {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)) !important;
        gap: 8px !important;
        padding: 6px !important;
        margin: 8px 0 !important;
        max-height: 200px !important;
    }

    .avatar-selector > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .avatar-selector > div > div {
        width: 70px !important;
        height: 70px !important;
    }

    /* END PAGE */
    .end-page {
        height: auto;
        min-height: 100vh;
        padding: 20px 0;
    }

    .end-container {
        padding: 25px 15px;
        margin: 15px;
        max-width: 100%;
    }

    .end-container h1 {
        font-size: 24px;
    }

    .end-container p {
        font-size: 14px;
    }

    .end-buttons button {
        padding: 10px 18px;
        margin: 4px 2px;
        font-size: 12px;
        min-height: 44px;
    }

    /* SHARK PASS */
    .sharkpass-container {
        margin: 15px;
        padding: 20px 15px;
    }

    .sharkpass-container h1 {
        font-size: 1.5rem;
    }

    .sharkpass-desc {
        font-size: 0.95em;
    }

    .level-info {
        font-size: 14px;
    }

    /* XP BAR */
    .xp-bar-container {
        height: 28px;
    }

    .xp-text {
        font-size: 12px;
    }

    /* REWARD GRID */
    .reward-row {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 12px;
    }

    .reward-card {
        padding: 10px;
    }

    .reward-card img {
        width: 60px;
        height: 60px;
    }

    .reward-card.next img {
        width: 75px;
        height: 75px;
    }

    .reward-name {
        font-size: 11px;
        margin-top: 4px;
    }

    .xp-needed {
        font-size: 12px;
    }

    .cosmetic-badge {
        font-size: 11px;
        margin-top: 20px;
    }

    /* AUTH CONTAINER */
    .auth-container {
        gap: 3px;
        flex-direction: row;
        flex-wrap: nowrap;
        min-width: 0;
    }

    .auth-btn {
        padding: 6px 8px;
        font-size: 9px;
        flex: 1;
        min-width: 0;
        min-height: 36px;
        white-space: nowrap;
    }

    .nav-btn {
        padding: 4px 6px;
        font-size: 8px;
        flex: 1;
        min-width: 0;
        min-height: 32px;
        margin-left: 0;
        margin-bottom: 0;
        line-height: 1.2;
    }

    .profile-btn {
        font-size: 18px;
        flex-shrink: 0;
    }

    #profile-pic {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .login-warning {
        flex-direction: column;
        gap: 8px;
    }

    .login-warning button {
        width: 100%;
        min-height: 40px;
    }
}
