:root {
  --bg: #fff7fc;
  --bg-2: #f4eeff;
  --panel: rgba(255, 255, 255, 0.82);
  --card: #ffffff;
  --text: #1a1738;
  --muted: #4d4c79;
  --pink: #ff4db8;
  --pink-2: #ff93db;
  --purple: #7b5cff;
  --blue: #36c8ff;
  --mint: #49f0c9;
  --yellow: #ffe45c;
  --shadow: rgba(110, 79, 190, 0.22);
  --line: rgba(76, 61, 155, 0.12);
  --cyan: #b9f4ff;
  --danger: #ff5b97;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background: radial-gradient(circle at 10% 20%, #fff4ff 0%, #ffe2f8 18%, #f1ebff 34%, #ebf9ff 66%, #fdf7ff 100%);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: clip;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.bg-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: inset -12px -12px 30px rgba(255, 255, 255, 0.6), inset 12px 12px 30px rgba(175, 176, 255, 0.25);
  z-index: 0;
  filter: blur(2px);
}

.bubble-1 {
  width: 260px;
  height: 260px;
  top: 7%;
  left: 3%;
}

.bubble-2 {
  width: 320px;
  height: 320px;
  right: 3%;
  top: 10%;
}

.bubble-3 {
  width: 220px;
  height: 220px;
  bottom: 8%;
  left: 15%;
}

.bubble-4 {
  width: 240px;
  height: 240px;
  right: 16%;
  bottom: 5%;
}

.site-header,
.hero,
.section,
.site-footer,
.content-page {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 24px 0 12px;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(103, 82, 145, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 42px rgba(122, 96, 171, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white;
  box-shadow: 0 10px 24px rgba(178, 101, 255, 0.4);
}

.brand-logo {
  width: 320px;
  height: 116px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-text {
  font-size: 1.06rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 0.96rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.main-nav a {
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
}

.main-nav a.active::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  inset: auto 0 -8px 0;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--blue));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #ff4db8 0%, #9b6dff 48%, #36c8ff 100%);
  color: white;
  box-shadow: 0 18px 30px rgba(160, 96, 255, 0.34);
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,244,196,0.95));
  color: var(--text);
  border: 1px solid rgba(123, 103, 193, 0.2);
  box-shadow: 0 12px 22px rgba(124, 96, 169, 0.12);
}

.btn.large {
  padding: 18px 30px;
}

.hero {
  padding: 62px 0 48px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 52px;
  padding-top: 24px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  font-size: 0.7rem;
}

.hero-copy h1,
.section-heading h2,
.form-intro h1,
.contact-intro h1,
.about-content h2,
.cta-box h2 {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.section-subtitle {
  margin: 12px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.7;
  text-align: left;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  max-width: 620px;
}

.event-date {
  margin: 12px 0 0;
  color: var(--purple);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-text {
  margin-top: 18px;
  max-width: 600px;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.hero-meta {
  list-style: none;
  padding: 0;
  margin: 38px 0 0;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.hero-meta li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 130px;
}

.hero-meta strong {
  font-size: clamp(1.7rem, 2.3vw, 2.4rem);
  font-family: "Fredoka", sans-serif;
  color: var(--text);
}

.hero-meta span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.orbit-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(244,236,255,0.8));
  border: 1px solid rgba(147,120,225,0.16);
  backdrop-filter: blur(10px);
  box-shadow: 0 28px 38px rgba(84, 59, 125, 0.14);
  border-radius: 40px;
}

.orbit-main {
  width: min(380px, 70vw);
  height: min(380px, 70vw);
  z-index: 1;
}

.logo-wrap {
  padding: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(245, 230, 255, 0.92));
  z-index: 1;
}

.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 28px;
  filter: drop-shadow(0 18px 28px rgba(125, 88, 209, 0.18));
}

.orbit-main .label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
}

.orbit-main strong {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  margin-top: 8px;
}

.orbit-main small {
  margin-top: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.mini-card {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,255,255,0.82));
  padding: 14px 18px;
  font-weight: 800;
  color: var(--text);
  box-shadow: 0 18px 32px rgba(109, 88, 156, 0.18);
  border: 1px solid rgba(95, 82, 145, 0.12);
  z-index: 3;
}

.card-top {
  top: 50px;
  right: 8%;
  transform: rotate(12deg);
  background: linear-gradient(135deg, rgba(255, 160, 214, 0.45), rgba(255,255,255,0.9));
}

.card-mid {
  left: 0%;
  top: 180px;
  transform: rotate(-14deg);
  background: linear-gradient(135deg, rgba(160, 229, 255, 0.5), rgba(255,255,255,0.9));
}

.card-bot {
  bottom: 20px;
  right: 18%;
  transform: rotate(8deg);
  background: linear-gradient(135deg, rgba(174, 255, 216, 0.5), rgba(255,255,255,0.9));
}

.spark {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.2);
}

.spark-1 {
  width: 18px;
  height: 18px;
  top: 80px;
  left: 18%;
}

.spark-2 {
  width: 12px;
  height: 12px;
  bottom: 125px;
  right: 20%;
}

.spark-3 {
  width: 20px;
  height: 20px;
  top: 260px;
  right: 8%;
}

.trust-bar {
  padding: 10px 0 30px;
}

.trust-wrap {
  display: grid;
  grid-template-columns: repeat(6, minmax(80px, 1fr));
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 232, 168, 0.55), rgba(191, 238, 255, 0.9));
  border: 1px solid rgba(109, 91, 180, 0.12);
  border-radius: 22px;
  box-shadow: 0 18px 30px rgba(103, 82, 145, 0.08);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.section {
  padding: 80px 0;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 3vw, 3.3rem);
  max-width: 760px;
}

.narrow {
  max-width: 620px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 22px;
}

.feature-card,
.info-card,
.contact-card,
.form-card,
.contact-form-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: 0 25px 38px rgba(93, 73, 157, 0.08);
}

.feature-card {
  padding: 28px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,243,255,0.88));
}

.icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 77, 184, 0.2), rgba(54, 200, 255, 0.2), rgba(73, 240, 201, 0.2));
  font-size: 1.7rem;
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.5);
}

.feature-card h3,
.info-card h3,
.contact-card h3,
.form-card h2,
.contact-form-card h2 {
  margin: 0 0 12px;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.feature-card p,
.info-card p,
.about-content p,
.contact-card p,
.form-intro p,
.contact-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.benefits-inner {
  display: grid;
  gap: 36px;
}

.stack-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 22px;
}

.info-card {
  padding: 28px 22px 30px;
}

.card-peach {
  background: linear-gradient(180deg, rgba(255, 215, 120, 0.7), rgba(255,255,255,0.9));
}

.card-blue {
  background: linear-gradient(180deg, rgba(116, 227, 255, 0.8), rgba(255,255,255,0.92));
}

.card-lilac {
  background: linear-gradient(180deg, rgba(202, 179, 255, 0.9), rgba(255,255,255,0.92));
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 7px 12px;
  font-weight: 800;
  color: var(--purple);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 36px;
}

.about-content h2 {
  font-size: clamp(2.2rem, 3.2vw, 3.1rem);
  margin-bottom: 18px;
}

.about-content p + p {
  margin-top: 14px;
}

.about-panel {
  padding: 26px;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(242,234,255,0.82));
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 24px 40px rgba(112, 90, 174, 0.08);
}

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(51, 42, 83, 0.08);
}

.panel-row:last-child {
  border-bottom: 0;
}

.panel-row span {
  color: var(--muted);
}

.panel-row strong {
  text-align: right;
}

.cta-section {
  padding-top: 10px;
  padding-bottom: 90px;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 38px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 100, 200, 0.58), rgba(123, 92, 255, 0.5), rgba(54, 200, 255, 0.62), rgba(73, 240, 201, 0.46));
  border: 1px solid rgba(140, 110, 196, 0.14);
  box-shadow: 0 24px 36px rgba(120, 80, 169, 0.14);
}

.cta-box h2 {
  max-width: 760px;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.site-footer {
  padding: 0 0 46px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(87, 66, 136, 0.1);
}

.brand-footer {
  margin-bottom: 8px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-weight: 700;
}

.content-page {
  padding: 42px 0 28px;
}

.winners-page {
  min-height: 62vh;
}

.winners-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.winners-heading h1,
.winner-direction h2 {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.winners-heading h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
}

.winners-heading > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.winners-directions {
  display: grid;
  gap: 28px;
}

.winner-direction {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 36px rgba(93, 73, 157, 0.08);
}

.winner-direction h2 {
  margin-bottom: 22px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.winner-awards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.winner-award {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
}

.winner-award h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: "Fredoka", sans-serif;
  font-size: 1.25rem;
}

.winner-place {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-2), var(--purple));
  color: white;
}

.winner-second .winner-place {
  background: linear-gradient(135deg, #9aa8ce, #6476a8);
}

.winner-third .winner-place {
  background: linear-gradient(135deg, #e5a078, #bc6e57);
}

.winner-award ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.winner-award li {
  padding-left: 3px;
}

.form-layout,
.contacts-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.contacts-page-layout {
  grid-template-columns: 1fr;
}

.contacts-page-layout .contact-grid {
  grid-template-columns: minmax(220px, 420px);
  margin-top: 0;
}

.form-intro,
.contact-intro {
  padding: 20px 0;
}

.form-intro h1,
.contact-intro h1 {
  font-size: clamp(2.6rem, 4vw, 4rem);
  margin-bottom: 16px;
}

.mini-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.mini-facts div {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(97, 75, 141, 0.1);
  border-radius: 22px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 18px 24px rgba(97, 75, 141, 0.05);
}

.mini-facts strong {
  width: 100%;
  font-family: "Fredoka", sans-serif;
  font-size: 2rem;
  text-align: center;
}

.mini-facts span {
  width: 100%;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.form-card,
.contact-form-card {
  padding: 28px 24px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 18px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

label span {
  font-size: 0.92rem;
}

.full-width {
  grid-column: 1 / -1;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(98, 82, 143, 0.12);
  border-radius: 18px;
  background: rgba(248, 246, 255, 0.8);
  padding: 14px 16px;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.file-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 150px;
  padding: 24px;
  border: 2px dashed rgba(123, 92, 255, 0.28);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 247, 252, 0.9), rgba(238, 249, 255, 0.8));
  color: var(--text);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.file-dropzone:hover,
.file-dropzone:focus-visible,
.file-dropzone.is-dragging {
  border-color: var(--pink);
  background: linear-gradient(135deg, rgba(255, 231, 247, 0.95), rgba(224, 247, 255, 0.95));
  outline: none;
  transform: translateY(-1px);
}

.file-dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-drop-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
}

.file-drop-hint,
.file-name {
  color: var(--muted);
  font-size: 0.84rem;
}

.file-name {
  color: #238857;
  font-weight: 800;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(133, 113, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(137, 120, 255, 0.12);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.char-counter {
  align-self: flex-end;
  margin-top: -4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.form-actions {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.form-message {
  min-height: 24px;
  margin: 0;
  font-weight: 700;
  color: var(--purple);
}

.form-message.error {
  color: var(--danger);
}

.form-message.success {
  color: #238857;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 20px;
  margin: 24px 0 28px;
}

.contact-card {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 170, 213, 0.16), rgba(164, 225, 255, 0.18));
  font-size: 1.4rem;
}

.contact-card a,
.contact-card p {
  color: var(--muted);
  margin: 0;
}

.account-page,
.poster-feed-page {
  min-height: 62vh;
}

.account-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: 42px;
}

.account-intro {
  padding: 22px 0;
}

.account-intro h1,
.feed-heading h1,
.poster-detail h1 {
  margin: 0 0 18px;
  max-width: 700px;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.7rem);
  line-height: 1.05;
}

.account-intro > p:last-child {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.75;
}

.account-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 44px rgba(93, 73, 157, 0.1);
}

.account-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.account-tab {
  padding: 12px 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.account-tab.is-active {
  border-bottom-color: var(--pink);
  color: var(--text);
}

.account-form {
  display: grid;
  gap: 18px;
}

.account-form .btn,
#account-session .btn {
  justify-self: start;
}

#account-session h2 {
  margin: 0 0 8px;
  font-family: "Fredoka", sans-serif;
  font-size: 2rem;
}

.account-role,
.poster-byline,
.feed-user {
  color: var(--muted);
}

#account-session .btn + .btn {
  margin-left: 8px;
}

.feed-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.feed-heading h1 {
  margin-bottom: 0;
}

.feed-user {
  margin: 0 0 8px;
  font-weight: 700;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.poster-publish-form {
  margin: 0 0 30px;
  padding: 24px;
  border-left: 4px solid var(--mint);
  background: rgba(255, 255, 255, 0.78);
}

.poster-publish-form h2 {
  margin: 0 0 18px;
  font-family: "Fredoka", sans-serif;
  font-size: 1.7rem;
}

.poster-publish-form .btn {
  margin-top: 10px;
}

.poster-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 32px rgba(93, 73, 157, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 38px rgba(93, 73, 157, 0.14);
}

.poster-card.is-hidden {
  border-color: rgba(165, 42, 42, 0.35);
  background: rgba(255, 248, 246, 0.96);
}

.poster-admin-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}

.poster-hidden-status {
  flex: 1 1 100%;
  color: #a52a2a;
  font-size: 0.84rem;
  font-weight: 800;
}

.poster-visibility-button {
  min-width: 0;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid #164c46;
  border-radius: 6px;
  background: #176b4d;
  color: #fff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.poster-visibility-button:hover {
  background: #10543c;
}

.detail-visibility-button {
  display: block;
  margin: -14px 0 22px;
}

.poster-visibility-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.poster-card-link {
  display: block;
  height: 100%;
  color: inherit;
}

.poster-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(130deg, #fff0e1, #dff8f5 55%, #e6efff);
}

.poster-thumb img,
.poster-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.poster-file-placeholder {
  display: grid;
  place-items: center;
  color: var(--text);
  font-family: "Fredoka", sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.poster-card-copy {
  padding: 20px;
}

.poster-card-copy .eyebrow {
  margin-bottom: 8px;
}

.poster-card h2 {
  margin: 0 0 8px;
  font-family: "Fredoka", sans-serif;
  font-size: 1.55rem;
  line-height: 1.2;
}

.poster-card .poster-byline {
  margin: 0 0 14px;
}

.poster-card-abstract {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.poster-card-footer {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.empty-state {
  margin: 18px 0;
  color: var(--muted);
  line-height: 1.6;
}

.poster-detail {
  max-width: 900px;
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--muted);
  font-weight: 800;
}

.poster-detail > .eyebrow {
  margin-bottom: 10px;
}

.poster-detail h1 {
  margin-bottom: 10px;
}

.detail-file {
  margin: 28px 0;
}

.poster-image {
  display: block;
  max-height: 72vh;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
}

.poster-image img {
  max-height: 72vh;
}

.poster-download {
  width: fit-content;
}

.poster-abstract {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  white-space: pre-line;
}

.poster-pdf-viewer {
  display: block;
  width: 100%;
  height: min(82vh, 920px);
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.discussion {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.discussion-heading,
.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.discussion-heading h2 {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-size: 2rem;
}

.discussion-heading span,
.comment-meta time {
  color: var(--muted);
  font-size: 0.9rem;
}

.comment-list {
  display: grid;
  gap: 14px;
  margin: 20px 0 28px;
}

.comment-item {
  padding: 18px 20px;
  border-left: 3px solid var(--blue);
  background: rgba(255, 255, 255, 0.72);
}

.comment-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
  white-space: pre-line;
}

.comment-replies {
  display: grid;
  gap: 12px;
  margin: 16px 0 0 18px;
  padding-left: 16px;
  border-left: 2px solid rgba(54, 200, 255, 0.5);
}

.comment-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
}

.comment-badge-author {
  background: #e0f5ed;
  color: #176b4d;
}

.comment-badge-admin {
  background: #fff0d6;
  color: #89520b;
}

.comment-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.comment-action {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #245b72;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.comment-action:disabled {
  opacity: 0.55;
  cursor: wait;
}

.comment-delete {
  color: #a52a2a;
}

.comment-image-link {
  display: inline-block;
  max-width: min(100%, 520px);
  margin-top: 14px;
}

.comment-image-link img {
  max-height: 420px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: contain;
}

.comment-form {
  display: grid;
  gap: 14px;
  max-width: 680px;
}

.comment-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.comment-tools .btn {
  padding: 10px 14px;
  font-size: 0.88rem;
}

.comment-image-picker {
  position: relative;
  display: flex;
  flex: 1 1 250px;
  min-height: 56px;
  align-items: center;
  padding: 9px 14px;
  overflow: hidden;
  border: 1px dashed rgba(36, 91, 114, 0.42);
  border-radius: 10px;
  background: linear-gradient(110deg, rgba(224, 245, 237, 0.65), rgba(223, 248, 245, 0.72));
  color: #245b72;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.comment-image-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.comment-image-picker:hover,
.comment-image-picker:focus-within {
  border-color: #167b78;
  background: #e3f7f0;
}

.comment-image-picker.has-file {
  border-style: solid;
  border-color: #167b78;
}

.image-picker-content {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.image-picker-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: #167b78;
  color: white;
  font-size: 1.45rem;
  line-height: 1;
}

.image-picker-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.image-picker-copy strong {
  font-size: 0.9rem;
}

.image-picker-copy > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.math-hint {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.reply-context {
  margin: 0;
  color: #245b72;
  font-weight: 800;
}

.cancel-reply {
  justify-self: start;
}

.comment-form textarea {
  resize: vertical;
}

.comment-form .btn {
  justify-self: start;
}

.participant-posters {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.participant-posters > h2 {
  margin: 0 0 12px;
  font-family: "Fredoka", sans-serif;
  font-size: 1.8rem;
}

.my-posters-list {
  display: grid;
  gap: 22px;
}

.my-poster-item {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.my-poster-item h3 {
  margin: 0 0 6px;
  font-family: "Fredoka", sans-serif;
  font-size: 1.35rem;
}

.my-poster-item .poster-pdf-viewer {
  height: min(70vh, 660px);
  min-height: 400px;
  margin-bottom: 18px;
}

.my-poster-item h3 a {
  color: var(--text);
}

.my-poster-item h4 {
  margin: 20px 0 0;
}

.my-poster-item .comment-list {
  margin: 12px 0 0;
}

.form-message.error {
  color: #b42318;
}

.form-message.success {
  color: #16794b;
}

@media (max-width: 980px) {
  .hero-inner,
  .about-grid,
  .form-layout,
  .contacts-layout,
  .account-layout {
    grid-template-columns: 1fr;
  }

  .program-grid,
  .stack-cards,
  .winner-awards {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav {
    order: 3;
    width: 100%;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 30px;
  }

  .nav-wrap {
    padding: 16px 18px;
  }

  .brand-logo {
    width: 240px;
    height: 88px;
  }

  .main-nav {
    gap: 14px 20px;
    font-size: 0.82rem;
  }

  .nav-cta {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .btn.large {
    width: 100%;
  }

  .field-grid,
  .contact-grid,
  .mini-facts,
  .trust-wrap,
  .feed-heading {
    grid-template-columns: 1fr;
  }

  .feed-heading {
    display: grid;
    align-items: start;
    gap: 8px;
  }

  .account-panel {
    padding: 22px 18px;
  }

  .account-tabs {
    gap: 0;
  }

  .account-tab {
    flex: 1;
    padding-inline: 8px;
  }

  #account-session .btn + .btn {
    margin: 12px 0 0;
  }

  .discussion-heading,
  .comment-meta {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .comment-replies {
    margin-left: 8px;
    padding-left: 9px;
  }

  .poster-pdf-viewer {
    height: 68vh;
    min-height: 360px;
  }

  .comment-form .btn {
    width: 100%;
  }

  .form-card,
  .contact-form-card {
    padding: 22px 18px;
  }

  .section {
    padding: 68px 0;
  }
}
