.tutorial-npc-walkzone {
  position: absolute;
  left: 56px;
  right: 56px;
  top: 112px;
  height: 150px;
  z-index: 2;
}
.tutorial-npc {
  position: absolute;
  left: 50px;
  bottom: 0;
  width: 48px;
  height: 48px;
  transform: scale(2);
  transform-origin: center bottom;
  image-rendering: pixelated;
  cursor: pointer;
}
.tutorial-npc-body,
.tutorial-npc-face,
.tutorial-npc-dot {
  position: absolute;
  image-rendering: pixelated;
  background-repeat: no-repeat;
}
.tutorial-npc-body {
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  background-image: url('../assets/chao/base/sapp_idle.png');
}
.tutorial-npc-face {
  left: 10px;
  top: 10px;
  width: 48px;
  height: 48px;
  transform-origin: top left;
}
.tutorial-npc-eyes {
  transform: scale(0.54);
  background-image: url('../assets/chao/eyes/eyes_neutral.png');
}
.tutorial-npc-mouth {
  transform: translate(10px, 14px) scale(0.24);
  background-image: url('../assets/chao/mouth/mouth1.png');
}
.tutorial-npc-dot {
  left: 50%;
  top: -31px;
  width: 48px;
  height: 48px;
  display: block;
  transform: translateX(-50%) translateX(-3px) scale(0.75);
  transform-origin: top center;
  background-image: url('../assets/dots/dot_default.png');
}
.tutorial-stand-counter {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 132px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(180deg, #f7d492, #ca8643);
  border: 3px solid #804b1b;
  z-index: 4;
}
.tutorial-stand-front {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 26px;
  height: 132px;
  padding: 16px 18px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f5d39d, #d1914d);
  border: 4px solid #7d481a;
  box-shadow: 0 8px 0 rgba(77, 42, 12, 0.45);
  color: #402108;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tutorial-stand-front-title {
  margin-top: 8px;
  text-align: center;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.05;
}
.tutorial-stand-front-sub {
  margin-top: 0;
  text-align: center;
  font-size: 24px;
  opacity: 0.9;
  font-weight: 900;
  letter-spacing: 1px;
}

#tutorial-npc-dialog-panel > .panel-body.tutorial-npc-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}
.tutorial-npc-speech-bubble {
  position: relative;
  padding: 14px 16px;
  border: 3px solid #4f2b0d;
  border-radius: 18px;
  background: #fff6e6;
  color: #3c2109;
  font-weight: 700;
  box-shadow: 0 4px 0 rgba(79, 43, 13, 0.28);
}
.tutorial-npc-speech-bubble::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: -12px;
  width: 18px;
  height: 18px;
  background: #fff6e6;
  border-right: 3px solid #4f2b0d;
  border-bottom: 3px solid #4f2b0d;
  transform: rotate(45deg);
}
.tutorial-npc-speech-text {
  position: relative;
  z-index: 1;
  font-size: 16px;
  line-height: 1.35;
}
.tutorial-npc-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tutorial-npc-menu button {
  min-height: 42px;
  border-radius: 10px;
  border: 2px solid #7d481a;
  background: linear-gradient(180deg, #f7dfb1, #dfac63);
  color: #402108;
  font-weight: 800;
  cursor: pointer;
}
.tutorial-npc-menu button:hover,
.tutorial-info-tab:hover {
  filter: brightness(1.03);
}

#tutorial-info-panel.panel {
  width: 860px;
  height: 620px;
  max-width: calc(var(--app-authored-width) - 32px);
  max-height: calc(var(--app-authored-height) - 32px);
}
#tutorial-info-panel > .panel-body.tutorial-info-body {
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(172,229,255,0.18) 0%, rgba(245,214,163,0.18) 100%);
}
.tutorial-info-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}
.tutorial-info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-right: 2px solid rgba(73, 43, 18, 0.18);
  background: linear-gradient(180deg, rgba(255,241,212,0.96), rgba(232,198,143,0.96));
}
.tutorial-info-tab {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid #7d481a;
  background: linear-gradient(180deg, #fff2d6, #e6b66e);
  color: #402108;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}
.tutorial-info-tab.active {
  background: linear-gradient(180deg, #ffe8b3, #f29a47);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.34);
}
.tutorial-info-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  padding: 18px 20px 20px;
  overflow: auto;
}
.tutorial-info-kicker {
  color: #8a4f18;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.tutorial-info-title {
  margin: 0;
  color: #341b07;
  font-size: 30px;
  line-height: 1.05;
}
.tutorial-info-summary {
  color: #4b2a0d;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
}
.tutorial-info-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tutorial-info-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.84);
  border: 2px solid rgba(125,72,26,0.55);
  color: #5a300d;
  font-weight: 800;
  font-size: 13px;
}
.tutorial-info-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
}
.tutorial-info-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 2px solid rgba(125,72,26,0.35);
  background: rgba(255,249,239,0.92);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45);
}
.tutorial-info-card-title {
  margin-bottom: 10px;
  color: #6a390f;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tutorial-info-list {
  margin: 0;
  padding-left: 20px;
  color: #3d220a;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}
.tutorial-info-bullets {
  list-style: disc;
}
.tutorial-info-list li + li {
  margin-top: 8px;
}


/* ============================================================
   Display pass patch51 — Friends/Profile owner migration
   Purpose: move the remaining social card shell/theme authority out
   of 99-legacy-overrides-b.css into the actual social owner file.
   ============================================================ */

/* Friends + Profile social cards */
#profile-panel > .panel-body.profile-body {
  background:
    radial-gradient(circle at top center, rgba(58, 95, 132, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(14, 22, 35, 0.94), rgba(8, 13, 21, 0.97));
}

#profile-panel .profile-section,
#profile-panel .profile-favchao-box,
#profile-panel .profile-favchao-box2,
#profile-panel .profile-scroll {
  border-radius: 18px;
  border: 1px solid rgba(112, 151, 193, 0.18);
  background: linear-gradient(180deg, rgba(18, 28, 43, 0.9), rgba(10, 16, 26, 0.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

#profile-panel .profile-section,
#profile-panel .profile-scroll {
  padding: 14px;
}

.profile-name-row,
.profile-id-row {
  border-radius: 14px;
}

.profile-name-value,
.profile-id-value,
#profile-panel button {
  border-radius: 12px;
}

.profile-name-value,
.profile-id-value {
  border: 1px solid rgba(117, 156, 198, 0.24);
  background: linear-gradient(180deg, rgba(8, 13, 20, 0.88), rgba(5, 9, 14, 0.94));
  color: #eef6ff;
}

.profile-edit-btn,
.profile-copy-btn,
.profile-choose-btn {
  border: 1px solid rgba(122, 165, 210, 0.32);
  background: linear-gradient(180deg, rgba(49, 72, 103, 0.95), rgba(24, 39, 59, 0.96));
  color: #eff5ff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.profile-edit-btn:hover,
.profile-copy-btn:hover,
.profile-choose-btn:hover {
  background: linear-gradient(180deg, rgba(63, 92, 129, 0.96), rgba(28, 46, 68, 0.98));
}

.profile-chao-header {
  color: #eef6ff;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

/* ============================================================
   Panel polish follow-up
   - finish Friends panel restyle
   - stop legacy arena top strips/body X buttons from fighting normalized headers
   ============================================================ */

/* Friends panel: bring it fully onto the new shell instead of the older local box styling */
#friends-panel > .panel-header.fp-header {
  min-height: var(--panel-header-h, 52px) !important;
  height: auto !important;
  padding: 10px 14px 11px !important;
  gap: 12px !important;
}

#friends-panel > .panel-header.fp-header .fp-title,
#friends-panel > .panel-header.fp-header .panel-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  color: #f2f7ff !important;
  text-transform: none !important;
}

#friends-panel .fp-self-row,
#friends-panel .fp-item {
  border-radius: 16px !important;
}

#friends-panel #fp-self,
#friends-panel .fp-list {
  border-radius: 18px !important;
  border: 1px solid rgba(112, 151, 193, 0.18) !important;
  background: linear-gradient(180deg, rgba(18, 28, 43, 0.9), rgba(10, 16, 26, 0.95)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

#friends-panel #fp-self {
  padding: 14px !important;
  gap: 10px !important;
}

#friends-panel .fp-self-row,
#friends-panel .fp-item {
  border: 1px solid rgba(116, 156, 198, 0.18);
  background: linear-gradient(180deg, rgba(18, 28, 43, 0.66), rgba(9, 15, 24, 0.82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

#friends-panel .fp-self-row {
  padding: 10px 12px;
}

#friends-panel input {
  border: 1px solid rgba(117, 156, 198, 0.24) !important;
  background: linear-gradient(180deg, rgba(8, 13, 20, 0.9), rgba(5, 9, 14, 0.96)) !important;
  color: #eef6ff !important;
  border-radius: 12px !important;
}

#friends-panel button {
  border: 1px solid rgba(122, 165, 210, 0.32);
  background: linear-gradient(180deg, rgba(49, 72, 103, 0.95), rgba(24, 39, 59, 0.96));
  color: #eff5ff;
  border-radius: 12px !important;
}

#friends-panel button:hover {
  filter: brightness(1.06);
}
