* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, sans-serif;
  user-select: none;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#desktop {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ---------- Обои ---------- */
#wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(120, 190, 255, .55), transparent 55%),
    radial-gradient(ellipse at 70% 60%, rgba(90, 120, 255, .55), transparent 55%),
    linear-gradient(135deg, #0b3d91 0%, #1e6fd9 45%, #7cc4ff 100%);
}

/* ---------- Ярлыки ---------- */
.icons {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.icon {
  width: 84px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
}
.icon:hover {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .3);
}
.icon-img {
  font-size: 34px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4));
}
.icon span {
  color: #fff;
  font-size: 12px;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}

/* ---------- Панель задач ---------- */
#taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: rgba(243, 243, 243, .85);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, .1);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 12px;
  z-index: 100;
}
.tb-left { display: flex; align-items: center; }
.weather { font-size: 13px; color: #333; }

.tb-center {
  display: flex;
  gap: 6px;
  justify-self: center;
}
.tb-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.tb-btn:hover { background: rgba(0, 0, 0, .08); }
.tb-btn:active { background: rgba(0, 0, 0, .15); }
#start-btn.active { background: rgba(0, 0, 0, .12); }

.tb-right {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}
.tray { display: flex; gap: 8px; font-size: 13px; color: #333; }
.clock {
  text-align: right;
  font-size: 12px;
  color: #222;
  line-height: 1.3;
  cursor: default;
}

/* ---------- Меню «Пуск» ---------- */
#start-menu {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  max-width: calc(100vw - 24px);
  background: rgba(243, 243, 243, .95);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .35);
  padding: 20px;
  z-index: 200;
  animation: menuIn .18s ease;
}
@keyframes menuIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.search-box input {
  width: 100%;
  padding: 9px 14px;
  border: none;
  border-bottom: 2px solid #0067c0;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  outline: none;
}

.menu-header {
  margin: 16px 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #222;
}

.pinned {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s;
}
.pin:hover { background: rgba(0, 0, 0, .07); }
.pin-img { font-size: 28px; }
.pin span { font-size: 11px; color: #333; }

.menu-footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, .1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #222;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4cc2ff, #0067c0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.power-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, .06);
  font-size: 17px;
  cursor: pointer;
}
.power-btn:hover { background: rgba(0, 0, 0, .12); }

/* Подменю питания */
#power-menu {
  position: absolute;
  bottom: 64px;
  right: 20px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 210px;
  animation: menuIn .15s ease;
}
#power-menu button {
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 14px;
  color: #111;
  cursor: pointer;
}
#power-menu button:hover { background: rgba(0, 103, 192, .12); }
#power-menu .cancel:hover { background: rgba(200, 0, 0, .1); color: #c00; }

/* ---------- Окна ---------- */
.window {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  max-width: calc(100vw - 32px);
  background: #f9f9f9;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
  overflow: hidden;
  z-index: 150;
  animation: menuIn .18s ease;
}
.titlebar {
  height: 36px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.title { font-size: 13px; color: #222; }
.win-btn {
  width: 46px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  color: #333;
}
.win-btn.close:hover { background: #e81123; color: #fff; }
.win-body { padding: 16px; font-size: 14px; color: #222; }
.win-body p { padding: 6px 0; }
.win-body h2 { margin-bottom: 8px; }
.win-body textarea {
  width: 100%;
  height: 160px;
  resize: vertical;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  font-size: 14px;
  outline: none;
  user-select: text;
}

/* ---------- Экран выключения ---------- */
#shutdown-screen {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: #fff;
  animation: fadeIn .4s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.shutdown-circle {
  width: 90px;
  height: 90px;
  border: 3px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); }
  50% { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); }
}
#shutdown-text { font-size: 18px; color: #ccc; }
#power-back {
  padding: 12px 26px;
  border: 1px solid #fff;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
#power-back:hover { background: rgba(255, 255, 255, .15); }

/* Спящий режим: чёрный экран, будим кликом */
#desktop.sleep::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 998;
  animation: fadeIn .6s ease;
}

/* ---------- Проводник / Этот компьютер ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}
.ex-btn {
  padding: 7px 12px;
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #111;
  cursor: pointer;
  transition: background .12s;
}
.ex-btn:hover { background: #e8f4fd; border-color: #0067c0; }
.ex-btn:active { background: #d0e8fa; }
.ex-btn.small { padding: 5px 10px; font-size: 12px; }

.section-title {
  margin: 12px 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.drive-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 8px;
}
.drive-card:hover { border-color: #0067c0; }
.drive-icon { font-size: 32px; }
.drive-info { flex: 1; min-width: 0; }
.drive-name { font-size: 14px; font-weight: 600; color: #111; margin-bottom: 6px; }

.progress {
  height: 14px;
  background: #e6e6e6;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}
.bar {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #0067c0, #4cc2ff);
  transition: width .5s ease;
}
.bar.warn { background: linear-gradient(90deg, #c07000, #ffb900); }

.drive-size { font-size: 12px; color: #444; margin-top: 5px; }
.drive-btns { display: flex; flex-direction: column; gap: 6px; }

/* ---------- CS 2 ---------- */
.cs-art svg {
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .5);
}
.icon:hover .cs-art svg { transform: scale(1.06); transition: transform .15s; }

.cs-body { display: flex; flex-direction: column; gap: 14px; }
.cs-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: linear-gradient(135deg, #2b1108, #7a2a10);
  border-radius: 10px;
  color: #ffd9c4;
}
.cs-banner svg { border-radius: 12px; flex-shrink: 0; }
.cs-banner h2 { font-size: 18px; letter-spacing: 2px; color: #ff9b5e; }
.cs-banner p { font-size: 13px; opacity: .85; margin-top: 4px; }

.cs-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #333;
  flex-wrap: wrap;
}

.cs-play {
  align-self: center;
  padding: 11px 44px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff7a3c, #e03e2e);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(224, 62, 46, .4);
  transition: transform .12s, box-shadow .12s;
}
.cs-play:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(224, 62, 46, .55); }
.cs-play:active { transform: translateY(0); }

/* Аватарка интернета в шапке окна */
.title.with-avatar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.tb-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(21, 101, 216, .5);
  flex-shrink: 0;
}
.tb-avatar svg { display: block; width: 100%; height: 100%; }
.tb-avatar:hover { transform: scale(1.15); transition: transform .15s; }

/* Windows 10: меню «Пуск» и ярлык-мозг */
#w10-start-menu {
  position: absolute;
  bottom: 52px;
  left: 8px;
  width: 250px;
  background: #f3f3f3;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .5);
  padding: 10px;
  z-index: 1270;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: menuIn .15s ease;
}
.w10-start-head {
  font-weight: 700;
  font-size: 14px;
  color: #111;
  padding: 6px 8px 10px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 6px;
}
#w10-start-menu button {
  text-align: left;
  padding: 11px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 14px;
  color: #111;
  cursor: pointer;
}
#w10-start-menu button:hover { background: rgba(0, 103, 192, .13); }

.brain-art svg {
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .5);
}
.icon:hover .brain-art svg { transform: scale(1.06); transition: transform .15s; }

/* ---------- Загрузка восстановления / Windows 10 ---------- */
#restore-load {
  position: absolute;
  inset: 0;
  z-index: 1450;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  animation: fadeIn .25s ease;
}
.load-logo { filter: drop-shadow(0 0 18px rgba(76, 194, 255, .6)); }
#load-pct {
  color: #fff;
  font-size: 30px;
  font-weight: 700;
}
.load-bar {
  width: 320px;
  max-width: 70vw;
  height: 10px;
  background: #333;
  border-radius: 5px;
  overflow: hidden;
}
#load-fill {
  height: 100%;
  width: 1%;
  background: linear-gradient(90deg, #4cc2ff, #0067c0);
  transition: width .45s ease;
}
.load-hint { color: #888; font-size: 13px; }

/* Windows 10 */
#win10-screen {
  position: absolute;
  inset: 0;
  z-index: 1250;
  animation: fadeIn .4s ease;
}
.w10-wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 45%, rgba(120, 200, 255, .45), transparent 55%),
    linear-gradient(135deg, #0a63c1 0%, #034791 55%, #012a5e 100%);
}
.w10-icons {
  position: absolute;
  top: 16px;
  left: 16px;
}
.w10-error { animation: menuIn .3s ease; }
.w10-error:hover .icon-img { filter: drop-shadow(0 0 10px rgba(255, 40, 40, .9)); }

.w10-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44px;
  background: rgba(15, 15, 15, .92);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
}
.w10-start {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-size: 19px;
  cursor: pointer;
}
.w10-start:hover { background: rgba(255, 255, 255, .12); }
.w10-app { color: #ddd; font-size: 13px; }
.w10-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
#w10-clock { color: #fff; font-size: 13px; }
#w10-back {
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}
#w10-back:hover { background: rgba(255, 255, 255, .15); }

#restore-ask, #return-ask {
  position: absolute;
  inset: 0;
  z-index: 1500;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .15s ease;
}

/* ---------- Ошибка удаления / Красный экран ---------- */
#del-error {
  position: absolute;
  inset: 0;
  z-index: 1300;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .15s ease;
}
.err-box {
  width: 380px;
  max-width: calc(100vw - 32px);
  background: #f3f3f3;
  border: 1px solid rgba(0, 0, 0, .25);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  padding: 22px;
  text-align: center;
  animation: menuIn .18s ease;
}
.err-icon { font-size: 42px; }
.err-box h3 { margin: 10px 0 6px; font-size: 18px; color: #c00; }
.err-box p { font-size: 14px; color: #333; line-height: 1.45; }
.err-btns { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }
.err-btns button {
  min-width: 110px;
  padding: 10px 0;
  border: none;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s;
}
.err-btns button:hover { transform: scale(1.05); }
.err-btns .yes { background: linear-gradient(135deg, #ff5f4d, #e03e2e); color: #fff; box-shadow: 0 4px 12px rgba(224, 62, 46, .45); }
.err-btns .no { background: #e8e8e8; color: #111; border: 1px solid #ccc; }

#red-screen {
  position: absolute;
  inset: 0;
  z-index: 1400;
  background: linear-gradient(135deg, #c40000, #7a0000);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  animation: fadeIn .3s ease;
}
.red-face {
  font-size: min(46vw, 46vh);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 60px rgba(255, 255, 255, .55);
  line-height: 1;
  animation: pulse 1.6s ease-in-out infinite;
}
.red-text {
  color: #ffd7d7;
  font-size: 18px;
  letter-spacing: 1px;
}
#red-back {
  padding: 13px 34px;
  border: 2px solid #fff;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
#red-back:hover { background: rgba(255, 255, 255, .18); }

/* ---------- Меню ярлыка рабочего стола ---------- */
.icon-menu {
  position: absolute;
  z-index: 600;
  min-width: 165px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: fadeIn .12s ease;
}
.icon-menu button {
  text-align: left;
  padding: 9px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 13px;
  color: #111;
  cursor: pointer;
}
.icon-menu button:hover { background: rgba(0, 103, 192, .12); }
.icon-menu button.danger:hover { background: rgba(200, 0, 0, .1); color: #c00; }

.icon .icon-rename {
  width: 78px;
  margin-top: 3px;
  padding: 3px 4px;
  border: 2px solid #4cc2ff;
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  text-align: center;
  outline: none;
  user-select: text;
}

/* ---------- Minecraft ---------- */
.mc-art svg {
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .5);
  image-rendering: pixelated;
}
.icon:hover .mc-art svg { transform: scale(1.06); transition: transform .15s; }

.mc-avatar { border: 2px solid #3fae4f; }

.mc-body { display: flex; flex-direction: column; gap: 14px; }
.mc-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #0b1e3a, #173a24);
  border-radius: 10px;
}
.mc-logo-art { flex-shrink: 0; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.mc-title {
  font-size: 24px;
  letter-spacing: 4px;
  color: #5cbf4a;
  text-shadow: 2px 2px 0 #23401b;
  font-family: monospace;
}
.mc-sub { font-size: 13px; color: #b9d6c0; margin-top: 5px; }

.mc-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #333;
}

.mc-btns { display: flex; gap: 10px; justify-content: center; }
.mc-btn {
  padding: 11px 26px;
  border: 2px solid #3fae4f;
  border-radius: 6px;
  background: #eaf6ea;
  color: #23401b;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s, background .12s;
}
.mc-btn:hover { transform: translateY(-2px); background: #d6eed3; }
.mc-btn.play {
  background: linear-gradient(135deg, #5cbf4a, #3fae4f);
  color: #fff;
  border-color: #2e8a33;
  box-shadow: 0 4px 12px rgba(63, 174, 79, .45);
}

/* ---------- Браузер «Интернет» ---------- */
.window.browser { width: 660px; top: 40px; }
.browser-body {
  min-height: 380px;
  background: #f4f7fb;
  position: relative;
  padding: 20px;
}
.search-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  gap: 12px;
  text-align: center;
}
.net-logo svg { border-radius: 16px; box-shadow: 0 8px 20px rgba(21, 101, 216, .35); }
.search-center h1 {
  font-size: 34px;
  color: #1565d8;
  letter-spacing: 1px;
}
.big-search {
  display: flex;
  width: 100%;
  max-width: 460px;
  gap: 8px;
}
.big-search input {
  flex: 1;
  padding: 13px 18px;
  border: 2px solid #c9d6ea;
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  outline: none;
  user-select: text;
  transition: border-color .15s, box-shadow .15s;
}
.big-search input:focus {
  border-color: #1565d8;
  box-shadow: 0 0 0 4px rgba(21, 101, 216, .18);
}
.big-search button {
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #2e8bff, #1565d8);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s;
}
.big-search button:hover { transform: scale(1.04); }
.hint { font-size: 12px; color: #7a8aa5; }

/* Результаты */
#web-results { animation: fadeIn .2s ease; }
.results-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #dde5f0;
}
.results-bar input {
  flex: 1;
  padding: 9px 16px;
  border: 1px solid #c9d6ea;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  outline: none;
  user-select: text;
}
.results-bar button {
  padding: 9px 18px;
  border: none;
  border-radius: 999px;
  background: #1565d8;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
.back-home {
  margin-top: 14px;
  border: none;
  background: none;
  color: #1565d8;
  font-size: 13px;
  cursor: pointer;
}
.back-home:hover { text-decoration: underline; }

.no-result {
  padding: 60px 10px;
  text-align: center;
  color: #7a8aa5;
  font-size: 15px;
}

/* Карточка канала Мармок */
.channel-card {
  margin-top: 16px;
  background: #fff;
  border: 1px solid #dde5f0;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
  animation: toastIn .25s ease;
}
.channel-avatar { flex-shrink: 0; }
.channel-avatar svg {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid #ff0033;
  box-shadow: 0 4px 12px rgba(255, 0, 51, .35);
}
.channel-info { flex: 1; min-width: 0; }
.channel-name {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.verify { color: #1565d8; font-size: 15px; }
.channel-meta { font-size: 13px; color: #5b6b84; margin-top: 4px; }
.channel-meta b { color: #0f172a; }
.channel-desc { font-size: 13px; color: #475569; margin-top: 6px; }
.channel-btns { display: flex; gap: 8px; margin-top: 12px; }
.btn-open-channel {
  padding: 9px 18px;
  border: none;
  border-radius: 999px;
  background: #ff0033;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s;
}
.btn-open-channel:hover { transform: scale(1.05); }
.btn-sub {
  padding: 9px 18px;
  border: 1px solid #c9d6ea;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.btn-sub.subscribed {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

/* ---------- Стив 3D (Minecraft) ---------- */
#steve-scene {
  position: absolute;
  inset: 0;
  z-index: 1000;
  background: #000;
  animation: fadeIn .3s ease;
}
#steve-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}
#steve-canvas:active { cursor: grabbing; }

#steve-top {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 18px;
  align-items: center;
  background: rgba(0, 0, 0, .68);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  padding: 9px 20px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  pointer-events: none;
}
.steve-hint { color: #9fe89f; font-size: 12px; font-weight: 400; }

#steve-controls {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
#steve-controls button {
  padding: 11px 24px;
  border: none;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s;
}
#steve-controls button:hover { transform: scale(1.05); }
#steve-walk {
  background: linear-gradient(135deg, #5cbf4a, #3fae4f);
  color: #fff;
  box-shadow: 0 4px 12px rgba(63, 174, 79, .45);
}
#steve-close {
  background: rgba(0, 0, 0, .7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  font-weight: 400;
}
#steve-close:hover { background: #c0392b; }

/* ---------- Игра CS 2 (Dust II) ---------- */
#cs-game {
  position: absolute;
  inset: 0;
  z-index: 1000;
  cursor: none;
  background: #000;
  animation: fadeIn .25s ease;
}
#cs-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

#cs-topbar {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 22px;
  padding: 8px 20px;
  background: rgba(0, 0, 0, .65);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  pointer-events: none;
}
#cs-topbar .map-name { color: #ffb95e; font-weight: 700; letter-spacing: 1px; }

#cs-feed {
  position: absolute;
  top: 60px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.feed-line {
  background: rgba(0, 0, 0, .7);
  border-left: 3px solid #3dff57;
  color: #fff;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 4px;
  animation: toastIn .2s ease;
}
.feed-line.enemy { border-left-color: #ff4a3d; }

#cs-bottom {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 24px;
  pointer-events: none;
}
#cs-hp-box {
  color: #fff;
  font-size: 22px;
  text-shadow: 0 1px 4px #000;
  background: rgba(0, 0, 0, .6);
  padding: 10px 16px;
  border-radius: 8px;
  min-width: 220px;
}
.hp-track {
  margin-top: 6px;
  height: 10px;
  background: rgba(255, 255, 255, .2);
  border-radius: 5px;
  overflow: hidden;
}
#cs-hp-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #3dff57, #a8ff60);
  transition: width .15s;
}

#cs-reload {
  color: #ffd76e;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 1px 4px #000;
  animation: pulse 0.8s ease-in-out infinite;
}

#cs-ammo-box {
  text-align: right;
  color: #fff;
  background: rgba(0, 0, 0, .6);
  padding: 10px 16px;
  border-radius: 8px;
}
.gun-name { font-size: 12px; color: #ffb95e; letter-spacing: 2px; }
#cs-ammo { font-size: 26px; font-weight: 700; text-shadow: 0 1px 4px #000; }

#cs-exit {
  position: absolute;
  top: 12px;
  right: 16px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 6px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
#cs-exit:hover { background: #c0392b; border-color: #c0392b; }

#cs-death {
  position: absolute;
  inset: 0;
  background: rgba(20, 0, 0, .82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
}
#cs-death h2 {
  color: #ff4a3d;
  font-size: 52px;
  letter-spacing: 6px;
  text-shadow: 0 0 24px rgba(255, 74, 61, .6);
  animation: pulse 1.2s ease-in-out infinite;
}
#cs-death p { color: #ddd; font-size: 16px; }
#cs-respawn {
  padding: 13px 40px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff7a3c, #e03e2e);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
#cs-respawn:hover { transform: scale(1.05); }

/* ---------- Уведомления (toast) ---------- */
#toast {
  position: absolute;
  bottom: 64px;
  right: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .15);
  border-left: 4px solid #0067c0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  padding: 12px 16px;
  font-size: 13px;
  color: #111;
  max-width: 300px;
  z-index: 300;
  animation: toastIn .2s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hidden { display: none !important; }
