/* The participant bot sits beside the festival's social channels. */
.telegram-panel {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 214px;
  align-items: center;
  gap: 28px;
  max-width: 1166px;
  margin: 24px auto 0;
  padding: 34px;
  border: 1px solid #a187cf35;
  border-radius: 20px;
  background: linear-gradient(115deg, #1b1627, #10131f);
}
.telegram-symbol {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid #98cdff40;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, #2da1d7, #4468d3);
  box-shadow: 0 8px 24px #167ac21a, inset 0 1px 0 #ffffff25;
}
.telegram-symbol svg { width: 32px; height: 32px; }
.telegram-handle {
  display: block;
  margin-bottom: 9px;
  color: #c2b0f2;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .025em;
}
.telegram-copy h2 {
  margin: 0 0 12px;
  color: var(--text-primary);
  font-size: clamp(25px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -.035em;
}
.telegram-copy p {
  max-width: 570px;
  color: #bab4c8;
  font-size: 14px;
  line-height: 1.75;
}
.telegram-action { text-align: center; }
.telegram-link { width: 100%; min-height: 52px; }
.telegram-action p {
  max-width: 220px;
  margin: 12px auto 0;
  color: #aaa7ba;
  font-size: 11px;
  line-height: 1.65;
}
html[data-theme="light"] .telegram-panel {
  border-color: #d9deeb;
  background: linear-gradient(110deg, #fff, #f7f8fe);
  box-shadow: 0 8px 28px #242b4605;
}
html[data-theme="light"] .telegram-handle { color: #62409d; }
html[data-theme="light"] .telegram-copy p,
html[data-theme="light"] .telegram-action p { color: #555e72; }

@media (max-width: 900px) {
  .telegram-panel { grid-template-columns: 64px minmax(0, 1fr); gap: 24px; }
  .telegram-symbol { align-self: start; margin-top: 3px; }
  .telegram-action { grid-column: 2; text-align: left; }
  .telegram-link { width: auto; min-width: 210px; }
  .telegram-action p { max-width: none; margin: 10px 0 0; }
}
@media (max-width: 580px) {
  .telegram-panel { grid-template-columns: 46px minmax(0, 1fr); padding: 24px; gap: 18px 15px; border-radius: 18px; }
  .telegram-symbol { width: 46px; height: 46px; border-radius: 14px; }
  .telegram-symbol svg { width: 26px; height: 26px; }
  .telegram-handle { font-size: 11px; margin-bottom: 8px; }
  .telegram-copy h2 { font-size: 24px; }
  .telegram-copy p { font-size: 13px; }
  .telegram-action { grid-column: 1 / -1; text-align: center; }
  .telegram-link { width: 100%; font-size: 14px; }
  .telegram-action p { max-width: 290px; margin-inline: auto; }
}
