*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}
html{
  height:100%;
  background:#fff0c8;
  touch-action:manipulation;
}
body{
  font-family:Arial,sans-serif;
  background:#fff0c8;
  width:100%;
  height:var(--app-h, 100dvh);
  min-height:var(--app-h, 100dvh);
  max-height:var(--app-h, 100dvh);
  overflow:hidden;
  display:grid;
  grid-template-rows:auto 1fr;
  color:#50323c;
  touch-action:manipulation;
}
.site-container{
  width:100%;
  max-width:1100px;
  margin:0 auto;
  padding-left:20px;
  padding-right:20px;
}
.site-header{
  width:100%;
  flex-shrink:0;
  background:#f0de9e;
  border-bottom:1px solid rgba(255,190,80,.35);
  box-shadow:0 4px 14px rgba(255,185,70,.15);
  position:sticky;
  top:0;
  z-index:100;
}
.site-header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:56px;
  padding-top:12px;
  padding-bottom:12px;
}
.site-logo{
  flex-shrink:0;
  display:flex;
  align-items:center;
  text-decoration:none;
}
.site-logo img,
.brand-logo{
  display:block;
  height:44px;
  width:auto;
}
.nav-toggle{
  display:none;
}
.site-nav{
  display:flex;
  align-items:center;
  justify-content:center;
}
.nav-menu{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  list-style:none;
  flex-wrap:nowrap;
  padding:0;
}
.nav-menu a{
  text-decoration:none;
  font-size:12px;
  font-weight:800;
  color:#50323c;
  letter-spacing:.6px;
  transition:color .2s;
}
.nav-menu a:hover,
.nav-menu a.active{
  color:#7d4300;
}
.header-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-shrink:0;
}
.btn-register{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 18px;
  border-radius:10px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.5px;
  text-decoration:none;
  color:#7d4300;
  background:linear-gradient(180deg,#ffd770,#ffaf38);
  transition:background .2s ease;
  white-space:nowrap;
}
.btn-register:hover{
  background:linear-gradient(180deg,#ffaf38,#ffd770);
}
.page{
  position:relative;
  min-height:0;
  width:100%;
  height:100%;
  overflow:hidden;
  background-color:#fff0c8;
}
.page-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  z-index:0;
  pointer-events:none;
  user-select:none;
}
.game-scaler{
  position:relative;
  z-index:1;
  width:100%;
  height:100%;
  display:flex;
  justify-content:center;
  align-items:stretch;
  overflow:hidden;
}
.game-fit{
  position:relative;
  overflow:hidden;
  flex-shrink:0;
  align-self:center;
}
.game-canvas{
  position:absolute;
  top:0;
  left:0;
  width:430px;
  transform-origin:top left;
}
.page-center{
  width:430px;
  position:relative;
  min-height:100%;
  background:#fff0c8;
}
@media (min-width:768px){
  .page-center{
    border-left:none;
    border-right:none;
  }
  .site-header-inner{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    padding-top:14px;
    padding-bottom:14px;
  }
  .site-logo{
    grid-column:1;
    justify-self:start;
  }
  .site-nav{
    grid-column:2;
  }
  .header-actions{
    grid-column:3;
    justify-self:end;
  }
  .nav-toggle{
    display:none;
  }
  .btn-register{
    padding:10px 20px;
    font-size:12px;
  }
  .nav-menu{
    gap:28px;
  }
  .nav-menu a{
    font-size:13px;
  }
}
@media (max-width:767px){
  .site-header-inner{
    min-height:52px;
  }
  .site-logo img{
    height:38px;
  }
  .btn-register{
    display:none;
  }
  .nav-toggle{
    display:block;
    position:relative;
    width:40px;
    height:40px;
    border:none;
    background:transparent;
    cursor:pointer;
    padding:0;
    flex-shrink:0;
  }
  .nav-toggle span{
    position:absolute;
    left:9px;
    right:9px;
    top:50%;
    height:3px;
    margin-top:-1.5px;
    background:#7d4300;
    border-radius:1px;
    transform-origin:center;
    transition:transform .25s, opacity .25s;
  }
  .nav-toggle span:nth-child(1){
    transform:translateY(-8px);
  }
  .nav-toggle span:nth-child(2){
    transform:translateY(0);
  }
  .nav-toggle span:nth-child(3){
    transform:translateY(8px);
  }
  .site-header.menu-open .nav-toggle span:nth-child(1){
    transform:translateY(0) rotate(45deg);
  }
  .site-header.menu-open .nav-toggle span:nth-child(2){
    opacity:0;
  }
  .site-header.menu-open .nav-toggle span:nth-child(3){
    transform:translateY(0) rotate(-45deg);
  }
  .site-nav{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:#f0de9e;
    border-bottom:1px solid rgba(255,190,80,.35);
    box-shadow:0 10px 20px rgba(255,185,70,.14);
  }
  .site-header.menu-open .site-nav{
    display:block;
  }
  .nav-menu{
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:8px 0;
  }
  .nav-menu li{
    border-bottom:1px solid rgba(255,95,162,.12);
  }
  .nav-menu li:last-child{
    border-bottom:none;
  }
  .nav-menu a{
    display:block;
    padding:14px 20px;
    font-size:13px;
    letter-spacing:.5px;
  }
}
.game{
  width:100%;
  min-height:100%;
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:12px;
  box-sizing:border-box;
}
.slot-machine{
  flex-shrink:0;
  display:flex;
  flex-direction:column;
  background:linear-gradient(180deg,#ffe090 0%,#ffd770 55%,#f5b848 100%);
  border-radius:12px;
  border:5px solid #fff;
  padding:12px;
  position:relative;
}
.slot-machine::before{
  display:none;
}
.slot-top{
  text-align:center;
  margin-bottom:8px;
  position:relative;
  flex-shrink:0;
  z-index:1;
}
.slot-top h1{
  font-size:18px;
  font-weight:900;
  color:#7d4300;
  letter-spacing:1px;
  text-shadow:0 1px 0 rgba(255,255,255,.5);
}
.slot-top p{
  font-size:10px;
  font-weight:800;
  color:#a05a10;
  margin-top:2px;
  letter-spacing:.5px;
}
.reels-window{
  --reel-h:72px;
  background:#2e1a0a;
  border-radius:8px;
  padding:8px;
  border:3px solid #fff;
  box-shadow:inset 0 4px 16px rgba(12,6,2,.6);
  position:relative;
  flex-shrink:0;
  z-index:1;
}
.reels-window.win-flash{
  animation:winFlash .6s ease 2;
}
@keyframes winFlash{
  0%,100%{ box-shadow:inset 0 4px 16px rgba(12,6,2,.6); }
  50%{ box-shadow:inset 0 4px 16px rgba(12,6,2,.6), 0 0 24px rgba(80,220,120,.95), 0 0 40px rgba(50,190,90,.55); }
}
.reels{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:6px;
}
.reel{
  background:#fff;
  border-radius:6px;
  height:var(--reel-h);
  overflow:hidden;
  position:relative;
}
.reel::before,
.reel::after{
  display:none;
}
.reel-strip{
  display:flex;
  flex-direction:column;
  align-items:center;
  will-change:transform;
  transform:translateZ(0);
  -webkit-backface-visibility:hidden;
  backface-visibility:hidden;
}
.reel-symbol{
  height:var(--reel-h);
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  user-select:none;
}
.reel-symbol img{
  width:52px;
  height:52px;
  object-fit:contain;
  pointer-events:none;
  -webkit-backface-visibility:hidden;
  backface-visibility:hidden;
}
.payline{
  display:none;
}
.win-banner{
  margin-top:8px;
  min-height:26px;
  text-align:center;
  font-size:12px;
  font-weight:900;
  color:#7d4300;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  flex-shrink:0;
  z-index:1;
}
.win-banner.big{
  color:#7d4300;
  font-size:13px;
  animation:winPop .4s ease;
}
@keyframes winPop{
  0%{ transform:scale(.9); opacity:.5; }
  60%{ transform:scale(1.06); }
  100%{ transform:scale(1); opacity:1; }
}
.paytable{
  margin-top:8px;
  background:#fff5dc;
  border:none;
  border-radius:8px;
  padding:8px;
  position:relative;
  z-index:1;
  flex-shrink:0;
}
.paytable h3{
  font-size:11px;
  font-weight:900;
  color:#7d4300;
  text-align:center;
  margin-bottom:6px;
  letter-spacing:.5px;
}
.paytable-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5px;
}
.pay-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:10px;
  font-weight:800;
  color:#50323c;
  background:#ffe494;
  border:none;
  border-radius:5px;
  padding:5px 6px;
}
.pay-symbols{
  display:flex;
  align-items:center;
  gap:2px;
}
.pay-symbols img{
  width:20px;
  height:20px;
  object-fit:contain;
}
.pay-row.pair{
  grid-column:1 / -1;
  justify-content:center;
  gap:12px;
}
.pay-pair-label{
  font-size:11px;
  letter-spacing:0;
}
.pay-mult{
  color:#7d4300;
}
.game-controls{
  flex-shrink:0;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.wallet{
  background:#ffd770;
  border:none;
  border-radius:5px;
  text-align:center;
  padding:10px;
  font-size:16px;
  font-weight:900;
  color:#7d4300;
}
.coins{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:nowrap;
  margin:10px 0;
}
.coin{
  width:48px;
  height:48px;
  border:none;
  padding:0;
  background:transparent;
  cursor:pointer;
  transition:transform .2s ease;
  flex-shrink:0;
}
.coin img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  pointer-events:none;
  filter:drop-shadow(0 4px 6px rgba(255,171,49,.22));
  transition:filter .2s ease;
}
.coin.active{
  transform:scale(1.18);
}
.coin.active img{
  filter:
    drop-shadow(0 0 5px rgba(255,200,60,.6))
    drop-shadow(0 0 10px rgba(255,180,40,.35))
    drop-shadow(0 4px 6px rgba(255,171,49,.22));
}
.actions{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}
.btn{
  border:none;
  padding:14px;
  border-radius:8px;
  font-size:14px;
  font-weight:900;
  cursor:pointer;
  color:#7d4300;
  transition:.2s;
}
.spin{
  background:linear-gradient(180deg,#ffd770,#ffaf38);
  border:none;
  letter-spacing:1px;
  transition:background .2s ease;
}
.spin:hover:not(:disabled){
  background:linear-gradient(180deg,#ffaf38,#ffd770);
}
.btn:disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
}
.footer{
  text-align:center;
  font-size:11px;
  color:#7d4300;
  line-height:1.2;
  flex-shrink:0;
}
.game-spacer{
  flex-shrink:0;
  width:100%;
}
@media (max-width:767px){
  .site-header-inner{
    min-height:48px;
    padding-top:8px;
    padding-bottom:8px;
  }
  #gameStage{
    position:fixed;
    top:var(--header-h, 52px);
    left:0;
    right:0;
    bottom:0;
    width:100%;
    height:auto;
  }
  .page-center,
  .game{
    height:100%;
    display:flex;
    flex-direction:column;
  }
  .slot-machine,
  .game-controls{
    flex-shrink:0;
  }
  .game-spacer{
    flex:1 1 auto;
    min-height:0;
    height:auto;
  }
}
