:root {
  --whale-bg: #1a1f3a;
  --whale-line: #2a3458;
  --whale-text: #e8edff;
  --whale-muted: #9eabd6;
}

body {
  background: #0f172a;
  margin: 0;
  padding: 0;
}

.whale-app {
  background: #1a1f3a;
  border: 1px solid var(--whale-line);
  border-radius: 4px;
  font-size: 13px;
  padding: 10px;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
.whale-app:hover {
  border: 1px solid #3b82f6;
  box-shadow: 10px 10px 20px rgba(59, 130, 246, 0.3);
  cursor: pointer;
}

.whale-div {
  background: #1a1f3a;
  border: 1px solid var(--whale-line);
  border-radius: 4px;
}

.whale-title {
  background: #162445;
  color: #eee;
  font-size: 14px;
  font-weight: bold;
  border-bottom: 1px solid var(--whale-line);
  padding: 10px 20px 10px 30px;
}

.wt-right {
  background: #081229;
  border: 1px solid var(--whale-line);
  border-radius: 4px;
  color: var(--whale-muted);
  font-size: 12px;
  float: right;
  margin-top: -2px;
  padding: 2px 12px 3px 12px;
}

#whale-panel {
  background: #0e1521;
}

.whale-item {
  display: grid;
  grid-template-columns: auto auto auto auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--whale-line);
  color: #ddd;
  margin: 0 10px;
  padding: 7px 20px;
}
.whale-item2 {
grid-template-columns: auto auto auto 1fr;  /* 5→4 */
}

.whale-item:last-child {
  border: 0;
}

.whale-time {
  color: var(--whale-muted);
  font-size: 11px;
  margin-right: 20px;
}

.whale-badge {
  color: #bbb;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-left: 8px;
}

.whale-market {
  background: #000;
  border: 1px solid var(--whale-line);
  border-radius: 4px;
  color: var(--whale-muted);
  font-size: 11px;
  margin-left: 10px;
  padding: 1px 6px 2px 6px;
}

.whale-side {
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
  padding: 1px 6px 2px 6px;
}
.whale-side.bid {
  background: rgba(0, 229, 160, 0.1);
  border: 1px solid rgba(0, 229, 160, 0.3);
  color: #00e5a0;
}
.whale-side.ask {
  background: rgba(255, 77, 106, 0.1);
  border: 1px solid rgba(255, 77, 106, 0.3);
  color: #ff4d6a;
}

.whale-amount {
  color: #ddd;
  font-weight: 700;
  justify-self: end;
  white-space: nowrap;
}

.whale-item-vol {
  grid-template-columns: auto auto auto 1fr;
}

/* 대형고래 */
.whale-lv-1 .whale-badge,
.whale-lv-1 .whale-amount { color: #caa1ff; }

/* 아빠고래 */
.whale-lv-2 .whale-badge,
.whale-lv-2 .whale-amount { color: #98ffb5; }

/* 엄마고래 */
.whale-lv-3 .whale-badge,
.whale-lv-3 .whale-amount { color: #ff9ea2; }

/* 오빠고래 */
.whale-lv-4 .whale-badge,
.whale-lv-4 .whale-amount { color: #8bc8ff; }

/* 아기고래 */
.whale-lv-5 .whale-badge,
.whale-lv-5 .whale-amount { color: #ff9adf; }