:root {
  --bg-main: #050505;
  --bg-sidebar: #0a0a0a;
  --bg-card: #0a0a0a;
  --bg-card-hover: #141414;
  --bg-elevated: #0d0d0d;
  --bg-slot: #0d0d0d;
  --border-subtle: #232323;
  --border-slot: #2e2e2e;
  --orange-solid: #f7931e;
  --orange-hover: #ffcf4d;
  --orange-dark: #7a3f00;
  --on-orange: #140a00;
  --text-white: #f5f2ec;
  --text-silver: #9a958c;
  --text-dim: #5c584f;
  --font-sans: "Minecraft", "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "Minecraft", 'JetBrains Mono', monospace;
}

@font-face {
  font-family: "Minecraft";
  src: url("fonts/MinecraftRegular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Minecraft";
  src: url("fonts/MinecraftBold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-white);
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

.launcher-app {
  display: flex;
  width: 100vw;
  height: 100vh;
  position: relative;
  background-color: var(--bg-main);
  overflow: hidden;
}

.launcher-content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.top-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 clamp(32px, 4.5vw, 64px);
  background: transparent;
  z-index: 20;
  flex-shrink: 0;
}

.nav-pills-group {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-pill {
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  padding: 8px 2px;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-pill:hover {
  color: var(--orange-solid);
}

.nav-pill.active {
  color: var(--orange-solid);
  border-color: var(--orange-solid);
  font-weight: 800;
}

.nav-user-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.user-display-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-silver);
  transition: color 0.15s ease;
}

.nav-user-profile:hover .user-display-name {
  color: var(--text-white);
}

.user-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  border: 2px solid var(--border-subtle);
  background-color: var(--bg-elevated);
  image-rendering: pixelated;
  flex-shrink: 0;
}

.launcher-right-strip {
  width: clamp(64px, 4.5vw, 76px);
  background-color: var(--bg-sidebar);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18px;
  flex-shrink: 0;
  z-index: 50;
}

.strip-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.strip-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 2px solid var(--border-subtle);
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.strip-logo-wrap:hover .strip-logo-img {
  border-color: var(--orange-solid);
}

.strip-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translate(6px, -50%);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: #ff55ff;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

.strip-logo-wrap:hover .strip-tooltip {
  opacity: 1;
  transform: translate(0, -50%);
}

.views-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.giant-watermark-outline {
  position: absolute;
  right: clamp(40px, 6vw, 120px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(440px, 46vw, 720px);
  height: clamp(440px, 46vw, 720px);
  background-image: url('assets/branding/eagleranked_icon.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
}

.tab-pane {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  overflow-y: auto;
  overflow-x: hidden;
}

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

.home-canvas-layout {
  display: flex;
  width: 100%;
  height: calc(100vh - 72px);
  padding: clamp(28px, 4.5vh, 56px) clamp(36px, 5vw, 84px);
  align-items: center;
}

.home-left-column {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 3.8vh, 42px);
}

.client-brand-header {
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand-crown-icon {
  width: 92px;
  height: 92px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text-top {
  font-size: clamp(34px, 2.6vw, 44px);
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text-white);
}

.brand-text-bottom {
  font-size: clamp(34px, 2.6vw, 44px);
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--text-white);
}

.launch-action-row {
  display: flex;
  align-items: center;
}

.crystal-launch-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background-color: var(--orange-solid);
  color: var(--text-white);
  border: 3px solid var(--orange-dark);
  border-radius: 10px;
  padding: 14px 34px 12px 22px;
  cursor: pointer;
  text-shadow: 2px 2px 0 var(--orange-dark);
  box-shadow: inset -3px -3px 0 #c96a12, inset 3px 3px 0 #ffb55c;
  image-rendering: pixelated;
  transition: transform 0.08s ease, filter 0.15s ease;
}

.crystal-launch-btn:hover {
  filter: brightness(1.08);
}

.crystal-launch-btn:active {
  transform: translateY(2px);
  box-shadow: inset -3px -3px 0 #c96a12;
}

.crystal-launch-btn span {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-white);
}

.play-icon-ring {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  flex-shrink: 0;
}

.recent-news-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}

.recent-news-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-white);
}

.news-preview-card {
  width: clamp(380px, 26vw, 460px);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.news-banner-frame {
  position: relative;
  width: 100%;
  height: 165px;
  overflow: hidden;
}

.news-banner-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 22, 0.65);
}

.news-banner-graphics {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.banner-mini-crown {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.banner-main-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.banner-sub-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--orange-solid);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.news-card-details {
  display: flex;
  flex-direction: column;
  padding: 14px 18px 18px;
  gap: 12px;
}

.news-release-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-silver);
}

.news-readmore-btn {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-radius: 9px;
  background-color: var(--orange-solid);
  color: var(--on-orange);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.news-readmore-btn:hover {
  background-color: var(--orange-hover);
}

.kits-canvas-layout {
  display: flex;
  flex-direction: column;
  padding: 24px clamp(32px, 4.5vw, 64px);
  gap: 20px;
  height: 100%;
}

.kits-header-strip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.kits-guide-hint {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
}

.modes-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
  overflow-y: auto;
  padding-bottom: 32px;
}

.mode-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 22px 24px;
  gap: 16px;
  min-height: 155px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.mode-card:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.14);
}

.mode-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mode-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.mode-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mode-card-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-white);
}

.mode-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.tag-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-silver);
}

.tag-badge.orange-tag {
  background-color: var(--orange-solid) !important;
  color: var(--on-orange) !important;
  font-weight: 800;
  font-size: 12px;
}

.mode-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.mode-count-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-silver);
}

.mode-count-box svg {
  width: 17px;
  height: 17px;
  color: var(--text-dim);
}

.mode-arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-silver);
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mode-arrow-btn svg {
  width: 17px;
  height: 17px;
}

.mode-card:hover .mode-arrow-btn {
  background-color: var(--orange-solid);
  color: var(--on-orange);
}

.leaderboard-canvas-layout {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 24px clamp(32px, 4.5vw, 64px);
  gap: 24px;
}

.leaderboard-panel {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 22px;
  overflow: hidden;
}

.ranks-panel {
  width: clamp(340px, 24vw, 420px);
  flex-shrink: 0;
}

.ladder-panel {
  flex: 1;
}

.panel-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.panel-headline h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-white);
}

.panel-headline span {
  font-size: 14px;
  font-weight: 800;
  color: var(--orange-solid) !important;
}

.mode-filter-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  padding: 6px 14px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  cursor: pointer;
  outline: none;
}

.mode-filter-select option {
  background: var(--bg-elevated);
  color: var(--text-white);
}

.ranks-tier-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
}

.rank-row-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

.rank-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.rank-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rank-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
}

.rank-requirement {
  font-size: 12px;
  color: var(--text-dim);
}

.rank-points-badge {
  font-size: 12px;
  font-weight: 800;
  color: var(--on-orange) !important;
  background-color: var(--orange-solid) !important;
  padding: 4px 10px;
  border-radius: 6px;
}

.ladder-table-container {
  flex: 1;
  overflow-y: auto;
}

.ladder-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.ladder-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
}

.ladder-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.pos-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-weight: 900;
  font-size: 13px;
  background-color: var(--orange-solid) !important;
  color: var(--on-orange) !important;
}

.pos-pill.pos-2 {
  background-color: #c7ccd1 !important;
  color: var(--on-orange) !important;
}

.pos-pill.pos-3 {
  background-color: #cd7f32 !important;
  color: var(--on-orange) !important;
}

.player-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  image-rendering: pixelated;
}

.player-name-bold {
  font-weight: 700;
  color: var(--text-white);
  font-size: 15px;
}

.region-tag {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-silver);
}

.auth-split-layout {
  display: flex;
  width: 100%;
  height: 100%;
}

.auth-card-column {
  width: clamp(420px, 32vw, 500px);
  min-width: 380px;
  background-color: var(--bg-card);
  border-right: 1px solid var(--border-subtle);
  padding: 48px clamp(28px, 4vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.auth-client-branding {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.auth-heading-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-white);
}

.auth-heading-sub {
  font-size: 14px;
  color: var(--text-silver);
  line-height: 1.4;
}

.auth-mode-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 18px;
}

.switch-pill {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-silver);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.switch-pill.active {
  background-color: var(--orange-solid);
  color: var(--on-orange);
}

.auth-inputs-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-input-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px;
  gap: 10px;
  transition: border-color 0.15s ease;
}

.field-input-box:focus-within {
  border-color: var(--orange-solid);
}

.field-icon {
  color: var(--text-dim);
  display: flex;
}

.field-input-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 13px;
}

.field-input-box input::placeholder {
  color: var(--text-dim);
}

.field-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding: 2px 2px;
}

.checkbox-remember {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-silver);
  cursor: pointer;
}

.checkbox-remember input {
  accent-color: var(--orange-solid);
}

.text-link-button {
  background: transparent;
  border: none;
  color: var(--orange-solid);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.auth-primary-submit {
  width: 100%;
  padding: 12px 0;
  border-radius: 8px;
  border: none;
  background-color: var(--orange-solid);
  color: var(--on-orange);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: background-color 0.15s ease;
}

.auth-primary-submit:hover {
  background-color: var(--orange-hover);
}

.auth-switch-link-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-silver);
  margin-top: 8px;
}

.text-action-link {
  background: transparent;
  border: none;
  color: var(--orange-solid);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.auth-alert-message {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.auth-alert-message.error {
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.3);
  color: #fca5a5;
}

.auth-alert-message.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.profile-avatar-square {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 2px solid var(--orange-solid);
  image-rendering: pixelated;
  background: var(--bg-elevated);
}

.tag-pill-orange {
  font-size: 10px;
  font-weight: 700;
  background-color: var(--orange-solid);
  color: var(--on-orange);
  padding: 2px 8px;
  border-radius: 4px;
}

.tag-pill-gray {
  font-size: 10px;
  color: var(--text-silver);
}

.profile-metrics-quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metric-cell {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  gap: 2px;
}

.metric-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.metric-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-white);
}

.profile-action-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px 22px;
  font-size: 12px;
  color: var(--text-silver);
}

.signout-button {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid rgba(225, 29, 72, 0.3);
  background: rgba(225, 29, 72, 0.1);
  color: #fca5a5;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.signout-button:hover {
  background: #e11d48;
  color: #fff;
}

.auth-visual-column {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-backdrop-photo {
  position: absolute;
  inset: 0;
}

.auth-colosseum-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(0.8);
}

.auth-dark-shade-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg-card) 0%, rgba(10, 10, 10, 0.4) 60%, var(--bg-card) 100%);
}

.auth-hero-character-box {
  position: relative;
  z-index: 2;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-hero-character-img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.profile-screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
}

.profile-screen-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.profile-screen-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.32) saturate(0.85);
}

.profile-screen-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 15%, rgba(10, 10, 10, 0.2) 0%, rgba(10, 10, 10, 0.78) 65%, rgba(10, 10, 10, 0.94) 100%);
}

.profile-screen-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(32px, 6vh, 72px) clamp(20px, 4vw, 40px) 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.profile-screen-card {
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px 22px;
}

.profile-screen-card-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-silver);
  margin-bottom: 16px;
}

.profile-screen-top {
  display: flex;
  align-items: center;
  gap: 24px;
}

.profile-screen-render {
  width: 96px;
  height: 128px;
  object-fit: contain;
  object-position: top;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.profile-screen-id {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.profile-screen-name {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.profile-screen-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.profile-facts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.profile-facts > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-facts dt {
  font-size: 12px;
  color: var(--text-dim);
}

.profile-facts dd {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  margin: 0;
  text-align: right;
}

.profile-screen-link {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange-solid);
}

.profile-screen-link:hover {
  color: var(--orange-hover);
}

.profile-discord-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-silver);
}

.profile-discord-status img {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
}

.profile-skin-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-skin-raw {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  image-rendering: pixelated;
  flex-shrink: 0;
}

.profile-skin-upload {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.profile-skin-pick {
  width: auto;
  padding: 10px 24px;
}

.profile-skin-hint {
  font-size: 12px;
  color: var(--text-dim);
}

.profile-session-buttons {
  display: flex;
  gap: 10px;
}

@media (max-width: 720px) {
  .profile-screen-name {
    font-size: 24px;
  }
  .profile-screen-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-screen-render {
    width: 80px;
    height: 106px;
  }
  .profile-facts {
    max-width: none;
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.skin-choice {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 220;
}

.skin-choice-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  width: 340px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.skin-choice-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-white);
  text-align: center;
  margin-bottom: 18px;
}

.skin-choice-options {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.skin-choice-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.skin-choice-option:hover,
.skin-choice-option:focus-visible {
  border-color: var(--orange-solid);
  background: rgba(247, 147, 30, 0.08);
}

.skin-choice-option img {
  width: 72px;
  height: 96px;
  object-fit: contain;
  image-rendering: pixelated;
}

.skin-choice-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
}

.skin-choice-cancel {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 0;
  color: var(--text-silver);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.skin-choice-cancel:hover {
  border-color: var(--orange-solid);
  color: var(--text-white);
}

.kit-editor-backdrop {
  background: rgba(5, 5, 5, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: stretch;
  justify-content: stretch;
}

.kit-editor-shell {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.kit-editor-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.kit-editor-back {
  background: transparent;
  border: none;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 4px;
}

.kit-editor-back:hover {
  color: var(--orange-solid);
}

.kit-editor-topbar-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  color: var(--text-white);
}

.kit-editor-topbar-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  image-rendering: pixelated;
}

.kit-editor-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 16px clamp(20px, 4vw, 48px);
  flex-shrink: 0;
}

.kit-editor-tab {
  position: relative;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.kit-editor-tab:hover {
  background: rgba(255, 255, 255, 0.08);
}

.kit-editor-tab.active {
  border-color: var(--orange-solid);
  background: rgba(247, 147, 30, 0.1);
}

.kit-editor-tab img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  image-rendering: pixelated;
}

.kit-editor-tab-advanced-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #39ff6a;
  border: 1.5px solid var(--bg-main);
}

.kit-editor-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 16px clamp(20px, 4vw, 48px) 32px;
  overflow: auto;
}

.kit-editor-card {
  background: rgba(10, 10, 10, 0.88);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kit-editor-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.kit-editor-card-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.kit-editor-card-mode {
  font-size: 13px;
  font-weight: 800;
  color: var(--orange-solid);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.kit-editor-row {
  display: flex;
  gap: 6px;
}

.kit-editor-armor-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kit-editor-section-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.news-dialog-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  width: 580px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.dialog-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.dialog-mode-headline {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dialog-mode-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.dialog-mode-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-white);
}

.dialog-mode-sub {
  font-size: 13px;
  color: var(--orange-solid) !important;
  font-weight: 800;
}

.kit-variant-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 3px;
  margin-right: 8px;
  flex-shrink: 0;
}

.variant-pill {
  border: none;
  background: transparent;
  color: var(--text-silver);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.variant-pill.active {
  background-color: var(--orange-solid);
  color: var(--on-orange);
}

.dialog-dismiss-btn {
  background: transparent;
  border: none;
  color: var(--text-silver);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
}

.dialog-dismiss-btn:hover {
  color: var(--text-white);
}

.inv-main-grid {
  display: grid;
  grid-template-columns: repeat(9, 48px);
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px;
  justify-content: safe center;
  overflow-x: auto;
  max-width: 100%;
}

.inv-hotbar-grid {
  display: grid;
  grid-template-columns: repeat(9, 48px);
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px;
  justify-content: safe center;
  overflow-x: auto;
  max-width: 100%;
}

.inv-slot {
  width: 48px;
  height: 48px;
  background: var(--bg-slot);
  border: 2px solid var(--border-slot);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.inv-slot:hover {
  border-color: var(--orange-solid);
}

.inv-slot-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: pixelated;
}

.inv-slot-count {
  position: absolute;
  right: 3px;
  bottom: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-white);
  text-shadow: 1px 1px 0 #000;
  pointer-events: none;
}

.inv-slot-glint {
  position: absolute;
  pointer-events: none;
  mask-image: var(--glint-mask);
  -webkit-mask-image: var(--glint-mask);
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 40%,
    rgba(136, 56, 255, 0.55) 48%,
    rgba(210, 140, 255, 0.85) 50%,
    rgba(136, 56, 255, 0.55) 52%,
    transparent 60%,
    transparent 100%
  );
  background-size: 250% 250%;
  mix-blend-mode: color-dodge;
  animation: enchant-glint 2.4s linear infinite;
}

@keyframes enchant-glint {
  0% { background-position: 120% -20%; }
  100% { background-position: -20% 120%; }
}

.leather-armor-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leather-armor-tint {
  position: absolute;
  width: 36px;
  height: 36px;
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  mix-blend-mode: multiply;
  opacity: 0.85;
  pointer-events: none;
}

.kit-prepots-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.kit-prepots-label {
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.6px;
}

.kit-prepot-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--text-white);
  font-weight: 700;
}

.kit-unavailable-message {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

.block-cube {
  position: absolute;
  width: 26px;
  height: 26px;
  transform-style: preserve-3d;
  transform: rotateX(-30deg) rotateY(45deg);
}

.block-face {
  position: absolute;
  width: 26px;
  height: 26px;
  background-size: cover;
  image-rendering: pixelated;
  backface-visibility: hidden;
}

.block-face--top { transform: rotateX(90deg) translateZ(13px); filter: brightness(1.15); }
.block-face--left { transform: translateZ(13px); filter: brightness(0.85); }
.block-face--right { transform: rotateY(90deg) translateZ(13px); filter: brightness(0.65); }

.shield-3d {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 160px;
}

.shield-face {
  width: 30px;
  height: 30px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated;
  transform: rotateY(-28deg) rotateX(6deg);
  box-shadow: -4px 3px 0 rgba(0, 0, 0, 0.4);
}

.potion-icon {
  position: absolute;
  width: 36px;
  height: 36px;
}

.potion-liquid {
  position: absolute;
  inset: 0;
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}

.potion-overlay-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.kit-aside-info {
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kit-character-frame {
  width: 100%;
  height: 100%;
  min-height: 420px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kit-character-img {
  max-height: 95%;
  max-width: 95%;
  object-fit: contain;
}

.news-dialog-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-date-tag {
  font-size: 11px;
  color: var(--orange-solid);
  font-weight: 700;
}

.news-body-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-silver);
}

.item-tooltip-box {
  position: fixed;
  background: #120e1a;
  border: 2px solid #3d2366;
  border-radius: 4px;
  padding: 6px 10px;
  pointer-events: none;
  z-index: 500;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.tooltip-item-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-white);
}

.tooltip-item-enchants {
  font-size: 11px;
  color: #c084fc;
}

.tooltip-item-lore {
  font-size: 10px;
  color: var(--text-silver);
}

.toast-popup-strip {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  max-width: min(440px, calc(100vw - 48px));
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--orange-solid);
  border-radius: 8px;
  padding: 14px 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  z-index: 300;
}

.toast-popup-strip span {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.4;
}

.toast-popup-strip.is-error {
  border-left-color: #ff4c4c;
  background-color: rgba(255, 76, 76, 0.1);
}

.toast-popup-strip.is-error span {
  color: #ff8080;
}

.hidden {
  display: none !important;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 1200px) {
  .home-left-column {
    max-width: 460px;
    gap: 24px;
  }
  .news-preview-card {
    width: 380px;
  }
  .modes-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
  .ranks-panel {
    width: 320px;
  }
}

@media (max-width: 960px) {
  .launcher-right-strip {
    width: 58px;
  }
  .top-navbar {
    padding: 0 20px;
    height: 64px;
  }
  .home-canvas-layout {
    height: auto;
    min-height: calc(100vh - 64px);
    padding: 24px 20px;
  }
  .kits-canvas-layout {
    padding: 20px;
  }
  .leaderboard-canvas-layout {
    flex-direction: column;
    padding: 20px;
    height: auto;
    overflow-y: auto;
  }
  .ranks-panel {
    width: 100%;
    max-height: 280px;
  }
  .ladder-panel {
    width: 100%;
  }
  .auth-split-layout {
    flex-direction: column;
  }
  .auth-card-column {
    width: 100%;
    min-width: unset;
    padding: 32px 24px;
  }
  .auth-visual-column {
    display: none;
  }
  .kit-dialog-box {
    width: 95vw;
  }
  .kit-dialog-content {
    flex-direction: column;
  }
  .kit-aside-info {
    width: 100%;
  }
}

@media (max-height: 800px) {
  .top-navbar {
    height: 60px;
  }
  .home-canvas-layout {
    height: calc(100vh - 60px);
    padding: 16px clamp(28px, 4vw, 56px);
  }
  .home-left-column {
    gap: 18px;
  }
  .brand-crown-icon {
    width: 76px;
    height: 76px;
  }
  .brand-text-top,
  .brand-text-bottom {
    font-size: 32px;
  }
  .crystal-launch-btn {
    padding: 12px 36px 12px 18px;
  }
  .crystal-launch-btn span {
    font-size: 16px;
  }
  .news-preview-card {
    width: 360px;
  }
  .news-banner-frame {
    height: 120px;
  }
  .recent-news-block {
    gap: 8px;
  }
  .mode-card {
    min-height: 140px;
    padding: 16px 18px;
    gap: 12px;
  }
}
