/* ================================================================
   Page globals + info page. The bet panel's own styles live in the
   shared module: src/vendor/bet-panel/bet-panel.css.
   ================================================================ */
:root{
  --dark:0,0,0;
  --light:255,255,255;
  --lightgrey:30,38,40;
  --card-primary:9,13,14;
  --card-secondary:15,16,16;
  --game-theme-color:#41e1fb;
  --game-theme-color-secondary:#fe99fe;
  --dark-hover:40,40,40;
}
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0;height:100%;background:#000;color:#fff;font-family:"Outfit",system-ui,sans-serif;overscroll-behavior:none}
button,input{font-family:inherit}
[hidden]{display:none !important}
#app{position:relative;width:100vw;height:100vh;overflow:hidden}
.canvas-wrap{position:absolute;inset:0;width:100%;height:100%;overflow:hidden;background:#3a2a0a}
.canvas-placeholder{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(212,160,23,.35), transparent 65%),
    linear-gradient(180deg,#5a3f10 0%,#2a1d05 100%);
}
.canvas-placeholder-text{
  font-size:28px;font-weight:700;letter-spacing:.3em;color:rgba(255,220,140,.4);
  border:2px dashed rgba(255,220,140,.4);padding:2em 3em;border-radius:1em;
}
.close-button{
  position:absolute;top:1.8em;right:2.4em;width:4em;height:4em;
  background:rgba(var(--dark),.4);border-radius:.8em;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;color:rgb(var(--light));z-index:10;
}
.close-button:hover{opacity:.85}
.close-button svg{width:67%;height:67%}
.info-page-wrap{
  position:fixed;inset:0;z-index:300;
  background:rgba(5,8,10,.96);
  color:rgb(var(--light));
  overflow-y:auto;
  font-size:clamp(13px,1.1vw,16px);
  padding:4em 2em 4em;
  -webkit-overflow-scrolling:touch;
}
.info-page-wrap .close-button.info-close{
  position:fixed;top:1em;right:1em;z-index:310;
  width:3em;height:3em;
  display:flex;align-items:center;justify-content:center;
  background:rgba(var(--card-primary),.85);
  border-radius:.6em;cursor:pointer;color:rgb(var(--light));
  transition:background .2s;
}
.info-page-wrap .close-button.info-close:hover{background:rgba(var(--dark-hover),.95)}
.info-page-wrap .close-button.info-close svg{width:45%;height:45%}
.info-content{max-width:55em;margin:0 auto;display:flex;flex-direction:column;gap:2.5em}
.info-section{display:flex;flex-direction:column;gap:1em;align-items:center;text-align:center}
.info-section h1{
  color:var(--game-theme-color);
  font-size:2em;font-weight:800;margin:0;letter-spacing:.02em;
}
.info-section p{margin:0;font-size:1em;line-height:1.45;color:rgba(var(--light),.92);max-width:45em}
.paytable-row{display:flex;gap:3em;justify-content:center;flex-wrap:wrap;width:100%}
.paytable-row.single{}
.paytable-cell{display:flex;flex-direction:column;align-items:center;gap:.75em;min-width:9em}
.sym-box{
  width:4em;height:4em;border-radius:.6em;
  background:linear-gradient(180deg,#c08951,#8b5a2b);
  display:flex;align-items:center;justify-content:center;
  font-weight:900;font-size:1.4em;color:#fff;
  box-shadow:inset 0 -.25em 0 rgba(0,0,0,.25), 0 .15em .3em rgba(0,0,0,.5);
}
.sym-box.hi{background:linear-gradient(180deg,#a87151,#6e3f25)}
.sym-box.wild{background:linear-gradient(180deg,var(--game-theme-color),#1b8aa3);color:#06252b}
.sym-payouts{
  border:1px solid rgba(var(--light),.5);
  border-radius:.4em;
  padding:.6em 1.2em;
  display:flex;flex-direction:column;gap:.25em;
  font-size:.95em;min-width:5em;text-align:center;
}
.info-version{
  text-align:center;font-size:.85em;color:rgba(var(--light),.5);margin:0;padding:1em 0;
}
.info-bar-container{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  width: 100%;
  height: 2.6em;
}
.info-bar-container > .text-container{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.6em;
}
.info-bar-container > .bet-amount-container{
  grid-column: span 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 2.6em;
}

/* ===== slotgen game-info page (themes whose info/en.html is the slotgen
   gameinfo template, finished by tools/gen_info.py) — laid out like the
   original GAME INFO screen: centred title over a rule, gold section
   headings, left-aligned text, centred feature art, 5-across paytable,
   5x5 payline grids. ===== */
.hs-gameinfo{
  width:100%;max-width:52em;margin:0 auto;text-align:left;
  color:rgba(var(--light),.94);font-weight:400;line-height:1.5;
}
.hs-gameinfo .GameInfo__title{
  text-align:center;font-weight:700;font-size:1.5em;letter-spacing:.01em;
  color:rgb(var(--light));padding:0 2.5em .7em;margin:0 0 1em;
  border-bottom:1px solid rgba(var(--light),.35);
}
.hs-gameinfo section{display:block;margin:0}
.hs-gameinfo h1{
  color:var(--game-theme-color);font-size:1.5em;font-weight:700;
  text-transform:uppercase;margin:1.1em 0 .45em;letter-spacing:0;
}
.hs-gameinfo h2{
  color:rgb(var(--light));font-size:1.15em;font-weight:700;
  text-transform:uppercase;margin:1.1em 0 .35em;
}
.hs-gameinfo p{margin:0 0 .75em;font-size:1em;line-height:1.5;color:rgba(var(--light),.94);max-width:none}
/* GENERAL: each block's first line is its heading */
.hs-gameinfo [data-gameinfo-section^="generalSection-"] > p:first-child{
  font-weight:700;text-transform:uppercase;color:rgb(var(--light));margin:1.1em 0 .35em;
}
.hs-gameinfo .FeatureImage{display:flex;justify-content:center;margin:1em 0 1.1em}
.hs-gameinfo .FeatureImage img{display:block;max-width:100%;height:auto}

/* paytable: 5 across, symbol over its pays ("5" gold, value white) */
.hs-gameinfo .GameInfo__sym-list{
  list-style:none;margin:.6em 0 1em;padding:0;
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1.4em .5em;
}
.hs-gameinfo .GameInfo__sym-list--uniqueSymbols{display:flex;justify-content:center}
.hs-gameinfo .SymListItem{display:flex;flex-direction:column;align-items:center;gap:.6em;min-width:0}
.hs-gameinfo .SymListItem__symbol img{display:block;width:6.5em;max-width:100%;height:auto}
.hs-gameinfo .SymListItem__payout-values{display:flex;flex-direction:column;align-items:flex-start;gap:.15em}
.hs-gameinfo .SymListItem__values{display:flex;gap:.45em;white-space:nowrap;font-size:1.05em}
.hs-gameinfo .SymListItem__win-length{color:var(--game-theme-color);font-weight:700}
.hs-gameinfo .SymListItem__win-value{color:rgb(var(--light))}

/* paylines: white grid, black cells, green line */
.hs-gameinfo .GameInfoWaysToWin__list{
  list-style:none;margin:1em 0;padding:0;
  display:flex;flex-wrap:wrap;justify-content:center;gap:.9em;
}
.hs-gameinfo .Winline{
  display:grid;grid-template-columns:repeat(var(--cols,5),1.15em);grid-template-rows:repeat(var(--rows,5),1.15em);
  gap:2px;padding:2px;background:#fff;
}
.hs-gameinfo .Winline__index{background:#000}
.hs-gameinfo .Winline__index.is-active{background:#56b051}

/* control icons named in the GENERAL text */
.hs-gameinfo .GameInfo__bet-change-icons-container{display:flex;gap:.6em}
.hs-gameinfo [class^="icon-"]{
  display:inline-block;width:2.2em;height:2.2em;border-radius:50%;
  background:#fff center/62% no-repeat;vertical-align:middle;
}
.hs-gameinfo .icon-arrow-up{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 16l8-8 8 8' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.hs-gameinfo .icon-arrow-down{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 8l8 8 8-8' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.hs-gameinfo .icon-spin{width:3em;height:3em;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 12a7 7 0 0 1-12.2 4.7M5 12a7 7 0 0 1 12.2-4.7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M17.6 3.6v3.9h-3.9M6.4 20.4v-3.9h3.9' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10 9l5 3-5 3z' fill='%23000'/%3E%3C/svg%3E")}
.hs-gameinfo .icon-autoplay{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.7' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3Cpath d='M19.5 3v4.5H15' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10 8.5l5.5 3.5-5.5 3.5z' fill='%23000'/%3E%3C/svg%3E")}

/* phones: 5 symbols still across, smaller */
@media (max-width:600px){
  .hs-gameinfo .GameInfo__sym-list{gap:1.1em .2em}
  .hs-gameinfo .SymListItem__values{font-size:.9em;gap:.3em}
  .hs-gameinfo .Winline{grid-template-columns:repeat(var(--cols,5),.85em);grid-template-rows:repeat(var(--rows,5),.85em)}
}
