/* ═══════════════════════════════════════════════════════════════════
   SCOOPCAST MULTIPLAYER ROOM SETUP CONSOLE
   Pure Neobrutalism Design System | Brand New From Scratch
   Heavy 3.5px-4px Solid Borders | 0px Blur Hard Drop Shadows
   Canary Yellow & Retro Arcade Palette | Minimalist Typography
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --neo-bg-canvas: #FFFDF0;
  --neo-card-surface: #FFFFFF;
  --neo-black: #111827;
  --neo-yellow: #FFE600;
  --neo-yellow-light: #FEF08A;
  --neo-cyan: #38BDF8;
  --neo-cyan-light: #BAE6FD;
  --neo-green: #22C55E;
  --neo-green-light: #86EFAC;
  --neo-coral: #FF5376;
  --neo-coral-light: #FECDD3;
  --neo-purple: #C084FC;
  --neo-purple-light: #E9D5FF;
  --neo-border-width: 3.5px;
  --neo-border: var(--neo-border-width) solid var(--neo-black);
  --neo-shadow-sm: 2px 2px 0px var(--neo-black);
  --neo-shadow-md: 4px 4px 0px var(--neo-black);
  --neo-shadow-lg: 8px 8px 0px var(--neo-black);
  --wizard-accent-gold: var(--neo-yellow);
  --wizard-text-muted: #4B5563;
}

/* ── Modal Backdrop ── */
.gw-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gw-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ── Main Arcade Dialog Deck ── */
.gw-dialog {
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--neo-bg-canvas);
  border: 4px solid var(--neo-black);
  border-radius: 20px;
  box-shadow: var(--neo-shadow-lg);
  overflow: hidden;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gw-modal-overlay.active .gw-dialog {
  transform: scale(1) translateY(0);
}

/* ── Top Header Bar ── */
.gw-header {
  padding: 16px 20px 14px 20px;
  border-bottom: 4px solid var(--neo-black);
  background: var(--neo-yellow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.gw-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gw-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--neo-black);
  color: var(--neo-yellow);
  padding: 6px 12px;
  border-radius: 8px;
  border: 2px solid var(--neo-black);
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
}

.gw-brand-tag svg {
  color: var(--neo-yellow);
  width: 14px;
  height: 14px;
}

.gw-close-btn {
  background: #FFFFFF;
  border: 2.5px solid var(--neo-black);
  box-shadow: 2.5px 2.5px 0px var(--neo-black);
  color: var(--neo-black);
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 900;
  transition: all 0.12s ease;
}

.gw-close-btn:hover {
  background: var(--neo-coral);
  color: #FFFFFF;
  transform: translate(-1.5px, -1.5px);
  box-shadow: 4px 4px 0px var(--neo-black);
}

.gw-close-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0.5px 0.5px 0px var(--neo-black);
}

/* ── Cartridge-Style Stepper Rack (Tactile Step Navigation) ── */
.gw-stepper-rack,
.gw-stepper {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gw-step-tab,
.gw-step-node {
  background: #FFFFFF;
  border: 2.5px solid var(--neo-black);
  border-radius: 10px;
  box-shadow: 2.5px 2.5px 0px var(--neo-black);
  padding: 8px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.gw-step-tab .gw-tab-num {
  font-weight: 900;
  opacity: 0.6;
}

.gw-step-tab:hover:not(.active) {
  transform: translate(-1px, -1px);
  box-shadow: 3.5px 3.5px 0px var(--neo-black);
  background: #FFFDF0;
}

.gw-step-tab.active,
.gw-step-node.active {
  background: var(--neo-black);
  color: var(--neo-yellow);
  border-color: var(--neo-black);
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.25);
  transform: translate(-1px, -1px);
}

.gw-step-tab.active .gw-tab-num {
  opacity: 1;
  color: var(--neo-yellow);
}

.gw-step-tab.completed,
.gw-step-node.completed {
  background: var(--neo-green-light);
  color: #14532D;
}

/* Fallback legacy stepper support */
.gw-step-pill {
  display: none;
}
.gw-step-labels {
  display: none;
}

/* ── Content Body ── */
.gw-content-body {
  padding: 22px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--neo-bg-canvas);
}

.gw-content-body::-webkit-scrollbar {
  width: 9px;
}
.gw-content-body::-webkit-scrollbar-track {
  background: #F3F0D9;
  border-left: 2.5px solid var(--neo-black);
}
.gw-content-body::-webkit-scrollbar-thumb {
  background: var(--neo-yellow);
  border: 2.5px solid var(--neo-black);
  border-radius: 999px;
}

.gw-step-pane {
  display: none;
  flex-direction: column;
  gap: 18px;
  animation: gwPaneIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.gw-step-pane.active {
  display: flex;
}

@keyframes gwPaneIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Minimalist Section Titles ── */
.gw-step-title-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gw-screen-title {
  font-family: 'Lilita One', var(--font-display, sans-serif);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--neo-black);
  margin: 0;
  line-height: 1;
}

/* ── STEP 1: Challenge Types Multi-Select ── */

/* ── STEP 2: Challenge Types Multi-Select ── */
.gw-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.gw-sec-card {
  background: var(--neo-card-surface);
  border: 3.5px solid var(--neo-black);
  border-radius: 16px;
  box-shadow: var(--neo-shadow-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.gw-sec-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--neo-black);
}

.gw-sec-card.selected {
  background: var(--neo-yellow-light);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--neo-black);
}

.gw-sec-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.gw-sec-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 2.5px solid var(--neo-black);
  box-shadow: 2px 2px 0px var(--neo-black);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neo-black);
  flex-shrink: 0;
}

.gw-sec-icon-wrap svg,
.gw-sec-icon-wrap .ui-icon {
  width: 26px !important;
  height: 26px !important;
  flex-shrink: 0;
}

.gw-sec-title {
  font-family: 'Lilita One', sans-serif;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--neo-black);
}

.gw-checkbox-pill {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 2.5px solid var(--neo-black);
  box-shadow: 2px 2px 0px var(--neo-black);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  color: transparent;
  transition: all 0.12s ease;
}

.gw-sec-card.selected .gw-checkbox-pill {
  background: var(--neo-green);
  color: #FFFFFF;
}

.gw-selected-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  background: var(--neo-green-light);
  border: 2.5px solid var(--neo-black);
  box-shadow: 2px 2px 0px var(--neo-black);
  border-radius: 999px;
  color: #14532D;
}

/* ── STEP 3: Rounds Stepper & Arcade Ticket ── */
.gw-rounds-config-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gw-round-row-card {
  background: var(--neo-card-surface);
  border: 3.5px solid var(--neo-black);
  border-radius: 16px;
  box-shadow: var(--neo-shadow-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gw-round-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gw-round-sec-name {
  font-family: 'Lilita One', sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--neo-black);
}

.gw-round-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gw-step-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 2.5px solid var(--neo-black);
  box-shadow: 2.5px 2.5px 0px var(--neo-black);
  color: var(--neo-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, monospace);
  font-weight: 900;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
}

.gw-step-btn:hover {
  background: var(--neo-yellow);
  transform: translate(-1px, -1px);
  box-shadow: 3.5px 3.5px 0px var(--neo-black);
}

.gw-step-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0.5px 0.5px 0px var(--neo-black);
}

input.gw-stepper-val,
.gw-stepper-input {
  width: 56px;
  height: 42px;
  padding: 0 4px;
  text-align: center;
  font-family: 'Lilita One', var(--font-mono, monospace);
  font-size: 22px;
  font-weight: 900;
  color: var(--neo-black);
  background: #FFFFFF;
  border: 2.5px solid var(--neo-black);
  border-radius: 10px;
  box-shadow: 2px 2px 0px var(--neo-black);
  cursor: text;
  user-select: text;
  transition: transform 0.1s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}

input.gw-stepper-val::-webkit-outer-spin-button,
input.gw-stepper-val::-webkit-inner-spin-button,
.gw-stepper-input::-webkit-outer-spin-button,
.gw-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input.gw-stepper-val:hover,
.gw-stepper-input:hover {
  background: var(--neo-yellow-light);
}

input.gw-stepper-val:focus,
.gw-stepper-input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--neo-black);
  box-shadow: 0 0 0 2px var(--neo-yellow), 2.5px 2.5px 0px var(--neo-black);
  transform: translateY(-1px);
}

.gw-stepper-input.fallback-warning {
  animation: neoShake 0.35s cubic-bezier(.36,.07,.19,.97) both;
  border-color: #EF4444 !important;
  background: #FEF2F2 !important;
}

@keyframes neoShake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
  40%, 60% { transform: translate3d(3px, 0, 0); }
}

/* ── Arcade Ticket Summary Bar ── */
.gw-rounds-summary-bar {
  background: var(--neo-cyan-light);
  border: 3.5px dashed var(--neo-black);
  box-shadow: var(--neo-shadow-md);
  border-radius: 16px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.gw-summary-text-group {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 2px;
}

.gw-summary-label {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neo-black);
}

.gw-summary-count {
  font-family: 'Lilita One', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--neo-black);
  background: var(--neo-yellow);
  padding: 4px 16px;
  border-radius: 10px;
  border: 2.5px solid var(--neo-black);
  box-shadow: 2px 2px 0px var(--neo-black);
}

/* ── STEP 3: Profile & Avatar Picker (Neobrutalism UI) ── */
#gwStepPane-3 {
  gap: 12px;
  min-height: 0;
  flex: 1 1 auto;
}

/* ── Profile Top Deck (2 Columns on Desktop) ── */
.gw-profile-top-deck {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  flex-shrink: 0;
  width: 100%;
}

.gw-profile-card {
  background: var(--neo-card-surface);
  border: 3.5px solid var(--neo-black);
  border-radius: 16px;
  box-shadow: var(--neo-shadow-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

.gw-field-label {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--neo-black);
  letter-spacing: 0.08em;
  display: block;
  line-height: 1.2;
}

.gw-input-wrapper {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.gw-name-input {
  width: 100%;
  height: 52px;
  background: #FFFFFF;
  border: 3px solid var(--neo-black);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 900;
  color: var(--neo-black);
  box-shadow: 2.5px 2.5px 0px var(--neo-black);
  outline: none;
  font-family: var(--font-mono, monospace);
  transition: all 0.12s ease;
  box-sizing: border-box;
}

.gw-name-input:focus {
  background: var(--neo-yellow-light);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px var(--neo-black);
}

.gw-field-hint {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 800;
  color: #6B7280;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Active Avatar Showcase (Big Preview) ── */
.gw-avatar-showcase-card {
  background: var(--neo-card-surface);
}

.gw-showcase-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-height: 60px;
  min-width: 0;
  overflow: hidden;
}

.gw-showcase-frame {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  border-radius: 12px;
  border: 2.5px solid var(--neo-black);
  box-shadow: 2.5px 2.5px 0px var(--neo-black);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: var(--neo-yellow);
}

.gw-showcase-frame img,
.gw-showcase-frame .img-contain-fit {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gw-showcase-check {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--neo-green);
  border: 1.5px solid var(--neo-black);
  border-radius: 999px;
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.gw-showcase-check svg {
  width: 10px !important;
  height: 10px !important;
}

.gw-showcase-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}

.gw-showcase-name {
  font-family: 'Lilita One', sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: var(--neo-black);
  letter-spacing: 0.02em;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.gw-showcase-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.gw-tag-cat,
.gw-tag-fmt {
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1.5px solid var(--neo-black);
  box-shadow: 1px 1px 0px var(--neo-black);
  white-space: nowrap;
  flex-shrink: 0;
}

.gw-tag-cat { background: var(--neo-yellow); color: var(--neo-black); }
.gw-tag-fmt { background: #FFFFFF; color: var(--neo-black); }

/* ── Avatar Studio Section ── */
.gw-avatar-studio-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  text-align: left;
}

.gw-studio-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
}

.gw-studio-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  flex-shrink: 0;
}

.gw-studio-search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.gw-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--neo-black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.gw-studio-search-input {
  width: 100%;
  height: 42px;
  background: #FFFFFF;
  border: 2.5px solid var(--neo-black);
  border-radius: 10px;
  padding: 0 36px 0 38px;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 800;
  color: var(--neo-black);
  box-shadow: 2px 2px 0px var(--neo-black);
  outline: none;
  box-sizing: border-box;
  min-width: 0;
}

.gw-studio-search-input:focus {
  background: var(--neo-yellow-light);
  box-shadow: 3px 3px 0px var(--neo-black);
}

.gw-studio-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--neo-black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
  z-index: 2;
}

.gw-studio-btn {
  height: 42px;
  padding: 0 14px;
  background: #FFFFFF;
  border: 2.5px solid var(--neo-black);
  border-radius: 10px;
  box-shadow: 2.5px 2.5px 0px var(--neo-black);
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--neo-black);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.gw-shuffle-btn:hover {
  background: var(--neo-yellow);
  transform: translate(-1px, -1px);
  box-shadow: 3.5px 3.5px 0px var(--neo-black);
}

.gw-upload-btn:hover {
  background: #F3F4F6;
  transform: translate(-1px, -1px);
  box-shadow: 3.5px 3.5px 0px var(--neo-black);
}

.gw-studio-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0.5px 0.5px 0px var(--neo-black);
}

.gw-studio-category-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  height: 38px;
  min-height: 38px;
  padding: 2px 2px 4px 2px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.gw-studio-category-bar::-webkit-scrollbar {
  height: 4px;
}
.gw-studio-category-bar::-webkit-scrollbar-thumb {
  background: var(--neo-black);
  border-radius: 4px;
}

.gw-studio-scroll-area {
  flex: 1 1 auto;
  min-height: 140px;
  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 3.5px solid var(--neo-black);
  border-radius: 14px;
  padding: 10px;
  background: #FFFFFF;
  box-shadow: inset 2px 2px 0px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.gw-studio-avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 8px;
}

#gwStepPane-3 .mp-circular-avatar-btn,
.gw-studio-avatar-grid .mp-circular-avatar-btn {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 48px;
  border-radius: 12px;
  border: 2.5px solid var(--neo-black);
  box-shadow: 2px 2px 0px var(--neo-black);
  position: relative;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.12s ease;
  box-sizing: border-box;
}

#gwStepPane-3 .mp-circular-avatar-btn:hover,
.gw-studio-avatar-grid .mp-circular-avatar-btn:hover {
  transform: translate(-1.5px, -1.5px) scale(1.05);
  box-shadow: 3.5px 3.5px 0px var(--neo-black);
  z-index: 2;
}

#gwStepPane-3 .mp-circular-avatar-btn.selected,
.gw-studio-avatar-grid .mp-circular-avatar-btn.selected {
  border-color: var(--neo-black);
  box-shadow: 0 0 0 2px var(--neo-yellow), 3px 3px 0px var(--neo-black);
  transform: scale(1.05);
  z-index: 3;
}

#gwStepPane-3 .mp-avatar-item-check,
.gw-studio-avatar-grid .mp-avatar-item-check {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: var(--neo-green);
  border: 1.5px solid var(--neo-black);
  border-radius: 999px;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

/* ── Bottom Tactile Action Footer ── */
.gw-footer {
  padding: 16px 20px 18px 20px;
  border-top: 4px solid var(--neo-black);
  background: var(--neo-bg-canvas);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gw-footer-spacer {
  flex: 1;
}

.gw-btn-back:not([style*="display: none"]):not([style*="display:none"]) ~ .gw-footer-spacer {
  display: none !important;
}

.gw-btn-back {
  background: #FFFFFF;
  border: 3px solid var(--neo-black);
  box-shadow: 3px 3px 0px var(--neo-black);
  color: var(--neo-black);
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 18px;
  height: 50px;
  box-sizing: border-box;
  white-space: nowrap;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.12s ease;
  flex-shrink: 0;
}

.gw-btn-back:hover {
  background: #F3F4F6;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px var(--neo-black);
}

.gw-btn-back:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--neo-black);
}

.gw-btn-primary {
  background: var(--neo-yellow);
  border: 3.5px solid var(--neo-black);
  box-shadow: var(--neo-shadow-md);
  color: var(--neo-black);
  font-family: 'Lilita One', var(--font-display, sans-serif);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 26px;
  height: 50px;
  box-sizing: border-box;
  white-space: nowrap;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 150px;
}

#gwEnterLobbyBtn.gw-btn-primary {
  background: var(--neo-green);
  color: #FFFFFF;
}

.gw-btn-primary:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--neo-black);
}

.gw-btn-primary:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--neo-black);
}

.gw-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: 2px 2px 0px var(--neo-black);
}

/* ── High-Contrast Toast Notice ── */
.gw-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: var(--neo-black);
  border: 3px solid var(--neo-yellow);
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.4);
  padding: 12px 20px;
  border-radius: 12px;
  color: #FFFFFF;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.gw-toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ── Lobby Badges & Preloaders ── */
.gw-locked-badge-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--neo-yellow-light);
  border: 2.5px solid var(--neo-black);
  box-shadow: 3px 3px 0px var(--neo-black);
  cursor: pointer;
}

.gw-locked-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--neo-black);
}

.gw-locked-detail {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
}

.gw-asset-notice-box {
  background: var(--neo-yellow-light);
  border: 2.5px solid var(--neo-black);
  box-shadow: 3px 3px 0px var(--neo-black);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  margin-top: 10px;
}

.gw-progress-track {
  width: 90px;
  height: 8px;
  background: #FFFFFF;
  border: 2px solid var(--neo-black);
  border-radius: 999px;
  overflow: hidden;
}

.gw-progress-fill {
  height: 100%;
  background: var(--neo-green);
  border-right: 2px solid var(--neo-black);
  transition: width 0.3s ease;
}

/* ── Mobile Responsive Overrides ── */
@media (max-width: 768px) {
  .gw-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  
  .gw-dialog {
    max-width: 100%;
    max-height: 94vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    box-shadow: 0 -6px 0px var(--neo-black);
  }

  .gw-header {
    padding: 14px 16px 10px 16px;
  }

  .gw-content-body {
    padding: 16px;
  }

  .gw-screen-title {
    font-size: 20px;
  }

  .gw-stepper-rack,
  .gw-stepper {
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    grid-template-columns: none;
    gap: 6px;
  }

  .gw-step-tab,
  .gw-step-node {
    padding: 6px 4px;
    font-size: 10px;
  }

  .gw-profile-top-deck,
  #gwStepPane-3 .mp-credentials-row-join {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gw-showcase-frame {
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
  }

  .gw-studio-search-bar,
  #gwStepPane-3 .mp-avatar-search-bar {
    flex-wrap: wrap;
    gap: 6px;
  }

  .gw-studio-search-input-wrap,
  #gwStepPane-3 .mp-avatar-search-input-wrap {
    min-width: 100%;
    width: 100%;
  }

  .gw-shuffle-btn,
  .gw-upload-btn,
  #gwStepPane-3 .mp-shuffle-btn,
  #gwStepPane-3 .mp-custom-upload-btn {
    flex: 1;
    font-size: 11px;
    padding: 0 10px;
    height: 38px;
  }

  .gw-studio-scroll-area,
  #gwStepPane-3 .mp-avatar-scroll-area {
    min-height: 130px;
    max-height: 180px;
  }

  .gw-footer {
    padding: 12px 16px 16px 16px;
  }

  .gw-btn-primary {
    flex: 1;
    padding: 12px 18px;
    font-size: 16px;
  }
}
