/* ==========================================
   BOOK OF BITCOIN - BBTC HTML5 CSS
========================================== */

:root {
    --bitcoin-orange: #F7931A;
    --bg-dark: #050505;
    --glass-bg: rgba(255,255,255,0.04);
    --border-color: rgba(255,255,255,0.12);
    --text-gray: #ccc;
}

* {
    box-sizing: border-box;
}

body {
    margin:0;
    min-height:100vh;

    background:
    radial-gradient(circle at 50% -20%, #3a2205, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(247,147,26,.08), transparent 30%),
    #050505;

    color:white;
    font-family:'Inter',sans-serif;
}

/* ==========================
        NAVBAR
========================== */

.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(10,10,10,0.85);
    backdrop-filter: blur(7px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--bitcoin-orange);
}

.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 {
    background: #222;
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    border: 1px solid #444;
    transition: .3s;
}

.btn-social:hover {
    background: var(--bitcoin-orange);
    color: black;
}


/* ==========================
        GAME AREA
========================== */

.game-intro {
    width: 100%;
    text-align: center;
    margin: 20px auto 0;
}

.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;
}

@keyframes gameGlow {

from {

    box-shadow:
    0 0 30px rgba(247,147,26,.25),
    0 0 60px rgba(247,147,26,.10),
    inset 0 0 25px rgba(255,255,255,.05);

}

to {

    box-shadow:
    0 0 45px rgba(247,147,26,.55),
    0 0 100px rgba(247,147,26,.20),
    inset 0 0 35px rgba(255,255,255,.10);

}

}


/* ==========================
        GLASS CARDS
========================== */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(7px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    width: 300px;
    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);
    }

}

#web3-ui {
    margin-top: 30px;
}


/* ==========================
        CONNECT BUTTON
========================== */

button {
    background: var(--bitcoin-orange);
    border: none;

    padding: 15px 30px;

    color: black;
    font-weight: 800;

    border-radius: 12px;

    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 {

    background:white;

    color:black;

    transform:scale(1.05);

    box-shadow:
    0 0 30px rgba(247,147,26,.8),
    0 0 60px rgba(247,147,26,.3);

}


/* ==========================
      PREMIUM LEADERBOARD (PODEŠENO)
========================== */

#leaderboards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0 auto;
    box-sizing: border-box;
}

.table-wrap {

    position:relative;

    background:
    linear-gradient(
        145deg,
        rgba(255,255,255,0.08),
        rgba(255,255,255,0.02)
    );

    backdrop-filter:blur(7px);

    border:1px solid rgba(247,147,26,.25);

    padding:30px;

    border-radius:25px;

    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    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);

}

.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 PLAYERS
====================== */

.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)
    );

}

.gold-row {

animation:
goldPulse 2s infinite;

}

@keyframes goldPulse {

0%,100% {

box-shadow:
0 0 10px rgba(255,215,0,.2);

}

50% {

box-shadow:
0 0 35px rgba(255,215,0,.6);

}

}

.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);

}

}


/* ==========================
        INFO SECTION
========================== */

.info-section {
    margin-top: 80px;
    text-align: center;
    max-width: 900px;
}

.info-section h1 {
    font-size: 48px;
    color: var(--bitcoin-orange);
}

.info-section p {
    color: #aaa;
    font-size: 18px;
}

.stats {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    width: 180px;
}

.stat-card h2 {
    color: var(--bitcoin-orange);
    margin: 0;
    font-size: 30px;
}

.stat-card span {
    color: #aaa;
}


/* ==========================
        FEATURES
========================== */

.features {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 50px;
}

.features .glass-card {
    width: 250px;
}

.features h3 {
    color: var(--bitcoin-orange);
}


/* ==========================
        FOOTER
========================== */

footer {
    width: 100%;
    margin-top: 80px;
    padding: 30px;
    text-align: center;
    background: #111;
    color: #777;
}


/* ==========================
        MOBILE
========================== */

@media(max-width:850px) {

    .navbar {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }

}

@media(max-width:700px) {

    .navbar {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .info-section h1 {
        font-size: 36px;
    }

}


/* ==========================
    CONNECT BUTTON TEXT
========================== */

#connectBtn,
#disconnectBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    width: 220px;
    height: 70px;

    padding: 0;
    line-height: 1;
}

.btn-main {
    font-size: 16px;
    font-weight: 800;
    line-height: 18px;
}

.btn-sub {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.8;
    margin-top: 3px;
    line-height: 12px;
}

.wallet-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.wallet-buttons button {
    min-width: 180px;
}

#web3-ui {
    width: fit-content;
    min-width: 300px;
}

/* ==========================
   LEADERBOARD ROW ANIMATIONS
========================== */

@keyframes pulse-gold {
    0% { box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.2); }
    50% { box-shadow: inset 0 0 25px rgba(255, 215, 0, 0.5), 0 0 15px rgba(255, 215, 0, 0.3); }
    100% { box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.2); }
}

@keyframes pulse-silver {
    0% { box-shadow: inset 0 0 15px rgba(192, 192, 192, 0.2); }
    50% { box-shadow: inset 0 0 25px rgba(192, 192, 192, 0.5), 0 0 15px rgba(192, 192, 192, 0.3); }
    100% { box-shadow: inset 0 0 15px rgba(192, 192, 192, 0.2); }
}

@keyframes pulse-bronze {
    0% { box-shadow: inset 0 0 15px rgba(205, 127, 50, 0.2); }
    50% { box-shadow: inset 0 0 25px rgba(205, 127, 50, 0.5), 0 0 15px rgba(205, 127, 50, 0.3); }
    100% { box-shadow: inset 0 0 15px rgba(205, 127, 50, 0.2); }
}

.gold-row {
    background: rgba(255, 215, 0, 0.08);
    animation: pulse-gold 2.5s infinite ease-in-out;
}

.silver-row {
    background: rgba(192, 192, 192, 0.08);
    animation: pulse-silver 2.5s infinite ease-in-out;
    animation-delay: 0.4s;
}

.bronze-row {
    background: rgba(205, 127, 50, 0.08);
    animation: pulse-bronze 2.5s infinite ease-in-out;
    animation-delay: 0.8s;
}


/* =========================
   GAME + LEADERBOARD LAYOUT
========================= */

.game-layout {

    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:25px;

}

.side-table {

    width:300px;

}

.side-table .table-wrap {

    width:100%;
}

@media(max-width:1400px){

.game-layout{

    flex-direction:column;

}

.side-table{

    width:320px;

}

}


/* =====================================
    PREMIUM LOGO EFFECT
===================================== */

.logoSplash {
    position: relative;
    font-size: 28px;
    font-weight: 800;
    color: #f3ba2f;
    letter-spacing: 1px;
    cursor: pointer;

    text-shadow:
        0 0 5px #f3ba2f,
        0 0 15px rgba(243,186,47,0.8),
        0 0 30px rgba(243,186,47,0.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,0.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% {
        left:150%;
    }

    100% {
        left:150%;
    }
}


/* ==========================
    SUN HALO EFFECT
========================== */

.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));

}

}

@media(max-width:700px){

.logoSplash {
    animation:none;
}

.table-wrap,
.glass-card {
    backdrop-filter:blur(5px);
}

}

.rules-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rule-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 14px;
}

.rule-box .bullet {
    color: #f3ba2f;
    flex-shrink: 0;
}

.rule-content {
    color: #ccc;
}

.rule-title {
    color: #f3ba2f;
    margin-right: 4px;
}

.rule-text strong {
    color: #fff;
}

canvas {
    touch-action: none;
    user-select: none;
}


/* ==========================================
    GAME CONTAINER
========================================== */

#game-container {
    position: relative;
    width: min(1200px, 100%);
    max-width: 1200px;
    margin: 0 auto 20px auto;
    padding: 5px;
    box-sizing: border-box;

    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;
}


/* ==========================================
    PHASER GAME
========================================== */

#phaser-game {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
}

#phaser-game canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    margin: 0 auto;

    border-radius: 16px;

    touch-action: none;
    user-select: none;
}

/* ==========================================
    FULLSCREEN BUTTON
========================================== */

#fullscreenBtn {
    position: absolute;
    top: 10px;
    right: 10px;

    z-index: 1000;

    padding: 8px 12px;

    background: rgba(0, 0, 0, 0.75);
    color: white;

    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 8px;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: none;
    text-transform: uppercase;
}

#fullscreenBtn:hover {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    transform: none;
}


/* ==========================================
    FULLSCREEN
========================================== */

#game-container:fullscreen {
    width: 100vw !important;
    height: 100vh !important;

    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #000 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;

    border-radius: 0 !important;
}

#game-container:fullscreen #phaser-game {
    width: 100vw !important;
    height: 100vh !important;

    max-width: none !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;
}

#game-container:fullscreen canvas {
    display: block !important;

    max-width: 100% !important;
    max-height: 100% !important;

    width: auto !important;
    height: auto !important;

    border-radius: 0 !important;
}


/* ==========================================
    FINAL GAME VIEW - METAMASK / MOBILE
    CELOKUPNA IGRA MORA BITI VIDLJIVA
========================================== */

#game-container {
    position: relative;
    width: min(1200px, 100%);
    max-width: 1200px;
    margin: 0 auto 20px auto;
    padding: 5px;
    box-sizing: border-box;

    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;
}

#phaser-game {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
}

#phaser-game canvas {
    display: block;

    width: 100% !important;
    height: auto !important;

    max-width: 100%;

    margin: 0 auto;

    border-radius: 16px;

    touch-action: none;
    user-select: none;
}

/* ==========================================
    METAMASK / SMALL SCREEN
========================================== */

@media (max-width: 700px) {

    #game-container {
        width: 100%;
        max-width: 100%;
        padding: 3px;
        margin: 0 auto 15px auto;
        border-radius: 14px;

        height: auto;
        aspect-ratio: auto;
        max-height: none;
    }

    #phaser-game {
        width: 100%;
        max-width: 100%;
        height: auto;

        display: flex;
        align-items: center;
        justify-content: center;

        overflow: hidden;
    }

    #phaser-game canvas {
        width: 100% !important;
        height: auto !important;

        max-width: 100%;
        max-height: none;

        object-fit: contain;

        border-radius: 10px;
    }

    #fullscreenBtn {
        top: 6px;
        right: 6px;
        padding: 6px 8px;
        font-size: 9px;
    }
}


/* ==========================================
    FORSIRANJE DESKTOP PRIKAZA ZA METAMASK
========================================== */

body, html {
  min-width: 1000px !important;
  overflow-x: auto !important;
}

.chat-and-rules-wrapper,
div:has(> .rules-box):has(> .chat-box) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}

.leaderboards-wrapper,
div:has(> .leaderboard-box) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}

.rules-box, 
.chat-box, 
.leaderboard-box {
  width: 50% !important;
  flex: 1 1 50% !important;
}

/* ==========================================
   STANDARD & LITE DUGMAD - ŠIRINA PO TEKSTU
========================================== */

/* Kontejner drži raspored u dve jednake kolone */
#gameSizeWrapper {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 1000px !important;
  margin: 0 auto 15px auto !important;
  box-sizing: border-box !important;
}

/* Levo dugme se prislanja uz desnu ivicu svoje kolone (ka sredini) */
#btnNormalGame {
  width: auto !important;
  justify-self: end !important;
  padding: 12px 24px !important;
}

/* Desno dugme se prislanja uz levu ivicu svoje kolone (ka sredini) */
#btnLowGame {
  width: auto !important;
  justify-self: start !important;
  padding: 12px 24px !important;
}



/* =========================================================
   SATOSHI PLAYS — PREMIUM NAVIGATION
   ========================================================= */

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;

    height: 38px;
    padding: 0 14px;

    color: #aeb4c0;
    text-decoration: none;

    font-family: Inter, Arial, sans-serif;
    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;

    font-size: 14px;
    color: #f7931a;
}

.nav-link span:last-child {
    position: relative;
    z-index: 1;
}


/* =========================================================
SATOSHI PLAYS — PREMIUM LIVE 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);
}


/* =========================================================
MODULE
========================================================= */

.status-module {
    position: relative;

    height: 72px;

    display: flex;
    align-items: center;

    cursor: default;
}

.status-main {
    display: flex;
    align-items: center;
    gap: 7px;

    height: 100%;

    padding: 0 11px;

    transition: .2s ease;
}

.status-module:hover .status-main {
    background: rgba(255,255,255,.045);
}


/* =========================================================
LIVE DOT
========================================================= */

.live-indicator {
    width: 9px;
    height: 9px;

    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);
    }
}


/* =========================================================
TEXT
========================================================= */

.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;
}


/* =========================================================
VALUES
========================================================= */

.status-value {
    min-width: 30px;

    margin-left: 7px;

    color: #35e58a;

    font-size: 14px;
    font-weight: 900;
}


/* =========================================================
ICONS
========================================================= */

.network-icon,
.trophy-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    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);
}


/* =========================================================
ONLINE / LIVE BADGES
========================================================= */

.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);
}


/* =========================================================
SEPARATORS
========================================================= */

.status-separator {
    width: 1px;
    height: 34px;

    background: rgba(255,255,255,.10);
}


/* =========================================================
GLOBAL STATUS
========================================================= */

.global-status {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-left: auto;
    padding-left: 22px;

    color: #858d99;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.3px;

    white-space: nowrap;
}

.global-pulse {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #35e58a;

    box-shadow:
        0 0 10px #35e58a;
}


/* =========================================================
HOVER 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);
}


/* little arrow */

.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 CONTENT
========================================================= */

.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;

    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;
    justify-content: space-between;
    align-items: center;

    padding: 8px 0;

    border-bottom:
        1px solid rgba(255,255,255,.045);

    color: #858d99;

    font-size: 10px;
}

.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;
}


/* =========================================================
MOBILE
========================================================= */

@media (max-width: 700px) {

    .status-bar-epic {
        min-height: 64px;

        justify-content: space-between;

        padding: 0 8px;
    }

    .status-module {
        height: 64px;
    }

    .status-main {
        padding: 0 9px;
        gap: 7px;
    }

    .status-text strong {
        font-size: 11px;
    }

    .status-label {
        font-size: 7px;
        letter-spacing: 1.2px;
    }

    .network-icon,
    .trophy-icon {
        width: 27px;
        height: 27px;

        font-size: 15px;
    }

    .status-value,
    .network-online,
    .competition-live {
        display: none;
    }

    .global-status {
        display: none;
    }

    .status-separator {
        height: 24px;
    }
}



/* --- POZADINA I GLASS MORPHISM STIL --- */

html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    /* Tvoja slika (ako ti je CSS u podfolderu, proveri samo da li je putanja assets/ ili ../assets/) */
    background-image: url('assets/pozadina.jpg'); 
    
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    
    /* Osnovno za laptop/desktop: pozadina se skroluje zajedno sa sadržajem */
    background-attachment: scroll !important; 
    
    min-height: 100%;
    margin: 0;
    padding: 0;
}

/* Na mobilnom (ekrani manji od 768px): pozadina ostaje fiksirana */
@media (max-width: 767px) {
    body {
        background-attachment: fixed !important;
    }
}

/* 3. Pravimo "Glass" (stakleni) efekat za glavne delove */
#top-hero-showcase, 
.hub-card, 
.table-wrap, 
#game-container, 
#in-game-login-bar, 
.status-bar-epic {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(46, 204, 113, 0.9) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
}

footer, 
.footer, 
#footer, 
.copyright {
    background: rgba(255, 255, 255, 0.05) !important; 
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 20px;
    text-align: center;
    color: white;
}

#top-hero-showcase {
    margin-top: 15vh !important; /* Zauzima 35% visine ekrana kao prazan prostor pre nego što počnu kartice */
}

#top-hero-showcase {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
}

footer p {
    margin-top: 30px;
}
