@charset 'UTF-8';

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeue-Light.woff2') format('woff2'),
        url('../fonts/HelveticaNeue-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeue-UltraLight.woff2') format('woff2'),
        url('../fonts/HelveticaNeue-UltraLight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeue-Medium.woff2') format('woff2'),
        url('../fonts/HelveticaNeue-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeue-Heavy.woff2') format('woff2'),
        url('../fonts/HelveticaNeue-Heavy.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeue-Black.woff2') format('woff2'),
        url('../fonts/HelveticaNeue-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeue-Bold.woff2') format('woff2'),
        url('../fonts/HelveticaNeue-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'Bacilus Grotesque';
    src: url('../fonts/BacilusGrotesque-Regular.woff2') format('woff2'),
        url('../fonts/BacilusGrotesque-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bacilus Grotesque';
    src: url('../fonts/BacilusGrotesque-Bold.woff2') format('woff2'),
        url('../fonts/BacilusGrotesque-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bacilus Grotesque';
    src: url('../fonts/BacilusGrotesque-Black.woff2') format('woff2'),
        url('../fonts/BacilusGrotesque-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bacilus Grotesque';
    src: url('../fonts/BacilusGrotesque-Medium.woff2') format('woff2'),
        url('../fonts/BacilusGrotesque-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}


:root {
  --bg: #ffffff;
  --ink: #1d3e52;
  --muted: #6d8ea2;
  --card: #ffffff;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  --radius: 18px;

  --primary: #2f6f8e;
  --success: #79c07d;
  --danger: #e38a8a;
  --soft: #f4f7f9;

  --app-max-width: 30rem;
  --content-gap: 0.875rem;
  --screen-padding-x: 1rem;
  --screen-padding-y: 1.125rem;
}

/* ==================================================
   Base · Mobile first
================================================== */
* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  font-family: 'Bacilus Grotesque';
  font-size: 500;
}

body {
  margin: 0;
  /* font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif; */
  font-family: 'Bacilus Grotesque';
  font-size: 500;
  color: var(--ink);
  /* background: linear-gradient(#eaf7fc, var(--bg)); */
}

img {
  max-width: 100%;
}

.app {
  min-height: 94dvh;
  display: flex;
  justify-content: center;
}

.screen {
  position: relative;
  width: 100%;
  max-width: var(--app-max-width);
  min-height: 100dvh;
  margin-inline: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

.hidden {
  display: none !important;
}

/* ==================================================
   Fondos y overlays
================================================== */
.bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  filter: saturate(1.02);
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem 1rem 3rem;
}

/* ==================================================
   Botones y enlaces
================================================== */
.btn {
  min-width: min(100%, 15rem);
  padding: 0.875rem 1rem;
  border: 0;
  border-radius: 1rem;
  cursor: pointer;
  background: var(--card);
  color: var(--primary);
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  box-shadow: var(--shadow);
}

.btn.primary {
  background: var(--card);
  color: var(--primary);
}

.btn.success {
  background: var(--success);
  color: white;
}

.btn.danger {
  background: var(--danger);
  color: white;
}

.btn:active,
.help-close:active {
  transform: translateY(1px);
}

.link {
  margin-top: 0.875rem;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: clamp(1rem, 3vw, 1.125rem);
  text-decoration: underline;
  cursor: pointer;
}

/* ==================================================
   Onboarding y nombre
================================================== */
.onboard {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1rem 1rem 1.5rem;
}

.onboard-img {
  width: 100%;
  max-width: 100%;
  border-radius: 1.375rem;
  box-shadow: var(--shadow);
}

.onboard-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.375rem;
}

.dots {
  display: flex;
  gap: 0.625rem;
  margin-top: 0.5rem;
}

.dots-spacer {
  min-height: 0.75rem;
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: #b7d6e6;
}

.dot.active {
  background: var(--primary);
}

#playerName {
  margin-top: 1rem;
}

#btnGoGame {
  margin-top: 2rem;
  margin-bottom: 0.375rem;
}

.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 1rem;
  border-radius: 1.375rem;
  background: rgba(255, 255, 255, 0.86);
}

.panel.wide {
  min-width: 80%;
  max-width: 100%;
  min-height: min(70dvh, 42rem);
  height: auto;
  display: flex;
  flex-direction: column;
}

#btnBackToPlay{
  margin-top: auto;
  align-self: center;
}

.panel h2 {
  margin: 0.25rem 0 0.375rem;
  letter-spacing: 0.06em;
  text-align: center;
}

input {
  width: 40dvh;
  padding: 0.875rem 1rem;
  border: 1px solid #d6e6ef;
  border-radius: 0.875rem;
  outline: none;
  background: #f6fbfe;
  font-size: 1rem;
}

input:focus {
  border-color: #9bc6da;
}

/* ==================================================
   Layout principal del juego
================================================== */
.game {
  display: flex;
  flex-direction: column;
  gap: var(--content-gap);
  min-height: 100dvh;
  padding: var(--screen-padding-y) var(--screen-padding-x) 1.5rem;
  background-color: white;
}

.topbar {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.625rem;
}

.iconbtn {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: white;
  color: var(--primary);
  font-size: 1.125rem;
  box-shadow: var(--shadow);
}

.scorebox {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
  padding: 0.75rem 0.875rem;
  border-radius: 0.875rem;
  background: white;
  box-shadow: var(--shadow);
}

.score-title {
  padding-bottom: 0.25rem;
  border-bottom: 2px solid #e6eef3;
  font-size: 0.875rem;
  font-weight: 600;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.scorebox span {
  color: var(--muted);
  font-size: 0.875rem;
}

.scorebox strong {
  font-size: 1rem;
}

/* ==================================================
   Estado / sequía / embalse
================================================== */
.status {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  align-items: stretch;
  gap: 0.875rem;
  background-color: white;
}

.status-left,
.status-right {
  min-width: 0;
}

.status-left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 1.375rem;
  background: white;
}

.status-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: auto;
  margin-right: 0;
  border-radius: 1.375rem;
}

.status-left img {
  display: block;
  width: min(100%, 9rem);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 1.125rem;
  object-fit: cover;
  object-position: center;
}

.pill {
  display: flex;
  overflow: hidden;
  border: 1px solid #e3eef4;
  border-radius: 0.875rem;
}

.pill span {
  flex: 1;
  padding: 0.625rem 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.tag {
  color: white !important;
}

.tag.green {
  background: #a9d8a9;
}

.tag.orange {
  background: #f3c066;
}

.tag.red {
  background: #e58a7e;
}

.reservoir {
  position: relative;
  overflow: hidden;
  min-height: 11rem;
  border-radius: 1.125rem;
  margin-right: -20%;
  /* background:
    url("assets/Clasiicacion.png") center / cover no-repeat,
    linear-gradient(#bfe3f1, #83bcd5); */
}

/* @keyframes mianimacion {
  0% {
    left: -5%;
  }

  50% {
    left: 5%;
  }

  100% {
    left: -5%;
  }
}

.reservoir-water {
  position: absolute;
  width: 120%;
  animation: mianimacion 4s infinite;
  right: 0;
  bottom: 0;
  left: -5%;
  transform: translateX(-5%);
  height: 90%;
  background: rgba(0, 120, 160, 0.18);
  clip-path: polygon(
    0% 8%,
    2% 7.8%,
    4% 7.4%,
    6% 6.9%,
    8% 6.4%,
    10% 6.1%,
    12% 6%,
    14% 6.2%,
    16% 6.7%,
    18% 7.3%,
    20% 8%,
    22% 8.8%,
    24% 9.5%,
    26% 9.9%,
    28% 10.1%,
    30% 10.2%,
    32% 9.8%,
    34% 9.2%,
    36% 8.5%,
    38% 7.7%,
    40% 7%,
    42% 6.4%,
    44% 6.1%,
    46% 6%,
    48% 6.2%,
    50% 6.8%,
    52% 7.6%,
    54% 8.5%,
    56% 9.3%,
    58% 9.9%,
    60% 10.2%,
    62% 10%,
    64% 9.4%,
    66% 8.6%,
    68% 7.8%,
    70% 7.1%,
    72% 6.5%,
    74% 6.1%,
    76% 6%,
    78% 6.3%,
    80% 6.9%,
    82% 7.7%,
    84% 8.6%,
    86% 9.4%,
    88% 9.9%,
    90% 10.1%,
    92% 9.7%,
    94% 9%,
    96% 8.2%,
    98% 7.5%,
    100% 7%,
    100% 100%,
    0% 100%
  );
} */

/* AGUA BASE */
.reservoir-water{
  position: absolute;
  left: -25%;
  bottom: 0;
  width: 150%;
  height: 90%;
  background: linear-gradient(
    to bottom,
    rgba(120, 220, 255, 0.22) 0%,
    rgba(0, 120, 160, 0.28) 30%,
    rgba(0, 95, 145, 0.4) 100%
  );
  animation: waveShape 6s ease-in-out infinite;
  clip-path: polygon(
    0% 8%, 8% 10%, 16% 7%, 24% 11%, 32% 8%,
    40% 12%, 48% 9%, 56% 11%, 64% 7%, 72% 10%,
    80% 8%, 88% 11%, 96% 9%, 100% 10%,
    100% 100%, 0% 100%
  );
}

/* SEGUNDA CAPA DE AGUA */
.reservoir-water::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(170, 240, 255, 0.12) 0%,
    rgba(70, 180, 220, 0.16) 35%,
    rgba(0, 110, 155, 0.2) 100%
  );
  animation: waveShape2 9s ease-in-out infinite reverse;
  clip-path: polygon(
    0% 10%, 10% 7%, 20% 11%, 30% 8%, 40% 12%,
    50% 9%, 60% 12%, 70% 8%, 80% 11%, 90% 7%, 100% 10%,
    100% 100%, 0% 100%
  );
}

/* ESPUMA */
.reservoir-water::after{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 18%;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.85) 0%,
    rgba(255,255,255,0.45) 35%,
    rgba(255,255,255,0) 100%
  );
  opacity: 0.7;
  /* opacity: 0.45; */
  filter: blur(2px);
  animation: foamDrift 5s ease-in-out infinite;
  clip-path: polygon(
    0% 65%, 8% 40%, 16% 70%, 24% 35%, 32% 68%,
    40% 42%, 48% 72%, 56% 38%, 64% 66%, 72% 45%,
    80% 70%, 88% 36%, 96% 62%, 100% 50%,
    100% 100%, 0% 100%
  );
}

/* REFLEJO DE LUZ */
.reservoir::before{
  content: "";
  position: absolute;
  top: 8%;
  left: -20%;
  width: 55%;
  height: 120%;
  background: linear-gradient(
    115deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.1) 35%,
    rgba(255,255,255,0.28) 50%,
    rgba(255,255,255,0.08) 65%,
    rgba(255,255,255,0) 100%
  );
  transform: rotate(8deg);
  pointer-events: none;
  z-index: 2;
  animation: lightSweep 7s ease-in-out infinite;
}

/* TEXTO POR ENCIMA */
.reservoir-label{
  position: absolute;
  bottom: 0.875rem;
  left: 0.875rem;
  color: white;
  z-index: 3;
}

@keyframes waveShape{
  0%{
    clip-path: polygon(
      0% 8%, 8% 10%, 16% 7%, 24% 11%, 32% 8%,
      40% 12%, 48% 9%, 56% 11%, 64% 7%, 72% 10%,
      80% 8%, 88% 11%, 96% 9%, 100% 10%,
      100% 100%, 0% 100%
    );
  }
  50%{
    clip-path: polygon(
      0% 11%, 8% 7%, 16% 10%, 24% 8%, 32% 12%,
      40% 9%, 48% 11%, 56% 7%, 64% 10%, 72% 8%,
      80% 12%, 88% 9%, 96% 11%, 100% 8%,
      100% 100%, 0% 100%
    );
  }
  100%{
    clip-path: polygon(
      0% 8%, 8% 10%, 16% 7%, 24% 11%, 32% 8%,
      40% 12%, 48% 9%, 56% 11%, 64% 7%, 72% 10%,
      80% 8%, 88% 11%, 96% 9%, 100% 10%,
      100% 100%, 0% 100%
    );
  }
}

@keyframes waveShape2{
  0%{
    clip-path: polygon(
      0% 10%, 10% 7%, 20% 11%, 30% 8%, 40% 12%,
      50% 9%, 60% 12%, 70% 8%, 80% 11%, 90% 7%, 100% 10%,
      100% 100%, 0% 100%
    );
  }
  50%{
    clip-path: polygon(
      0% 7%, 10% 10%, 20% 8%, 30% 11%, 40% 7%,
      50% 12%, 60% 8%, 70% 10%, 80% 7%, 90% 11%, 100% 8%,
      100% 100%, 0% 100%
    );
  }
  100%{
    clip-path: polygon(
      0% 10%, 10% 7%, 20% 11%, 30% 8%, 40% 12%,
      50% 9%, 60% 12%, 70% 8%, 80% 11%, 90% 7%, 100% 10%,
      100% 100%, 0% 100%
    );
  }
}

@keyframes foamDrift{
  0%{
    transform: translateX(0);
    opacity: 0.55;
  }
  50%{
    transform: translateX(2%);
    opacity: 0.85;
  }
  100%{
    transform: translateX(0);
    opacity: 0.55;
  }
}

@keyframes lightSweep{
  0%{
    transform: translateX(0) rotate(8deg);
    opacity: 0.35;
  }
  50%{
    transform: translateX(12%) rotate(8deg);
    opacity: 0.6;
  }
  100%{
    transform: translateX(0) rotate(8deg);
    opacity: 0.35;
  }
}

.reservoir-label {
  position: absolute;
  bottom: 0.875rem;
  left: 0.875rem;
  color: white;
}

.reservoir-label span {
  display: block;
  font-size: clamp(1rem, 4vw, 1.125rem);
  opacity: 0.95;
}

.reservoir-label strong {
  font-size: clamp(2.25rem, 10vw, 3.5rem);
  line-height: 1;
}

/* ==================================================
   Métricas
================================================== */
.meters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
}

.meter {
  padding: 0.75rem;
  border-radius: 1rem;
  background: white;
  box-shadow: var(--shadow);
}

.meter-title {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.375rem;
}

.meter-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  object-fit: contain;
}

.meter-dot {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
  border-radius: 50%;
}

.meter-name {
  flex: 1;
  color: #3f6e8d;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.1;
}

.meter strong {
  color: #3f6e8d;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

.bar {
  height: 0.5rem;
  margin-top: 0.375rem;
  margin-left: 2.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: #dbeaf2;
}

.bar > div {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #9c9bc8 0%, #f0b458 50%, #a8d5b2 100%);
}

.meter-river .meter-dot {
  background: #8fd0c3;
}

.meter-quality .meter-dot {
  background: #7aa86a;
}

.meter-city .meter-dot {
  background: #9bb0df;
}

.meter-agri .meter-dot {
  background: #e7aa32;
}

/* ==================================================
   Carta del turno
================================================== */
.card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 100%;
  min-height: 15rem;
  padding: 1rem 1rem 0.875rem;
  border: 3px solid #f1d4a4;
  border-radius: 1.375rem;
  background: white;
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}
#cardDesc {
  font-family: 'Helvetica Neue';
  font-weight: 500;
}

#cardTip{
  font-family: 'Helvetica Neue';
  font-weight: 300;
}

.card h3 {
  margin: 0;
  font-size: clamp(1.55rem, 6vw, 2.125rem);
  line-height: 1.1;
  font-weight: 500;
}

.card p {
  margin: 0;
  color: #2a556d;
  font-size: clamp(1rem, 3.8vw, 1.125rem);
  line-height: 1.35;
}

.didyou {
  margin-top: 0.75rem;
  color: #2a556d;
}

.didyou strong {
  color: #f0a83b;
}

/* ==================================================
   Acciones
================================================== */
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  margin-top: 0.25rem;
}

.actions .btn {
  min-width: 0;
  width: 100%;
  padding: 1rem 0.875rem;
  border-radius: 1.125rem;
  font-size: clamp(1.1rem, 5vw, 1.625rem);
}

/* ==================================================
   Modal final
================================================== */
.modal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.18);
}

.modal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("https://confederacion.germinalbrandonlove.com/wp-content/themes/confederacion.theme/assets/Fondo1.png");
  background-position: center;
  background-size: cover;
  opacity: 0.35;
}

.game.blur {
  filter: blur(6px);
  transition: filter 0.25s ease;
}

.modal-card {
  z-index: 1;
  width: 100%;
  max-width: 26.25rem;
  padding: 1rem 1rem 1.125rem;
  border-radius: 1.375rem;
  background: white;
  text-align: center;
  box-shadow: var(--shadow);
}

.modal-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-weight: 700;
}

.rank-img {
  display: block;
  width: min(72%, 16.25rem);
  margin: 0.625rem auto 0.375rem;
}

.modal-card h2 {
  margin: 0.625rem 0 0.375rem;
  letter-spacing: 0.06em;
}

.modal-card h3 {
  margin: 0.625rem 0 0.375rem;
  font-size: clamp(1.5rem, 6vw, 1.75rem);
}

.modal-card p {
  margin: 0 0 0.75rem;
  color: #2a556d;
  font-size: clamp(1rem, 3.8vw, 1.125rem);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.75rem;
}

/* ==================================================
   Ranking
================================================== */
.table {
  width: 100%;
  max-height: min(60dvh, 32rem);
  overflow-y: auto;
}

.row {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) 4.5rem;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.625rem;
  padding: 0.625rem 0.5rem;
  border-bottom: 1px solid #e7f1f6;
}

.row > span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.row.head {
  border-bottom: 2px solid #d8eaf3;
  color: var(--muted);
  font-weight: 900;
}

/* ==================================================
   Menú de ayuda
================================================== */
.help-menu {
  position: absolute;
  top: 3.25rem;
  left: 0;
  z-index: 50;
  width: min(21.25rem, calc(100vw - 2rem));
  padding: 0.875rem 0.875rem 0.75rem;
  border: 1px solid #e3eef4;
  border-radius: 1.125rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.help-menu::before {
  content: "";
  position: absolute;
  top: -0.5rem;
  left: 0.875rem;
  width: 0.875rem;
  height: 0.875rem;
  border-top: 1px solid #e3eef4;
  border-left: 1px solid #e3eef4;
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.96);
}

.help-menu h4 {
  margin: 0 0 0.375rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.help-menu p {
  margin: 0 0 0.5rem;
  color: #2a556d;
  font-size: 0.875rem;
  line-height: 1.35;
}

.help-menu ul {
  margin: 0 0 0.625rem 1.125rem;
  padding: 0;
  color: #2a556d;
  font-size: 0.875rem;
  line-height: 1.35;
}

.help-close {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 0;
  border-radius: 0.875rem;
  cursor: pointer;
  background: #f4f7f9;
  color: var(--primary);
  font-weight: 700;
}

/* ==================================================
   Mejoras para móviles algo más anchos
================================================== */
@media (min-width: 30rem) {
  :root {
    --content-gap: 1rem;
    --screen-padding-x: 1.125rem;
    --screen-padding-y: 1.25rem;
  }

  .status {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  

  .status-left {
    border-radius: 0 1.375rem 1.375rem 0;
  }

  .status-right {
    margin-right: -1rem;
    border-radius: 1.375rem;
  }

  .meters {
    grid-template-columns: 1fr 1fr;
  }

  .row {
    grid-template-columns: 4rem minmax(0, 1fr) 6rem;
  }
}

/* ==================================================
   Tablet / pantallas medianas
================================================== */
@media (min-width: 48rem) {
  :root {
    --app-max-width: 44rem;
    --content-gap: 1rem;
    --screen-padding-x: 1.25rem;
    --screen-padding-y: 1.25rem;
  }

  .screen {
    max-width: var(--app-max-width);
  }

  .game {
    padding-bottom: 1.75rem;
  }

  .topbar {
    align-items: center;
  }

  .scorebox {
    min-width: 13rem;
  }

  .status-left img {
    width: min(100%, 10rem);
  }

  .reservoir {
    min-height: 12rem;
  }

  .card {
    min-height: 16rem;
  }

  .actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-actions {
    flex-direction: column;
    justify-content: center;
  }
}

/* ==================================================
   Desktop
================================================== */
@media (min-width: 64rem) {
  :root {
    --app-max-width: 90rem;
    --content-gap: 1.25rem;
    --screen-padding-x: 2.5rem;
    --screen-padding-y: 1.75rem;
  }

  .app {
    align-items: stretch;
    background-color: #1d3e5200;
  }

  .bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-position: center;
  background-size: 85% auto;
  background-repeat: no-repeat;
  background-color: white;
  filter: saturate(1.02);
  }

  #onboardBg{
  position: absolute;
  inset: 0 10dvh 0 10dvh;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 90dvh;
  padding: 2rem 1rem 3rem;
  border-radius: 2rem;
  }

  .panel.wide {
  min-width: 30%;
  max-width: 100%;
  min-height: min(70dvh, 42rem);
  height: auto;
  display: flex;
  flex-direction: column;
}

  .overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem 1rem 3rem;
  }

  .screen {
    max-width: 100%;
    /* margin-top: 5dvh; */
    min-height: 100dvh;
    /* border-radius: 1.5rem; */
    box-shadow: none;
    background: white;
  }

  .game {
    display: grid;
    grid-template-columns: minmax(30rem, 1fr) minmax(38rem, 1.2fr);
    grid-template-areas:
      "topbar topbar"
      "status status"
      "meters card"
      "meters actions"
      ". resume";
    gap: 1.25rem 2rem;
    align-content: start;
    min-height: 100dvh;
    padding: 2rem 2.5rem 1.5rem;
    background: #ffffff;
  }

  /* .topbar {
    grid-area: topbar;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
  } */

  .topbar{
    display:flex;
    align-items:start;
    justify-content:flex-start;
    gap:2rem;
  }

  .iconbtn {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }

  .scorebox {
    min-width: 16.75rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
  }

  .score-title {
    border-bottom: 0;
    padding-bottom: 0;
    font-size: 0.95rem;
  }

  .score-row {
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .scorebox strong {
    font-size: 1.9rem;
    line-height: 1;
  }

  .status {
    grid-area: status;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0;
    background: transparent;
  }

  .status-left {
    order: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    justify-self: end;
  }

  .status-left{
  position:absolute;
  right:2.5rem;
  top:2rem;
  flex-direction:row;
  align-items:center;
  gap:1rem;
  background:transparent;
  padding:0;
}

  .status-left img {
    width: 4.75rem;
    height: 4.75rem;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
  }

  .pill {
    min-width: 23.5rem;
    border: 0;
    border-radius: 0.75rem;
    background: white;
    box-shadow: var(--shadow);
  }

  .pill span {
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
  }

  .status-right {
    order: 1;
    margin: 0;
    border-radius: 0;
    background: transparent;
  }

  .reservoir {
    min-height: 13rem;
    border-radius: 0;
    background-size: cover;
    background-position: center;
    box-shadow: none;
  }

  .reservoir-label {
    left: 0;
    right: 0;
    bottom: 1.5rem;
    text-align: left;
    margin-left: 10dvh;
    text-shadow: 0 0 1px black;
  }

  .reservoir-label span {
    display: inline-block;
    margin-right: 1rem;
    font-size: 1.05rem;
    vertical-align: baseline;
  }

  .reservoir-label strong {
    font-size: clamp(4rem, 7vw, 6rem);
    line-height: 0.95;
    vertical-align: baseline;
  }

  .meters {
    grid-area: meters;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-self: start;
  }

  .meter {
    padding: 1rem 1.1rem;
    border-radius: 0.75rem;
  }


  .meter-title {
    gap: 0.5rem;
    margin-bottom: 0.55rem;
  }

  .meter-icon {
    width: 4rem;
    height: 4rem;
  }

  .meter-dot {
    width: 0.7rem;
    height: 0.7rem;
  }

  #score {
    font-size: 1.5rem;
  } 
  .meter-name,
  .meter strong {
    font-size: 1.5rem;
  }

  .bar {
    margin-left: 4.5rem;
  }

  .card {
    grid-area: card;
    min-height: 21rem;
    padding: 1.5rem 1.6rem 1.3rem;
    border-width: 0.35rem;
    border-radius: 0.85rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .card-head {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
  }
  
  #cardArea{
    font-weight: 400;
  }


  .card h3 {
    font-size: 2.5rem;
    line-height: 1.05;
    margin-bottom: 1.1rem;
  }

  .card p {
    font-size: 1.3rem;
    line-height: 1.45;
    margin-bottom: 1.1rem;
  }

  .didyou {
    margin-top: 1.25rem;
  }

  .didyou strong {
    color: #f0a83b;
    font-size: 1.6rem;
    font-weight: 600;
}

  .actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: none;
    width: 100%;
    justify-self: stretch;
  }

  .actions .btn {
    padding: 1rem 1rem;
    font-size: 1.75rem;
    border-radius: 0.7rem;
  }

  #btnResume {
    grid-area: resume;
    justify-self: center;
    margin-top: 0;
    font-size: 0.95rem;
  }

  .help-menu {
    width: 22rem;
    top: 3.5rem;
  }

  .table {
    max-height: min(65dvh, 34rem);
  }
}
/* ==================================================
   Desktop grande
================================================== */
@media (min-width: 80rem) {
  :root {
    --app-max-width: 96rem;
  }

  .game {
    grid-template-columns: minmax(32rem, 1fr) minmax(42rem, 1.25fr);
    gap: 1.4rem 2.25rem;
  }

  .reservoir {
    min-height: 14rem;
  }

  .card {
    min-height: 23rem;
  }
}

.welcome-bg {
  /* background-image: url("./assets/Bienvenida.png"); */
  background-image: url("https://confederacion.germinalbrandonlove.com/wp-content/themes/confederacion.theme/assets/Bienvenida.png");
  background-position: center;
  background-size: content;
  background-repeat: no-repeat;
}

@media (min-width: 64rem) {
  .welcome-bg {
    /* background-image: url("./assets/BienvenidaDesktop.jpg"); */
    background-image: url("https://confederacion.germinalbrandonlove.com/wp-content/themes/confederacion.theme/assets/BienvenidaDesktop.png");
    background-color: transparent;
    background-size: cover;
  }
}

.name-bg {
  /* background-image: url("./assets/Nombre Usuario.png"); */
  background-image: url("https://confederacion.germinalbrandonlove.com/wp-content/themes/confederacion.theme/assets/Nombre Usuario.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (min-width: 64rem) {
  .name-bg {
    /* background-image: url("./assets/Nombre Usuario Desktop.png"); */
    background-image: url("https://confederacion.germinalbrandonlove.com/wp-content/themes/confederacion.theme/assets/Nombre Usuario Desktop.png");
    inset: 0 10dvh 0 10dvh;
  }
}

.ranking-bg {
  /* background-image: url("./assets/Clasiicacion.png"); */
  background-image: url("https://confederacion.germinalbrandonlove.com/wp-content/themes/confederacion.theme/assets/Clasiicacion.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (min-width: 64rem) {
  .ranking-bg {
    /* background-image: url("./assets/Clasiicacion Desktop.png"); */
    background-image: url("https://confederacion.germinalbrandonlove.com/wp-content/themes/confederacion.theme/assets/Clasiicacion Desktop.png");
  }
}