/* ═══════════════════════════════════════════
   Fun or Not – clara__cmoi
   Light paint / pixel / stickman aesthetic
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Patrick+Hand&display=swap');

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

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #f8f4ef;
  color: #1d1d1f;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.45;
  background-image:
    radial-gradient(circle at 10% 8%, rgba(212, 32, 32, .07) 0%, transparent 22%),
    radial-gradient(circle at 88% 4%, rgba(212, 32, 32, .05) 0%, transparent 20%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(0, 0, 0, .02) 28px,
      rgba(0, 0, 0, .02) 29px
    );
}

.header {
  text-align: center;
  padding: 28px 16px 16px;
}

.header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header__logo {
  width: 92px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .12));
}

.header__title {
  font-family: 'Patrick Hand', cursive;
  font-size: 2.5rem;
  letter-spacing: 1.2px;
  color: #cb1f1f;
  text-transform: uppercase;
  display: inline-block;
  border-bottom: 3px solid #d42020;
  border-radius: 2px;
  padding-bottom: 2px;
  transform: rotate(-.3deg);
}

.header__subtitle {
  font-size: 1.02rem;
  font-weight: 500;
  margin-top: 10px;
  color: #4f4f56;
}

.header__desc {
  font-size: .94rem;
  color: #5f626d;
  margin-top: 8px;
}

.header__streamer {
  font-size: .92rem;
  color: #72727a;
  margin-top: 4px;
}

.divider {
  width: min(80%, 460px);
  max-width: 400px;
  margin: 13px auto;
  height: 4px;
  opacity: .85;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='4'%3E%3Cpath d='M0 2 Q30 0 60 2 Q90 4 120 2' stroke='%23b5b5bb' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x;
}

.section-title {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: #cd2222;
  margin-bottom: 4px;
}

.section-hint {
  text-align: center;
  font-size: .95rem;
  color: #74747d;
  margin-bottom: 18px;
}

.vote-section {
  display: flex;
  justify-content: center;
  padding: 8px 16px 20px;
}

.vote {
  width: 100%;
  max-width: 440px;
  text-align: center;
  border: 1px solid #d5d5da;
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  padding: 20px 24px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.vote__title {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.42rem;
  margin-bottom: 4px;
  color: #232329;
}

.vote__hint {
  font-size: .94rem;
  color: #73737a;
  margin-bottom: 14px;
}

.vote__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.vote__vs {
  font-size: 1rem;
  color: #8f8f96;
  font-style: italic;
}

.vote__btn {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 10px 28px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
  transition: transform .12s, box-shadow .12s, filter .12s;
}

.vote__btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 7px 12px rgba(0, 0, 0, .22);
  filter: saturate(1.05);
}

.vote__btn:active {
  transform: translateY(1px);
  box-shadow: 0 3px 7px rgba(0, 0, 0, .2);
}

.vote__btn--kiff {
  background: #d42020;
  color: #fff;
}

.vote__btn--challenge {
  background: #666f81;
  color: #fff;
}

.vote__btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.vote__bar {
  height: 32px;
  background: #e9eaf0;
  border: 1px solid #babec8;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
}

.vote__bar-fill {
  height: 100%;
  transition: width .4s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .92rem;
  color: #fff;
  font-weight: 700;
  min-width: 0;
}

.vote__bar-fill--kiff {
  background: #d42020;
}

.vote__bar-fill--challenge {
  background: #666f81;
}

.vote__counts {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  margin-top: 8px;
  color: #666872;
}

.spinner-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 16px 10px;
  gap: 14px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f4f8 100%);
  border: 1px solid #cfd3dd;
  border-radius: 999px;
  padding: 6px 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .10);
}

.toggle__label {
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  color: #7f8592;
  transition: color .2s, background .2s;
  padding: 6px 10px;
  border-radius: 999px;
}

.toggle__label--active {
  color: #d42020;
  background: rgba(212, 32, 32, .09);
  text-decoration: none;
}

.toggle__track {
  width: 62px;
  height: 32px;
  background: #d42020;
  border: none;
  border-radius: 30px;
  position: relative;
  cursor: pointer;
  transition: background .3s;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}

.toggle__track--challenge {
  background: #666f81;
}

.toggle__thumb {
  width: 24px;
  height: 24px;
  background: #fff;
  border: 1px solid #d6d8df;
  border-radius: 50%;
  position: absolute;
  top: 4px;
  left: 4px;
  transition: left .3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

.toggle__track--challenge .toggle__thumb {
  left: 34px;
}

.spinner {
  position: relative;
  width: 320px;
  height: 320px;
}

.spinner__pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 28px solid #d42020;
  z-index: 10;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .22));
}

.spinner__canvas {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 3px solid #a9adb9;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .16);
  cursor: pointer;
  background: #fafbff;
}

.spinner__btn {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 36px;
  background: #d42020;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 7px 13px rgba(0, 0, 0, .22);
  transition: transform .1s, box-shadow .1s;
}

.spinner__btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 9px 16px rgba(0, 0, 0, .24);
}

.spinner__btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 9px rgba(0, 0, 0, .22);
}

.spinner__btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.spinner__result {
  font-size: 1.1rem;
  min-height: 1.6em;
  text-align: center;
  color: #d42020;
  font-weight: 700;
}

.lists-section {
  max-width: 900px;
  margin: 20px auto 10px;
  padding: 0 16px;
}

.lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.column { min-width: 0; }

.column__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 8px;
}

.column--kiff .column__header { border-bottom: 3px dashed #d42020; }
.column--challenge .column__header { border-bottom: 3px dashed #666f81; }

.column__title {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.5rem;
  margin: 0;
}

.column--kiff .column__title { color: #d42020; }
.column--challenge .column__title { color: #666f81; }

.doodle {
  height: 48px;
  flex-shrink: 0;
}

.activity {
  background: #fff;
  border: 1px solid #d1d3dc;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform .15s;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .07);
}

.activity:hover { transform: translateY(-2px); }

.activity__month {
  font-size: .82rem;
  background: #eceef4;
  border: 1px solid #c8ccd7;
  border-radius: 6px;
  padding: 2px 10px;
  min-width: 46px;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  color: #2e3138;
}

.activity__label { flex: 1; font-size: 1rem; }
.activity__icon { font-size: 1.3rem; }

.activity--done {
  border-color: #2aa844;
  background: #edfcf0;
}
.activity--done .activity__month {
  background: #2aa844;
  color: #fff;
  border-color: #2aa844;
}
.activity--done .activity__label {
  text-decoration: line-through;
  text-decoration-color: #2aa84480;
}

.activity--pending {
  border-style: solid;
  border-width: 1.5px;
  border-color: #efb43a;
  background: #fff7df;
  animation: pulse 2.2s ease-in-out infinite;
}
.activity--pending .activity__month {
  background: #efb43a;
  color: #fff;
  border-color: #efb43a;
}
.activity--pending.activity--kiff,
.activity--pending.activity--challenge {
  border-color: #efb43a;
  background: #fff7df;
}

.activity--upcoming {
  border-color: #d1d3da;
  border-style: dashed;
  background: #f5f6f9;
  opacity: .65;
}
.activity--upcoming .activity__month {
  background: #dbdee7;
  color: #808694;
  border-color: #c6cad4;
}
.activity--upcoming .activity__label {
  color: #8a8f9b;
  font-style: italic;
}
.activity--upcoming .activity__icon { opacity: .5; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 16px rgba(0, 0, 0, .07); }
  50%      { box-shadow: 0 10px 22px rgba(239, 180, 58, .28); }
}

.column__empty {
  font-style: italic;
  color: #878b96;
  text-align: center;
  padding: 16px;
}

.progress {
  max-width: 800px;
  margin: 30px auto 20px;
  padding: 0 16px;
  text-align: center;
}

.progress__title {
  font-size: 1.32rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #d42020;
}

.progress__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .92rem;
  color: #666b77;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid #727785;
}

.legend-dot--kiff { background: #d42020; border-color: #d42020; }
.legend-dot--challenge { background: #666f81; border-color: #666f81; }
.legend-dot--current { background: #efb43a; border-color: #efb43a; }
.legend-dot--upcoming { background: #fff; border-color: #c4c8d3; }

.progress__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.progress__chip {
  border: 1px solid #b8bdc8;
  border-radius: 8px;
  padding: 5px 14px;
  font-size: .96rem;
  background: #fff;
  color: #333745;
  box-shadow: 0 5px 10px rgba(0, 0, 0, .09);
}

.progress__chip--kiff {
  background: #d42020;
  color: #fff;
  border-color: #d42020;
}

.progress__chip--challenge {
  background: #666f81;
  color: #fff;
  border-color: #666f81;
}

.progress__chip--current {
  background: #efb43a;
  color: #fff;
  border-color: #efb43a;
}

.footer {
  text-align: center;
  padding: 18px;
  font-size: .84rem;
  color: #8a8f9b;
}

@media (max-width: 860px) {
  .lists {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .spinner {
    width: 260px;
    height: 260px;
  }

  .spinner__canvas {
    width: 260px;
    height: 260px;
  }

  .header__title { font-size: 2rem; }
  .header__logo { width: 74px; }
}

@media (max-width: 480px) {
  .vote { padding: 16px; }

  .vote__btn {
    padding: 8px 18px;
    font-size: .96rem;
  }

  .toggle { padding: 4px 12px; }

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