:root {
  --ink: #213633;
  --muted: #6b746f;
  --paper: #fff7e8;
  --milk: #fffdf7;
  --leaf: #1f8a5b;
  --leaf-dark: #126642;
  --tomato: #ee5338;
  --tomato-dark: #13935ce9;
  --berry: #8d3f94;
  --sun: #ffc83d;
  --sky: #1f88c9;
  --line: rgba(33, 54, 51, 0.14);
  --shadow: 0 22px 56px rgba(55, 42, 22, 0.16);
  --soft-shadow: 0 12px 32px rgba(55, 42, 22, 0.1);
  --radius: 8px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Montserrat", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 200, 61, 0.18), transparent 25rem),
    radial-gradient(circle at 94% 32%, rgba(31, 136, 201, 0.14), transparent 26rem),
    linear-gradient(180deg, #fff9ec 0%, #fff3dc 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.48;
  background-image:
    radial-gradient(circle, rgba(238, 83, 56, 0.18) 0 2px, transparent 2px),
    radial-gradient(circle, rgba(31, 138, 91, 0.14) 0 2px, transparent 2px);
  background-size: 42px 42px, 58px 58px;
  background-position: 0 0, 18px 22px;
  animation: dreamyDots 28s linear infinite;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 20;
  width: min(1080px, calc(100% - 56px));
  min-height: 58px;
  margin: 10px auto 0;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 2px solid rgba(33, 54, 51, 0.1);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  font-size: 0.95rem;
}

.logo-slot {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #06465c;
  box-shadow: 0 10px 22px rgba(6, 70, 92, 0.24);
}

.logo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-logos {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  padding-left: clamp(4px, 1vw, 12px);
}

.partner-logos img {
  display: block;
  max-width: 126px;
  max-height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(6, 70, 92, 0.08));
}

.partner-logos img[src*="Silpo"] {
  max-height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 850;
}

.nav-links a {
  min-height: 34px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.74);
}

.nav-links a.active,
.nav-links a:hover {
  color: #fff;
  background: var(--leaf);
}

.hero,
.gallery-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.page-hero {
  min-height: calc(100svh - 92px);
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(250px, 320px);
  align-items: center;
  gap: clamp(22px, 4vw, 46px);
  padding: clamp(26px, 4vh, 44px) 0 clamp(26px, 4vh, 44px);
  color: #fff;
  position: relative;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -94px;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(30, 54, 48, 0.5), rgba(30, 54, 48, 0.18) 48%, rgba(255, 247, 232, 0.05) 78%),
    url("assets/silpo-dreams-bg.png") center right / cover no-repeat;
  filter: saturate(1.12) contrast(1.03);
  animation: heroGlow 16s ease-in-out infinite alternate;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  bottom: -1px;
  height: 52px;
  z-index: -1;
  background:
  	radial-gradient(92px 48px at 0% 100%, var(--paper) 98%, transparent 100%),
  	radial-gradient(92px 48px at 16.6% 100%, var(--paper) 98%, transparent 100%),
  	radial-gradient(92px 48px at 33.2% 100%, var(--paper) 98%, transparent 100%),
  	radial-gradient(92px 48px at 49.8% 100%, var(--paper) 98%, transparent 100%),
  radial-gradient(92px 48px at 66.4% 100%, var(--paper) 98%, transparent 100%),
  radial-gradient(92px 48px at 83% 100%, var(--paper) 98%, transparent 100%),
  radial-gradient(92px 48px at 100% 100%, var(--paper) 98%, transparent 100%);
}

.hero-copy {
  padding-bottom: 0;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 12px;
  color: var(--tomato-dark);
  border: 1px solid rgba(238, 83, 56, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.page-hero .eyebrow {
  color: #50310a;
  background: var(--sun);
  border-color: rgba(255, 255, 255, 0.45);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(3rem, 6.8vw, 6rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.2vw, 3.85rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin: 0;
  font-size: 1.18rem;
}

.lead {
  max-width: 660px;
  margin: clamp(14px, 2vh, 20px) 0 0;
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(18px, 3vh, 26px);
}

.button,
.vote-button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 950;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.button:hover,
.vote-button:hover {
  transform: translateY(-2px);
}

.button.primary:hover,
.vote-button:hover {
  box-shadow: 0 18px 32px rgba(238, 83, 56, 0.32);
}

.button.primary,
.vote-button {
  color: #fff;
  background: linear-gradient(135deg, var(--tomato), #ff7b35);
  box-shadow: 0 12px 24px rgba(238, 83, 56, 0.24);
}

.button.ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.14);
}

.button.light {
  color: var(--leaf-dark);
  border: 2px solid rgba(31, 138, 91, 0.18);
  background: #fff;
}

.hero-card {
  align-self: end;
  padding: 20px;
  border: 2px solid rgba(255, 200, 61, 0.8);
  border-radius: 22px;
  background: rgba(255, 253, 247, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--tomato-dark);
  font-size: clamp(1.55rem, 2.5vw, 1.9rem);
}

.hero-card span {
  color: var(--muted);
  line-height: 1.5;
}

main section {
  padding: 84px 0;
}

main section.intro {
  padding: clamp(52px, 6vw, 68px) 0;
}

.band {
  position: relative;
  background:
    linear-gradient(135deg, rgba(31, 138, 91, 0.1), rgba(255, 200, 61, 0.16)),
    var(--milk);
}

.application-section {
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 200, 61, 0.42), transparent 18rem),
    radial-gradient(circle at 82% 16%, rgba(31, 136, 201, 0.24), transparent 22rem),
    radial-gradient(circle at 74% 84%, rgba(238, 83, 56, 0.18), transparent 20rem),
    radial-gradient(circle at 30% 82%, rgba(31, 138, 91, 0.18), transparent 24rem),
    linear-gradient(135deg, rgba(223, 242, 223, 0.92), rgba(255, 242, 198, 0.92) 52%, rgba(255, 230, 183, 0.95)),
    var(--milk);
}

.application-section::before,
.application-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.application-section::before {
  width: min(48vw, 560px);
  aspect-ratio: 1;
  right: max(-120px, calc((100vw - 1180px) / 2 - 220px));
  top: -36px;
  border: 2px solid rgba(255, 200, 61, 0.55);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 200, 61, 0.24) 0 19%, transparent 20%),
    radial-gradient(circle at 50% 50%, transparent 0 43%, rgba(31, 138, 91, 0.18) 44% 46%, transparent 47%),
    radial-gradient(circle at 50% 50%, transparent 0 61%, rgba(31, 136, 201, 0.18) 62% 64%, transparent 65%),
    radial-gradient(circle at 50% 50%, transparent 0 78%, rgba(238, 83, 56, 0.12) 79% 81%, transparent 82%);
  box-shadow: 0 26px 80px rgba(31, 136, 201, 0.12);
  animation: softOrbit 18s ease-in-out infinite alternate;
}

.application-section::after {
  width: min(66vw, 760px);
  height: 300px;
  left: max(-150px, calc((100vw - 1180px) / 2 - 240px));
  bottom: -22px;
  opacity: 0.95;
}

.application-section .section-heading {
  position: relative;
  z-index: 1;
}

.application-section .section-heading h2 {
  color: var(--ink);
  text-shadow: 0 10px 32px rgba(255, 200, 61, 0.18);
}

.application-section .section-note {
  max-width: 620px;
  padding: 16px 18px;
  border-left: 5px solid var(--sun);
  border-radius: 18px 6px 18px 6px;
  background: rgba(255, 253, 247, 0.64);
  box-shadow: 0 14px 36px rgba(55, 42, 22, 0.08);
}

.application-section .eyebrow {
  color: var(--leaf-dark);
  border-color: rgba(31, 138, 91, 0.24);
  background: rgba(255, 253, 247, 0.82);
}

.intro {
  overflow: hidden;
}

.intro::before,
.intro::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0.5;
}

.intro::before {
  width: 128px;
  height: 128px;
  right: 8vw;
  top: 34px;
  border: 2px solid rgba(255, 200, 61, 0.5);
  border-radius: 50%;
  background:
    radial-gradient(circle at 52% 52%, rgba(255, 200, 61, 0.16) 0 38%, transparent 39%),
    radial-gradient(circle at 52% 52%, transparent 0 62%, rgba(31, 138, 91, 0.12) 63% 66%, transparent 67%);
  animation: softOrbit 16s ease-in-out infinite alternate;
}

.intro::after {
  width: 190px;
  height: 92px;
  left: 42%;
  bottom: 36px;
  background:
    radial-gradient(circle at 8% 80%, rgba(238, 83, 56, 0.22) 0 8px, transparent 9px),
    radial-gradient(circle at 34% 22%, rgba(31, 136, 201, 0.18) 0 7px, transparent 8px),
    radial-gradient(circle at 78% 62%, rgba(31, 138, 91, 0.16) 0 10px, transparent 11px);
  animation: paperTrail 13s ease-in-out infinite alternate-reverse;
}

.section-grid,
.section-heading,
.timeline,
.application-form,
.rules-grid,
.gallery-section > .flash,
.gallery-section > .empty-state,
.category-block,
.footer {
  width: min(1180px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.intro .section-grid h2 {
  font-size: clamp(2.35rem, 5vw, 4.5rem);
}

.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.intro-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
}

.intro-copy p {
  margin: 0;
}

.intro-lead {
  padding-left: 15px;
  border-left: 5px solid var(--sun);
  color: var(--ink);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  font-weight: 800;
  line-height: 1.48;
}

.techniques {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.techniques span {
  padding: 6px 10px;
  border: 1px solid rgba(31, 138, 91, 0.18);
  border-radius: 999px;
  color: var(--leaf-dark);
  background: rgba(255, 253, 247, 0.72);
  font-size: 0.8rem;
  font-weight: 900;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

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

.timeline-item,
.rule-card,
.application-form,
.art-card,
.empty-state,
.empty-category,
.flash {
  border: 2px solid rgba(33, 54, 51, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.94);
}

.timeline-item,
.rule-card {
  min-height: 190px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  animation: cardArrive 0.7s ease both;
}

.timeline-item:nth-child(2),
.rule-card:nth-child(2) {
  animation-delay: 0.08s;
}

.timeline-item:nth-child(3),
.rule-card:nth-child(3) {
  animation-delay: 0.16s;
}

.timeline-item::after,
.rule-card::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 200, 61, 0.28);
}

.timeline-item:nth-child(2n)::after,
.rule-card:nth-child(2n)::after {
  background: rgba(31, 136, 201, 0.18);
}

.timeline-item .step {
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--leaf);
  font-weight: 950;
}

.timeline-item p,
.rule-card p,
.dream,
.company {
  color: var(--muted);
  line-height: 1.55;
}

.timeline-item time {
  display: block;
  margin-top: 12px;
  color: var(--tomato-dark);
  font-weight: 950;
}

.application-form {
  width: min(980px, calc(100% - 40px));
  max-width: 980px;
  padding: clamp(18px, 2.2vw, 24px);
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
  border-color: rgba(31, 138, 91, 0.14);
  border-radius: 28px 8px 28px 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.97), rgba(255, 253, 247, 0.9)),
    radial-gradient(circle at 100% 0, rgba(255, 200, 61, 0.22), transparent 13rem),
    radial-gradient(circle at 0 100%, rgba(31, 136, 201, 0.08), transparent 12rem);
  box-shadow: 0 30px 90px rgba(55, 42, 22, 0.18), 0 0 0 10px rgba(255, 253, 247, 0.28);
  animation: cardArrive 0.75s ease both;
}

.application-form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--tomato), var(--sun), var(--leaf), var(--sky), var(--berry));
  background-size: 160% 100%;
  animation: rainbowSlide 8s ease-in-out infinite alternate;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.compact-row {
  align-items: stretch;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 900;
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 2px solid rgba(33, 54, 51, 0.13);
  border-radius: 12px;
  padding: 9px 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input::placeholder,
textarea::placeholder {
  color: #87908b;
  font-weight: 500;
  opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px rgba(31, 138, 91, 0.14);
}

.field-invalid input,
.field-invalid select,
.field-invalid textarea {
  border-color: var(--tomato);
  box-shadow: 0 0 0 4px rgba(238, 83, 56, 0.12);
}

.file-drop.field-invalid,
.checkbox-label.field-invalid {
  border-color: var(--tomato);
  box-shadow: 0 0 0 4px rgba(238, 83, 56, 0.1);
}

.field-error {
  display: block;
  color: var(--tomato-dark);
  font-size: 0.84rem;
  line-height: 1.35;
  font-weight: 800;
}

textarea {
  resize: vertical;
  min-height: 116px;
}

.file-drop {
  border: 2px dashed rgba(238, 83, 56, 0.38);
  min-height: 42px;
  padding: 9px 12px;
  background:
    linear-gradient(135deg, rgba(255, 200, 61, 0.13), rgba(31, 136, 201, 0.08)),
    #fff;
  border-radius: 12px;
  align-content: center;
}

.file-drop input {
  min-height: 0;
  padding: 0 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  line-height: 1.4;
}

.file-drop span,
.file-drop small {
  display: block;
}

.file-drop span {
  margin-top: 2px;
  font-size: 0.92rem;
}

.file-drop small {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
}

.consent-box {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 2px solid rgba(31, 136, 201, 0.16);
  border-radius: 16px;
  background: #fff;
  max-width: 980px;
}

.checkbox-label {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 9px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
  font-size: 0.9rem;
}

.checkbox-label .field-error {
  grid-column: 2;
}

.checkbox-label input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin-top: 1px;
}

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

.rule-card span {
  width: fit-content;
  display: inline-flex;
  padding: 7px 10px;
  color: #fff;
  border-radius: 999px;
  background: var(--berry);
  font-weight: 950;
}

.rule-card h3 {
  margin-top: 18px;
}

.gallery-hero {
  width: 100%;
  min-height: min(520px, 72svh);
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 90px max(60px, calc((100vw - 1180px) / 2)) 78px;
  overflow: hidden;
  isolation: isolate;
}

.gallery-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 247, 232, 0.94), rgba(255, 247, 232, 0.72) 44%, rgba(255, 247, 232, 0.24)),
    url("assets/silpo-dreams-bg.png") center right / cover no-repeat;
}

.gallery-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 70px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--paper));
}

.gallery-hero h1 {
  color: var(--ink);
  font-size: clamp(2.8rem, 6vw, 5.6rem);
}

.gallery-hero .lead {
  color: var(--muted);
}

.gallery-locked {
  min-height: calc(100svh - 88px);
}

.gallery-heading {
  display: grid;
  gap: 24px;
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.category-tabs button {
  min-width: 0;
  min-height: 48px;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 2px solid rgba(33, 54, 51, 0.1);
  border-radius: 999px;
  color: var(--leaf-dark);
  background: rgba(255, 253, 247, 0.9);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  font-weight: 950;
  font: inherit;
  font-size: clamp(0.78rem, 1.2vw, 0.98rem);
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.category-tabs button span {
  white-space: nowrap;
}

.category-tabs .category-label-short {
  display: none !important;
}

.category-tabs button:hover,
.category-tabs button.active {
  transform: translateY(-2px);
  color: #fff;
  background: linear-gradient(135deg, var(--leaf), #28a96e);
}

.category-tabs small {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--tomato-dark);
  background: rgba(255, 200, 61, 0.9);
  font-size: 0.72rem;
}

.category-block.is-hidden {
  display: none;
}

.flash {
  padding: 16px 18px;
  margin-bottom: 20px;
  font-weight: 900;
  box-shadow: var(--soft-shadow);
}

.flash.success {
  border-color: rgba(31, 138, 91, 0.28);
  color: var(--leaf-dark);
}

.flash.error {
  border-color: rgba(238, 83, 56, 0.38);
  color: var(--tomato-dark);
}

.empty-state,
.empty-category {
  padding: 30px;
  text-align: center;
}

.empty-state p,
.empty-category {
  color: var(--muted);
}

.category-block {
  padding: 34px 0 12px;
}

.category-block + .category-block {
  border-top: 2px dashed rgba(33, 54, 51, 0.14);
}

.category-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.category-heading h3 {
  font-size: 1.9rem;
}

.category-heading span {
  padding: 7px 12px;
  color: var(--leaf-dark);
  border-radius: 999px;
  background: rgba(31, 138, 91, 0.11);
  font-weight: 950;
}

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

.art-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 24px 8px 24px 8px;
  box-shadow: var(--soft-shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  animation: cardArrive 0.55s ease both;
}

.art-card.top-card {
  border: 3px solid rgba(255, 200, 61, 0.95);
  box-shadow: 0 22px 54px rgba(255, 171, 38, 0.24);
}

.top-ribbon {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 8px 12px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tomato), #ff7b35);
  box-shadow: var(--soft-shadow);
  font-size: 0.78rem;
  font-weight: 950;
}

.art-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.art-image {
  display: block;
  background:
    linear-gradient(135deg, rgba(255, 200, 61, 0.24), rgba(238, 83, 56, 0.12)),
    #f8ead1;
}

.art-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.art-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.art-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.votes {
  font-size: 0.78rem;
  font-weight: 950;
}

.votes {
  color: var(--tomato-dark);
}

.company,
.dream {
  margin: 0;
}

.dream {
  flex: 1;
}

.dream-open {
  width: 100%;
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  line-height: 1.45;
}

.dream-open:hover {
  color: var(--leaf-dark);
}

.vote-button {
  width: 100%;
  background: linear-gradient(135deg, var(--leaf), #28a96e);
  box-shadow: 0 12px 24px rgba(31, 138, 91, 0.22);
}

.vote-button[disabled] {
  opacity: 0.56;
  cursor: default;
  box-shadow: none;
}

.footer {
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--leaf-dark);
  font-weight: 950;
}

.footer-top {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff !important;
  background: var(--leaf);
  box-shadow: 0 10px 24px rgba(31, 138, 91, 0.24);
  font-size: 1.35rem;
  line-height: 1;
  animation: arrowPulse 1.8s ease-in-out infinite;
}

.footer-top:hover {
  transform: translateY(-3px);
  background: var(--tomato);
  box-shadow: 0 14px 30px rgba(238, 83, 56, 0.28);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(20, 35, 32, 0.48);
  backdrop-filter: blur(10px);
}

.success-modal {
  width: min(560px, 100%);
  position: relative;
  padding: 34px;
  border: 3px solid rgba(255, 200, 61, 0.9);
  border-radius: 34px 10px 34px 10px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 200, 61, 0.28), transparent 9rem),
    radial-gradient(circle at 8% 86%, rgba(31, 138, 91, 0.16), transparent 10rem),
    var(--milk);
  box-shadow: 0 28px 80px rgba(20, 35, 32, 0.28);
}

.vote-modal {
  width: min(640px, 100%);
}

.success-modal h2 {
  color: var(--tomato-dark);
}

.success-modal p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--tomato);
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

.submit-preview-modal {
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100svh - 24px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 16px;
  overflow: auto;
  padding: 18px;
  border: 3px solid rgba(255, 200, 61, 0.9);
  border-radius: 34px 10px 34px 10px;
  background:
    radial-gradient(circle at 94% 10%, rgba(255, 200, 61, 0.28), transparent 10rem),
    var(--milk);
  box-shadow: 0 28px 80px rgba(20, 35, 32, 0.28);
}

.preview-editor {
  display: grid;
  gap: 9px;
  align-content: start;
  min-height: 0;
}

.preview-editor h2 {
  color: var(--tomato-dark);
  max-width: 12.5em;
  font-size: clamp(1.9rem, 3.1vw, 2.8rem);
  line-height: 1;
}

.preview-help {
  color: var(--muted);
  max-width: 48rem;
  font-size: 0.95rem;
  line-height: 1.35;
  margin: 0;
}

.canvas-holder {
  overflow: hidden;
  width: min(100%, 620px);
  max-height: min(52svh, 420px);
  aspect-ratio: 4 / 3;
  border: 2px solid rgba(33, 54, 51, 0.12);
  border-radius: 22px 8px 22px 8px;
  background: #fff;
}

.crop-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

.crop-canvas:active {
  cursor: grabbing;
}

.editor-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.editor-controls label {
  flex: 1 1 210px;
  color: var(--muted);
  font-size: 0.9rem;
}

.small-button {
  min-height: 36px;
  border: 2px solid rgba(33, 54, 51, 0.12);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--leaf-dark);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.preview-card-column {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 0;
  padding-top: 54px;
}

.preview-card {
  transform: none;
}

.preview-card .dream {
  max-height: 5.8rem;
  overflow: auto;
  padding-right: 4px;
}

.preview-image-slot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.submit-preview-modal .preview-card {
  max-width: 320px;
  justify-self: end;
}

.preview-actions {
  display: grid;
  justify-items: stretch;
  gap: 10px;
}

.artwork-modal {
  width: min(980px, calc(100vw - 32px));
  height: min(640px, calc(100svh - 44px));
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  overflow: hidden;
  border: 3px solid rgba(255, 200, 61, 0.9);
  border-radius: 28px 8px 28px 8px;
  background: var(--milk);
  box-shadow: 0 28px 80px rgba(20, 35, 32, 0.28);
}

.artwork-modal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.artwork-modal-content {
  padding: 28px;
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}

.artwork-modal-content h2 {
  margin: 0;
  color: var(--tomato-dark);
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.artwork-modal-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.artwork-modal-label {
  width: max-content;
  padding: 6px 10px;
  border: 1px solid rgba(238, 83, 56, 0.22);
  border-radius: 999px;
  color: var(--tomato-dark) !important;
  background: rgba(255, 253, 247, 0.74);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.artwork-modal-dream {
  max-height: min(42svh, 320px);
  overflow: auto;
  padding-right: 6px;
}

@media (max-width: 940px) {
  .page-hero,
  .section-grid,
  .submit-preview-modal {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: 780px;
    gap: 20px;
  }

  .timeline,
  .rules-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-card-column {
    padding-top: 0;
  }

  .submit-preview-modal .preview-card {
    max-width: 360px;
    justify-self: center;
  }
}

@media (max-width: 680px) {
  .topbar {
    width: min(100% - 20px, 1180px);
    min-height: 0;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .logo-slot {
    width: 42px;
    height: 42px;
  }

  .partner-logos {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    height: 42px;
    justify-content: space-around;
    gap: 8px;
    overflow: hidden;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 253, 247, 0.72);
  }

  .partner-logos img {
    max-width: min(28vw, 96px);
    max-height: 30px;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .section-grid,
  .section-heading,
  .timeline,
  .application-form,
  .rules-grid,
  .gallery-section > .flash,
  .gallery-section > .empty-state,
  .category-block,
  .footer {
    width: min(100% - 28px, 1180px);
  }

  .gallery-hero {
    width: 100%;
    min-height: calc(100svh - 10px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    padding: 96px 26px 56px;
  }

  .gallery-hero::before {
    background:
      linear-gradient(180deg, rgba(255, 247, 232, 0.78), rgba(255, 247, 232, 0.58)),
      url("assets/silpo-dreams-bg.png") right / cover no-repeat;
  }

  .gallery-hero h1 {
    max-width: 8.8em;
    font-size: clamp(2.35rem, 10.2vw, 3.15rem);
    line-height: 1;
    overflow-wrap: normal;
    word-break: normal;
  }

  .gallery-hero .lead {
    max-width: 21rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  .gallery-hero .button {
    width: auto;
    min-width: 220px;
    align-self: flex-start;
    margin-top: 4px;
  }

  .application-form {
    width: min(100% - 28px, 980px);
    padding: 18px 14px;
    gap: 13px;
  }

  .application-section::before {
    width: 300px;
    right: -160px;
    top: 22px;
    opacity: 0.62;
  }

  .application-section::after {
    width: 340px;
    height: 170px;
    left: -170px;
    bottom: 100px;
    opacity: 0.68;
  }

  .application-section .section-heading::after {
    right: 12px;
    bottom: -18px;
    width: 78px;
    height: 52px;
    opacity: 0.42;
  }

  .application-section .section-note {
    padding: 13px 14px;
    border-left-width: 4px;
  }

  .page-hero {
    min-height: 720px;
    padding: 44px 0 54px;
  }

  .page-hero::before {
    background:
      linear-gradient(180deg, rgba(17, 34, 30, 0.52) 0%, rgba(17, 34, 30, 0.62) 46%, rgba(17, 34, 30, 0.42) 100%),
      linear-gradient(90deg, rgba(17, 34, 30, 0.56), rgba(17, 34, 30, 0.18) 72%),
      url("assets/silpo-dreams-bg.png") right / cover no-repeat;
  }

  .page-hero::after {
    display: none;
  }

  .hero-copy {
    margin-top: auto;
    padding: 18px 0 0;
  }

  .page-hero h1 {
    color: #fff;
    text-shadow: 0 4px 18px rgba(8, 25, 21, 0.55), 0 1px 2px rgba(8, 25, 21, 0.6);
  }

  .page-hero .lead {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 3px 14px rgba(8, 25, 21, 0.62), 0 1px 2px rgba(8, 25, 21, 0.7);
  }

  .hero-card {
    display: none;
  }

  h1 {
    font-size: 3.05rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  main section {
    padding: 56px 0;
  }

  main section.intro {
    padding: 44px 0;
  }

  .intro-copy {
    gap: 10px;
  }

  .intro .section-grid h2 {
    font-size: 2.45rem;
  }

  .section-heading.split,
  .footer {
    display: grid;
    align-items: start;
  }

  .timeline,
  .rules-grid,
  .gallery-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  textarea {
    min-height: 128px;
  }

  .category-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .category-tabs button {
    min-width: 0;
    min-height: 38px;
    padding: 6px 5px;
    gap: 3px;
    font-size: clamp(0.58rem, 2.55vw, 0.76rem);
    line-height: 1.08;
  }

  .category-tabs .category-label-full {
    display: none !important;
  }

  .category-tabs .category-label-short {
    display: inline !important;
  }

  .category-tabs small {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    font-size: 0.58rem;
  }

  .category-heading {
    align-items: flex-start;
  }

  .art-content {
    padding: 15px;
    gap: 8px;
  }

  .artwork-modal {
    width: min(100% - 20px, 560px);
    height: auto;
    max-height: calc(100svh - 24px);
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }

  .button {
    width: 100%;
  }

  .gallery-hero .button {
    width: auto;
    min-width: 220px;
    align-self: flex-start;
  }

  .artwork-modal img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    max-height: none;
    object-fit: cover;
  }

  .artwork-modal-content {
    padding: 16px;
    align-content: start;
    overflow: hidden;
  }

  .artwork-modal-dream {
    max-height: min(34svh, 240px);
    overflow: auto;
  }

  .submit-preview-modal {
    height: auto;
    max-height: calc(100svh - 28px);
    overflow: auto;
    padding: 16px;
    border-radius: 24px 8px 24px 8px;
  }

  .preview-editor h2 {
    max-width: none;
    font-size: clamp(1.8rem, 11vw, 2.5rem);
  }

  .preview-help {
    font-size: 0.9rem;
  }

  .editor-controls {
    gap: 8px;
  }

  .editor-controls label,
  .editor-controls .small-button {
    flex: 1 1 100%;
  }

  .canvas-holder {
    width: 100%;
    max-height: none;
  }

  .submit-preview-modal .preview-card {
    max-width: 100%;
    justify-self: stretch;
  }

  .preview-actions {
    display: grid;
  }
}

@media (max-width: 420px) {
  .gallery-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .gallery-hero h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 11.5vw, 2.9rem);
  }

  .gallery-hero .lead {
    max-width: 100%;
  }

  .gallery-hero .button {
    width: 100%;
    min-width: 0;
  }

  .gallery-heading {
    gap: 14px;
  }

  .category-tabs {
    gap: 4px;
  }

  .category-tabs button {
    min-height: 36px;
    padding: 5px 4px;
    font-size: clamp(0.54rem, 2.45vw, 0.68rem);
  }

  .category-tabs small {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
    font-size: 0.52rem;
  }

  .category-heading h3 {
    font-size: 1.55rem;
  }

  .art-card {
    border-radius: 18px 6px 18px 6px;
  }

  .artwork-modal {
    width: calc(100% - 16px);
    border-width: 2px;
    border-radius: 22px 8px 22px 8px;
  }

  .artwork-modal-content h2 {
    font-size: 1.6rem;
  }
}

.admin-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 200, 61, 0.2), transparent 22rem),
    radial-gradient(circle at 92% 20%, rgba(31, 136, 201, 0.12), transparent 24rem),
    var(--paper);
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.admin-login {
  min-height: 100svh;
  display: grid;
  place-content: center;
  gap: 18px;
}

.admin-login h1,
.admin-header h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.admin-card,
.admin-stat {
  border: 2px solid rgba(33, 54, 51, 0.1);
  border-radius: 24px 8px 24px 8px;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: var(--soft-shadow);
}

.admin-card {
  padding: 22px;
}

.admin-login .admin-card {
  width: min(420px, calc(100vw - 32px));
  display: grid;
  gap: 14px;
}

.admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.admin-header p {
  max-width: 680px;
  color: var(--muted);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) repeat(2, auto);
  align-items: stretch;
  gap: 12px;
  margin: 18px 0;
}

.admin-stat {
  padding: 16px;
}

.admin-stat strong {
  display: block;
  color: var(--tomato-dark);
  font-size: 2rem;
  line-height: 1;
}

.admin-stat span,
.admin-table span,
.admin-table small {
  color: var(--muted);
}

.admin-edit {
  margin: 18px 0;
}

.admin-edit-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

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

.admin-wide {
  grid-column: 1 / -1;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(33, 54, 51, 0.1);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--leaf-dark);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.admin-table img {
  width: 110px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px 4px 12px 4px;
}

.admin-table td {
  color: var(--ink);
}

.admin-table p {
  max-width: 260px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.admin-status {
  width: fit-content;
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 950;
}

.admin-status.published {
  color: var(--leaf-dark);
  background: rgba(31, 138, 91, 0.14);
}

.admin-status.pending {
  color: var(--tomato-dark);
  background: rgba(238, 83, 56, 0.12);
}

.admin-actions {
  display: grid;
  gap: 8px;
}

.admin-actions .button {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.86rem;
}

@media (max-width: 820px) {
  .admin-header,
  .admin-edit-heading {
    display: grid;
    align-items: start;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-edit-form {
    grid-template-columns: 1fr;
  }
}

@keyframes dreamyDots {
  0% {
    background-position: 0 0, 18px 22px;
  }
  100% {
    background-position: 42px 42px, -40px 80px;
  }
}

@keyframes heroGlow {
  0% {
    filter: saturate(1.08) contrast(1.02) brightness(0.98);
  }
  100% {
    filter: saturate(1.2) contrast(1.05) brightness(1.04);
  }
}

@keyframes softOrbit {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(-12px, 10px, 0) rotate(7deg);
  }
}

@keyframes paperTrail {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0.72;
  }
  100% {
    transform: translate3d(18px, -10px, 0);
    opacity: 0.96;
  }
}

@keyframes cardArrive {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes paperPlaneFloat {
  0% {
    transform: translate3d(0, 0, 0) rotate(-5deg);
  }
  100% {
    transform: translate3d(18px, -12px, 0) rotate(6deg);
  }
}

@keyframes rainbowSlide {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes arrowPulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 10px 24px rgba(31, 138, 91, 0.24);
  }
  50% {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(31, 138, 91, 0.36);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
