@font-face {
  font-family: 'Burbank Small Bold';
  font-weight: 700;
  font-style: normal;
  src: url('/landing/fonts/Burbank-Small.woff') format('woff');
}

@font-face {
  font-family: 'Burbank Small';
  font-weight: 500;
  font-style: normal;
  src: url('/landing/fonts/BurbankSmall-Medium.woff') format('woff');
}

@font-face {
  font-family: 'Burbank Small Light';
  font-weight: 300;
  font-style: normal;
  src: url('/landing/fonts/BurbankSmall-Light.woff') format('woff');
}

/* Club Penguin Relationship Window (Pingüinovio & Mejor Amigo) */
#wand-rel-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  background: rgba(0, 15, 35, 0.75);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Burbank Small Bold', 'Arial Black', Arial, Helvetica, sans-serif;
  user-select: none;
  animation: wrFadeIn 0.25s ease-out;
  box-sizing: border-box;
}

@keyframes wrFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

#wand-rel-modal * {
  box-sizing: border-box;
}

.wr-window {
  width: min(480px, calc(100% - 16px));
  height: min(610px, calc(100% - 12px));
  max-height: calc(100% - 10px);
  max-width: calc(100% - 12px);
  background: linear-gradient(180deg, #0288D1 0%, #01579B 100%);
  border: 4px solid #B3E5FC;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Header */
.wr-header {
  padding: 16px 20px 8px 20px;
  text-align: center;
  position: relative;
}

.wr-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 26px;
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

.wr-title-icon {
  font-size: 26px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}

.wr-subtitle {
  font-size: 13px;
  color: #E1F5FE;
  margin-top: 4px;
  font-weight: normal;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.wr-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(180deg, #0288D1 0%, #01579B 100%);
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  transition: transform 0.1s, background 0.1s;
}

.wr-close-btn:hover {
  transform: scale(1.1);
  background: linear-gradient(180deg, #E53935 0%, #B71C1C 100%);
}

/* Active Partner Banner */
.wr-active-banner {
  margin: 0 20px 8px 20px;
  background: rgba(0, 30, 60, 0.6);
  border: 2px solid #81D4FA;
  border-radius: 14px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}

.wr-active-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.wr-btn-breakup {
  background: linear-gradient(180deg, #EF5350 0%, #D32F2F 100%);
  border: 1.5px solid #FFCDD2;
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 11px;
  padding: 5px 10px;
  cursor: pointer;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: transform 0.1s;
}

.wr-btn-breakup:hover {
  transform: scale(1.05);
  background: linear-gradient(180deg, #F44336 0%, #C62828 100%);
}

/* Tabs */
.wr-tabs {
  display: flex;
  gap: 8px;
  padding: 0 20px 10px 20px;
  justify-content: center;
}

.wr-tab {
  flex: 1;
  max-width: 135px;
  padding: 8px 0;
  text-align: center;
  background: linear-gradient(180deg, #0277BD 0%, #01579B 100%);
  border: 2px solid #4FC3F7;
  border-radius: 14px;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  transition: all 0.15s;
}

.wr-tab:hover {
  background: linear-gradient(180deg, #039BE5 0%, #0277BD 100%);
  border-color: #B3E5FC;
}

.wr-tab.active {
  background: linear-gradient(180deg, #FFFFFF 0%, #E1F5FE 100%);
  border-color: #0288D1;
  color: #01579B;
  text-shadow: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.15), 0 2px 5px rgba(0,0,0,0.2);
}

/* Mode Switcher (Pingüinovio vs Mejor Amigo) */
.wr-mode-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px 10px 20px;
}

.wr-mode-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 30, 60, 0.45);
  border: 2px solid #81D4FA;
  color: #E1F5FE;
  transition: all 0.15s;
}

.wr-mode-btn.active {
  background: #FFFFFF;
  color: #01579B;
  border-color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Content Area */
.wr-content {
  flex: 1;
  padding: 0 20px;
  overflow-y: auto;
  position: relative;
  min-height: 0;
}

/* Friends Grid (2 cols x 3 rows) */
.wr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
  justify-items: center;
}

.wr-friend-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 170px;
}

.wr-avatar-box {
  width: 120px;
  height: 120px;
  background: #E1F5FE;
  border: 3px solid #FFFFFF;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wr-avatar-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wr-avatar-penguin {
  position: absolute;
  width: 100px;
  height: 100px;
  bottom: 0;
}

.wr-action-btn {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(180deg, #0288D1 0%, #01579B 100%);
  border: 2px solid #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.4);
  transition: transform 0.15s, background 0.15s;
}

.wr-action-btn:hover {
  transform: scale(1.15);
  background: linear-gradient(180deg, #E91E63 0%, #C2185B 100%);
}

.wr-friend-name {
  margin-top: 6px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  text-align: center;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wr-friend-status {
  font-size: 11px;
  margin-top: 1px;
}

.wr-status-online {
  color: #64FFDA;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.wr-status-offline {
  color: #B0BEC5;
}

/* Requests List (Recibidas y Enviadas) */
.wr-request-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 30, 60, 0.5);
  border: 2px solid #81D4FA;
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.wr-req-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wr-req-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  background: #0288D1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  position: relative;
}

.wr-req-details {
  display: flex;
  flex-direction: column;
}

.wr-req-name {
  color: #FFFFFF;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.wr-req-type {
  font-size: 11px;
  color: #B3E5FC;
  margin-top: 2px;
}

.wr-req-actions {
  display: flex;
  gap: 6px;
}

.wr-btn-accept {
  background: linear-gradient(180deg, #4CAF50 0%, #2E7D32 100%);
  border: 1.5px solid #A5D6A7;
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 12px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: transform 0.1s;
}

.wr-btn-accept:hover {
  transform: scale(1.05);
}

.wr-btn-reject, .wr-btn-cancel {
  background: linear-gradient(180deg, #E53935 0%, #C62828 100%);
  border: 1.5px solid #FFCDD2;
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 12px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: transform 0.1s;
}

.wr-btn-reject:hover, .wr-btn-cancel:hover {
  transform: scale(1.05);
}

.wr-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 240px;
  color: #E1F5FE;
  font-size: 14px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  gap: 8px;
}

.wr-empty-icon {
  font-size: 38px;
  opacity: 0.8;
}

/* Pagination & Footer */
.wr-footer {
  padding: 10px 20px 14px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.wr-pagination {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wr-page-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, #0277BD 0%, #01579B 100%);
  border: 2px solid #81D4FA;
  color: #FFFFFF;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
}

.wr-page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.wr-page-btn:not(:disabled):hover {
  background: #0288D1;
  border-color: #FFFFFF;
}

.wr-page-text {
  color: #FFFFFF;
  font-size: 13px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.wr-note-text {
  font-size: 11px;
  color: #B3E5FC;
  text-align: center;
  font-weight: normal;
}

.wr-avatar-composite {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wr-req-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wr-req-badge {
  position: absolute;
  bottom: 0px;
  right: 0px;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  padding: 1px;
  line-height: 1;
}

/* ============================================================
   RESPONSIVE DESIGN PARA CELULARES Y DISPOSITIVOS MÓVILES
   ============================================================ */

/* Optimización para celulares en horizontal / paisaje (iPhone, Android) */
@media (max-height: 600px) {
  .wr-window {
    width: min(500px, calc(100% - 10px)) !important;
    height: calc(100% - 8px) !important;
    max-height: calc(100% - 8px) !important;
    border-radius: 16px !important;
    border-width: 3px !important;
  }

  .wr-header {
    padding: 5px 12px 2px 12px !important;
  }

  .wr-title {
    font-size: 16px !important;
    gap: 6px !important;
  }

  .wr-title-icon {
    font-size: 16px !important;
  }

  .wr-subtitle {
    font-size: 9.5px !important;
    margin-top: 1px !important;
  }

  .wr-close-btn {
    width: 22px !important;
    height: 22px !important;
    font-size: 12px !important;
    top: 5px !important;
    right: 8px !important;
    border-width: 1.5px !important;
  }

  .wr-active-banner {
    margin: 0 10px 3px 10px !important;
    padding: 3px 8px !important;
    border-radius: 8px !important;
    border-width: 1.5px !important;
  }

  .wr-active-info {
    font-size: 10.5px !important;
    gap: 5px !important;
  }

  .wr-btn-breakup {
    padding: 2px 7px !important;
    font-size: 9.5px !important;
    border-radius: 6px !important;
  }

  .wr-tabs {
    padding: 0 10px 3px 10px !important;
    gap: 5px !important;
  }

  .wr-tab {
    padding: 3px 0 !important;
    font-size: 10.5px !important;
    border-radius: 10px !important;
    border-width: 1.5px !important;
    max-width: 105px !important;
  }

  .wr-mode-switch {
    padding: 0 10px 3px 10px !important;
    gap: 8px !important;
  }

  .wr-mode-btn {
    padding: 2px 9px !important;
    font-size: 10px !important;
    border-radius: 12px !important;
    gap: 4px !important;
  }

  .wr-content {
    padding: 0 8px !important;
    min-height: 0 !important;
  }

  .wr-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px 6px !important;
    justify-items: center !important;
  }

  .wr-friend-card {
    width: 100% !important;
    max-width: 95px !important;
  }

  .wr-avatar-box {
    width: 58px !important;
    height: 58px !important;
    border-radius: 12px !important;
    border-width: 2px !important;
  }

  .wr-avatar-penguin {
    width: 52px !important;
    height: 52px !important;
  }

  .wr-action-btn {
    width: 20px !important;
    height: 20px !important;
    font-size: 10px !important;
    bottom: 2px !important;
    right: 2px !important;
    border-width: 1.5px !important;
  }

  .wr-friend-name {
    font-size: 10px !important;
    margin-top: 2px !important;
    max-width: 85px !important;
  }

  .wr-friend-status {
    font-size: 8.5px !important;
    margin-top: 0px !important;
  }

  .wr-request-item {
    padding: 4px 8px !important;
    margin-bottom: 4px !important;
    border-radius: 8px !important;
    border-width: 1.5px !important;
  }

  .wr-req-avatar {
    width: 28px !important;
    height: 28px !important;
    font-size: 14px !important;
  }

  .wr-req-name {
    font-size: 11px !important;
  }

  .wr-req-type {
    font-size: 9.5px !important;
    margin-top: 1px !important;
  }

  .wr-btn-accept, .wr-btn-reject, .wr-btn-cancel {
    padding: 3px 7px !important;
    font-size: 10px !important;
    border-radius: 7px !important;
  }

  .wr-empty-state {
    height: 100px !important;
    font-size: 11px !important;
    gap: 4px !important;
  }

  .wr-empty-icon {
    font-size: 24px !important;
  }

  .wr-footer {
    padding: 3px 8px 4px 8px !important;
    gap: 2px !important;
  }

  .wr-pagination {
    gap: 10px !important;
  }

  .wr-page-btn {
    width: 20px !important;
    height: 20px !important;
    font-size: 10px !important;
    border-width: 1.5px !important;
  }

  .wr-page-text {
    font-size: 10.5px !important;
  }

  .wr-note-text {
    font-size: 8.5px !important;
  }
}

/* Optimización para celulares en vertical / portrait */
@media (max-width: 600px) and (min-height: 601px) {
  .wr-window {
    width: calc(100% - 10px) !important;
    height: min(560px, calc(100% - 12px)) !important;
    max-height: calc(100% - 12px) !important;
    border-radius: 18px !important;
  }

  .wr-header {
    padding: 10px 14px 4px 14px !important;
  }

  .wr-title {
    font-size: 20px !important;
  }

  .wr-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px 14px !important;
  }

  .wr-friend-card {
    width: 120px !important;
  }

  .wr-avatar-box {
    width: 86px !important;
    height: 86px !important;
  }

  .wr-avatar-penguin {
    width: 76px !important;
    height: 76px !important;
  }
}
