/* =====================================================
       GIVEAWAY PAGE
    ===================================================== */
    .giveaway-page {
      padding-bottom: 44px;
    }

    .giveaway-page > .contents {
      width: min(100%, 1920px);
      max-width: 100%;
      margin: 0 auto;
      padding: 0;
    }

    .giveaway-page .breadcrumb-home {
      background: transparent;
      border: 0;
      border-radius: 0;
      color: #e2a915;
    }

    .giveaway-page .breadcrumb-home:hover {
      background: transparent;
      border: 0;
      color: #e2a915;
    }

    .giveaway-page .breadcrumb-home svg {
      fill: none;
      stroke: currentColor;
    }

    .giveaway-title-wrap {
      padding: 18px 24px 34px;
      text-align: center;
    }

    .giveaway-title {
      color: #fff;
      font-size: 30px;
      font-weight: 800;
      line-height: 1.1;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .giveaway-section {
      margin-bottom: 44px;
      padding: 0 24px;
    }

    .giveaway-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 416px));
      gap: 14px 24px;
      justify-content: center;
      max-width: 1296px;
      margin: 0 auto;
    }

    .giveaway-empty {
      grid-column: 1 / -1;
      justify-self: center;
      width: min(100%, 520px);
      min-height: 156px;
      padding: 34px 28px;
      border: 1px solid rgba(104, 120, 148, 0.18);
      border-radius: 10px;
      background: #101722;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    }

    .giveaway-empty-title {
      max-width: 420px;
      color: #fff;
      font-size: 20px;
      font-weight: 700;
      line-height: 1.25;
      letter-spacing: 0;
    }

    .giveaway-empty-text {
      max-width: 420px;
      margin-top: 8px;
      color: #687894;
      font-size: 14px;
      font-weight: 500;
      line-height: 1.45;
      letter-spacing: 0;
    }

    .gw-card {
      background: transparent;
      border: 0;
      border-radius: 0;
      display: flex;
      flex-direction: column;
      gap: 12px;
      overflow: visible;
      min-width: 0;
    }

    .gw-card-body {
      min-height: 310px;
      background: #101722;
      border: 0;
      border-radius: 10px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
      grid-template-rows: minmax(0, 1fr) 58px;
      column-gap: 20px;
      row-gap: 22px;
      padding: 30px;
      position: relative;
    }

    .gw-info {
      display: flex;
      flex-direction: column;
      min-width: 0;
      padding-right: 0;
    }

    .gw-title {
      color: #fff;
      font-size: 25px;
      font-weight: 500;
      line-height: 1.05;
      letter-spacing: 0;
    }

    .gw-subtitle {
      display: -webkit-box;
      overflow: hidden;
      max-width: 190px;
      color: #687894;
      font-size: 14px;
      font-weight: 500;
      line-height: 1.35;
      letter-spacing: 0.03em;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }

    .gw-title + .gw-subtitle {
      margin-top: 8px;
    }

    .gw-subtitle + .gw-subtitle {
      margin-top: 2px;
    }

    .gw-pax-row {
      display: flex;
      align-items: flex-end;
      margin-top: 26px;
    }

    .gw-pax-left {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0 7px;
      min-width: 0;
    }

    .gw-pax-label {
      order: -1;
      width: 100%;
      margin-bottom: 8px;
      color: #687894;
      font-size: 12px;
      font-weight: 500;
      line-height: 1.2;
    }

    .gw-pax-icon {
      display: inline-flex;
      order: 0;
      width: 15px;
      height: 15px;
      color: #fff;
    }

    .gw-pax-icon svg {
      width: 15px;
      height: 15px;
      color: currentColor;
      fill: none;
      opacity: 1;
      stroke: currentColor;
    }

    .gw-pax-num {
      order: 1;
      color: #fff;
      font-size: 14px;
      font-weight: 500;
      line-height: 1;
    }

    .gw-pax-max {
      display: none;
    }

    .gw-timer {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      margin-top: 8px;
    }

    .gw-tcell {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      min-width: 0;
    }

    .gw-tnum {
      min-width: 56px;
      height: 36px;
      padding: 0 8px;
      border-radius: 6px;
      background: #212a39;
      color: #fff;
      font-size: 17px;
      font-weight: 500;
      line-height: 36px;
      text-align: center;
      letter-spacing: 0;
    }

    .gw-tlabel {
      color: #687894;
      font-size: 12px;
      font-weight: 500;
      line-height: 1.15;
    }

    .gw-tsep {
      display: none;
    }

    .gw-active {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 24px;
      margin-top: 10px;
      border-radius: 0 0 8px 8px;
      background: #151d29;
    }

    .gw-active-bar {
      display: none;
    }

    .gw-active-text {
      color: #687894;
      font-size: 12px;
      font-weight: 500;
      line-height: 1;
    }

    .gw-prize {
      display: flex;
      flex-direction: column;
      align-items: center;
      min-width: 0;
      width: auto;
    }

    .gw-minmax {
      display: flex;
      justify-content: space-between;
      width: 100%;
      margin-bottom: 10px;
      gap: 14px;
    }

    .gw-mm-item {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      color: #687894;
      font-size: 12px;
      font-weight: 500;
      line-height: 1;
      white-space: nowrap;
    }

    .gw-mm-item img {
      width: 11px;
      height: 11px;
      object-fit: contain;
      opacity: 0.8;
    }

    .gw-gun-area {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 190px;
      max-width: 100%;
      height: 126px;
      overflow: visible;
      border-radius: 0;
    }

    .gw-gun-bg {
      position: absolute;
      inset: 0;
      background-image: url('../../img/bg_img_4.svg');
      background-position: center;
      background-size: contain;
      background-repeat: no-repeat;
      opacity: 0.82;
    }

    .gw-gun-bg.purple {
      background-image: url('../../img/bg_img.svg');
    }

    .gw-gun-bg.red {
      background-image: url('../../img/bg_img_1.svg');
    }

    .gw-gun-bg.blue {
      background-image: url('../../img/bg_img_2.svg');
    }

    .gw-gun-bg.yellow {
      background-image: url('../../img/bg_img_3.svg');
    }

    .gw-gun-bg.gray,
    .gw-gun-bg.green {
      background-image: url('../../img/bg_img_4.svg');
    }

    .gw-gun-img {
      position: relative;
      z-index: 1;
      width: 190px;
      max-width: 118%;
      height: 96px;
      object-fit: contain;
      filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.52));
      transform: translateX(-3px);
    }

    .gw-gun-info {
      margin-top: 1px;
      text-align: center;
    }

    .gw-gun-name {
      color: #c9d2e0;
      font-size: 12px;
      font-weight: 500;
      line-height: 1.1;
    }

    .gw-gun-sub {
      margin-top: 2px;
      color: #fff;
      font-size: 15px;
      font-weight: 700;
      line-height: 1.1;
    }

    .gw-gun-price {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      margin-top: 5px;
      color: #6bf28c;
      font-size: 13px;
      font-weight: 600;
      line-height: 1;
    }

    .gw-gun-price img {
      width: 12px;
      height: 12px;
      object-fit: contain;
    }

    .gw-btn-wrap {
      grid-column: 1 / -1;
      position: relative;
      padding: 0;
    }

    .gw-join-btn {
      height: 58px;
      width: 100%;
      padding: 0 18px;
      border: 0;
      border-radius: 8px;
      background: linear-gradient(180deg, #ffe371 0%, #f0a000 100%);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
      color: #fff;
      cursor: pointer;
      font-size: 16px;
      font-weight: 800;
      line-height: 1;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    }

    .gw-join-btn:hover {
      box-shadow: 0 10px 24px rgba(240, 160, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
      filter: brightness(1.03);
      transform: translateY(-1px);
    }

    .gw-card.unavailable .gw-active {
      background: #151d29;
    }

    .gw-card.unavailable .gw-active-text {
      color: #687894;
    }

    .gw-join-btn:disabled {
      background: #202939;
      box-shadow: none;
      color: #687894;
      cursor: not-allowed;
      filter: none;
      transform: none;
    }

    .gw-join-btn:disabled:hover {
      box-shadow: none;
      filter: none;
      transform: none;
    }

    .gw-status {
      margin-top: 8px;
      color: #687894;
      font-size: 12px;
      line-height: 1.35;
      text-align: center;
    }

    .gw-plist {
      min-height: 327px;
      padding: 30px;
      border: 0;
      border-radius: 10px;
      background: #101722;
    }

    .gw-plist-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 25px;
      cursor: default;
      user-select: none;
    }

    .gw-plist-title {
      color: #fff;
      font-size: 22px;
      font-weight: 800;
      line-height: 1;
    }

    .gw-plist-right {
      display: flex;
      align-items: center;
      gap: 0;
    }

    .gw-plist-top {
      color: #687894;
      font-size: 13px;
      font-weight: 500;
      line-height: 1;
    }

    .gw-plist-chevron {
      display: none;
    }

    .gw-plist-body {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .gw-prow {
      display: flex;
      align-items: center;
      min-height: 50px;
      gap: 10px;
      padding: 0 14px;
      border-radius: 8px;
      background: #0e151f;
    }

    .gw-prow.muted {
      justify-content: center;
    }

    .gw-prank {
      flex: 0 0 18px;
      color: #fff;
      font-size: 13px;
      font-weight: 500;
      line-height: 1;
      text-align: left;
    }

    .gw-pavatar {
      flex: 0 0 24px;
      width: 24px;
      height: 24px;
      overflow: hidden;
      border: 0;
      border-radius: 50%;
      background: #1d2635;
    }

    .gw-pavatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .gw-pname {
      flex: 1 1 auto;
      min-width: 0;
      overflow: hidden;
      color: #687894;
      font-size: 13px;
      font-weight: 500;
      line-height: 1;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .gw-pscore {
      display: flex;
      align-items: center;
      flex: 0 0 auto;
      gap: 4px;
      color: #6bf28c;
      font-size: 12px;
      font-weight: 500;
      line-height: 1;
    }

    .gw-pscore img {
      width: 17px;
      height: 17px;
      object-fit: contain;
    }

/* =====================================================
       JOIN ANIMATION
    ===================================================== */
    @keyframes joinPulse {
      0%   { transform: scale(1); }
      30%  { transform: scale(0.96); }
      60%  { transform: scale(1.03); }
      100% { transform: scale(1); }
    }

    @keyframes joinGlow {
      0%   { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
      40%  { box-shadow: 0 0 28px 10px rgba(255, 215, 0, 0.30); }
      100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
    }

    @keyframes joinSpark {
      0%   { opacity: 1; transform: translate(0, 0) scale(1); }
      100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(0.2); }
    }

    @keyframes joinBtnSuccess {
      0%   { background: linear-gradient(180deg, #ffe371 0%, #f0a000 100%); }
      100% { background: linear-gradient(135deg, #22c55e, #16a34a); }
    }

    @keyframes checkAppear {
      0%   { opacity: 0; transform: scale(0.4) rotate(-20deg); }
      60%  { opacity: 1; transform: scale(1.15) rotate(3deg); }
      100% { opacity: 1; transform: scale(1) rotate(0deg); }
    }

    @keyframes confettiFall {
      0%   { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
      100% { opacity: 0; transform: translate(var(--cx), var(--cy)) rotate(var(--cr)) scale(0.4); }
    }

    .gw-join-btn.joining {
      animation: joinPulse 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    .gw-join-btn.joined {
      animation: joinBtnSuccess 0.35s forwards;
    }

    .gw-card.joined .gw-card-body {
      animation: joinGlow 0.9s ease forwards;
    }

    .join-spark {
      position: fixed;
      z-index: 9999;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      pointer-events: none;
      animation: joinSpark 0.65s ease-out forwards;
    }

    .join-confetti {
      position: fixed;
      z-index: 9999;
      width: 8px;
      height: 8px;
      border-radius: 2px;
      pointer-events: none;
      animation: confettiFall 0.85s ease-out forwards;
    }

    .join-check {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      animation: checkAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    .join-check svg {
      width: 17px;
      height: 17px;
      flex-shrink: 0;
    }

    .join-badge {
      position: absolute;
      top: 12px;
      left: 50%;
      z-index: 10;
      padding: 4px 14px;
      border: 1px solid rgba(34, 197, 94, 0.45);
      border-radius: 20px;
      background: rgba(34, 197, 94, 0.18);
      color: #22c55e;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.3px;
      white-space: nowrap;
      transform: translateX(-50%);
      animation: checkAppear 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

/* =====================================================
       RESPONSIVE
    ===================================================== */
    @media (max-width: 1200px) {
      .giveaway-grid {
        gap: 14px 18px;
      }

      .gw-card-body {
        grid-template-columns: minmax(0, 1fr) minmax(132px, 158px);
        padding: 24px;
      }

      .gw-title {
        font-size: 22px;
      }

      .gw-subtitle {
        font-size: 13px;
      }

      .gw-gun-area {
        width: 158px;
        height: 118px;
      }

      .gw-gun-img {
        width: 158px;
      }

      .gw-tnum {
        min-width: 48px;
      }
    }

    @media (max-width: 1024px) {
      .giveaway-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 856px;
      }
    }

    @media (max-width: 767px) {
      .giveaway-title-wrap {
        padding: 14px 16px 24px;
      }

      .giveaway-title {
        font-size: 24px;
      }

      .giveaway-section {
        padding: 0 12px;
      }

      .giveaway-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
      }

      .giveaway-empty {
        min-height: 142px;
        padding: 28px 22px;
      }

      .giveaway-empty-title {
        font-size: 18px;
      }

      .giveaway-empty-text {
        font-size: 13px;
      }

      .gw-card-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 52px;
        min-height: auto;
        padding: 22px;
      }

      .gw-info,
      .gw-prize,
      .gw-btn-wrap {
        grid-column: 1;
      }

      .gw-prize {
        align-items: center;
      }

      .gw-minmax {
        max-width: 220px;
      }

      .gw-timer {
        flex-wrap: wrap;
      }

      .gw-plist {
        min-height: auto;
        padding: 22px;
      }

      .gw-plist-title {
        font-size: 20px;
      }
    }

/* Figma giveaway main block */
.giveaway-page {
  padding-bottom: 30px;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

.giveaway-title-wrap {
  padding: 12px 24px 20px;
}

.giveaway-title {
  font-size: 18px;
  line-height: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.giveaway-section {
  margin-bottom: 30px;
}

.giveaway-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 336px));
  gap: 12px 16px;
  max-width: 1040px;
}

.gw-card {
  gap: 8px;
}

.gw-card-body {
  min-height: 238px;
  grid-template-columns: minmax(0, 1fr) 130px;
  grid-template-rows: minmax(0, 1fr) 36px;
  column-gap: 12px;
  row-gap: 12px;
  padding: 18px;
  border-radius: 6px;
}

.gw-title {
  font-size: 16px;
  line-height: 19px;
  font-weight: 700;
}

.gw-subtitle {
  max-width: 160px;
  font-size: 9px;
  line-height: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.gw-title + .gw-subtitle {
  margin-top: 5px;
}

.gw-subtitle + .gw-subtitle {
  margin-top: 1px;
}

.gw-pax-row {
  margin-top: 14px;
}

.gw-pax-left {
  gap: 0 5px;
}

.gw-pax-label {
  margin-bottom: 5px;
  font-size: 9px;
  line-height: 11px;
}

.gw-pax-icon,
.gw-pax-icon svg {
  width: 12px;
  height: 12px;
}

.gw-pax-num {
  font-size: 11px;
  line-height: 12px;
  font-weight: 600;
}

.gw-timer {
  gap: 6px;
  margin-top: 7px;
}

.gw-tcell {
  gap: 3px;
}

.gw-tnum {
  min-width: 36px;
  height: 26px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 26px;
  font-weight: 600;
}

.gw-tlabel {
  font-size: 8px;
  line-height: 10px;
}

.gw-active {
  height: 18px;
  margin-top: 6px;
  border-radius: 0 0 5px 5px;
}

.gw-active-text {
  font-size: 8px;
  line-height: 10px;
}

.gw-minmax {
  margin-bottom: 5px;
  gap: 6px;
}

.gw-mm-item {
  gap: 2px;
  font-size: 8px;
}

.gw-mm-item img {
  width: 9px;
  height: 9px;
}

.gw-gun-area {
  width: 130px;
  height: 82px;
}

.gw-gun-bg {
  opacity: 0.72;
}

.gw-gun-img {
  width: 130px;
  height: 70px;
  max-width: 112%;
  transform: none;
}

.gw-gun-name {
  font-size: 8px;
  line-height: 10px;
}

.gw-gun-sub {
  margin-top: 1px;
  font-size: 10px;
  line-height: 12px;
  font-weight: 600;
}

.gw-gun-price {
  gap: 3px;
  margin-top: 3px;
  font-size: 9px;
  line-height: 11px;
  font-weight: 600;
}

.gw-gun-price img {
  width: 10px;
  height: 10px;
}

.gw-join-btn {
  height: 36px;
  padding: 0 12px;
  border-radius: 5px;
  font-family: inherit;
  font-size: 10px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: 0;
}

.gw-status {
  margin-top: 5px;
  font-size: 8px;
  line-height: 11px;
}

.gw-plist {
  min-height: 202px;
  padding: 16px;
  border-radius: 6px;
}

.gw-plist-header {
  margin-bottom: 12px;
}

.gw-plist-title {
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
}

.gw-plist-top {
  font-size: 9px;
  line-height: 11px;
}

.gw-plist-body {
  gap: 6px;
}

.gw-prow {
  min-height: 31px;
  gap: 6px;
  padding: 0 8px;
  border-radius: 5px;
}

.gw-prank {
  flex-basis: 12px;
  font-size: 9px;
}

.gw-pavatar {
  flex-basis: 18px;
  width: 18px;
  height: 18px;
}

.gw-pname,
.gw-pscore {
  font-size: 9px;
  line-height: 11px;
}

.gw-pscore {
  gap: 3px;
}

.gw-pscore img {
  width: 10px;
  height: 10px;
}

.giveaway-empty {
  min-height: 126px;
  padding: 26px 24px;
  border: 0;
  border-radius: 6px;
}

.giveaway-empty-title {
  font-size: 15px;
  line-height: 19px;
  font-weight: 600;
}

.giveaway-empty-text {
  margin-top: 6px;
  font-size: 10px;
  line-height: 15px;
}

@media (max-width: 1024px) {
  .giveaway-grid {
    grid-template-columns: repeat(2, minmax(0, 336px));
    max-width: 688px;
  }
}

@media (max-width: 767px) {
  .giveaway-title {
    font-size: 16px;
    line-height: 20px;
  }

  .giveaway-grid {
    grid-template-columns: minmax(0, 336px);
    max-width: 336px;
  }

  .gw-card-body {
    grid-template-columns: minmax(0, 1fr) 122px;
    grid-template-rows: minmax(0, 1fr) 36px;
    min-height: 230px;
    padding: 16px;
  }

  .gw-info,
  .gw-prize {
    grid-row: 1;
  }

  .gw-info {
    grid-column: 1;
  }

  .gw-prize {
    grid-column: 2;
  }

  .gw-btn-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .gw-plist {
    min-height: 0;
  }
}
