﻿:root {
  --bg: #070b12;
  --text: #f8fbff;
  --text-soft: rgba(232, 239, 255, 0.78);
  --text-muted: rgba(232, 239, 255, 0.58);
  --cyan: #24d5dd;
  --cyan-soft: rgba(36, 213, 221, 0.2);
  --panel: rgba(11, 18, 30, 0.62);
  --panel-strong: rgba(15, 23, 38, 0.86);
  --border: rgba(255, 255, 255, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-width: 320px;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    linear-gradient(90deg, rgba(5, 8, 14, 0.84), rgba(5, 8, 14, 0.48)),
    url("/COMMIA/Fond_Formation_GameplayAcademy_V3.png") center / cover fixed;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(2, 6, 12, 0.18);
}

a,
button {
  font: inherit;
}

a {
  color: inherit;
}

.home-shell {
  display: grid;
  min-height: 100vh;
  padding: 52px 24px 34px;
  grid-template-rows: 1fr auto;
  place-items: center;
}

.home-panel {
  width: min(560px, 100%);
  text-align: center;
}

.home-logo {
  display: block;
  width: min(350px, 80vw);
  height: auto;
  margin: 0 auto 14px;
}

.home-kicker,
.section-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hub-actions {
  display: grid;
  gap: 18px;
  margin-top: 58px;
}

.hub-button {
  display: grid;
  min-height: 86px;
  align-content: center;
  gap: 5px;
  padding: 18px 24px;
  border: 1px solid rgba(36, 213, 221, 0.72);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(36, 213, 221, 0.24), rgba(8, 16, 28, 0.52)),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 46px rgba(0, 0, 0, 0.24);
  text-decoration: none;
  backdrop-filter: blur(14px) saturate(1.08);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.hub-button:hover {
  border-color: #81faff;
  transform: translateY(-2px);
  background:
    linear-gradient(135deg, rgba(36, 213, 221, 0.34), rgba(12, 24, 42, 0.7)),
    rgba(255, 255, 255, 0.08);
}

.hub-button span {
  color: #ffffff;
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hub-button small {
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 650;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.social-links a,
.topbar a,
.tab-button {
  border: 1px solid rgba(36, 213, 221, 0.56);
  border-radius: var(--radius);
  background: rgba(7, 14, 24, 0.58);
  color: #c6fbff;
  text-decoration: none;
}

.social-links a {
  min-width: 108px;
  padding: 10px 14px;
  text-align: center;
  font-weight: 800;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 82px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 8, 14, 0.72);
  backdrop-filter: blur(18px);
}

.center-logo-link {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

.page-logo {
  display: block;
  width: min(350px, 80vw);
  height: auto;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  font-weight: 850;
}

.brand-link img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.topbar nav {
  display: flex;
  gap: 10px;
}

.topbar nav a {
  padding: 10px 14px;
  font-weight: 780;
}

.protos-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 76px;
}

.protos-hero {
  max-width: 820px;
  margin: 28px auto 32px;
  text-align: center;
}

.protos-hero h1 {
  margin: 14px 0 12px;
  color: #ffffff;
  font-size: clamp(1.9rem, 3.4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.protos-hero p {
  margin: 0 auto;
  max-width: 660px;
  color: var(--text-soft);
  font-size: 1.04rem;
  line-height: 1.6;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 34px;
}

.tab-button {
  min-width: 138px;
  min-height: 44px;
  padding: 0 18px;
  color: var(--text-soft);
  cursor: pointer;
}

.tab-button.is-active {
  background: #64dce3;
  color: #071018;
  font-weight: 850;
}

.proto-grid {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.proto-grid.is-active {
  display: grid;
}

.proto-card {
  overflow: hidden;
  border: 1px solid rgba(36, 213, 221, 0.5);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(100, 220, 227, 0.94), rgba(87, 208, 216, 0.86)),
    #64dce3;
  color: #10212a;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
}

.proto-shot {
  min-height: 180px;
  margin: 14px 14px 0;
  border: 1px solid rgba(11, 28, 36, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(5, 8, 14, 0.08), rgba(5, 8, 14, 0.2)),
    #14212c;
  box-shadow: inset 0 -26px 40px rgba(0, 0, 0, 0.18);
}

.proto-shot--elementrix {
  background:
    linear-gradient(180deg, rgba(123, 214, 224, 0.1), rgba(9, 17, 24, 0.24)),
    repeating-linear-gradient(90deg, transparent 0 52px, rgba(255, 255, 255, 0.06) 52px 54px),
    linear-gradient(180deg, #8ddae0 0 53%, #162825 53% 63%, #284c3c 63% 100%);
}

.proto-shot--signals {
  background:
    radial-gradient(circle at 50% 45%, rgba(36, 213, 221, 0.38), transparent 34%),
    linear-gradient(135deg, #111c27, #071018);
}

.proto-shot--default {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.16), transparent 32%),
    linear-gradient(135deg, #132535, #071018);
}

.proto-card__content {
  padding: 18px 20px 22px;
}

.proto-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.proto-card h2 {
  margin: 0;
  color: #12222c;
  font-size: 1.48rem;
  letter-spacing: 0;
}

.proto-card__title span {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: #0d6775;
  color: #d4fdff;
  font-size: 0.8rem;
  font-weight: 850;
}

.proto-card p {
  margin: 16px 0 18px;
  color: rgba(16, 33, 42, 0.82);
  font-size: 1rem;
  line-height: 1.55;
}

.proto-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.proto-meta__item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
  color: #10212a;
  font-weight: 850;
}

.proto-meta__item svg,
.download-button svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.proto-meta__item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
  gap: 9px;
  border-radius: 6px;
  background: #0d6775;
  color: #d4fdff;
  font-weight: 850;
  text-decoration: none;
}

.admin-shell {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 76px;
}

.admin-panel {
  margin-top: 30px;
  padding: 28px;
  border: 1px solid rgba(36, 213, 221, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(10, 18, 32, 0.76), rgba(10, 18, 32, 0.5)),
    rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px) saturate(1.08);
}

.admin-panel h1 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 760;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(7, 14, 24, 0.72);
  color: var(--text);
  padding: 12px 13px;
  outline: none;
}

.admin-form textarea {
  resize: vertical;
}

.admin-submit {
  justify-self: start;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(36, 213, 221, 0.72);
  border-radius: 6px;
  background: #64dce3;
  color: #071018;
  cursor: pointer;
  font-weight: 850;
}

.admin-status {
  min-height: 24px;
  margin: 0;
  color: var(--text-soft);
  font-weight: 700;
}

@media (max-width: 860px) {
  .home-shell {
    padding: 34px 18px 28px;
  }

  .hub-actions {
    margin-top: 44px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar nav {
    width: 100%;
  }

  .topbar nav a {
    flex: 1;
    text-align: center;
  }

  .protos-shell {
    width: min(560px, calc(100% - 30px));
    padding-top: 34px;
  }

  .proto-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .home-logo {
    width: min(300px, 88vw);
  }

  .hub-button {
    min-height: 78px;
    padding: 16px 18px;
  }

  .hub-button span {
    font-size: 1.04rem;
  }

  .social-links a {
    min-width: 0;
    flex: 1 1 92px;
  }

  .proto-meta,
  .admin-form__grid {
    grid-template-columns: 1fr;
  }
}

.home-return {
  position: fixed;
  left: 22px;
  bottom: 20px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(36, 213, 221, 0.58);
  border-radius: 6px;
  background: rgba(7, 14, 24, 0.72);
  color: #c6fbff;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(12px);
}
