* {
  padding: 0;
  margin: 0;
  touch-action: pan-x pan-y;
}

html,
body {
  touch-action: manipulation !important;
  -ms-touch-action: manipulation !important;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
  -webkit-text-size-adjust: none !important;
  overflow: auto !important;
  overscroll-behavior: none !important;
  pointer-events: auto !important;
  max-height: 100% !important;
  max-width: 100% !important;
}

:root {
  --en-txt-size: 2.5vw;
  --th-txt-size: 2vw;
  --hi-txt-size: 2.1vw;
  --bn-txt-size: 2.1vw;
  --vi-txt-size: 2.1vw;
  --ko-txt-size: 2vw;
  --ja-txt-size: 2vw;
  --fil-txt-size: 2vw;
  --zh-txt-size: 2.5vw;
  --zh_hant-txt-size: 2.5vw;
  --id-txt-size: 2.5vw;
  --ms-txt-size: 2.5vw;
  --tr-txt-size: 2.5vw;

}

html,
main {
  touch-action: pan-x pan-y;
}

#historyPanel {
  position: fixed;
  top: 0%;
  left: 0%;
  color: white;
  user-select: none;
  font-family: "Noto Sans";
  font-size: 0.9em;
  z-index: 1;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
}

.gfsDiv {
  color: #ffca0d;
}

.displayNone {
  visibility: hidden;
}

.displayHideDS {
  display: none;
}

#historyMain {
  width: 100%;
  height: 100%;
}

#historyHeader {
  box-sizing: content-box;
  border-bottom: 2.77px solid #a48723;
  width: 98%;
  height: 14%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto;
}

#historyPanel[isLand="true"][isMobile="true"] #historyHeader {
  margin-top: 20px;
}

#historyPanel[isLand="true"][isMobile="false"] #historyHeader {
  margin-top: 52px;
}

#historyPanel[isLand="true"][isMobile="true"] #h-close_btn {
  top: -30px;
}

#historyPanel[isLand="true"][isMobile="false"] #h-close_btn {
  top: -70px;
  right: -50px;
}

#historyPanel[isLand="true"] #historyMain {
  margin: 0 40px;
  width: unset;
}

#historyPanel[isLand="true"] #h-close_btn {
  top: -70px;
  right: -50px;
}

#historyPanel[isLand="true"][isMobile="false"] .h-history-dropdown-btn {
  height: clamp(56px, 4.4vw, 80px);
}

.h-heading {
  display: flex;
  align-items: center;
  width: 80vw;
  margin: auto;
  justify-content: space-between;
  height: 100%;
}

.headingText {
  font-family: "Inter-BoldItalic";
  font-size: min(3.2vw, 60px);
  color: #ffca0d;
  line-height: 0.9;
}

.imageDiv {
  display: flex;
  gap: 1.2rem;
  visibility: hidden;
}

.imageDiv img {
  width: 50%;
  background-color: rgba(0, 0, 0, 0.8);
  border: 1px solid #ffffff;
  border-radius: 10px;
  padding: 0.8rem 0.5rem;
}

.imageDiv img:hover {
  background-color: #515151;
  cursor: pointer;
}

.custom-selectBtnDiv {}

select {
  position: relative;
  -webkit-appearance: none;
  -moz-appearance: none;
  text-indent: 1px;
  text-overflow: "";
  padding: 8px 24px;
  background-color: #ffca0d;
  border-radius: 10px;
}

.ToggleDiv {
  background-color: #ffca0d;
  padding: 0rem 1.2rem;
  display: flex;
  font-family: "Inter-Medium";
  font-size: min(7vmin, 1.78rem);
  color: black;
  align-items: center;
  border-radius: 10px;
  gap: 10px;
  border: 1px solid white;
  font-weight: 700;
  /* / width:  min(7vmin, 10rem);; / */
  justify-content: center;
  white-space: nowrap;
}

.ToggleDiv:hover {
  background-color: #cba009;
  cursor: pointer;
}

.ToggleDiv img {
  width: min(7vmin, 20%);
  height: 20%;
}

.ToggleDiv p {
  margin: 0;
  padding: 0;
}

.h-close {
  font-size: 28px;
  font-weight: bold;
  opacity: 1;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  height: 100%;
  /* / width: 15%; / */
}

/* .h-close img {
    margin: auto
} */

.break-all {
  word-break: break-all;
}

#h-detailsMainContainer {
  width: 100%;
  height: calc(88% - 2.77px);
  /* / background-color: red; / */
  display: flex;
  flex-direction: column;
  font-family: "Inter-Bold";
}

/* isLand / isMobile attributes live on #historyPanel, not on #h-detailsMainContainer,
   so the selectors must be scoped through the parent */
#historyPanel[isLand="true"][isMobile="false"] #h-detailsMainContainer {
  height: calc(88% - 2.77px - 52px - 14px) !important;
}

#historyPanel[isLand="true"][isMobile="true"] #h-detailsMainContainer {
  height: calc(88% - 2.77px - 20px - 14px) !important;
}

#h-detailsSelectorBtns_Container {
  width: 80%;
  display: flex;
  align-self: center;
  /* margin-top: 10px; */
}

.h-detailsSelectorBtn {
  cursor: pointer;

  width: 100%;

  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid white;
  box-sizing: border-box;

  display: grid;
  place-items: center;

  text-align: center;
  font-size: var(--en-txt-size);
  line-height: 1.2;

  --borderRadius: 0.6vw;
}

.h-detailBtns_subText {
  font-size: 0.6em;
}

/* .h-detailsSelectorBtn:hover{
    background: rgba(81,81,81,0.5);
} */
.h-detailsSelectorBtn:first-child {
  background: #ffca0d;
  color: black;
  pointer-events: none;
  border-top-left-radius: var(--borderRadius);
  border-bottom-left-radius: var(--borderRadius);
}

.h-detailsSelectorBtn:last-child {
  border-top-right-radius: var(--borderRadius);
  border-bottom-right-radius: var(--borderRadius);
}

#h-historyTables_Wrapper {
  height: 100%;
  /* / background: gray; / */
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  margin-top: 16px;
}

#h-spinner-Wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: none;
}

#h-historyTable_Container {
  width: 80vw;
  margin: auto;
  translate: calc(var(--scrollWidth) / 2) 0;
  display: grid;
  /* Desktop / default: 5-column version (date, bet, win, replay/id, detail) */
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, 1fr));

  font-size: 1.33vw;
  font-family: "Inter-Medium";
}

/* 4-column layout for bet history and biggest wins all games tabs */
#h-historyTable_Container.four-col-layout {
  /* (date, bet, win, detail) */
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1fr));
}

/* Ellipsis styles for game ID */
.h-game-id {
  width: 56%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  box-sizing: border-box;
}

#h-historyTable_Container>div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

#h-historyTable_Container>.h-tableContent {
  padding: 1em 0.5em;
  box-sizing: content-box;
}

.h-tableContent {
  cursor: pointer;
}

#h-historyTable_Container>.h-tableTitle {
  padding-inline: 0.5em;
  box-sizing: content-box;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 0.01em solid #202020;
}

.h-detailIcon {
  width: 1.2em;
  display: flex;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-left: 4px;
}

.h-detailIcon img:first-child {
  width: 14px;
}

.text-center {
  align-items: center !important;
}

.contentBonus {
  color: #ffca0d;
}

.h-replay-actions {
  cursor: default !important;
}

.h-replay-actions {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center;
  align-items: center;
  gap: 28px;
  width: 100%;
  margin-top: 8px;
}

.h-replay-icon {
  width: 1.5em;
  height: 1.5em;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}

.h-replay-icon:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.h-replay-icon:active {
  transform: scale(0.95);
}

@media (orientation: portrait) {
  .h-replay-icon {
    width: 20px !important;
    height: 20px !important;
  }

  .h-detailIcon img:first-child {
    width: 8px !important;
  }
}

/* Toast notification styles */
.h-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #333;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: normal;
  width: max-content;
  max-width: 96%;
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: center;
}

.h-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.h-toast-success {
  background-color: #4caf50;
}

.h-toast-error {
  background-color: #f44336;
}

@media (max-width: 768px) {
  .h-toast {
    bottom: 20px;
    font-size: 13px;
    padding: 10px 20px;
  }
}

#historyPanel[isMobile="true"] #historyHeader {
  height: 15%;
  border-width: 2px;
}

#historyPanel[isMobile="true"] .h-heading {
  margin-left: 40px;
}

#historyPanel[isLand="true"] #h-detailsSelectorBtns_Container {
  width: 75vw;
}

#historyPanel[isLand="true"] .h-detailsSelectorBtn {
  font-size: 1.5vw;
  padding: 4px;
  --hi-txt-size: 1.5vw;
  --vi-txt-size: 1.5vw;
  --ko-txt-size: 1.5vw;
  --ja-txt-size: 1.5vw;
  --fil-txt-size: 1.5vw;
  --ms-txt-size: 1.5vw;
  --en-txt-size: 1.8vw;
  --zh-txt-size: 1.8vw;
  --zh_hant-txt-size: 1.8vw;
  --id-txt-size: 1.5vw;
  --hi-txt-size: 1.8vw;
  --bn-txt-size: 1.8vw;
  --tr-txt-size: 1.8vw;
}

#historyPanel[isLand="true"] #h-historyTable_Container {
  font-size: 1.5vw;
  width: 75vw;
}

.h-balance {
  display: flex;
  align-items: center;
  font-size: min(2.1vw, 40px);
  font-family: "Inter-Bold";
  font-weight: bold;
  color: #fff;
  gap: 5px;
}

.h-balance-mobile {
  justify-content: center;
  font-size: 3.5vw;
  margin: 15px auto 0 auto;
}

#historyHeader {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 10px 20px;
  box-sizing: border-box;
  width: 98%;
  height: 14%;
}

/* Far left - balance */
.h-balance {
  position: absolute;
  left: 0px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Centered title */
.headingText {
  margin: 0 auto;
  text-align: center;
  font-weight: bold;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Toggle aligned to right edge of 80% body */
.ToggleDiv#toggleBtn {
  position: absolute;
  right: 10%;
  align-items: center;
  cursor: pointer;
}

/* Far right close button — must stay above dropdown wrapper (z-index: 200) */
.h-close#h-close_btn {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  height: 100%;
  padding-right: 10px;
  cursor: pointer;
  font-size: 28px;
  font-weight: bold;
  opacity: 1;
  color: white;
  z-index: 210;
}

.h-reward-packet-icon {
    width: 18%;
}

@media (orientation: landscape) and (max-width: 950px) {}

@media (orientation: portrait) {
  .ToggleDiv {
    font-size: min(4vmin, 1rem);
    /* / width: 8rem; / */
  }

  .displayNone {
    display: none;
  }

  .displayhide {
    display: none;
  }

  #historyPanel[isMobile="true"] #historyHeader {
    height: 9.5%;
  }

  #historyPanel[isMobile="true"] .h-close {
    width: auto;
  }

  #historyPanel[isMobile="true"] .h-close img {
    margin: auto;
    height: 50%;
  }

  #historyPanel[isMobile="true"] .h-heading {
    margin-left: 0px;
  }

  #historyHeader {
    width: 94%;
    height: 7.5%;
    align-items: flex-end;
    padding: 10px 0px;
  }

  .h-heading .headingText {
    font-size: min(3vh, 30px);
    position: relative;
    text-align: center;
  }

  .headingText {
    white-space: normal;
    margin: 0;
    word-wrap: break-word;
    width: 100%;
    /* text-align: left; */
  }

  .h-balance {
    left: 0px;
  }

  .h-balance-mobile {
    width: 100%;
    font-size: max(2.8vw, 14px);
  }

  /* .h-close img{
        height: min(41%,5.5vw);
    } */

  #h-detailsMainContainer {
    width: 100%;
    height: calc(92.5% - 2px);
  }

  .h-detailsSelectorBtn {
    /* aspect-ratio: 120.67/39; */
    padding: 4px;
    font-size: 3vw;
    --borderRadius: 1.6vw;
  }

  #h-detailsSelectorBtns_Container {
    width: 96%;
    /* margin-top: 50px; */
  }

  #h-historyTable_Container {
    width: 96%;
    font-size: 3vw;
    /* Mobile portrait 5-column: make all data columns equal and constrain last (detail) */
    grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, 1fr));
  }

  /* Mobile portrait 4-column variant */
  #h-historyTable_Container.four-col-layout {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1fr));
  }

  .h-reward-packet-icon{
    width: 28%;
  }

  /* Ensure cells don't expand due to long content */
  #h-historyTable_Container>.h-tableContent,
  #h-historyTable_Container>.h-tableTitle {
    min-width: 0;
    /* allow text-overflow to work */
  }

  /* Constrain detail icon image */
  #h-historyTable_Container .h-detailIcon img {
    width: 70%;
    max-width: 28px;
    height: auto;
    display: block;
  }

  #h-historyTable_Container>.h-tableTitle {
    padding-inline: 0.8em;
  }

  #h-historyTables_Wrapper {
    margin-top: 16px;
  }
}

@media (orientation: portrait) and (min-width: 800px) {
  .h-balance-mobile {
    margin-top: 8px;
  }
}

@media (orientation: portrait) and (min-width: 1175px) {
  #h-detailsSelectorBtns_Container {
    /* margin-top: 64px; */
  }
}

@media (min-width: 1180px) and (max-width: 1290px) {}

@media (min-width: 1150px) and (max-width: 1600px) {
  #historyPanel[isLand="true"] .ToggleDiv {
    font-size: 1.2rem !important;
    width: 10rem !important;
  }
}

@media (min-width: 1600px) {
  #historyPanel[isLand="true"] .ToggleDiv {
    font-size: 1.6rem !important;
    width: 12rem !important;
  }

  #historyPanel[isLand="true"] .h-detailsSelectorBtn {
    padding: 12px 6px;
  }
}

@media (min-width: 640px) {
  #historyPanel[isLand="false"] .headingText {
    width: 72% !important;
    font-size: 4.3vw !important;
  }
}

@media (max-width: 750px) {
  .displayhide {
    display: none;
  }
}

#historyPanel[isLand="true"] .displayhide {
  display: none;
}

#historyPanel[isLand="true"] .ToggleDiv {
  font-size: 0.8rem;
  width: 7rem;
}

#historyPanel[isLand="true"] .ToggleDiv img {
  width: 25%;
  height: 25%;
}

#historyPanel[isLand="true"] .h-heading {
  display: grid;
  /* grid-template-columns: repeat(5, 1fr); */
  margin: 0;
  grid-template-rows: repeat(1, 1fr);
}

#historyPanel[isLand="true"] .headingText {
  grid-column: 2 / span 3;
  text-align: center;
}

/* #historyPanel[isLand="false"] .headingText {
  width: 56%;
  font-size: 5vw;
  text-align: center;
  } */

#historyPanel[isLand="true"] .ToggleDiv {
  grid-column: 5 / span 5;
  padding: 0.3rem 1.2rem;
}

/* #historyPanel[isLand = "true"] .displayHideDS{
    display: grid;
} */

.modal-overlay {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

#gameHistoryIFrame {
  width: 100%;
  border: none;
  overflow: auto;
  flex-grow: 1;
}

#gameHistoryIFrame button {
  display: none !important;
}

.modalContent {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  padding: 8px;
  border-radius: 16px;
  width: 90% !important;
  height: 75vh;
  position: relative;
}

.modalContentHeader {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  margin-bottom: 4px;
}

.close-btn {
  cursor: pointer;
  max-width: 48px;
  background: none;
  border: none;
  z-index: 100;
}

.close-btn:focus {
  outline: none;
}

.close-btn img {
  width: 100%;
}

#historyLoader {
  border: 8px solid #f3f3f3;
  border-radius: 50%;
  border-top: 12px solid #444444;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  z-index: 99999;
  display: block;
}

.center {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* ============================================================
   History Dropdown (replaces tab buttons)
   ============================================================ */

#h-history-dropdown-wrapper {
  position: relative;
  z-index: 200;
  flex-shrink: 0;
  width: clamp(300px, 24%, 400px);
}

#h-dropdown-selected {
  display: flex;
  flex-direction: column;
}

.h-dropdown-item span.common-rules:nth-child(2) {
  font-size: min(1.1vw, 14px);
}

.h-history-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 10px;
  padding: 6px 14px;
  background-color: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  cursor: pointer;
  color: white;
  font-family: "Inter-Bold";
  font-size: min(1.6vw, 18px);
  white-space: nowrap;
  min-width: 130px;
  user-select: none;
  transition: background-color 0.2s;
  box-sizing: border-box;
}

.h-history-dropdown-btn:hover {
  background-color: rgba(40, 40, 50, 0.9);
}

/* .h-dropdown-arrow was the old text-character arrow — removed in favour of .h-arrow-down-icon (img) */

.h-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background-color: rgba(18, 18, 28, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  overflow: hidden;
  display: none;
  min-width: 100%;
  z-index: 1000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

#h-history-dropdown-wrapper.open .h-dropdown-menu {
  display: block;
}

.h-dropdown-item {
  padding: 9px 14px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-family: "Inter-Medium";
  font-size: clamp(16px, 1.4vw, 24px);
  white-space: nowrap;
  transition: background-color 0.15s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hDropdownItemNode {
  display: flex;
  flex-direction: column;
}

.hide {
  display: none;
}

.h-dropdown-item:last-child {
  border-bottom: none;
}

.h-dropdown-item:hover {
  background-color: rgba(255, 202, 13, 0.15);
}

.h-dropdown-item.active {
  color: #ffca0d;
}

/* ---- Landscape: dropdown sits in header to the right of the heading.
     Offset from right to avoid covering the close button.
     clamp ensures safe clearance on all screen sizes (mobile → 4K). ---- */
#historyHeader #h-history-dropdown-wrapper {
  position: absolute;
  right: 0;
}

/* ---- Portrait / mobile: dropdown sits below balance in detailsMainContainer ---- */
#h-detailsMainContainer #h-history-dropdown-wrapper {
  align-self: center;
  margin: 12px auto 0;
  width: 94%;
  max-width: unset;
  margin-top: 50px;
}

#h-detailsMainContainer .h-history-dropdown-btn {
  width: 100%;
  font-size: 16px;
  padding: 8px 12px;
  box-sizing: border-box;
}

#historyPanel[isLand="false"][isMobile="true"] #h-detailsMainContainer .h-history-dropdown-btn {
  font-size: 12px;
  padding: 4px 12px;
  min-height: 44px;
}

.h-history-dropdown-btn div span.common-rules:nth-child(2) {
  font-size: 12px;
}

#historyPanel[isLand="false"][isMobile="true"] #h-detailsMainContainer .h-history-dropdown-btn div span.common-rules:nth-child(2) {
  font-size: 9px;
}

#h-detailsMainContainer .h-dropdown-item {
  font-size: min(3vw, 15px);
}

#h-detailsMainContainer .h-dropdown-item span.common-rules:nth-child(2) {
  font-size: min(2.8vw, 13px);
}

#h-detailsMainContainer .h-arrow-down-icon {
  max-width: 14px;
}

@media (orientation: portrait) and (min-width: 800px) {
  #h-detailsMainContainer .h-history-dropdown-btn {
    font-size: min(2vw, 16px);
  }

  #h-detailsMainContainer .h-dropdown-item {
    font-size: min(1.8vw, 15px);
  }
}

/* Landscape (desktop): scale down slightly on smaller landscape screens */
#historyPanel[isLand="true"] .h-history-dropdown-btn {
  font-size: clamp(16px, 1.4vw, 24px);
  padding: 8px 12px;
  min-height: 50px;
}

#historyPanel[isLand="true"][isMobile="true"] #h-history-dropdown-wrapper {
  width: clamp(200px, 20%, 260px);
}

/* Mobile landscape: header is tight, use smaller font + compact padding
   to create breathing room between dropdown and header border */
#historyPanel[isLand="true"][isMobile="true"] .h-history-dropdown-btn {
  font-size: 12px;
  padding: 4px 10px;
  min-height: 44px;
  gap: 6px;
}

#historyPanel[isLand="true"][isMobile="true"] .h-history-dropdown-btn span.common-rules:nth-child(2) {
  font-size: 10px;
}

#historyPanel[isLand="true"][isMobile="true"] .h-dropdown-item {
  font-size: 12px;
  padding: 7px 10px;
}

#historyPanel[isLand="true"][isMobile="true"] .h-dropdown-item span.common-rules:nth-child(2) {
  font-size: 10px;
}

#historyPanel[isLand="true"][isMobile="true"] .h-arrow-down-icon {
  max-width: 12px;
}

#historyPanel[isLand="true"] .h-history-dropdown-btn span.common-rules:nth-child(2) {
  font-size: clamp(12px, 1.2vw, 20px);
}

#historyPanel[isLand="true"] .h-dropdown-item {
  font-size: min(1.3vw, 18px);
}

#historyPanel .h-dropdown-item {
  display: flex;
  flex-direction: column;
}


/* Arrow icon — transition + open-state rotation (Fix: was targeting .h-dropdown-arrow,
   but the HTML element uses class h-arrow-down-icon) */
.h-arrow-down-icon {
  width: 10%;
  max-width: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

#h-history-dropdown-wrapper.open .h-arrow-down-icon {
  transform: rotate(180deg);
}

@media screen and (max-width: 1024px) {
  .close-btn {
    width: 32px;
  }

  .h-replay-icon {
    width: 20px;
    height: 20px;
  }

  .h-detailIcon {
    gap: 4px !important;
  }

  .h-detailIcon img:first-child {
    width: 8px;
  }

  .h-replay-actions {
    gap: 18px;
  }
}