@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&display=swap');

:root {
  --bg: #0D0D0D;
  --gold: #FFB400;
  --orange: #FF3D00;
  --matte: #1E1E1E;
  --text: #FFFFFF
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Rajdhani, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x: hidden
}

a {
  color: var(--gold);
  text-decoration: none
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px
}

.center {
  display: flex;
  align-items: center;
  justify-content: center
}

.btn {
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 6px 16px #0008;
  background: linear-gradient(#141414, #0d0d0d) padding-box, linear-gradient(135deg, var(--gold), var(--orange)) border-box;
  text-shadow: 0 0 8px #FFB40040
}

.btn:hover {
  filter: brightness(1.06)
}

.btn:active {
  transform: scale(0.98)
}

.btn.secondary {
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 6px 16px #0008;
  background: linear-gradient(#141414, #0d0d0d) padding-box, linear-gradient(135deg, var(--orange), #FF5820) border-box
}

.card {
  background: var(--matte);
  border-radius: 16px;
  padding: 16px
}

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #0F0F0F;
  color: var(--text)
}

.input:focus {
  outline: none;
  border-color: var(--gold)
}

.nav {
  display: none
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0B0B0B;
  border-top: 1px solid #222;
  display: flex;
  gap: 8px;
  justify-content: space-around;
  padding: 10px 8px
}

.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-align: center;
  gap: 6px
}

.bottom-nav .nav-item .ico {
  width: 24px;
  height: 24px;
  fill: var(--gold)
}

.bottom-nav .nav-item span {
  font-size: 12px;
  font-weight: 700
}

.bottom-nav .nav-item.active .ico {
  fill: var(--orange)
}

.bottom-nav .nav-item.action {
  background: linear-gradient(180deg, #FFB400, #FF3D00);
  color: #000;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  transform: translateY(-16px);
  box-shadow: 0 8px 18px #0008;
  align-items: center
}

.bottom-nav .nav-item.action .ico {
  fill: #000;
  width: 28px;
  height: 28px
}

.logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold)
}

.splash {
  height: 100vh;
  background: linear-gradient(180deg, #190000, #0D0D0D)
}

.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #333;
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 1s linear infinite
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.grid {
  display: grid;
  gap: 16px
}

.grid.cols-2 {
  grid-template-columns: repeat(2, 1fr)
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr)
}

@media(max-width:768px) {
  .grid.cols-3 {
    grid-template-columns: repeat(2, 1fr)
  }

  .grid.cols-2 {
    grid-template-columns: 1fr
  }
}

.banner {
  position: relative;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  background: #111
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.banner .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0008;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer
}

.banner .arrow.left {
  left: 10px
}

.banner .arrow.right {
  right: 10px
}

.banner-tools {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  pointer-events: auto
}

.banner-tools .filter-btn {
  padding: 8px 12px
}

/* hero quick actions single row */
.hero .filter-links {
  grid-template-columns: repeat(3, 1fr)
}

.hero .filter-btn {
  padding: 8px 12px
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 12px 0;
  padding-left: 20px;
  padding-right: 20px
}

.mode {
  position: relative;
  border: 1px solid #333;
  border-radius: 18px;
  overflow: hidden
}

.mode img {
  width: 100%;
  height: 140px;
  object-fit: cover
}

.mode .label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: #000A;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 700
}

.mode.active {
  border-color: var(--orange)
}

.form-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px
}

.role-select,
.country-select,
.district-select {
  margin-top: 8px
}

.err {
  color: #FF5D5D;
  margin-top: 8px
}

.ok {
  color: #4CAF50;
  margin-top: 8px
}

/* profile */
.profile-card {
  background: var(--matte);
  border-radius: 20px;
  padding: 16px;
  position: relative
}

.profile-header {
  display: flex;
  gap: 16px;
  align-items: center;
  background: linear-gradient(180deg, #111, #0D0D0D);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #222;
  position: relative
}

.profile-header.center {
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center
}

.profile-cover {
  min-height: 200px;
  height: auto;
  border-radius: 16px;
  background-position: center;
  background-size: cover;
  position: relative;
  margin-bottom: 10px;
  overflow: visible;
  display: block
}

.profile-cover .overlay {
  position: relative;
  background: rgba(0, 0, 0, 0.55);
  padding: 12px;
  border-radius: 16px;
  width: 100%
}

.profile-cover .profile-header {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 10px
}

.gamer-frame {
  border: 2px solid transparent;
  border-radius: 16px;
  box-shadow: 0 8px 20px #0008;
  background: linear-gradient(#141414, #0d0d0d) padding-box, linear-gradient(135deg, #FFB400, #FF3D00) border-box
}

.name-line.gamer {
  color: #fff;
  text-shadow: 0 0 12px #FFB400, 0 0 18px #FF3D00
}

.chip.gamer {
  background: linear-gradient(180deg, #151515, #0f0f0f);
  border: 1px solid #3a2a00;
  box-shadow: 0 0 10px #FFB40026;
  color: #fff
}

.stat.gamer {
  background: #121212;
  border: 1px solid #333;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 0 12px #FFB40026
}

.stat .ico {
  width: 18px;
  height: 18px;
  fill: #FFB400;
  margin-bottom: 6px
}

.bar {
  height: 8px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  margin-top: 6px;
  overflow: hidden
}

.bar>span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #FFB400, #FF3D00)
}

.avatar-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px #1E1E1E
}

.avatar-ring.big {
  width: 110px;
  height: 110px
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.name-line {
  font-size: 22px;
  font-weight: 700
}

.name-line.center {
  text-align: center
}

.name-line .code {
  color: var(--gold)
}

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px
}

.chip {
  background: #151515;
  border: 1px solid #333;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 9999px;
  font-size: 12px
}

.chip.role {
  border-color: var(--orange)
}

.profile-actions {
  margin-left: auto;
  display: flex;
  gap: 8px
}

.profile-settings-fab {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #FFB400, #FF3D00);
  box-shadow: 0 6px 12px #0007;
  cursor: pointer;
  z-index: 2
}

.profile-settings-fab .ico {
  width: 22px;
  height: 22px;
  fill: #000
}

.profile-settings-fab:active {
  transform: scale(0.96)
}

/* home */
.tourney-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 16px;
  padding: 12px
}

.tourney-card .top {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.tourney-card .name {
  font-weight: 700
}

.tourney-card .mode {
  font-size: 12px;
  color: #bbb
}

.tourney-card .meta {
  margin-top: 6px;
  color: #ccc;
  font-size: 13px
}

.tourney-card .footer {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 6px;
  margin: 6px 0
}

.hero .filter-links {
  flex: 1;
  min-width: 0
}

.hero .right {
  flex: 0 0 auto;
  z-index: 2
}

.hero .actions {
  display: flex;
  gap: 8px
}

.btn.link {
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(#141414, #0d0d0d) padding-box, linear-gradient(135deg, #777, #999) border-box;
  box-shadow: 0 6px 16px #0008
}

.hero .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px
}

.bell {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #151515;
  border: 1px solid #333;
  cursor: pointer
}

.bell .ico {
  width: 22px;
  height: 22px;
  fill: var(--gold)
}

.bell .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--orange);
  color: #000;
  border-radius: 12px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px
}

.stat {
  background: #111;
  border: 1px solid #222;
  border-radius: 14px;
  padding: 12px;
  text-align: center
}

.stat .label {
  font-size: 12px;
  color: #bbb
}

.stat .value {
  font-size: 20px;
  font-weight: 700;
  margin-top: 4px
}

@media(max-width:768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:480px) {
  .stats-grid {
    grid-template-columns: 1fr
  }

  .profile-card {
    padding: 12px;
    overflow: visible
  }

  .profile-header {
    padding: 12px
  }

  .profile-cover {
    min-height: 180px;
    height: auto;
    overflow: visible
  }

  .avatar-ring.big {
    width: 88px;
    height: 88px
  }

  .name-line {
    font-size: 18px
  }

  .profile-settings-fab {
    right: 8px;
    top: 8px;
    width: 36px;
    height: 36px
  }

  .profile-settings-fab .ico {
    width: 20px;
    height: 20px
  }
}

.podium {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin: 12px 0
}

.podium-item {
  background: #121212;
  border: 1px solid #222;
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 8px 18px #0008
}

.podium-item .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px #1E1E1E;
  margin: 0 auto 8px
}

.podium-item .name {
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px
}

.podium-item .role {
  font-size: 12px;
  color: #bbb
}

.rank-one {
  border: 2px solid transparent;
  background: linear-gradient(#141414, #0d0d0d) padding-box, linear-gradient(135deg, #FFB400, #FF3D00) border-box
}

.crown {
  width: 20px;
  height: 20px;
  fill: #FFB400;
  margin-left: 6px
}

.list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  margin: 6px 0
}

.list-item .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #333
}

.list-item .meta {
  flex: 1;
  min-width: 0;
  font-weight: 700
}

.list-item>div:last-child {
  color: #ccc;
  font-size: 13px
}

.tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  background: #0F0F0F;
  border: 1px solid #222;
  padding: 8px;
  border-radius: 16px;
  box-shadow: 0 6px 18px #0008
}

.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 2px solid transparent;
  box-shadow: 0 6px 16px #0008;
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
  background: linear-gradient(#141414, #0d0d0d) padding-box, linear-gradient(135deg, var(--gold), var(--orange)) border-box;
  text-shadow: 0 0 8px #FFB40040
}

.tab .ico {
  width: 18px;
  height: 18px;
  fill: var(--gold)
}

.tab:hover {
  filter: brightness(1.06)
}

.tab.active {
  background: linear-gradient(180deg, #1a1400, #111) padding-box, linear-gradient(135deg, #FFB400, #FF6A00) border-box;
  color: #fff
}

.tab.active .ico {
  fill: #FFB400
}

.tab:hover {
  filter: brightness(1.08)
}

.role-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 18px;
  padding: 12px
}

.role-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  color: #000;
  font-weight: 700
}

.role-header .ico {
  width: 20px;
  height: 20px;
  fill: #000
}

.role-rusher .role-header {
  background: linear-gradient(180deg, #FF6A00, #FF3D00)
}

.role-sniper .role-header {
  background: linear-gradient(180deg, #00C2FF, #0078FF)
}

.role-supporter .role-header {
  background: linear-gradient(180deg, #68FF68, #1ECF4A)
}

.role-nader .role-header {
  background: linear-gradient(180deg, #FFD54F, #FFB400)
}

.role-list {
  margin-top: 8px
}

.role-list .list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #222
}

.role-list .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover
}

.role-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  background: #0F0F0F;
  border: 1px solid #222;
  padding: 8px;
  border-radius: 16px;
  box-shadow: 0 6px 18px #0008
}

.role-links.compact {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2px;
  gap: 6px
}

.role-links.compact .role-btn {
  padding: 6px 10px;
  font-size: 13px
}

.role-links.compact .role-btn .ico {
  width: 16px;
  height: 16px
}

.role-links.compact .bell.gamer {
  padding: 6px 8px
}

.role-links.compact .bell {
  justify-self: end
}

.bell.small {
  width: 32px;
  height: 32px
}

.bell.gamer {
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px #0008;
  background: linear-gradient(#141414, #0d0d0d) padding-box, linear-gradient(135deg, var(--gold), var(--orange)) border-box
}

.bell.gamer .ico {
  width: 18px;
  height: 18px;
  fill: var(--gold)
}

.role-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 2px solid transparent;
  box-shadow: 0 6px 16px #0008;
  color: var(--text);
  font-weight: 700;
  background: linear-gradient(#141414, #0d0d0d) padding-box, linear-gradient(135deg, var(--gold), var(--orange)) border-box;
  text-shadow: 0 0 8px #FFB40040
}

.role-btn .ico {
  width: 18px;
  height: 18px;
  fill: var(--gold)
}

.role-btn:hover {
  filter: brightness(1.06)
}

.role-btn.active {
  background: linear-gradient(180deg, #1a1400, #111) padding-box, linear-gradient(135deg, #FFB400, #FF6A00) border-box;
  color: #fff
}

.role-btn.active .ico {
  fill: #FFB400
}

/* filters */
.filter-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 6px;
  padding: 8px;
  border-radius: 16px;
  border: 2px solid transparent;
  box-shadow: 0 6px 18px #0008;
  background: linear-gradient(#141414, #0d0d0d) padding-box, linear-gradient(135deg, var(--gold), var(--orange)) border-box
}

.filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 2px solid transparent;
  box-shadow: 0 6px 16px #0008;
  color: var(--text);
  font-weight: 700;
  background: linear-gradient(#141414, #0d0d0d) padding-box, linear-gradient(135deg, var(--gold), var(--orange)) border-box;
  text-shadow: 0 0 8px #FFB40040
}

.filter-btn .ico {
  width: 18px;
  height: 18px;
  fill: var(--gold)
}

.filter-btn:hover {
  filter: brightness(1.06)
}

.filter-btn.active {
  background: linear-gradient(180deg, #1a1400, #111) padding-box, linear-gradient(135deg, #FFB400, #FF6A00) border-box;
  color: #fff
}

.filter-btn.active .ico {
  fill: #FFB400
}

/* tournament banner */
.tourney-banner {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #222;
  margin-bottom: 8px
}

@media(max-width:480px) {
  .filter-links {
    grid-template-columns: repeat(2, 1fr)
  }
}

.team-card {
  position: relative;
  background: #111;
  border: 1px solid #222;
  border-radius: 16px;
  overflow: hidden
}

.team-card.bg {
  background-position: center;
  background-size: cover
}

.team-cover {
  position: relative;
  height: 160px;
  background-position: center;
  background-size: cover;
  border-radius: 16px
}

.team-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  padding: 12px;
  border-radius: 0 0 16px 16px
}

.team-header {
  display: flex;
  align-items: center;
  gap: 12px
}

.team-header.center {
  flex-direction: column;
  justify-content: center;
  text-align: center
}

.team-logo-big {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px #1E1E1E
}

.team-actions {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  gap: 8px
}

.team-settings-fab {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #FFB400, #FF3D00);
  box-shadow: 0 6px 12px #0007;
  cursor: pointer
}

.team-settings-fab .ico {
  width: 22px;
  height: 22px;
  fill: #000
}

.team-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center
}

.team-name {
  font-weight: 700;
  font-size: 18px
}

.team-meta {
  color: #ccc;
  font-size: 13px
}

.member-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #222
}

.member-info {
  display: flex;
  align-items: center;
  gap: 10px
}

.member-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #333
}

.team-stats {
  display: flex;
  gap: 8px;
  margin-top: 8px
}

.chip.stat {
  background: #151515;
  border: 1px solid #333;
  color: #ccc;
  padding: 6px 10px;
  border-radius: 9999px;
  font-size: 12px
}

.badge {
  padding: 4px 8px;
  border-radius: 9999px;
  font-size: 12px
}

.badge.accepted {
  background: #1e3f1e;
  color: #68FF68;
  border: 1px solid #2b6f2b
}

.badge.pending {
  background: #3f2f1e;
  color: #FFB400;
  border: 1px solid #6f4b2b
}

.badge.rejected {
  background: #3f1e1e;
  color: #FF5D5D;
  border: 1px solid #6f2b2b
}

.slot-box.selected {
  border-color: var(--gold)
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px
}

.member-card .slot-select {
  width: 100%
}

.tourney-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap
}

.team-cover {
  height: 160px
}

@media(max-width:900px) {
  .member-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .slots-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .team-cover {
    height: 130px
  }
}

@media(max-width:600px) {
  .member-grid {
    grid-template-columns: 1fr
  }

  .slots-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .team-cover {
    height: 110px
  }
}

@media(max-width:380px) {
  .slots-grid {
    grid-template-columns: 1fr
  }
}

.member-card {
  background: #111;
  border: 1px solid #444;
  border-radius: 14px;
  padding: 10px
}

.member-title {
  font-weight: 700;
  margin-bottom: 6px
}

.select-help {
  color: #bbb;
  font-size: 12px;
  margin-bottom: 4px
}

.slot-select.error {
  border-color: #FF5D5D
}

@media(max-width:768px) {
  .tabs {
    flex-wrap: wrap
  }

  .tab {
    padding: 8px 12px
  }

  .podium {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:480px) {
  .container {
    padding: 12px
  }

  .tabs {
    gap: 8px;
    padding: 8px
  }

  .tab {
    font-size: 14px;
    padding: 8px 10px
  }

  .podium {
    grid-template-columns: 1fr
  }

  .list-item {
    flex-wrap: wrap
  }

  .role-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr)
  }

  .role-btn {
    padding: 6px 10px
  }
}

.header-bar {
  display: grid;
  gap: 6px;
  padding: 6px;
  border-radius: 16px
}

.header-bar .button-row {
  display: flex;
  align-items: center;
  gap: 6px
}

.header-bar .button-row .bell {
  margin-left: auto
}

.header-bar .banner {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px #0008;
  height: 160px;
  position: relative
}

@media(max-width:480px) {
  .header-bar .button-row {
    flex-wrap: wrap
  }

  .header-bar .button-row .bell {
    margin-left: 0
  }
}

/* compact header buttons */
.header-bar .filter-btn {
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 12px;
  border: 2px solid transparent;
  color: #fff;
  box-shadow: 0 6px 16px #0008;
  text-shadow: 0 0 6px #FFB40033;
  background: linear-gradient(#141414, #0d0d0d) padding-box, linear-gradient(135deg, var(--gold), var(--orange)) border-box
}

.header-bar .filter-btn .ico {
  width: 16px;
  height: 16px;
  fill: var(--gold)
}

.header-bar .filter-btn:hover {
  filter: brightness(1.06)
}

.header-bar .filter-btn:active {
  transform: scale(0.98)
}

.header-bar .bell.gamer {
  padding: 6px 8px;
  border-radius: 12px;
  border: 2px solid transparent;
  box-shadow: 0 6px 16px #0008;
  background: linear-gradient(#141414, #0d0d0d) padding-box, linear-gradient(135deg, var(--gold), var(--orange)) border-box
}

.header-bar .bell.gamer .ico {
  fill: var(--gold)
}

.modes-row-wrap {
  position: relative
}

.modes-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px;
  border-radius: 16px;
  background: #0F0F0F;
  border: 1px solid #222;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch
}

.modes-row .mode {
  flex: 0 0 200px;
  scroll-snap-align: start
}

.modes-row .mode img {
  height: 120px
}

.modes-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0008;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer
}

.modes-arrow.left {
  left: 6px
}

.modes-arrow.right {
  right: 6px
}

.modes-row::-webkit-scrollbar {
  height: 6px
}

.modes-row::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 6px
}

@media(max-width:768px) {
  .modes-row {
    gap: 10px;
    padding: 6px
  }

  .modes-row .mode {
    flex: 0 0 70%
  }

  .modes-arrow {
    display: none
  }
}

@media(max-width:480px) {
  .modes-row .mode {
    flex: 0 0 85%
  }

  .modes-row .mode img {
    height: 110px
  }
}

@media(max-width:768px) {
  .grid.cols-2 {
    grid-template-columns: 1fr
  }

  .grid.cols-3 {
    grid-template-columns: 1fr
  }

  form[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important
  }

  form[style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important
  }

  .header-bar .button-row {
    flex-wrap: wrap
  }
}

.mvp-row-wrap {
  position: relative;
  margin-bottom: 12px
}

.mvp-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px;
  border-radius: 16px;
  background: #0F0F0F;
  border: 1px solid #222;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch
}

.mvp-card {
  flex: 0 0 150px;
  border: 2px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  position: relative;
  box-shadow: 0 8px 18px #0008;
  background: linear-gradient(#141414, #0d0d0d) padding-box, linear-gradient(135deg, var(--gold), var(--orange)) border-box
}

.mvp-card img {
  width: 100%;
  height: 220px;
  object-fit: cover
}

.mvp-card .label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: #000A;
  color: #fff;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #333;
  font-weight: 700;
  font-size: 12px
}

.mvp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #0008;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer
}

.mvp-arrow.left {
  left: 6px
}

.mvp-arrow.right {
  right: 6px
}

@media(max-width:768px) {
  .mvp-row {
    gap: 10px;
    padding: 6px
  }

  .mvp-card {
    flex: 0 0 48%
  }

  .mvp-card img {
    height: 190px
  }

  .mvp-arrow {
    display: none
  }
}

@media(max-width:480px) {
  .mvp-card {
    flex: 0 0 65%
  }

  .mvp-card img {
    height: 170px
  }
}

/* admin links placement */
.admin-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px
}

.admin-links .btn {
  width: 100%;
  text-align: center
}

@media(max-width:1024px) {
  .admin-links {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:600px) {
  .admin-links {
    grid-template-columns: 1fr
  }
}

/* admin menu */
.admin-menu-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px #0008;
  background: linear-gradient(#141414, #0d0d0d) padding-box, linear-gradient(135deg, var(--gold), var(--orange)) border-box
}

.admin-menu-btn .ico {
  width: 22px;
  height: 22px;
  fill: var(--gold)
}

.admin-menu-btn.active .ico {
  fill: #000
}

.admin-menu {
  position: fixed;
  top: 48px;
  right: 16px;
  width: 320px;
  max-height: 80vh;
  overflow: auto;
  background: #0F0F0F;
  border: 1px solid #222;
  border-radius: 16px;
  box-shadow: 0 8px 20px #0008;
  padding: 12px;
  display: none;
  z-index: 1000
}

.admin-menu.open {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px
}

.admin-menu a.btn {
  width: 100%;
  text-align: center;
  padding: 8px 10px;
  font-size: 14px;
  margin: 0
}

.admin-menu-btn {
  touch-action: manipulation
}

@media(max-width:600px) {
  .admin-menu {
    left: 16px;
    right: 16px;
    width: auto;
    bottom: 16px;
    top: auto;
    border-radius: 16px
  }
}

.admin-menu-backdrop {
  position: fixed;
  inset: 0;
  background: #0006;
  backdrop-filter: blur(1px);
  display: none;
  z-index: 999
}

.admin-menu-backdrop.show {
  display: block
}

.menu-open .admin-links {
  display: none
}

.menu-open .admin-links {
  display: none
}

.menu-open {
  overflow: hidden
}