*{
  box-sizing: border-box;
}

html{
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body{
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(232, 16, 117, 0.12), transparent 230px),
    radial-gradient(circle at top right, rgba(38, 162, 255, 0.16), transparent 270px),
    #050505;
  color: white;
  font-family: "Arial Black", Impact, Haettenschweiler, "Trebuchet MS", sans-serif;
  letter-spacing: 0;
  overscroll-behavior-y: none;
}

.legal-page{
  padding: 18px;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 213, 30, 0.12), transparent 28%),
    linear-gradient(135deg, #050507, #100817 55%, #07111c);
}

.legal-shell{
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 24px;
  background: rgba(8, 7, 12, 0.92);
  border: 1px solid rgba(255, 213, 30, 0.34);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.legal-shell h1,
.legal-shell h2,
.legal-shell p{
  margin: 0;
}

.legal-shell h1{
  color: #ffffff;
  font-size: clamp(34px, 8vw, 64px);
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #050505, 5px 5px 0 rgba(166, 255, 0, 0.45);
}

.legal-shell h2{
  margin-top: 22px;
  color: #ffd51e;
  font-size: 20px;
  text-transform: uppercase;
}

.legal-shell p{
  margin-top: 10px;
  color: #e8eef8;
  font-weight: 800;
  line-height: 1.55;
}

.hero{
  background: rgba(5, 5, 9, 0.92);
  border-bottom: 1px solid #221c2d;
  padding: max(8px, env(safe-area-inset-top)) 14px 10px;
  backdrop-filter: blur(12px);
}

.mobile-player-hud,
.mobile-bottom-nav,
.mobile-event-strip{
  display: none;
}

.popup{
  position: fixed;
  top: max(74px, calc(env(safe-area-inset-top) + 68px));
  right: 10px;
  z-index: 20;
  max-width: min(280px, calc(100vw - 20px));
  padding: 8px 10px;
  color: #050505;
  background: rgba(255, 213, 30, 0.92);
  border: 1px solid rgba(5, 5, 5, 0.86);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.popup.show{
  opacity: 1;
  transform: translateY(0);
}

.walkthrough-overlay{
  position: fixed;
  inset: 0;
  z-index: 65;
  display: grid;
  align-items: end;
  padding: 10px 12px max(12px, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(1px);
}

.walkthrough-overlay[hidden]{
  display: none;
}

.walkthrough-panel{
  width: min(980px, 100%);
  min-height: 210px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(140px, 260px) minmax(0, 1fr);
  gap: clamp(14px, 3vw, 28px);
  padding: clamp(12px, 1.7vw, 18px);
  color: #ffd51e;
  background: #030303;
  border: 4px solid #ffd51e;
  box-shadow:
    0 -12px 48px rgba(0, 0, 0, 0.68),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.walkthrough-character{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  align-self: end;
  background: #090909;
}

.walkthrough-copy{
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 1.4vw, 14px);
}

.walkthrough-speaker{
  width: fit-content;
  padding: 6px 10px;
  color: #050505;
  background: #ffd51e;
  border-radius: 4px;
  font-size: clamp(10px, 1.5vw, 14px);
  text-transform: uppercase;
  box-shadow: 3px 3px 0 rgba(166, 255, 0, 0.5);
}

.walkthrough-copy h2,
.walkthrough-copy p{
  margin: 0;
  color: #ffd51e;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0;
  text-shadow: none;
}

.walkthrough-copy h2{
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.05;
}

.walkthrough-copy p{
  max-width: 650px;
  font-size: clamp(19px, 2.6vw, 32px);
  line-height: 1.18;
}

.walkthrough-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.walkthrough-actions button{
  min-height: 42px;
  padding: 10px 20px;
  color: #050505;
  background: #ffd51e;
  border: 2px solid #ffe96d;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(5, 5, 5, 0.85);
}

.walkthrough-actions .ghost-button{
  color: #ffd51e;
  background: rgba(255, 213, 30, 0.08);
  border-color: rgba(255, 213, 30, 0.55);
}

.walkthrough-nudge{
  position: fixed;
  right: 12px;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 30;
  width: min(390px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 30px;
  gap: 9px;
  align-items: center;
  padding: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 213, 30, 0.16), rgba(29, 155, 240, 0.16)),
    rgba(5, 5, 9, 0.95);
  border: 2px solid rgba(255, 213, 30, 0.78);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(12px);
}

.walkthrough-nudge[hidden]{
  display: none;
}

.walkthrough-nudge img{
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 2px solid #ffd51e;
  background: #050505;
}

.walkthrough-nudge strong,
.walkthrough-nudge span{
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.walkthrough-nudge strong{
  color: #ffd51e;
  font-size: 13px;
  text-transform: uppercase;
}

.walkthrough-nudge span{
  color: #e8eef8;
  font-size: 11px;
  line-height: 1.18;
}

.walkthrough-nudge button{
  min-height: 32px;
  padding: 6px 10px;
  color: #050505;
  background: #ffd51e;
  border: 1px solid #ffe96d;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.walkthrough-nudge .walkthrough-nudge-close{
  width: 28px;
  padding: 0;
  color: #ffd51e;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 213, 30, 0.34);
}

.walkthrough-target{
  position: relative;
  z-index: 18;
  outline: 4px solid #ffd51e;
  outline-offset: 4px;
  animation: walkthroughPulse 900ms ease-in-out infinite alternate;
}

@keyframes walkthroughPulse{
  from{
    box-shadow:
      0 0 0 0 rgba(255, 213, 30, 0.72),
      0 0 24px rgba(166, 255, 0, 0.3);
  }

  to{
    box-shadow:
      0 0 0 10px rgba(255, 213, 30, 0),
      0 0 34px rgba(255, 213, 30, 0.74);
  }
}

.brand-row{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.avatar{
  width: 54px;
  height: 54px;
  border: 2px solid #ffd51e;
  border-radius: 50%;
  object-fit: cover;
  background: #050505;
  box-shadow: 0 0 0 3px rgba(232, 16, 117, 0.22);
}

.kicker,
.tagline{
  margin: 0;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kicker{
  color: #26a2ff;
  font-size: 12px;
  font-weight: 800;
  text-shadow: 2px 2px 0 #050505, 3px 3px 0 rgba(255, 213, 30, 0.38);
}

.brand-title{
  display: block;
  color: #ffffff;
  font-size: 18px;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #050505, 4px 4px 0 rgba(166, 255, 0, 0.44);
  transform: skewX(-7deg);
}

.tagline{
  margin-top: 6px;
  color: #e7e7e7;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-shadow: 2px 2px 0 #050505, 3px 3px 0 rgba(232, 16, 117, 0.42);
}

.banner{
  display: block;
  width: min(58vw, 260px);
  max-height: 56px;
  object-fit: contain;
}

.collection-banner{
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: min(760px, 100%);
  height: 96px;
  margin: 8px auto 0;
  background: #050505;
  border: 1px solid #2c2436;
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px rgba(255, 213, 30, 0.08), 0 8px 22px rgba(0, 0, 0, 0.24);
}

.collection-banner::before,
.collection-banner::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.collection-banner::before{
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.44), transparent 24%, transparent 76%, rgba(5, 5, 5, 0.44)),
    linear-gradient(180deg, rgba(232, 16, 117, 0.08), rgba(29, 155, 240, 0.08));
}

.collection-banner::after{
  z-index: 3;
  border: 2px solid rgba(255, 213, 30, 0.35);
  border-radius: 8px;
  box-shadow: inset 0 -8px 0 rgba(166, 255, 0, 0.12);
}

.banner-nft-strip{
  position: absolute;
  inset: -28px -16px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  transform: rotate(-2deg) scale(1.04);
}

.banner-nft-strip img{
  width: 100%;
  height: 150px;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.game-shell{
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 12px 14px 32px;
}

.profile-card{
  overflow: hidden;
  margin-bottom: 12px;
  background:
    linear-gradient(135deg, rgba(255, 213, 30, 0.12), transparent 24%),
    #050505;
  border: 1px solid rgba(255, 213, 30, 0.34);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28), inset 0 0 0 2px rgba(5, 5, 5, 0.55);
}

.profile-info{
  padding: 6px;
  width: 100%;
}

.profile-overlay{
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 148px;
  gap: 10px;
  padding: 14px 126px 38px 16px;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.78), rgba(5, 5, 5, 0.48)),
    url("../images/bando-world-order.jpeg") center / cover no-repeat;
  border: 1px solid rgba(255, 213, 30, 0.28);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24), inset 0 0 28px rgba(5, 5, 5, 0.45);
  backdrop-filter: none;
}

.profile-avatar{
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 2px solid #ffd51e;
  border-radius: 50%;
  object-fit: cover;
  background: #050505;
}

.profile-copy{
  min-width: 0;
}

.profile-copy h1{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #050505, 3px 3px 0 rgba(255, 213, 30, 0.32);
}

.profile-copy p{
  margin-top: 2px;
  color: rgba(224, 235, 255, 0.82);
  font-size: 13px;
  text-shadow: 2px 2px 0 rgba(5, 5, 5, 0.75);
}

.profile-copy strong{
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.15;
}

.profile-world-tag{
  position: absolute;
  left: 14px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  max-width: calc(100% - 28px);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(166, 255, 0, 0.12)),
    rgba(5, 5, 5, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 rgba(5, 5, 5, 0.82);
  box-shadow: 0 7px 16px rgba(5, 5, 5, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(9px) saturate(1.2);
  overflow-wrap: anywhere;
  pointer-events: none;
}

.profile-links{
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.profile-links a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 9px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(29, 155, 240, 0.18)),
    rgba(5, 5, 5, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 rgba(5, 5, 5, 0.82);
  box-shadow: 0 7px 16px rgba(5, 5, 5, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(9px) saturate(1.25);
}

.profile-links a:last-child{
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(29, 155, 240, 0.2)),
    rgba(5, 5, 5, 0.3);
  border-color: rgba(255, 255, 255, 0.52);
  box-shadow: 0 7px 18px rgba(5, 5, 5, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.verified-dot{
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  color: white;
  background: #1d9bf0;
  border-radius: 50%;
  font-size: 12px;
}

.player-profile-card{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(166, 255, 0, 0.12), rgba(232, 16, 117, 0.08) 48%, rgba(29, 155, 240, 0.1)),
    #100d16;
  border: 1px solid rgba(255, 213, 30, 0.3);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.player-profile-avatar{
  width: 72px;
  height: 72px;
  grid-row: span 2;
  object-fit: cover;
  background: #050505;
  border: 3px solid #ffd51e;
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(5, 5, 5, 0.74), 0 0 20px rgba(255, 213, 30, 0.24);
}

.player-profile-main{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.player-profile-main > div{
  min-width: 0;
}

.player-profile-main h1{
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  overflow: hidden;
  margin-top: 3px;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.08;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 2px 2px 0 #050505, 3px 3px 0 rgba(166, 255, 0, 0.32);
}

#playerProfileName{
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-profile-main h1 .bwo-badge{
  flex: 0 0 auto;
  margin-left: 2px;
  transform: translateY(-1px);
}

.player-profile-id{
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-top: 6px;
  padding: 4px 5px 4px 8px;
  color: #d8ecff;
  background: rgba(6, 16, 28, 0.72);
  border: 1px solid rgba(93, 188, 255, 0.42);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.player-profile-id span{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-profile-id button{
  min-height: 22px;
  padding: 3px 7px;
  font-size: 9px;
}

.bwo-badge{
  display: inline-grid;
  place-items: center;
  min-width: 50px;
  min-height: 26px;
  padding: 4px 10px;
  color: #ff2d2d;
  background:
    linear-gradient(135deg, rgba(255, 45, 45, 0.28), rgba(10, 3, 3, 0.94) 52%, rgba(0, 0, 0, 0.98)),
    #080303;
  border: 1px solid rgba(255, 45, 45, 0.78);
  border-radius: 6px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  text-shadow: 1px 1px 0 #000000, 0 0 10px rgba(255, 45, 45, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 14px rgba(255, 45, 45, 0.22);
}

.bwo-badge[hidden]{
  display: none;
}

.mini-label{
  display: block;
  color: #ffd51e;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.player-profile-main > button{
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 11px;
}

.player-profile-stats{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.player-profile-stats span{
  min-width: 0;
  padding: 8px 9px;
  background: rgba(5, 5, 5, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.player-profile-stats strong,
.player-profile-stats small{
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-profile-stats strong{
  color: #a6ff00;
  font-size: 15px;
}

.player-profile-stats small{
  color: #b9b9b9;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-editor-backdrop{
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 5, 5, 0.74);
  backdrop-filter: blur(8px);
}

.profile-editor-backdrop[hidden]{
  display: none;
}

.profile-editor{
  width: min(520px, 100%);
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 213, 30, 0.14), rgba(232, 16, 117, 0.12) 45%, rgba(29, 155, 240, 0.12)),
    #100d16;
  border: 1px solid rgba(255, 213, 30, 0.42);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.profile-editor-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.profile-editor-head h1{
  color: #ffffff;
  font-size: 24px;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #050505, 3px 3px 0 rgba(166, 255, 0, 0.36);
}

.icon-button{
  width: 34px;
  min-height: 34px;
  padding: 0;
}

.profile-editor-body{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.profile-editor-avatar{
  width: 96px;
  height: 96px;
  object-fit: cover;
  background: #050505;
  border: 3px solid #ffd51e;
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(5, 5, 5, 0.7), 0 0 22px rgba(255, 213, 30, 0.2);
}

.profile-editor-fields{
  display: grid;
  gap: 8px;
}

.profile-editor-fields label{
  color: #ffd51e;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-editor-fields input{
  width: 100%;
  padding: 11px 12px;
  color: #ffffff;
  background: rgba(5, 5, 5, 0.7);
  border: 1px solid #2c2436;
  border-radius: 8px;
  font: inherit;
}

.avatar-picker{
  display: grid;
  gap: 8px;
}

.avatar-picker.compact{
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.avatar-picker-toolbar,
.avatar-picker-pager{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 7px;
  align-items: center;
}

.avatar-picker-toolbar label{
  color: #ffd51e;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.avatar-picker-toolbar input{
  min-height: 36px;
  padding: 8px 10px;
  color: #ffffff;
  background: rgba(5, 5, 5, 0.78);
  border: 1px solid rgba(255, 213, 30, 0.28);
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
}

.avatar-picker-toolbar button,
.avatar-picker-pager button{
  min-height: 34px;
  padding: 7px 8px;
  color: #050505;
  background: #ffd51e;
  border: 1px solid #ffe96d;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.avatar-picker-pager{
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.avatar-picker-pager span{
  color: #dcdcdc;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.avatar-picker-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.avatar-choice{
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 4px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 3px;
  justify-items: center;
  color: #ffffff;
  background: rgba(5, 5, 5, 0.72);
  border: 1px solid rgba(255, 213, 30, 0.25);
  border-radius: 8px;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.05);
}

.avatar-choice.active{
  color: #050505;
  background: linear-gradient(180deg, #fff36b, #ffd51e);
  border-color: #fff9a7;
}

.avatar-choice img{
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border: 2px solid #050505;
  border-radius: 8px;
  background: #050505;
}

.avatar-choice span{
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
  line-height: 1.1;
}

.avatar-picker-grid .empty-message{
  grid-column: 1 / -1;
  margin: 0;
  min-height: 58px;
  display: grid;
  place-items: center;
  color: #dcdcdc;
  background: rgba(5, 5, 5, 0.62);
  border: 1px dashed rgba(255, 213, 30, 0.28);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.avatar-unlock-note{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  align-content: center;
  align-items: center;
  min-height: 34px;
  padding: 6px 8px;
  color: #dcdcdc;
  background: rgba(255, 213, 30, 0.08);
  border: 1px dashed rgba(255, 213, 30, 0.38);
  border-radius: 8px;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.1;
}

.avatar-unlock-note strong{
  color: #a6ff00;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.avatar-unlock-note span{
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.avatar-collection-summary{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.avatar-collection-summary article,
.avatar-gallery-controls{
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 9px;
  background: rgba(5, 5, 5, 0.68);
  border: 1px solid rgba(255, 213, 30, 0.24);
  border-radius: 8px;
}

.avatar-collection-summary span{
  color: #ffd51e;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.avatar-collection-summary strong{
  overflow: hidden;
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.avatar-collection-summary small{
  color: #bfbfbf;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.15;
}

.avatar-gallery-controls{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.avatar-gallery-controls button{
  min-height: 40px;
  padding: 8px;
}

.avatar-collection-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 8px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.avatar-nft-card{
  display: grid;
  gap: 7px;
  padding: 8px;
  min-width: 0;
  background:
    linear-gradient(135deg, rgba(255, 213, 30, 0.08), transparent 48%),
    rgba(5, 5, 5, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.avatar-nft-card.owned-card{
  border-color: rgba(255, 213, 30, 0.78);
}

.avatar-nft-card img{
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #050505;
  border: 2px solid rgba(255, 213, 30, 0.28);
  border-radius: 8px;
}

.avatar-nft-card strong,
.avatar-nft-card small{
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-nft-card strong{
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
}

.avatar-nft-card small{
  color: #cfcfcf;
  font-size: 9px;
  font-weight: 900;
}

.avatar-nft-card .mini-pill{
  max-width: 100%;
  justify-self: start;
  overflow: hidden;
  padding: 5px 7px;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-nft-card.rarity-rare,
.avatar-nft-card.rarity-epic,
.avatar-nft-card.rarity-legendary,
.avatar-nft-card.rarity-1-1{
  box-shadow: inset 0 0 0 1px rgba(29, 155, 240, 0.2);
}

.avatar-nft-card.rarity-epic,
.avatar-nft-card.rarity-legendary,
.avatar-nft-card.rarity-1-1{
  border-color: rgba(232, 16, 117, 0.48);
}

.avatar-nft-card.rarity-1-1{
  border-color: rgba(166, 255, 0, 0.8);
}

.profile-editor-actions{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.public-profile-modal{
  width: min(760px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  overflow: auto;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 213, 30, 0.11), rgba(232, 16, 117, 0.1), rgba(29, 155, 240, 0.12)),
    rgba(7, 6, 11, 0.96);
  border: 1px solid rgba(255, 213, 30, 0.56);
  border-radius: 8px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.72);
}

.public-profile-body{
  display: grid;
  gap: 12px;
}

.public-profile-hero{
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.public-profile-hero img{
  width: 120px;
  height: 120px;
  object-fit: cover;
  background: #050505;
  border: 3px solid #ffd51e;
  border-radius: 8px;
}

.public-profile-hero strong,
.public-profile-hero small{
  display: block;
}

.public-profile-hero strong{
  color: #ffffff;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #050505, 5px 5px 0 rgba(166, 255, 0, 0.42);
}

.public-profile-name-row{
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.public-profile-hero small{
  margin-top: 8px;
  color: #dcdcdc;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
}

.public-profile-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.public-profile-grid article{
  min-height: 86px;
  padding: 11px;
  background: rgba(5, 5, 5, 0.72);
  border: 1px solid rgba(255, 213, 30, 0.24);
  border-radius: 8px;
}

.public-profile-grid strong,
.public-profile-grid small{
  display: block;
}

.public-profile-grid strong{
  color: #a6ff00;
  font-size: clamp(20px, 4vw, 30px);
  line-height: 1;
  overflow-wrap: anywhere;
  text-shadow: 2px 2px 0 #050505, 3px 3px 0 rgba(232, 16, 117, 0.65);
}

.public-profile-grid small{
  margin-top: 8px;
  color: #d4d4d4;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.public-profile-actions{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.public-profile-actions button{
  min-height: 44px;
  padding: 8px 10px;
  font-size: 12px;
}

.public-profile-safe-note{
  margin: 0;
  padding: 9px 10px;
  color: #dcdcdc;
  background: rgba(29, 155, 240, 0.12);
  border: 1px solid rgba(29, 155, 240, 0.3);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
}

.cash-panel,
.action-panel,
.save-panel,
.progress-panel,
.event-panel,
.achievements-panel,
.shop-panel{
  width: 100%;
  margin: 0 auto 12px;
  padding: 12px;
  background: rgba(18, 15, 25, 0.94);
  border: 1px solid #2c2436;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.cash-panel{
  position: relative;
  overflow: hidden;
  padding: 12px 14px;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.78), rgba(5, 5, 5, 0.48) 54%, rgba(5, 5, 5, 0.8)),
    linear-gradient(135deg, rgba(255, 213, 30, 0.22), rgba(232, 16, 117, 0.1) 42%, rgba(29, 155, 240, 0.16)),
    #120f19;
  border-color: rgba(255, 213, 30, 0.28);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 -12px 0 rgba(166, 255, 0, 0.06);
}

.cash-panel::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 78% 45%, rgba(255, 213, 30, 0.22), transparent 150px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.8), transparent 74%);
  pointer-events: none;
}

.cash-panel::after{
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 0;
  border: 1px solid rgba(255, 213, 30, 0.18);
  border-radius: 8px;
  clip-path: polygon(0 0, 76px 0, 76px 2px, 2px 2px, 2px calc(100% - 2px), 76px calc(100% - 2px), 76px 100%, 0 100%, 0 0, 100% 0, 100% 100%, calc(100% - 76px) 100%, calc(100% - 76px) calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 2px, calc(100% - 76px) 2px, calc(100% - 76px) 0);
  pointer-events: none;
}

.cash-panel > *{
  position: relative;
  z-index: 1;
}

.currency-heading{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.label{
  margin: 0 0 6px;
  color: #b9b9b9;
  font-size: 13px;
  text-transform: uppercase;
}

.currency-heading .label{
  margin: 0;
  color: #ffffff;
  font-weight: 900;
}

.money{
  width: fit-content;
  max-width: 100%;
  color: #a6ff00;
  font-family: Impact, "Arial Black", Haettenschweiler, "Trebuchet MS", sans-serif;
  font-size: clamp(28px, 6.4vw, 56px);
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  word-break: break-word;
  transform: skewX(-8deg) rotate(-1deg);
  -webkit-text-stroke: 2px #050505;
  paint-order: stroke fill;
  text-shadow:
    2px 2px 0 #ffffff,
    4px 4px 0 #050505,
    6px 6px 0 rgba(232, 16, 117, 0.58),
    8px 8px 0 rgba(29, 155, 240, 0.34),
    0 0 18px rgba(166, 255, 0, 0.28);
}

.money.compact-money{
  font-size: clamp(24px, 5.7vw, 46px);
}

.money.tiny-money{
  font-size: clamp(21px, 4.8vw, 38px);
}

.money-hud-row{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.money-hud-row span{
  padding: 6px 8px;
  color: #ffffff;
  background: rgba(5, 5, 5, 0.72);
  border: 1px solid rgba(255, 213, 30, 0.28);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #050505;
  box-shadow: inset 0 -2px 0 rgba(166, 255, 0, 0.12);
}

.stats-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.stats-grid div{
  min-width: 0;
  padding: 8px 9px;
  background: rgba(5, 5, 9, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stats-grid span,
.stats-grid small{
  display: block;
}

.stats-grid span{
  font-size: 18px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.stats-grid small{
  margin-top: 2px;
  color: #a8a8a8;
  font-size: 11px;
}

.manager-stat-tile.active{
  border-color: rgba(255, 213, 30, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 213, 30, 0.12), rgba(5, 5, 9, 0.74)),
    rgba(5, 5, 9, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 16px rgba(255, 213, 30, 0.12);
}

.manager-stat-tile.active span{
  color: #ffd51e;
}

.xp-row{
  margin-top: 9px;
  color: #cfcfcf;
  font-size: 13px;
}

.xp-row .meter{
  margin-top: 5px;
}

.action-panel,
.save-panel,
.event-panel{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.action-panel{
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(280px, 1fr);
  align-items: stretch;
  gap: 10px;
  padding: 12px;
  contain: layout paint;
  overflow-anchor: none;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.risk-actions{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
}

.action-panel button{
  display: inline-grid;
  place-items: center;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.tab-nav{
  position: sticky;
  top: max(0px, env(safe-area-inset-top));
  z-index: 8;
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 10px;
  padding: 7px;
  background:
    linear-gradient(135deg, rgba(232, 16, 117, 0.16), rgba(29, 155, 240, 0.12)),
    rgba(5, 5, 9, 0.94);
  border: 1px solid #2c2436;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
  scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar{
  display: none;
}

.tab-group{
  flex: 0 0 auto;
  min-width: max-content;
  padding: 5px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(5, 5, 5, 0.42);
  border: 1px solid rgba(255, 213, 30, 0.18);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.tab-group > span{
  display: block;
  margin: 0 4px 4px;
  color: #ffd51e;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.tab-row{
  display: flex;
  gap: 5px;
}

.tab-button{
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 9px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    #16121f;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.05;
  overflow: hidden;
  overflow-wrap: normal;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
  box-shadow: inset 0 -2px 0 rgba(255, 213, 30, 0.14);
  text-shadow: 2px 2px 0 rgba(5, 5, 5, 0.55);
}

.tab-button.has-badge{
  position: relative;
}

.tab-badge{
  display: none;
}

.tab-badge.show{
  display: none;
}

button.notification-lit{
  color: #050505;
  background:
    linear-gradient(180deg, #fff16b, #ffd51e);
  border-color: #fff3a1;
  box-shadow:
    0 0 0 1px rgba(5, 5, 5, 0.22) inset,
    0 0 18px rgba(255, 213, 30, 0.34),
    0 0 0 3px rgba(166, 255, 0, 0.1);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.28);
}

button.notification-lit span,
button.notification-lit b{
  color: #050505;
}

.tab-button.active{
  color: #050505;
  background: linear-gradient(180deg, #ffe76a, #ffd51e);
  border-color: #ffe76a;
  box-shadow: 0 0 0 1px rgba(5, 5, 5, 0.22) inset, 0 8px 18px rgba(255, 213, 30, 0.16);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.32);
}

.mobile-bottom-nav{
  position: fixed;
  left: 50%;
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 25;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  width: min(520px, calc(100vw - 16px));
  padding: 7px;
  background:
    linear-gradient(135deg, rgba(255, 213, 30, 0.1), rgba(232, 16, 117, 0.1), rgba(29, 155, 240, 0.12)),
    rgba(5, 5, 9, 0.94);
  border: 1px solid rgba(255, 213, 30, 0.28);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateX(-50%);
  backdrop-filter: blur(14px) saturate(1.15);
}

.mobile-nav-button{
  position: relative;
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 50px;
  padding: 6px 4px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    #15111e;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: inset 0 -2px 0 rgba(255, 213, 30, 0.12);
}

.mobile-nav-button span{
  display: grid;
  place-items: center;
  min-width: 24px;
  min-height: 22px;
  color: #ffd51e;
  font-size: 12px;
  line-height: 1;
}

.mobile-nav-button b{
  max-width: 100%;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.05;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.mobile-nav-button i{
  display: none;
}

.mobile-nav-button i.show{
  display: none;
}

.mobile-nav-button.active{
  color: #050505;
  background: linear-gradient(180deg, #ffe76a, #ffd51e);
  border-color: #fff3a1;
  box-shadow: 0 0 0 1px rgba(5, 5, 5, 0.22) inset, 0 10px 22px rgba(255, 213, 30, 0.14);
}

.mobile-nav-button.active span{
  color: #050505;
}

.system-fab{
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 18;
  width: 48px;
  min-height: 48px;
  padding: 0;
  color: #050505;
  background: linear-gradient(180deg, #ffe76a, #ffd51e);
  border-color: rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  font-size: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42), 0 0 0 3px rgba(5, 5, 5, 0.48);
}

.social-alert-fab{
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(max(14px, env(safe-area-inset-bottom)) + 58px);
  z-index: 18;
  display: none;
  place-items: center;
  width: 48px;
  min-height: 48px;
  padding: 0;
  color: #050505;
  background: linear-gradient(180deg, #fff16b, #ffd51e);
  border-color: rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  font-size: 22px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42), 0 0 0 3px rgba(5, 5, 5, 0.48);
}

.social-alert-fab b{
  position: absolute;
  top: -7px;
  right: -7px;
  display: none;
  min-width: 22px;
  min-height: 22px;
  padding: 3px 5px;
  place-items: center;
  color: #ffffff;
  background: #e81075;
  border: 2px solid #050505;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
}

.social-alert-fab b.show{
  display: grid;
}

.social-alert-fab.show{
  display: grid;
}

.system-dock{
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(max(14px, env(safe-area-inset-bottom)) + 58px);
  z-index: 18;
  display: grid;
  gap: 7px;
  width: min(160px, calc(100vw - 24px));
  padding: 8px;
  background:
    linear-gradient(135deg, rgba(232, 16, 117, 0.14), rgba(29, 155, 240, 0.12)),
    rgba(5, 5, 9, 0.96);
  border: 1px solid rgba(255, 213, 30, 0.28);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}

.system-dock[hidden]{
  display: none;
}

.system-dock .tab-button{
  width: 100%;
  justify-content: center;
}

.tab-panel{
  display: none;
}

.tab-panel.active{
  display: block;
}

.progress-panel{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  grid-auto-rows: 1fr;
  gap: 8px;
  align-items: stretch;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.progress-card{
  min-width: 0;
  min-height: 132px;
  padding: 10px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  background:
    linear-gradient(135deg, rgba(29, 155, 240, 0.13), rgba(255, 213, 30, 0.05)),
    #0a0810;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.system-label{
  display: block;
  color: #8d95a0;
  font-size: 11px;
  line-height: 1.05;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #050505;
}

.progress-card strong{
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.progress-card small{
  display: block;
  margin-top: 4px;
  color: #b9b9b9;
  font-size: 12px;
  line-height: 1.28;
}

.progress-card button{
  align-self: end;
  width: 100%;
  margin-top: 8px;
  min-height: 42px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.05;
}

.meter{
  overflow: hidden;
  height: 9px;
  margin-top: 10px;
  background: #211b29;
  border-radius: 999px;
}

.meter span{
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #ffd51e, #e81075);
}

.event-log{
  flex: 1 1 260px;
  min-width: 0;
  padding: 10px 12px;
  background: #0a0810;
  border: 1px solid #2c2436;
  border-radius: 8px;
}

.event-log p{
  color: #cfcfcf;
  font-size: 13px;
}

.event-log p + p{
  margin-top: 6px;
}

.section-title.compact{
  margin-top: 0;
}

.count-pill{
  padding: 6px 9px;
  color: #050505;
  background: #ffd51e;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.achievement-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
}

#missionGrid,
#achievementGrid,
#questGrid,
#bandoPassGrid,
#gearGrid,
#boosterGrid,
#bossGrid{
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.mini-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 8px;
  align-items: start;
}

.mini-card{
  display: grid;
  gap: 6px;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 42%),
    #0a0810;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.mini-card small{
  color: #b9b9b9;
}

.mini-pill{
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  color: #050505;
  background: #ffd51e;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.mini-card.owned-card{
  border-color: rgba(255, 213, 30, 0.75);
}

.gear-reward-summary{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.gear-reward-stat{
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(255, 213, 30, 0.16), rgba(232, 16, 117, 0.08) 48%, rgba(29, 155, 240, 0.11)),
    rgba(5, 5, 5, 0.72);
  border: 1px solid rgba(255, 213, 30, 0.34);
  border-radius: 8px;
}

.gear-reward-stat span,
.gear-card-top,
.gear-requirements{
  color: #ffd51e;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.gear-reward-stat strong{
  overflow: hidden;
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  text-overflow: ellipsis;
  text-shadow: 2px 2px 0 #050505, 3px 3px 0 rgba(166, 255, 0, 0.44);
  text-transform: uppercase;
  white-space: nowrap;
}

.gear-reward-stat small{
  color: #d7d7d7;
  font-size: 11px;
  font-weight: 900;
}

.gear-card{
  min-height: 244px;
  align-content: start;
}

.gear-card-top,
.gear-requirements{
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  justify-content: space-between;
}

.gear-card-top .mini-pill{
  padding: 4px 7px;
  font-size: 9px;
}

.gear-lock-state{
  padding: 4px 7px;
  color: #999999;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.gear-lock-state.ready{
  color: #050505;
  background: #a6ff00;
  border-color: rgba(166, 255, 0, 0.8);
}

.gear-requirements{
  justify-content: flex-start;
}

.gear-requirements span{
  padding: 4px 7px;
  color: #a9a9a9;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.gear-requirements span.met{
  color: #050505;
  background: #ffd51e;
  border-color: rgba(255, 244, 118, 0.86);
}

.auto-claim-panel{
  padding: 8px 10px;
}

.auto-claim-card{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background:
    linear-gradient(135deg, rgba(255, 213, 30, 0.16), rgba(232, 16, 117, 0.09) 46%, rgba(29, 155, 240, 0.12)),
    rgba(5, 5, 5, 0.72);
  border: 1px solid rgba(255, 213, 30, 0.42);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auto-claim-card strong{
  flex: 1 1 auto;
  min-width: 116px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #050505, 3px 3px 0 rgba(166, 255, 0, 0.52);
}

.auto-claim-card .mini-pill{
  flex: 0 0 auto;
  padding: 4px 7px;
  font-size: 10px;
}

.auto-claim-card small{
  flex: 1 1 120px;
  min-width: 0;
  color: #d5d5d5;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.auto-claim-card button{
  flex: 0 0 auto;
  min-width: 72px;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
}

.auto-claim-card button.active{
  color: #050505;
  background: linear-gradient(180deg, #a6ff00, #66d500);
  border-color: #d8ff67;
}

.boss-card{
  gap: 10px;
}

.boss-card-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.boss-card-head strong{
  min-width: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #050505, 3px 3px 0 rgba(166, 255, 0, 0.28);
}

.boss-card-head .mini-pill{
  flex: 0 0 auto;
  font-size: 10px;
}

.boss-family{
  color: #d8ecff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.boss-requirements,
.boss-extra-stats,
.boss-reward-row{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.boss-requirements span,
.boss-reward-row span{
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  background: rgba(5, 5, 9, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #d7d7d7;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.boss-reward-row span{
  color: #050505;
  background: rgba(255, 213, 30, 0.92);
  border-color: rgba(255, 213, 30, 0.72);
}

.combat-stat-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.combat-stat-grid span{
  min-width: 0;
  padding: 8px;
  background:
    linear-gradient(135deg, rgba(29, 155, 240, 0.12), rgba(166, 255, 0, 0.07)),
    rgba(5, 5, 9, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.combat-stat-grid b,
.combat-stat-grid small{
  display: block;
}

.combat-stat-grid small{
  color: #b9b9b9;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.combat-stat-grid b{
  margin-top: 4px;
  color: #a6ff00;
  font-size: 16px;
  line-height: 1;
  overflow-wrap: anywhere;
  text-shadow: 1px 1px 0 #050505;
}

.territory-tile{
  background:
    linear-gradient(135deg, rgba(255, 213, 30, 0.08), rgba(29, 155, 240, 0.08)),
    #0a0810;
}

.stats-panel-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 8px;
  align-items: start;
}

.combat-intel-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  align-items: start;
}

.intel-card{
  background:
    linear-gradient(135deg, rgba(232, 16, 117, 0.12), rgba(38, 162, 255, 0.1)),
    #0a0810;
}

.intel-card .mini-pill{
  margin-right: 5px;
}

.stat-card{
  min-width: 0;
  padding: 10px;
  background: #0a0810;
  border: 1px solid #2c2436;
  border-radius: 8px;
}

.stat-card strong,
.stat-card small{
  display: block;
}

.stat-card strong{
  color: #a6ff00;
  font-size: 21px;
  text-shadow: 2px 2px 0 #050505, 3px 3px 0 rgba(232, 16, 117, 0.42);
  overflow-wrap: anywhere;
}

.stat-card small{
  margin-top: 4px;
  color: #b9b9b9;
  text-transform: uppercase;
}

.holder-panel{
  background:
    linear-gradient(135deg, rgba(255, 213, 30, 0.12), rgba(232, 16, 117, 0.08), rgba(38, 162, 255, 0.1)),
    rgba(18, 15, 25, 0.94);
}

.holder-hero{
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  background: rgba(5, 5, 5, 0.6);
  border: 1px solid rgba(255, 213, 30, 0.24);
  border-radius: 8px;
}

.holder-hero img{
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 2px solid #ffd51e;
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(5, 5, 5, 0.72);
}

.chat-panel{
  background:
    linear-gradient(135deg, rgba(29, 155, 240, 0.12), rgba(166, 255, 0, 0.08), rgba(255, 213, 30, 0.1)),
    rgba(18, 15, 25, 0.94);
}

.chat-ready-card{
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  padding: 12px;
  background: rgba(5, 5, 5, 0.62);
  border: 1px solid rgba(255, 213, 30, 0.24);
  border-radius: 8px;
}

.chat-ready-card strong{
  color: #a6ff00;
  font-size: 18px;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #050505;
}

.chat-ready-card small{
  color: #d8ecff;
  line-height: 1.45;
}

.notifications-panel{
  background:
    radial-gradient(circle at top left, rgba(166, 255, 0, 0.16), transparent 36%),
    linear-gradient(135deg, rgba(29, 155, 240, 0.12), rgba(232, 16, 117, 0.1), rgba(255, 213, 30, 0.12)),
    rgba(18, 15, 25, 0.94);
}

.notification-actions{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.notification-actions button{
  min-height: 38px;
}

.notification-list{
  display: grid;
  gap: 8px;
}

.notification-card{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px;
  background: rgba(5, 5, 5, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.notification-card.unread{
  border-color: rgba(166, 255, 0, 0.62);
  box-shadow: inset 0 0 0 1px rgba(166, 255, 0, 0.16);
}

.notification-card strong,
.notification-card p,
.notification-card small{
  display: block;
}

.notification-card strong{
  color: #ffffff;
  font-size: 15px;
  text-transform: uppercase;
}

.notification-card p{
  margin: 3px 0;
  color: #d8ecff;
  font-size: 13px;
  font-weight: 800;
}

.notification-card small{
  color: #9fa4ad;
  font-size: 10px;
  font-weight: 900;
}

.settings-panel{
  background:
    linear-gradient(135deg, rgba(255, 213, 30, 0.14), rgba(166, 255, 0, 0.08), rgba(29, 155, 240, 0.1)),
    rgba(18, 15, 25, 0.94);
}

.settings-card{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: rgba(5, 5, 5, 0.68);
  border: 1px solid rgba(255, 213, 30, 0.28);
  border-radius: 8px;
}

.settings-card h2,
.settings-card p{
  margin: 0;
}

.settings-card h2{
  color: #ffffff;
  font-size: 22px;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #050505, 3px 3px 0 rgba(166, 255, 0, 0.5);
}

.settings-card p{
  margin-top: 6px;
  color: #d8ecff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.settings-actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.settings-actions button{
  min-width: 132px;
}

.dev-actions{
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(110px, auto) minmax(110px, auto);
  align-items: center;
  width: 100%;
}

.dev-actions input,
.dev-actions select{
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  color: #ffffff;
  background: rgba(5, 5, 5, 0.68);
  border: 1px solid rgba(255, 213, 30, 0.28);
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
}

.dev-panel{
  border-color: rgba(255, 45, 45, 0.35);
}

.settings-input,
.settings-textarea{
  grid-column: 1 / -1;
  width: 100%;
  padding: 12px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(29, 155, 240, 0.5);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  box-shadow: inset 0 0 18px rgba(29, 155, 240, 0.12);
}

.settings-input{
  min-height: 46px;
}

.settings-textarea{
  min-height: 92px;
  resize: vertical;
}

.settings-input::placeholder,
.settings-textarea::placeholder{
  color: rgba(216, 236, 255, 0.6);
}

.settings-actions a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 104px;
  padding: 10px 12px;
  color: #ffffff;
  background: rgba(18, 15, 30, 0.82);
  border: 1px solid rgba(255, 213, 30, 0.34);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 1000;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
}

.settings-note{
  grid-column: 1 / -1;
  color: #b9b9b9;
  font-weight: 900;
}

.server-time-grid{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.server-time-grid span:not(.settings-note){
  display: grid;
  gap: 3px;
  padding: 9px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 213, 30, 0.16);
  border-radius: 8px;
}

.server-time-grid strong,
.server-time-grid small{
  display: block;
}

.server-time-grid strong{
  color: #a6ff00;
  font-size: 12px;
  text-transform: uppercase;
}

.server-time-grid small{
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.subsection-title{
  margin-top: 14px;
}

.toggle-button.active{
  color: #050505;
  background: linear-gradient(180deg, #a6ff00, #77c900);
}

.toggle-button.danger{
  color: #ffffff;
  background: linear-gradient(180deg, #e81075, #761443);
  border-color: rgba(255, 255, 255, 0.24);
}

.demo-preview-overlay{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: grid;
  grid-template-columns: auto auto auto auto;
  gap: 8px;
  align-items: center;
  max-width: min(760px, calc(100vw - 32px));
  padding: 10px;
  color: #ffffff;
  background: rgba(5, 5, 7, 0.88);
  border: 2px solid rgba(255, 213, 30, 0.74);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.54);
}

.demo-preview-overlay strong{
  color: #a6ff00;
  font-size: 16px;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #050505;
}

.demo-preview-overlay span{
  min-width: 220px;
  color: #d8ecff;
  font-size: 12px;
  font-weight: 900;
}

.demo-preview-overlay button,
.demo-preview-overlay a{
  min-height: 34px;
  padding: 7px 10px;
  color: #050505;
  background: #ffd51e;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.chat-layout{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.chat-box{
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: rgba(5, 5, 5, 0.58);
  border: 1px solid rgba(255, 213, 30, 0.2);
  border-radius: 8px;
}

.chat-box-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-box-head strong{
  color: #ffffff;
  font-size: 17px;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #050505, 3px 3px 0 rgba(166, 255, 0, 0.3);
}

.chat-box-head button,
.message-compose button{
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
}

.chat-channel-grid,
.dm-player-grid{
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.chat-channel-button,
.dm-player-button{
  display: grid;
  gap: 2px;
  min-width: 128px;
  padding: 9px 10px;
  color: #ffffff;
  text-align: left;
  background: #0a0810;
  border: 1px solid #2c2436;
  border-radius: 8px;
}

.chat-channel-button.active,
.dm-player-card.active .dm-player-button{
  color: #050505;
  background: #ffd51e;
  border-color: #fff3a1;
}

.chat-channel-button strong,
.dm-player-button span{
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

.chat-channel-button small,
.dm-player-button small{
  font-size: 11px;
  opacity: 0.78;
}

.dm-player-card{
  display: grid;
  gap: 6px;
  min-width: 178px;
  padding: 6px;
  background: rgba(5, 5, 5, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.dm-player-card.blocked{
  opacity: 0.62;
}

.dm-player-button{
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  width: 100%;
}

.dm-player-button img{
  grid-row: span 2;
  width: 34px;
  height: 34px;
  object-fit: cover;
  background: #050505;
  border: 1px solid rgba(255, 213, 30, 0.6);
  border-radius: 7px;
}

.social-actions{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.social-actions button{
  min-height: 32px;
  padding: 6px 8px;
  font-size: 11px;
}

.message-list{
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 260px;
  max-height: 360px;
  overflow-y: auto;
  padding: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.message-bubble{
  display: grid;
  max-width: 82%;
  padding: 7px 9px;
  background: rgba(13, 26, 39, 0.86);
  border: 1px solid rgba(29, 155, 240, 0.24);
  border-radius: 8px;
}

.message-bubble.own-message{
  justify-self: end;
  background: rgba(45, 55, 10, 0.88);
  border-color: rgba(166, 255, 0, 0.32);
}

.message-bubble strong,
.message-bubble p,
.message-bubble small{
  display: block;
}

.message-bubble strong{
  color: #ffd51e;
  font-size: 10px;
  text-transform: uppercase;
}

.message-bubble p{
  margin: 2px 0;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.message-bubble small{
  color: #9fa4ad;
  font-size: 9px;
  font-weight: 800;
}

.message-compose{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.message-compose input{
  min-height: 42px;
  min-width: 0;
  padding: 10px 12px;
  color: #ffffff;
  background: #0a0810;
  border: 1px solid #2c2436;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
}

.empty-message{
  margin: 0;
  color: #9fa4ad;
  font-weight: 900;
}

.social-box{
  align-content: start;
}

.social-list-block{
  display: grid;
  gap: 6px;
}

.player-search{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.player-search input{
  min-height: 42px;
  min-width: 0;
  padding: 10px 12px;
  color: #ffffff;
  background: #0a0810;
  border: 1px solid #2c2436;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
}

.player-search button{
  min-height: 42px;
  padding: 8px 12px;
  font-size: 13px;
}

.player-search-results{
  display: grid;
  gap: 8px;
}

.player-search-card{
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px;
  background: rgba(10, 8, 16, 0.9);
  border: 1px solid rgba(29, 155, 240, 0.24);
  border-radius: 8px;
}

.player-search-card.blocked{
  opacity: 0.64;
}

.player-search-card img{
  grid-row: span 2;
  width: 44px;
  height: 44px;
  object-fit: cover;
  background: #050505;
  border: 1px solid rgba(255, 213, 30, 0.65);
  border-radius: 8px;
}

.player-search-card strong,
.player-search-card small{
  display: block;
}

.player-search-card strong{
  color: #ffd51e;
  font-size: 14px;
  text-transform: uppercase;
}

.player-search-card small{
  color: #9fa4ad;
  font-size: 11px;
  font-weight: 800;
}

.player-search-card .social-actions{
  grid-column: 2;
}

.social-list{
  display: grid;
  gap: 7px;
  min-height: 86px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.social-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: rgba(10, 8, 16, 0.9);
  border: 1px solid rgba(255, 213, 30, 0.16);
  border-radius: 8px;
}

.social-row.blocked-row{
  border-color: rgba(232, 16, 117, 0.3);
}

.social-row.request-row{
  border-color: rgba(29, 155, 240, 0.3);
}

.social-row span{
  color: #ffffff;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.social-row button{
  min-height: 32px;
  padding: 6px 9px;
  font-size: 11px;
}

.rewards-panel{
  background:
    linear-gradient(135deg, rgba(255, 213, 30, 0.14), rgba(166, 255, 0, 0.08), rgba(232, 16, 117, 0.1)),
    rgba(18, 15, 25, 0.94);
}

.reward-center-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.reward-card{
  display: grid;
  gap: 10px;
  padding: 12px;
  background: rgba(5, 5, 5, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.reward-card.ready{
  border-color: rgba(255, 213, 30, 0.66);
  box-shadow: inset 0 0 0 1px rgba(255, 213, 30, 0.08), 0 10px 24px rgba(255, 213, 30, 0.08);
}

.reward-card strong{
  display: block;
  color: #ffffff;
  font-size: 18px;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #050505, 3px 3px 0 rgba(166, 255, 0, 0.28);
}

.reward-card small{
  display: block;
  margin-top: 3px;
  color: #b9b9b9;
  line-height: 1.35;
}

.reward-prizes{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.character-panel{
  background:
    linear-gradient(135deg, rgba(166, 255, 0, 0.12), rgba(29, 155, 240, 0.1), rgba(232, 16, 117, 0.1)),
    rgba(18, 15, 25, 0.94);
}

.character-hero{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.72), rgba(5, 5, 5, 0.48)),
    url("../images/bando-world-order.jpeg") center / cover no-repeat;
  border: 1px solid rgba(255, 213, 30, 0.28);
  border-radius: 8px;
}

.character-avatar{
  width: 104px;
  height: 104px;
  object-fit: cover;
  background: #050505;
  border: 3px solid #ffd51e;
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(5, 5, 5, 0.72), 0 0 22px rgba(255, 213, 30, 0.2);
}

.character-hero h1{
  color: #ffffff;
  font-size: 28px;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #050505, 4px 4px 0 rgba(166, 255, 0, 0.32);
}

.character-hero small{
  display: block;
  margin: 4px 0 10px;
  color: #d8ecff;
  font-weight: 900;
  text-transform: uppercase;
}

.pvp-panel{
  background:
    radial-gradient(circle at top left, rgba(255, 213, 30, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(232, 16, 117, 0.12), rgba(166, 255, 0, 0.1), rgba(29, 155, 240, 0.1)),
    rgba(18, 15, 25, 0.94);
}

.pvp-summary{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.pvp-stat-card{
  min-height: 92px;
}

.pvp-log{
  margin-top: 12px;
  padding: 12px;
  background: rgba(5, 5, 5, 0.62);
  border: 1px solid rgba(255, 213, 30, 0.22);
  border-radius: 8px;
}

.pvp-log strong{
  display: block;
  margin-bottom: 8px;
  color: #ffd51e;
  font-size: 16px;
  text-transform: uppercase;
}

.pvp-log p{
  margin: 6px 0;
  color: #d8ecff;
  font-size: 13px;
  font-weight: 800;
}

.pvp-log b{
  color: #a6ff00;
}

#pvpOpponentGrid{
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
}

#pvpOpponentGrid .pvp-rival-card{
  height: 100%;
  min-height: 176px;
  grid-template-rows: auto auto auto auto 1fr auto auto;
  align-content: start;
  gap: 6px;
  padding: 10px;
}

#pvpOpponentGrid .pvp-rival-card strong{
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.12;
}

#pvpOpponentGrid .pvp-rival-card small{
  font-size: 12px;
  line-height: 1.25;
}

#pvpOpponentGrid .pvp-rival-card .mini-pill{
  padding: 4px 7px;
  font-size: 11px;
  line-height: 1.1;
}

#pvpOpponentGrid .pvp-rival-card button{
  align-self: end;
  min-height: 42px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.05;
}

#pvpOpponentGrid .pvp-player-card{
  min-height: 184px;
  grid-template-rows: auto auto auto 1fr;
  align-content: stretch;
  gap: 8px;
}

.pvp-cloud-card{
  border-color: rgba(29, 155, 240, 0.48);
  box-shadow: inset 0 0 0 1px rgba(29, 155, 240, 0.12);
}

.mini-avatar{
  width: 56px;
  height: 56px;
  object-fit: cover;
  background: #050505;
  border: 2px solid #ffd51e;
  border-radius: 8px;
}

.pvp-player-head{
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-width: 0;
}

.pvp-player-head > div{
  min-width: 0;
}

#pvpOpponentGrid .pvp-player-head strong,
#pvpOpponentGrid .pvp-player-head small{
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

#pvpOpponentGrid .pvp-player-head strong{
  white-space: nowrap;
}

#pvpOpponentGrid .pvp-player-head small{
  margin-top: 3px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pvp-player-stats{
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

#pvpOpponentGrid .pvp-player-stats .mini-pill{
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pvp-player-record{
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pvp-player-actions{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  align-self: end;
}

#pvpOpponentGrid .pvp-player-actions button{
  min-height: 38px;
  padding: 7px 8px;
  font-size: 11px;
}

.holder-hero strong,
.holder-hero p{
  display: block;
}

.holder-hero strong{
  color: #ffffff;
  font-size: 20px;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #050505, 3px 3px 0 rgba(166, 255, 0, 0.35);
}

.holder-hero p{
  margin: 6px 0 10px;
  color: #cfcfcf;
  font-size: 13px;
  line-height: 1.4;
}

.holder-controls{
  display: grid;
  grid-template-columns: 120px minmax(170px, auto) minmax(210px, auto);
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.holder-controls label{
  display: grid;
  gap: 6px;
  color: #b9b9b9;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.holder-controls input{
  min-height: 44px;
  width: 100%;
  padding: 10px 12px;
  color: #ffffff;
  background: #0a0810;
  border: 1px solid #2c2436;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
}

.holder-tier-card .mini-pill{
  margin-right: 5px;
}

.leaderboard-panel{
  background:
    linear-gradient(135deg, rgba(166, 255, 0, 0.1), rgba(232, 16, 117, 0.08), rgba(38, 162, 255, 0.1)),
    rgba(18, 15, 25, 0.94);
}

.leaderboard-controls{
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(160px, 1.2fr) repeat(3, minmax(130px, auto));
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.leaderboard-controls label{
  color: #b9b9b9;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.leaderboard-controls input{
  min-height: 44px;
  width: 100%;
  padding: 10px 12px;
  color: #ffffff;
  background: #0a0810;
  border: 1px solid #2c2436;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
}

.leaderboard-score-card{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  background: rgba(5, 5, 5, 0.64);
  border: 1px solid rgba(255, 213, 30, 0.24);
  border-radius: 8px;
}

.leaderboard-score-card span{
  color: #b9b9b9;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.leaderboard-score-card strong{
  color: #a6ff00;
  font-size: 28px;
  text-shadow: 2px 2px 0 #050505, 3px 3px 0 rgba(232, 16, 117, 0.42);
}

.leaderboard-board-tabs{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 12px;
}

.leaderboard-board-tabs button{
  min-height: 38px;
  padding: 8px 4px;
  color: #ffffff;
  background: #16121f;
  border-color: rgba(255, 255, 255, 0.12);
  font-size: 10px;
  line-height: 1.05;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: clip;
  white-space: nowrap;
}

.leaderboard-board-tabs button.active{
  color: #050505;
  background: linear-gradient(180deg, #fff36b, #ffd51e);
  border-color: #fff9a7;
}

.leaderboard-grid{
  display: grid;
  gap: 8px;
}

.leaderboard-row{
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(92px, auto);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #0a0810;
  border: 1px solid #2c2436;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}

.leaderboard-row:hover,
.leaderboard-row:focus-visible{
  background: rgba(13, 21, 34, 0.88);
  border-color: rgba(29, 155, 240, 0.72);
  outline: none;
  transform: translateY(-1px);
}

.leaderboard-row.player-row{
  border-color: rgba(255, 213, 30, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 213, 30, 0.1);
}

.leaderboard-row strong{
  color: #ffd51e;
  font-size: 18px;
}

.leaderboard-row span,
.leaderboard-row small,
.leaderboard-row b{
  display: block;
}

.leaderboard-row span{
  color: #ffffff;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.leaderboard-row small{
  margin-top: 3px;
  color: #9fa4ad;
  font-size: 12px;
}

.leaderboard-row b{
  color: #a6ff00;
  text-align: right;
  overflow-wrap: anywhere;
}

.leaderboard-row b small{
  margin: 0 0 2px;
  color: #ffd51e;
  font-size: 9px;
}

.wide-panel-art{
  width: 100%;
  max-height: 170px;
  margin-bottom: 12px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #2c2436;
}

.achievement-card{
  padding: 12px;
  background: #0a0810;
  border: 1px solid #2c2436;
  border-radius: 8px;
  opacity: 0.58;
}

.achievement-card.unlocked{
  opacity: 1;
  border-color: rgba(255, 213, 30, 0.75);
}

.achievement-card strong,
.achievement-card small,
.achievement-card span{
  display: block;
}

.achievement-card small{
  margin-top: 5px;
  color: #b9b9b9;
}

.achievement-card span{
  margin-top: 9px;
  color: #ffd51e;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.primary-action{
  width: 100%;
  min-height: 54px;
  height: 54px;
  font-size: 19px;
}

.action-card{
  min-width: 0;
}

.action-card button{
  width: 100%;
  min-height: 44px;
  height: 44px;
  padding: 9px 12px;
}

.save-data-box{
  flex: 1 1 100%;
  min-height: 92px;
  padding: 10px;
  color: #ffffff;
  background: #0a0810;
  border: 1px solid #2c2436;
  border-radius: 8px;
  font: 12px/1.4 monospace;
  resize: vertical;
}

.auth-panel{
  flex: 1 1 100%;
  padding: 16px;
  border: 1px solid rgba(255, 213, 30, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 213, 30, 0.12), rgba(29, 155, 240, 0.08)),
    #0a0810;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.auth-panel-head,
.auth-linked{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-panel-head{
  margin-bottom: 12px;
}

.auth-panel h2{
  margin: 2px 0 0;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #5ca800;
}

.auth-status-pill{
  max-width: 340px;
  padding: 9px 11px;
  color: #101010;
  background: #ffd51e;
  border: 2px solid #fff176;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  text-align: right;
  text-transform: uppercase;
}

.auth-form{
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(150px, 1fr) auto auto;
  gap: 10px;
}

.auth-form input{
  min-width: 0;
  padding: 12px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 213, 30, 0.34);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.auth-linked strong,
.auth-linked small{
  display: block;
}

.auth-linked strong{
  color: #9cff00;
  font-size: 20px;
  text-transform: uppercase;
}

.auth-linked small{
  max-width: 100%;
  color: #c9c1d1;
  font-size: 12px;
  font-weight: 900;
  word-break: break-word;
}

.autosave-status{
  flex: 1 1 180px;
  padding: 10px 12px;
  color: #ffd51e;
  background: #0a0810;
  border: 1px solid #2c2436;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cloud-status{
  color: #d8ecff;
  border-color: rgba(29, 155, 240, 0.4);
}

.section-title{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 12px;
}

h1,
h2,
p{
  margin: 0;
}

h1{
  font-size: 24px;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #050505, 4px 4px 0 rgba(255, 213, 30, 0.28);
}

h2{
  font-size: 18px;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #050505, 3px 3px 0 rgba(29, 155, 240, 0.26);
}

.business-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.buy-mode-bar{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 6px;
  background: rgba(5, 5, 5, 0.6);
  border: 1px solid rgba(255, 213, 30, 0.26);
  border-radius: 8px;
}

.buy-mode-bar span{
  padding: 0 6px;
  color: #ffd51e;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.buy-mode-bar button{
  min-height: 30px;
  min-width: 42px;
  padding: 6px 9px;
  color: #d8ecff;
  background: #0a0810;
  border-color: #2c2436;
  border-radius: 6px;
  font-size: 11px;
  box-shadow: none;
}

.buy-mode-bar button.active{
  color: #050505;
  background: #ffd51e;
  border-color: rgba(255, 213, 30, 0.82);
}

.buy-mode-bar button.locked,
.buy-mode-bar button:disabled{
  color: rgba(216, 236, 255, 0.42);
  background: rgba(5, 5, 5, 0.55);
  border-color: rgba(255, 255, 255, 0.08);
  opacity: 0.65;
}

.business-card{
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(232, 16, 117, 0.13), transparent 34%),
    #120f19;
  border: 1px solid #2c2436;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.business-card.locked-card{
  opacity: 0.62;
}

.business-card.locked-card .business-img{
  filter: grayscale(0.85);
}

.business-img{
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: contain;
  padding: 8px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 213, 0, 0.18), transparent 28%),
    radial-gradient(circle at 86% 24%, rgba(29, 155, 240, 0.16), transparent 30%),
    linear-gradient(135deg, #06050a 0%, #17101f 52%, #09080d 100%);
  border-bottom: 3px solid #e81075;
}

.business-card.no-business-image{
  background:
    linear-gradient(135deg, rgba(255, 213, 30, 0.12), transparent 38%),
    linear-gradient(145deg, rgba(29, 155, 240, 0.11), transparent 64%),
    #120f19;
}

.business-text-badge{
  min-height: 74px;
  display: grid;
  align-content: end;
  gap: 3px;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.78), rgba(5, 5, 5, 0.36)),
    repeating-linear-gradient(90deg, rgba(255, 213, 30, 0.12) 0 1px, transparent 1px 42px);
  border-bottom: 1px solid rgba(255, 213, 30, 0.28);
}

.business-text-badge span{
  overflow: hidden;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-shadow: 2px 2px 0 #050505, 3px 3px 0 rgba(166, 255, 0, 0.35);
  text-transform: uppercase;
  white-space: nowrap;
}

.business-text-badge small{
  color: #ffd51e;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.business-body{
  display: grid;
  gap: 14px;
  padding: 14px;
}

.business-body p{
  margin-top: 5px;
  color: #b9b9b9;
  font-size: 14px;
}

.business-stats{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.business-stats span{
  color: #cfcfcf;
  white-space: nowrap;
}

.status-pill{
  padding: 10px 12px;
  color: #cfcfcf;
  background: #0a0810;
  border: 1px solid #2c2436;
  border-radius: 999px;
}

.status-pill.active{
  color: #111;
  background: #ffd51e;
}

button{
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 213, 30, 0.55);
  border-radius: 8px;
  background: #ffd51e;
  color: #050505;
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.26);
  box-shadow: 0 0 0 1px rgba(5, 5, 5, 0.18) inset, 0 8px 18px rgba(255, 213, 30, 0.12);
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

button.primary-action{
  background: linear-gradient(180deg, #ffe76a, #ffd51e);
  color: #050505;
  border-color: #ffe76a;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
}

button:not(:disabled):hover{
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(5, 5, 5, 0.18) inset, 0 10px 22px rgba(255, 213, 30, 0.17);
}

button:not(:disabled):active{
  transform: translateY(0);
  filter: brightness(0.98);
}

@media (hover: none), (pointer: coarse){
  button:not(:disabled):hover,
  button:not(:disabled):active{
    transform: none;
    filter: none;
  }

  .action-panel button{
    transform: translateY(0) translateZ(0);
    transition: transform 80ms ease, filter 80ms ease, box-shadow 80ms ease, border-color 80ms ease;
  }

  .action-panel button:not(:disabled):active{
    transform: translateY(3px) scale(0.985) translateZ(0);
    filter: brightness(0.94) saturate(1.08);
    box-shadow:
      0 0 0 1px rgba(5, 5, 5, 0.26) inset,
      0 3px 0 rgba(5, 5, 5, 0.72),
      0 8px 14px rgba(0, 0, 0, 0.32);
  }

  .action-panel{
    overscroll-behavior: contain;
  }
}

button:disabled{
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

@media (max-width: 1100px){
  body{
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .hero{
    padding-bottom: 8px;
  }

  .game-shell{
    padding: 10px 10px 18px;
  }

  .mobile-player-hud{
    position: sticky;
    top: 0;
    z-index: 16;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(78px, 0.7fr) minmax(62px, 0.5fr) 42px;
    gap: 6px;
    padding: 7px 10px;
    background:
      linear-gradient(135deg, rgba(255, 213, 30, 0.12), rgba(232, 16, 117, 0.08), rgba(29, 155, 240, 0.12)),
      rgba(5, 5, 9, 0.95);
    border-bottom: 1px solid rgba(255, 213, 30, 0.22);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(14px);
  }

  .walkthrough-panel{
    grid-template-columns: minmax(78px, 27vw) minmax(0, 1fr);
    gap: 10px;
    min-height: 142px;
    border-width: 3px;
  }

  .walkthrough-copy{
    gap: 8px;
  }

  .walkthrough-speaker{
    padding: 4px 7px;
    font-size: 9px;
  }

  .walkthrough-copy h2{
    font-size: clamp(20px, 5.4vw, 30px);
  }

  .walkthrough-copy p{
    font-size: clamp(14px, 4.1vw, 22px);
    line-height: 1.12;
  }

  .walkthrough-actions{
    gap: 7px;
  }

  .walkthrough-actions button{
    min-height: 34px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .hud-profile,
  .hud-resource,
  .hud-alert{
    min-width: 0;
    min-height: 42px;
    padding: 5px 7px;
    color: #ffffff;
    background: rgba(12, 10, 18, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: inset 0 -2px 0 rgba(255, 213, 30, 0.1);
    text-align: left;
  }

  .hud-profile{
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 7px;
    align-items: center;
  }

  .hud-profile img{
    width: 32px;
    height: 32px;
    object-fit: cover;
    background: #050505;
    border: 2px solid #ffd51e;
    border-radius: 8px;
  }

  .hud-profile span,
  .hud-profile strong,
  .hud-profile small,
  .hud-resource strong{
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hud-profile strong{
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
  }

  .hud-profile small{
    margin-top: 3px;
    color: #b9c7d8;
    font-size: 9px;
    line-height: 1;
    text-transform: uppercase;
  }

  .hud-resource{
    display: grid;
    align-content: center;
    gap: 2px;
  }

  .hud-resource span{
    color: #ffd51e;
    font-size: 9px;
    line-height: 1;
  }

  .hud-resource strong{
    color: #a6ff00;
    font-size: 13px;
    line-height: 1;
    text-shadow: 1px 1px 0 #050505;
  }

  .hud-alert{
    position: relative;
    display: grid;
    place-items: center;
    color: #050505;
    background: linear-gradient(180deg, #fff16b, #ffd51e);
    text-align: center;
  }

  .hud-alert span{
    font-size: 20px;
    line-height: 1;
  }

  .hud-alert b{
    display: none;
  }

  .hud-alert b.show{
    display: none;
  }

  .mobile-bottom-nav{
    display: grid;
  }

  .mobile-event-strip{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 10px;
  }

  .mobile-event-strip button{
    display: grid;
    gap: 2px;
    min-width: 0;
    min-height: 44px;
    padding: 7px 6px;
    color: #ffffff;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent),
      rgba(8, 7, 13, 0.92);
    border-color: rgba(255, 213, 30, 0.24);
    border-radius: 8px;
    box-shadow: inset 0 -2px 0 rgba(166, 255, 0, 0.12);
  }

  .mobile-event-strip span{
    color: #9fb7d7;
    font-size: 9px;
    line-height: 1;
    text-transform: uppercase;
  }

  .mobile-event-strip strong{
    overflow: hidden;
    color: #ffd51e;
    font-size: 11px;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .tab-nav{
    position: sticky;
    top: 56px;
    z-index: 14;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    overflow-x: visible;
    margin-bottom: 8px;
  }

  .tab-group{
    min-width: 0;
  }

  .tab-row{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    overflow-x: visible;
    scrollbar-width: none;
  }

  .tab-row::-webkit-scrollbar{
    display: none;
  }

  .tab-button{
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 6px 3px;
    display: inline-grid;
    place-items: center;
    font-size: clamp(7px, 1.65vw, 8px);
    line-height: 1.05;
    overflow: hidden;
    overflow-wrap: normal;
    text-overflow: clip;
    white-space: nowrap;
  }

  .system-fab{
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(max(8px, env(safe-area-inset-bottom)) + 72px);
    width: 44px;
    min-height: 44px;
  }

  .social-alert-fab{
    display: none;
  }

  .system-dock{
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(max(8px, env(safe-area-inset-bottom)) + 124px);
  }

  .progress-panel,
  .mini-grid,
  .stats-panel-grid,
  .combat-intel-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gear-reward-summary{
    grid-template-columns: 1fr;
  }

  .avatar-collection-summary{
    grid-template-columns: 1fr;
  }

  .gear-reward-stat{
    min-height: 62px;
  }

  .stats-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-grid span{
    font-size: 16px;
  }

  .shop-panel,
  .achievements-panel,
  .progress-panel,
  .event-panel{
    padding: 10px;
  }

  .mini-card,
  .stat-card,
  .reward-card,
  .settings-card,
  .chat-box{
    padding: 9px;
  }
}

button.danger{
  color: #ffffff;
  background: #3a3345;
  border-color: #524861;
  box-shadow: none;
}

.risk-actions button,
.event-panel button,
.save-panel button:not(.danger),
.progress-card button{
  color: #ffffff;
  background: #1d9bf0;
  border-color: rgba(29, 155, 240, 0.65);
  box-shadow: 0 8px 18px rgba(29, 155, 240, 0.12);
  text-shadow: 2px 2px 0 rgba(5, 5, 5, 0.45);
}

@media (max-width: 560px){
  body{
    padding-bottom: calc(216px + env(safe-area-inset-bottom));
  }

  .hero{
    padding-bottom: 8px;
  }

  .game-shell{
    padding-left: 8px;
    padding-right: 8px;
  }

  .avatar{
    width: 44px;
    height: 44px;
  }

  .banner{
    width: min(58vw, 220px);
    max-height: 44px;
  }

  .brand-title{
    font-size: 15px;
  }

  .collection-banner{
    height: 76px;
    margin-top: 6px;
  }

  .banner-nft-strip{
    inset: -22px -14px;
    gap: 4px;
  }

  .banner-nft-strip img{
    height: 118px;
  }

  .tagline{
    font-size: 11px;
  }

  .tab-nav{
    top: calc(max(0px, env(safe-area-inset-top)) + 52px);
    gap: 7px;
    margin-bottom: 10px;
    padding: 6px;
  }

  .tab-group{
    padding: 5px;
  }

  .tab-group > span{
    margin-bottom: 4px;
    font-size: 9px;
  }

  .tab-row{
    gap: 4px;
  }

  .tab-button{
    min-height: 34px;
    padding: 5px 2px;
    font-size: clamp(6.2px, 1.75vw, 7px);
    line-height: 1.05;
    overflow: hidden;
    overflow-wrap: normal;
    text-overflow: clip;
    white-space: nowrap;
  }

  .mobile-player-hud{
    grid-template-columns: minmax(0, 1.2fr) minmax(68px, 0.68fr) minmax(54px, 0.45fr) 40px;
    padding: 6px 8px;
  }

  .hud-profile,
  .hud-resource,
  .hud-alert{
    min-height: 40px;
    padding: 5px 6px;
  }

  .hud-profile{
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 6px;
  }

  .hud-profile img{
    width: 30px;
    height: 30px;
  }

  .hud-profile strong{
    font-size: 11px;
  }

  .hud-profile small{
    font-size: 8px;
  }

  .hud-resource span{
    font-size: 8px;
  }

  .hud-resource strong{
    font-size: 11px;
  }

  .mobile-event-strip{
    gap: 5px;
  }

  .mobile-event-strip button{
    min-height: 40px;
    padding: 6px 4px;
  }

  .mobile-event-strip span{
    font-size: 8px;
  }

  .mobile-event-strip strong{
    font-size: 10px;
  }

  .profile-info{
    padding: 4px;
  }

  .profile-overlay{
    width: 100%;
    min-height: 124px;
    gap: 7px;
    padding: 10px 104px 34px 10px;
    background:
      linear-gradient(90deg, rgba(5, 5, 5, 0.8), rgba(5, 5, 5, 0.5)),
      url("../images/bando-world-order.jpeg") center / cover no-repeat;
  }

  .profile-avatar{
    width: 34px;
    height: 34px;
  }

  .profile-copy h1{
    font-size: 15px;
  }

  .profile-copy p,
  .profile-copy strong{
    font-size: 10px;
  }

  .profile-world-tag{
    left: 10px;
    bottom: 8px;
    min-height: 24px;
    padding: 5px 8px;
    font-size: 9px;
  }

  .profile-links{
    top: 8px;
    right: 8px;
    margin-top: 0;
  }

  .profile-links a{
    min-height: 28px;
    padding: 6px 8px;
    font-size: 10px;
  }

  .player-profile-card{
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
  }

  .player-profile-avatar{
    width: 58px;
    height: 58px;
  }

  .player-profile-main{
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .player-profile-main h1{
    font-size: 18px;
  }

  .player-profile-main > button{
    min-height: 30px;
  }

  .player-profile-id{
    max-width: 100%;
    font-size: 10px;
  }

  .player-profile-stats{
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-editor-body{
    grid-template-columns: 1fr;
  }

  .profile-editor-avatar{
    width: 78px;
    height: 78px;
  }

  .profile-editor-actions{
    grid-template-columns: 1fr;
  }

  .public-profile-hero{
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .public-profile-hero img{
    width: 84px;
    height: 84px;
  }

  .public-profile-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-profile-actions{
    grid-template-columns: 1fr;
  }

  .character-hero{
    grid-template-columns: 1fr;
  }

  .character-avatar{
    width: 84px;
    height: 84px;
  }

  .buy-mode-bar{
    display: flex;
    width: 100%;
  }

  .buy-mode-bar button{
    flex: 1;
    min-width: 0;
  }

  .cash-panel,
  .action-panel,
  .save-panel,
  .progress-panel,
  .event-panel,
  .achievements-panel,
  .shop-panel{
    margin-bottom: 10px;
    padding: 12px;
  }

  .player-profile-card,
  .cash-panel{
    margin-bottom: 8px;
  }

  .money{
    font-size: 30px;
    -webkit-text-stroke-width: 1px;
    text-shadow:
      1px 1px 0 #ffffff,
      4px 4px 0 #050505,
      6px 6px 0 rgba(232, 16, 117, 0.6),
      0 0 18px rgba(166, 255, 0, 0.28);
  }

  .money.compact-money{
    font-size: 25px;
  }

  .money.tiny-money{
    font-size: 22px;
  }

  .cash-panel{
    padding: 10px;
    background:
      linear-gradient(90deg, rgba(5, 5, 5, 0.82), rgba(5, 5, 5, 0.58)),
      linear-gradient(135deg, rgba(255, 213, 30, 0.22), rgba(232, 16, 117, 0.1) 42%, rgba(29, 155, 240, 0.16)),
      #120f19;
  }

  .auto-claim-card{
    align-items: stretch;
  }

  .auto-claim-card small{
    flex-basis: 100%;
    text-align: left;
  }

  .auto-claim-card button{
    width: 100%;
  }

  .money-hud-row span{
    font-size: 10px;
    padding: 6px 8px;
  }

  .stats-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
  }

  .stats-grid div{
    padding: 7px 8px;
  }

  .stats-grid span{
    font-size: 15px;
  }

  .xp-row{
    margin-top: 8px;
  }

  .action-panel button,
  .save-panel button,
  .event-panel button{
    width: 100%;
  }

  .auth-panel-head,
  .auth-linked{
    align-items: stretch;
    flex-direction: column;
  }

  .auth-status-pill{
    max-width: none;
    text-align: left;
  }

  .auth-form{
    grid-template-columns: 1fr;
  }

  .risk-actions{
    grid-template-columns: 1fr;
    width: 100%;
  }

  .action-panel{
    position: fixed;
    left: 50%;
    bottom: calc(max(8px, env(safe-area-inset-bottom)) + 64px);
    z-index: 24;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    width: min(500px, calc(100vw - 18px));
    margin: 0;
    padding: 7px;
    background:
      linear-gradient(135deg, rgba(255, 213, 30, 0.1), rgba(232, 16, 117, 0.08), rgba(29, 155, 240, 0.1)),
      rgba(12, 10, 18, 0.96);
    border: 1px solid rgba(255, 213, 30, 0.28);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transform: translateX(-50%) translateZ(0);
    backdrop-filter: blur(12px);
  }

  .primary-action{
    grid-column: 1 / -1;
    min-height: 42px;
    height: 42px;
    padding-inline: 8px;
    font-size: clamp(14px, 4.3vw, 16px);
    letter-spacing: 0;
    align-content: center;
    padding-bottom: 8px;
  }

  .risk-actions{
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .risk-actions button{
    min-height: 34px;
    height: 34px;
    padding: 5px 5px;
    font-size: clamp(8px, 2.3vw, 10px);
    line-height: 1;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
  }

  .action-card{
    width: auto;
    min-width: 0;
  }

  .action-card button{
    min-height: 30px;
    height: 30px;
    padding-inline: 6px;
    font-size: clamp(7px, 1.9vw, 9px);
    line-height: 1;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
  }

  .system-fab{
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(max(8px, env(safe-area-inset-bottom)) + 218px);
    z-index: 26;
    width: 38px;
    min-height: 38px;
    font-size: 10px;
  }

  .system-dock{
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(max(8px, env(safe-area-inset-bottom)) + 268px);
    z-index: 26;
  }

  .holder-hero{
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
  }

  .holder-hero img{
    width: 72px;
    height: 72px;
  }

  .holder-controls{
    grid-template-columns: 1fr;
  }

  .chat-layout{
    grid-template-columns: 1fr;
  }

  .dev-actions{
    grid-template-columns: 1fr;
  }

  .message-list{
    min-height: 220px;
    max-height: 300px;
  }

  .message-compose{
    grid-template-columns: 1fr;
  }

  .player-search{
    grid-template-columns: 1fr;
  }

  .settings-card{
    grid-template-columns: 1fr;
  }

  .settings-actions{
    justify-content: stretch;
  }

  .settings-actions button{
    width: 100%;
  }

  .demo-preview-overlay{
    left: 10px;
    right: 10px;
    bottom: 10px;
    grid-template-columns: 1fr 1fr;
  }

  .demo-preview-overlay span{
    grid-column: 1 / -1;
    min-width: 0;
  }

  .pvp-summary{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-bottom-nav{
    width: calc(100vw - 12px);
    gap: 4px;
    padding: 6px;
  }

  .mobile-nav-button{
    min-height: 48px;
    padding: 5px 3px;
  }

  .mobile-nav-button span{
    min-height: 20px;
    font-size: 11px;
  }

  .mobile-nav-button b{
    font-size: 8px;
  }

  .leaderboard-controls{
    grid-template-columns: 1fr;
  }

  .leaderboard-row{
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .leaderboard-row b{
    grid-column: 2;
    text-align: left;
  }
}

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