.Toast_toastContainer__GruH5 {
  position: fixed;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 16px;

  opacity: 0;
  top: -128px;
  transition: opacity 0.5s ease, top 0.5s ease, bottom 0.5s ease;

  z-index: 1000;
}

.Toast_toastTop__Dk1u2 {
  top: -128px;
}

.Toast_toastBottom__nVYXz {
  bottom: 0;
  transform: translateY(200%);
}

.Toast_toastContent__5l5Xg {
  display: flex;
  align-items: center;

  cursor: pointer;
  background: #fff;
  color: #363636;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  max-width: 90%;

  -webkit-user-select: none;

     -moz-user-select: none;

          user-select: none;
}
/* LevelCard.module.css */

.LevelCard_levelCard__1qq5L {
  display: flex;
  flex-direction: column;
  /* Align content vertically */
  justify-content: center;
  /* Center content vertically */
  min-height: 64px;
  min-width: 64px;

  /* Padding will be reduced for smaller screens. */
  padding: 16px;

  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease-in-out;
  color: white;
  text-decoration: none;
  position: relative;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  text-align: center;
  /* Center standard IDs */
}

.LevelCard_levelCardContent__1AZhK {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

/* For music cards, align content to the start (left) */
.LevelCard_levelCard__1qq5L.LevelCard_isMusic__Qz5MM {
  text-align: left;
}

.LevelCard_levelCard__1qq5L.LevelCard_isMusic__Qz5MM .LevelCard_levelCardContent__1AZhK {
  justify-content: flex-start;
}

/* --- CONTENT STYLES --- */

.LevelCard_cardStandardId__nOCgU {
  font-size: 28px;
  font-weight: bold;
}

.LevelCard_cardDetails__bu7Yg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.LevelCard_cardTitle__FxtNu {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  line-height: 22px;

  overflow: hidden;
  text-overflow: ellipsis;
}

.LevelCard_customLevelCardTitle__c2V0y {
  /* Dimensions */
  width: 100%;
  max-height: 44px;
  /* Matches 2 lines at 22px line-height */

  /* Text Alignment */
  text-align: center;

  /* ELLIPSIS MAGIC (Line Clamp) */
  display: -webkit-box;
  -webkit-line-clamp: 1;
  /* Limits to 2 lines */
  -webkit-box-orient: vertical;
}

@media (max-width: 720px) {
  .LevelCard_customLevelCardTitle__c2V0y {
    -webkit-line-clamp: 2;
  }
}

.LevelCard_cardSubtitle__Mjc5E {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.LevelCard_cardMusicDuration__XH45P {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* --- STATES --- */

.LevelCard_levelCard__1qq5L.LevelCard_unlocked__xtiKQ {
  cursor: pointer;
}

.LevelCard_levelCard__1qq5L.LevelCard_unlocked__xtiKQ:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.LevelCard_levelCard__1qq5L.LevelCard_locked__MCodm {
  background-color: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
}


.LevelCard_levelCard__1qq5L.LevelCard_locked__MCodm .LevelCard_cardTitle__FxtNu,
.LevelCard_levelCard__1qq5L.LevelCard_locked__MCodm .LevelCard_cardSubtitle__Mjc5E,
.LevelCard_levelCard__1qq5L.LevelCard_locked__MCodm .LevelCard_cardMusicDuration__XH45P {
  color: rgba(255, 255, 255, 0.7);
}

.LevelCard_lockIcon__7wABO {
  font-size: 24px;
}

.LevelCard_levelCard__1qq5L.LevelCard_unavailable__spJ8u {
  background-color: rgba(0, 0, 0, 0.4);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
}

/* --- NEW STAR STYLES --- */

.LevelCard_starRatingContainer__tYzTk {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  margin-top: 12px;
  /* Gold color for filled/half-filled stars */
  color: #ffc700;
}

/* --- DELETE BUTTON --- */
.LevelCard_deleteButton__jkjvg {
  margin-top: 12px;
  background-color: rgba(255, 50, 50, 0.2);
  border: 1px solid rgba(255, 50, 50, 0.4);
  color: #ffcccc;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.LevelCard_deleteButton__jkjvg:hover {
  background-color: rgba(255, 50, 50, 0.4);
  color: white;
}

/* --- LOADING STATE --- */

.LevelCard_loading__xY4CM {
  cursor: wait !important;
  opacity: 0.8;
}

.LevelCard_loadingSpinner__q8typ {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-left-color: #ffffff;
  border-radius: 50%;
  flex-shrink: 0;

  position: absolute;
  top: 6px;
  right: 6px;
}
.OverlayText_overlayText__Ero7M {
  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;

  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
  margin: 8px;
}
.OverlayTip_overlayTipContainer__xVUVR {
  margin-top: 12px;
  text-align: center;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.OverlayTip_overlayTipContainer__xVUVR[data-next-tip-disabled] {
  cursor: default;
}

/* Fixes the "Sticky Hover" problem on mobile. */
/* Apply these styles only if the user's primary input mechanism can hover over elements,
   AND the 'data-next-tip-disabled' attribute is NOT present on the container. */
@media (hover: hover) {
  .OverlayTip_overlayTipContainer__xVUVR:not([data-next-tip-disabled]):hover {
    text-decoration: underline;
    font-weight: bolder;
  }
}

.OverlayTip_tipItem__0eJSS {
  margin: 0;
  display: inline;
}

.OverlayTip_tipTitle__Z8_dX {
  display: inline;
  margin: 0;
  font-weight: bolder;
}
/* Button container styles */
.LevelEndButtons_buttonContainer__xryVe {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Circle button wrapper styles */
.LevelEndButtons_circleButtonWrapper__6J4hq {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 8px;
  cursor: pointer;
}

/* Circle button styles */
.LevelEndButtons_circleButton__HUPQA {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  background-color: white;
  color: black;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.LevelEndButtons_circleButton__HUPQA:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.LevelEndButtons_circleButton__HUPQA:active {
  transform: scale(0.95);
}

/* Button label styles */
.LevelEndButtons_circleButtonLabel__4gjeG {
  margin-top: 8px;
  font-size: 14px;
  color: white;
  text-align: center;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* Download button specific styles */
.LevelEndButtons_downloadButton__ebF70 {
  background-color: white;
}
.VideoDownloader_videoContainer__kINAM {
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  height: 300px;

  margin-top: 16px;
}

.VideoDownloader_videoRecorded___22qz {
  /* XXX: object-fit contain only works as expected when both height and width are set. */
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.VideoDownloader_videoDownloaderCompleteState__qr_OG {
  font-weight: 600;
  margin-bottom: 0;
  margin-top: 16px;
}

/* This targets the fullscreen button inside any video element that has the .electronHideFullscreen class */
.VideoDownloader_electronHideFullscreen__Rq8JG::-webkit-media-controls-fullscreen-button {
  display: none;
}
.Overlay_overlay__rKX6G {
  /* XXX: Height, width, top, left are set on the Overlay component */
  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: flex-start;

  z-index: 10000;

  overflow-y: auto;
}

.Overlay_overlayContent__KmRlH {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  width: 100%;
  color: white;
  padding: 16px 16px 48px 16px;

  box-sizing: border-box;
}

.Overlay_overlayTitle__Eq3Jp {
  font-size: 32px;
  margin-bottom: 24px;
  text-align: center;
}

.Overlay_overlayChildrenContainer__9jy_5 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  margin-bottom: 16px;

  max-width: 100%;
}

.Overlay_overlayCloseButton__16_Pi {
  position: absolute;
  top: 15px;
  right: 25px;
  background: none;
  border: none;
  font-size: 40px;
  color: white;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  z-index: 10001;
  /* Ensure it's above content */

  -webkit-user-select: none;

     -moz-user-select: none;

          user-select: none;
}

.Overlay_overlayCloseButton__16_Pi:hover {
  color: #ccc;
}
.OverlayButton_overlayButton__d_c_I {
  padding: 12px 24px;
  background-color: transparent;
  color: white;
  border: 1px solid white;
  border-radius: 4px;
  cursor: pointer;

  font-size: 20px;
  font-weight: 600;

  transition: background-color 0.3s, color 0.3s;
}

.OverlayButton_overlayButton__d_c_I:hover {
  background-color: white;
  color: black;
}

.OverlayButton_overlayButton__d_c_I:disabled {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;

  transition: none !important;
}

.OverlayButton_overlayButton__d_c_I:disabled:hover {
  background-color: transparent !important;
  color: rgba(255, 255, 255, 0.5) !important;

  transition: none !important;
}
.OverlayButtonContainer_overlayButtonContainer__tE5Os {
  display: flex;
  justify-content: center;
  /* align-items: center; */
  flex-direction: column;

  min-width: 250px;
  gap: 16px;

  margin: 24px 0;
}
/* Original class (used for standard view) */
.OverlayTextInput_input__4EsaS {
  width: 100%;
  padding: 10px;
  background-color: #222;
  color: white;
  border: 1px solid #555;
  border-radius: 4px;
  box-sizing: border-box;
  outline: none;
}

.OverlayTextInput_input__4EsaS:focus {
  border-color: #777;
}

/* NEW: Flex container that acts as the visual border */
.OverlayTextInput_inputGroup__xQ595 {
  display: flex;
  align-items: center;
  width: 100%;
  background-color: #222;
  border: 1px solid #555;
  border-radius: 4px;
  box-sizing: border-box;
  cursor: text;
}

.OverlayTextInput_inputGroup__xQ595:focus-within {
  border-color: #777;
}

/* NEW: Input inside the group (borderless) */
.OverlayTextInput_bareInput__eztQp {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  padding: 10px;
  /* Ensure padding matches .input but handles right side differently */
  padding-right: 2px;
}

/* NEW: The static extension text */
.OverlayTextInput_extensionSuffix__5lBRH {
  color: #888;
  padding-right: 10px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  pointer-events: none;
}

.OverlayTextInput_errorText__MHdUB {
  color: #e74c3c;
  margin-top: 0.25rem;
  font-size: 0.9rem;
}
