@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-FD-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-FD-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-FD-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-FD-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-FD-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg0: #06130e;
  --bg1: #0a1f16;
  --card: rgba(14, 42, 30, 0.78);
  --card-strong: rgba(10, 32, 22, 0.94);
  --line: rgba(212, 178, 74, 0.28);
  --gold: #e3c56a;
  --gold-2: #f6e7b0;
  --gold-dim: #b4923b;
  --cream: #f7f1dc;
  --muted: #c9d5cc;
  --today: #3ecf8e;
  --ended: #c45b5b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background: radial-gradient(1200px 700px at 80% -10%, #163d2a 0%, transparent 55%),
    radial-gradient(900px 500px at -10% 110%, #3a2210 0%, transparent 50%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 40%, #07140f);
  color: var(--cream);
  line-height: 1.9;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  z-index: 5;
  background: linear-gradient(90deg, #239f40 0 33.3%, #f3f3f3 33.3% 66.6%, #da0000 66.6%);
}

.bg-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 4 L46 26 L68 20 L52 36 L74 44 L52 50 L68 66 L46 56 L40 78 L34 56 L12 66 L28 50 L6 44 L28 36 L12 20 L34 26 Z' fill='none' stroke='%23d4b24a' stroke-width='1'/%3E%3C/svg%3E");
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.hero {
  text-align: center;
  padding: 18px 8px 10px;
}

.logo-wrap {
  width: min(168px, 42vw);
  margin: 4px auto 10px;
  position: relative;
}

.logo-wrap::before {
  content: "";
  position: absolute;
  inset: 8% 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 197, 106, 0.22), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.brand-logo {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.kicker {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(26px, 6vw, 40px);
  font-weight: 800;
  margin: 6px 0 8px;
  background: linear-gradient(180deg, #fff8dc, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.welcome {
  font-size: 18px;
  color: var(--gold-2);
  font-weight: 600;
}

.subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.ornament {
  width: min(280px, 70%);
  height: 18px;
  margin: 16px auto 8px;
  display: block;
}

.days {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.day {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.day.is-today {
  border-color: rgba(62, 207, 142, 0.55);
  box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.18), var(--shadow);
}

.day.is-open {
  border-color: rgba(227, 197, 106, 0.55);
  background: var(--card-strong);
}

.day.is-ended {
  opacity: 0.72;
  filter: saturate(0.7);
}

.day-head {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  cursor: pointer;
  text-align: right;
}

.day.is-ended .day-head {
  cursor: default;
}

.day-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.day-name {
  font-size: 20px;
  font-weight: 800;
}

.day-date {
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
}

.badges {
  display: flex;
  gap: 6px;
  align-items: center;
}

.badge {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}

.badge-today {
  color: #083221;
  background: linear-gradient(180deg, #7df0b8, #3ecf8e);
}

.badge-ended {
  color: #fff;
  background: linear-gradient(180deg, #e07a7a, #b44545);
}

.chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--gold);
  transition: transform 0.25s ease;
}

.day.is-open .chevron {
  transform: rotate(180deg);
}

.day-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}

.day.is-open .day-body {
  grid-template-rows: 1fr;
}

.day-body-inner {
  overflow: hidden;
}

.announcement {
  margin: 0 14px 16px;
  padding: 18px 16px 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 248, 220, 0.05), transparent 28%),
    #10281d;
  border: 1px solid rgba(227, 197, 106, 0.18);
}

.flags {
  text-align: center;
  letter-spacing: 2px;
  font-size: 18px;
  line-height: 1.4;
}

.header-text {
  text-align: center;
  font-weight: 700;
  font-size: 15.5px;
  margin: 10px 4px;
  white-space: pre-wrap;
}

.divider {
  height: 1px;
  margin: 14px 10px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.items {
  display: grid;
  gap: 8px;
  padding: 0 6px;
}

.item {
  display: flex;
  gap: 8px;
  align-items: baseline;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 8px 10px;
}

.item-emoji {
  font-size: 18px;
  line-height: 1;
}

.item-label {
  color: var(--gold-2);
  font-weight: 700;
}

.item-value {
  color: var(--cream);
}

.notice {
  margin: 12px 6px 0;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(227, 197, 106, 0.08);
  border: 1px dashed rgba(227, 197, 106, 0.35);
  white-space: pre-wrap;
  font-weight: 600;
}

.hashtag {
  color: var(--gold);
}

.meta {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 0 6px;
  color: var(--muted);
  font-size: 14.5px;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(227, 197, 106, 0.08);
  color: var(--gold-2);
  font: inherit;
  font-weight: 700;
  border-radius: 12px;
  padding: 8px 14px;
  cursor: pointer;
}

.btn:hover {
  background: rgba(227, 197, 106, 0.16);
}

.site-footer {
  margin-top: 34px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--gold);
  text-decoration: none;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #143326;
  color: var(--gold-2);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 20;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 520px) {
  .day-head {
    padding: 14px 12px;
    grid-template-columns: 1fr auto;
  }
  .chevron {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .badges {
    grid-column: 1;
  }
}
