/* === Reset & Base Layout === */
body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    background-color: #A3FDA8;
    font-family: 'Alan Sans', cursive;
    color: #000000;
}

.main-container {
    width: 100%;
    max-width: 600px;
    padding: 0 20px 0;
    box-sizing: border-box;
}

.title {
    font-size: 36px;
    text-align: center;
}

.subtitle {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.5px;
    text-align: center;
}

h2 {
    text-align: center;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    min-height: 60px;
    margin-top: 5px;
}

/* === User Tries Group === */
.user-tries-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.tries-counter {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: inherit;
    font-size: 13px;
    font-weight: 700;
}

.user-profile-icon svg {
    width: 30px;
    height: 30px;
}

.tries-count {
    margin-right: 2px;
}

/* === Hamburger Menu === */
.hamburger-menu {
    cursor: pointer;
    z-index: 1001;
    margin-top: 4px;
}

.hamburger-icon {
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    height: 4px;
    width: 100%;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-icon span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger-menu.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-icon span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* === Navigation Menu === */
.nav-menu {
    position: fixed;
    top: 6px;
    right: -100%;
    width: 250px;
    bottom: 6px;
    display: flex;
    flex-direction: column;
    padding: 40px 30px 30px 30px;
    transition: right 0.3s ease;
    z-index: 1000;
    background: white;
    border-radius: 30px 0 0 30px;
    box-shadow: 0 0 60px 10px rgba(0, 0, 0, 0.8);
}

.nav-menu.active {
    right: 0;
}

.nav-item {
    padding: 15px 0;
    text-decoration: none;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    color: black;
}

.nav-item svg {
    flex-shrink: 0;
}

.glass-panel {
    padding: 35px 25px;
    margin-bottom: 25px;
    text-align: center;
    border-radius: 40px;
    border: 3px solid #000;
    background: #FFF;
    box-shadow: 6px 7px 0 0 #000;
}

/* === Welcome Steps === */
.welcome-steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.welcome-step-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
    padding: 20px;
    margin-bottom: 5px;
}

.welcome-step-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: #a2fba7;
    color: #000;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.welcome-step-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 4px;
}

.welcome-step-desc {
    font-size: 14px;
    color: #333;
}

.no-panel {
    margin-bottom: 25px;
    text-align: center;
}

.button {
    padding: 18px;
    margin: 20px 0;
    width: 100%;
    text-align: center;
    border-radius: 999px;
    border: 2px solid #141414;
    background: linear-gradient(0deg, #FF6B00 0%, #FF6B00 100%), #FFF;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 20px;
}

/* === Auth Section === */
.auth-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    text-align: left;
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    margin-left: 15px;
    font-weight: 700;
    font-size: 18px;
}

.custom-input {
    width: 100%;
    padding: 16px 25px;
    box-sizing: border-box;
    outline: none;
    border-radius: 999px;
    border: 2px solid transparent;
    background: #EFEFEF;
    font-family: inherit;
    font-size: 17px;
    transition: all 0.2s ease-in-out;
}

.custom-input:focus {
    background: #FFF;
    border-color: #000;
}

.custom-input.is-invalid {
    border-color: #dc3545;
}

.auth-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.invalid-feedback {
    display: block;
    margin-top: 5px;
    margin-left: 15px;
}

.btn-primary {
    padding: 18px;
    margin: 10px 0;
    width: 100%;
    text-align: center;
    border-radius: 999px;
    border: 3px solid #000;
    background: #FF6B00;
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0px 4px 0px 0px #000;
    transition: all 0.1s;
    font-family: inherit;
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0px 2px 0px 0px #000;
}

.btn-secondary {
    padding: 10px 20px;
    border-radius: 999px;
    border: 2px solid #000;
    background: #FFF;
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* === Competitions === */
.competitions-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    margin-top: 10px;
}

.competitions-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-bottom: 50px;
}

.competition-card {
    background: #FFF;
    border: 3px solid #000;
    border-radius: 45px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
    position: relative;
    box-shadow: 0 4px 0 rgba(0,0,0,1);
}

.competition-card:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0,0,0,1);
}

.card-image-container {
    background: #E5E7EB;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.card-content {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-align: left;
}

.card-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 20px;
}

.timer-icon {
    flex-shrink: 0;
}

.timer-text b {
    color: #000;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-stats {
    display: flex;
    gap: 10px;
}

.stat-badge-new {
    background: #F3F4F6;
    border-radius: 20px;
    padding: 6px 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.stat-badge {
    background: #F3F4F6;
    border-radius: 20px;
    padding: 6px 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    font-weight: 500;
    text-wrap-mode: nowrap;
}

.stat-icon {
    flex-shrink: 0;
}

.card-play-btn {
    width: 60px;
    height: 60px;
    background: #FF6B00;
    border: 3px solid #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: transform 0.2s ease;
}

.competition-card:hover .card-play-btn {
    transform: scale(1.05);
}

/* === Profile Stats === */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.stat-card {
    background: #FFF;
    border: 2px solid #000;
    border-radius: 20px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.stat-card-icon {
    width: 45px;
    height: 45px;
    background: #F0F0F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #8E8E93;
    letter-spacing: 0.5px;
}

.stat-card-value {
    font-size: 24px;
    font-weight: 700;
}

.best-results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.best-result-item {
    background: #FFF;
    border: 2px solid #000;
    border-radius: 15px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.best-result-name {
    font-size: 14px;
    font-weight: 600;
}

.best-result-score {
    font-size: 14px;
    font-weight: 700;
}

/* === Game === */
.game-header {
    display: none;
}

.game-stat-bubble {
    flex: 1;
    padding: 15px !important;
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.game-timer-container {
    text-align: center;
    margin: 40px 0 10px;
}

.game-timer {
    font-size: 48px;
    font-weight: 700;
    color: #000;
    width: 210px;
    text-align: left;
    margin: 0 auto;
}

.game-area {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.game-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0 !important;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px !important;
    border: 3px solid #000 !important;
    box-shadow: none !important;
    background: #000;
}

.start-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    overflow: hidden;
}

.overlay-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

#start-btn {
    position: relative;
    z-index: 2;
    width: auto !important;
    min-width: 140px;
    padding: 15px 30px;
    font-size: 24px;
    border-radius: 30px;
    box-shadow: none;
}

.game-footer-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.game-stat-bubble-new {
    background: #FFF;
    border: 1.5px solid #000;
    border-radius: 999px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    justify-content: center;
    white-space: nowrap;
    box-shadow: 0 2px 0 0 #000;
}

.game-stat-bubble-new .stat-title {
    color: #000;
    font-size: 12px;
}

.game-stat-bubble-new .stat-value {
    font-weight: 700;
}

.game-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 1.5px solid #000;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 0 0 #000;
    cursor: pointer;
}

.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.puzzle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    width: 100%;
    height: 100%;
    gap: 2px;
}

.puzzle-piece {
    width: 100%;
    height: 100%;
    background-size: 300% 300%;
    cursor: pointer;
    touch-action: none;
    user-select: none;
    box-sizing: border-box;
}

.puzzle-piece:active {
    cursor: grabbing;
}

.puzzle-piece.drag-source-hidden {
    background-image: none !important;
}

.full-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    background: rgba(0, 0, 0, 0.5);
}

.full-image-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.game-actions {
    margin-top: 20px;
    margin-bottom: 20px;
}

.footer {
    text-align: center;
    margin: 40px 0 15px;
}

.auth-section textarea.custom-input {
    resize: none;
    line-height: 1.4;
    padding-top: 20px;
}

.welcome-footer {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 0 10px;
}

.welcome-footer-info {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 25px;
}

.welcome-footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
}

.welcome-footer-links.secondary {
    margin-bottom: 30px;
}

.welcome-footer-links a {
    color: #000;
    text-decoration: underline;
    font-size: 18px;
    font-weight: 400;
}

.welcome-footer-copyright {
    font-size: 18px;
}

.welcome-footer-copyright p {
    margin: 0;
    line-height: 1.4;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

.countdown {
    display: flex;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 20px;
}

.countdown-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 50px;
    padding: 6px 16px;
}

.countdown-inner > * {
    padding: 0 2px;
}

.countdown-label {
    font-size: 11px;
    margin-right: 5px;
    color: #5B5B5B;
    font-weight: 100;
}

.countdown-value {
    font-family: 'JetBrains Mono', cursive;
    font-size: 20px;
}

/* Welcome Carousel Section */
.welcome-carousel-section {
    margin: 40px 0;
}

.welcome-section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.welcome-carousel-swiper {
    overflow: hidden;
    padding-bottom: 8px;
}

.welcome-carousel-swiper .swiper-slide {
    width: 260px;
}

.welcome-card {
    background: #fff;
    border-radius: 20px;
    text-decoration: none;
    color: #141414;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.welcome-card-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 6px 12px;
}

.welcome-card-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
}

.welcome-card-body {
    padding: 0 8px 8px;
}

.welcome-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: left;
}

.welcome-card-countdown {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    color: #5F5F5F;
}

.welcome-card-countdown strong {
    color: #5F5F5F;
    font-family: 'JetBrains Mono', cursive;
    font-size: 13px;
}

.welcome-card-arrow {
    position: absolute;
    bottom: 10px;
    right: 6px;
    width: 40px;
    height: 40px;
    background: #FF6600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid black;
}

/* Welcome Winners Section */
.welcome-winners-section {
    margin: 40px 0;
}

.welcome-winners-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.welcome-winner-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    min-width: 140px;
}

.welcome-winner-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #eee;
    margin: 0 auto 10px;
}

.welcome-winner-name {
    font-weight: 700;
    font-size: 15px;
}

.welcome-winner-prize {
    font-size: 13px;
    color: #5B5B5B;
}

/* Welcome FAQ Section */
.welcome-faq-section {
    margin: 40px 0;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-accordion-item {
    border: 2px solid #000;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.faq-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    color: #1a1a1a;
}

.faq-accordion-chevron {
    flex-shrink: 0;
    transition: transform 0.25s ease;
    color: #888;
}

.faq-accordion-item.active .faq-accordion-chevron {
    transform: rotate(180deg);
}

.faq-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.faq-accordion-item.active .faq-accordion-body {
    max-height: 200px;
}

.faq-accordion-body p {
    padding: 0 16px 16px;
    margin: 0;
    color: #000;
    font-size: 14px;
    line-height: 1.5;
}

.link {
    color: #000;
    margin: 10px 0 6px;
}

.tries-label {
    color: black;
}

.tries-count {
    color: black;
    font-weight: bold;
}

/* Performance Overview */
.performance-bar-container {
    margin: 15px 0;
}

.performance-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #8E8E93;
    margin-bottom: 8px;
}

.performance-bar-bg {
    height: 12px;
    background: #F0F0F0;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.performance-bar-fill {
    height: 100%;
    background: #76E07E;
    border-radius: 6px;
}

.performance-bar-values {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-weight: 700;
    font-size: 14px;
}

.leader-value {
    color: #76E07E;
}

/* Progress Chart */
.progress-chart {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 120px;
    margin: 30px 0 10px;
    padding: 0 10px;
}

.chart-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.chart-bar-container {
    width: 100%;
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}

.chart-bar {
    width: 80%;
    background: linear-gradient(180deg, #D9D9D9 0%, #BDBDBD 100%);
    border-radius: 4px;
    position: relative;
    transition: height 0.3s ease;
}

.chart-bar.highlight {
    background: #76E07E;
}

.chart-value {
    font-size: 11px;
    color: #8E8E93;
    position: absolute;
    top: -20px;
    width: 100%;
    text-align: center;
}

.chart-label {
    font-size: 11px;
    color: #8E8E93;
}

/* Recent Attempts */
.recent-attempts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attempt-item {
    background: #FFF;
    border: 2px solid #000;
    border-radius: 20px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.attempt-rank {
    width: 40px;
    height: 40px;
    background: #F0F0F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #8E8E93;
    font-size: 14px;
}

.attempt-main {
    flex: 1;
    margin-left: 15px;
}

.attempt-time {
    font-size: 18px;
    font-weight: 700;
    display: block;
}

.attempt-date {
    font-size: 12px;
    color: #8E8E93;
}

.attempt-moves {
    font-weight: 700;
    font-size: 15px;
}

/* Packages redesign */
.packages-grid-new {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.package-card-new {
    padding: 20px 10px;
    border-radius: 20px;
    border: 2px solid #000;
    background: #FFF;
    text-align: center;
}

.package-tries-new {
    margin-bottom: 15px;
}

.tries-number-new {
    font-size: 28px;
    font-weight: 700;
    display: block;
}

.tries-text-new {
    font-size: 12px;
    color: #8E8E93;
}

.package-price-new {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.btn-buy-new {
    background: #FF6B00;
    border: 2px solid #000;
    border-radius: 999px;
    color: #000;
    font-weight: 700;
    padding: 8px;
    width: 100%;
    cursor: pointer;
    font-size: 14px;
    text-transform: none;
}

.view-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 15px;
    text-decoration: none;
    color: #000;
    font-weight: 600;
    font-size: 14px;
}

/* Leaderboard redesign */
.leaderboard-container {
    margin-top: 30px;
    padding-bottom: 50px;
}

.leaderboard-section {
    margin-bottom: 50px;
}

.leaderboard-title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
}

.leaderboard-card {
    background: #FFF;
    border: 3px solid #000;
    border-radius: 28px;
    box-shadow: 4px 6px 0 0 #000;
    overflow: hidden;
    margin-bottom: 25px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #EFEFEF;
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-rank {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #EFEFEF;
    color: #8E8E93;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.leaderboard-rank.rank-1 {
    background: #FF6B00;
    color: #FFF;
}

.leaderboard-player {
    flex: 1;
    margin-left: 15px;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #000;
    margin-left: 10px;
    letter-spacing: -0.5px;
}

.leaderboard-moves {
    font-size: 14px;
    color: #8E8E93;
    margin-left: 15px;
    width: 45px;
    text-align: right;
}

.btn-start-contest {
    background: #FF6B00;
    border: 3px solid #000;
    border-radius: 999px;
    box-shadow: 0 5px 0 0 #000;
    color: #000;
    font-weight: 700;
    padding: 18px;
    display: block;
    text-align: center;
    text-decoration: none;
    font-size: 20px;
    margin-top: 20px;
    transition: all 0.1s;
}

.btn-start-contest:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 0 #000;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-n2 {
    margin-top: -0.5rem !important;
}

.history-tabs .tab-btn.active {
    background-color: #FF6B00;
    color: #000;
}

/* Custom Swal Design for Game Win */
.swal2-container.game-win-backdrop {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.swal2-popup.game-win-modal {
    border-radius: 40px !important;
    border: 3px solid #000 !important;
    padding: 40px 10px 50px !important;
    background-color: #fff !important;
    background-image: url('../bg.png') !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.game-win-modal .swal2-close {
    font-size: 24px !important;
    color: #000 !important;
    margin-top: -30px;
}

.win-container {
    text-align: center;
}

.win-performance-box {
    background: #FFF;
    border: 3px solid #000;
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 4px 5px 0 0 #000;
}

.win-performance-text {
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

.win-performance-text strong {
    font-weight: 900;
}

.win-stats-card {
    background: #FFF;
    border: 3px solid #000;
    border-radius: 20px;
    padding: 25px 20px;
    margin-bottom: 20px;
    box-shadow: 4px 6px 0 0 #000;
}

.win-stat-label-gray {
    font-size: 13px;
    color: #8E8E93;
    margin-bottom: 4px;
}

.win-stat-time-big {
    font-size: 42px;
    font-weight: 800;
    color: #000;
    line-height: 1;
    margin-bottom: 4px;
    font-family: 'JetBrains Mono', monospace;
}

.win-stat-moves-small {
    font-size: 14px;
    color: #8E8E93;
    margin-bottom: 20px;
}

.win-stat-gap-container {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    border-top: 2px solid #EFEFEF;
    padding-top: 20px;
    margin-top: 10px;
}

.win-stat-gap-container span {
    color: #FF1A1A;
}

.win-prompt-text {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #000;
}

.win-actions-new {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-win-primary {
    background: #FF6B00 !important;
    border: 3px solid #000 !important;
    border-radius: 999px !important;
    color: #000 !important;
    font-weight: 800 !important;
    font-size: 17px !important;
    padding: 15px !important;
    box-shadow: 0 4px 0 0 #000 !important;
    cursor: pointer;
    text-decoration: none;
    display: block;
    width: 100%;
    transition: all 0.1s;
}

.btn-win-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 0 #000 !important;
}

.btn-win-secondary {
    background: #FFF !important;
    border: 3px solid #8E8E93 !important;
    border-radius: 999px !important;
    color: #8E8E93 !important;
    font-weight: 800 !important;
    font-size: 17px !important;
    padding: 15px !important;
    cursor: pointer;
    text-decoration: none;
    display: block;
    width: 100%;
}

/* Google Sign-In Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #333;
    color: white;
    border: 1px solid #222;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

.btn-google:hover {
    background-color: #222;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #999;
    font-size: 0.9rem;
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--glass-border);
}

.auth-separator:not(:empty)::before {
    margin-right: 15px;
}

.auth-separator:not(:empty)::after {
    margin-left: 15px;
}
