* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #080808;
  color: #eee;
  font-family: Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.wrap { width: min(calc(100% - 48px), 1180px); margin: 0 auto; }

#rain-canvas {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 999; pointer-events: none;
  opacity: 0.55;
  will-change: transform;
}
body.weather-off #rain-canvas { opacity: 0; }

#lightning-canvas {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1001; pointer-events: none;
  transition: opacity 0.5s ease;
  will-change: transform;
}
body.weather-off #lightning-canvas { opacity: 0 !important; }

.lightning-flash {
  position: fixed; inset: 0; z-index: 1000;
  pointer-events: none;
  background: rgba(200, 220, 255, 0);
  opacity: 0;
}
.lightning-flash.flash { animation: lightningStrike 0.45s ease-out; }
@keyframes lightningStrike {
  0%   { background: rgba(220, 230, 255, 0); opacity: 0; }
  8%   { background: rgba(220, 230, 255, 0.7); opacity: 1; }
  20%  { background: rgba(220, 230, 255, 0); opacity: 0; }
  32%  { background: rgba(220, 230, 255, 0.6); opacity: 1; }
  50%  { background: rgba(220, 230, 255, 0); opacity: 0; }
  100% { background: rgba(220, 230, 255, 0); opacity: 0; }
}
body.weather-off .lightning-flash { display: none; }

.lightning-hit {
  animation: lightningHitPulse 0.7s ease-out;
  position: relative; z-index: 100;
}
@keyframes lightningHitPulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 235, 255, 0); filter: brightness(1); }
  20% { box-shadow: 0 0 24px 4px rgba(220, 235, 255, 0.55), 0 0 60px 8px rgba(168, 85, 247, 0.25); filter: brightness(1.35); }
  50% { box-shadow: 0 0 18px 3px rgba(220, 235, 255, 0.35), 0 0 40px 6px rgba(168, 85, 247, 0.15); filter: brightness(1.15); }
  100% { box-shadow: 0 0 0 0 rgba(220, 235, 255, 0); filter: brightness(1); }
}

.hero {
  min-height: 560px; padding-bottom: 60px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid #222;
  background:
    radial-gradient(circle at 0% 0%, rgba(180, 30, 60, 0.30), transparent 50%),
    radial-gradient(circle at 100% 0%, rgba(120, 20, 80, 0.22), transparent 50%),
    linear-gradient(135deg, #111, #080808);
  z-index: 3;
}

.nav {
  height: 88px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 101;
}
.nav-right { display: flex; align-items: center; gap: 10px; }

.weather-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: #ddd;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 16px; line-height: 1;
}
.weather-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(168, 85, 247, 0.55);
  color: #c084fc;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -12px rgba(168, 85, 247, 0.7);
}
.weather-toggle-icon { display: inline-block; transition: transform 0.3s ease; }

.hero-inner {
  position: relative;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-top: 20px;
  gap: 40px;
}
.hero-left { max-width: 620px; }
.tag, small, .mini { display: block; color: #666; font-size: 10px; font-weight: 700; letter-spacing: .2em; }

.hero h1 {
  margin: 14px 0 20px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 7vw, 92px);
  line-height: .86;
  letter-spacing: -.035em;
  position: relative;
}

.wet-line {
  display: inline-block; position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #e8e8e8 40%, #a8a8a8 75%, #7a7a7a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)) drop-shadow(0 6px 12px rgba(180, 30, 60, 0.15));
  transition: filter 0.5s ease;
}
body.weather-off .wet-line {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
  filter: none;
}
.hero h1 .wet-line span:not(.water-drops) {
  color: #777;
  -webkit-text-fill-color: #777;
}
body.weather-off .hero h1 .wet-line span:not(.water-drops) {
  color: #ccc;
  -webkit-text-fill-color: #ccc;
}

.water-drops { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 3; }
.water-drop {
  position: absolute;
  width: 3.5px; height: 7px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(210, 230, 255, 0.45) 50%, rgba(255, 255, 255, 0.15) 100%);
  border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
  opacity: 0;
  animation: dropFall 4.5s ease-in infinite;
  box-shadow: inset 1px 0 1px rgba(255, 255, 255, 0.6), inset -1px 0 1px rgba(180, 210, 255, 0.25), 0 1px 2px rgba(0, 0, 0, 0.2);
  transform-origin: top center;
  margin-left: -1.5px;
}
body.weather-off .water-drop { display: none !important; }
@keyframes dropFall {
  /* Капля отрывается от нижнего края буквы и падает совсем немного,
     не проходя сквозь следующую строку заголовка. */
  0% { opacity: 0; transform: translateY(0) scaleY(0.55); }
  12% { opacity: 0.72; transform: translateY(1px) scaleY(1); }
  55% { opacity: 0.68; transform: translateY(10px) scaleY(1.08); }
  78% { opacity: 0.42; transform: translateY(19px) scaleY(1); }
  100% { opacity: 0; transform: translateY(24px) scaleY(0.8); }
}
.wet-line::after {
  content: ""; position: absolute; inset: -6px -10px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.04), transparent 70%);
  pointer-events: none; z-index: -1; opacity: 0.6;
  transition: opacity 0.5s ease;
}
body.weather-off .wet-line::after { opacity: 0; }

.lead { max-width: 520px; margin: 0; color: #aaa; font-size: 15px; line-height: 1.65; }
.actions { display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  color: #eee;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: -.01em;
  border-radius: 14px; backdrop-filter: blur(6px);
  position: relative; overflow: hidden;
  transition: all 0.25s ease; cursor: pointer;
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: currentColor; opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none; border-radius: inherit;
}
.btn:hover::before { opacity: 0.07; }
.btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(168, 85, 247, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -12px rgba(168, 85, 247, 0.7);
  color: #c084fc;
}
.btn b { margin-left: 0; display: inline-flex; align-items: center; transition: transform 0.3s ease; color: #777; }
.btn:hover b { transform: translate(3px, -3px); color: #c084fc; }

.hero-socials {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 10px;
  min-width: 280px; max-width: 340px;
  align-self: flex-start; padding-top: 40px;
}
.hero-social {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  color: #ddd;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 16px; font-weight: 700;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
  position: relative; overflow: hidden;
}
.hero-social-name { flex: 1; letter-spacing: -.01em; color: #eee; }
.hero-social:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.05); }

.hero-social[data-net="twitch"]:hover { border-color: rgba(169, 112, 255, 0.55); box-shadow: 0 8px 24px -12px rgba(169, 112, 255, 0.7); }
.hero-social[data-net="youtube"]:hover { border-color: rgba(255, 68, 68, 0.55); box-shadow: 0 8px 24px -12px rgba(255, 68, 68, 0.7); }
.hero-social[data-net="telegram"]:hover { border-color: rgba(41, 169, 235, 0.55); box-shadow: 0 8px 24px -12px rgba(41, 169, 235, 0.7); }
.hero-social[data-net="da"]:hover { border-color: rgba(255, 152, 0, 0.55); box-shadow: 0 8px 24px -12px rgba(255, 152, 0, 0.7); }
.hero-social[data-net="donatex"]:hover { border-color: rgba(86, 197, 150, 0.55); box-shadow: 0 8px 24px -12px rgba(86, 197, 150, 0.7); }
.hero-social[data-net="steam"]:hover { border-color: rgba(102, 192, 244, 0.55); box-shadow: 0 8px 24px -12px rgba(102, 192, 244, 0.7); }

.section {
  padding: 35px 0;
  border-bottom: 1px solid #222;
  position: relative; z-index: 3;
  background: #080808;
}
.section-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section h2 {
  margin: 12px 0 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 5.5vw, 62px);
  line-height: .92; letter-spacing: -.03em;
}

.about-text {
  max-width: 720px;
  color: #b5b5b5;
  font-size: 16px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.filters button {
  padding: 8px 14px;
  border: 1px solid #292929;
  background: #161616;
  color: #aaa;
  font-size: 12px; font-weight: 500;
  border-radius: 999px;
  cursor: pointer; transition: .2s;
  white-space: nowrap; line-height: 1;
  display: inline-flex; align-items: center; gap: 4px;
  font-family: Inter, sans-serif;
}
.filters button:hover { background: #262626; color: #fff; }
.filters button.active { background: #fff; color: #000; border-color: #fff; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.column {
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid #222;
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(10px);
}
.column-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; }
.column-header h3 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 22px; margin: 0; letter-spacing: -.01em; white-space: nowrap; }
.column-actions { display: flex; gap: 6px; flex: 1; justify-content: flex-end; }
.search-input {
  width: 100%; max-width: 200px; height: 32px;
  border-radius: 8px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #eee;
  padding: 0 12px;
  font-family: Inter, sans-serif; font-size: 12px;
  outline: none; transition: 0.2s;
}
.search-input::placeholder { color: #555; }
.search-input:focus { border-color: rgba(168, 85, 247, 0.5); background: #202020; }
.list { display: flex; flex-direction: column; gap: 10px; max-height: 65vh; overflow-y: auto; padding-right: 8px; }
.list::-webkit-scrollbar { width: 6px; }
.list::-webkit-scrollbar-track { background: transparent; }
.list::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
.card {
  display: flex; align-items: center; gap: 12px;
  background: #161616;
  border: 1px solid #222;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer; transition: 0.2s;
  min-height: 76px;
}
.card:hover { background: #1f1f1f; transform: translateY(-2px); border-color: rgba(168, 85, 247, 0.35); }
.card-cover { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: #222; flex-shrink: 0; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.card-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600; font-size: 15px; line-height: 1.2;
  margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-status { display: block; font-size: 12px; font-weight: 600; line-height: 1.2; }
.status-done { color: #22c55e; }
.status-started { color: #eab308; }
.status-not-started { color: #9ca3af; }
.status-dropped { color: #ef4444; }
.card-rating {
  flex-shrink: 0; padding: 4px 10px;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.marathon-card {
  display: block;
  background: #161616;
  border: 1px solid #222;
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer; transition: 0.2s;
}
.marathon-card:hover { background: #1f1f1f; border-color: rgba(168, 85, 247, 0.35); transform: translateY(-2px); }
.marathon-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.marathon-title { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 17px; margin: 0; letter-spacing: -.01em; }
.marathon-count { font-size: 13px; color: #8a8a8a; font-variant-numeric: tabular-nums; }
.progress { width: 100%; height: 6px; background: #222; border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, #a855f7, #ec4899); border-radius: 3px; transition: width 0.4s ease; }
.marathon-status { display: inline-block; margin-top: 8px; font-size: 12px; color: #8a8a8a; }
footer { height: 100px; color: #555; font-size: 9px; letter-spacing: .15em; position: relative; z-index: 3; background: #080808; }
footer .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }

/* МОДАЛЬНОЕ ОКНО */
.modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 25px;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);
  pointer-events: none; opacity: 0;
  transition: all 0.35s ease;
}
.modal.show {
  background: rgba(0, 0, 0, .8);
  backdrop-filter: blur(8px);
  pointer-events: auto; opacity: 1;
}
.modal-card {
  position: relative;
  width: min(900px, 100%);
  padding: 48px;
  border: 1px solid #333;
  background:
    radial-gradient(circle at 0% 0%, rgba(180, 30, 60, 0.25), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(120, 20, 80, 0.18), transparent 55%),
    #111;
  max-height: 90vh;
  display: flex; flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: all 0.35s cubic-bezier(.2,.7,.2,1);
}
.modal.show .modal-card { opacity: 1; transform: translateY(0) scale(1); }
.modal.show .modal-card::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: 20px; padding: 1px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.55), rgba(168, 85, 247, 0.55) 50%, rgba(236, 72, 153, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none; opacity: 1;
  transition: opacity 0.5s ease;
}
body.weather-off .modal.show .modal-card::before { opacity: 0; }
.close { position: absolute; top: 12px; right: 17px; border: 0; background: none; color: #777; font-size: 30px; cursor: pointer; z-index: 5; }
.close:hover { color: #fff; }
.empty { grid-column: 1 / -1; padding: 40px 0; color: #555; text-align: center; }

.modal-list { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; max-height: 50vh; overflow-y: auto; padding-right: 8px; }
.modal-game { display: flex; align-items: center; gap: 12px; background: #161616; border: 1px solid #222; border-radius: 12px; padding: 10px 12px; }
.modal-game-cover { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: #222; flex-shrink: 0; }
.modal-game-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-game-body { flex: 1; min-width: 0; }
.modal-game-title { font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal .muted { color: #8a8a8a; font-size: 13px; }

.modal-game-detail { 
  display: flex; 
  gap: 36px; 
  align-items: stretch; 
  min-height: 0; 
  flex: 1; 
  overflow: hidden;
}
.modal-cover { width: 240px; height: 340px; border-radius: 18px; overflow: hidden; background: #161616; border: 1px solid #222; flex-shrink: 0; }
.modal-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 120px; color: #333; background: linear-gradient(145deg, #1c1c1c, #0f0f0f); }

.modal-game-info { 
  flex: 1; 
  min-width: 0; 
  display: flex; 
  flex-direction: column; 
  overflow: hidden;
}
.modal-game-header { flex-shrink: 0; }
.modal-game-header > small { font-size: 11px; font-weight: 700; letter-spacing: .2em; color: #666; text-transform: uppercase; }
.modal-game-header h2 { margin: 14px 0 22px; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 52px; line-height: .95; letter-spacing: -.03em; color: #fff; }
.modal-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 22px; font-size: 15px; color: #aaa; padding-bottom: 22px; border-bottom: 1px solid #222; }
.modal-meta b { color: #eee; font-weight: 600; margin-right: 6px; }

.modal-description { 
  overflow-y: auto; 
  padding-right: 14px; 
  color: #b5b5b5; 
  line-height: 1.8; 
  font-size: 16px; 
  white-space: pre-wrap; 
  -webkit-overflow-scrolling: touch; 
  max-height: 40vh;
}
.modal-description::-webkit-scrollbar { width: 6px; }
.modal-description::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
.modal-description b { color: #fff; font-weight: 700; }
.modal-description i { color: #ddd; font-style: italic; }

.card-progress { width: 100%; height: 4px; background: #222; border-radius: 2px; overflow: hidden; margin-top: 3px; }
.card-progress-bar { height: 100%; background: linear-gradient(90deg, #a855f7, #ec4899); border-radius: 2px; transition: width 0.4s ease; }
.modal-progress { width: 100%; height: 6px; background: #222; border-radius: 3px; overflow: hidden; margin-bottom: 22px; flex-shrink: 0; }
.modal-progress-bar { height: 100%; background: linear-gradient(90deg, #a855f7, #ec4899); border-radius: 3px; transition: width 0.4s ease; }

/* НАВИГАЦИЯ */
.nav-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
  display: flex;
  justify-content: flex-start;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.nav-scroll::-webkit-scrollbar { display: none; }

.navlinks {
  display: flex;
  gap: 6px;
  align-items: center;
  width: max-content;
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  color: #bbb;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(168, 85, 247, 0.55);
  color: #c084fc;
}

/* ДОТА 2 */
.dota-card {
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  padding: 28px 32px;
  max-width: 700px;
  transition: all 0.3s ease;
}
.dota-card:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 10px 30px -15px rgba(168, 85, 247, 0.4);
}
.dota-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #222;
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.dota-profile-left h3 { margin-bottom: 4px; }
.dota-name { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 28px; color: #fff; margin: 0; }
.dota-dates { display: flex; gap: 12px; font-size: 13px; color: #777; flex-wrap: wrap; }
.dota-rank-badge { background: rgba(168, 85, 247, 0.15); color: #c084fc; padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; }
.dota-stats-row { display: flex; gap: 40px; margin-bottom: 24px; }
.dota-stat-box { display: flex; flex-direction: column; }
.dota-stat-val { font-family: "Bricolage Grotesque", sans-serif; font-size: 36px; font-weight: 800; color: #eee; line-height: 1; margin-bottom: 4px; }
.dota-stat-val span { color: #777; font-weight: 400; font-size: 24px; }
.dota-stat-label { font-size: 12px; color: #8a8a8a; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.text-green { color: #4ade80 !important; }
.text-orange { color: #f59e0b !important; }

.dota-roles-section { margin-bottom: 32px; }
.dota-roles-title { font-size: 14px; font-weight: 700; color: #ddd; text-transform: uppercase; margin-bottom: 12px; letter-spacing: 0.05em; }
.dota-roles-bars { display: flex; flex-direction: column; gap: 12px; }
.dota-role-item { display: flex; flex-direction: column; gap: 6px; }
.dota-role-text { font-size: 13px; color: #ccc; }
.dota-bar-bg { background: #1e1e1e; height: 8px; border-radius: 4px; overflow: hidden; width: 100%; }
.dota-bar-bg.mini { height: 4px; margin-top: 6px; }
.dota-bar-fill { height: 100%; border-radius: 4px; }
.bg-support { background: #eab308; }
.bg-core { background: #ef4444; }
.bg-green { background: #4ade80; }
.bg-red { background: #ef4444; }
.bg-orange { background: #f59e0b; }

.dota-heroes-section { margin-top: 20px; }
.dota-heroes-title { font-size: 14px; font-weight: 700; color: #ddd; text-transform: uppercase; margin-bottom: 16px; letter-spacing: 0.05em; }
.dota-hero-row { display: flex; align-items: center; gap: 20px; padding: 16px 0; border-bottom: 1px solid #222; }
.dota-hero-row:last-child { border-bottom: none; }
.dota-hero-img-box { width: 100px; height: 56px; border-radius: 6px; overflow: hidden; flex-shrink: 0; border: 1px solid #333; }
.dota-hero-img-box img { width: 100%; height: 100%; object-fit: cover; }
.dota-hero-info { width: 120px; flex-shrink: 0; }
.dota-hero-name { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.dota-hero-role { font-size: 12px; color: #777; }
.dota-hero-matches, .dota-hero-winrate, .dota-hero-kda { flex: 1; min-width: 80px; }
.dota-h-val { font-size: 15px; font-weight: 600; color: #eee; margin-bottom: 2px; }
.dota-h-lab { font-size: 11px; color: #777; text-transform: uppercase; }

/* АНИМАЦИИ */
.hero-left > *, .hero-socials > * { opacity: 0; transform: translateX(-40px); transition: all 0.7s cubic-bezier(.2,.7,.2,1); }
.hero-socials > * { transform: translateX(40px); }
body.hero-animate .hero-left > *, body.hero-animate .hero-socials > * { opacity: 1; transform: translateX(0); }
body.hero-animate .hero-left .tag { transition-delay: 0.05s; }
body.hero-animate .hero-left h1 { transition-delay: 0.15s; }
body.hero-animate .hero-left .lead { transition-delay: 0.30s; }
body.hero-animate .hero-left .actions { transition-delay: 0.45s; }
body.hero-animate .hero-socials > *:nth-child(1) { transition-delay: 0.20s; }
body.hero-animate .hero-socials > *:nth-child(2) { transition-delay: 0.28s; }
body.hero-animate .hero-socials > *:nth-child(3) { transition-delay: 0.36s; }
body.hero-animate .hero-socials > *:nth-child(4) { transition-delay: 0.44s; }
body.hero-animate .hero-socials > *:nth-child(5) { transition-delay: 0.52s; }
body.hero-animate .hero-socials > *:nth-child(6) { transition-delay: 0.60s; }
.section { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(.2,.7,.2,1); }
.section.in-view { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 30px); }
  .nav-right { gap: 8px; }
  .hero { min-height: auto; padding-bottom: 40px; }
  .hero-inner { padding-top: 20px; flex-direction: column; gap: 24px; }
  .hero-left { max-width: 100%; }
  .hero h1 { margin: 12px 0 18px; font-size: clamp(38px, 11vw, 60px); line-height: .95; }
  .lead { font-size: 14px; line-height: 1.6; max-width: 100%; }
  .actions { margin-top: 22px; gap: 12px; }
  .btn { padding: 12px 16px; font-size: 13px; }
  .hero-socials { min-width: 0; max-width: 100%; padding-top: 0; align-self: stretch; gap: 8px; }
  .hero-social { padding: 12px 16px; gap: 12px; font-size: 13px; }
  .hero-social-name { font-size: 15px; }
  .columns { grid-template-columns: 1fr; }
  .search-input { max-width: 100%; }
  .section { padding: 60px 0; }
  .section h2 { font-size: clamp(32px, 9vw, 48px); }
  .about-text { font-size: 15px; line-height: 1.7; }
  
  .modal-card { padding: 32px 24px; border-radius: 16px; max-height: 94vh; }
  .modal-game-detail { flex-direction: column; gap: 20px; overflow: hidden; }
  .modal-cover { width: 100%; max-width: 240px; height: 340px; align-self: center; }
  .modal-game-header h2 { font-size: 36px; margin: 10px 0 16px; }
  .modal-meta { gap: 16px; font-size: 14px; }
  .modal-description { font-size: 15px; max-height: 30vh; }
}

@media (max-width: 500px) {
  .wrap { width: calc(100% - 24px); }
  .hero h1 { font-size: 40px; }
  .hero-inner { padding-top: 16px; gap: 20px; }
  .hero-socials { gap: 6px; }
  .hero-social { padding: 10px 14px; }
  .hero-social-name { font-size: 14px; }
  .actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn { text-align: center; justify-content: center; }
  .btn b { margin-left: auto; }
  .section { padding: 50px 0; }
  .section-top { flex-direction: column; align-items: flex-start; }
  .modal { padding: 12px; }
  .modal-card { padding: 22px 18px; border-radius: 14px; }
  .modal-cover { max-width: 200px; height: 280px; }
  .modal-game-header h2 { font-size: 26px; }
  .modal-meta { gap: 12px; font-size: 13px; }
  .modal-description { font-size: 14px; max-height: 25vh; }
  .filters button { padding: 6px 12px; font-size: 11px; }
  .column { padding: 14px; border-radius: 16px; }
  .column-header h3 { font-size: 18px; }
  .card { min-height: 64px; padding: 8px 10px; gap: 10px; }
  .card-cover { width: 48px; height: 48px; }
  .card-title { font-size: 14px; }
  .marathon-card { padding: 12px 14px; }
  .marathon-title { font-size: 15px; }
  #rain-canvas { opacity: 0.6; }
  .water-drop { width: 4px; height: 10px; }
  .nav-btn { padding: 5px 9px; font-size: 11px; }
  .nav-scroll { padding: 2px 0; }
  
  .dota-card { padding: 16px; }
  .dota-profile-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .dota-stats-row { gap: 20px; }
  .dota-hero-row { flex-wrap: wrap; gap: 12px; }
  .dota-hero-info { width: 100%; display: flex; justify-content: space-between; align-items: center; }
  .dota-hero-matches, .dota-hero-winrate, .dota-hero-kda { flex: 1 1 30%; min-width: 60px; }
}
.section-desc {
  margin-top: 12px;
  font-size: 15px;
  color: #888;
  line-height: 1.6;
  max-width: 600px;
}
@media (max-width: 900px) {
  .section-desc {
    font-size: 14px;
  }
}


/* ХРОМОВЫЙ ЗАГОЛОВОК — ровное серебро без движущихся полос */
.hero h1 .wet-line {
  background-image: linear-gradient(
    180deg,
    #ffffff 0%,
    #edf0f3 18%,
    #c5cbd2 38%,
    #929ca7 52%,
    #dce1e6 68%,
    #aeb6bf 84%,
    #f7f8fa 100%
  ) !important;
  background-size: 100% 100% !important;
  background-position: 50% 50% !important;
  background-repeat: no-repeat !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  animation: none !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.18);
  filter:
    drop-shadow(0 1px 1px rgba(255,255,255,.24))
    drop-shadow(0 3px 5px rgba(0,0,0,.72))
    drop-shadow(0 0 13px rgba(205,220,235,.12));
}

/* Убираем отдельный блик, который рисовал полосу поверх букв */
.hero h1 .wet-line::before {
  content: none !important;
  display: none !important;
  animation: none !important;
}

/* При выключении дождя меняется только погода, но не оформление текста */
body.weather-off .hero h1 .wet-line {
  background-image: linear-gradient(
    180deg,
    #ffffff 0%,
    #edf0f3 18%,
    #c5cbd2 38%,
    #929ca7 52%,
    #dce1e6 68%,
    #aeb6bf 84%,
    #f7f8fa 100%
  ) !important;
  background-size: 100% 100% !important;
  background-position: 50% 50% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  animation: none !important;
}

body.weather-off .hero h1 .wet-line::before {
  content: none !important;
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 .wet-line,
  .hero h1 .wet-line::before {
    animation: none !important;
  }
}
