 /* ---- click button animation ----- */
 * {
  caret-color: transparent;
}
#homeBtn, #musicBtn, .panel-btn,
#confirmBtn, #closeWinPop, #closeRulePop, #closesysmtempromtPop {
  transition: transform .2s ease;
}

#homeBtn:hover, #musicBtn:hover, .panel-btn:hover,
#confirmBtn:hover, #closeWinPop:hover, #closeRulePop:hover, #closesysmtempromtPop:hover{
  transform: scale(1.05);
}

#homeBtn.click, #musicBtn.click, 
#ruleBtn.click, #startBtn.click, #recordBtn.click,
#confirmBtn.click, #closeWinPop.click, #closeRulePop.click, #closesysmtempromtPop.click{
  animation: click .2s ease forwards;
}

@keyframes click {
  0% { transform: scale(1); }
  50% { transform: scale(0.8); }
  100% { transform: scale(1); }
}
/* ----------------------------------------- */
#mainGame.disabled #homeBtn { 
  pointer-events: none;
  cursor: pointer;
}

.wthTxtBorder2px {
  text-shadow: 
        -1.5px -1.5px 0px var(--edgeColor),
        -1px -1.5px 0px var(--edgeColor),
        0px -1.5px 0px var(--edgeColor),
        1px -1.5px 0px var(--edgeColor),
        1.5px -1.5px 0px var(--edgeColor),
        1.5px -1px 0px var(--edgeColor),
        1.5px  0px 0px var(--edgeColor),
        1.5px  1px 0px var(--edgeColor),
        1.5px  1.5px 0px var(--edgeColor),
        1px  1.5px 0px var(--edgeColor),
        0px  1.5px 0px var(--edgeColor),
        -1px  1.5px 0px var(--edgeColor),
        -1.5px  1.5px 0px var(--edgeColor),
        -1.5px  1px 0px var(--edgeColor),
        -1.5px  0px 0px var(--edgeColor),
        -1.5px -1px 0px var(--edgeColor)!important;
}

.wthTxtBorder3px {
  text-shadow: 
        -3px -3px 0px var(--edgeColor),
        -2px -3px 0px var(--edgeColor),
        -1px -3px 0px var(--edgeColor),
        0px -3px 0px var(--edgeColor),
        1px -3px 0px var(--edgeColor),
        2px -3px 0px var(--edgeColor),
        3px -3px 0px var(--edgeColor),
        3px -2px 0px var(--edgeColor),
        3px -1px 0px var(--edgeColor),
        3px 0px 0px var(--edgeColor),
        3px 1px 0px var(--edgeColor),
        3px 2px 0px var(--edgeColor),
        2px 3px 0px var(--edgeColor),
        1px 3px 0px var(--edgeColor),
        0px 3px 0px var(--edgeColor),
        -1px 3px 0px var(--edgeColor),
        -2px 3px 0px var(--edgeColor),
        -3px 3px 0px var(--edgeColor),
        -3px 2px 0px var(--edgeColor),
        -3px 1px 0px var(--edgeColor),
        -3px 0px 0px var(--edgeColor),
        -3px -1px 0px var(--edgeColor),
        -3px -2px 0px var(--edgeColor),
        -3px -3px 0px var(--edgeColor)!important;
}

body {
  position: relative;
  margin: 0;
}

/* //------------------------------------- */

#mainGame {
  position: fixed;
  height: 100%;
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#mainGame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: url(../images/desktop/bg.webp);
  background-size: 100% 100%;
  background-position: 0% 21%;
  background-repeat: no-repeat;
}

.main-game-container{
  position: relative;
  width: 100%;
  height: 635px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

/* ---------------------------------------------------------- */
.title-event-time {
  position: relative;
  width: 43%;
  top: 2%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.title-event-time .main-title {
  width: 100%;
}

/* //------------------------------------- */
.event-time {
  width: max-content;
  height: auto;
  position: relative;
  background: rgb(0, 26, 103, 0.75);
  border: 2px solid #a0bff9;
  padding: 5px 10px;
  border-radius: 15px;
  margin-top: -20px;
  margin-bottom: 5px;
}

.event-time p{
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
}

/* --------------------------------------------------- */
.drawCountsCon {
  width: max-content;
  height: auto;
  padding: 6px 15px;
  background: linear-gradient(180deg, #1458C8 0%, #0A2870 100%);
  border: 2px solid #fcffc9;
  border-radius: 33px; 
  margin-bottom: 15px;
}

.drawCountsCon p {
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
}

.drawCountsCon #drawCountSpan {
  color: #DFEB45;
}

/* --------------------------------------------------- */
.navi-con {
  width: max-content;
  position: absolute;
  bottom: -55px;
  right: -27%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.navi-con.disabled {
  pointer-events: none;
  cursor: auto;
}

.menuBtn {
  height: 60px;
  width: 40px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.menuBtn span{
  color: #fff;
  font-size: smaller;
  font-weight: 600;
}

#homeBtn {
  background-image: url(../images/buttons/home-icon.webp);
  margin-bottom: 5px;
}

#musicBtn {
  background-image: url(../images/buttons/music-icon.webp);
}

#musicBtn.music-muted {
  background-image: url(../images/buttons/music-icon-off.webp);
}

#homeBtn, #musicBtn, #musicBtn.music-muted {
  background-position: top;
  background-size: contain;
  background-repeat: no-repeat;
}

/* ---------------------------------- */
@keyframes floatY {
  0% { transform: translateY(0); }
  50% { transform: translateY(2%); }
  100% { transform: translateY(0); }
}

.title-screen {
  height: 415px;
}

/* ---------------------------------- */
.title-screen {
  position: relative;
  width: 65%;
}

.title-screen .blue-charac, .title-screen .red-charac {
  position: absolute;
  top: 0;
  height: auto;
  width: 100%;
  z-index: 1;
}

.title-screen .blue-charac { 
  left: 0; 
  animation: floatY 3s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  animation-direction: reverse;
  animation-delay: -1.5s; /* start at 50% */
}

.title-screen .red-charac { 
  right: -20%; 
  animation: floatY 3s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

/* ------------- */
.panel.base {
  position: absolute;
  bottom: 0;
  z-index: 2;
  width: 100%;
  background-image: url(../images/title-screen/ctrl-panel-base.webp);
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  padding-bottom: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.start-btn, .game-btn {
  cursor: pointer;
  width: max-content;
  padding: 0 10px;
}

.start-btn img{
  height: 60px;
}

.game-btn img{
  height: 50px;
  margin-top: 5px;
}

.panel-btn{
  transform: scale(1);
}

/* --------------------------------------------------- */
#popupContainer{
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 10;
  overflow: hidden;
  background: rgb(0 0 0 / 60%);
  align-items: center;
  justify-content: center;
}

/* --------------------------------------- */
#bonusPopupContainer {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
}

#popupContainer.open-bonus-popup,
#popupContainer.open-bonus-popup #bonusPopupContainer{
  display: flex;
}

/* --------------------------------------- */
#popupContainer.open-bonus-popup #penaltyResultContainer .inner-con::before {
  animation: ball 0.5s linear forwards;
}

@keyframes ball {
  0% { left: -18%; }
  100% { left: 118%; }
}

/* ----- */
#penaltyResultContainer{
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#penaltyResultContainer .inner-con{
  height: 40vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url(../images/game/stadium-crop.webp);
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

#penaltyResultContainer .inner-con::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0%;
  height: 170px;
  width: 170px;
  transform: translate(-100%, -50%);
  background-image: url(../images/game/football.webp);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

#penaltyResultContainer .inner-con::after {
  content: '';
  position: absolute;
  top: 0%;
  left: 0%;
  height: 100%;
  width: 100%;
  z-index: 1;
}

#penaltyResult{
  position: relative;
  z-index: 3;
  height: 60%;
  display: none;
}

img.fire-ball {
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 275px;
  height: auto;
  display: none;
  z-index: 2;
}

/* ---- */
#mainGame.penaltyResult .main-game-container{
  background-color: rgb(0 0 0 / 0%);
}

/* ---- */
#popupContainer.displayPenaltyResult {
  background: rgb(0 0 0 / 0%);
}

#popupContainer.displayPenaltyResult #penaltyResultContainer .inner-con::after {
  background: rgb(0 0 0 / 60%);
}

#popupContainer.displayPenaltyResult img.fire-ball {
  display: flex;
}

#popupContainer.displayPenaltyResult #penaltyResult{
  display: flex;
  transform: scale(1);
  animation: popTxt 0.3s linear forwards;
}

@keyframes popTxt {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ---- */
#mainGame.bonusPopCard .main-game-container{
  background-color: rgb(0 0 0 / 0%);
}

#popupContainer.displayBonusPopCard #penaltyResultContainer{
  display: none;
}

#popupContainer.displayBonusPopCard #bonusPopCardContainer{
  display: flex;
}

/* ---- */
#bonusPopCardContainer{
  display: none;
  width: 320px;
  height: auto;
  position: relative;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 0;
}

#bonusPopCardContainer::after {
  content: none;
}

#bonusPopCardContainer::before {
  content: none;
}

img.bonus-card-bg {
  position: relative;
  top: auto;
  left: auto;
  height: auto;
  width: 100%;
  opacity: 0;
  transform: scale(0.9);
}

#prize {
  position: absolute;
  bottom: 21%;
  left: 50%;
  transform: translate(-50%, 30px) scale(0.9);
  z-index: 2;
  display: inline-block;
  font-size: 82px;
  font-weight: 700;
  line-height: 1;
  color: #F84000;
  padding-right: 5px;
  opacity: 0;
}

#prize::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #FEF7CC 8.39%, #FFC840 21.63%, #FFFDCC 70.19%, #FFCE44 92.31%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 5px transparent;
}

#prize::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #36100099;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 7px transparent;
}

#confirmBtn {
  margin-top: 0;
  position: absolute;
  bottom: -3%;
  left: 50%;
  transform: translateX(-50%);
  height: 58px;
  width: 190px;
  cursor: pointer;
  z-index: 2;
}

#confirmBtn::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/bonus/confirm.webp');
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
}

#closeWinPop {
  position: absolute;
  top: -2%;
  right: -16%;
  width: 45px;
  height: 45px;
  z-index: 2;
  cursor: pointer;
}

#closeWinPop::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-image: url('../images/buttons/close.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  opacity: 0;
}

#bonusPopCardContainer.disabled #closeWinPop,
#bonusPopCardContainer.disabled #confirmBtn{
  pointer-events: none;
}

/* ---------bonus card pop animation----------------- */
@keyframes bonuscard {
  0% { 
    opacity: 0;
    transform: scale(0.9);
  }
  100% { 
    opacity: 1;
    transform: scale(1);
  }
}

#popupContainer.displayBonusPopCard img.bonus-card-bg{
  animation: bonuscard 0.2s ease-out forwards;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

#popupContainer.displayBonusPopCard #bonusPopCardContainer::after{
  animation: none;
}

#popupContainer.displayBonusPopCard #bonusPopCardContainer::before{
  animation: none;
}

@keyframes fadePop {
  0% { 
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  100% { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#popupContainer.displayBonusPopCard #prize, 
#popupContainer.displayBonusPopCard #confirmBtn::before{
  animation: fadePop 0.3s ease-out forwards;
}

#popupContainer.displayBonusPopCard #prize{ animation: prizeFadePop 0.3s ease-out forwards 0.5s; }
#popupContainer.displayBonusPopCard #confirmBtn::before{ animation-delay: 0.8s; }

@keyframes prizeFadePop {
  0% {
    opacity: 0;
    transform: translate(-50%, 30px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

#confirmBtn:hover {
  transform: translateX(-50%) scale(1.05);
}

#confirmBtn.click {
  animation: confirmBtnClick .2s ease forwards;
}

@keyframes confirmBtnClick {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(0.8); }
  100% { transform: translateX(-50%) scale(1); }
}

#popupContainer.displayBonusPopCard #closeWinPop::before{
  animation: fadeIn 0.2s ease-out forwards 0.9s;
}

/* ------------------------------------- */
#ruleContainer {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  height: auto;
  width: 650px;
  justify-content: center;
  align-items: center;
  border: 3px solid #fff;
  border-radius: 15px;
}

#popupContainer.open-rule-popup,
#popupContainer.open-rule-popup #ruleContainer{
  display: flex;
}

img.rule-label {
  position: absolute;
  top: -2%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  z-index: 2;
}

.rule-outer-con {
  position: relative;
  height: 100%;
  width: 100%;
  border: 3px solid #124793;
  border-radius: 15px;
  background:
    url(../images/rules/rule-bg-d.webp) center center / cover no-repeat,
    linear-gradient(180deg, #F8FACF 0%, #FCB800 100%);
  padding: 42px 25px 25px;
  z-index: 1;
}

.rule-outer-con::before {
  content: none;
}

.game-penalty {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.game-penalty .penalty-bonus{
  text-align: center;
  overflow: hidden;
  color: #173069;
  width: 17%;
}

.game-penalty .penalty-bonus .penalty {
  background-color: #fff;
  border: 0.1px solid #DCD8C7;
  border-left: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 8px;
}

.game-penalty .penalty-bonus:first-child .penalty{
  border-left: 0.1px solid #DCD8C7;
}

.game-penalty .penalty-bonus .bonus {
  background: linear-gradient(180deg, #FDF266 0%, #EE8F15 100%);
  border: 0.1px solid #C2AD10;
  border-left: none;
  border-top: none;
  padding: 8px;
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
}

.game-penalty .penalty-bonus:first-child .bonus{
  border-left: 0.1px solid #C2AD10;
}

/* ---- */
.game-rules {
  position: relative;
  z-index: 2;
  padding: 15px 15px 5px;
  background-color: #fff;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  margin-top: 15px;
}

.game-rules .content {
  height: 300px;
  overflow: auto;
}

.game-rules .content::-webkit-scrollbar {
  width: 5px;
}

.game-rules .content::-webkit-scrollbar-thumb {
  background: rgb(59 59 59 / 50%); 
  border-radius: 10px;
}

.game-rules .content span.red {
  color: #F84000;
}

#closeRulePop {
  position: absolute;
  top: -5%;
  right: -3%;
  width: 45px;
  height: 45px;
  z-index: 2;
  cursor: pointer;
}

#closeRulePop::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-image: url('../images/buttons/close.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

/* --------------------------------------- */
#popupContainer.open-record-popup,
#popupContainer.open-record-popup #recordContainer{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#popupContainer.open-record-popup {
  background: rgb(0 0 0 / 60%);
}

#recordContainer {
  position: relative;
  display: none;
  width: 332px;
  height: 300px;
  /* background: #e0a321; */
  border-radius: 25px;
  /* padding: 4px; */
}

.record-container {
  height: 100%;
  width: 100%;
  border-radius: 15px;
  background: #fdf9c3;
  overflow: hidden;
  border: 3px solid #fdf9c3;
}

.record-label {
  background: linear-gradient(180deg, #2497A9 0%, #003AB7 83.17%);
  color: #f8ffff;
  text-align: center;
  padding: 10px;
  font-size: 22px;
  font-weight: 600;
}

.record-table {
  padding: 15px;
}

.table-head {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  padding: 5px;
  font-size: 16px;
  color: white;
  background: #082e83;
  border-radius: 7px;
}

.time-column {
  width: 60%;
  text-align: center;
}

.bonus-column {
  width: 40%;
  text-align: center;
}

.record-list {
  display: flex;
  margin-top: 10px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  max-height: 250px;
  overflow-x: hidden;
  overflow-y: auto;
}

.record-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: #3c3535;
  padding: 3px;
  margin-bottom: 5px;
  background: #ffffff;
  border-radius: 7px;
}

.record-row:last-child {
  margin-bottom: 0px;
}

/* .record-row:nth-child(even) {
  background: #ffffff;
} */

.record-table p{
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: #000000;
}

#closeRecPop {
  position: absolute;
  top: 17px;
  right: 14px;
  height: 24px;
  width: 24px;
  cursor: pointer;
}

#closeRecPop::before,
#closeRecPop::after{
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  height: 4px;
  width: 100%;
  background-color: #fff;
  border-radius: 4px;
}

#closeRecPop::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

#closeRecPop::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* -------------------------------------------------- */
#popupContainer.open-sysmtempromt-popup, 
#popupContainer.open-sysmtempromt-popup #sysmtempromtContainer {
    display: flex;
}

#popupContainer.open-sysmtempromt-popup {
  background: rgb(0 0 0 / 60%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#sysmtempromtContainer{
  display: none;
  position: relative;
  width: 363px;
  height: 195px;
  background: #124793;
  border: 3px solid #ffff;
  border-radius: 30px;
  padding: 20px 25px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#sysmtempromtContainer::after {
    content: '';
    position: absolute;
    width: 98.5%;
    height: 96%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(180deg, #F8FACF 0%, #FCB800 100%);
    border-radius: 25px;
    z-index: 1;
}

#sysmtempromtContainer p {
    z-index: 2;
    font-size: 32px;
    font-weight: bold;
    color: #173069;
    text-align: center;
}

img.system-title {
  position: absolute;
  top: -5%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55%;
  z-index: 2;
}

#closesysmtempromtPop {
  position: absolute;
  top: -7%;
  right: -4%;
  width: 50px;
  height: 50px;
  z-index: 2;
  cursor: pointer;
}

#closesysmtempromtPop:active{
  transform: scale(0.8);
}

#closesysmtempromtPop::after{
  transform: scale(1);
}

#closesysmtempromtPop::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-image: url('../images/buttons/close.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}


@media screen and (min-width: 1280px) and (min-height: 720px) {
  .main-game-container {
    width: 89%;
    transform: scale(1.13);
  }

  .title-screen .blue-charac { left: 6%; }
  .title-screen .red-charac { right: -15%; }

}

@media screen and (min-width: 1366px) {
  .main-game-container {
    width: 83%;
    transform: scale(1.21);
  }

}

@media screen and (min-width: 1440px) {
  .main-game-container {
    width: 71%;
    transform: scale(1.41);
  }

  .title-screen .blue-charac { left: 4%; }
  .title-screen .red-charac { right: -23%; }

}

@media screen and (min-width: 1536px) {
  .main-game-container {
    width: 100%;
    transform: scale(1.2);
  }
  .title-screen {bottom: 4%;}
  .title-event-time {top: 4%;}
  .title-screen .blue-charac {
    top: -39%;
    left: 24%;
    width: 28%;
    height: auto;
  }
  .title-screen .red-charac {        
    right: 21%;
    width: 29%;
    height: auto;
    top: -52%;
  }
  .title-screen {height: 239px;}
  .panel.base {bottom: 5px;}
  #game-screen .game-screen__kicker {left: 147px;}
}

@media screen and (min-width: 1536px) and (min-resolution: 1.25dppx) {
  .main-game-container {
    width: 100%;
    transform: scale(1.2);
  }
}


@media screen and (min-width: 1600px) {
  .main-game-container {
    width: 71%;
    transform: scale(1.42);
  }  
}

@media screen and (min-width: 1920px) {
  .main-game-container {
    width: 67%;
    transform: scale(1.5);
    bottom: -2%;
  }
  .title-event-time {top: 3%;}
  .title-screen {height: 320px;}
  .title-screen .blue-charac {        
    left: 15%;
    width: 40%;
    top: -12%; 
  }
  .title-screen .red-charac {
    right: 14%;
    width: 37%;
    top: -22%;
  }
}

@media only screen and (min-width: 2500px) and (max-width: 2620px) {
  .main-game-container {width: 100%;transform: scale(1);bottom: 0%;height: 100vh;}
  .title-event-time {
    top: 3%;
  }
  .title-screen {
    bottom: -3%;
  }
  .menuBtn {
    height: 80px;
    width: 60px;
  }
  .event-time p, .drawCountsCon p {font-size: 24px;}
  .title-screen .blue-charac {
    left: 15%;
    width: 38%;
    height: auto;
    top: -63%;
  }
  .title-screen .red-charac {
    right: 14%;
    width: 37%;
    height: auto;
    top: -71%;
  }
  .panel.base {
    bottom: 11%;
    left: 50%;
    width: 115%;
    transform: translateX(-50%) scale(1.2);
  }
  .start-btn img {
    height: 78px;
  }
  .game-btn img {
    height: 64px;
  }
  .title-screen {height: 477px;}
}

/* ---- migrated desktop card flow ----- */
body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-overlay--bg {
  background: rgba(0, 0, 0, 0.65);
}

.draw-card-flow {
  perspective: 1000px;
}

.card-flipper {
  width: 300px;
  position: relative;
  z-index: 3;
}

.card-flipper--enter {
  animation: card-pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes card-pop-in {
  from {
    scale: 0.4;
    opacity: 0;
  }
  to {
    scale: 1;
    opacity: 1;
  }
}

.card-flipper--pulse {
  animation: card-pulse 0.25s ease-in-out 2;
}

@keyframes card-pulse {
  0%, 100% { scale: 1; }
  50% { scale: 1.08; }
}

.card-flipper__face--back {
  display: none;
}

.draw-card-img {
  width: 100%;
}

.card-flipper--glowing .draw-card-img--reveal {
  filter: drop-shadow(0 0 16px rgb(251, 255, 0));
}

.draw-card__light {
  position: absolute;
  width: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.draw-card__light--b {
  z-index: 1;
}

.draw-card__light--f {
  z-index: 2;
  animation: draw-card-spin 6s linear infinite;
}

@keyframes draw-card-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.game-screen {
  width: 100%;
  z-index: 200;
  align-items: flex-end;
  overflow: hidden;
}

.game-screen__bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center bottom;
  z-index: 0;
}

.game-screen__kicker {
  position: absolute;
  left: 0;
  bottom: 25%;
  height: 40%;
  z-index: 2;
}

.game-screen__kicker-img {
  height: 50%;
  width: auto;
  object-fit: contain;
  object-position: bottom left;
}

.game-screen__kicker-sprite {
  height: 100%;
  aspect-ratio: 502 / 377;
  background-size: 200% 300%;
  background-position: 0% 0%;
  background-repeat: no-repeat;
  display: none;
  position: absolute;
}

.game-screen__football {
  position: absolute;
  bottom: 30%;
  left: 23%;
  height: 8%;
  width: auto;
  object-fit: contain;
}

.game-screen__football--animate {
  animation: football-to-center 0.5s ease-in-out forwards;
}

@keyframes football-to-center {
  from {
    left: 23%;
    bottom: 30%;
    transform: translate(0, 0);
  }
  to {
    left: 110%;
    bottom: 50%;
    transform: translate(-100%, 50%);
  }
}

.stadium-crop {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center bottom;
}

.football {
  height: 25.92vh;
  width: auto;
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  z-index: 4;
  animation: football-slide 0.5s ease-in-out forwards;
}

@keyframes football-slide {
  from { left: 0%; }
  to { left: 100%; }
}

.text-popup__wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-popup__fire-football {
  position: absolute;
  width: min(clamp(400px, 44vw, 650px), 72vw);
  height: auto;
  z-index: 0;
  transform: translateY(-15%);
}

.text-popup--img {
  position: relative;
  opacity: 0;
  width: min(clamp(400px, 60vw, 800px), 90vw);
  height: auto;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.6));
  z-index: 1;
}

#text-popup.is-entering {
  animation: text-bg-in 0.25s ease forwards;
}

#text-popup.is-entering .text-popup--img {
  animation: text-img-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

#text-popup.is-leaving {
  animation: text-bg-out 0.3s ease forwards;
}

#text-popup.is-leaving .text-popup--img {
  animation: text-img-out 0.3s ease forwards;
}

@keyframes text-bg-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes text-bg-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes text-img-in {
  0% { opacity: 0; transform: scale(0.5) translateY(40px); }
  60% { opacity: 1; transform: scale(1.12) translateY(-8px); }
  80% { transform: scale(0.96) translateY(3px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes text-img-out {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.85); }
}
