* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}
body{
    /* background-color: #fff7cc; */
    background-color: white;
    padding-top: 5rem;
}
#actual_game_div{
    transition: all .5s ease;
}
#actual_game_div.loading{
    filter: blur(6px);
    pointer-events: none; /* Blokuj interakcje podczas ładowania */
}

/* Pełne style dla obrazka Hero w grze Spyfall */
.landing-hero-image {
  /* Podstawowa responsywność */
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  
  /* Estetyka */
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 127, 0.25); /* Neonowa zielona krawędź */
  background-color: #0a0a0a; /* Zabezpieczenie tła */
  
  /* Cień i poświata (Glow) */
  box-shadow: 0 0 20px rgba(0, 255, 127, 0.1), 
              0 10px 40px rgba(0, 0, 0, 0.7);
              
  /* Płynne przejścia dla hovera */
  transition: 
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
    box-shadow 0.4s ease, 
    border-color 0.4s ease;
}

/* --- EFEKT NAJECHANIA (DESKTOP) --- */
@media (hover: hover) {
  .landing-hero-image:hover {
    transform: scale(1.03) translateY(-8px);
    border-color: rgba(0, 255, 127, 0.6);
    box-shadow: 0 0 35px rgba(0, 255, 127, 0.3), 
                0 20px 50px rgba(0, 0, 0, 0.8);
  }
}

/* --- DOPASOWANIE DO MOBILE --- */
@media (max-width: 640px) {
  .landing-hero-image {
    width: 92%; /* Większy margines na małych ekranach */
    margin: 25px auto;
    border-radius: 14px;
    
    /* Na telefonach wyłączamy transformacje, żeby nie "pływało" pod palcem */
    transform: none !important;
  }
}

/* Visual feedback - animacja checkmark po akcjach */
@keyframes checkmark-animation {
    0% {
        transform: scale(0) rotate(45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(45deg);
    }
    100% {
        transform: scale(1) rotate(45deg);
        opacity: 1;
    }
}

@keyframes success-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(40, 167, 69, 0);
    }
}

@keyframes success-highlight {
    0% {
        background-color: rgba(40, 167, 69, 0.2);
    }
    100% {
        background-color: transparent;
    }
}

/* Przycisk z checkmark po akcji */
#actual_game_div .btn.voted,
#actual_game_div .btn.answered {
    position: relative;
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
    pointer-events: none;
    animation: success-pulse 0.6s ease-out;
}

#actual_game_div .btn.voted::after,
#actual_game_div .btn.answered::after {
    content: '✓';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    font-size: 20px;
    font-weight: bold;
    color: white;
    animation: checkmark-animation 0.4s ease-out;
}

/* Select z checkmark po wyborze */
#actual_game_div .form-select.voted {
    border-color: #28a745 !important;
    background-color: rgba(40, 167, 69, 0.1);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%2328a745' stroke='%2328a745' stroke-width='2' d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e"),
                      url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2328a745' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center, right 32px center;
    background-size: 16px 16px, 16px 12px;
    animation: success-highlight 1s ease-out;
}

/* Highlight dla sekcji po akcji */
#actual_game_div .vote-section-success {
    animation: success-highlight 1.5s ease-out;
    border-radius: 8px;
    padding: 4px;
    margin: -4px;
}

/* Animacja shake dla błędów */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}
/*loader*/
#loaderdiv, #game_loader{
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}
#game_loader_div{
    display: none;
    height: 80%;
    width: 100%;
    position: absolute;
    z-index: 1;
    pointer-events: none; /* Pozwól kliknięciom przechodzić przez loader */
}
.lds-facebook {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-facebook div {
  display: inline-block;
  position: absolute;
  left: 8px;
  width: 16px;
  background: whitesmoke;
  border: 1px solid #007bff;
  animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}
.lds-facebook div:nth-child(1) {
  left: 8px;
  animation-delay: -0.24s;
}
.lds-facebook div:nth-child(2) {
  left: 32px;
  animation-delay: -0.12s;
}
.lds-facebook div:nth-child(3) {
  left: 56px;
  animation-delay: 0;
}
@keyframes lds-facebook {
  0% {
    top: 8px;
    height: 64px;
  }
  50%, 100% {
    top: 24px;
    height: 32px;
  }
}

.loader{
  display:flex;
}
.loader .line{
  background:#007bff;
  height:60px;
  width:8px;
  margin: 10px 10px;
  -webkit-animation: moveup 0.5s linear infinite  alternate;
    animation: moveup 0.5s linear infinite  alternate;
}
.loader .line.right{
  -webkit-animation: movedown 0.5s linear infinite  alternate;
    animation: movedown 0.5s linear infinite  alternate;
}
.loader .ball{
  position:relative;
  top:30px;
  width:16px;
  height:16px;
  background:#007bff;
  border-radius:50%;
  -webkit-animation: bounce 0.5s linear infinite  alternate;
    animation: bounce 0.5s linear infinite  alternate;
}

@-webkit-keyframes moveup {
    0% { transform: translateY(-10px); }
    100% { transform: translateY(10px);      }
}
@-webkit-keyframes movedown {
    0% { transform: translateY(10px); }
    100% { transform: translateY(-10px);      }
}
@-webkit-keyframes bounce {
    0% { transform: translateX(-10px); }
    100% { transform: translateX(10px);      }
}

.small-dotted-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* Szerokość kontenera */
    height: 10px;
    position: relative;
  }
  
  .small-dotted-loader div {
    width: 8px; /* Wielkość kropek */
    height: 8px;
    margin: 0 2px; /* Odstępy między kropkami */
    background-color: #007bff; /* Kolor kropek */
    border-radius: 50%; /* Kształt kropek */
    animation: bounce 1.2s infinite ease-in-out;
  }
  
  .small-dotted-loader div:nth-child(1) {
    animation-delay: -0.4s;
  }
  
  .small-dotted-loader div:nth-child(2) {
    animation-delay: -0.2s;
  }
  
  .small-dotted-loader div:nth-child(3) {
    animation-delay: 0s;
  }
  
  @keyframes bounce {
    0%, 80%, 100% {
      transform: scale(0);
    }
    40% {
      transform: scale(1);
    }
  }

/*loader*/

.title-main{
	padding-left: 50px;
	text-align: center;
    font-family: 'Amiri', serif;
}
.bluebutton {
    display: inline-block;
    cursor: default;
    font-size: 15px;
    line-height: 15px;
    color: #FFFFFF;
    background-color: rgba(13, 71, 164, 0.78);
    padding: 8px 2px;
    margin: 5px;
    text-align: center;
    border: none;
    border-radius: 5px;
    transition: all .3s ease;
    width: 80px;
    font-family: 'Amiri', serif;
}
.bluebutton:hover {
    background-color: rgb(0, 118, 255);
}

.expandbutton{
    display: inline-block;
    cursor: default;
    font-size: 15px;
    line-height: 15px;
    margin: 5px;
    text-align: center;
    text-transform: capitalize;
    border: none;
    border-radius: 5px;
    width: 80px;
    font-family: 'Amiri', serif;
    width: 16px;
    height: 16px; 
    padding: 3px;
    font-weight: bold;
    color: black;
    background-color: white;
    border: 1px solid black;
}
.expandbutton:hover{
    background-color: black;
    color: white;
}

.editinput {
    padding-left: 0;
    padding-right: 0;
    width: 120px;
    text-align: center;
}

.cuteinput {
    display: block;
    width: 300px;
    height: 20px;
    text-align: center;
    border-radius: 5px;
    font-size: 14px;
    line-height: 20px;
    color: #2C2022;
    padding: 0px 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #FFFFFF;
    border: 1px solid #C1C1C1;
    border-radius: 5px;
    outline: none;
    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
}

.cuteinput:focus {
    background-color: lightgoldenrodyellow;
    transform: scale(1.05, 1.05)
}

.cuteinput:hover {
    background-color: lightgoldenrodyellow;
}
.playerinfo{
    color: red;
    font-weight: bold;
    text-decoration: underline;
}
.playerinfo:hover{
    cursor: pointer;
}
#stats{
    width: 500px;
    height: 160px;
    position: relative;
    margin: 0 auto;
    padding: 5px;
    background-color: #eaeaea;
    box-shadow: 0px 0px 15px 10px rgba(0, 0, 0, 0.2), 0 10px 10px 0 rgba(0, 0, 0, 0.25);
    font-family: 'Amiri', serif;
    z-index: 2;
}
#stats #info{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;
    font-family: 'Amiri', serif;
}
#stats #info div{
    margin-top: 5px;
    width: 50%;
    text-align: center;
    font-size: 18px;
    font-family: 'Amiri', serif;
}
#stats #server_status{
    width: 100%;
    text-align: center;
    font-size: 26px;
    font-family: 'Amiri', serif;
}
#stats #scores{
    display: none;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-family: 'Amiri', serif;
}
#stats #scores .score{
    width: 20%;
    height: 40px;
    text-align: center;
    margin: 0 50px;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
    background-color: black;
    color: #000000;
    font-weight: bold;
    font-size: 30px;
    font-family: 'Amiri', serif;
    box-shadow: 0px 0px 15px 10px rgba(0, 0, 0, 0.2), 0 10px 10px 0 rgba(0, 0, 0, 0.25);
}

.scoreimage{
    height: 40px;
    width: 40px;
    display: block;
    margin: 0 auto;
}
#stats #teams{
    display: none;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;
    margin-top: 10px;
}
#stats #teams .team{
    border: 1px solid #505050;
    width: 30%;
    height: 200px;
    text-align: center;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'Arial', serif;
}
#stats #teams .team .player{
    font-size: 12px;
    margin: 2px auto;
    display: inline;
    background-color: rgba(255, 255, 255, 0.9);
    width: auto;
    width: 126px;
    border-radius: 2px;
    border: 1px solid #5f5f5f;
    cursor: default;
    color: #002c6c;
    padding: 0px 2px;
    min-height: 18px;
	overflow: hidden;
}
#stats #teams .team .playerclickable{
    text-decoration: underline;
    cursor: pointer;
    transition: all .1s ease;
    color: deeppink;
    font-weight: bold;
}
#stats #teams .team .playerclickable:hover{
    transform: scale(1.1, 1.1);
    background-color: #ffffba;
}
#stats #teams #red.team{
    background-color: rgba(255, 0, 0, 0.35);
}
#stats #teams #spect.team{
    background-color: rgba(255, 255, 255, 0.3);
}
#stats #teams #blue.team{
    background-color: rgba(0, 0, 255, 0.35);
}
#ballpositionbox{
    display: none;
    height: 40px;
    width: 90%;
    margin: 0 auto;
}
#ballpositionline{
    border-top: 3px solid #007bff;
    top: 20px;
    position: relative;
}

#ball{
    width: 20px;
    height: 20px;
    border: 2px solid black;
    border-radius: 50%;
    background-color: #e9cc6e;
    margin-top: -14px;
    margin-left: 46.8%;
    display: none;
    transition: all 2s ease-in-out;;
}

#enterlink{
    display: block;
    text-align: center;
    font-size: 30px;
    margin: 10px auto 10px auto;
    width: 250px;
    text-transform: capitalize;
    border-radius: 2px;
    background-color: green;
    color: white;
    transition: all .2s ease;
    text-decoration: none;
    z-index: 9;
}
#enterlink:hover{
    cursor: pointer;
    box-shadow: 0px 0px 15px 10px rgba(0, 0, 0, 0.2), 0 10px 10px 0 rgba(0, 0, 0, 0.25);
    transform: scale(1.1, 1.1);
}
#speaker_icon{
    display: block;
    position: absolute;
    right: 24%;
    top: 10px;
    width: 22px;
    background-color: #e8e8e8;
    padding: 4px;
    border-radius: 100%;
    cursor: pointer;
}
#chatbox {
    width: 500px;
    height: 180px;
    box-shadow: 0px 0px 15px 10px rgba(0, 0, 0, 0.1), 0 10px 10px 0 rgba(0, 0, 0, 0.15);
    z-index: 1;
    background-color: gainsboro;
    overflow: hidden;
    display: block;
    position: relative;
    margin: 0px auto;
    border-radius: 0 0 5px 5px;
    padding: 0 5px 5px 5px;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column-reverse;
    -ms-flex-direction: column-reverse;
    flex-direction: column-reverse;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: flex-end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    -webkit-align-content: flex-start;
    -ms-flex-line-pack: start;
    align-content: flex-start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
    overflow-x: auto;
}
#chatbox_send{
    width: 510px;
    height: 52px;
    position: relative;
    margin: 0px auto;
    margin-top: 1px;
    border-radius: 0 0 5px 5px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
}

#chatbox .chathour{
    font-style: italic;
    color: saddlebrown;
}
#chatbox .chatname{
    font-weight: bold;
}

#chatbox .server{
    color: red;
}
.chatmessage{
    display: inline-block;
    width: 0;
    white-space: nowrap;
}

#mainwrap {
    width: 100%;
    height: 100%;
    /* background-color: #fff7cc; */
    background-color: white;
    box-sizing: border-box;
}

@media screen and (max-width: 520px) {
    #chatbox{
      width: 350px;
    }
    #chatbox_send{
        width: 360px;
    }
    #stats #teams #spect{
        display: none;
    }
    #stats #teams .team{
        width: 45%;
    }
    #stats{
        width: 350px;
    }
}

  .bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  @media (min-width: 768px) {
    .bd-placeholder-img-lg {
      font-size: 3.5rem;
    }
  }
.tableizer-table {
    font-size: 12px;
    border: 1px solid #CCC; 
    font-family: Arial, Helvetica, sans-serif;
    right: 0;
    left: 0;
    margin: 0px auto;
    background-color: white;
} 
.tableizer-table td {
    padding: 4px;
    border: 1px solid #CCC;
}
.tableizer-table th {
    background-color: #104E8B; 
    color: #FFF;
	font-weight: bold;
    padding: 4px 10px;
}

/*MENU, SIDEBAR*/
.hamburger {
    padding: 10px;
    display: inline-block;
    cursor: pointer;
    background-color: transparent;
    border: 0;
    margin: 0;
    position: fixed;
    z-index: 9;
    /*
    background-color: #ffffff;
    border-radius: 0 50px 50px 0;
    //dodatkowe obramowanie
    */
}

.hamburger,
.navigation {
    -webkit-transition: -webkit-transform .3s .1s ease-in-out;
    transition: -webkit-transform .3s .1s ease-in-out;
    transition: transform .3s .1s ease-in-out;
    transition: transform .3s .1s ease-in-out, -webkit-transform .3s .1s ease-in-out;
}

.hamburger--active {
    -webkit-transform: translatex(250px);
    transform: translatex(250px);
}

.hamburger__box {
    width: 35px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger__inner {
    width: 100%;
    height: 3px;
    background-color: #FFFFFF;
    position: absolute;
    left: 0;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    -webkit-transition: background-color .1s .2s ease-in-out;
    transition: background-color .1s .2s ease-in-out;
    background-color: black;
}

.hamburger__inner::before,
.hamburger__inner::after {
    width: 100%;
    height: 3px;
    background-color: #FFFFFF;
    position: absolute;
    content: '';
    left: 0;
    -webkit-transition: -webkit-transform .2s .2s ease-in-out;
    transition: -webkit-transform .2s .2s ease-in-out;
    transition: transform .2s .2s ease-in-out;
    transition: transform .2s .2s ease-in-out, -webkit-transform .2s .2s ease-in-out;
    background-color: black;
}

.hamburger__inner::before {
    top: -10px;
}

.hamburger__inner::after {
    top: 10px;
}

.hamburger--active .hamburger__inner {
    background-color: transparent;
}

.hamburger--active .hamburger__inner:before {
    -webkit-transform: translateY(10px) rotate(45deg);
    transform: translateY(10px) rotate(45deg);
}

.hamburger--active .hamburger__inner:after {
    -webkit-transform: translateY(-10px) rotate(-45deg);
    transform: translateY(-10px) rotate(-45deg);
}
.navigation {
    height: 100%;
    width: 250px;
    background-color: #FFFFFF;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-transform: translateX(-250px);
    transform: translateX(-250px);
    z-index: 9;
}

.navigation--active {
    -webkit-transform: translateX(0px);
    transform: translateX(0px);
}

.navigation__list {
    margin-top: 50px;
    list-style: none;
}

.navigation__item {
    margin-bottom: 5px;
    margin-left: 20px;
    font-family: 'Amiri', serif;
    font-size: 20px;
}

.navigation__item a {
    text-decoration: none;
    color: #171717;
    cursor: pointer;
}
.navigation__item a:hover{
    text-decoration: none;
    color: red;
}
.orderoption{
    text-align: center;
    display: inline-block;
    margin-bottom: 5px;
    width: 150px;
    height: 10px;
}
#logodiv{
    padding: 5px 15px 0;
    opacity: .9;
}
#logodiv img{
    display: block;
    width: 220px;
}
/* MENU, SIDEBAR - KONIEC */


#naklejkalabel{
    z-index: 1;
    margin-top: 5px;
    margin-left: 10px;
    display: block;
    position: fixed;
    cursor: pointer;
    color: gray;
}
#naklejkalabel:hover{
    color: red;
}
#edituserdiv{
    margin: 0 auto;
    box-sizing: border-box;
    background-color: #F0F0F0;
    border: 1px solid #D3D3D3;
    border-radius: 5px;
    display: block; 
    position: absolute; 
    z-index: 3; 
    top:0; bottom:0; left:0; right:0; text-align: center;
    font-family: 'Amiri', serif;
}
.editinput, .editselect{
    display: inline-block;
    width: 200px;
    height: 40px;
    text-align: center;
    margin: 3px auto;
    border-radius: 5px;
    font-size: 16px;
    line-height: 20px;
    color: #2C2022;
    padding: 0px 15px;
    padding-top: 10px;
    padding-bottom: 8px;
    background-color: #FFFFFF;
    border: 1px solid #C1C1C1;
    border-radius: 5px;
    outline: none;
    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    font-family: 'Amiri', serif;
}
.editlabel{
    width: 250px; 
    display: inline-block;
    text-align: right;
    margin-right: 5px;
    margin-left: -160px;
}

.editinput:focus{
    background-color: lightgoldenrodyellow;
    transform: scale(1.08, 1.08)
}
.editinput:hover{
    background-color: lightgoldenrodyellow;
}
.actionbutton_confirm{
    display: inline-block;
    cursor: default;
    font-size: 15px;
    line-height: 15px;
    color: #FFFFFF;
    background-color: green;
    padding: 8px 2px;
    margin: 5px;
    text-align: center;
    border: none;
    border-radius: 5px;
    transition: all .3s ease;
    width: 80px;
    font-family: 'Amiri', serif;
}
.actionbutton_confirm:hover{
    background-color: forestgreen;
}
.actionbutton_cancel {
    display: inline-block;
    cursor: default;
    font-size: 15px;
    line-height: 15px;
    color: #FFFFFF;
    background-color: red;
    padding: 8px 2px;
    margin: 5px;
    text-align: center;
    border: none;
    border-radius: 5px;
    transition: all .3s ease;
    width: 80px;
    font-family: 'Amiri', serif;
}
.thin{
    display: inline-block;
    cursor: default;
    padding: 6px 10px;
    margin: 2px;
    width: auto;
}
.actionbutton_cancel:hover{
    background-color: orangered;
}
#contactwrap{
    height: 400px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background-color: #F0F0F0;
    border: 1px solid #D3D3D3;
    border-radius: 5px;
    font-family: 'Amiri', serif;
    padding-left: 20px;
}
#contactwrap h1, #contactwrap h2{
    text-align: center;
}
#contactwrap #contact_details{
    text-align: left;
}

.dropdown-menu .dropdown-item{
    white-space: normal;
    width: 200px;
}
.dropdown-menu .dropdown-item:hover{
    white-space: normal;
    width: 200px;
    background-color: rgb(34, 34, 181);
    color: white;
}
.dropdown-menu .lang{
    width: 112px;
}
.dropdown-menu .lang:hover{
    width: 112px;
}
.customhaxnav{
    cursor: pointer;
}
.customhaxnav:hover {
    border-radius: 4px;
    background-color: darkblue;
}
button.navbar-toggler.customhaxnavbutton span.navbar-toggler-icon.customhaxnavicon{
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 255' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.customhaxnavbutton{
    background: white;
}
.customhaxnavbutton:hover{
    background: lightgray;
}
.contact-form{
    width: 70%;
    background: #fff;
}
.contact-form .form-control{
    border-radius:4px;
}
.contact-form form{
    padding: 14%;
}
.contact-form form > h3{
    margin-bottom: 8%;
    margin-top: -10%;
    text-align: center;
    color: #0062cc;
}
.contact-form .btnContact {
    width: 100%;
    border: none;
    border-radius: 4px;
    padding: 1.5%;
    background: #007bff;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
}
.btnContactSubmit
{
    width: 50%;
    border-radius: 1rem;
    padding: 1.5%;
    color: #fff;
    background-color: #0062cc;
    border: none;
    cursor: pointer;
}
.divider-text {
    position: relative;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
}
.divider-text span {
    padding: 7px;
    font-size: 12px;
    position: relative;   
    z-index: 2;
}
.divider-text:after {
    content: "";
    position: absolute;
    width: 100%;
    border-bottom: 1px solid #ddd;
    top: 55%;
    left: 0;
    z-index: 1;
}
.spanlink{
    cursor: pointer;
    color: #007bff;
    text-decoration: underline;
}




/*profile section*/

.acc-div {
    background: #fff none repeat scroll 0 0;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    height: 470px;
    max-width: 340px;
}
.accbox {
    border-radius: 4px 4px 0 0;
    height: 95px;
    width: 100%;
}

#myprofilenickname{
    text-align: center;
    display: block;
    padding-top: 30px;
    font-size: 20px;
}
#account_type_box{
    font-size: 12px;
    text-align: center;
}
.twPc-divStats {
    padding: 10px 0;
    background-color: #007bff;
}
.twPc-Arrange {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: space-around;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}
ul.twPc-Arrange {
    list-style: outside none none;
    margin: 0;
    padding: 0;
}
.twPc-ArrangeSizeFit {
    display: table-cell;
    padding: 0;
    vertical-align: top;
}
.twPc-ArrangeSizeFit a:hover {
    text-decoration: none;
}
.twPc-StatValue {
    display: block;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    color: #fff;
}
.twPc-StatLabel {
    color: #fff;
    font-size: 10px;
    letter-spacing: 0.02em;
    overflow: hidden;
    text-transform: uppercase;
    transition: color 0.15s ease-in-out 0s;
}

#other_info{
    height: 130px;
    border-top: 1px solid #e1e8ed;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: space-around;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 4px solid #007bff;
}
#account_settings{
    height: auto;
    border-top: 1px solid #e1e8ed;
    background-color: #e1e8ed;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-align-content: center;
    -ms-flex-line-pack: center;
    align-content: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    padding-top: 10px;
}
#accoung_setting_form{
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-content: center;
    -ms-flex-line-pack: center;
    align-content: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}
.other_info_element{
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}
.other_info_element span{
    margin: 0 10px;
}

.game-configurator-input-group{
    margin: 0;
}


/*TOGGLE*/
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #6E6E6E;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #1849AB;
}

input:focus + .slider {
  box-shadow: 0 0 0 4px rgba(21, 156, 228, 0.7);
  outline: none;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
/*TOGGLE*/


/*SNOWFLAKES*/
.snowflake {
  color: #fff;
  font-size: 1em;
  font-family: Arial, sans-serif;
  text-shadow: 0 0 5px #000;
}

@-webkit-keyframes snowflakes-fall{0%{top:-10%}100%{top:100%}}@-webkit-keyframes snowflakes-shake{0%,100%{-webkit-transform:translateX(0);transform:translateX(0)}50%{-webkit-transform:translateX(80px);transform:translateX(80px)}}@keyframes snowflakes-fall{0%{top:-10%}100%{top:100%}}@keyframes snowflakes-shake{0%,100%{transform:translateX(0)}50%{transform:translateX(80px)}}.snowflake{position:fixed;top:-10%;z-index:9999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;-webkit-animation-name:snowflakes-fall,snowflakes-shake;-webkit-animation-duration:10s,3s;-webkit-animation-timing-function:linear,ease-in-out;-webkit-animation-iteration-count:infinite,infinite;-webkit-animation-play-state:running,running;animation-name:snowflakes-fall,snowflakes-shake;animation-duration:10s,3s;animation-timing-function:linear,ease-in-out;animation-iteration-count:infinite,infinite;animation-play-state:running,running}.snowflake:nth-of-type(0){left:1%;-webkit-animation-delay:0s,0s;animation-delay:0s,0s}.snowflake:nth-of-type(1){left:10%;-webkit-animation-delay:1s,1s;animation-delay:1s,1s}.snowflake:nth-of-type(2){left:20%;-webkit-animation-delay:6s,.5s;animation-delay:6s,.5s}.snowflake:nth-of-type(3){left:30%;-webkit-animation-delay:4s,2s;animation-delay:4s,2s}.snowflake:nth-of-type(4){left:40%;-webkit-animation-delay:2s,2s;animation-delay:2s,2s}.snowflake:nth-of-type(5){left:50%;-webkit-animation-delay:8s,3s;animation-delay:8s,3s}.snowflake:nth-of-type(6){left:60%;-webkit-animation-delay:6s,2s;animation-delay:6s,2s}.snowflake:nth-of-type(7){left:70%;-webkit-animation-delay:2.5s,1s;animation-delay:2.5s,1s}.snowflake:nth-of-type(8){left:80%;-webkit-animation-delay:1s,0s;animation-delay:1s,0s}.snowflake:nth-of-type(9){left:90%;-webkit-animation-delay:3s,1.5s;animation-delay:3s,1.5s}.snowflake:nth-of-type(10){left:25%;-webkit-animation-delay:2s,0s;animation-delay:2s,0s}.snowflake:nth-of-type(11){left:65%;-webkit-animation-delay:4s,2.5s;animation-delay:4s,2.5s}

.game_box{
    /* border: 1px solid #ececec; */
    background-color: #fdfdfd;
    padding: 12px;
    margin: 4px auto;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}
.btn{
    margin: 2px;
}


#gamemaster_box, #vote_box, #startVotingButton{
    display: none;
}

.vote_section{
    display: block;
    width: 100%;
    text-align: center;
}
.player_vote {
    margin: 0 2px;
}

.role-location-btn {
    min-width: 180px;
    padding-top: 12px;
    padding-bottom: 12px;
    height: auto;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 0 auto;
  }
  .role-location-btn:hover {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  }
  .role-location-btn i {
    font-size: 2rem; /* Większa ikonka */
    margin-bottom: 6px; /* Odstęp między ikoną a tekstem */
  }

  #your_player_box > .d-flex:first-child button {
    flex: 1 1 auto;
    width: 100%;
    max-width: 80vw;
  }
  
  /* Dwa przyciski na dole - obok siebie */
  #your_player_box > .d-flex:last-child {
    flex-direction: row !important;
    gap: 8px !important;
  }
  
  #your_player_box > .d-flex:last-child button {
    flex: 0 1 auto;
    width: auto;
    max-width: none;
    min-width: auto;
    margin: 0;
  }

  #status_box{
    color: #717171;
  }
  #spy_vote_title, #vote_riddle_title, #vote_locations_title, #vote_step_completed{
    margin-top: 10px;
    text-align: center;
  }
  
  #vote_locations_box, #vote_riddle_box, #vote_players_box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 10px 0;
  }
  
  #vote_players_box {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  #vote_players_box .btn {
    margin: 4px;
  }
  
  #vote_locations_box .form-select, #vote_riddle_box .form-select {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    display: block;
  }
  
  /* Na desktopie ograniczamy szerokość selectów w sekcjach głosowania */
  @media (min-width: 768px) {
    #vote_locations_box .form-select, #vote_riddle_box .form-select {
      max-width: 500px;
    }
  }
  
  @media (min-width: 992px) {
    #vote_locations_box .form-select, #vote_riddle_box .form-select {
      max-width: 400px;
    }
  }
  
  /* Oznaczenie wcześniej wybranych (błędnych) lokacji przez szpiega */
  #vote_locations_select option.already-voted-location {
    font-style: italic;
    color: #6c757d;
    opacity: 0.8;
  }
  
  #vote_locations_select option.already-voted-location .already-voted-icon {
    display: inline-block;
    margin-right: 4px;
    color: #6c757d;
    font-size: 0.9em;
    opacity: 0.7;
  }
  
  #spy_vote_found, #location_vote_found, #riddle_vote_found {
    display: block;
    text-align: center;
    margin-top: 5px;
  }
  #question_box{
    border-top: 1px solid #dfdfdf;
  }
  #vote_pending{
    margin-top: 10px;
  }

  /* Progress bar głosowania - kompaktowy */
  .voting-progress-container {
    width: 100%;
    margin: 10px 0;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  }

  .voting-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.85rem;
  }

  .voting-progress-text {
    color: #6c757d;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .voting-progress-text .small-dotted-loader {
    width: 32px;
    height: 8px;
  }

  .voting-progress-text .small-dotted-loader div {
    width: 6px;
    height: 6px;
    margin: 0 1.5px;
    background-color: #6c757d;
  }

  .voting-progress-count {
    color: #007bff;
    font-weight: bold;
    font-size: 0.95rem;
    background-color: #e7f3ff;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 40px;
    text-align: center;
  }

  .voting-progress-bar-wrapper {
    width: 100%;
    height: 12px;
    background-color: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
  }

  .voting-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  .voting-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.25),
      transparent
    );
    animation: shimmer 2s infinite;
  }

  @keyframes shimmer {
    0% {
      transform: translateX(-100%);
    }
    100% {
      transform: translateX(100%);
    }
  }

  /* Mobile-friendly adjustments */
  @media screen and (max-width: 576px) {
    .voting-progress-container {
      max-width: 100%;
      padding: 8px 10px;
      margin: 8px auto;
    }

    .voting-progress-info {
      font-size: 0.8rem;
      margin-bottom: 5px;
    }

    .voting-progress-text {
      font-size: 0.8rem;
    }

    .voting-progress-count {
      font-size: 0.9rem;
      padding: 2px 6px;
      min-width: 35px;
    }

    .voting-progress-bar-wrapper {
      height: 10px;
    }
  }

  /* Modal końca gry - bardziej widoczny */
  .game-end-modal {
    font-size: 1.2rem !important;
  }
  
  .game-end-modal .swal-title {
    font-size: 2.5rem !important;
    font-weight: bold !important;
    margin-bottom: 20px !important;
    animation: pulse 1s ease-in-out infinite;
  }
  
  .game-end-modal .swal-text {
    font-size: 1.3rem !important;
    line-height: 1.6 !important;
    margin-top: 20px !important;
  }
  
  .game-end-modal.swal2-success {
    border-color: #00c942 !important;
  }
  
  .game-end-modal.swal2-error {
    border-color: #ff3200 !important;
  }
  
  @keyframes pulse {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
  }

/* Token display styling - Jira code style */
.token-display {
  font-family: 'Courier New', Courier, monospace;
  background-color: #f4f5f7;
  color: #172b4d;
  padding: 4px 32px 4px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  display: inline-block;
  margin-right: 8px;
  border: 1px solid #e4e5e7;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.token-display:hover {
  background-color: #ebecf0;
  border-color: #c1c7d0;
}

.token-copy-btn {
  background-color: transparent;
  border: none;
  border-radius: 4px;
  padding: 2px 4px;
  cursor: pointer;
  color: #6b778c;
  font-size: 0.85em;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}

.token-copy-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #172b4d;
}

/* Players List Modal - Stylowanie tabelki graczy */
.players-list-modal {
  max-width: 600px !important;
}

.players-list-container {
  max-width: 100%;
  overflow-x: auto;
  margin: 10px 0;
}

.players-list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.players-list-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.players-list-table th {
  padding: 12px 8px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.players-list-table th.col-rank {
  width: 50px;
  text-align: center;
}

.players-list-table th.col-name {
  width: auto;
  min-width: 150px;
  text-align: center;
}

.players-list-table th.col-score {
  width: 80px;
  text-align: center;
}

.players-list-table th.col-status {
  width: 100px;
  text-align: center;
}

.players-list-table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s ease;
}

.players-list-table tbody tr:hover {
  background-color: #f8f9fa;
}

.players-list-table tbody tr.player-you {
  background-color: #e3f2fd !important;
  font-weight: 500;
}

.players-list-table tbody tr.player-you:hover {
  background-color: #bbdefb !important;
}

.players-list-table tbody tr.player-offline {
  opacity: 0.6;
}

.players-list-table tbody tr.player-offline td {
  color: #6c757d;
}

.players-list-table td {
  padding: 12px 8px;
  vertical-align: middle;
}

.players-list-table td.col-rank {
  text-align: center;
  font-weight: 600;
  color: #495057;
}

.rank-number {
  display: inline-block;
  min-width: 24px;
  font-size: 1rem;
}

.rank-medal {
  margin-left: 4px;
  font-size: 1.1rem;
}

.players-list-table td.col-name {
  font-weight: 500;
  color: #212529;
  text-align: center;
}

.players-list-table td.col-name strong {
  color: #1976d2;
}

.players-list-table td.col-score {
  text-align: center;
  font-weight: 600;
  color: #28a745;
  font-size: 1.05rem;
}

.score-value {
  display: inline-block;
  padding: 4px 8px;
  background: #e8f5e9;
  border-radius: 6px;
  min-width: 40px;
}

.players-list-table td.col-status {
  text-align: center;
}

.status-online {
  color: #28a745;
  font-size: 0.9rem;
}

.status-offline {
  color: #dc3545;
  font-size: 0.9rem;
}

.status-text {
  margin-left: 4px;
  font-size: 0.85rem;
  color: #6c757d;
}

/* Responsywność dla mobile */
@media (max-width: 576px) {
  .players-list-modal {
    max-width: 95% !important;
  }
  
  .players-list-table {
    font-size: 0.85rem;
  }
  
  .players-list-table th,
  .players-list-table td {
    padding: 8px 4px;
  }
}

/* Room Statistics Box - Premium Final Statistics */
#room_stats_box {
  margin-top: 20px;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.room-stats-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
}

.room-stats-title {
  font-size: 2rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.stats-icon {
  font-size: 2.2rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.room-stats-summary {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 20px;
  font-size: 0.95rem;
}

.summary-label {
  font-weight: 500;
}

.summary-value {
  font-weight: 700;
  font-size: 1.1rem;
}

.room-support-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 30px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid rgba(0, 123, 255, 0.12);
  background: linear-gradient(135deg, rgba(255, 248, 235, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 8px 24px rgba(13, 43, 87, 0.06);
}

.room-support-copy {
  flex: 1;
}

.room-support-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 6px;
}

.room-support-text {
  color: #495057;
  line-height: 1.5;
}

.room-support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 220px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.2);
}

.room-support-button:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 123, 255, 0.28);
}

.room-stats-ranking {
  margin-top: 30px;
}

.ranking-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 25px;
  text-align: center;
}

.room-close-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  color: #6c757d;
  font-size: 0.92rem;
  line-height: 1.45;
}

.room-close-hint i {
  margin-top: 2px;
  color: #007bff;
}

.players-stats-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.player-stats-row {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.98) 100%);
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.player-stats-row:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.player-stats-row.player-you-stats {
  background: linear-gradient(135deg, rgba(227, 242, 253, 0.95) 0%, rgba(187, 222, 251, 0.98) 100%);
  border-color: #1976d2;
  box-shadow: 0 4px 16px rgba(25, 118, 210, 0.2);
}

.player-stats-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
}

.player-rank {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  font-size: 1.5rem;
}

.rank-medal-large {
  font-size: 2rem;
}

.rank-number-large {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
}

.player-name-section {
  text-align: center;
}

.player-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #212529;
  margin: 0;
}

.you-badge {
  font-size: 0.9rem;
  color: #1976d2;
  font-weight: 500;
}

.player-score-final {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.score-label {
  font-size: 0.75rem;
  color: #6c757d;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.score-value-large {
  font-size: 1.3rem;
  font-weight: 700;
  color: #28a745;
  background: #e8f5e9;
  padding: 4px 10px;
  border-radius: 6px;
}

.player-stats-details {
  margin-top: 15px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.stat-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.stat-item:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.stat-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 4px;
  font-weight: 500;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #212529;
}

.stat-percentage {
  font-size: 0.85rem;
  color: #6c757d;
  font-weight: 400;
}

/* Games History Table */
.games-history-section {
  margin-top: 30px;
  margin-bottom: 40px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 20px;
  text-align: center;
}

.games-history-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.games-history-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 0.95rem;
}

.games-history-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.games-history-table th {
  padding: 14px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.games-history-table th.col-game-num {
  width: 60px;
}

.games-history-table th.col-location {
  min-width: 150px;
}

.games-history-table th.col-spy {
  min-width: 120px;
}

.games-history-table th.col-winner {
  min-width: 130px;
}

.games-history-table th.col-questions {
  width: 100px;
}

.games-history-table th.col-duration {
  width: 100px;
}

.games-history-table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: background-color 0.2s ease;
}

.games-history-table tbody tr:hover {
  background-color: #f8f9fa;
}

.games-history-table tbody tr:last-child {
  border-bottom: none;
}

.games-history-table td {
  padding: 12px;
  text-align: center;
  vertical-align: middle;
}

.games-history-table td.col-game-num {
  font-weight: 600;
  color: #495057;
  font-size: 1rem;
}

.games-history-table td.col-location {
  font-weight: 500;
  color: #212529;
}

.games-history-table td.col-spy {
  font-weight: 500;
  color: #212529;
}

.games-history-table td.col-winner {
  font-weight: 600;
  font-size: 0.95rem;
}

.games-history-table td.winner-spy {
  color: #ff9800;
}

.games-history-table td.winner-players {
  color: #28a745;
}

.games-history-table td.winner-nobody {
  color: #6c757d;
}

.games-history-table td.col-questions {
  color: #495057;
  font-weight: 500;
}

.games-history-table td.col-duration {
  color: #6c757d;
  font-size: 0.9rem;
}

/* Responsywność dla mobile */
@media (max-width: 768px) {
  .room-stats-title {
    font-size: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .player-stats-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  
  .player-rank {
    width: 50px;
    height: 50px;
  }
  
  .rank-medal-large {
    font-size: 1.5rem;
  }
  
  .rank-number-large {
    font-size: 1.1rem;
  }
  
  .player-name-section {
    text-align: center;
  }
  
  .player-name {
    font-size: 1.1rem;
  }
  
  .score-value-large {
    font-size: 1.2rem;
  }
  
  .games-history-table {
    font-size: 0.85rem;
  }
  
  .games-history-table th,
  .games-history-table td {
    padding: 8px 6px;
  }
  
  .games-history-table th.col-location,
  .games-history-table th.col-spy {
    min-width: 100px;
  }
}

.token-copy-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.token-copy-btn i {
  font-size: 0.9em;
}

/* ============================================
   NOWOCZESNE STYLE DLA ACTUAL_GAME - MOBILE FIRST
   ============================================ */

/* Container główny - tło z delikatnym gradientem */
#actual_game_div {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ulepszone game_box z glassmorphism i lepszymi cieniami - kompaktowo */
#actual_game_div .game_box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 12px;
  margin: 4px auto;
  border-radius: 10px;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

#actual_game_div .game_box:hover {
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Lepsze nagłówki - kompaktowo */
#actual_game_div .game_box h5 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 10px;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* Premium przyciski - kompaktowo ale z dobrym touch target */
#actual_game_div .btn {
  margin: 4px 3px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 10px;
  border: none;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 42px; /* Dobry touch target */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  text-transform: none;
  line-height: 1.4;
}

/* Ripple effect */
#actual_game_div .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease-out, height 0.5s ease-out, opacity 0.5s ease-out;
  opacity: 0;
}

#actual_game_div .btn:active::before {
  width: 400px;
  height: 400px;
  opacity: 1;
}

/* Hover state - elegancki lift */
#actual_game_div .btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.2),
    0 3px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Active state - subtelny press */
#actual_game_div .btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.1s ease;
}

/* Focus state dla accessibility */
#actual_game_div .btn:focus {
  outline: none;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 0 0 3px rgba(0, 123, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Premium kolory przycisków z zaawansowanymi gradientami */
#actual_game_div .btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 50%, #17a2b8 100%);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#actual_game_div .btn-success:hover {
  background: linear-gradient(135deg, #34ce57 0%, #2dd4a8 50%, #1db8d1 100%);
  box-shadow: 
    0 6px 20px rgba(40, 167, 69, 0.35),
    0 3px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#actual_game_div .btn-primary {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 50%, #004085 100%);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#actual_game_div .btn-primary:hover {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #084298 100%);
  box-shadow: 
    0 6px 20px rgba(0, 123, 255, 0.35),
    0 3px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#actual_game_div .btn-warning {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 50%, #f57c00 100%);
  color: #212529;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

#actual_game_div .btn-warning:hover {
  background: linear-gradient(135deg, #ffcd39 0%, #ffb340 50%, #ff9800 100%);
  box-shadow: 
    0 6px 20px rgba(255, 193, 7, 0.35),
    0 3px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

#actual_game_div .btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 50%, #bd2130 100%);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#actual_game_div .btn-danger:hover {
  background: linear-gradient(135deg, #e4606d 0%, #d32f2f 50%, #c62828 100%);
  box-shadow: 
    0 6px 20px rgba(220, 53, 69, 0.35),
    0 3px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#actual_game_div .btn-info {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 50%, #117a8b 100%);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#actual_game_div .btn-info:hover {
  background: linear-gradient(135deg, #20c9df 0%, #1ba0b5 50%, #168a9c 100%);
  box-shadow: 
    0 6px 20px rgba(23, 162, 184, 0.35),
    0 3px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Outline buttons - eleganckie z animacją */
#actual_game_div .btn-outline-primary {
  background: white;
  border: 2px solid #007bff;
  color: #007bff;
  box-shadow: 
    0 2px 6px rgba(0, 123, 255, 0.15),
    0 1px 2px rgba(0, 0, 0, 0.08);
}

#actual_game_div .btn-outline-primary::before {
  background: rgba(0, 123, 255, 0.2);
}

#actual_game_div .btn-outline-primary:hover {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  border-color: #0056b3;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 6px 20px rgba(0, 123, 255, 0.3),
    0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Form selecty - mobile-friendly z większymi touch targets */
#actual_game_div .form-select {
  border-radius: 10px;
  border: 2px solid #d0d0d0;
  padding: 14px 16px;
  font-size: 1rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 12px;
  padding-right: 40px; /* Miejsce na ikonę strzałki */
  min-height: 48px; /* Zapewnia min 44px touch target + padding */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  width: 100%; /* 100% width na mobile */
}

#actual_game_div .form-select:hover {
  border-color: #007bff;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.1);
}

#actual_game_div .form-select:focus {
  border-color: #007bff;
  box-shadow: 
    0 0 0 3px rgba(0, 123, 255, 0.15),
    0 4px 8px rgba(0, 123, 255, 0.1);
  outline: none;
  transform: translateY(-1px);
}

#actual_game_div .form-select:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Na desktopie ograniczamy szerokość selectów */
@media (min-width: 768px) and (max-width: 991.98px) {
  #actual_game_div .form-select {
    max-width: 500px;
    width: 100%;
  }
}

@media (min-width: 992px) {
  #actual_game_div .form-select {
    max-width: 400px;
    width: 100%;
  }
}

/* Na mobile - większy padding i font dla lepszej czytelności */
@media (max-width: 767.98px) {
  #actual_game_div .form-select {
    font-size: 16px; /* Zapobiega zoom na iOS */
    padding: 16px 18px; /* Jeszcze większy padding na mobile */
    padding-right: 44px; /* Więcej miejsca na ikonę */
    min-height: 52px; /* Większy touch target na mobile */
  }
}

/* Status box - specjalne style - kompaktowo z subtelnym akcentem */
#actual_game_div #status_box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  position: relative;
  overflow: hidden;
}

#actual_game_div #status_box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(0, 123, 255, 0.08) 0%, transparent 70%);
  border-radius: 0 10px 0 100%;
  pointer-events: none;
}

#actual_game_div #status_box::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(0, 123, 255, 0.03) 100%);
  pointer-events: none;
  border-radius: 10px;
}

#actual_game_div #status_box {
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(0, 123, 255, 0.1);
}

#actual_game_div #status_box h5 em {
  color: #007bff;
  font-weight: 600;
}

/* Status text - mniejszy i text-muted */
#actual_game_div #status_box .text-muted {
  color: #6c757d;
  font-size: 0.875rem;
  line-height: 1.4;
}

#actual_game_div #status_box .text-muted strong {
  font-weight: 500;
  color: #6c757d;
}

#actual_game_div #status_box .text-muted em {
  font-style: normal;
  color: #6c757d;
}

/* Question box - wyróżniony - kompaktowo z subtelnym akcentem */
#actual_game_div #question_box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-radius: 8px;
  padding: 10px;
  margin-top: 8px;
  border-top: none;
  position: relative;
  overflow: hidden;
}

#actual_game_div #question_box::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(0, 123, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

#actual_game_div #question_box {
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(0, 123, 255, 0.05);
}

/* Mniejszy font dla numeru pytania i gracza */
#actual_game_div #question_box > div:first-child {
  font-size: 0.85rem;
  color: #6c757d;
}

#actual_game_div #question_text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1a1a1a;
  display: block;
  margin: 8px 0;
  text-align: center;
}

/* Vote box - specjalne style - kompaktowo z subtelnym akcentem */
#actual_game_div #vote_box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  position: relative;
  overflow: hidden;
}

#actual_game_div #vote_box::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(0, 201, 66, 0.1) 0%, transparent 70%);
  border-radius: 0 100% 0 0;
  pointer-events: none;
}

#actual_game_div #vote_box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 201, 66, 0.03) 0%, transparent 50%);
  pointer-events: none;
  border-radius: 10px;
}

#actual_game_div #vote_box {
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(0, 201, 66, 0.1);
}

/* Vote sections - kompaktowe spacing */
#actual_game_div .vote_section {
  padding: 8px 0;
  margin: 6px 0;
}

#actual_game_div #vote_locations_title,
#actual_game_div #vote_riddle_title,
#actual_game_div #spy_vote_title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 10px 0 8px 0;
  padding: 6px 0;
}

#actual_game_div #spy_vote_found,
#actual_game_div #location_vote_found,
#actual_game_div #riddle_vote_found {
  font-size: 1rem;
  font-weight: 600;
  color: #00c942;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Vote players box - kompaktowe przyciski */
#actual_game_div #vote_players_box .btn {
  min-width: 100px;
  padding: 10px 14px;
  font-size: 0.875rem;
  margin: 4px;
}

/* Progress bar - już jest ładny, tylko lekkie ulepszenie */
#actual_game_div .voting-progress-container {
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
  backdrop-filter: blur(5px);
}

/* Gamemaster box - specjalne style - kompaktowo z subtelnym akcentem */
#actual_game_div #gamemaster_box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  position: relative;
  overflow: hidden;
}

#actual_game_div #gamemaster_box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.12) 0%, transparent 70%);
  border-radius: 0 0 100% 0;
  pointer-events: none;
}

#actual_game_div #gamemaster_box::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(225deg, rgba(255, 193, 7, 0.04) 0%, transparent 60%);
  pointer-events: none;
  border-radius: 10px;
}

#actual_game_div #gamemaster_box {
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(255, 193, 7, 0.15);
}

#actual_game_div #gamemaster_box .btn {
  flex: 1 1 auto;
  min-width: calc(25% - 6px);
  max-width: calc(25% - 6px);
  margin: 2px !important;
}

#actual_game_div #gamemaster_box .d-flex.gap-2 {
  gap: 0 !important;
}

/* Your player box - kompaktowo z subtelnym akcentem */
#actual_game_div #your_player_box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  position: relative;
  overflow: hidden;
}

#actual_game_div #your_player_box::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(23, 162, 184, 0.1) 0%, transparent 70%);
  border-radius: 100% 0 0 0;
  pointer-events: none;
}

#actual_game_div #your_player_box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.03) 0%, transparent 50%);
  pointer-events: none;
  border-radius: 10px;
}

#actual_game_div #your_player_box {
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(23, 162, 184, 0.1);
}

/* Wycentrowanie przycisku "Pokaż rolę i lokację" */
#actual_game_div #your_player_box > .d-flex:first-child {
  justify-content: center;
  align-items: center;
}

/* Dwa przyciski na dole - obok siebie z odstępem */
#actual_game_div #your_player_box > .d-flex:last-child {
  flex-direction: row !important;
  gap: 8px !important;
  justify-content: center;
}

#actual_game_div #your_player_box > .d-flex:last-child button {
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

#actual_game_div .role-location-btn {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.25);
  padding: 12px 16px;
  min-height: 60px;
  margin: 0 auto;
}

#actual_game_div .role-location-btn:hover {
  box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
  transform: translateY(-1px);
}

/* Vote result box - kompaktowo z subtelnym akcentem */
#actual_game_div #vote_result {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  position: relative;
  overflow: hidden;
}

#actual_game_div #vote_result::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(220, 53, 69, 0.08) 0%, transparent 70%);
  border-radius: 0 0 0 100%;
  pointer-events: none;
}

#actual_game_div #vote_result::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(315deg, rgba(220, 53, 69, 0.03) 0%, transparent 50%);
  pointer-events: none;
  border-radius: 10px;
}

#actual_game_div #vote_result {
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(220, 53, 69, 0.1);
}

/* Wycentrowanie wszystkich elementów w vote_result - kompaktowe spacingi */
#actual_game_div #vote_result > * {
  text-align: center;
}

#actual_game_div #vote_result h5 {
  margin-bottom: 8px;
}

#actual_game_div #vote_status {
  text-align: center;
  margin: 6px 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

#actual_game_div #vote_result_spy_location {
  text-align: center;
  margin: 8px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#actual_game_div #vote_result_spy_location .badge {
  margin: 4px;
}

#actual_game_div #vote_result .vote_section {
  margin: 4px 0;
  padding: 4px 0;
}

#actual_game_div #vote_result_votes {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0;
}

/* Badge dla wyników głosowania */
#actual_game_div .badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 4px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Token display - już jest ładny, tylko lekkie ulepszenie */
#actual_game_div .token-display {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Answer buttons - kompaktowe jak przyciski do głosowania */
#actual_game_div #answer_buttons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 12px auto 0 auto !important;
  padding: 8px 0 !important;
  width: 100% !important;
}

#actual_game_div #answer_buttons .btn {
  min-width: auto !important;
  margin: 0 !important;
  flex: 0 1 auto !important;
  width: auto !important;
  padding: 10px 16px !important;
}

/* Responsive improvements dla małych ekranów - kompaktowo */
@media (max-width: 576px) {
  #actual_game_div .game_box {
    padding: 10px;
    margin: 4px auto;
    border-radius: 8px;
  }
  
  #actual_game_div .game_box h5 {
    font-size: 0.95rem;
  }
  
  #actual_game_div .btn {
    width: 100%;
    margin: 4px 0;
    padding: 10px 16px;
  }
  
  #actual_game_div #gamemaster_box .btn {
    flex: 0 1 calc(50% - 4px);
    min-width: calc(50% - 4px);
    max-width: calc(50% - 4px);
    margin: 2px !important;
  }
  
  #actual_game_div #gamemaster_box .d-flex.gap-2 {
    gap: 0 !important;
  }
  
  #actual_game_div #vote_players_box .btn {
    min-width: auto;
    flex: 0 1 auto;
    width: auto;
    max-width: calc(50% - 6px);
  }
  
  #actual_game_div #answer_buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
  }
  
  #actual_game_div #answer_buttons .btn {
    min-width: auto !important;
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: calc(50% - 4px) !important;
    margin: 0 !important;
  }
  
  #actual_game_div .form-select {
    font-size: 16px; /* Zapobiega zoom na iOS */
  }
}

/* Animacje dla pojawiających się elementów */
#actual_game_div .game_box {
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Kompaktowe spacing dla tekstu */
#actual_game_div .game_box > div {
  margin-bottom: 8px;
}

#actual_game_div .game_box > div:last-child {
  margin-bottom: 0;
}

/* Vote step completed - wyróżniony - kompaktowo */
#actual_game_div #vote_step_completed {
  background: linear-gradient(135deg, rgba(0, 201, 66, 0.08) 0%, rgba(0, 201, 66, 0.04) 100%);
  border-radius: 8px;
  padding: 10px;
  border: 1px solid rgba(0, 201, 66, 0.25);
  font-weight: 500;
  font-size: 0.9rem;
  color: #00c942;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Lepsze cienie dla głębi */
#actual_game_div .game_box {
  will-change: transform;
}

/* Smooth scroll dla mobile */
@media (max-width: 768px) {
  #actual_game_div {
    -webkit-overflow-scrolling: touch;
  }
}

/* Public pages / SEO landing */
.public-page.contact-form {
  width: min(100%, 1080px);
}

.public-page .card-body {
  padding: 3rem 0 4rem;
}

.page-hero,
.landing-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.landing-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 123, 255, 0.1);
  color: #0056b3;
  font-size: 0.9rem;
  font-weight: 700;
}

.public-page h1 {
  margin-bottom: 1rem;
  color: #0d2b57;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.landing-cta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 2rem 0 1rem;
}

.page-small-note {
  margin-top: 1rem;
  color: #6c757d;
}

.landing-section {
  margin-top: 2.5rem;
}

.landing-section-compact {
  margin-top: 1.5rem;
}

.landing-section-title {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: #0d2b57;
  text-align: center;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.landing-card,
.landing-step,
.landing-faq-item {
  padding: 1.25rem;
  border: 1px solid rgba(13, 110, 253, 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 30px rgba(13, 43, 87, 0.06);
}

.landing-card h2,
.landing-card h3,
.landing-step h3,
.landing-faq-item h3 {
  margin-bottom: 0.75rem;
  color: #0d2b57;
  font-size: 1.2rem;
}

.landing-step {
  position: relative;
  padding-top: 3.5rem;
}

.landing-step-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #007bff;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.landing-list {
  margin: 0;
  padding-left: 1.2rem;
}

.landing-list li {
  margin-bottom: 0.7rem;
}

.landing-faq-list {
  display: grid;
  gap: 14px;
}

.landing-faq-item p,
.landing-card p,
.landing-step p {
  margin-bottom: 0;
}

.public-page a {
  text-underline-offset: 2px;
}

@media (max-width: 768px) {
  .room-support-callout {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .room-support-button {
    min-width: 0;
    width: 100%;
  }

  .contact-form {
    width: 92%;
  }

  .public-page .card-body {
    padding: 2rem 0 3rem;
  }

  .landing-grid {
    grid-template-columns: 1fr;
  }
}