@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

@font-face {
  font-family: 'Minecraft';
  src: url('assets/mojangles.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #201821;
  background-image: url('assets/background.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-attachment: fixed;
  background-size: cover;
  font-family: 'Montserrat', sans-serif;
  color: #FFFFFF;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
}

.home-nav-btn {
  position: fixed;
  top: 31px;
  right: 50px;
  width: 70px;
  height: 70px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  text-decoration: none;
  border: none;
  outline: none;
  box-shadow: none;
  filter: none;
}

@media (max-width: 1870px) {
  .home-nav-btn {
    right: 40px;
  }
}

@media (max-width: 880px) {
  .home-nav-btn {
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }
}

.home-nav-icon {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  box-shadow: none;
  filter: none;
}

.home-nav-icon.icon-hover {
  display: none;
}

.home-nav-btn:hover .home-nav-icon.icon-default {
  display: none;
}

.home-nav-btn:hover .home-nav-icon.icon-hover {
  display: block;
}

.main-card {
  width: 100%;
  max-width: 1372px;
  zoom: 0.84;
  background: #18181B;
  min-height: 100vh;
  margin: 0 auto;
  padding: 70px 71px 85px 71px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.logo-container {
  margin-bottom: 32px;
  text-align: center;
}

.event-logo {
  max-width: 482px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4));
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.header-action-btn {
  height: 51px;
  box-sizing: border-box;
  border-radius: 60px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 19.65px;
  line-height: 24px;
  text-align: center;
  letter-spacing: 0.03em;
  transition: background-color 0.2s ease, color 0.2s ease;
  user-select: none;
}

.btn-effects {
  width: 273px;
  border: 1px solid #FA90C3;
  color: #FA90C3;
}

.btn-effects:hover {
  background: #FA90C3;
  color: #18181B;
}

.btn-stream {
  width: 273px;
  border: 1px solid #8DC4FC;
  color: #8DC4FC;
}

.btn-stream:hover {
  background: #8DC4FC;
  color: #18181B;
}

.section-title {
  font-family: 'Minecraft', monospace;
  font-size: 38px;
  line-height: 41px;
  text-align: center;
  letter-spacing: 0.03em;
  color: #D9F2FF;
  
  margin-top: 50px;
  margin-bottom: 10px;
  user-select: none;
}

.section-title.first {
  margin-top: 0;
}

.section-title.effects-title {
  margin-top: 0;
  margin-bottom: 35px;
}

.section-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  text-align: center;
  color: #FFFFFF;
  width: 820px;
  max-width: 100%;
  margin: 0 auto 28px auto;
  letter-spacing: normal;
}

.section-subtitle.subtitle-1 {
  letter-spacing: 0.02em;
}

.section-subtitle.subtitle-4 {
  letter-spacing: normal;
}

.section-subtitle a {
  color: #FFD2E8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.section-subtitle a:hover {
  opacity: 0.8;
}

.teams-grid {
  width: 100%;
  max-width: 1230px;
  display: grid;
  grid-template-columns: repeat(4, 288px);
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto 0 auto;
}

.team-card {
  width: 288px;
  height: 373px;
  background: transparent;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 28.5px 28.5px 25px 28.5px;
  position: relative;
  border-width: 1.5px;
  border-style: solid;
  border-color: var(--team-border);
  transition: border-color 0.2s ease;
}

.team-card:hover,
.team-card.has-selected,
.team-card.team-selected {
  border-color: var(--team-color);
}

.players-grid-2x2 {
  width: 228px;
  display: grid;
  grid-template-columns: repeat(2, 94px);
  column-gap: 40px;
  row-gap: 22px;
}

.player-slot {
  width: 94px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.player-avatar-box {
  width: 94px;
  height: 94px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.player-avatar-img {
  width: 94px;
  height: 94px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  opacity: 0.25; 
  transition: opacity 0.2s ease;
  display: block;
  border-radius: 0;
}

.player-slot:hover .player-avatar-img {
  opacity: 0.6;
}

.player-slot.selected .player-avatar-img {
  opacity: 1;
}

.player-name-label {
  margin-top: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 10.12px;
  line-height: 12px;
  text-align: center;
  letter-spacing: 0.1em;
  color: #FFFFFF;
  text-transform: uppercase;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-all-btn {
  width: 228px;
  height: 43px;
  box-sizing: border-box;
  border: 1px solid var(--team-color);
  border-radius: 60px;
  background: transparent;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 19.65px;
  line-height: 24px;
  text-align: center;
  letter-spacing: 0.03em;
  color: var(--team-color);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-all-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.team-all-btn.active {
  background: var(--team-color);
  color: #18181B;
  border-color: var(--team-color);
}

.team-all-btn.active:hover {
  filter: brightness(1.06);
}

.message-container {
  width: 820px;
  max-width: 100%;
  margin: 0 auto;
}

.message-box {
  width: 820px;
  max-width: 100%;
  height: 136px; 
  background: #FFFFFF;
  border: 1px solid #60606C;
  border-radius: 5px;
  position: relative;
  padding: 16px 20px 14px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.message-textarea {
  width: 100%;
  height: 72px; 
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  color: #18181B;
}

.message-textarea::placeholder {
  color: #979797;
}

.message-counter {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  color: #979797;
  user-select: none;
  align-self: flex-start;
}

.message-counter.warning {
  color: #EF4444;
  font-weight: 700;
}

.switches-row {
  width: 595px;
  max-width: 100%;
  margin: 25px auto 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.switch-group {
  display: flex;
  align-items: center;
  gap: 14px;
  user-select: none;
}

.switch-label {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-icon-badge {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  user-select: none;
}

.info-icon-svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.info-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #282828;
  color: #FFFFFF;
  padding: 9px 13px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 17px;
  white-space: normal;
  width: 250px;
  text-align: center;
  border: 1px solid #4E4E4E;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: opacity 0.2s, visibility 0.2s;
  pointer-events: none;
  z-index: 50;
}

.info-icon-badge:hover .info-tooltip,
.info-icon-badge:focus .info-tooltip {
  visibility: visible;
  opacity: 1;
}

.toggle-switch {
  width: 58px;
  height: 28px;
  border-radius: 60px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.toggle-knob {
  width: 22px;
  height: 22px;
  background: #FFFFFF;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 5px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.switch-gamba {
  background: #838383;
}
.switch-gamba.active {
  background: #1ADF7C;
}
.switch-gamba.active .toggle-knob {
  transform: translateX(26px);
}

.switch-effect {
  background: #C42929;
}

.switch-effect.active {
  background: #1ADF7C;
}
.switch-effect.active .toggle-knob {
  transform: translateX(26px);
}

.output-code-container {
  width: 820px;
  max-width: 100%;
  margin: 0 auto;
}

.output-code-box {
  width: 820px;
  max-width: 100%;
  height: 62px;
  background: #282828;
  border: 1px solid #4E4E4E;
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
  gap: 20px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.output-code-box:hover {
  border-color: #6a6a6a;
}

.output-code-box.copied-flash {
  border-color: #1ADF7C;
  box-shadow: 0 0 15px rgba(26, 223, 124, 0.4);
}

.code-line-num {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  color: #7B7B7B;
  user-select: none;
  min-width: 15px;
  pointer-events: none;
}

.code-text-content {
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  color: #FFFFFF;
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  pointer-events: none;
}

.code-text-content::-webkit-scrollbar {
  display: none;
}

.copy-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: transform 0.2s ease;
  position: relative;
  pointer-events: none; 
}

.output-code-box:hover .copy-btn {
  transform: scale(1.12);
}

.copy-btn svg {
  width: 22px;
  height: 25px;
  fill: none;
  stroke: currentColor;
}

.proceed-btn {
  width: 550px;
  max-width: 100%;
  height: 82px;
  margin: 10px auto 0 auto;
  background: #FFEAA4;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: 0.03em;
  color: #18181B;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.proceed-btn:hover {
  background: #FFF8E0;
}

.proceed-btn:active {
  background: #FFF8E0;
  transform: scale(0.99);
}

.toast-notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #18181B;
  color: #1ADF7C;
  border: 1.5px solid #1ADF7C;
  border-radius: 30px;
  padding: 12px 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.7);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.3s;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 1150px) {
  .main-card {
    zoom: 0.85;
  }
}

@media (max-width: 880px) {
  .main-card {
    zoom: 1;
    padding: 40px 20px 60px 20px;
  }
  .teams-grid {
    grid-template-columns: repeat(2, 288px);
    justify-content: center;
    gap: 20px;
  }
  .message-box, .output-code-box, .switches-row {
    width: 100%;
  }
  .switches-row {
    flex-direction: column;
    gap: 15px;
  }
  .section-title {
    font-size: 28px;
    line-height: 32px;
  }
  .section-subtitle {
    width: 100%;
  }
  .proceed-btn {
    font-size: 20px;
    height: 60px;
    width: 100%;
  }
}

@media (max-width: 650px) {
  .teams-grid {
    grid-template-columns: 288px;
    justify-content: center;
  }
  .header-actions {
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }
}

.effects-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 45px;
  flex-wrap: wrap;
  width: 100%;
}

.effects-tab-btn {
  height: 48px;
  width: 180px;
  border-radius: 60px;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  user-select: none;
  box-sizing: border-box;
  letter-spacing: 0.03em;
  text-align: center;
}

.effects-tab-btn.tab-all {
  border: 1px solid #8DC4FC;
  color: #8DC4FC;
}
.effects-tab-btn.tab-all:hover,
.effects-tab-btn.tab-all.active {
  background: #8DC4FC;
  color: #18181B;
}

.effects-tab-btn.tab-positive {
  border: 1px solid #1ADF7C;
  color: #1ADF7C;
}
.effects-tab-btn.tab-positive:hover,
.effects-tab-btn.tab-positive.active {
  background: #1ADF7C;
  color: #18181B;
}

.effects-tab-btn.tab-negative {
  border: 1px solid #F16262;
  color: #F16262;
}
.effects-tab-btn.tab-negative:hover,
.effects-tab-btn.tab-negative.active {
  background: #F16262;
  color: #18181B;
}

.effects-tab-btn.tab-gamba {
  border: 1px solid #FFCF5D;
  color: #FFCF5D;
}
.effects-tab-btn.tab-gamba:hover,
.effects-tab-btn.tab-gamba.active {
  background: #FFCF5D;
  color: #18181B;
}

.main-card.effects-page {
  padding-bottom: 40px;
}

.header-actions.bottom-actions {
  margin-top: 55px;
  margin-bottom: 0;
  gap: 24px;
}

.header-action-btn.bottom-action-btn {
  height: 66px;
  width: 330px;
  font-size: 23px;
  line-height: 28px;
}

.effects-container {
  width: 100%;
  max-width: 1230px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 45px;
}

.category-section {
  width: 100%;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 28px;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease;
}

.category-header:hover {
  opacity: 0.88;
}

.category-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.category-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-collapse-hint {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #8C8C96;
  transition: color 0.2s;
}

.category-header:hover .category-collapse-hint {
  color: #FFFFFF;
}

.category-toggle-icon {
  width: 24px;
  height: 24px;
  color: var(--cat-color, #FFFFFF);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-section.collapsed .category-toggle-icon {
  transform: rotate(-90deg);
}

.category-section.collapsed .category-header {
  margin-bottom: 0;
}

.category-section.collapsed {
  margin-bottom: 20px;
}

.category-section.collapsed .category-tiers {
  display: none;
}

.category-title {
  font-family: 'Minecraft', monospace;
  font-size: 32px;
  line-height: 36px;
  letter-spacing: 0.03em;
}

.category-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 30px;
  text-transform: uppercase;
}

.tier-block {
  margin-bottom: 35px;
  width: 100%;
}

.tier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.tier-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tier-title {
  font-family: 'Minecraft', monospace;
  font-size: 26px;
  color: #D9F2FF;
  letter-spacing: 0.03em;
  line-height: 30px;
}

.tier-badge-pill {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  border: 1px solid;
  background: rgba(0, 0, 0, 0.25);
  text-transform: uppercase;
}

.tier-price-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  color: #FFEAA4;
  background: rgba(255, 234, 164, 0.12);
  border: 1px solid rgba(255, 234, 164, 0.35);
  border-radius: 20px;
  padding: 4px 14px;
  letter-spacing: 0.02em;
}

.effects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.effect-card {
  background: #202024;
  border: 1.5px solid;
  border-radius: 8px;
  padding: 22px 22px 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 165px;
  box-sizing: border-box;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.effect-card:hover {
  border-color: var(--cat-hover-border, #FFFFFF) !important;
  background-color: #26262C;
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.effect-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.effect-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.effect-duration-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #A4A4AF;
  background: rgba(255, 255, 255, 0.07);
  padding: 3px 9px;
  border-radius: 4px;
}

.effect-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 23px;
  color: #FFFFFF;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.effect-description {
  font-family: 'Montserrat', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 21px;
  color: #B9B9C4;
  flex: 1;
}

@media (max-width: 1050px) {
  .effects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .effects-grid {
    grid-template-columns: 1fr;
  }
  .category-title {
    font-size: 24px;
    line-height: 28px;
  }
  .tier-title {
    font-size: 20px;
    line-height: 24px;
  }
  .effects-tab-btn {
    font-size: 14px;
    height: 42px;
    padding: 0 16px;
  }
  .category-collapse-hint {
    display: none;
  }
  .header-actions.bottom-actions {
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }
  .header-action-btn.bottom-action-btn {
    width: 100%;
    max-width: 330px;
    height: 56px;
    font-size: 20px;
  }
}
