/* Экран создания персонажа — ПЛОСКИЙ стиль + пиксельный шрифт VT323. Сплошные цвета, без градиентов/теней. */
.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  overflow: hidden;
  color: #c8cbb6;
  font-family: "Pixelify Sans", "VT323", "Courier New", monospace;
  font-size: 18px;
  background: #0c0e0a;
  animation: cc-appear 0.55s ease both;
}
@keyframes cc-appear { from { opacity: 0; } to { opacity: 1; } }
.cc-overlay.cc-closing { animation: none; opacity: 0; transform: scale(1.04); transition: opacity 0.45s ease, transform 0.45s ease; }
.cc-grain { display: none; }

/* Кнопка языка — правый верхний угол */
.cc-lang {
  position: absolute; top: 14px; right: 16px; z-index: 6;
  padding: 6px 12px; cursor: pointer; font-family: inherit; font-size: 18px; letter-spacing: 1px;
  background: #161a0f; border: 1px solid #3a451f; color: #c3c8ab;
}
.cc-lang:hover { border-color: #9bbf5a; color: #fff; }

/* ===== Левая колонна ===== */
.cc-left {
  position: relative; width: 360px; flex-shrink: 0; height: 100%;
  padding: 24px 22px 22px; display: flex; flex-direction: column; gap: 14px;
  background: #11140d; border-right: 1px solid #2c3320; overflow-y: auto;
}
.cc-brand { line-height: 1; }
.cc-logo { font-size: 40px; font-weight: 700; letter-spacing: 3px; color: #d8c08a; }
.cc-logo span { color: #9bbf5a; }
.cc-sub { margin-top: 4px; font-size: 16px; letter-spacing: 2px; color: #6f7458; }

.cc-account { padding: 10px 12px; background: #0e110a; border: 1px solid #262d1b; border-left: 3px solid #9bbf5a; }
.cc-acc-line { font-size: 19px; letter-spacing: 1px; color: #d6d8c4; display: flex; align-items: center; gap: 8px; }
.cc-dot { width: 8px; height: 8px; border-radius: 50%; background: #9bbf5a; }
.cc-acc-mail { margin-top: 2px; font-size: 16px; color: #6f7458; }

.cc-panel { background: #0e110a; border: 1px solid #262d1b; padding: 8px 10px 12px; }
.cc-panel-title { font-size: 16px; letter-spacing: 3px; color: #8a906e; padding: 6px 4px 10px; border-bottom: 1px solid #262d1b; margin-bottom: 8px; }

.cc-slot { display: flex; align-items: center; justify-content: space-between; padding: 7px 6px; border-left: 2px solid transparent; cursor: pointer; }
.cc-slot:hover { background: #161a0f; }
.cc-slot.active { background: #1a2412; border-left-color: #9bbf5a; }
.cc-slot.locked { opacity: 0.45; }
.cc-slot.locked .cc-arrow, .cc-slot.locked .cc-swatch { pointer-events: none; }
.cc-slot-name { font-size: 19px; letter-spacing: 1px; color: #b9bca4; }
.cc-slot-ctrl { display: flex; align-items: center; gap: 6px; }
.cc-slot-val { min-width: 96px; text-align: center; font-size: 16px; color: #d8c08a; }
.cc-slot-val-solo { color: #6f7458; }

.cc-swatch { width: 24px; height: 24px; border: 1px solid #3a4226; cursor: pointer; flex-shrink: 0; }
.cc-swatch.none { background: linear-gradient(45deg, transparent 45%, #b06a4e 45%, #b06a4e 55%, transparent 55%) center/14px 14px no-repeat, #14160f; }
.cc-swatch-off { width: 24px; height: 24px; border: 1px solid #2a3119; flex-shrink: 0; cursor: default;
  background: linear-gradient(45deg, transparent 43%, #5d6248 43%, #5d6248 57%, transparent 57%) center/100% 100% no-repeat, #11140d; }

/* палитра цветов */
.cc-colors { background: #0e110a; border: 1px solid #262d1b; padding: 8px 10px 10px; }
.cc-colors .cc-panel-title { display: flex; align-items: center; }
.cc-color-target { color: #9bbf5a; }
.cc-reset { margin-left: auto; padding: 3px 8px; background: #181b12; border: 1px solid #4a2e22; color: #b06a4e; font-family: inherit; font-size: 16px; cursor: pointer; }
.cc-reset:hover { background: #2a1813; color: #e08a68; }
.cc-palette { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; max-height: 168px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: #3a451f #0c0e0a; }
.cc-palette::-webkit-scrollbar { width: 10px; }
.cc-palette::-webkit-scrollbar-track { background: #0c0e0a; }
.cc-palette::-webkit-scrollbar-thumb { background: #44521f; border: 1px solid #5a6d2e; }
.cc-color { aspect-ratio: 1; border: 1px solid #00000040; cursor: pointer; padding: 0; }
.cc-color:hover { border-color: #fff; position: relative; z-index: 1; }
.cc-color.sel { outline: 2px solid #fff; outline-offset: -1px; z-index: 1; }

.cc-actions { display: flex; gap: 8px; }
.cc-btn { flex: 1; padding: 9px; background: #181b12; border: 1px solid #333c23; color: #b9bca4; font-family: inherit; font-size: 17px; letter-spacing: 1px; cursor: pointer; }
.cc-btn:hover { background: #232a16; color: #e7eccd; }
.cc-logout { color: #b06a4e; border-color: #4a2e22; }
.cc-logout:hover { background: #2a1813; color: #e08a68; }
.cc-arrow { width: 28px; height: 28px; background: #1a1e12; border: 1px solid #333c23; color: #b9bca4; font-size: 16px; cursor: pointer; }
.cc-arrow:hover { background: #2a3119; border-color: #9bbf5a; color: #e7eccd; }

/* ===== Сцена с персонажем ===== */
.cc-stage { position: relative; flex: 1; height: 100%; overflow: hidden; background: #0a0c07; cursor: grab; }
.cc-stage.grabbing { cursor: grabbing; }
.cc-canvas { position: absolute; inset: 0; image-rendering: auto; }

/* Ник сверху по центру над персонажем */
.cc-nick-top { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 6px; animation: cc-rise 0.6s 0.1s ease both; }
.cc-nick-top .cc-nick-label { font-size: 15px; letter-spacing: 3px; color: #8c926f; }
.cc-nick-top .cc-nick-input { width: 280px; max-width: 60vw; text-align: center;
  padding: 9px 14px; font-size: 28px; letter-spacing: 2px; color: #f0ead0;
  background: #0c0e08; border: 1px solid #3a451f; outline: none; font-family: inherit; }
.cc-nick-top .cc-nick-input::placeholder { color: #5b6147; letter-spacing: 1px; }
.cc-nick-top .cc-nick-input:focus { border-color: #9bbf5a; }
.cc-nick-top .cc-nick-input:read-only { color: #9aa07e; cursor: default; }
@keyframes cc-rise { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translateX(-50%); } }

/* Контролы сцены (поворот) — выше кнопки входа */
.cc-controls { position: absolute; bottom: 110px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2; }
.cc-turn { display: flex; gap: 8px; }
.cc-tbtn { padding: 7px 14px; background: #161a0f; border: 1px solid #333c23; color: #b9bca4; font-family: inherit; font-size: 18px; letter-spacing: 1px; cursor: pointer; }
.cc-tbtn:hover { border-color: #9bbf5a; color: #e7eccd; }
.cc-tbtn.cc-auto.on { color: #9bbf5a; border-color: #5a6a35; }

/* Кнопка входа — снизу по центру, крупная */
.cc-enter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 4;
  min-width: 300px; padding: 15px 40px; background: #b6932f; border: 1px solid #d8c08a; color: #1a1607;
  font-family: inherit; font-size: 26px; font-weight: 700; letter-spacing: 3px; cursor: pointer;
  animation: cc-rise 0.6s 0.15s ease both; }
.cc-enter:hover { background: #d4ad3a; }
.cc-enter:active { transform: translateX(-50%); }

/* Узкие экраны */
@media (max-width: 720px) {
  .cc-overlay { flex-direction: column-reverse; }
  .cc-left { width: 100%; height: auto; max-height: 52%; border-right: none; border-top: 1px solid #2c3320; }
  .cc-stage { width: 100%; }
}
.cc-left::-webkit-scrollbar { width: 10px; }
.cc-left::-webkit-scrollbar-track { background: #0c0e0a; }
.cc-left::-webkit-scrollbar-thumb { background: #2a3119; }
