/* ==========================================================
   SATOSHI PLAYS / 
   CLEAN RESPONSIVE STYLE.CSS
   Desktop + Mobile + MetaMask + Fullscreen
========================================================== */

:root {
    --bitcoin-orange: #F7931A;
    --gold: #f3ba2f;
    --bg-dark: #050505;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --border-color: rgba(255, 255, 255, 0.12);
    --text-gray: #ccc;
}

/* ==========================================================
   GLOBAL
========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 80px 0 0;

    color: #fff;
    font-family: 'Inter', Arial, sans-serif;

    background:
        radial-gradient(
            circle at 50% -20%,
            #3a2205,
            transparent 40%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(247, 147, 26, .08),
            transparent 30%
        ),
        #050505;

    background-image: url('assets/pozadinadesktop3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    overflow-x: hidden;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font-family: inherit;
}

canvas {
    display: block;
    max-width: 100%;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

/* ==========================================================
   NAVBAR
========================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 100%;
    min-height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 47px;

    background: rgba(10, 10, 10, .85);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    border-bottom: 1px solid var(--border-color);

    flex-wrap: nowrap;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
}

.nav-left {
    gap: 30px;
}

.nav-right {
    gap: 8px;
    margin-left: auto;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--bitcoin-orange);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    transition: .3s;
}

.nav-links a:hover {
    color: var(--bitcoin-orange);
}

.social-links {
    display: flex;
    gap: 10px;
}

.btn-social {
    padding: 8px 18px;

    color: #fff;
    background: #222;

    border: 1px solid #444;
    border-radius: 20px;

    text-decoration: none;
    font-size: 12px;

    transition: .3s;
}

.btn-social:hover {
    color: #000;
    background: var(--bitcoin-orange);
}

/* ==========================================================
   PREMIUM NAVIGATION
========================================================== */

.nav-link {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    height: 38px;
    padding: 0 14px;

    color: #aeb4c0;
    text-decoration: none;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.018)
        );

    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;

    transition:
        .25s ease,
        transform .25s ease,
        border-color .25s ease;
}

.nav-link::before {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: inherit;

    background:
        linear-gradient(
            135deg,
            rgba(247,147,26,.14),
            transparent 55%
        );

    opacity: 0;
    transition: .25s ease;

    pointer-events: none;
}

.nav-link:hover {
    color: #fff;
    border-color: rgba(247,147,26,.45);
    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(0,0,0,.35),
        0 0 20px rgba(247,147,26,.08);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-icon {
    position: relative;
    z-index: 1;

    color: #f7931a;
    font-size: 14px;
}

.nav-link span:last-child {
    position: relative;
    z-index: 1;
}

/* ==========================================================
   GAMES NAV BUTTON
========================================================== */

#gamesNavBtn {
    position: relative;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 17px !important;

    color: #121212 !important;

    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: .3px;

    background:
        linear-gradient(
            135deg,
            #ffd95a 0%,
            #f3ba2f 45%,
            #d99616 100%
        ) !important;

    border: 1px solid rgba(255,220,100,.9) !important;
    border-radius: 10px !important;

    box-shadow:
        0 0 0 1px rgba(243,186,47,.15),
        0 5px 18px rgba(243,186,47,.35),
        0 0 30px rgba(243,186,47,.15);

    text-decoration: none;

    transition:
        transform .2s ease,
        box-shadow .25s ease,
        filter .25s ease;
}

#gamesNavBtn::before {
    content: "";

    position: absolute;
    inset: -2px;

    border-radius: 12px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.45),
            transparent
        );

    opacity: 0;
    transform: translateX(-100%);

    pointer-events: none;
}

#gamesNavBtn .nav-icon {
    font-size: 17px;
    line-height: 1;

    filter:
        drop-shadow(0 0 4px rgba(255,255,255,.5));

    transition: transform .25s ease;
}

#gamesNavBtn span:last-child {
    text-shadow:
        0 1px 0 rgba(255,255,255,.25);
}

#gamesNavBtn:hover {
    transform: translateY(-2px) scale(1.04);
    filter: brightness(1.08);

    box-shadow:
        0 7px 25px rgba(243,186,47,.55),
        0 0 40px rgba(243,186,47,.25);
}

#gamesNavBtn:hover::before {
    opacity: 1;
    animation: gamesButtonShine .7s ease;
}

#gamesNavBtn:hover .nav-icon {
    transform: rotate(-8deg) scale(1.15);
}

#gamesNavBtn:active {
    transform: translateY(0) scale(.98);

    box-shadow:
        0 3px 12px rgba(243,186,47,.4);
}

@keyframes gamesButtonShine {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

/* ==========================================================
   LOGO EFFECT
========================================================== */

.logoSplash {
    position: relative;

    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;

    color: #f3ba2f;

    cursor: pointer;

    text-shadow:
        0 0 5px #f3ba2f,
        0 0 15px rgba(243,186,47,.8),
        0 0 30px rgba(243,186,47,.5);

    animation:
        logoPulse 3s infinite ease-in-out,
        logoFloat 4s infinite ease-in-out;

    overflow: hidden;
}

.logoSplash::after {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 50%;
    height: 100%;

    background:
        linear-gradient(
            120deg,
            transparent,
            rgba(255,255,255,.9),
            transparent
        );

    transform: skewX(-25deg);

    animation: logoShine 4s infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

@keyframes logoFloat {
    0%, 100% {
        margin-top: 0;
    }

    50% {
        margin-top: -4px;
    }
}

@keyframes logoShine {
    0% {
        left: -120%;
    }

    25%,
    100% {
        left: 150%;
    }
}

/* ==========================================================
   GAME INTRO
========================================================== */

.game-intro {
    width: 100%;

    margin: 20px auto 0;

    text-align: center;
}

.game-intro h1 {
    margin: 0 0 8px;

    font-size: 42px;

    color: var(--bitcoin-orange);

    text-shadow:
        0 0 10px rgba(247,147,26,.7),
        0 0 30px rgba(247,147,26,.4),
        0 0 60px rgba(247,147,26,.2);
}

.game-intro p {
    margin: 0;

    color: #aaa;
    font-size: 16px;
}

.game-wrapper {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 40px 20px;
}

/* ==========================================================
   GAME LAYOUT
========================================================== */

.game-layout {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 25px;
}

.side-table {
    width: 300px;
}

.side-table .table-wrap {
    width: 100%;
}

/* ==========================================================
   GAME CONTAINER
========================================================== */

#game-container {
    position: relative;

    width: min(1200px, 100%);
    max-width: 1200px;

    margin: 0 auto 20px;
    padding: 5px;

    background:
        linear-gradient(
            135deg,
            var(--bitcoin-orange),
            #333,
            var(--bitcoin-orange)
        );

    border-radius: 24px;

    box-shadow:
        0 0 30px rgba(247,147,26,.35),
        0 0 80px rgba(247,147,26,.15);

    overflow: hidden;
}

/* Glass override used by current design */
#game-container {
    background: rgba(255,255,255,.05) !important;

    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;

    border: 2px solid rgba(46,204,113,.9) !important;
    border-radius: 20px !important;

    box-shadow:
        0 8px 32px rgba(0,0,0,.37) !important;
}

/* ==========================================================
   PHASER
========================================================== */

#phaser-game {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

#phaser-game canvas {
    display: block;

    width: 100% !important;
    height: auto !important;

    max-width: 100%;
    max-height: 100%;

    margin: 0 auto;

    object-fit: contain;

    border-radius: 16px;

    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

/* ==========================================================
   FULLSCREEN BUTTON
========================================================== */

#fullscreenBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    
    padding: 8px 14px;
    
    color: #00ff44;;
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(8px);
    
    border: 1px solid rgba(0, 255, 204, 0.35);
    border-radius: 8px;
    
    font-size: 11px;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 0.5px;
    
    cursor: pointer;
    text-transform: uppercase;
    
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    
    transition: 
        background 0.25s ease, 
        border-color 0.25s ease, 
        color 0.25s ease, 
        transform 0.2s ease, 
        box-shadow 0.25s ease;
}

#fullscreenBtn:hover {
    background: rgba(0, 255, 204, 0.15);
    color: #ffffff;
    border-color: #00ffcc;
    box-shadow: 0 4px 20px rgba(0, 255, 204, 0.35);
    transform: translateY(-2px);
}

#fullscreenBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 255, 204, 0.2);
}

/* ==========================================================
   FULLSCREEN - DESKTOP + MOBILE
========================================================== */

#game-container:fullscreen,
#game-container:-webkit-full-screen {
    position: fixed;

    inset: 0;

    width: 100vw !important;
    height: 100vh !important;

    max-width: none !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #000 !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    overflow: hidden !important;

    z-index: 999999 !important;
}

#game-container:fullscreen #phaser-game,
#game-container:-webkit-full-screen #phaser-game {
    width: 100vw !important;
    height: 100vh !important;

    max-width: none !important;
    max-height: none !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;
}

#game-container:fullscreen canvas,
#game-container:-webkit-full-screen canvas {
    width: auto !important;
    height: auto !important;

    max-width: 100vw !important;
    max-height: 100vh !important;

    border-radius: 0 !important;

    object-fit: contain !important;
}

/* ==========================================================
   MOBILE GAME
========================================================== */

@media (max-width: 700px) {

    body {
        padding-top: 72px;

        background-attachment: scroll;
    }

    .game-wrapper {
        padding: 20px 8px;
    }

    .game-intro {
        margin-top: 15px;
        padding: 0 10px;
    }

    .game-intro h1 {
        font-size: clamp(26px, 8vw, 38px);
    }

    .game-intro p {
        font-size: 13px;
    }

    #game-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 3px;
    margin: 0 auto 15px;
    border-radius: 14px !important;
    overflow: hidden; /* Sprečava da bilo šta viri spolja */
}

#phaser-game {
    width: 100% !important;
    max-width: 100% !important;
    /* Fiksiramo proporciju da browser odmah zna kolika je visina srazmerno širini */
    aspect-ratio: 1200 / 555; 
}

#phaser-game canvas {
    width: 100% !important;
    height: 100% !important; /* Mora biti 100% da popuni kontejner prema proporciji */
    max-width: 100% !important;
    max-height: 100% !important;
    display: block;
    border-radius: 10px;
}

    #fullscreenBtn {
        top: 6px;
        right: 6px;

        padding: 6px 9px;

        font-size: 9px;
    }
}

/* ==========================================================
   MOBILE LANDSCAPE
========================================================== */

@media (max-width: 900px) and (orientation: landscape) {

    #game-container:fullscreen #phaser-game,
    #game-container:-webkit-full-screen #phaser-game {
        width: 100vw !important;
        height: 100vh !important;
    }

    #game-container:fullscreen canvas,
    #game-container:-webkit-full-screen canvas {
        max-width: 100vw !important;
        max-height: 100vh !important;
        width: auto !important;
        height: auto !important;
    }
}

/* ==========================================================
   GLASS CARDS
========================================================== */

.glass-card {
    width: 300px;

    padding: 30px;

    text-align: center;

    background: var(--glass-bg);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    border: 1px solid var(--border-color);
    border-radius: 24px;

    transition: .4s;
}

.glass-card:hover {
    border-color: var(--bitcoin-orange);

    box-shadow:
        0 0 30px rgba(247,147,26,.25);

    transform: translateY(-5px);
}

.glass-card,
.table-wrap,
.stat-card {
    animation: fadeUp .8s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================
   BUTTONS
========================================================== */

button {
    padding: 15px 30px;

    color: #000;

    background: var(--bitcoin-orange);

    border: none;
    border-radius: 12px;

    font-weight: 800;

    cursor: pointer;
    text-transform: uppercase;

    transition: .3s;

    box-shadow:
        0 0 20px rgba(247,147,26,.4),
        0 0 40px rgba(247,147,26,.15);
}

button:hover {
    color: #000;
    background: #fff;

    transform: scale(1.05);

    box-shadow:
        0 0 30px rgba(247,147,26,.8),
        0 0 60px rgba(247,147,26,.3);
}

/* ==========================================================
   WALLET BUTTONS
========================================================== */

.wallet-buttons {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 20px;
}

.wallet-buttons button {
    min-width: 180px;
}

#web3-ui {
    width: fit-content;
    min-width: 300px;
    margin-top: 30px;
}

#connectBtn,
#disconnectBtn {
    width: 220px;
    height: 70px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    line-height: 1;
}

.btn-main {
    font-size: 16px;
    font-weight: 800;
    line-height: 18px;
}

.btn-sub {
    margin-top: 3px;

    font-size: 11px;
    font-weight: 500;
    line-height: 12px;

    opacity: .8;
}

/* ==========================================================
   LEADERBOARDS
========================================================== */

#leaderboards {
    width: 100%;
    max-width: 1200px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 20px;

    margin: 40px auto 0;

    box-sizing: border-box;
}

.table-wrap {
    position: relative;

    width: 100%;
    max-width: 100%;

    padding: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.08),
            rgba(255,255,255,.02)
        );

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    border: 1px solid rgba(247,147,26,.25);
    border-radius: 25px;

    overflow: hidden;

    box-shadow:
        0 0 30px rgba(247,147,26,.12),
        inset 0 0 30px rgba(255,255,255,.03);

    transition: .4s;
}

.table-wrap::before {
    content: "";

    position: absolute;

    top: -80px;
    left: 50%;

    width: 200px;
    height: 200px;

    transform: translateX(-50%);

    background: rgba(247,147,26,.25);

    filter: blur(40px);

    pointer-events: none;
}

.table-wrap:hover {
    transform: translateY(-8px);

    border-color: #F7931A;

    box-shadow:
        0 0 50px rgba(247,147,26,.35);
}

.table-wrap h3 {
    position: relative;

    text-align: center;

    font-size: 22px;

    color: #F7931A;

    text-transform: uppercase;
    letter-spacing: 1px;

    text-shadow:
        0 0 15px rgba(247,147,26,.8);
}

table {
    position: relative;

    width: 100%;

    border-collapse: separate;
    border-spacing: 0 10px;
}

th {
    color: #999;

    font-size: 11px;

    text-transform: uppercase;
    letter-spacing: 1px;
}

td {
    padding: 16px 10px;

    background: rgba(255,255,255,.04);

    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);

    font-family: 'Courier New', monospace;
    font-weight: 700;
}

td:first-child {
    border-radius: 12px 0 0 12px;
}

td:last-child {
    border-radius: 0 12px 12px 0;
}

/* ==========================================================
   TOP 3
========================================================== */

.gold-row td {
    background:
        linear-gradient(
            90deg,
            rgba(255,215,0,.25),
            rgba(255,215,0,.05)
        );
}

.silver-row td {
    background:
        linear-gradient(
            90deg,
            rgba(192,192,192,.25),
            rgba(192,192,192,.05)
        );
}

.bronze-row td {
    background:
        linear-gradient(
            90deg,
            rgba(205,127,50,.25),
            rgba(205,127,50,.05)
        );
}

.rank-gold,
.rank-silver,
.rank-bronze {
    font-size: 24px;

    filter:
        drop-shadow(0 0 8px currentColor);
}

.normal-row:hover td {
    background: rgba(247,147,26,.12);
}

tr {
    transition: .3s;
    animation: slideIn .5s ease;
}

tr:hover {
    transform: translateX(8px);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================
   LEADERBOARD ANIMATIONS
========================================================== */

@keyframes pulse-gold {
    0%,
    100% {
        box-shadow:
            inset 0 0 15px rgba(255,215,0,.2);
    }

    50% {
        box-shadow:
            inset 0 0 25px rgba(255,215,0,.5),
            0 0 15px rgba(255,215,0,.3);
    }
}

@keyframes pulse-silver {
    0%,
    100% {
        box-shadow:
            inset 0 0 15px rgba(192,192,192,.2);
    }

    50% {
        box-shadow:
            inset 0 0 25px rgba(192,192,192,.5),
            0 0 15px rgba(192,192,192,.3);
    }
}

@keyframes pulse-bronze {
    0%,
    100% {
        box-shadow:
            inset 0 0 15px rgba(205,127,50,.2);
    }

    50% {
        box-shadow:
            inset 0 0 25px rgba(205,127,50,.5),
            0 0 15px rgba(205,127,50,.3);
    }
}

.gold-row {
    background: rgba(255,215,0,.08);
    animation: pulse-gold 2.5s infinite ease-in-out;
}

.silver-row {
    background: rgba(192,192,192,.08);
    animation: pulse-silver 2.5s infinite ease-in-out;
    animation-delay: .4s;
}

.bronze-row {
    background: rgba(205,127,50,.08);
    animation: pulse-bronze 2.5s infinite ease-in-out;
    animation-delay: .8s;
}

/* ==========================================================
   INFO SECTION
========================================================== */

.info-section {
    max-width: 900px;

    margin-top: 80px;

    text-align: center;
}

.info-section h1 {
    font-size: 48px;
    color: var(--bitcoin-orange);
}

.info-section p {
    color: #aaa;
    font-size: 18px;
}

.stats {
    margin-top: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 20px;

    flex-wrap: wrap;
}

.stat-card {
    width: 180px;

    padding: 25px;

    background: var(--glass-bg);

    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.stat-card h2 {
    margin: 0;

    color: var(--bitcoin-orange);

    font-size: 30px;
}

.stat-card span {
    color: #aaa;
}

/* ==========================================================
   FEATURES
========================================================== */

.features {
    display: flex;
    justify-content: center;

    gap: 25px;

    flex-wrap: wrap;

    margin-top: 50px;
}

.features .glass-card {
    width: 250px;
}

.features h3 {
    color: var(--bitcoin-orange);
}

/* ==========================================================
   FOOTER
========================================================== */

footer,
.footer,
#footer,
.copyright {
    width: 100%;

    margin-top: 80px;
    padding: 30px;

    text-align: center;

    color: #fff;

    background: rgba(255,255,255,.05);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-top: 1px solid rgba(255,255,255,.1);
}

footer p {
    margin-top: 30px;
}

/* ==========================================================
   RULES
========================================================== */

.rules-container {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.rule-box {
    display: flex;
    align-items: flex-start;

    gap: 8px;

    margin-top: 14px;

    font-size: 13px;
    line-height: 1.4;
}

.rule-box .bullet {
    flex-shrink: 0;
    color: var(--gold);
}

.rule-content {
    color: #ccc;
}

.rule-title {
    margin-right: 4px;
    color: var(--gold);
}

.rule-text strong {
    color: #fff;
}

/* ==========================================================
   GAME SIZE BUTTONS
========================================================== */

#gameSizeWrapper {
    width: 100%;
    max-width: 450px;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

    gap: 14px !important;

    margin: 0 auto !important;
}

#gameSizeWrapper button {
    width: 100% !important;
    max-width: 400px !important;

    padding: 14px 20px !important;

    justify-content: center !important;

    text-align: center !important;

    white-space: nowrap !important;

    border-radius: 12px !important;
}

/* ==========================================================
   STATUS BAR
========================================================== */

.status-bar-epic {
    position: relative;

    width: 100%;
    min-height: 72px;

    display: flex;
    align-items: center;

    padding: 0 22px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.018)
        );

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;

    box-shadow:
        0 12px 35px rgba(0,0,0,.28),
        inset 0 1px 0 rgba(255,255,255,.04);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.status-module {
    position: relative;

    height: 72px;

    display: flex;
    align-items: center;

    cursor: default;
}

.status-main {
    height: 100%;

    display: flex;
    align-items: center;

    gap: 7px;

    padding: 0 11px;

    transition: .2s ease;
}

.status-module:hover .status-main {
    background: rgba(255,255,255,.045);
}

.live-indicator {
    width: 9px;
    height: 9px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #35e58a;

    box-shadow:
        0 0 7px #35e58a,
        0 0 16px rgba(53,229,138,.55);

    animation: statusPulse 1.8s infinite;
}

@keyframes statusPulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .55;
        transform: scale(.75);
    }
}

.status-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.status-label {
    color: #858d99;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.8px;
}

.status-text strong {
    color: #f1f3f5;

    font-size: 15px;
    font-weight: 900;

    letter-spacing: 1px;

    white-space: nowrap;
}

.status-value {
    min-width: 30px;

    margin-left: 7px;

    color: #35e58a;

    font-size: 14px;
    font-weight: 900;
}

.network-icon,
.trophy-icon {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: #f7931a;

    font-size: 18px;

    background: rgba(247,147,26,.09);

    border: 1px solid rgba(247,147,26,.18);
    border-radius: 8px;

    box-shadow:
        0 0 18px rgba(247,147,26,.08);
}

.network-online,
.competition-live {
    margin-left: 7px;

    padding: 6px 9px;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1px;

    border-radius: 5px;
}

.network-online {
    color: #35e58a;

    background: rgba(53,229,138,.08);

    border: 1px solid rgba(53,229,138,.15);
}

.competition-live {
    color: #f7931a;

    background: rgba(247,147,26,.08);

    border: 1px solid rgba(247,147,26,.16);
}

.status-separator {
    width: 1px;
    height: 34px;

    flex-shrink: 0;

    background: rgba(255,255,255,.10);
}

.global-status {
    margin-left: auto;
    padding-left: 22px;

    display: flex;
    align-items: center;
    gap: 8px;

    color: #858d99;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.3px;

    white-space: nowrap;
}

.global-pulse {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #35e58a;

    box-shadow:
        0 0 10px #35e58a;
}

/* ==========================================================
   STATUS TOOLTIP
========================================================== */

.status-tooltip {
    position: absolute;

    left: 50%;
    bottom: calc(100% + 12px);

    width: 245px;

    padding: 17px;

    opacity: 0;
    visibility: hidden;

    transform:
        translate(-50%, 8px)
        scale(.97);

    background:
        linear-gradient(
            145deg,
            #15171b,
            #0b0c0e
        );

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;

    box-shadow:
        0 20px 45px rgba(0,0,0,.55),
        0 0 30px rgba(247,147,26,.05);

    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease;

    z-index: 100;
}

.status-module:hover .status-tooltip {
    opacity: 1;
    visibility: visible;

    transform:
        translate(-50%, 0)
        scale(1);
}

.status-tooltip::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -6px;

    width: 10px;
    height: 10px;

    background: #0d0e10;

    border-right: 1px solid rgba(255,255,255,.1);
    border-bottom: 1px solid rgba(255,255,255,.1);

    transform:
        translateX(-50%)
        rotate(45deg);
}

.tooltip-title {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 13px;

    color: #a0a8b4;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.4px;
}

.tooltip-dot,
.network-dot,
.competition-dot {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #35e58a;

    box-shadow:
        0 0 8px rgba(53,229,138,.5);
}

.competition-dot {
    background: #f7931a;

    box-shadow:
        0 0 8px rgba(247,147,26,.5);
}

.tooltip-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 8px 0;

    color: #858d99;

    font-size: 10px;

    border-bottom:
        1px solid rgba(255,255,255,.045);
}

.tooltip-row strong {
    color: #e2e5e9;

    font-size: 10px;
    font-weight: 800;
}

.green-text {
    color: #35e58a !important;
}

.orange-text {
    color: #f7931a !important;
}

.tooltip-status {
    margin-top: 12px;

    color: #35e58a;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1px;
}

.orange-status {
    color: #f7931a;
}

/* ==========================================================
   SUN
========================================================== */

.sun {
    position: relative;

    filter:
        drop-shadow(0 0 15px #ffd86b)
        drop-shadow(0 0 40px rgba(255,190,50,.8));

    animation: sunGlow 3s infinite ease-in-out;
}

.sun::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width: 220px;
    height: 220px;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255,220,120,.55),
            rgba(255,180,50,.25),
            transparent 70%
        );

    filter: blur(7px);

    z-index: -1;
}

@keyframes sunGlow {
    0%,
    100% {
        filter:
            drop-shadow(0 0 15px #ffd86b)
            drop-shadow(0 0 40px rgba(255,190,50,.6));
    }

    50% {
        filter:
            drop-shadow(0 0 30px #fff0a0)
            drop-shadow(0 0 70px rgba(255,190,50,1));
    }
}

/* ==========================================================
   HERO / GLASS SECTIONS
========================================================== */

#top-hero-showcase,
.hub-card,
#in-game-login-bar {
    background: rgba(255,255,255,.05) !important;

    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;

    border: 2px solid rgba(46,204,113,.9) !important;
    border-radius: 20px !important;

    box-shadow:
        0 8px 32px rgba(0,0,0,.37) !important;
}

#top-hero-showcase {
    margin-top: 15vh !important;

    visibility: hidden;
    opacity: 0;

    transition: opacity .4s ease;
}

/* ==========================================================
   SIDEBAR
========================================================== */

.menu-toggle-btn {
    position: absolute;

    top: 20px;
    left: 20px;

    z-index: 100;

    padding: 10px 16px;

    color: var(--gold);

    background: rgba(0,0,0,.7);

    border: 1px solid var(--gold);
    border-radius: 8px;

    cursor: pointer;

    font-weight: bold;

    transition: .3s;
}

.menu-toggle-btn:hover {
    color: #000;
    background: var(--gold);
}

.sidebar {
    position: fixed;

    top: 0;
    right: 0;
    left: auto;

    z-index: 1000;

    width: 0;
    height: 100%;

    padding-top: 60px;

    background:
        radial-gradient(
            circle at top right,
            rgba(243,186,47,.12),
            transparent 35%
        ),
        linear-gradient(
            160deg,
            #191919 0%,
            #0b0b0b 100%
        );

    border-left: 1px solid rgba(243,186,47,.45);

    box-shadow:
        -15px 0 45px rgba(0,0,0,.75),
        inset 1px 0 0 rgba(255,255,255,.03);

    overflow-x: hidden;

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    transition: .4s ease;
}

.sidebar h3 {
    margin-bottom: 22px;

    color: var(--gold);

    text-align: center;

    font-size: 21px;
    font-weight: 800;

    letter-spacing: .5px;

    text-shadow:
        0 0 12px rgba(243,186,47,.25);
}

.sidebar-links {
    display: flex;
    flex-direction: column;

    gap: 10px;

    padding: 0 20px;
}

.sidebar-links button {
    width: 100%;

    padding: 14px 16px;

    color: #e8e8e8;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.02)
        );

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;

    text-align: left;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.sidebar-links button:hover {
    color: #000;

    background: var(--gold);

    border-color: var(--gold);
}

.sidebar .close-btn {
    position: absolute;

    top: 10px;
    right: 20px;

    color: #fff;

    font-size: 36px;

    text-decoration: none;

    transition: .2s;
}

.sidebar .close-btn:hover {
    color: var(--gold);

    transform: rotate(90deg) scale(1.1);
}

#sidebarMenu .sidebar-links button:first-child {
    color: #121212;

    background:
        linear-gradient(
            135deg,
            #ffd95a,
            #f3ba2f,
            #d99616
        );

    border-color: #f3ba2f;

    box-shadow:
        0 5px 20px rgba(243,186,47,.25);
}

#sidebarMenu .sidebar-links button:hover {
    color: #e8e8e8;

    transform: translateX(-4px);

    border-color: rgba(243,186,47,.6);

    background:
        linear-gradient(
            135deg,
            rgba(243,186,47,.15),
            rgba(243,186,47,.05)
        );

    box-shadow:
        0 5px 20px rgba(243,186,47,.15);
}

#sidebarMenu .sidebar-links button:first-child:hover {
    color: #121212;

    transform: translateX(-5px) scale(1.02);

    box-shadow:
        0 7px 25px rgba(243,186,47,.45);
}

.page-content {
    padding-top: 50px;
}

/* ==========================================================
   RESPONSIVE NAVBAR
========================================================== */

@media (max-width: 1100px) {

    .navbar {
        padding: 15px 20px;
    }

    .nav-left {
        gap: 15px;
    }

    .nav-links a {
        margin: 0 7px;
    }

    .social-links {
        display: none;
    }
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 850px) {

    .navbar {
        min-height: 72px;

        padding: 14px 15px;

        gap: 10px;
    }

    .nav-left {
        gap: 12px;
    }

    .logo {
        font-size: 20px;
    }

    .nav-links a {
        margin: 0 5px;
        font-size: 12px;
    }

    .game-layout {
        flex-direction: column;
    }

    .side-table {
        width: 320px;
        max-width: 100%;
    }

    #leaderboards {
        grid-template-columns: 1fr;
    }

    .info-section h1 {
        font-size: 40px;
    }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 700px) {

    body {
        padding-top: 72px;

        background-attachment: scroll;
    }

    .navbar {
        min-height: 64px;

        padding: 10px 12px;

        justify-content: space-between;
    }

    .nav-left {
        width: auto;

        gap: 8px;
    }

    .logo {
        font-size: 18px;
    }

    .nav-links {
        display: none;
    }

    .nav-right {
        gap: 5px;
    }

    .nav-link {
        height: 34px;

        padding: 0 9px;

        font-size: 10px;
    }

    .nav-icon {
        font-size: 12px;
    }

    #gamesNavBtn {
        padding: 8px 10px !important;

        font-size: 11px !important;
    }

    #gamesNavBtn .nav-icon {
        font-size: 14px;
    }

    .logoSplash {
        animation: none;
    }

    .game-wrapper {
        padding: 20px 8px;
    }

    .glass-card,
    .table-wrap {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .glass-card {
        width: 100%;
        max-width: 320px;

        padding: 22px;
    }

    .info-section {
        width: 100%;
        padding: 0 15px;
    }

    .info-section h1 {
        font-size: 34px;
    }

    .info-section p {
        font-size: 15px;
    }

    .stats {
        gap: 12px;
    }

    .stat-card {
        width: 145px;
        padding: 20px;
    }

    .features {
        padding: 0 10px;
    }

    .features .glass-card {
        width: 100%;
        max-width: 300px;
    }

    .table-wrap {
        padding: 18px 10px;

        border-radius: 18px;
    }

    .table-wrap h3 {
        font-size: 18px;
    }

    table {
        font-size: 11px;
    }

    th {
        font-size: 9px;
    }

    td {
        padding: 12px 6px;
    }

    tr:hover {
        transform: none;
    }

    .wallet-buttons {
        flex-direction: column;
        gap: 12px;
    }

    #web3-ui {
        width: 100%;
        min-width: 0;
    }

    #connectBtn,
    #disconnectBtn {
        width: 200px;
        height: 64px;
    }

    /* Status */
    .status-bar-epic {
        min-height: 64px;

        justify-content: space-between;

        padding: 0 8px;

        border-radius: 12px;
    }

    .status-module {
        height: 64px;
    }

    .status-main {
        padding: 0 7px;

        gap: 6px;
    }

    .status-text strong {
        font-size: 10px;
    }

    .status-label {
        font-size: 7px;
        letter-spacing: 1px;
    }

    .network-icon,
    .trophy-icon {
        width: 27px;
        height: 27px;

        font-size: 14px;
    }

    .status-value,
    .network-online,
    .competition-live {
        display: none;
    }

    .global-status {
        display: none;
    }

    .status-separator {
        height: 24px;
    }

    /* ==========================================================
   MOBILE STATUS TOOLTIP - TAP TO OPEN
========================================================== */

@media (max-width: 700px) {

    .status-module {
        cursor: pointer;
    }

    .status-module .status-tooltip {
        display: block;

        left: 50%;
        top: calc(100% + 10px);
        bottom: auto;

        width: 220px;
        max-width: calc(100vw - 20px);

        padding: 15px;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform:
            translate(-50%, -6px)
            scale(.97);

        z-index: 9999;
    }


    /* Tooltip arrow points upward on mobile */
    .status-module .status-tooltip::after {
        top: -6px;
        bottom: auto;

        border-right: 0;
        border-bottom: 0;

        border-left: 1px solid rgba(255,255,255,.1);
        border-top: 1px solid rgba(255,255,255,.1);
    }

    /* Disable desktop hover behavior on touch */
    .status-module:hover .status-tooltip {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform:
            translate(-50%, -6px)
            scale(.97);
    }

    /* But active tooltip must remain visible */
    .status-module.active .status-tooltip {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform:
            translate(-50%, 0)
            scale(1);
    }

    /* Small visual feedback when tapped */
    .status-module.active .status-main {
        background: rgba(255,255,255,.07);
    }
}

    /* Game size buttons */
    #gameSizeWrapper {
        width: 100%;
        max-width: 100%;
    }

    #gameSizeWrapper button {
        width: 100% !important;
        max-width: 360px !important;
    }

    footer,
    .footer,
    #footer,
    .copyright {
        margin-top: 50px;
        padding: 20px 12px;
    }
}

/* ==========================================================
   VERY SMALL PHONES
========================================================== */

@media (max-width: 400px) {

    .navbar {
        padding-left: 8px;
        padding-right: 8px;
    }

    .logo {
        font-size: 16px;
    }

    #gamesNavBtn span:last-child {
        display: none;
    }

    #gamesNavBtn {
        width: 38px;
        height: 34px;

        padding: 0 !important;
    }

    #gamesNavBtn .nav-icon {
        font-size: 16px;
    }

    .status-text strong {
        font-size: 9px;
    }

    .game-intro h1 {
        font-size: 26px;
    }

    .game-intro p {
        font-size: 12px;
    }

    .table-wrap {
        padding-left: 6px;
        padding-right: 6px;
    }
}

/* ==========================================================
   MOBILE FULLSCREEN
========================================================== */

@media (max-width: 700px) {

    #game-container:fullscreen,
    #game-container:-webkit-full-screen {
        width: 100vw !important;
        height: 100vh !important;

        min-width: 0 !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;
        border-radius: 0 !important;

        background: #000 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        overflow: hidden !important;
    }

    #game-container:fullscreen #phaser-game,
    #game-container:-webkit-full-screen #phaser-game {
        width: 100vw !important;
        height: 100vh !important;

        min-width: 0 !important;
        min-height: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #game-container:fullscreen canvas,
    #game-container:-webkit-full-screen canvas {
        width: auto !important;
        height: auto !important;

        max-width: 100vw !important;
        max-height: 100vh !important;

        min-width: 0 !important;
        min-height: 0 !important;

        margin: 0 !important;

        border-radius: 0 !important;

        object-fit: contain !important;
    }

    #game-container:fullscreen #fullscreenBtn,
    #game-container:-webkit-full-screen #fullscreenBtn {
        top: max(8px, env(safe-area-inset-top));
        right: max(8px, env(safe-area-inset-right));

        z-index: 1000000;
    }
}

/* ==========================================================
   SAFE AREA - IPHONE / MOBILE BROWSER
========================================================== */

@supports (padding: env(safe-area-inset-top)) {

    @media (max-width: 700px) {

        .navbar {
            padding-top: calc(10px + env(safe-area-inset-top));
            padding-left: calc(12px + env(safe-area-inset-left));
            padding-right: calc(12px + env(safe-area-inset-right));
        }

        body {
            padding-bottom: env(safe-area-inset-bottom);
        }
    }
}

/* ==========================================================
   ACCESSIBILITY / TOUCH
========================================================== */

@media (hover: none) {

    .glass-card:hover,
    .table-wrap:hover,
    .nav-link:hover,
    #gamesNavBtn:hover {
        transform: none;
    }

    /* Na touch uređajima hover NE otvara tooltip */
    .status-module:hover .status-tooltip {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    /* TAP otvara tooltip */
    .status-module.active .status-tooltip {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translate(-50%, 0) scale(1);
    }

    .status-module.active .status-main {
        background: rgba(255,255,255,.07);
    }

    .status-module {
        cursor: pointer;
    }
}

.games-menu-text {
    font-size: 16px;
    font-weight: 800;
}












































/* Section Wrapper */
.sp-section {
    padding: 80px 20px;
    color: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}







.sp-subtitle {
    color: #cbd5e1;
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.sp-header {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: 12px;
}

/* Feature Info Box Inside Game Guide */
.sp-info-box {
    padding: 35px 40px;
}

.sp-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.sp-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.sp-info-icon {
    font-size: 2.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 16px;
    line-height: 1;
}

.sp-info-item h5 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: #fff;
}

.sp-info-item p {
    margin: 0;
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* About Us Main Narrative Card */
.sp-about-card {
    padding: 45px 40px;
    margin-bottom: 30px;
}

.sp-about-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.sp-about-content h3 {
    font-size: 1.8rem;
    margin: 0 0 20px;
    background: linear-gradient(180deg, #ffffff 0%, #bbbbbb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sp-about-content p {
    color: #b0b0b0;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.sp-about-content p:last-child {
    margin-bottom: 0;
}

.sp-about-content strong {
    color: #f7931a;
}




/* Base & Smooth Scroll */
html { scroll-behavior: smooth; }

.sp-tokenomics-section {
    padding: 100px 20px;
    background: transparent;
    color: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow: hidden;
}

.sp-container { max-width: 1150px; margin: 0 auto; }

/* Scroll Reveal Animation Classes */
.sp-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sp-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.sp-header { text-align: center; margin-bottom: 50px; }
.sp-badge-glow {
    display: inline-block;
    background: rgba(247, 147, 26, 0.12);
    border: 1.5px solid #f7931a;
    color: #f7931a;
    font-size: 0.9rem; /* Veći font */
    font-weight: 900;
    padding: 10px 24px; /* Veći razmak unutar badge-a */
    border-radius: 50px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(247, 147, 26, 0.35), inset 0 0 10px rgba(247, 147, 26, 0.15);
    animation: badgePulse 3s infinite ease-in-out;
    margin-bottom: 15px; /* Odmak od naslova ispod */
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(247, 147, 26, 0.35), inset 0 0 10px rgba(247, 147, 26, 0.15);
        border-color: #f7931a;
    }
    50% {
        box-shadow: 0 0 35px rgba(247, 147, 26, 0.65), inset 0 0 15px rgba(247, 147, 26, 0.3);
        border-color: #ffa733;
    }
}
.sp-title-glow {
    font-size: 3.2rem;
    font-weight: 900;
    margin: 15px 0 10px;
    background: linear-gradient(180deg, #FFFFFF 30%, #F7931A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(247, 147, 26, 0.25));
}

/* Dynamic Glow Cards */
.glow-card {
    background: rgba(18, 18, 24, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}
.sp-card-light {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(247, 147, 26, 0.2) 0%, rgba(247, 147, 26, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}
.glow-card:hover .sp-card-light { opacity: 1; }
.glow-card:hover {
    border-color: rgba(247, 147, 26, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(247, 147, 26, 0.15);
}

/* Tooltip System (Pro Interactivity) */
.sp-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
    border-bottom: 1px dotted rgba(255,255,255,0.4);
}
.sp-tooltip {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(247, 147, 26, 0.4);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 100;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.sp-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(247, 147, 26, 0.4) transparent transparent transparent;
}
.sp-tooltip-wrapper:hover .sp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Contract & Copy */
.sp-contract-card {
    padding: 25px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}
.sp-pulse-dot {
    width: 8px; height: 8px; background-color: #00e676; border-radius: 50%;
    box-shadow: 0 0 10px #00e676; animation: pulse 1.8s infinite; display: inline-block;
}
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 230, 118, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}
.sp-status-text { font-size: 0.75rem; font-weight: 800; color: #00e676; letter-spacing: 1.5px; margin-left: 10px;}
.sp-address-text { font-family: 'JetBrains Mono', monospace; font-size: 1.2rem; font-weight: bold; color: #f7931a; margin-top: 8px;}
.sp-pro-copy-btn {
    position: relative; z-index: 2; background: rgba(247, 147, 26, 0.15);
    border: 1px solid #f7931a; color: #fff; padding: 12px 26px; border-radius: 12px;
    font-weight: 800; cursor: pointer; transition: all 0.3s ease;
}
.sp-pro-copy-btn:hover { background: #f7931a; color: #000; box-shadow: 0 0 20px rgba(247, 147, 26, 0.6); transform: translateY(-2px); }

/* Grids & Cards */
.sp-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-bottom: 40px; }
.sp-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.sp-pro-card { padding: 35px 30px; display: flex; flex-direction: column; justify-content: space-between; }
.sp-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; position: relative; z-index: 2; }
.sp-card-icon { font-size: 2.5rem; }
.sp-card-pill { font-size: 0.7rem; font-weight: 900; padding: 5px 12px; border-radius: 30px; letter-spacing: 1px; }

/* Colors */
.pill-red { background: rgba(255, 23, 68, 0.15); color: #ff1744; border: 1px solid rgba(255, 23, 68, 0.3); }
.pill-green { background: rgba(0, 230, 118, 0.15); color: #00e676; border: 1px solid rgba(0, 230, 118, 0.3); }
.pill-blue { background: rgba(0, 176, 255, 0.15); color: #00b0ff; border: 1px solid rgba(0, 176, 255, 0.3); }
.text-orange { color: #f7931a; } .text-green { color: #00e676; } .text-blue { color: #00b0ff; } .text-purple { color: #e040fb; }

.sp-pro-card h3 { font-size: 1.4rem; color: #fff; margin: 0 0 12px; position: relative; z-index: 2; }
.sp-pro-card p { color: #aaa; font-size: 0.95rem; line-height: 1.6; margin: 0 0 25px; position: relative; z-index: 2; }
.sp-card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed rgba(255, 255, 255, 0.1); padding-top: 18px; position: relative; z-index: 2; }
.sp-foot-label { font-size: 0.75rem; color: #666; font-weight: 800; }
.sp-foot-val { font-size: 0.85rem; font-weight: 800; }

/* Distro Bars */
.sp-distro-box { padding: 35px; }
.sp-distro-title { text-align: center; margin: 0 0 30px; font-size: 1.3rem; position: relative; z-index: 2; }
.sp-distro-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 25px; position: relative; z-index: 2; }
.sp-bar-head { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 800; margin-bottom: 8px; }
.sp-bar-track { background: rgba(255, 255, 255, 0.05); height: 8px; border-radius: 10px; overflow: hidden; position: relative; }
.sp-bar-fill { height: 100%; border-radius: 10px; position: relative; }
.fill-green { background: #00e676; box-shadow: 0 0 10px #00e676; }
.fill-orange { background: #f7931a; box-shadow: 0 0 10px #f7931a; }
.fill-blue { background: #00b0ff; box-shadow: 0 0 10px #00b0ff; }
.fill-purple { background: #e040fb; box-shadow: 0 0 10px #e040fb; }

/* Shimmer Anim for TBA */
.sp-bar-fill::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2.5s infinite;
}
@keyframes shimmer { 100% { left: 100%; } }

/* Game Guide Steps */
.sp-step-pro { padding: 30px 25px; position: relative; cursor: pointer; }
.sp-step-num {
    font-size: 0.8rem; font-weight: 900; color: #f7931a;
    background: rgba(247, 147, 26, 0.15); border: 1px solid rgba(247, 147, 26, 0.3);
    padding: 4px 10px; border-radius: 8px; display: inline-block; margin-bottom: 15px; position: relative; z-index: 2;
}
.sp-step-icon { font-size: 2.2rem; margin-bottom: 15px; position: relative; z-index: 2; }
.sp-step-pro h4 { margin: 0 0 10px; font-size: 1.2rem; position: relative; z-index: 2; }
.sp-step-pro p { margin: 0; color: #aaa; font-size: 0.9rem; line-height: 1.5; position: relative; z-index: 2; }






/* ================= FOOTER STYLING ================= */
footer {
    position: relative;
    padding: 35px 20px;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.4) 0%, rgba(5, 5, 8, 0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-top: 60px;
}

/* Gornja svetleća narandžasta linija sa radijalnim prelivom */
footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 800px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(247, 147, 26, 0.3) 20%, 
        #f7931a 50%, 
        rgba(247, 147, 26, 0.3) 80%, 
        transparent 100%
    );
    box-shadow: 0 0 15px rgba(247, 147, 26, 0.8);
}

/* Suptilno pozadinsko narandžasto isijavanje na sredini */
footer::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 100px;
    background: radial-gradient(circle, rgba(247, 147, 26, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

footer p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: 'JetBrains Mono', 'Inter', monospace, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #888899;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    cursor: default;
}

/* Efekat na prelaz mišem preko teksta */
footer p:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(247, 147, 26, 0.5), 
                 0 0 20px rgba(247, 147, 26, 0.3);
}




/* ==========================================
   MY RANK - VERY VISIBLE
========================================== */

.my-rank-row {
    background: linear-gradient(
        90deg,
        rgba(247, 147, 26, 0.35),
        rgba(247, 147, 26, 0.15),
        rgba(247, 147, 26, 0.35)
    ) !important;

    border-top: 3px solid #f7931a !important;
    border-bottom: 3px solid #f7931a !important;

    box-shadow:
        0 0 10px rgba(247, 147, 26, 0.7),
        0 0 25px rgba(247, 147, 26, 0.35);

    font-weight: 900;

    animation: myRankGlow 1.8s ease-in-out infinite alternate;
}

.my-rank-row td {
    color: #ffffff !important;
    font-weight: 900 !important;
    font-size: 1.05em;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.my-rank-row td:first-child {
    color: #f7931a !important;
    font-size: 1.25em !important;
    text-shadow: 0 0 10px rgba(247, 147, 26, 0.9);
}

.my-rank-row td:nth-child(2) {
    color: #ffd180 !important;
    font-size: 1.05em !important;
}

.my-rank-row td:last-child {
    color: #00e676 !important;
    font-size: 1.2em !important;
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.7);
}

@keyframes myRankGlow {
    from {
        box-shadow:
            0 0 8px rgba(247, 147, 26, 0.5),
            0 0 15px rgba(247, 147, 26, 0.2);
    }

    to {
        box-shadow:
            0 0 15px rgba(247, 147, 26, 0.9),
            0 0 35px rgba(247, 147, 26, 0.5);
    }
}

/* Prinudni CSS Fullscreen za MetaMask Browser */
#game-container.force-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background-color: #000 !important;
}
