
.blind {
  overflow: hidden;
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #0080f8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  line-height: 1.6;
  color: #374151;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  width: 100%;
}

/* 헤더 스타일 */

.sg-header {
  width: 100%;
  padding: 0.5rem 0;
  display: flex;
  justify-content: center;
}

.sg-header__inner {
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  padding: 0 1rem;
}

.sg-header .sg-logo img {
  display: block;
  width: auto;
  height: 65px;
}

.sg-header .sg-gnb {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  margin-right: -12px;
}

.sg-header .sg-gnb a {
  width: 74px;
  height: 44px;
  position: relative;
  background: transparent no-repeat center center;
  background-size: contain;
}

.sg-header .sg-gnb a::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  right: -3px;
  background-color: #453f33;
}

.sg-header .sg-gnb a.home-button {
  background-image: url(../images/header/home-page.png);
}

.sg-header .sg-gnb a.gnb_login {
  background-image: url(../images/header/login.png);
}

.sg-header .sg-gnb a.gnb_logout {
  background-image: url(../images/header/logout.png);
}

.sg-header .sg-gnb a.gnb_start {
  width: 84px;
  background-image: url(../images/header/game-start.png);
}

.sg-header .sg-gnb a.gnb_start::after {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
}

.btn-warning {
  color: #1a202c;
  background-color: #ffc600;
  border-color: #000000;
}

.btn-warning:hover {
  color: #ffffff;
  background-color: #ee2326;
  border-color: #000000;
}

/* 메인 콘텐츠 스타일 */
#main.bg1 {
  flex-grow: 1;
  background-image: url(../images/background-nocomp1.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#main.bg2 {
  flex-grow: 1;
  background-image: url(../images/background-nocomp2.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.main-title {
  height: 7rem;
  color: #1d4ed8;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
  animation: bounce-slow 4s infinite ease-in-out;
}


.period {
  margin-top: 150px;
  font-size: 1.875rem;
  color: #4b5563;
  font-weight: 500;
}

.period .highlight {
  color: #ffffff;
}

/* 푸터 스타일 */
.sg-footer {
  background-color: #111827;
  color: #d1d5db;
  padding: 1.5rem 1rem;
  text-align: center;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  box-shadow: inset 0 2px 4px 0 rgba(58, 58, 58, 0.06);
  margin-top: auto;
}

.sg-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.nav__item {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__item:hover {
  color: #9ca3af;
}

.sg-footer__inner .footer__nav {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  gap: 0 24px;
}

.sg-footer__inner .footer__nav .nav__item {
  display: block;
  height: 16px;
  background: transparent no-repeat center center;
  background-size: contain;
}

.sg-footer__inner .footer__nav .neowiz {
  width: 86px;
  background-image: url(../images/footer/neowiz.png);
}

.sg-footer__inner .footer__nav .neowiz-sports {
  width: 84px;
  background-image: url(../images/footer/neowiz-sports.png);
}

.sg-footer__inner .footer__nav .copyright {
  width: 274px;
  height: 16px;
  background-image: url(../images/footer/copyright.png);
}

.sg-footer__inner .footer__nav .mail {
  width: 61px;
  justify-self: flex-end;
  margin-left: auto;
  background-image: url(../images/footer/email.png);
}


.tooltip-container {
  position: relative;
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
}

.info-icon {
  opacity: 0;
  width: 50px;
  height: 60px;
  position: absolute;
  top: -88px;
  left: 155px;
  cursor: pointer;
  font-weight: bold;
  color: white;
  font-size: 1.2rem;
}

.tooltip-content {
  visibility: hidden;
  width: 650px;
  background-color: #ee2326;
  color: #ffffff;
  text-align: center;
  border-radius: 126px;
  border: 2px solid #ffffff;
  padding: 10px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -325px;
  margin-bottom: 100px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.tooltip-container:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
}

/* 모달 (팝업) 스타일 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: #002143;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.75);
  max-width: 650px;
  width: 90%;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  border: 5px solid white;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 4rem;
  cursor: pointer;
  color: #ffffff;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #757575;
}

.modal-title {
  font-size: 2.875rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.modal-body {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.75;
}

.modal-body ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.modal-body ul li {
  margin-bottom: 0.25rem;
}

.modal-body .text-blue {
  color: #ffbf00;
  font-weight: 600;
}

.event-section {
  padding: 2rem;
  margin-top: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 800px;
}

.event-section .section-title {
  height: 2.5rem;
  color: #1e40af;
  margin-bottom: 1.5rem;
}

.sticker-display-area {
  position: relative;
  width: 300px;
  height: 200px;
  margin-bottom: 1.5rem;
}

.sticker-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity 0.5s ease;
  will-change: opacity;
}

.sticker-unopened {
  background-image: url('../images/sticker-unopened.png');
  opacity: 1;
  z-index: 3;
}

.sticker-peeling-anim {
  background-image: url('../images/sticker-peeling-anim.gif');
  opacity: 0;
  z-index: 2;
}

.sticker-revealed-player {
  background-color: #ffffff00;
  text-align: center;
  margin-top: 10px;
  margin-left: 10px;
  width: 92%;
  height: 92%;
  opacity: 0;
  z-index: 1;
  overflow: hidden;
}

.sticker-display-area.is-peeling .sticker-unopened {
  opacity: 0;
}

.sticker-display-area.is-peeling .sticker-peeling-anim {
  opacity: 1;
}

.sticker-display-area.is-revealed .sticker-unopened,
.sticker-display-area.is-revealed .sticker-peeling-anim {
  opacity: 0;
}

.sticker-display-area.is-revealed .sticker-revealed-player {
  opacity: 1;
}

@keyframes sparkle {
  0% {
    transform: translateX(-120%) skewX(-30deg);
  }

  100% {
    transform: translateX(120%) skewX(-30deg);
  }
}

.sticker-revealed-player.sparkle-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.8) 50%,
      rgba(255, 255, 255, 0) 100%);
  animation: sparkle 0.8s ease-in-out;
}

.sticker-counts {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 2rem;
  font-weight: 500;
}

.sticker-counts .current {
  color: #ffc400;
}

.sticker-counts .total {
  color: #ff0000;
}

.peel-button-container {
  position: relative;
  width: 105px;
  height: 85px;
}

.btn-peel-state {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  background-color: transparent;
  padding: 0;
  cursor: pointer;
  font-size: 0;
}

.btn-peel-state.active {
  background-image: url('../images/btn-peel.png');
}

.btn-peel-state.disabled {
  background-image: url('../images/btn-no-sticker.png');
}

.btn-peel-state.complete {
  background-image: url('../images/btn-no-sticker.png');
}

.team-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  width: 100%;
}

.btn-team {
  width: 64px;
  height: 66px;
  font-size: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  padding: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  /* --- ADDED START --- */
  position: relative;
  /* --- ADDED END --- */
}

.btn-team[data-team="LOTTE"] {
  background-image: url('../images/team_logo/lotte.png');
}

.btn-team[data-team="KIA"] {
  background-image: url('../images/team_logo/kia.png');
}

.btn-team[data-team="SAMSUNG"] {
  background-image: url('../images/team_logo/samsung.png');
}

.btn-team[data-team="LG"] {
  background-image: url('../images/team_logo/lg.png');
}

.btn-team[data-team="DOOSAN"] {
  background-image: url('../images/team_logo/doosan.png');
}

.btn-team[data-team="HANWHA"] {
  background-image: url('../images/team_logo/hanwha.png');
}

.btn-team[data-team="SSG"] {
  background-image: url('../images/team_logo/ssg.png');
}

.btn-team[data-team="KIWOOM"] {
  background-image: url('../images/team_logo/kiwoom.png');
}

.btn-team[data-team="NC"] {
  background-image: url('../images/team_logo/nc.png');
}

.btn-team[data-team="KT"] {
  background-image: url('../images/team_logo/kt.png');
}

.btn-team:hover {
  transform: scale(1.2);
}

.btn-team[data-team="LOTTE"].active {
  transform: scale(1.5);
  background-image: url('../images/team_logo/lotte_active.png');
}

.btn-team[data-team="KIA"].active {
  transform: scale(1.5);
  background-image: url('../images/team_logo/kia_active.png');
}

.btn-team[data-team="SAMSUNG"].active {
  transform: scale(1.5);
  background-image: url('../images/team_logo/samsung_active.png');
}

.btn-team[data-team="LG"].active {
  transform: scale(1.5);
  background-image: url('../images/team_logo/lg_active.png');
}

.btn-team[data-team="DOOSAN"].active {
  transform: scale(1.5);
  background-image: url('../images/team_logo/doosan_active.png');
}

.btn-team[data-team="HANWHA"].active {
  transform: scale(1.5);
  background-image: url('../images/team_logo/hanwha_active.png');
}

.btn-team[data-team="SSG"].active {
  transform: scale(1.5);
  background-image: url('../images/team_logo/ssg_active.png');
}

.btn-team[data-team="KIWOOM"].active {
  transform: scale(1.5);
  background-image: url('../images/team_logo/kiwoom_active.png');
}

.btn-team[data-team="NC"].active {
  transform: scale(1.5);
  background-image: url('../images/team_logo/nc_active.png');
}

.btn-team[data-team="KT"].active {
  transform: scale(1.5);
  background-image: url('../images/team_logo/kt_active.png');
}

.player-grid-container {
  width: 100%;
}

.player-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  width: 100%;
  margin-top: 1.5rem;
  justify-items: center;

  border-radius: 0.75rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.player-grid.active {
  display: grid;
}

.player-card {
  background-color: #ffffff2d;
  border: 1px solid #ffffff2d;
  border-radius: 0.75rem;
  padding: 0.3rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 95px;
  height: 175px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.player-card:hover {
  transform: scale(1.15);
}

.player-img-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 0.5rem;
}

.player-img-default,
.player-img-acquired {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.player-img-acquired {
  opacity: 0;
}

.player-card.acquired .player-img-default {
  opacity: 0;
}

.player-card.acquired .player-img-acquired {
  filter: drop-shadow(3px 3px 4px rgba(0, 0, 0, 0.5));
  opacity: 1;
}

.player-name {
  padding-top: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffbb00;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  margin-bottom: 0.25rem;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
}

.player-count {
  font-size: 0.8rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.player-count .count-value {
  font-weight: 700;
  color: #ff6f00;
}

.new-badge {
  position: absolute;
  top: -5px;
  left: -5px;
  background-color: #ff4757;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 10;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.is-new>.new-badge {
  opacity: 1;
  transform: scale(1);
}

.collection-summary {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.collection-summary .count {
  color: #ff0000;
  font-weight: 800;
}

.reward-description {
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.5;
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 700px;
  background-color: #ffffff2d;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
  margin-top: 1.5rem;
}

.reward-item-card {
  background-color: #ffffff2d;
  border: 1px solid #ffffff2d;
  border-radius: 0.75rem;
  padding: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 150px;
  position: relative;
}

.reward-tier-label {
  position: absolute;
  top: 5px;
  left: 5px;
  background-color: #6366f1;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.reward-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  transition: filter 0.3s ease, opacity 0.3s ease;
  filter: drop-shadow(3px 3px 4px rgba(0, 0, 0, 0.5));
}

.reward-img.active {
  width: 80px;
    height: 80px;
    object-fit: contain;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    transition: filter 0.3s ease, opacity 0.3s ease;
    filter: drop-shadow(3px 3px 4px rgba(0, 0, 0, 0.5));
}
.reward-img.disabled {
  filter: grayscale(100%);
  opacity: 0.5;
}
.reward-img.complete {
  filter: grayscale(100%);
    opacity: 0.5;
}

.reward-claim-button {
  background-color: #10b981;
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
  border: none;
  cursor: pointer;
  width: calc(100% - 1rem);
  margin-bottom: 0.5rem;
}

.reward-claim-button.active:hover(:active) {
  background-color: #10b981;
  filter: drop-shadow(3px 3px 4px rgba(0, 0, 0, 0.5));
}

.reward-claim-button.active {
  background-color: #10b981;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
    width: calc(100% - 1rem);
    margin-bottom: 0.5rem;
}

.reward-claim-button.disabled {
  background-color: #6b7280;
    color: #a0a0a0;
    cursor: not-allowed;
}

.reward-claim-button.complete {
  background-color: #6b7280;
    color: #a0a0a0;
    cursor: not-allowed;
}

.reward-claimed::after {
  content: '완료';
}

@media (min-width: 768px) {
  .main-title {
    font-size: 4.5rem;
  }
}

@media (max-width: 768px) {
  .team-nav {
    gap: 0.5rem;
  }

  .btn-team {
    width: 56px;
    height: 56px;
  }

  .btn-team[data-team="KIA"] {
    background-position: -56px 0;
  }

  .btn-team[data-team="삼성"] {
    background-position: -112px 0;
  }
}

@media (max-width: 600px) {
  .reward-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-title {
    font-size: 3rem;
  }

  .period {
    font-size: 1.5rem;
  }

  .event-section .section-title {
    font-size: 2rem;
  }

  .btn-warning {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .footer__nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .sg-header__inner {
    flex-direction: column;
    gap: 1rem;
  }

  .sg-gnb {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .sg-gnb a {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  .btn-team {
    width: 48px;
    height: 48px;
  }

  .btn-team[data-team="KIA"] {
    background-position: -48px 0;
  }

  .btn-team[data-team="삼성"] {
    background-position: -96px 0;
  }
}
