/*смена полоски прокрутки для хрома*/

:root {
  --reflash: #00ca00;
  --coin: #ffd900;
  --crystal: aqua;
  --supercrystal: rgb(0, 180, 212);
  --fortune: hotpink;
  --balance: white;
  --neutral: rgb(190, 190, 190);
  --grey-text: #656565;
  --shard: rgb(138, 255, 249);
  --supercoin: rgb(255, 174, 0);
  --spirit: rgb(202, 255, 237);
  --critical: rgb(255, 0, 0);
  --rune: rgb(45, 202, 210);

  --coin-upgrade: #23e019;
  --prestige-upgrade: rgb(0, 212, 212);
  --break-prestige-upgrade: rgb(18, 179, 179);

  --umultiplier: cadetblue;
  --upower: palevioletred;
  --uadder: rgb(145, 248, 93);
  --ureducer: rgb(255, 255, 94);
}

.text-hidden-mode * {
    color: transparent !important;
    text-shadow: none;
    user-select: none !important; /* Полностью запрещает выделение */
    -webkit-user-select: none !important; /* Для поддержки Safari и iOS */
}

html::-webkit-scrollbar, #versionDiv::-webkit-scrollbar, #helpDiv::-webkit-scrollbar {
  width:8px;
}
html::-webkit-scrollbar-track {
  background-color: #060606;
}
#versionDiv::-webkit-scrollbar-track, #helpDiv::-webkit-scrollbar-track {
  background-color: black;
}

html::-webkit-scrollbar-thumb, #versionDiv::-webkit-scrollbar-thumb, #helpDiv::-webkit-scrollbar-thumb{
  background-color: #252525;
  border-radius: 5px;
}
html, #versionDiv, #helpDiv {
  overflow-x:hidden;
}
/*смена полоски прокрутки для огнелиса*/
html{
  scrollbar-width: thin;
  scrollbar-color: #252525  #060606;
  overflow-y: hidden;
}

#versionDiv {
  scrollbar-width: thin;
  scrollbar-color: #252525  #000000;
}

#helpDiv {
  scrollbar-width: thin;
  scrollbar-color: #252525  #000000;
}

.mainSettings {
  position: absolute;
  left: 0;
  display: flex;
}

hr {
  color:white;
}

#maxOrNoUpgrades, #modernizeButton, #maxOrNoShardUpgrades, #maxOrNoBreakPrestigeUpgrades, #maxOrNoBalanceUpgrades {
  background-color: #060606;
  border:#ffffff solid 1.6px;
  color: white;
  max-width: 50px;
  max-height: 50px;
  width: 5vw;
  height: 5vw;
  background-size: cover;
  font-size: calc(12px * var(--font-scale));
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
  cursor: pointer;
}

#maxOrNoUpgrades:hover, #maxOrNoShardUpgrades:hover, #maxOrNoBreakPrestigeUpgrades:hover, #maxOrNoBalanceUpgrades:hover {
  background-color: #494949;
}

#modernizeButton {
  background-image: url('images/modernize.webp');
  background-repeat: no-repeat;
  background-position: center;
}

#coinsCount, #fortuneTokensCount, #fortuneTokensCount2, .currencyCount, #fortuneTokensCount3 {
    color: white;
    margin: 5px;
    margin-top: 15px;
    white-space: nowrap;
    margin-bottom: 15px;
    font-size: calc(18px * var(--font-scale));
}

gt {
  color: var(--coin);
  text-shadow: 0 0 5px var(--coin);
  font-size: calc(30px * var(--font-scale));
}

#ft_tokens_val, #bal_ft_tokens, pt {
  color: var(--fortune);
  text-shadow: 0 0 5px var(--fortune);;
  font-size: calc(30px * var(--font-scale));
}

bt {
  color: var(--balance);
  text-shadow: 0 0 5px var(--balance);
  font-size: calc(30px * var(--font-scale));
}

nt {
  color: var(--neutral);
  text-shadow: 0 0 5px var(--neutral);
  font-size: calc(30px * var(--font-scale));
}


#coinsGain, #supercoinsGain {
    color: var(--grey-text);
    font-size: calc(15px * var(--font-scale));
    text-align: center;
    margin: 5px;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    
}
#coinGain {
    background-color: #ff000000;
    border: none;
    color: rgba(255, 0, 0, 0);
    display: block;
    transition: transform 0.1s ease-in-out;
    width: 250px;
    height: 250px;
    transition: background-image 0.2s ease-in-out;
    background-image: url("images/CoinOff.png");
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    border-radius: 200px;
}

#loadingScreen {
  background-image: url("images/loadingscreen015.jpg");
  background-repeat: no-repeat;
  background-size: contain;
  width: 100%;
  height: 101%;
  position: absolute;
  z-index: 99999;
  background-size: cover;
}

#coinGain:active, #shardsClick:active {
    transform: scale(0.95); 
}

#coinGain:hover {
    background-image: url("images/CoinOn.png");
}

.notification {
    background-color: rgb(55, 244, 55);
    color: black;
    margin-top: 30px;
    width: 300px;
    height: 50px;
    position: fixed;
    top: 0;
    right: -500px;
    transform: translate(0, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: calc(15px * var(--font-scale));
    font-weight: bold;
    color: rgb(2, 0, 0);
    opacity: 0;
    z-index: 9999;
    transition: right 2s, opacity 2s;
  }
  
  .notification.hide {
    right: 5px; /* смещаем уведомление вправо за экран для скрытия */
    transition: right 0.25s;
  }

  .notification.show {
    right: 0;
    opacity: 1;
    transition: right 1s, opacity 0.75s;
  }
  
  #topValues {
    max-height: 150px;
    height: 18vw;
    justify-content: space-between;
    margin-bottom: 10px;
    display: flex;
  }

.topVars {
  width: 33%;
}

#coinGet {
  text-align: center;
  display:flex;
  flex-direction: column;
}

#getCoinLine {
  height: 270px;
  justify-content: space-around;
  margin-bottom: 10px;
  display: flex;
  margin: 0 auto;
  align-items: center;
}

.myMessage, .shardCountPerClick, .superCoinText, .spiritText, .criticalClick {
  position: absolute; 
  display: flex; 
  padding: 5px;
  text-shadow: 1px 1px var(--coin), -1px -1px var(--coin), 1px -1px var(--coin), -1px 1px var(--coin);
  font-weight:900;
  color: rgb(0, 0, 0);
  cursor:default;
  transition: top 1s ease-in-out, opacity 1s ease-in-out, transform 1s ease-in-out;
  pointer-events: none; /* текст сообщения не мешает кликать по кнопке */
  user-select: none;
}

.shardCountPerClick {
  text-shadow: 1px 1px var(--shard), -1px -1px var(--shard), 1px -1px var(--shard), -1px 1px var(--shard);
}
.superCoinText {
  text-shadow: 1px 1px var(--supercoin), -1px -1px var(--supercoin), 1px -1px var(--supercoin), -1px 1px var(--supercoin);
  z-index: 100000;
}
.spiritText {
  text-shadow: 1px 1px var(--spirit), -1px -1px var(--spirit), 1px -1px var(--spirit), -1px 1px var(--spirit);
}
.criticalClick {
  text-shadow: 1px 1px var(--critical), -1px -1px var(--critical), 1px -1px var(--critical), -1px 1px var(--critical);
  z-index: 99999;
}

.myMessage.hide, .shardCountPerClick.hide, .superCoinText.hide, .spiritText.hide, .criticalClick.hide {
  opacity: 0;
  transform: translateY(-50px);
}

.myMessage.show, .shardCountPerClick.show, .superCoinText.show, .spiritText.show, .criticalClick.show {
  right: 0;
  opacity: 1;
  transition: top 1s ease-in-out, opacity 1s ease-in-out;
  display: block;
}

.confirmationWindow {
  display: none;
  width: 400px;
}
#windowTitleDiv {
  width: 100%;
  margin-top: 50px;
}

#resetTitle {
  font-size: calc(22px * var(--font-scale));
}

#confirmationButtons {
  align-items: center;
  display: flex;
  justify-content: center;
  height: 50%;
}

#multipliersTab{
    justify-content: center;
    flex-wrap: wrap;
}

#multiplierChoose {
    width: 100px;
    height: 500px;
    border-color: white;
    border-width: 1px;
    border-style: solid;
    border-radius: 5px 0px 0px 5px;
    overflow: hidden;
}

.multiplierChooser {
  width: 100%;
  font-size: calc(11px * var(--font-scale));
  height: 36px;
}

#multiplierStats {
    width: 500px;
    height: 500px;
    border: white 1px solid;
    border-radius: 0px 0px 0px 0px;
}

#multBreakdownTitle {
  text-align: center;
  font-size: calc(20px * var(--font-scale));
  font-weight: bold;
  margin: 10px;
  color: white;
}

.whiteText {
  color: white;
  font-size: calc(15px * var(--font-scale));
  text-align: center;
}

#infoTab .whiteText {
  font-size: calc(14px * var(--font-scale));
}

.multiplierString {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.gainGraphic{
  border: white 1px solid;
  width: 50px;
  border-width: 1px 1px 1px 0px;
  border-radius: 0px 5px 5px 0px;
  overflow: hidden;
}

.graphicPiece {
  border: white 1px solid;
  border-width: 0px 0px 1px 0px;
  width: 100%;
  display:flex;
  justify-content: center;
  align-items: center;
}

.pieceText {
  font-size: calc(16px * var(--font-scale));
}

.progress-bar-base{
  width:100%;
  height:16px;
  background-color: gray;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  font-size: calc(12px * var(--font-scale));
  background-image: radial-gradient(#15fa01, #040000 170%);
}
#progress-bar-text {
  font-size: calc(14px * var(--font-scale));
  position: absolute;
  width: 100%;
  top: 0;
  display: flex;
  justify-content: center;
}
#shopDiv {
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  max-width:800px;
  width: 70vw;
}

#shopDiv .tooltip {
  font-size: calc(12px * var(--font-scale));
  padding: 10px;
}
#shopTitleDiv {
  display: flex;
  justify-content: center;
  border: white 1px solid;
  max-width: 800px;
  width: 70vw;
  border-radius: 5px 5px 0px 0px;
  height: 30px;
  align-items: center;
}

#shopTitle {
  margin: 0;
}

#shoppingDiv {
  width: 100%;
  border: white 1px solid;
  border-radius: 0px 0px 0px 5px;
  border-top: 0px;
}
#bottomDiv {
  display: flex;
  justify-content: center;
}

.shopRow {
  height: 100px;
  display: flex;
  align-items: center;
  padding: 10px;
  width: 780px;
}

.shopBottomButton {
  font-family: 'Poly';
  border: white 1px solid;
  border-width: 0px 1px 1px 1px;
  border-radius: 0px 0px 5px 5px;
  background-color: black;
  color: white;
  height: 2em;
  width: 100px;
  cursor: pointer;
}

.shopBottomButton:hover {
  background-color: rgb(62, 62, 62)
}

.shopButton, .mineralButton {
  background-color: #060606;
  color: var(--supercoin);
  border: var(--supercoin) 1px solid;
  border-radius: 3px;
  width: 48px;
  height: 48px;
  box-shadow: 0 0 1px var(--supercoin);
  cursor: pointer;
  font-size: calc(11px * var(--font-scale));
  margin: 5px;
}

.shopItemButton {
  margin-bottom: 0;
  border-radius: 3px 3px 0 0
}

.useButton {
  margin: 5px;
  font-size: calc(11px * var(--font-scale));
  border: rgb(235, 160, 0) 1px solid;
  background-color: #060606;
  height: 25px;
  width: 48px;
  margin-top: 0;
  border-radius: 0;
  color: white
}

.shopContainer {
  display: flex;
  flex-direction: column;
  font-size: calc(10px * var(--font-scale));
  color: white;
  text-align: center;
  align-items: center;
  margin: 7px;
  width: 60px;
}

.shopButton:disabled {
  background-color: #060606;
  color:#ffffff;
  border-color: #fbfbfb;
  box-shadow: 0 0 0;
  cursor:not-allowed;
}

.shopArrow {
  display: flex;
  background-color: #060606;
  align-items: center;
  border: white 1px solid;
  height:289px;
  width: 20px;
  justify-content: center;
  border-radius: 0px 0px 5px 0px;
  border-left: 0px;
  border-top: 0px;
}
.shopArrow:hover {
  background-color: #494949;
}
.shopArrowDiv {
  display: flex;
  align-items: center;
  height: 100%;
}
#leftShopArrow {
  border: white 1px solid;
  border-radius: 0px 0px 0px 5px;
  border-top: 0px;
  border-right: 0px
}
#shopDiv2 {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin: 5px;
    margin-bottom: 0;
}
#superCount {
  text-align: center;
  color: white;
  margin: 5px;
  margin-top: 15px;
  width:100%;
  font-size: calc(17px * var(--font-scale));
}

#wholeShopDiv {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#bulkShopBuy {
  width: 200px;
  height: 250px;
  border: 1px white solid;
  margin: 25px;
  color: white;
  text-align: center;
  border-radius: 5px 5px 0 0;
}

#bulkShopBuy input {
  width: 192.8px
}

#bulkShopBuy span {
  font-size: calc(15px * var(--font-scale));
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bulkShopBuyButton {
  border: var(--supercoin) 1px solid;
  background-color: #000000;
  width: 100%;
  height: 30px;
  color: white;
  font-size: calc(12px * var(--font-scale));
}

.bulkShopBuyButton:hover, .useButton:hover {
  background-color:var(--supercoin);
  color: black
}

st {
  font-size: calc(30px * var(--font-scale));
  color:var(--supercoin);
  text-shadow: 0 0 5px var(--supercoin);
}
#overdriveTab {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
.overdriveType {
  max-width: 800px;
  max-height: 120px;
  width: 50vw;
  height: 15vw;
  border: white 1px solid;
  margin: 20px;
}
.overdriveTypeTitle {
  display: flex;
  justify-content: center;
  border-bottom: white 1px solid;
  height:15%;
}
.overdriveTypeName {
  margin: 0 auto;
}
.overdriveTypeDiv{
  height:85%;
}
.overdriveTypeProgressBarBase{
  background-color: #111111;
  height: 99%;
  display: flex;
  align-items: center;
  text-align: center;
  cursor:pointer;
    
}
#overdriveType1ProgressBar{
  height: 100%;
  background-image:radial-gradient( var(--coin), black 210%);
}
#overdriveType2ProgressBar{
  height: 100%;
  background-image:radial-gradient( var(--crystal), black 210%);
}
.overdriveTypeGhost {
  position: absolute;
  color: white;
  pointer-events: none;
  cursor: default;
  display: flex;
  max-width: 800px;
  width: 50vw;
  justify-content: center;
  z-index: 1000;
  font-size: calc(16px * var(--font-scale));
}

#progressBarGain, #progressBarGain2 {
  font-size: calc(18px * var(--font-scale));
}

.overdriveTypeProgressBarActive {
  position: absolute;
  background-color: #FFFFFF77;
  pointer-events: none;
  cursor: default;
  display: flex;
  max-width: 800px;
  justify-content: center;
  z-index: 2000;
  max-height: 101px;
  height: 12.75vw;
  transition: opacity 0.25s ease-in-out;
  opacity: 0;
}

#crystalCount {
  text-align: center;
  color: white;
  margin: 0 auto;
  font-size: calc(15px * var(--font-scale));
}

ct {
  color:var(--crystal);
  font-size: calc(20px * var(--font-scale));
  text-shadow: 0 0 5px var(--crystal);
}

#doPrestige, #doReflash {
  border-style: solid;
  border-radius: 5px;
  background-color: black;
  color: var(--crystal);
  font-size: calc(13px * var(--font-scale));
  max-width: 250px;
  max-height: 90px;
  width: 25vw;
  height: 5vw;
  text-align: center;
  transition:  0.2s ease-in-out;
  cursor: pointer;
  border-color:var(--crystal);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

#doReflash, .reflashButton {
  color: var(--reflash);
  border-color: var(--reflash);
}

#doPrestige:hover {
  background-color: var(--crystal);
  color:black;
}

#doReflash:hover {
  background-color: var(--reflash);
  color:black;
}

#prestigeGet, #reflashGet {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5px;
    justify-content: space-around;
}

.prestigeButton {
  color: var(--crystal);
  border-color: var(--crystal);
}

.prestigeButton:hover {
  background-color: rgba(0, 255, 255, 0.144);
}

.reflashButton:hover {
  background-color: rgba(0, 220, 0, 0.144);
}

.fortuneButton2 {
  color: var(--fortune);
  border-color: var(--fortune);
}

/* Specific active styles for special-colored tab buttons */
.tabButton.prestigeButton.active,
.tabButton.prestigeButton[aria-selected="true"] {
  /* make the aqua color the background and use dark text */
  background-color: var(--crystal);
  color: black;
  border-color: var(--crystal);
}
.tabButton.prestigeButton.active:hover,
.tabButton.prestigeButton[aria-selected="true"]:hover {
  background-color: rgba(0, 255, 255, 0.9);
}

.tabButton.fortuneButton2.active,
.tabButton.fortuneButton2[aria-selected="true"] {
  /* use a stronger pink for fortune active */
  background-color: var(--fortune);
  color: black;
  border-color: var(--fortune);
}
.tabButton.fortuneButton2.active:hover,
.tabButton.fortuneButton2[aria-selected="true"]:hover {
  background-color: rgba(255, 105, 180, 0.9);
}

.tabButton#eventSelect.active,
.tabButton#eventSelect[aria-selected="true"] {
  /* use a stronger pink for fortune active */
  background-color: red;
  color: black;
  border-color: red;
}
.tabButton#eventSelect.active:hover,
.tabButton#eventSelect[aria-selected="true"]:hover {
  background-color: rgba(255, 0, 0, 0.9);
}


#prestigeSingleUpgrades {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-top: 20px;
}
#prestigeBuyableUpgrades {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.pSURow {
  display: flex;
  flex-direction: column;
}

#threeRowMilestones{
  display: flex;
}

.milestone {
  border: 3px #212121 solid;
  background-color: rgb(151, 151, 151);
  color: black;
  max-width: 300px;
  max-height: 70px;
  width: 30vw;
  height: 15vw;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: calc(12px * var(--font-scale));
  flex-direction: column;
  text-align: center;
}

#milestonesTab {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#horizontalMilestones {
  display: flex;
}

.horizontalMilestone {
  width: 452.5px;
}

.prestigeMilestone {
  border-color: rgb(56, 55, 55);
  background-color: rgb(74, 74, 74);
}

.prestigeMilestone.completed {
  border-color: rgb(0, 120, 120);
  background-color: rgb(0, 188, 188);
}

.centeredDiv {
  display:flex;
  justify-content: center;
}

#shardsClick {
  background-color: #ff000000;
  width: 180px;
  height: 180px;
  border: none;
  cursor: pointer;
  transition: background-image 0.2s ease-in-out;
  background-image: url('images/shardoff2.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
}

#shardsClick:hover {
  background-image: url('images/shard.png');
}

#shardsCountText {
  color: white;
  text-align: center;
}

shn {
  color: var(--shard);
  font-size: calc(30px * var(--font-scale));
  text-shadow: 0 0 5px var(--shard);
}

#breakCrystal {
  flex-direction: column;
  align-items: center;
}

#howMuchCrystalsInput {
  width: 50%;
  margin: 10px 0px;
}

#submitBreak {
  font-family: Poly;
  width: 25%;
  height: 25px;
}

#doBreakCrystal {
  border: var(--crystal) solid 2px;
  width: 300px;
  height: 50px;
  font-size: calc(16px * var(--font-scale));
  margin: 10px 0px;
}

#doBreakCrystal:hover {
  background-color: var(--crystal);
  color: black;
}

.shardSinglesRow {
  display: flex;
  justify-content: center
}

.shardUnlockableBase {
  border: var(--shard) 1px solid;
  border-radius: 3px; 
  background-color: #111111;
  width: 600px;
  height: 50px;
  display: flex;
  align-items: center;
  text-align: center;
  cursor:pointer;
  margin: 5px;
}

.shardUnlockable {
  height: 100%;
  background-image: url('/javascript/cssfiles/images/shardspb.png');
  background-size: auto 100%;
}

.shardUnlockableText {
  position: absolute;
  color: white;
  pointer-events: none;
  cursor: default;
  display: flex;
  justify-content: center;
  width: 600px;
  text-shadow: 1px 1px black, -1px -1px black, 1px -1px black, -1px 1px black;
}

#shardUnlockableBase3, #shardUnlockableBase4 {
  height: 100px;
}

.shardAchUnlBase {
  width: 48%;
  height: 70px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(16px * var(--font-scale));
}

.shardAchUnlBase:hover {
  background-color: #252525;
}

spn {
  color: var(--spirit);
  font-size: calc(30px * var(--font-scale));
  text-shadow: 0 0 5px var(--spirit);
}

pn {
  color: rgb(255, 108, 211);
  font-size: calc(30px * var(--font-scale));
  text-shadow: 0 0 5px rgb(255, 108, 211);
}

gn {
  color: rgb(111, 255, 108);
  font-size: calc(30px * var(--font-scale));
  text-shadow: 0 0 5px rgb(111, 255, 108);
}

bn {
  color: rgb(108, 189, 255);
  font-size: calc(30px * var(--font-scale));
  text-shadow: 0 0 5px rgb(108, 189, 255);
}

rn {
  color: var(--rune);
  font-size: calc(30px * var(--font-scale));
  text-shadow: 0 0 5px var(--rune);
}

#shopBuyableU1 {
  background-image: url('images/goldengloves.png')
}
#shopBuyableU2 {
  background-image: url('images/goldenwatch.png')
}
#shopBuyableU3 {
  background-image: url('images/goldenkey.png')
}
#shopBuyableU4 {
  background-image: url('images/clover.png')
}
#shopBuyableU5 {
  background-image: url('images/shardrain.png')
}
#shopBuyableU6 {
  background-image: url('images/P.webp')
}
#shopBuyableU7 {
  background-image: url('images/energymaybe10.webp')
}
#shopPermanentU1 {
  background-image: url('images/diamondpersV3.webp')
}
#shopPermanentU2 {
  background-image: url('images/creditcard.png')
}
#shopPermanentU3 {
  background-image: url('images/cursorwhitepercent.bmp')
}
#shopPermanentU4 {
  background-image: url('images/cursorredX.bmp')
}
#shopPermanentU5 {
  background-image: url('images/glowhand.webp')
}
#shopPermanentU6 {
  background-image: url('images/lightningcrystalfinish.webp')
}
#shopPermanentU7 {
  background-image: url('images/swordcrystal.webp')
}
#shopPermanentU8 {
  background-image: url('images/fortuneTicket.png')
}
/* #shopSingleU2{
  background-image: url('images/brokenspeedometer.webp');
  background-position: -0.5px -0.5px;
  image-rendering: pixelated;
} */
#shopSingleU1 {
  background-image: url('images/crystalactualspeedometer.webp');
  background-position: -0.5px -0.5px;
  image-rendering: pixelated;
}
#shopSingleU2 {
  background-image: url('images/modernize.webp');
  background-position: -0.5px -0.5px;
  image-rendering: pixelated;
}
#shopSingleU3 {
  background-image: url('images/trophy.webp');
  background-position: -0.5px -0.5px;
  image-rendering: pixelated;
}
#shopSingleU4 {
  background-image: url('images/crystalclock.webp');
  background-position: -0.5px -0.5px;
  image-rendering: pixelated;
}
#shopItem1 {
  background-image: url('images/Uxtotallydonenow.bmp');
  background-position: -1.5px;
  image-rendering: pixelated;
}
#shopItem2 {
  background-image: url('images/U1totallydonenow.bmp');
  background-position: -1.5px;
  image-rendering: pixelated;
}
#shopItem3 {
  background-image: url('images/TW1m.bmp');
  image-rendering: pixelated;
}
#shopItem4 {
  background-image: url('images/Tw10m.bmp');
  image-rendering: pixelated;
}
#shopItem5 {
  background-image: url('images/goldmeshok.webp');
}
#shopItem6 {
  background-image: url('images/integral.webp');
}
#mineral1 {
  background-image: url('images/opalfinished.webp');
}
#mineral2 {
  background-image: url('images/topazfinished.webp');
}
#mineral3 {
  background-image: url('images/jadeshiny.webp');
  background-position: -1px -1px;
}
#mineral4 {
  background-image: url('images/aquamarine.png');
  background-position: -1px -1px;
}

.challengePair {
  display: flex;
  flex-direction: row;
}

.prestigeChallengePair {
  display: flex;
  flex-direction: row;
}

#superCrystalsTab, #superCrystalUpgrades{
  margin-top: 30px;
  justify-content: space-evenly;
  text-align: center;
}

#superCrystalCount {
  font-size: calc(18px * var(--font-scale));
}

#superCrystalBarBase {
  width: 250px;
  height: 300px;
}

#superCrystalGen {
  height: 350px;
}

scn {
  color: var(--supercrystal);
  font-size: calc(30px * var(--font-scale));
  text-shadow: 0 0 5px var(--supercrystal);
}

#superCrystalBarBase{
  background-image:url('images/supercrystaloff.png');
  background-size: contain;
  background-repeat: no-repeat;
  align-items: center;
  text-align: center;
  cursor:pointer;
  height: 300px
}
#superCrystalBar{
  background-image:url('images/supercrystalon.png');
  background-size: contain;
  background-repeat: no-repeat;
  height: 100%;
  width: 100%;
  clip-path: inset(100% 0 0 0); 
}
#superCrystalBarGhost {
  position: absolute;
  color: white;
  pointer-events: none;
  cursor: default;
  display: flex;
  width: 250px;
  justify-content: center;
  z-index: 10000;
  height: 300px;
  margin-top: 140px;
}
.superCrystalUpgradesRow {
  display: flex;
}


#mineralsTab, #mineralsCountDiv, .mineralContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Make mineral blocks wrap to a new row when container gets narrow */
#mineralsDiv {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap; /* allow children to wrap */
  justify-content: center;
  gap: 16px; /* spacing between items */
}

.mineralContainer {
  width: 300px;
  height: 300px;
  margin-top: 50px;
  flex: 0 1 300px; /* allow shrinking and wrapping */
  box-sizing: border-box;
}

.mineralButton {
  border-color: var(--rune);
}

#generateRunes, #generateRunesMax {
  margin: 0;
  border-color: var(--rune);
  width: 175px;
  height: 60px;
  margin-bottom: 10px;
}

#generateRunes:hover, #generateRunesMax:hover{
  background-color: var(--rune);
  box-shadow: 0 0 10px var(--rune);
  color: black;
}

#generateRunesMax{
  height: 30px;
  border-radius:2px;
}

super {
  color: var(--supercoin);
  text-shadow: 0 0 5px var(--supercoin);
  pointer-events: none;
  user-select: none;
}
table {
  border-spacing: 0; 
}
th {
  color: white;
  border:white 1px solid;
  width: 150px;
  font-weight: normal;
  font-size: calc(13px * var(--font-scale));
  padding: 2px;
  height: 17.5px;
}

#welcomeToDigitalGod {
  font-size: calc(17px * var(--font-scale));
}

#recentPrestigesTab {
  flex-direction: column;
    align-items: center;
}

#saveButtons {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

#breakPrestigeTab {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.row {
  display: flex;
}

.averageTable {
  background-color: #222222;
}

#shardAchsTab {
  flex-direction: column;
  align-items: center;
}

.shardAchBarRow{
  display: flex;
  flex-direction: row;
}

.shardAchBarDiv {
  max-width: 600px;
  max-height: 70px;
  width: 42vw;
  height: 10vw;
  border: white 2px solid;
  border-radius: 50px;
  margin: 20px;
}

.shardAchBarBase{
  background-color: #111111;
  height: 99%;
  display: flex;
  align-items: center;
  text-align: center;
  border-radius: 50px;
}

.shardAchBarGhost {
  position: absolute;
  color: white;
  pointer-events: none;
  cursor: default;
  display: flex;
  max-width: 600px;
  width: 42vw;
  justify-content: center;
  z-index: 1000;
  font-size: calc(14px * var(--font-scale));
}

.shardAchBar{
  height: 100%;
  width: 100%;
  background-image:radial-gradient( rgba(255, 255, 255, 0.505), black 210%);
  border-radius: 50px;
}

#shardAchBar1{
  background-image:radial-gradient( rgba(255, 221, 0, 0.505), black 210%);
}

#shardAchBar2{
  background-image:radial-gradient( rgba(255, 174, 0, 0.505), black 210%);
}

#shardAchBar3{
  background-image:radial-gradient( rgba(0, 255, 238, 0.505), black 210%);
}

#shardAchBar4{
  background-image:radial-gradient( rgba(153, 255, 248, 0.505), black 210%);
}

#shardAchBar5{
  background-image:radial-gradient( rgba(205, 205, 205, 0.505), black 210%);
}

#shardAchBar6{
  background-image:radial-gradient( rgba(133, 133, 133, 0.505), black 210%);
}

#shardAchBar7{
  background-image:radial-gradient( rgba(5, 208, 195, 0.505), black 210%);
}

#shardAchBar8{
  background-image:radial-gradient( rgba(255, 255, 255, 0.505), black 210%);
}

#shardAchBar9{
  background-image:radial-gradient( rgba(255, 0, 0, 0.505), black 210%);
}

#shardAchBar10{
  background-image:radial-gradient( rgba(199, 255, 251, 0.505), black 210%);
}

#fortuneTab {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap; /* allow the two halves to wrap like balance */
  align-items: flex-start;
  justify-content: space-evenly;
  gap: 16px;
}

#fortuneTab .sideFortune {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* prefer a 420px base so halves wrap to next row when narrow */
  flex: 0 1 700px;
  max-width: 700px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  height: auto; /* don't force 90vh so it can shrink on small screens */
}

#fortuneConvert {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 30px 0;
}

.halfButton {
  position: absolute;
  width: 358px;
  height: 356px;
  border-radius: 50%;
  border: 2px solid white;
  top: 0;
  left: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1;
  transition: filter 0.2s;
  color: black;
  text-align: center;
  display: flex;
  align-items: center;
}

.halfButton.left {
  background: radial-gradient(rgb(0, 0, 0) 45%, var(--coin) 100%);
  clip-path: polygon(0 0, 180px 0, 180px 360px, 0 360px);
  border-right: none;

}

.halfButton.right {
  background: radial-gradient(rgb(0, 0, 0) 45%, var(--crystal));
  clip-path: polygon(180px 0, 360px 0, 360px 360px, 180px 360px);
  border-left: none;
  justify-content: right;
}

.halfButton:hover {
  filter: brightness(2);
}

#whiteLine {
  width: 2px;
  height: 360px;
  left: 50%;
  background: white;
  position: absolute;
  z-index: 2;
}

.donut-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  background: black;
  border-radius: 50%;
  border: 2px solid white;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  text-align: center;
}

.fortuneBoost img {
  margin: 5px;
}

.fortuneBoost {
  color: white;
  font-size: calc(12px * var(--font-scale));
  border: 1px solid white;
  border-radius: 2px;
  max-width: 400px;
  height: 70px;
  display: flex;
  align-items: center;
  pointer-events: none;
  transition:  0.25s ease-in-out;
}

.fortuneBoost.disabled {
  color:#a1a1a1;
}

.fortuneBoostName {
  width: 75%;
}

.rightSideElements{
  display: flex;
  flex-direction: column;
  align-self: flex-end;
  margin-top: -8px;
  font-weight: 900;
  height: 100%;
  position: relative;
  width: 15%;
}

.fortuneBoostTime {
  position: absolute;
  top: 0;
  right: 5px;
}

.fortuneBoostRarity {
  position: absolute;
  right: 10px;
  bottom: 0;
  margin-left: auto;
  font-weight: 900;
  font-size: calc(28px * var(--font-scale));
}

.fortuneBoostRarity.B-rarity {
  color: rgb(0, 153, 255);
}
.fortuneBoostRarity.A-rarity {
  color: rgb(255, 153, 0);
}
.fortuneBoostRarity.S-rarity {
  color: rgb(140, 0, 255);
}
.fortuneBoostRarity.EX-rarity {
  color: rgba(255, 38, 0, 0.801);
}

img.disabled {
  filter: drop-shadow(0 0 2px #ffffff73) drop-shadow(0 0 2px #ffffff6e) drop-shadow(0 0 2px #ffffff71) !important;
}

.fortuneBoost.B-rarity {
  background: radial-gradient(rgb(0, 0, 0) 75%, rgb(3, 136, 177));
}

.fortuneBoost.A-rarity {
  background: radial-gradient(rgb(0, 0, 0) 70%, rgb(187, 137, 0));
}

.fortuneBoost.S-rarity {
  background: radial-gradient(rgb(0, 0, 0) 65%, rgb(116, 0, 211));
}

.fortuneBoost.EX-rarity {
  background: radial-gradient(rgb(0, 0, 0) 60%, rgba(192, 38, 0, 0.801) 90%, rgba(194, 39, 0, 0.877)95%,rgba(202, 0, 0, 0.884) 100%);
}

.fortuneUpgradesRow {
  display: flex;
}

/* Balance tab: two columns that wrap on small screens */
#balanceTab {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-evenly;
  gap: 16px;
}

/* Target the two halves inside the balance tab */
#balanceTab .sideFortune {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 1 600px; /* do not force growth, allow shrinking, base 420px */
  max-width: 600px;
  box-sizing: border-box;
  padding: 8px;
}

#fortuneUpgrades {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#balanceCoinBlocks {
  position: absolute;
  margin-left: 40px;
  margin-top: 137.5px;
  
}

#balanceCoinBlocks2 {
  position: absolute;
  display: flex;
  flex-direction: row;
  gap: 131.5px;
  height: 250px;
}

.balanceCoinBlock {
  border: 1px solid white;
  background-color: #000000;
  border-radius: 3px;
  width: 65px;
  height: 80px;
  transition: transform 0.3s ease-in-out;
  font-size: 9px;
}

.verticalLine {
  height: 5px;
  width: 1px;
  background-color: white;
  transition: height 0.3s ease-in-out;
}

.softcapBlock {
  display: flex;
  flex-direction: column;
  width: 300px;
  background-color: #111111;
  margin: 10px;
}

#plusCoinsDesc, #minusCoinsDesc {
  max-width: 350px;
  width: 45vw;
}

#balanceScalesCount {
  text-align: center;
}

#mySlider {
  width: 80%;
}

#autosaveSlider {
  font-size: calc(14px * var(--font-scale));
}

.fortuneButton {
  font-size: calc(16px * var(--font-scale)) !important;
  height: 60px !important;
  max-width: 340px !important;
  width: 25vw !important;
  margin: 0 !important;
  border-width: 2px !important;
}

.fortuneBoost {
  font-size: calc(12px * var(--font-scale));
}

.save_slot {
  max-height: 50px;
  width: 200px;
}








































@media (max-width: 1200px) {
  span, gt, pbn, st, ct, p, input, label, select, footer, button, #autosaveSlider, .shardAchBarGhost {
    /* font-size: 60% !important; */
    --font-scale: 0.85;
  }
  .upgradeButton, .prestigeMilestone, .fortuneBoost, .fortuneButton {
    --font-scale: 0.9; 
  }
  .challengeDiv {
    --font-scale: 1; 
  }
  #wholeShopDiv {
    transform: scale(0.9);
    /* flex-direction: column; */
  }
}

@media (max-width: 800px) {
  span, gt, pbn, st, ct, p, input, label, select, footer, button, #autosaveSlider, .shardAchBarGhost {
    /* font-size: 60% !important; */
    --font-scale: 0.8;
  }
  .upgradeButton, .tooltip {
    --font-scale: 0.9; 
  }
  .challengeDiv {
    --font-scale: 1; 
  }
  .fortuneBoost, .fortuneButton {
    --font-scale: 0.8;
  }
  #superCrystalsTab {
    flex-direction: column;
    align-items: center;
  }
  #harshUmulti {
    width: 90px !important
  }
  #shopTitleDiv {
    width: 90%;
  }
  #shopDiv {
    width: 90%
  }
  #wholeShopDiv {
    transform: scale(0.7);
    flex-direction: column;
    margin-top: -50px;
  }
  #wholeShopDiv .tooltip {
    width: 200px;
    --font-scale: 1.1;
  }
  .multiplierChooser {
    height: 35px !important;
  }
}

@media (max-width: 600px) {
  span, gt, pbn, st, ct, p, input, label, select, footer, button, #autosaveSlider, .shardAchBarGhost {
    /* font-size: 60% !important; */
    --font-scale: 0.6;
  }
  .upgradeButton, .prestigeMilestone, .fortuneBoost, .fortuneButton, .tooltip {
    --font-scale: 0.7; 
  }
  .challengeDiv {
    --font-scale: 1; 
  }

  #maxOrNoUpgrades, #modernizeButton, #maxOrNoShardUpgrades, #maxOrNoBreakPrestigeUpgrades, #maxOrNoBalanceUpgrades {
    border-radius: 2.5px;
  }
  #multiplierStats {
    width: 200px;
  }
  #wholeShopDiv {
    transform: scale(0.6);
    flex-direction: column;
    margin-top: -150px;
  }
  #wholeShopDiv input[type='text'] {
    height: 25px;
  }
  #wholeShopDiv .tooltip {
    width: 200px;
    --font-scale: 1.2;
  }
  .versionButtonVertical{
    height: 30px !important;
  }
  .windowDesc{
    max-height: 350px;
    --font-scale: 0.8
  }
  #versionChooser {
    height: 7%;
  }
  #helpDiv {
    max-height: 90%;
  }
  #versionDiv {
    max-height: 85%;
  }
}