body {
    margin: 0px;
    padding: 0px;
    background-color: #F9FAFB !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
             Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue",
             Arial, sans-serif;
}
header {
    background-color: #f9fafb;
    padding: 0.5rem 2rem;
    border-bottom: 3px solid #eaeaea;
    position: relative;
}
header .site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header .logo {
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
    text-decoration: none;
}
header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
}
header nav a {
    color: #333;
    text-decoration: none;
    font-size: 1.0rem;
    transition: color 0.2s ease;
}
header nav a:hover {
    color: #0070f3;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}
@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }
    /* Hidden Menu State */
    header nav {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #f7f7f7;
        padding: 1rem;
        border-top: 1px solid #eaeaea;
        z-index: 100;
        max-height: 0;
        opacity: 0;
        transform: translateY(-20px);
        overflow: hidden;
        transition: all 0.4s ease;
    }
    /* Open Menu State */
    header nav.open {
        max-height: 200px;
        /* Adjust based on content */
        opacity: 1;
        transform: translateY(0);
    }
    header nav ul {
        flex-direction: column;
        gap: 1rem;
    }
}
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s;
}
.lazy-image[src^="data:image/svg+xml"] {
    opacity: 1;
}
.main-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px;
}
.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  margin-top: 10px;
}
.game-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}
.fullscreen-button {
  background: #212529;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.iframe-container {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.background-image,
.game-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
#gameIframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  display: none;
}
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  border: none;
  border-radius: 50px;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.play-button:hover {
  background: white;
  transform: translate(-50%, -50%) scale(1.05);
}
.play-button:active {
  transform: translate(-50%, -50%) scale(0.95);
}
/* Responsive design */
@media (max-width: 640px) {
  .game-header h1 {
    font-size: 1.25rem;
  }
  .fullscreen-button {
    padding: 10px 12px;
    font-size: 14px;
  }
  .iframe-container {
    height: 300px;
  }
  .play-button {
    padding: 12px 24px;
    font-size: 16px;
  }
}
.header {
    text-align: center;
    margin-bottom: 20px;
}
.billionaire-image {
    width: 144px;
    height: 144px;
    border-radius: 50%;
    margin-bottom: 16px;
}
h1 {
    font-size: 20px !important;
    margin-bottom: 10px;
    font-weight: bold;
}
.netWorth-counter {
    background-color: #b44b37;
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 20;
}
.netWorth {
    font-size: 24px;
    font-weight: bold;
}
.total-netWorth-spent {
    font-size: 14px;
    margin-top: 5px;
}
#productContainer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    padding-top: 10px;
}
.item-card {
    background: radial-gradient(592px at 48.2% 50%, #f0f0f0 0, #e4e1e1 74.6%);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.item-card img {
    width: 100%;
    height: 192px;
    object-fit: contain;
    margin-bottom: 10px;
}
.item-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}
.item-price {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}
.item-actions {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
}
.sell-button,
.buy-button {
    width: 100%;
    padding: 10px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.sell-button {
    background-color: #b44b37;
    color: white;
}
.buy-button {
    background-color: #13180a;
    color: white;
}
.sell-button:disabled,
.buy-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.item-quantity {
    width: 100%;
    text-align: center;
    font-weight: bold;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px 5px;
}
/* Responsive behavior for smaller screens */
@media (max-width: 760px) {
    #productContainer {
        grid-template-columns: 1fr;
    }
    .item-card {
        height: auto;
    }
    .item-name, .item-price, .item-actions {
        margin-bottom: 10px;
    }
}
.receipt {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    font-family: 'Inter', monospace;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    margin: auto;
}

/* ===== HEADER ===== */
.receipt-header {
    background: linear-gradient(135deg, #1e90ff, #00c6ff);
    color: #fff;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.receipt-header h3 {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 1px;
}

.receipt-logo {
    height: 34px;
}

/* ===== DETAILS ===== */
.receipt-details {
    text-align: left;
    font-size: 12px;
    color: #555;
    margin-bottom: 16px;
}

.receipt-details p {
    margin: 2px 0;
}

/* ===== ITEMS ===== */
.receipt-items {
    margin-bottom: 15px;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed #e5e5e5;
}

.receipt-item:last-child {
    border-bottom: none;
}

.receipt-item .name {
    flex: 1.4;
}

.receipt-item .quantity {
    flex: 0.4;
    text-align: left;
}

.receipt-item .price {
    flex: 1;
    text-align: right;
}

/* ===== HEADER ROW ===== */
.receipt-item-header {
    background: linear-gradient(135deg, #1e90ff, #00c6ff);
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 10px;
}

/* ===== TOTAL ===== */
.receipt-total {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 18px;
    border-top: 2px solid #1e90ff;
    padding-top: 12px;
    margin-top: 15px;
}

/* ===== FOOTER ===== */
.receipt-footer {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px dashed #ddd;
    text-align: center;
    font-style: italic;
    font-size: 13px;
    color: #555;
}

@media (max-width: 600px) {
    #productContainer {
        grid-template-columns: 1fr;
    }
}

.container.contentArea {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    padding-bottom: 50px;
    font-family: Arial, sans-serif;
    font-size: 19px;
    line-height: 1.6;
    margin-bottom: 20px;
}
.contentArea .card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 30px;
}
.contentArea .game-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.contentArea .game-card:hover {
    transform: scale(1.05);
}
.contentArea .game-card-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* Makes it a square */
    object-fit: cover;
    display: block;
}
.contentArea .game-card-title {
    padding: 10px;
    text-align: center;
    font-size: 16px;
}
@media (max-width: 1024px) {
    .contentArea .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 700px) {
    .contentArea .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 400px) {
    .contentArea .card-grid {
        grid-template-columns: 1fr;
    }
}
.contentArea h1, h2 {
    text-align: left;
    font-weight: bold;
}
.contentArea h1 {
    font-size: 1.7rem !important;
    margin-bottom: 10px;
}
.contentArea h2 {
    font-size: 1.5rem !important;
    margin-bottom: 20px;
    font-weight: bold;
    margin-top: 20px;
}
.contentArea h3 {
    font-size: 1.2rem !important;
    margin-bottom: 20px;
    font-weight: bold;
    margin-top: 20px;
}
.contentArea h4 {
    font-size: 1.0rem !important;
    margin-bottom: 1px;
    font-weight: bold;
    margin-top: 5px;
}
.contentArea .card h3 {
    padding: 15px;
    margin: 0;
    font-size: 1.2rem;
    text-align: center;
}


/* Additional small-screen styles for very narrow devices */
@media (max-width: 480px) {
    footer nav ul {
        gap: 0.25rem;
        /* Further reduce gap */
    }
    footer nav a {
        font-size: 0.8rem;
        margin: 0 0.2rem;
    }
    footer p {
        font-size: 0.75rem;
        padding: 0 1rem;
    }
}
button {
    border-radius: 0
}
button:focus:not(:focus-visible) {
    outline: 0
}
button,
input,
optgroup,
select,
textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}
.iframe-container {
    width: 100%;
    max-width: 1000px;
    padding-top: 65.00%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
}
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(40px) brightness(1.1);
    z-index: 1;
}
.game-image {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    z-index: 10;
}
iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: none;
    z-index: 5;
}
.play-button {
    position: absolute;
    top: calc(30% + 100px);
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0.5rem 1.0rem;
    margin-top: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    background-color: black;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
}
.play-button:hover {
    background-color: #c61212;
}
.play-button:active {
    transform: translate(-50%, -50%) scale(0.95);
}
@media (max-width: 768px) {
    .game-image {
        width: 100px;
        height: auto;
        top: 30%;
    }
   
    .play-button {
        top: calc(30% + 80px);
        padding: 0.5rem 1rem;
        font-size: 1.2rem;
    }
}
.receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.receipt-header h3 {
    margin: 0;
    font-size: 1.5rem;
}
.receipt-logo {
    max-height: 50px;
    object-fit: contain;
}
/* sidebar layouts */
.main-content {
            display: flex;
            flex-wrap: wrap;
            min-height: 100vh;
            max-width: 100%;
        }
       
        .sidebar {
           
            background-color: #F9FAFB;
            border-radius: 8px;
            height: fit-content;
        }
       
        .leftSide {
            order: 1;
        }
       
        .primary-content {
            flex: 1;
            min-width: 300px;
            order: 2;
        }
       
        .rightSide {
            order: 3;
        }
       
        /* Sidebar Content Styling */
        .sidebar-title {
            font-size: 1.2rem;
            font-weight: bold;
            margin-bottom: 15px;
            margin-top: 10px;
            padding-bottom: 10px;
            border-bottom: 1px solid #e5e7eb;
            color: #1f2937;
        }
       
        .sidebar-menu {
            list-style: none;
            padding: 0;
            margin: 0;
        }
       
        .sidebar-menu li {
            margin-bottom: 10px;
        }
       
        .sidebar-menu a {
            display: block;
            padding: 8px 10px;
            color: #374151;
            text-decoration: none;
            border-radius: 6px;
            transition: all 0.2s;
        }
       
        .sidebar-menu a:hover {
            background-color: #ffffff;
            color: #1f2937;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }
       
        .sidebar-menu a.active {
            background-color: #ffffff;
            font-weight: 500;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }
       
       
        /* Popular Games Grid */
        .sidebar-games {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 20px;
        }
       
        .game-card {
            background-color: #ffffff;
            border-radius: 8px;
            padding: 10px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            transition: transform 0.2s, box-shadow 0.2s;
            text-decoration: none;
            color: inherit;
        }
       
        .game-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            text-decoration: none;
            color: inherit;
        }
       
        .game-card-image {
            width: 100%;
            aspect-ratio: 1 / 1;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 8px;
        }
       
        .game-card-title {
            font-size: 0.85rem;
            font-weight: 600;
            margin: 0;
            line-height: 1.2;
            color: #1f2937;
        }
       
        .game-card-desc {
            font-size: 0.75rem;
            color: #6b7280;
            margin: 4px 0 0 0;
            line-height: 1.3;
        }
       
       
       
html, body {
  position: relative;
  overflow-x: clip;
}
body > iframe,
body > div[style*="z-index"] {
  position: fixed !important;
  right: 0 !important;
  left: auto !important;
  top: 0 !important;
}
button, a, input {
  pointer-events: auto;
}
.main-content {
  isolation: isolate;
}
:root {
    --sidebar-collapsed: 60px;
    --sidebar-expanded: 250px;
    --header-height: 80px;
}

.sidebar.leftSide {
    position: fixed;
    top: var(--header-height);
    left: 0;
    height: calc(100vh - var(--header-height));
    width: var(--sidebar-collapsed);
    background: #ffffff;
    box-shadow: 6px 0 20px rgba(0,0,0,0.08);
    transition: width 260ms ease;
    z-index: 999;
    overflow: hidden;
    /* Prevent scroll chaining to body */
    overscroll-behavior: contain;
}

.sidebar.leftSide:hover {
    width: var(--sidebar-expanded);
}

.sidebar-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 12px 8px;
    /* Scroll enabled */
    overflow-y: auto;
    /* Prevent page scroll when wheel is used here */
    overscroll-behavior: contain;
    /* Hide scrollbar (Firefox) */
    scrollbar-width: none;
}

.sidebar-inner::-webkit-scrollbar {
    width: 0;
    height: 0;
}
.sidebar-section {
    margin-bottom: 3px;
}
.sidebar-section.popular {
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 10px;
    text-decoration: none;
    color: #111;
    font-size: 14px;
    white-space: nowrap;
    transition: background 200ms ease;
}
.sidebar-item:hover {
    background: #f3f4f6;
}

.sidebar-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sidebar-item span {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 200ms ease, transform 200ms ease;
}

.sidebar.leftSide:hover .sidebar-item span {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 14px;
    padding-bottom: 35px; /* ✅ bottom gap added */
    border-top: 1px solid #e5e7eb;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
}

.sidebar.leftSide:hover .sidebar-footer {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.sidebar-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-left: 8px;
}

.sidebar-footer a {
    display: inline-block;
    width: fit-content;
    font-size: 14px;
    color: #555;
    text-decoration: none;
    padding: 2px 0;
}
.sidebar-footer a:hover {
    color: #000;
}

.copyright {
    font-size: 14px;
    color: #888;
    margin-top: 10px;
    line-height: 1.4;
}


@media (max-width: 768px) {
.leftSide {
    display: none;
}

}



.playMoreGames {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .playMoreGames {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .playMoreGames {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gameName {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative; /* For potential future overlays if needed */
}

.gameName:hover {
    transform: translateY(-5px);
}

.gameName img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gameName h3 {
    margin: 10px;
    font-size: 12px;
    color: #333;
    text-align: center;
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .playMoreGames {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .gameName img {
        height: 150px;
    }
    
    .gameName h3 {
        margin: 10px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .playMoreGames {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
    
    .gameName img {
        height: 180px;
    }
}


.netWorth-spent {
            margin: 0px 0;
            position: sticky;
            top: 78px;
            z-index: 15;
            
        }
        .progress-container {
            width: 100%;
            height: 20px;
            background-color: #e0e0e0;
            border-radius: 6px;
            overflow: hidden;
            margin-bottom: 5px;
        }
        .progress-fill {
            height: 100%;
            background-color: green;
            width: 0%;
            transition: width 0.3s ease, background-color 0.3s ease;
        }
        #spentPercentage {
            text-align: center;
            font-weight: bold;
            display: block;
            margin-top: 5px;
        }
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
        }
        .netWorth-spent.shake .progress-container {
            animation: shake 0.5s ease-in-out;
        }
        
        
.game-wrapper {
    max-width: 100%;
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.game-title {
    font-size: 20px;
    font-weight: 600;
}

.fullscreen-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background 0.15s ease;
}

.fullscreen-btn:hover {
    background: #000;
    transform: scale(1.05);
}

.game-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10.5;
    background: #eaf6fb;
    border-radius: 10px;
    overflow: hidden;
}

@media (max-width: 480px) {
    .game-container {
        aspect-ratio: 9 / 14;
    }
}

.game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}

.game-overlay {
    position: absolute;
    inset: 0;
    background: #e4e1e1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 5;
}

.game-thumb {
    width: 140px;
    height: 140px;
    border-radius: 18px;
    object-fit: cover;
}

.play-btn {
    padding: 12px 26px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: #000;
    color: #fff;
}





.money-compare {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    margin-top: 30px;
}

.money-compare h2 {
    margin-bottom: 10px;
    font-size: 22px;
    margin-top: 0px;
}

.money-compare p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.money-compare button {
    width: 100%;
    padding: 10px;
    background: #111827;
    color: #fff;
    font-size: 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.money-compare button:hover {
    background: #000000;
}

.result {
    margin-top: 15px;
    font-size: 15px;
    color: #111;
}