:root {
  --wg-red: #e8334a;
  --wg-deep-red: #a90f24;
  --wg-coral: #ff7043;
  --wg-gold: #ffd45a;
  --wg-cream: #fff6ee;
  --wg-ink: #3c2a22;
  --wg-muted: #806c63;
  --wg-line: rgba(60, 42, 34, 0.16);
}

.wg-daily,
.wg-daily * {
  box-sizing: border-box;
}

.wg-daily {
  width: 100%;
  color: var(--wg-ink);
  font-family: "Pretendard", system-ui, -apple-system, sans-serif;
}

.wg-daily__card {
  position: relative;
  overflow: hidden;
  border: 3px solid var(--wg-deep-red);
  border-radius: 26px;
  background: linear-gradient(180deg, #fff 0%, #fff8f3 74%, #ffe8e9 100%);
  box-shadow: 7px 8px 0 rgba(169, 15, 36, 0.2), 0 22px 50px rgba(102, 25, 29, 0.14);
}

.wg-daily__card::before {
  position: absolute;
  top: -54px;
  right: -45px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 90, 0.58), rgba(255, 212, 90, 0));
  content: "";
  pointer-events: none;
}

.wg-daily__head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 22px 14px;
}

.wg-daily__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  color: var(--wg-red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.wg-daily__title {
  margin: 0;
  color: var(--wg-deep-red);
  font-family: "Jua", "Pretendard", sans-serif;
  font-size: clamp(24px, 7vw, 32px);
  font-weight: 400;
  line-height: 1.08;
}

.wg-daily__date {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(169, 15, 36, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--wg-muted);
  font-size: 11px;
  font-weight: 800;
}

.wg-daily__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 0 18px 16px;
  padding: 5px;
  border-radius: 16px;
  background: #f4e4df;
}

.wg-daily__tab {
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #775d53;
  font-family: "Jua", "Pretendard", sans-serif;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.wg-daily__tab:hover {
  transform: translateY(-1px);
}

.wg-daily__tab[aria-selected="true"],
.wg-daily__tab.is-active {
  background: #fff;
  color: var(--wg-deep-red);
  box-shadow: 0 3px 10px rgba(88, 27, 30, 0.1);
}

.wg-daily__body {
  position: relative;
  padding: 0 18px 20px;
}

.wg-daily__view[hidden] {
  display: none !important;
}

.wg-daily__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 10px;
  color: var(--wg-muted);
  font-size: 12px;
  font-weight: 800;
}

.wg-daily__summary strong {
  color: var(--wg-red);
  font-size: 13px;
}

.wg-daily__missions {
  display: grid;
  gap: 10px;
}

.wg-daily__mission {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 82px;
  padding: 12px;
  border: 2px solid var(--wg-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.wg-daily__mission.is-complete {
  border-color: var(--wg-red);
  background: linear-gradient(135deg, #fff7ee, #ffe9ed);
}

.wg-daily__stamp {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px dashed #cbb8af;
  border-radius: 50%;
  background: #fffaf7;
  color: #ad9a92;
  font-size: 19px;
  font-weight: 900;
}

.is-complete .wg-daily__stamp {
  border: 3px solid var(--wg-red);
  color: var(--wg-red);
  transform: rotate(-9deg);
  box-shadow: inset 0 0 0 2px #fff;
}

.wg-daily__mission-main {
  min-width: 0;
}

.wg-daily__mission-name {
  display: block;
  overflow: hidden;
  color: var(--wg-ink);
  font-family: "Jua", "Pretendard", sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wg-daily__progress-track {
  height: 7px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eaded8;
}

.wg-daily__progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--wg-red), var(--wg-coral), var(--wg-gold));
  transition: width 0.28s ease;
}

.wg-daily__progress-text {
  display: block;
  margin-top: 5px;
  color: var(--wg-muted);
  font-size: 11px;
  font-weight: 800;
}

.wg-daily__reward {
  max-width: 86px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #fff1bf;
  color: #745200;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.wg-daily__moment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wg-daily__moment {
  position: relative;
  min-height: 128px;
  overflow: hidden;
  padding: 15px 13px 13px;
  border: 2px solid rgba(169, 15, 36, 0.14);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #fff2ec);
}

.wg-daily__moment::after {
  position: absolute;
  right: -18px;
  bottom: -30px;
  color: rgba(232, 51, 74, 0.08);
  font-size: 74px;
  content: "✦";
}

.wg-daily__moment.is-locked {
  border-color: rgba(60, 42, 34, 0.12);
  background: linear-gradient(145deg, #eee9e6, #d9d1ce);
  color: #6d635f;
}

.wg-daily__moment.is-locked::after {
  color: rgba(60, 42, 34, 0.08);
  content: "?";
}

.wg-daily__moment-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 9px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--wg-deep-red), var(--wg-red));
  color: #fff;
  font-size: 22px;
  box-shadow: 3px 3px 0 rgba(169, 15, 36, 0.2);
}

.is-locked .wg-daily__moment-icon {
  background: #aaa09c;
  filter: grayscale(1);
  opacity: 0.72;
  box-shadow: none;
}

.wg-daily__moment-name {
  position: relative;
  z-index: 1;
  display: block;
  font-family: "Jua", "Pretendard", sans-serif;
  font-size: 15px;
  font-weight: 400;
}

.wg-daily__moment-hint {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 5px;
  color: var(--wg-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.wg-daily__privacy {
  margin: 14px 2px 0;
  color: var(--wg-muted);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.wg-demo {
  min-height: 100vh;
  margin: 0;
  padding: 34px 16px 60px;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 212, 90, 0.34), transparent 26%),
    radial-gradient(circle at 88% 20%, rgba(232, 51, 74, 0.2), transparent 30%),
    var(--wg-cream);
  color: var(--wg-ink);
  font-family: "Pretendard", system-ui, sans-serif;
}

.wg-demo__wrap {
  width: min(100%, 560px);
  margin: 0 auto;
}

.wg-demo__intro {
  margin-bottom: 18px;
  text-align: center;
}

.wg-demo__intro h1 {
  margin: 0 0 5px;
  color: var(--wg-deep-red);
  font-family: "Jua", sans-serif;
  font-size: clamp(30px, 9vw, 42px);
  font-weight: 400;
}

.wg-demo__intro p {
  margin: 0;
  color: var(--wg-muted);
  font-size: 13px;
  font-weight: 700;
}

.wg-demo__controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 18px;
}

.wg-demo__controls button {
  min-height: 43px;
  padding: 7px;
  border: 2px solid rgba(169, 15, 36, 0.2);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--wg-deep-red);
  font-family: "Jua", "Pretendard", sans-serif;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(169, 15, 36, 0.1);
}

.wg-demo__controls button:hover,
.wg-demo__controls button:focus-visible {
  border-color: var(--wg-red);
  outline: 0;
  transform: translateY(-1px);
}

.wg-demo__controls .wg-demo__all {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--wg-deep-red), var(--wg-red), var(--wg-coral));
  color: #fff;
}

.wg-demo__controls .wg-demo__reset {
  color: #6f625d;
}

@media (max-width: 430px) {
  .wg-demo {
    padding: 22px 11px 44px;
  }

  .wg-daily__head {
    padding: 19px 16px 12px;
  }

  .wg-daily__tabs {
    margin-inline: 13px;
  }

  .wg-daily__body {
    padding-inline: 13px;
  }

  .wg-daily__mission {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .wg-daily__stamp {
    width: 42px;
    height: 42px;
  }

  .wg-daily__reward {
    grid-column: 2;
    justify-self: start;
    max-width: none;
    margin-top: -5px;
  }

  .wg-daily__moment {
    min-height: 122px;
    padding: 13px 11px;
  }
}
