* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.board {
  background: radial-gradient(circle at top, #0b4f3a, #021b13);
  color: #fff;
  height: 100svh;
  display: flex;
  justify-content: center;

  .game {
    width: 100%;
    max-width: 450px;
    background: radial-gradient(circle at top,#0e1820, #0b1822, #040709);
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    
    .container{
      height: 90%;
      display: flex;
      flex-direction: column;
    }

    .header {
      background: var(--main);
      padding: 10px 16px;
      display: flex;
      align-items: center;

      h1{
        font-size:18px;
        margin:0;
        flex:1;
      }

      .logo {
        font-weight: 900;
        font-size: 20px;
        flex:1;
      }
      
      .auth {
        display: flex;
        gap: 8px;
      }
      
      .btn {
        padding: 6px 14px;
        border-radius: 4px;
        font-size: 13px;
        border: none;
        cursor: pointer;
      }
      
      .btn-outline {
        background: #fff;
        color: var(--main);
        font-weight: 600;
      }
      
      .btn-solid {
        background: var(--green-dark);
        color: #fff;
      }

      .profile{
        display: flex;
        width: auto;
        height: 32px;
        border: 1px solid var(--text);
        align-items: center;
        gap: 5px;
        padding: 10px;

        img{
          width: 20px;
          height: 20px;
          object-fit: cover;
          border-radius: 50%;
          border: 1px solid var(--gray);
        }
        p{
          font-size: 13px;
          color: var(--text);
        }
      }
    }

    .tabs{
      display:flex;
      gap:18px;
      padding:12px 16px;
      background:#151a23;
      overflow-x:auto;
    }

    .tab{
      color:var(--muted);
      white-space:nowrap;
      position:relative;
      padding-bottom:15px;
      cursor:pointer;
    }

    .tab.active{
      color:#fff;
    }

    .tab.active::after{
      content:"";
      position:absolute;
      left:0;
      right:0;
      bottom:0;
      height:2px;
      background:var(--green);
    }


    .field{
      background:var(--card);
      border:1px solid var(--line);
      border-radius:6px;
      padding:14px;
      display:flex;
      align-items:center;
      gap:10px;
      margin-bottom:14px;

      select, input{
        background:transparent;
        border:none;
        outline:none;
        color:#fff;
        width:100%;
        font-size:15px;
      }
      select option{
        background:#1b212c;
      }
      &:focus-within {
        outline: none;
        border-color: var(--green);
      }
    }
    .footer{
      width: 100%;
      
      .upper{
        background-color: var(--card);
        padding: 15px 20px;
        display: flex;
        align-items: center;

        div{
          display: flex;
          gap: 10px;
          p{
            font-size: 13px;
            color: var(--muted);
          }

          &.img-con{
            flex-grow: 1;
            
            img{
              width: 30px;
              height: 20px;
            }
          }
        }
      }

      .lower{
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
        background-color: var(--dark);
        gap: 20px;

        div{
          p{
            font-size: 13px;
            color: var(--muted);
          }
          a{
            color: var(--muted);
          }
          &.img-con{
            img{
              width: 90px;
              height: 30px;
            }
          }
        }
      }
    }
    .bottom-nav {
      background: #0b0d12;
      display: flex;
      justify-content: space-around;
      padding: 13px 0;
      border-top: 1px solid #1e2430;
      height: 10%;

      a{
        text-decoration: none; 
      }
      .nav-item {
        display: flex;
        align-items: center;
        justify-content: end;
        flex-direction: column;
        gap: 4px;
        width: auto;
        font-size: 12px;
        color: var(--gray);
        padding: 3px;
      }
      
      .active {
        color: var(--main);
        border-bottom: 3px solid var(--main);
        font-weight: 700;
        padding: 3px;
      }
    }
  }
}


.modal{
  position: absolute;
  width: 100%;
  width: 100%;
  height: 100%;
  padding: 24px;
  background: linear-gradient(180deg, #151b24, #0f141b);
  border: 1px solid var(--border);
  z-index: 2;
  display: none;

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;

    .country {
      display: flex;
      align-items: center;
      gap: 10px;
    
      .flag {
        width: 24px;
        height: 16px;
        background: linear-gradient(
          to right,
          #008753 0%,
          #008753 33%,
          #ffffff 33%,
          #ffffff 66%,
          #008753 66%,
          #008753 100%
        );
      }
    }
    
    .close {
      font-size: 22px;
      color: var(--muted);
      cursor: pointer;
    }
  }
}

.hidden {
  display: none;
}


input:-webkit-autofill{
  -webkit-text-fill-color: #ffffff !important;
  transition: background-color 9999s ease-in-out 0s;
}


input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: #0f172a; 
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: rgb(78, 78, 78);
  border-radius: 5px;
}
