body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #e7e8f7;
}
.top-bar {
  width: 100%;
  padding: 10px 0;
  background: #5c7ff2;
  color: #fff;
  box-shadow: 0 2px 8px #b5c2e8;
  margin-bottom: 20px;
}
.currency {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  margin-right: 38px;
  font-size: 1em;
}
.currency-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.currency-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  border-radius: 50%;
  background: #f1d76a;
}
.currency-icon.stone {
  background: #bbb9ee;
}
.container {
  max-width: 470px;
  margin: 0 auto;
  background: #f8f8ff;
  border-radius: 18px;
  box-shadow: 0 2px 18px #7e3ff2;
  padding: 24px 16px 36px 16px;
}
.avatar-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff url('https://img.icons8.com/emoji/48/000000/baby-emoji.png') center/65% no-repeat;
  border: 2px solid #7e3ff2;
}
.avatar-info .avatar-name {
  font-weight: bold;
  font-size: 1.18em;
  color: #7e3ff2;
}
.avatar-info .avatar-title {
  font-size: .96em;
  color: #444;
}
/* Cultivation realm style highlight */
#realmDisplay {
  color: #b80000;
  font-weight: bold;
  margin-right: 7px;
}
#miniStageDisplay {
  color: #7e3ff2;
  font-weight: 500;
}
.stats-section {
  margin-bottom: 20px;
  border-radius: 12px;
  background: #fff;
  padding: 10px 14px 10px 14px;
  box-shadow: 0 1px 6px #b5c2e8;
}
.stat-bar {
  display: flex;
  align-items: center;
  margin-bottom: 7px;
  gap: 12px;
}
.stat-label {
  font-weight: 500;
  min-width: 110px;
  color: #333;
}
.stat-value {
  font-weight: bold;
  color: #900;
}
.advance-btn {
  display: block;
  margin: 18px auto 12px auto;
  padding: 12px 32px;
  border-radius: 14px;
  background: linear-gradient(90deg, #7e3ff2 30%, #b80000 100%);
  color: #fff;
  font-size: 1.19em;
  border: none;
  box-shadow: 0 2px 16px #b80000cc;
  font-weight: bold;
  cursor: pointer;
  transition: box-shadow .19s, background .19s;
}
.advance-btn:hover {
  box-shadow: 0 5px 22px #b8000088;
  background: linear-gradient(90deg, #b80000 30%, #7e3ff2 100%);
}
.diamond-buttons {
  display: grid;
  grid-template-columns: repeat(5, 82px);
  grid-template-rows: repeat(3, 82px);
  gap: 18px 14px;
  justify-content: center;
  align-items: center;
  margin: 24px 0 0 0;
  width: 100%;
}
.diamond-btn {
  width: 78px;
  height: 78px;
  background: linear-gradient(135deg,#b80000 40%,#ffffff 100%);
  color: #fff;
  font-size: 1.11em;
  font-weight: bold;
  border: none;
  box-shadow: 0 2px 16px #b80000cc;
  border-radius: 16px;
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor:pointer;
  position: relative;
  transition: box-shadow 0.18s, background 0.18s, transform 0.14s;
  outline: none;
  margin: 0 auto;
}
.diamond-btn:disabled {
  background: #cbd4e6;
  color: #bbb;
  cursor:not-allowed;
  box-shadow: none;
}
.diamond-btn:hover:not(:disabled) {
  box-shadow: 0 6px 32px #b8000088;
  background: linear-gradient(135deg,#ffffff 40%,#b80000 100%);
  transform: rotate(45deg) scale(1.09);
  z-index: 1;
}
.diamond-btn-label {
  transform: rotate(-45deg);
  text-align: center;
  width: 100%;
  font-size: 1.07em;
  pointer-events: none;
  color: #fff;
  text-shadow: 0 2px 4px #900;
}
@media (max-width: 700px) {
  .container { padding: 8px 2vw 32px 2vw; }
  .diamond-buttons {
    grid-template-columns: repeat(3, 82px);
    grid-template-rows: repeat(4, 82px);
    gap: 14px 7px;
    width: 100%;
  }
}
@media (max-width: 500px) {
  .avatar-bar { gap: 7px; }
  .avatar { width: 36px; height: 36px; }
  .diamond-btn { width: 64px; height: 64px; font-size: .99em; }
  .diamond-buttons { gap: 8px 4px; }
  .stat-label { min-width: 70px; font-size: .97em;}
  .stat-value { font-size: .97em;}
}
#npcPanel, #worldTab, #worldNewsPanel {
  animation: fadeIn .21s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-50%) scale(.95);}
  to { opacity: 1; transform: translateX(-50%) scale(1);}
}
.game-notification {
  display: none;
  position: fixed;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  background: #7e3ff2;
  color: #fff;
  font-size: 1.1em;
  padding: 10px 34px;
  border-radius: 12px;
  box-shadow: 0 2px 16px #7e3ff285;
  z-index: 1101;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
}
.game-notification.active {
  display: block;
  opacity: 1;
}
