html, .map-container {
  scroll-behavior: smooth;
}
.container-word-swap {
  max-width: 1140px;
}

.word-swap-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  box-sizing: border-box;
  width: 100%;
  border-radius: 10px;
}
.words-tooltip {
    position: absolute;
    top: 0;
    z-index: 1;

    width: 100%;
    height: 100%;
}
h1 {
  margin-bottom: 1rem;
}

header{
  padding: 0.3em;
}
#logo{
  max-width: 150px;
}
.btn-green-light{
    padding: 8px 24px;
    font-size: 14px;
}
.logout-user {
    min-width: 40px;
    min-height: 40px;
    width: 40px;
    height: 40px;
    font-size: 20px;
}
.badge-pill-count-swap{
    background: #4caf50;
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #FFF;
    font-size: 12px;
    margin-left: 4px;
    margin-right: 0;
}
.map-container {
    position: relative;
    width: 100%;
    max-width: 1280px;
    aspect-ratio: 1280 / 850;
    border-radius: 10px;
    overflow: hidden;
}

/* Video map: different aspect ratio */
.map-container.map-container--video {
    aspect-ratio: 1112 / 834;
}

/* Video background (e.g. world 6): no controls, loop, behind content */
.map-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

.map-container .world-name,
.map-container .world-progress,
.map-container .marker-wrapper,
.map-container .wrapper-character {
    z-index: 1;
}

.marker-wrapper {
  position: absolute;
  width: 6%;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  user-select: none;
  max-width: 70px;
  transition: transform 0.3s ease;
}

.marker-wrapper.dragging {
  cursor: pointer;
}

.marker-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
}

.marker-wrapper::after {
  content: attr(data-pin);
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: clamp(16px, 1.2vw, 25px);
  color: white;
  pointer-events: none;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
}

.marker-wrapper:not(.dragging):hover {
  transform: scale(1.1);
  z-index: 1;
}

.marker-wrapper:not(.dragging):hover::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 70%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}

.wrapper-character {
  position: absolute;
  width: 24%;
  height: auto;
  bottom: 0%;
  right: 2%;
  pointer-events: none;
  text-align: right;
}

.wrapper-character .character {
  width: 80%;
  height: 100%;
}

@keyframes fadeInPop {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.wrapper-character .speech-bubble {
  position: absolute;
  bottom: 105%;
  right: 7%;
  background: linear-gradient(to bottom, rgb(255 255 255 / 48%), rgb(255 255 255 / 95%));
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #333;
  padding: 10px 14px;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  font-size: clamp(16px, 1em, 16px);

  text-align: center;
  font-family: 'Comic Sans MS', sans-serif;
  pointer-events: auto;
  z-index: 2;
  transform: scale(0.5);
  animation: fadeInPop 0.6s ease-out forwards;
}

.wrapper-character .speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: white transparent transparent transparent;
}



@keyframes pulse-glow {
  0% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

.world-name {
  position: absolute;
  padding: 1em;
  backdrop-filter: blur(2px);
  top: 7px;
  left: 9px;
  border-radius: 5px;
  z-index: 2;
  background: linear-gradient(to bottom, rgb(255 255 255 / 48%), rgb(255 255 255 / 71%));
}

.world-name span {
  color: #080808;
  font-size: 1em;
  font-weight: bold;
}

.world-progress {
  background: #fdf7f7f0;
  position: absolute;
  top: 7px;
  right: 9px;
  padding: 1em;
  backdrop-filter: blur(10px);
  border-radius: 5px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.world-progress span:first-child {
  color: #080808;
  font-size: 1em;
  font-weight: bold;
}

.world-progress .dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  background-color: #707070;
  margin: 0 0.1em;
  font-size: 0.8em;
  color: #fff;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  cursor: pointer;
}

.world-progress .dot.passed {
  background-color: #4caf50;
}

.world-progress .dot.pending {
  background-color: #f39c12;
}

.world-progress .dot:hover {
  transform: scale(1.3);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
}

.card-header-success {
  background: linear-gradient(90deg, #eff5f2 13%, #5ab889 123%);
  color: #fff;
  border-left: 4px solid #7fc7a3;
}

.card-header-pending {
  background: linear-gradient(90deg, #fff8e1 13%, #f0ad4e 123%);
  color: #212529;
  border-left: 4px solid #d7a455;
}

.swal2-content-custom{
  width: 100%;
  font-size: 1.1em !important;
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: 100% !important;
}
.word-swap-intro p{
  font-size: 1.3em;
}

@keyframes pop {
  0% {
    transform: scale(0.5);
  }
  60% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes pulse-slow {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.wrap-locked-icon {
  position: absolute;
    width: auto !important;
    height: auto !important;
    max-width: 42px;
    bottom: 17px;
    left: -16px;
    margin: 0 auto;
    pointer-events: none;
}

.marker-wrapper.gray:hover .wrap-locked-icon {
  animation: lockDance 0.8s ease-in-out 1;
}

@keyframes lockDance {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  15% {
    transform: translateY(-4px) rotate(-10deg);
  }
  30% {
    transform: translateY(0) rotate(10deg);
  }
  45% {
    transform: translateY(-2px) rotate(-6deg);
  }
  60% {
    transform: translateY(0) rotate(4deg);
  }
  75% {
    transform: translateY(-1px) rotate(-2deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

.wrap-arrow-icon {
  position: absolute;
  top: -55px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  pointer-events: none;
  animation: arrowBounce 1s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-6px);
  }
}

.wrap-flag-icon {
  position: absolute;
  bottom: 21px;
  left: 133%;
  transform: translateX(-50%);
  width: 52px !important;
  height: auto !important;
  pointer-events: none;
  z-index: 2;
}

.wrap-check-icon {
  position: absolute;
  top: -8px;
  right: -4px;
  width: 30px !important;
  height: 30px !important;
  pointer-events: none;
}

.custom-tabs-nav {
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 1rem;
}

.custom-tabs {
  display: flex;
  gap: 1rem;
}

.custom-tab {
  background: none;
  border: none;
  padding: 0.45rem 1.5rem;
  font-size: 1rem;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 8px 8px 0 0;
}

.custom-tab:hover {
  color: #0d6efd;
  background-color: rgba(13, 110, 253, 0.05);
}

.custom-tab.active {
  background-color: rgba(13, 110, 253, 0.05);
  color: #0d6efd;
  font-weight: 500;
}

.custom-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #0d6efd;
}

.custom-tabs-content {
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.custom-tab-pane {
  display: none;
  min-height: 500px;
  background: #fff;
}

.custom-tab-pane.active {
  display: block;
}

.custom-tab-title {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f8f9fa;
}

.custom-tab-body {
  line-height: 1.6;
  color: #7f8c8d;
}


/* ========== step ===========/*
    /* ===== Estilos Gerais ===== */
    .word-swap-container {

        margin: 0 auto;
    }
    
    .word-swap-card {
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border-radius: 20px;
        border: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        position: relative;
        transition: all 0.3s ease;
        width: 100%;
        max-width: 1024px; 
        margin-top: 0em;       
    }
    
    .word-swap-card:hover {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }
    
    .word-swap-header {
        background: linear-gradient(120deg, #28a745, #218838);
        color: white;
        padding: 15px;
        position: relative;
        overflow: hidden;
    }
    .word-swap-header h2{
      font-size: 1.5em;
    }
    
    .word-swap-header::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
        transform: rotate(30deg);
    }
    
    /* ===== Container de Palavras ===== */
    .word-display-container {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin: 25px 0 15px;
      align-items: center;
      justify-content: center;
      padding: 1em;
      border-radius: 8px;
      background: linear-gradient(177deg, #dfdfdf -96%, #f8fdff 100%);
      border: 1px solid #EAEAEA;
      text-align: center;
    }
    
    .word-column {
        flex: 1;
        min-width: 200px;
        border-radius: 15px;
        padding: 20px;
        position: relative;
        box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
        border: 1px solid #e9ecef;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .word-column::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
    }
    
    .word-column.boring {
      background: linear-gradient(179deg, #ff9a9e -96%, #ffffff 100%);
    }
    
    .word-column.boring::after {
        background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
    }
    
    .word-column.power {
      background: linear-gradient(135deg, #8eff93 -96%, #f4ffea 100%);
    }
    
    .word-column.power::after {
        background: linear-gradient(90deg, #4caf50, #74ae41);
    }
    
    .word-label {
        font-size: 1.1rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;

        text-align: center;
    }
    
    .boring .word-label {
        color: #d32f2f;
    }
    
    .power .word-label {
        color: #1565c0;
    }
    
    .word-text {
        font-size: 2.3rem;
        font-weight: 700;
        text-align: center;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* ===== Botão Secundário (Swap Word Pair) ===== */
    .btn-swap-word {
        padding: 12px 25px;
        border-radius: 50px;
        font-weight: 600;
        font-size: 1.1rem;
        border: none;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        background: linear-gradient(120deg, #17a2b8, #138496);
        color: white;
        animation: pulse 2s infinite;
    }
    
    .btn-swap-word:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.15);
        animation: none;
    }
    
    .btn-swap-word:active {
        transform: translateY(1px);
    }
    
    .btn-swap-word i {
        font-size: 1.2rem;
        transition: transform 0.4s ease;
    }
    
    .btn-swap-word:hover i {
        transform: rotate(360deg);
    }
    
    /* ===== Botão Primário (Commit to this swap) ===== */
    .btn-commit-swap {
    display: block;
    width: 100%;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(120deg, #28a745, #218838);
    color: white;
    text-align: center;
    animation: pulse-green 2s infinite;
    }
    
    .btn-commit-swap:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.2);
        background: linear-gradient(120deg, #218838, #1e7e34);
    }
    
    .btn-commit-swap:active {
        transform: translateY(1px);
    }
    
    .btn-commit-swap i {
        font-size: 1.5rem;
    }
    
    /* Animações de Pulsação */
    @keyframes pulse {
        0% { box-shadow: 0 0 0 0 rgba(23, 162, 184, 0.4); }
        70% { box-shadow: 0 0 0 10px rgba(23, 162, 184, 0); }
        100% { box-shadow: 0 0 0 0 rgba(23, 162, 184, 0); }
    }
    
    @keyframes pulse-green {
        0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
        70% { box-shadow: 0 0 0 15px rgba(40, 167, 69, 0); }
        100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
    }
    
    /* ===== Container de Botões ===== */
    .swap-button-container {
        text-align: center;
    }
    
    .commit-button-container {
        margin-top: 25px;
    }
    
    /* ===== Animações ===== */
    .word-change-animation {
        animation: wordChange 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    @keyframes wordChange {
        0% { transform: scale(1); opacity: 1; }
        25% { transform: scale(1.2); opacity: 0.8; }
        50% { transform: scale(0.8); opacity: 0.3; }
        75% { transform: scale(1.1); opacity: 0.9; }
        100% { transform: scale(1); opacity: 1; }
    }
    
    /* ===== Efeitos Visuais ===== */
    .confetti {
        position: absolute;
        width: 10px;
        height: 10px;
        background-color: #ff0;
        opacity: 0;
        pointer-events: none;
    }
    
    .magic-sparkle {
        position: absolute;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #fff;
        opacity: 0;
        pointer-events: none;
        box-shadow: 0 0 10px #fff;
    }
    
    /* ===== Seta de Transformação ===== */
    .arrow-container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 80px;
        height: 100px;
    }
    
    .transform-arrow {
        font-size: 2.5rem;
        color: #333;
        animation: arrowPulse 1.5s infinite;
        transition: all 0.5s ease;
        z-index: 10;
        position: relative;
    }
  
    
    @keyframes arrowPulse {
        0% { transform: translateX(0) }
        50% { transform: translateX(5px) }
        100% { transform: translateX(0)  }
    }
    
    /* Criando um container para o efeito de ripple */
    .ripple-container {
        position: absolute;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        z-index: 1;
    }
    
    .ripple-effect {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: rgba(111, 66, 193, 0.1);
        animation: ripple 2s infinite;
    }
    
    @keyframes ripple {
        0% { transform: scale(1); opacity: 1; }
        100% { transform: scale(1.8); opacity: 0; }
    }
    
    /* ===== Responsividade ===== */
    @media (max-width: 768px) {
        .word-display-container {
            flex-direction: column;
        }


        .card-header-mission {
            display: flex !important;
            flex-direction: column;
            gap: 10px;
        }        
        
        .word-text {
            font-size: 2.2rem;
        }
        
        p {
            font-size: 1.1rem;
        }
        
        .btn-swap-word {
            font-size: 1rem;
            padding: 10px 20px;
        }
        
        .btn-commit-swap {
            font-size: 1.2rem;
            padding: 14px 16px;
        }
        
        .arrow-container {
            width: 100%;
            padding: 15px 0;
            height: 60px;
            transform: rotate(90deg);
        }
        
        .transform-arrow {
            font-size: 2.8rem;
        }
    }


#category-select {
  /* mantém o texto centralizado */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* remove a seta nativa */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* padding extra à direita pra dar espaço à seta */
  padding: .75rem 2.5rem .75rem 1rem;

  /* seu estilo normal */
  width: 100%;
  font-size: 1.1rem;
  border: 1px solid #e9ecef;
  border-radius: 15px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
  background-color: #fff;
  transition: all .3s ease;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'>\
<path d='M1 1l5 5l5-5' fill='none' stroke='%23666' stroke-width='2'/>\
</svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.f-bold{
    font-weight: bold;
}

header{
  box-shadow: none;
}
  /* ----------------------------------------------------------------------------
     .area: Full-screen fixed container with a radial background
  ---------------------------------------------------------------------------- */
  .area {
    width: 100%;
    height: 100vh;
    position: fixed;
    pointer-events: none; 
    top: 0;
    z-index: -1;
    background: radial-gradient(283.09% 128.32% at 46.04% 57.33%, #c0f3fd 0%, #ffe869 100%);
  }

  /* ----------------------------------------------------------------------------
     .circles: holds all <li> elements and overflows hidden
  ---------------------------------------------------------------------------- */
  .circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  /* ----------------------------------------------------------------------------
     .circles li: Base styles for each animated circle
     - Positioned absolutely
     - Uses a translucent white background
     - Animates with @keyframes "floatUp"
  ---------------------------------------------------------------------------- */
  .circles li {
    position: absolute;
    display: block;
    list-style: none;
    background: rgb(255 255 255 / 43%);
    bottom: -150px; /* Start below the bottom edge */
    animation: floatUp linear infinite;
    /* The size, delay, duration, and left will be overridden per nth-child */
  }


  /* 1 */
  .circles li:nth-child(1) {
    left: 5%;
    width: 70px;
    height: 70px;
    animation-delay: 0s;
    animation-duration: 20s;
  }

  /* 2 */
  .circles li:nth-child(2) {
    left: 10%;
    width: 30px;
    height: 30px;
    animation-delay: 2s;
    animation-duration: 14s;
  }

  /* 3 */
  .circles li:nth-child(3) {
    left: 15%;
    width: 50px;
    height: 50px;
    animation-delay: 4s;
    animation-duration: 18s;
  }

  /* 4 */
  .circles li:nth-child(4) {
    left: 20%;
    width: 20px;
    height: 20px;
    animation-delay: 1s;
    animation-duration: 22s;
  }

  /* 5 */
  .circles li:nth-child(5) {
    left: 25%;
    width: 90px;
    height: 90px;
    animation-delay: 3s;
    animation-duration: 26s;
  }

  /* 6 */
  .circles li:nth-child(6) {
    left: 30%;
    width: 40px;
    height: 40px;
    animation-delay: 5s;
    animation-duration: 16s;
  }

  /* 7 */
  .circles li:nth-child(7) {
    left: 35%;
    width: 60px;
    height: 60px;
    animation-delay: 2s;
    animation-duration: 24s;
  }

  /* 8 */
  .circles li:nth-child(8) {
    left: 40%;
    width: 25px;
    height: 25px;
    animation-delay: 7s;
    animation-duration: 30s;
  }

  /* 9 */
  .circles li:nth-child(9) {
    left: 45%;
    width: 100px;
    height: 100px;
    animation-delay: 0s;
    animation-duration: 28s;
  }

  /* 10 */
  .circles li:nth-child(10) {
    left: 50%;
    width: 15px;
    height: 15px;
    animation-delay: 4s;
    animation-duration: 32s;
  }

  /* 11 */
  .circles li:nth-child(11) {
    left: 55%;
    width: 120px;
    height: 120px;
    animation-delay: 8s;
    animation-duration: 25s;
  }

  /* 12 */
  .circles li:nth-child(12) {
    left: 60%;
    width: 20px;
    height: 20px;
    animation-delay: 3s;
    animation-duration: 34s;
  }

  /* 13 */
  .circles li:nth-child(13) {
    left: 65%;
    width: 45px;
    height: 45px;
    animation-delay: 6s;
    animation-duration: 27s;
  }

  /* 14 */
  .circles li:nth-child(14) {
    left: 70%;
    width: 80px;
    height: 80px;
    animation-delay: 1s;
    animation-duration: 20s;
  }

  /* 15 */
  .circles li:nth-child(15) {
    left: 75%;
    width: 30px;
    height: 30px;
    animation-delay: 5s;
    animation-duration: 23s;
  }

  /* 16 */
  .circles li:nth-child(16) {
    left: 80%;
    width: 55px;
    height: 55px;
    animation-delay: 0s;
    animation-duration: 29s;
  }

  /* 17 */
  .circles li:nth-child(17) {
    left: 85%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 31s;
  }

  /* 18 */
  .circles li:nth-child(18) {
    left: 90%;
    width: 70px;
    height: 70px;
    animation-delay: 4s;
    animation-duration: 26s;
  }

  /* 19 */
  .circles li:nth-child(19) {
    left: 95%;
    width: 35px;
    height: 35px;
    animation-delay: 3s;
    animation-duration: 22s;
  }

  /* 20 */
  .circles li:nth-child(20) {
    left: 50%; /* Centered */
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 40s;
  }

  /* ----------------------------------------------------------------------------
     Keyframes: Animate each circle from bottom to top, rotating and fading out
  ---------------------------------------------------------------------------- */
  @keyframes floatUp {
    0% {
      transform: translateY(0) rotate(0deg);
      opacity: 1;
      border-radius: 0;
    }
    100% {
      transform: translateY(-1000px) rotate(720deg);
      opacity: 0;
      border-radius: 50%;
    }
  }


/*/STEP 2*/
 .new-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    position: relative;
    background: rgba(255, 255, 255, 0.4);
    padding: 14px 24px;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.07);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
  }

  /* ----------------------------------------------------------------------------
     Label Text for Toggle
  ---------------------------------------------------------------------------- */
  .label-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: #6c757d;
    transition: color 0.3s ease;
  }
  .boring-label {
    color: #ff6a00;
  }
  .power-label {
    color: #28a745;
  }

  /* ----------------------------------------------------------------------------
     Custom Toggle Switch (iOS-like)
  ---------------------------------------------------------------------------- */
  .switch {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 36px;
  }

  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #ccc;
    transition: background 0.4s;
    border-radius: 34px;
  }

  .slider:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 4px;
    bottom: 4px;
    background: #fff;
    transition: transform 0.4s;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  }

  .switch input:checked + .slider {
    background: linear-gradient(135deg, #28a745, #218838);
  }

  .switch input:checked + .slider:before {
    transform: translateX(34px);
  }

  .slider:hover {
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.15);
  }

  /* ----------------------------------------------------------------------------
     General Styles for Swap Header
  ---------------------------------------------------------------------------- */
  .swap-transition {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
  }
  .transition-arrow {
    display: inline-block;
    margin: 0 0.5rem;
    font-size: 1.8rem;
    color: #28a745;
  }
  .swap-instruction {
    font-size: 1.2rem;
    color: #333;
  }

  /* make wrapper positioned so placeholder floats correctly */
  .wrapper-textarea-mission {
    position: relative;
  }

  #mdl-sentence:empty:before {
    content: attr(data-placeholder);
    font-size: 18px;
    color: #6c757d;            
    position: absolute;
    top: 0.75rem;              
    left: 1rem;
    right: 1rem;
    pointer-events: none;
    white-space: pre-wrap;     
  }
  
  /* ----------------------------------------------------------------------------
     Word Section Cards (Boring / Power)
  ---------------------------------------------------------------------------- */
  .word-section {
    text-align: left;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: 100%;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
    position: relative;
  }
  .word-section:hover {
    transform: translateY(-5px);
  }
  .word-label-badge {
    position: absolute;
    top: -11px;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
    font-size: 0.7rem;
    z-index: 1;
  }
  .bg-orange {
    background: linear-gradient(120deg, #ff9a3d, #ff6a00);
  }
  .bg-green {
    background: linear-gradient(120deg, #28a745, #218838);
  }
  .word-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }
  .word-display h3 {
    padding-top: 5px;
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
  }
  .boring-word-text {
    color: #ff6a00;
  }
  .power-word-text {
    color: #28a745;
  }

  .word-details {
    border-top: 1px solid #eee;
    padding-top: 15px;
  }
  .word-details p {
    margin-bottom: 10px;
    font-size: 1.05rem;
    line-height: 1.5;
  }

  .btn-tts.minify{
    border: 0 !important;
    position: relative;
  }
  
  /* ----------------------------------------------------------------------------
     Example Sentence Styles (Toggle Section)
  ---------------------------------------------------------------------------- */
  .example-toggle-container {
    background: linear-gradient(to bottom right, #FFF4E4 0%, #FFF 40%, #FFF 60%, #F2FFEE 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #dee2e6;
  }
  .example-sentence {
    text-align: center;
  }
  .example-sentence p {
    font-size: 1.6rem;
    margin: 0;
  }
  .swap-word {
    font-weight: 700;
    transition: color 0.3s ease;
    padding: 0 4px;
    border-radius: 4px;
  }
  .boring-word-highlight {
    color: #ff6a00;
    background: rgba(255, 106, 0, 0.1);
  }
  .power-word-highlight {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
  }

  /* ----------------------------------------------------------------------------
     Tip Section Styles
  ---------------------------------------------------------------------------- */
  .tip-section-clean {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    width: 100%;
    margin: 24px auto;
    position: relative;
  }
  .bulb-icon {
    position: absolute;
    right: 1%;
    top: 4px;
    font-size: 3em;
    color: #fbbf24;
    animation: bulb-glow 2.5s infinite ease-in-out;
  }

  @keyframes bulb-glow {
    0%, 100% {
      transform: scale(1);
      color: #fbbf24;
      text-shadow: none;
    }
    50% {
      transform: scale(1.08);
      color: #ffec76;
      text-shadow:
        0 0 6px rgba(255, 236, 118, 0.8),
        0 0 12px rgba(255, 236, 118, 0.6);
    }
  }


  /* Icon container */
  .tip-icon-clean {
    flex-shrink: 0;
    font-size: 1.7rem;
    color: #fbbf24;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
  }

  /* Poem text wrapper */
  .tip-content-clean {
    flex: 1;
  }

  .tip-content-clean-p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #334155; /* Slate 700 */
    margin: 0;
  }
  .tip-content-clean-p .tip-boring-clean {
    color: #d97706; /* Amber 600 */
    background: rgba(217, 119, 6, 0.1);
    padding: 2px 0px;
    border-radius: 4px;
  }
  .tip-content-clean-p .tip-power-clean {
    color: #064e3b; /* Emerald 800 */
    background: rgba(6, 78, 59, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
  }

  @media (max-width: 1075px) {
    .world-progress{
      display: none;
    }

  }

  @media (max-width: 770px) {
    .world-name, .word-progress{
      display: none;
    }
    .custom-tabs{
      flex-direction: column;
    }
    .glass-border{
      flex-direction: column;
    }
    .action-buttons{
      flex-direction: column;
    }
    .status-indicators{
      flex-direction: column;
    }
    .map-container:before{
        content: 'Your screen resolution is too small to display the map properly. Please access it from a device with a larger screen.';
        position: absolute;
        background: #000;
        width: 100%;
        height: 100%;
        top: 0;
        bottom: 0;
        text-align: center;
        color: #FFF;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }
    #aquariumFrame{
      height: 415px !important;
    }    
  }

  
  /* Responsive adjustments */
  @media (max-width: 576px) {
    #aquariumFrame{
      height: 415px !important;
    }
    .custom-tabs{
      flex-direction: column;
    }
    .glass-border{
      flex-direction: column;
    }
    .action-buttons{
      flex-direction: column;
    }
    .status-indicators{
      flex-direction: column;
    }    
    .world-name, .word-progress{
      display: none;
    }
    .tip-section-clean {
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 16px;
    }
    .tip-icon-clean {
      font-size: 1.5rem;
      margin-bottom: 10px;
    }
    .tip-content-clean-p {
      font-size: 1.1rem;
    }
  }

  /* ----------------------------------------------------------------------------
     Practice Button Styles
  ---------------------------------------------------------------------------- */
  .btn-practice {
    background: linear-gradient(120deg, #28a745, #218838);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  }
  .btn-practice:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
  }
  .btn-practice i { font-size: 1.4rem; }

  /* ----------------------------------------------------------------------------
     Pulse Animation for Arrow
  ---------------------------------------------------------------------------- */
  @keyframes pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.1); }
    100% { transform: scale(1); }
  }

  /* ----------------------------------------------------------------------------
     Responsive Adjustments
  ---------------------------------------------------------------------------- */
  @media (max-width: 768px) {
    .word-display h3 { font-size: 1.8rem; }
    .example-sentence p { font-size: 1.2rem; }
    .tip-content { font-size: 1.1rem; }
  }

/* --------------------------------------------------------------------------
   Estilização da definição e da abreviação destacada
-------------------------------------------------------------------------- */
.definition-text {
  display: block;
  margin-top: 4px;
  line-height: 1.4;
  color: #555; /* cor padrão do texto da definição */
}


.definition-text .abbr-text {
    font-weight: 600;
    color: #009ab9;
    border: 1px solid #009ab9;
    border-radius: 25px;
    padding: 2px 10px;
    font-size: 13px;
}

    /* Step 3: Shared styles */

    .activity-instructions p {
      font-size: 1.2rem;
      margin-bottom: 1rem;
    }

    .activity-instructions .img-fluid {
      max-width: 700px;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      width: 100%;
    }

    .button-group {
  display: flex;
  align-items: center;
  flex-direction: row;
  margin: 0 auto;
  left: 0;
  right: 0;
  justify-content: center;
  gap: 10px;
    }

    .btn-generic {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 12px 0;
      font-size: 1.1rem;
      border-radius: 50px !important;
      width: -webkit-fill-available !important;
      /* Firefox */
      width: -moz-available !important;

      /* Chrome, Safari, Edge (Blink/WebKit) */
      width: -webkit-fill-available !important;

      /* valor padronizado (sem prefix) */
      width: fill-available !important;      
      cursor: pointer;
      max-width: 400px;
    }

    .icon-button {
      font-size: 1.4rem;
      margin-right: 0.5rem;
    }
#btn-next-step {
  /* Mantém a animação de pulso existente e adiciona o movimento suave */
  animation: btn-pulse-green 2s infinite, gentle-move 2s ease-in-out infinite;
}

@keyframes gentle-move {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
  100% {
    transform: translateX(0);
  }
}


/* ====== Layout: Flex for card + vertical breadcrumb ====== */
.wrapper-step {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
}

.word-swap-column {
  flex: 1 1 60%;
  min-width: 280px;
}

.breadcrumb-vertical {
  flex: 0 1 200px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0em;
}

/* Each link or div uses the same “step” class */
.breadcrumb-vertical .step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
  border-left: 2px solid transparent;
}

.breadcrumb-vertical .step-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
  flex-shrink: 0;
  font-size: 1rem;
}

.breadcrumb-vertical .step-text {
  display: flex;
  flex-direction: column;
}

.breadcrumb-vertical .step-title {
  font-size: 1rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.25rem;
}

.breadcrumb-vertical .step-desc {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.2;
}

/* Completed steps */
.breadcrumb-vertical .step.completed {
  background: linear-gradient(64deg, #ffffff 13%, #ffffff33 122.99%);
}
.breadcrumb-vertical .step.completed .step-icon {
  background-color: #28a745;
}
.breadcrumb-vertical .step.completed .step-title,
.breadcrumb-vertical .step.completed .step-desc {
  color: #28a745;
}

/* Current step */
.breadcrumb-vertical .step.current {
  background-color: #fff9e6;
}
.breadcrumb-vertical .step.current .step-icon {
  background-color: #ffca28;
  color: #333;
}
.breadcrumb-vertical .step.current .step-title {
  color: #ff9800;
}
.breadcrumb-vertical .step.current .step-desc {
  color: #ff9800;
  font-weight: 500;
}

/* Upcoming steps */
.breadcrumb-vertical .step.upcoming {
  background-color: #f5f5f5;
  opacity: 0.7;
}
.breadcrumb-vertical .step.upcoming .step-icon {
  background-color: #aaa;
}
.breadcrumb-vertical .step.upcoming .step-title,
.breadcrumb-vertical .step.upcoming .step-desc {
  color: #999;
}

/* Ensure that links don’t have default text-decoration */
.breadcrumb-vertical .step.completed,
.breadcrumb-vertical .step.current {
  text-decoration: none;
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
  .button-group{
    flex-direction: column;
  }
  .wrapper-step {
    flex-direction: column;
  }
  .breadcrumb-vertical {
    flex: 1 1 auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .breadcrumb-vertical .step {
    flex: 1 1 45%;
    max-width: 140px;
    align-items: center;
  }
  .breadcrumb-vertical .step-text {
    align-items: center;
    text-align: center;
  }
  .breadcrumb-vertical .step-title {
    font-size: 0.9rem;
  }
  .breadcrumb-vertical .step-desc {
    font-size: 0.8rem;
  }
  .breadcrumb-vertical .step-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}
.swap-active{
  border-left: 3px solid #4fb6ff !important;
}

.boring-highlight {
    font-weight: bold;
    padding: 2px 4px;
    color: #ff6a00;
    background: rgba(255, 106, 0, 0.1);
}

.power-highlight {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    font-weight: bold;
    color: #28a745;
    padding: 2px 4px;
}
  .instructions{
    font-size: 1.2em;
  }
  .card-header-mission {
    border-bottom: none;
    padding: 1rem;
    color: #000;
    font-weight: bold;
  }
.card-header-success {
  background: #9fdbbd;
}

.card-header-pending {
  background: #ffe1b5;
}
.card-header-mission span{
  font-size: 16px;
}

.glass-border{
    background: #ffffffbf;
    padding: 5px 20px;
    border-radius: 26px;
    backdrop-filter: blur(8px);
}

  .mission-card { border: none; border-radius: .75rem; overflow: hidden; }
  .mission-item {
    transition: transform .2s, box-shadow .2s;
    cursor: default;
  }
  .mission-item.state-available { cursor: pointer; }
  .mission-item.state-available:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  .mission-item.state-locked { opacity: .6; }
  .modal-header { border-bottom: none; }
  .modal-body { padding: 1.5rem; }
  .modal-footer { border-top: none; }
  .form-control-lg { border-radius: .5rem; padding: 1rem; }
  .btn-lg { padding: .75rem 2rem; }


.mission-item.state-locked {
  opacity: 0.6;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.4s ease;
}

.mission-item.state-locked:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 1;
}
/* Faz o ícone de cadeado girar levemente ao pairar sobre o cartão locked */
.mission-item.state-locked .bi-lock-fill {
  display: inline-block;           /* Para que o transform funcione */
  transition: transform 0.3s ease;
}

.mission-item.state-locked:hover .bi-lock-fill {
  animation: lockWiggle 0.6s ease-in-out;
}

/* Keyframes da animação de “wiggle” */
@keyframes lockWiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-15deg);
  }
  75% {
    transform: rotate(15deg);
  }
}

/* Missions by world wrapper */
.missions-wrapper {
  background: rgba(248, 249, 250, 0.6);
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
  border: 1px solid #e9ecef;
}

/* World title */
.missions-world-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

.aquarium-bg {
  background: linear-gradient(90deg, #00c9ff 0%, #92fe9d 100%);
  box-shadow: 0 0 10px rgba(146, 254, 157, 0.8);    
  color: #00388b;
  font-weight: bold;

  border-radius: 8px 8px 0 0;
  border: none;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Segoe UI', system-ui;
  z-index: 2;
}

.aquarium-bg:hover {
  box-shadow: 0 0 15px rgba(146, 254, 157, 1);
}

.aquarium-bg:focus, 
.aquarium-bg:active {
  font-weight: bold;
  color: #00388b;
  outline: 2px solid #00c9ff;
}

/* Mission modal Yes/No questions - 2 boxes layout */
.mission-question-box {
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mission-question-box:hover {
  border-color: #4FB783;
  box-shadow: 0 2px 8px rgba(79, 183, 131, 0.15);
}

.mission-question-box:has(.form-check-input:checked) {
  border-color: #4FB783;
  background: #f0f9f5;
  box-shadow: 0 2px 8px rgba(79, 183, 131, 0.2);
}

#missionModal .form-label.fw-semibold {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: #333;
  display: block;
}

#missionModal .form-check {
  padding-left: 1.75rem;
  margin-bottom: 0;
}

#missionModal .form-check-input {
  margin-top: 0.25rem;
  cursor: pointer;
  width: 1.1em;
  height: 1.1em;
}

#missionModal .form-check-label {
  cursor: pointer;
  font-size: 0.9rem;
  user-select: none;
  padding-left: 0.5rem;
}

#missionModal .form-check-input:checked {
  background-color: #4FB783;
  border-color: #4FB783;
}

#missionModal .form-check-input:focus {
  border-color: #4FB783;
  box-shadow: 0 0 0 0.25rem rgba(79, 183, 131, 0.25);
}

/* Ensure second question is always visible */
#missionModal #mdl-felt-good-container {
  display: block !important;
  visibility: visible !important;
}

#missionModal .form-check-input:checked {
  background-color: #4FB783;
  border-color: #4FB783;
}

#missionModal .form-check-input:focus {
  border-color: #4FB783;
  box-shadow: 0 0 0 0.2rem rgba(79, 183, 131, 0.25);
}

#missionModal .form-check-input:checked {
  background-color: #4FB783;
  border-color: #4FB783;
}

#missionModal .form-check-input:focus {
  border-color: #4FB783;
  box-shadow: 0 0 0 0.25rem rgba(79, 183, 131, 0.25);
}

/* Mission modal header improvements */
#missionModal .modal-header {
  padding: 1rem 1.5rem;
}

#missionModal .modal-header .modal-title {
  font-size: 1.25rem;
  font-weight: 600;
}

#missionModal .modal-header small {
  font-size: 0.8rem;
  font-weight: 400;
}

/* Questions container - always visible now */
#missionModal #mdl-felt-good-container {
  display: inline !important;
}

/* Protect SweetAlert2 from conflicts - ensure modal CSS doesn't leak */
.swal2-popup {
  box-sizing: border-box !important;
}

/* Limit SweetAlert2 icon size to prevent it from becoming too large */
.swal2-icon {
  width: 80px !important;
  height: 80px !important;
  max-width: 80px !important;
  max-height: 80px !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

/* Ensure icon content doesn't overflow */
.swal2-icon .swal2-icon-content {
  font-size: 3.75rem !important;
  line-height: 80px !important;
}

/* Warning icon specific */
.swal2-icon.swal2-warning {
  border-color: #f8bb86 !important;
  color: #f8bb86 !important;
}

/* Success icon specific */
.swal2-icon.swal2-success {
  border-color: #a5dc86 !important;
  color: #a5dc86 !important;
}