
* {
  box-sizing: border-box;
}

:root {
  --yellow: #F5EBA7;
  --blue: #315FB5;
  --cyan: #6ECAD9;
  --cream: #FFFDF3;
  --dark: #252B36;
  --pale-blue: #E3F0F2;
  --muted: #687080;
  --border: #E5E2D2;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 32px 16px 48px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dark);
  background: var(--yellow);
  line-height: 1.5;
}

.container {
  width: min(820px, 100%);
  margin: 0 auto;
}

/* HERO */

.hero {
  position: relative;
  overflow: hidden;
  padding: 38px 32px 42px;
  margin-bottom: 24px;
  border-radius: 18px;
  background: var(--yellow);
}

.event-label {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--blue);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.event-date {
  margin: 38px 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--blue);
  font-size: clamp(36px, 7vw, 64px);
  line-height: 0.95;
  letter-spacing: -3px;
}

.hero h1 span {
  display: block;
  margin-top: 12px;
  color: #4A8DC7;
  font-size: clamp(21px, 4vw, 35px);
  letter-spacing: 0;
}

.hero-description {
  position: relative;
  z-index: 1;
  margin: 20px 0 0;
  font-size: 16px;
  font-weight: 600;
}

.hero-decoration {
  position: absolute;
  right: -45px;
  bottom: -110px;
  width: 280px;
  height: 230px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.45;
  filter: blur(45px);
  pointer-events: none;
}

/* PANELS */

.panel {
  padding: 28px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--cream);
  box-shadow: 0 5px 18px rgba(49, 95, 181, 0.06);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.section-number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--blue);
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.section-heading h2 {
  margin: 0;
  color: var(--blue);
  font-size: 21px;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* MISSIONS */

.mission-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mission-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #FFFFFF;
  transition: background 0.2s, border-color 0.2s;
}

.mission-item:has(input:checked) {
  background: var(--pale-blue);
  border-color: var(--cyan);
}

.mission-checkbox {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin: 2px 0 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.mission-label {
  flex: 1;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.mission-label a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mission-label a:hover {
  color: #4A8DC7;
}

.mission-note {
  margin: 20px 0 0;
  padding: 12px;
  border-radius: 9px;
  background: var(--pale-blue);
  color: var(--blue);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}

/* ACHIEVEMENT */

.achievement-panel {
  background: var(--pale-blue);
}

.achievement-content {
  text-align: center;
}

.progress-text {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 22px;
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 14px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 20px;
  background: #FFFFFF;
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 0.3s ease;
}

.congratulations {
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid var(--cyan);
  border-radius: 10px;
  background: var(--cream);
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}

.share-button {
  width: 100%;
  max-width: 380px;
  padding: 15px 20px;
  border: none;
  border-radius: 10px;
  background: var(--blue);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.share-button span {
  margin-left: 8px;
}

.share-button:hover {
  background: #254C96;
  transform: translateY(-2px);
}

.share-button:focus-visible,
.mission-checkbox:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.share-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* FOOTER */

.page-footer {
  padding: 10px;
  text-align: center;
  color: var(--dark);
  font-size: 12px;
}

.page-footer p {
  margin: 0 0 5px;
}

.page-footer a {
  color: var(--blue);
  font-weight: 700;
}

/* MOBILE */

@media (max-width: 520px) {
  body {
    padding: 16px 12px 32px;
  }

  .hero {
    padding: 28px 20px 34px;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .event-date {
    margin-top: 30px;
  }

  .panel {
    padding: 19px 16px;
  }

  .section-heading h2 {
    font-size: 18px;
  }

  .mission-item {
    padding: 12px;
  }

  .progress-text {
    font-size: 19px;
  }
}


/* MISSION GROUPS */

.mission-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mission-group {
  overflow: hidden;
  border: 1px solid #D9E5E8;
  border-radius: 12px;
  background: #FFFFFF;
}

.group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 18px;
  border: none;
  background: #E3F0F2;
  color: var(--blue);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}

.group-toggle:hover {
  background: #D5E9ED;
}

.group-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.group-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.group-number {
  color: #4A8DC7;
  font-size: 12px;
  font-weight: 700;
}

.group-hint {
  padding-left: 29px;
  color: #687080;
  font-size: 11px;
  font-weight: 400;
}

.group-icon {
  position: relative;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  margin-left: 12px;
}

.group-icon::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.group-toggle[aria-expanded="true"] .group-icon::before {
  top: 5px;
  transform: rotate(225deg);
}

.group-content {
  padding: 12px;
  background: #FFFDF3;
}

.group-content[hidden] {
  display: none;
}

.group-missions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.group-toggle:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: -3px;
}

/* MOBILE */

@media (max-width: 520px) {
  .group-toggle {
    padding: 14px;
  }

  .group-name {
    font-size: 14px;
  }

  .group-content {
    padding: 10px;
  }
}
