body{
  font-family:'Segoe UI',sans-serif;
  background:radial-gradient(circle at top,#1a0000,#000);
  color:white;
  text-align:center;
  margin:0;
  padding:20px;
}
h1{
  color:gold;
  text-shadow:0 0 15px red,0 0 25px gold;
  font-size:2.4em;
  margin:10px 0 5px;
}
.subtitle{
  margin-top:0;
  color:#f0d090;
}
#layout{
  display:flex;
  flex-direction:row;
  justify-content:center;
  align-items:flex-start;
  gap:20px;
  max-width:1400px;
  margin:0 auto;
}
#player-panel{
  width:280px;
  min-width:260px;
  background:rgba(0,0,0,0.8);
  border-radius:12px;
  border:1px solid #444;
  padding:12px;
  text-align:left;
  box-shadow:0 0 15px #000;
  max-height:80vh;
  overflow-y:auto;
}
#player-panel h2{
  margin:0 0 8px;
  color:gold;
}
#add-player-row{
  display:flex;
  gap:6px;
  margin-bottom:8px;
}
#newPlayerName{
  flex:1;
  padding:4px 6px;
  border-radius:6px;
  border:1px solid #555;
  background:#111;
  color:#fff;
}
#addPlayerBtn{
  padding:5px 9px;
  border-radius:6px;
  border:none;
  background:gold;
  color:#000;
  font-weight:bold;
  cursor:pointer;
}
#addPlayerBtn:hover{
  background:orange;
}
#player-list{
  margin-bottom:8px;
}
.player-btn{
  display:block;
  width:100%;
  margin:2px 0;
  padding:4px 6px;
  border-radius:6px;
  border:1px solid #555;
  background:#222;
  color:#eee;
  text-align:left;
  font-size:13px;
  cursor:pointer;
}
.player-btn.active{
  background:gold;
  color:#000;
  border-color:gold;
}
#selected-player{
  font-size:13px;
  color:#f0d090;
  margin:4px 0 8px;
}
#player-history{
  font-size:13px;
  line-height:1.4;
}
#player-history h3{
  margin:8px 0 4px;
  color:gold;
}
#player-history ul{
  list-style:none;
  padding-left:0;
  margin:0 0 4px;
}
#player-history li{
  margin-bottom:2px;
}
#player-history small{
  color:#aaa;
}

#game-panel{
  flex:1;
  min-width:700px;
}

.cases{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:15px;
  justify-content:center;
  margin:30px auto;
  max-width:1100px;
}
.case{
  position:relative;
  height:150px;
  border-radius:18px;
  overflow:hidden;
  cursor:pointer;
  box-shadow:0 0 18px #000;
  transition:transform .25s ease, box-shadow .25s ease;
  background:transparent;
}
.case:hover{
  transform:scale(1.06);
  box-shadow:0 0 28px gold;
}
.case img.case-img{
  position:absolute;
  top:50%;
  left:50%;
  width:115%;
  height:115%;
  transform:translate(-50%,-50%);
  object-fit:contain;
  z-index:1;
}
.case-label{
  position:relative;
  z-index:2;
  font-weight:bold;
  font-size:20px;
  color:#fff;
  text-shadow:0 0 6px #000;
}
.case.opened .case-label{
  font-size:18px;
}
.personal-container{
  margin-top:25px;
}
.personal-label{
  color:gold;
  font-size:20px;
  margin-top:10px;
  text-shadow:0 0 8px gold;
}
.personal{
  border:3px solid gold;
  box-shadow:0 0 25px gold;
  width:190px;
  height:150px;
  margin:0 auto;
}

#banker-panel{
  display:none;
  position:fixed;
  left:50%;
  top:65%;
  transform:translate(-50%,-50%);
  padding:25px 30px 30px;
  background:rgba(0,0,0,0.95);
  border:3px solid gold;
  border-radius:18px;
  box-shadow:0 0 25px gold;
  max-width:520px;
  width:90%;
  z-index:9000;
  text-align:center;
}
#banker-panel h2{
  margin:5px 0 8px;
  color:gold;
}
#banker-offer-text{
  font-size:20px;
  margin-bottom:10px;
}
#banker-gif{
  display:block;
  margin:0 auto 10px;
  max-width:520px;
}

#final-panel{
  display:none;
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  background:rgba(0,0,0,0.95);
  border:3px solid gold;
  border-radius:20px;
  padding:30px;
  text-align:center;
  z-index:9999;
  width:380px;
  box-shadow:0 0 30px gold;
  color:white;
}
#final-panel h2{
  margin-top:0;
  color:gold;
}

#result-msg{
  margin-top:25px;
  font-size:20px;
  color:gold;
  min-height:24px;
}

button{
  background:gold;
  border:none;
  padding:8px 18px;
  border-radius:8px;
  font-weight:bold;
  cursor:pointer;
  margin:5px;
  font-size:16px;
}
button:hover{
  background:orange;
}

@media(max-width:1000px){
  #layout{
    flex-direction:column;
    align-items:center;
  }
  #game-panel{
    min-width:0;
    width:100%;
  }
}
