* {
  font-family: "Poppins", sans-serif !important;
}
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s ease;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-xl {
  height: 56px;
  padding: 0 26px;
  font-size: 12px;
}

.btn-lg {
  height: 44px;
  padding: 0 20px;
  font-size: 11px;
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 10px;
}

.btn-lime {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-lime:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 var(--foreground);
}

.btn-dark {
  background: var(--foreground);
  color: var(--background);
}

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

.btn-outline {
  border: 1px solid color-mix(in oklab, var(--foreground) 30%, transparent);
  background: transparent;
  color: inherit;
}

.btn-outline:hover {
  background: var(--foreground);
  color: var(--background);
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  background: var(--accent);
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
}

.btn-icon:hover {
  background: var(--muted);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.clickable {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted-foreground);
}

/* Navigation */
.nav-active {
  color: var(--highlight) !important;
}

.mobile-nav {
  display: none;
}

/* Shared page structures */
.page-view {
  min-height: calc(100vh - 81px);
}

.page-wrap-wide {
  width: min(100% - 64px, 1320px);
  margin: auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.back-link:hover {
  color: var(--highlight);
}

.page-heading {
  padding: 75px 0 50px;
  border-bottom: 1px solid var(--border);
}

.page-heading h1,
.roll-heading h1,
.bored-layout h1,
.detail-copy h1,
.active-heading h1,
.complete-inner h1,
.card-page-copy h1,
.progress-cover h1 {
  font-family: var(--font-display);
  font-size: clamp(55px, 7vw, 100px);
  line-height: 0.9;
  letter-spacing: -0.07em;
  margin: 20px 0;
}

.page-heading h1 em,
.roll-heading h1 em,
.bored-layout h1 em {
  font-style: normal;
  color: var(--highlight);
}

.page-heading p {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted-foreground);
}

/* Discover */
.discover-controls {
  padding: 25px 0;
  border-bottom: 1px solid var(--border);
}

.search-field {
  width: 100%;
  height: 54px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0 16px;
  outline: none;
}

.search-field:focus {
  border-color: var(--foreground);
}

.filter-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 15px;
}

.category-filters,
.select-filters {
  display: flex;
  gap: 7px;
  overflow: auto;
}

.filter-pill {
  border: 1px solid var(--border);
  background: transparent;
  padding: 9px 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

.discover-grid {
  padding: 30px 0 90px;
}

.results-line {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

/* Quest detail */
.detail-top,
.active-top,
.card-page-top {
  padding: 25px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  padding: 70px 0;
}

.detail-copy h1 {
  font-size: clamp(55px, 6.5vw, 90px);
}

.detail-copy > p {
  font-size: 18px;
  line-height: 1.55;
  max-width: 610px;
  color: var(--muted-foreground);
}

.detail-meta {
  display: flex;
  gap: 8px;
  margin: 28px 0;
}

.detail-meta span {
  border: 1px solid var(--border);
  padding: 9px 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.detail-image {
  height: 560px;
  border: 1px solid var(--border);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-symbol {
  font-size: 160px;
}

.detail-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  border-top: 1px solid var(--border);
  padding: 60px 0 100px;
}

.detail-sections h2 {
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: -0.05em;
}

.detail-sections p,
.detail-sections li {
  font-size: 15px;
  line-height: 1.6;
}

.need-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.need-list li {
  border: 1px solid var(--border);
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 800;
}

.step-list {
  list-style: none;
  padding: 0;
  counter-reset: steps;
}

.step-list li {
  counter-increment: steps;
  border-top: 1px solid var(--border);
  padding: 18px 0 18px 42px;
  position: relative;
}

.step-list li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-weight: 800;
  color: var(--highlight);
}

/* Roll */
.roll-page {
  background: var(--foreground);
  color: var(--background);
  min-height: calc(100vh - 81px);
  padding-bottom: 90px;
}

.roll-page .back-link {
  color: var(--background);
}

.roll-page .back-link:hover {
  color: var(--primary);
}

.roll-top {
  display: flex;
  justify-content: space-between;
  padding: 25px 0;
  border-bottom: 1px solid color-mix(
    in oklab,
    var(--background) 25%,
    transparent
  );
}

.roll-heading {
  padding: 70px 0 35px;
}

.roll-heading h1 {
  font-size: clamp(60px, 8vw, 110px);
}

.roll-heading p {
  font-size: 17px;
  color: var(--border);
}

.roll-machine {
  border: 1px solid var(--background);
  padding: 10px;
  box-shadow: 14px 14px 0 color-mix(
    in oklab,
    var(--primary) 18%,
    transparent
  );
}

.machine-top,
.machine-footer {
  display: flex;
  justify-content: space-between;
  padding: 12px 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.machine-window {
  min-height: 380px;
  background: var(--primary);
  color: var(--foreground);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.machine-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.machine-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.92;
  font-size: clamp(48px, 7vw, 92px);
  letter-spacing: -0.07em;
  max-width: 950px;
  margin: 24px 0;
}

.machine-bottom {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.machine-cross {
  position: absolute;
  font-size: 25px;
}

.cross-one {
  top: 20px;
  left: 25px;
}

.cross-two {
  bottom: 20px;
  right: 25px;
}

.roll-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 35px;
}

.roll-action p {
  font-size: 11px;
  color: var(--border);
}

.roll-result {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 25px;
  margin-top: 35px;
  padding: 24px;
  border: 1px solid color-mix(
    in oklab,
    var(--background) 30%,
    transparent
  );
}

.result-visual {
  height: 120px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-visual span {
  font-size: 70px;
}

.roll-result p {
  max-width: 650px;
  line-height: 1.5;
  color: var(--border);
}

.result-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.rolling .machine-title {
  animation: rollflash 0.12s linear infinite;
}

/* Bored */
.bored-page {
  min-height: calc(100vh - 81px);
  background: var(--accent);
}

.bored-page .page-wrap-wide {
  padding-top: 25px;
}

.bored-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  padding: 80px 0;
}

.bored-layout h1 {
  font-size: clamp(60px, 7vw, 100px);
}

.bored-layout > div > p {
  font-size: 17px;
  color: var(--muted-foreground);
}

.bored-decoration {
  font-size: 130px;
  color: var(--highlight);
  margin-top: 90px;
}

.bored-choices {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 42px;
  min-height: 500px;
}

.bored-choices h2 {
  font-family: var(--font-display);
  font-size: 46px;
  letter-spacing: -0.06em;
  line-height: 0.98;
  margin: 18px 0 35px;
}

.choice-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 17px 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.choice-btn:hover {
  color: var(--highlight);
  padding-left: 6px;
}

.bored-result-icon {
  font-size: 85px;
  margin: 20px 0;
}

.bored-result h2 {
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: -0.05em;
}

/* Active / completion / card */
.active-page {
  min-height: calc(100vh - 81px);
  padding-bottom: 80px;
}

.active-inner {
  width: min(100% - 64px, 950px);
  margin: auto;
}

.active-heading {
  padding: 65px 0 35px;
}

.active-heading h1 {
  font-size: clamp(55px, 7vw, 90px);
}

.active-columns {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  gap: 50px;
}

.active-columns h2 {
  font-family: var(--font-display);
  font-size: 34px;
}

.active-columns p,
.active-columns li {
  line-height: 1.65;
  font-size: 15px;
}

.timer-panel {
  border: 1px solid var(--border);
  padding: 20px;
  position: sticky;
  top: 25px;
}

.timer-panel strong {
  font-family: var(--font-display);
  font-size: 60px;
  letter-spacing: -0.05em;
}

.active-footer {
  display: flex;
  gap: 9px;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.complete-page {
  min-height: calc(100vh - 81px);
  display: grid;
  place-items: center;
  padding: 70px 20px;
}

.complete-inner {
  text-align: center;
  max-width: 800px;
}

.completion-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 28px;
  background: var(--primary);
  border: 1px solid var(--foreground);
  display: grid;
  place-items: center;
  font-size: 35px;
}

.complete-inner h1 {
  font-size: clamp(60px, 8vw, 105px);
}

.complete-inner > p {
  color: var(--muted-foreground);
}

.reward-list {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin: 40px 0;
}

.reward-list div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.reward-list strong {
  font-family: var(--font-display);
  font-size: 32px;
}

.reward-list span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.reflection {
  border: 1px solid var(--border);
  padding: 25px;
}

.reflection-options {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 15px;
}

.reflection-options button {
  border: 1px solid var(--border);
  background: transparent;
  padding: 8px 13px;
  font-size: 11px;
}

.reflection-options button.active {
  background: var(--primary);
  border-color: var(--foreground);
}

.card-page {
  padding-bottom: 100px;
}

.card-page-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 80px;
  padding: 65px 0;
}

.card-page-copy h1 {
  font-size: clamp(55px, 6vw, 85px);
}

.showcase-card {
  width: min(100%, 520px);
  background: var(--primary);
  border: 1px solid var(--foreground);
  padding: 30px;
  box-shadow: 14px 14px 0 var(--foreground);
  transform: rotate(-2deg);
  margin: auto;
}

.showcase-card-top,
.showcase-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.showcase-card-icon {
  font-size: 105px;
  text-align: center;
  margin: 45px 0 25px;
}

.showcase-card h2 {
  font-family: var(--font-display);
  font-size: 60px;
  line-height: 0.9;
  letter-spacing: -0.07em;
  margin: 0;
}

.showcase-card-details {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--foreground);
  border-bottom: 1px solid var(--foreground);
  padding: 12px 0;
  margin: 25px 0;
  font-size: 10px;
  font-weight: 800;
}

.card-controls {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Lists / progress / showcase / onboarding */
.list-page {
  padding-bottom: 90px;
}

.list-section {
  padding-top: 55px;
}

.list-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 25px;
}

.list-heading h2 {
  font-size: 45px;
}

.completed-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.mini-card {
  border: 1px solid var(--border);
  padding: 20px;
  background: var(--card);
}

.mini-card .icon {
  font-size: 50px;
}

.mini-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.04em;
}

.progress-cover {
  background: var(--foreground);
  color: var(--background);
  padding: 80px 0;
}

.progress-cover h1 {
  font-size: clamp(60px, 8vw, 105px);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 45px;
}

.profile-stats div {
  border-top: 1px solid color-mix(
    in oklab,
    var(--background) 30%,
    transparent
  );
  padding-top: 15px;
}

.profile-stats strong {
  font-family: var(--font-display);
  font-size: 65px;
}

.profile-stats span {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.progress-content {
  padding: 75px 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.skill-tile {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 20px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.skill-tile-icon {
  font-size: 65px;
}

.skill-tile strong {
  font-family: var(--font-display);
  font-size: 25px;
}

.skill-tile small {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 45px 0 90px;
}

.showcase-tile {
  border: 1px solid var(--border);
  padding: 25px;
  min-height: 390px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.showcase-tile-icon {
  font-size: 100px;
}

.showcase-tile h2 {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.onboarding {
  min-height: 100vh;
}

.onboarding-inner {
  width: min(100% - 64px, 1030px);
  margin: auto;
}

.onboarding-heading {
  padding: 80px 0 35px;
}

.onboarding-heading h1 {
  font-family: var(--font-display);
  font-size: clamp(55px, 7vw, 95px);
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.interest-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.interest-group {
  border: 1px solid var(--border);
  padding: 25px;
  background: var(--card);
}

.interest-group h2 {
  font-family: var(--font-display);
  font-size: 25px;
  margin: 10px 0 18px;
}

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

.interest-options button {
  border: 1px solid var(--border);
  background: transparent;
  padding: 9px 12px;
  font-size: 10px;
  font-weight: 800;
}

.interest-options button.active {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

.onboarding-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0;
  border-top: 1px solid var(--border);
  margin-top: 30px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 32px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* Tablet */
@media (max-width: 900px) {
  .hero-inner,
  .detail-hero,
  .bored-layout,
  .card-page-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 650px;
    margin: auto;
    width: 100%;
  }

  .discover-cards,
  .completed-list,
  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-image {
    height: 420px;
  }

  .active-columns {
    grid-template-columns: 1fr;
  }

  .timer-panel {
    position: static;
  }

  .home-feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 650px) {
  .page-wrap-wide,
  .page-wrap,
  .content-section,
  .header-inner,
  .hero-inner,
  .hero-bottom-line,
  .progress-inner,
  .active-inner {
    width: min(100% - 36px, 1320px);
  }

  .site-header {
    height: 64px;
  }

  .desktop-nav,
  .header-roll {
    display: none;
  }

  .header-inner {
    display: flex;
  }

 .brand {
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 73px;
    background: var(--background);
    border-top: 1px solid var(--border);
    z-index: 50;
  }

  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 8px;
    font-weight: 800;
  }

  .mobile-nav .mobile-roll {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--primary);
    justify-self: center;
    transform: translateY(-13px);
    display: grid;
    place-items: center;
    font-size: 20px;
  }

  .main-content {
    padding-bottom: 73px;
  }

  .hero-inner {
    padding-top: 48px;
    gap: 40px;
  }

  .hero-copy h1 {
    font-size: clamp(45px, 11vw, 68px);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .btn {
    min-width: 0;
  }

  .hero-visual {
    height: 335px;
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .quest-grid,
  .discover-cards,
  .completed-list,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .progress-stats,
  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-sections {
    grid-template-columns: 1fr;
  }

  .bored-layout {
    padding: 40px 0;
  }

  .bored-choices {
    padding: 25px;
  }

  .roll-machine {
    box-shadow: 7px 7px 0 color-mix(
      in oklab,
      var(--primary) 18%,
      transparent
    );
  }

  .machine-window {
    min-height: 300px;
    padding: 25px 15px;
  }

  .roll-result {
    grid-template-columns: 76px 1fr;
  }

  .result-visual {
    height: 76px;
  }

  .result-actions {
    grid-column: 1 / -1;
  }

  .site-footer {
    padding-bottom: 100px;
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .page-heading h1 {
    font-size: clamp(48px, 12vw, 67px);
  }

  .onboarding-inner {
    width: min(100% - 36px, 1030px);
  }

  .interest-groups {
    grid-template-columns: 1fr;
  }

  .reward-list {
    gap: 15px;
  }

  .reward-list strong {
    font-size: 26px;
  }
}

/* SideQuest interaction polish */
.quest-card,
.mini-card,
.showcase-tile,
.interest-group,
.different-panel,
.recommendation-lead,
.roll-machine,
.detail-image,
.timer-panel,
.skill-tile {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.quest-card:hover {
  transform: translateY(-4px);
}

.quest-card .btn-icon {
  transition: transform 0.18s ease;
}

.quest-card .btn-icon:hover {
  transform: scale(1.15) rotate(8deg);
}

.machine-title {
  min-height: 1.8em;
}

.rolling .machine-window {
  overflow: hidden;
}

.rolling .machine-title {
  animation: rollflash 0.11s steps(2, end) infinite;
}

@keyframes rollflash {
  50% {
    transform: translateY(-3px);
    opacity: 0.55;
  }
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.choice-btn {
  cursor: pointer;
}

.choice-btn:hover {
  transform: translateX(3px);
}

.showcase-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.showcase-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 18px 18px 0 var(--foreground);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
/* =====================================================================
   V2 — Quest detail: richer, human instructions
   ===================================================================== */
.type-tagline {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 13px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--highlight) !important;
}

.detail-meta {
  flex-wrap: wrap;
}

.chain-line {
  margin: 0 0 24px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
}

/* Two columns on desktop, reading order preserved top-to-bottom */
.detail-body {
  column-count: 2;
  column-gap: 70px;
  border-top: 1px solid var(--border);
  padding: 50px 0 100px;
}

.detail-body-locked {
  column-count: 1;
  max-width: 640px;
}

.d-block {
  break-inside: avoid;
  margin: 0 0 40px;
}

.d-block > .eyebrow {
  margin-bottom: 14px;
  color: var(--muted-foreground);
}

.d-block p,
.d-block li {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 10px;
  max-width: 520px;
}

.d-block .gain {
  font-size: 14px;
  color: var(--muted-foreground);
}

.d-block .gain strong {
  color: var(--foreground);
}

.mission-card {
  background: var(--primary);
  color: var(--primary-foreground);
  border: 2px solid var(--foreground);
  border-radius: 4px;
  padding: 22px 24px;
  box-shadow: 5px 5px 0 var(--foreground);
}

.mission-card > .eyebrow {
  color: var(--primary-foreground) !important;
  opacity: 0.75;
}

.mission-text {
  font-size: 22px !important;
  line-height: 1.25 !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 !important;
}

.mystery-lines {
  display: grid;
  gap: 4px;
  font-size: 26px !important;
  font-weight: 800;
  line-height: 1.15 !important;
  letter-spacing: -0.03em;
}

.d-block .step-list {
  margin: 0;
}

.d-block .need-list {
  margin: 0;
}

.say-list,
.notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.say-list li {
  border-left: 4px solid var(--primary);
  background: var(--accent);
  padding: 12px 16px;
  margin-bottom: 8px;
  font-style: italic;
}

.notes-list li {
  position: relative;
  padding-left: 22px;
}

.notes-list li::before {
  content: '✳';
  position: absolute;
  left: 0;
  color: var(--highlight);
  font-size: 12px;
  top: 4px;
}

.where-label {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.complete-box {
  border: 2px dashed var(--foreground);
  border-radius: 4px;
  padding: 18px 20px;
}

.complete-text {
  font-weight: 700;
  font-size: 15px !important;
}

/* Active quest additions */
.active-mission {
  margin-bottom: 28px;
}

.active-columns .say-list {
  margin-bottom: 20px;
}

.notes-panel {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 18px 20px;
}

.notes-panel .eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--muted-foreground);
}

.notes-panel li {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 6px;
}

@media (max-width: 800px) {
  .detail-body {
    column-count: 1;
    padding: 36px 0 90px;
  }

  .mission-text {
    font-size: 19px !important;
  }

  .mystery-lines {
    font-size: 22px !important;
  }
}

/* =====================================================================
   V2 — shared bits
   ===================================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.btn-md { min-height: 42px; padding: 0 18px; font-size: 12px; }
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; }
.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer; color: inherit;
  font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--highlight); }
.danger-link { color: var(--highlight); margin-top: 14px; display: inline-block; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
h1:focus { outline: none; }
code { background: var(--accent); padding: 1px 6px; border-radius: 3px; font-size: .9em; }

.nav-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--coral); border: 2px solid var(--background);
  margin-left: 6px; vertical-align: middle;
}
.mobile-nav a.mobile-active { color: var(--foreground); font-weight: 800; }
.mobile-nav a { position: relative; }

#toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px);
  background: var(--foreground); color: var(--background);
  padding: 12px 20px; border-radius: 4px; font-size: 13px; font-weight: 700;
  max-width: min(92vw, 460px); text-align: center; z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  box-shadow: 4px 4px 0 var(--primary);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   V2 — Daily SideQuest
   ===================================================================== */
.daily-section { padding: 48px 20px 8px; max-width: 1280px; margin: 0 auto; }
.daily-card {
  display: grid; grid-template-columns: 1fr 260px; gap: 28px;
  border: 2px solid var(--foreground); border-radius: 6px;
  box-shadow: 8px 8px 0 var(--foreground); padding: clamp(22px, 4vw, 44px);
  position: relative; overflow: hidden;
}
.daily-card::before {
  content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255,255,255,.35) 22px 44px);
}
.daily-card > * { position: relative; }
.daily-card { background-color: var(--accent); }
.daily-main h2 {
  font-size: clamp(34px, 6.5vw, 72px); line-height: .95; letter-spacing: -.04em;
  text-transform: uppercase; margin: 14px 0 14px; font-weight: 900;
}
.daily-meta { font-weight: 800; letter-spacing: .1em; font-size: 12px; margin: 0 0 10px; }
.daily-desc { font-size: 17px; max-width: 520px; margin: 0 0 22px; }
.daily-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.daily-skips { font-size: 12px; font-weight: 700; margin: 12px 0 0; opacity: .75; }
.daily-done {
  font-weight: 900; letter-spacing: .08em; padding: 12px 16px;
  border: 2px solid var(--foreground); border-radius: 4px; background: var(--primary);
}
.daily-side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.daily-icon {
  font-size: 110px; width: 190px; height: 190px; display: grid; place-items: center;
  background: var(--background); border: 2px solid var(--foreground); border-radius: 18px;
  box-shadow: 7px 7px 0 var(--foreground); transform: rotate(-4deg);
}
.daily-tag { font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.daily-streak, .daily-streak-line {
  font-weight: 800; font-size: 12px; letter-spacing: .08em;
  background: var(--foreground); color: var(--background); padding: 6px 12px; border-radius: 99px; display: inline-block;
}
.daily-streak-line { margin: 0 0 14px; }
.daily-image { background: var(--accent); }

@media (max-width: 800px) {
  .daily-section { padding: 32px 16px 0; }
  .daily-card { grid-template-columns: 1fr; box-shadow: 5px 5px 0 var(--foreground); }
  .daily-side { flex-direction: row; justify-content: flex-start; flex-wrap: wrap; text-align: left; order: -1; }
  .daily-icon { width: 84px; height: 84px; font-size: 48px; border-radius: 12px; box-shadow: 4px 4px 0 var(--foreground); }
  .daily-actions .btn { width: 100%; justify-content: center; }
}

/* Quick quests + vibes + mystery card (home) */
.quick-section, .vibe-section, .nearby-section { padding-top: 56px; }
.quick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick-btn {
  text-align: left; cursor: pointer; padding: 18px; border: 2px solid var(--foreground); border-radius: 4px;
  background: var(--background); display: flex; flex-direction: column; gap: 4px;
  transition: transform .15s, box-shadow .15s;
}
.quick-btn strong { font-size: 22px; letter-spacing: -.02em; font-weight: 900; }
.quick-btn span { font-size: 12px; color: var(--muted-foreground); font-weight: 600; }
.quick-btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--foreground); background: var(--primary); }
.quick-extras { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip-link {
  cursor: pointer; border: 2px solid var(--foreground); background: transparent; border-radius: 99px;
  padding: 10px 16px; font-weight: 800; font-size: 12px; letter-spacing: .06em;
}
.chip-link:hover { background: var(--foreground); color: var(--background); }

.mystery-card {
  display: block; text-decoration: none; color: var(--background); background: var(--foreground);
  border-radius: 6px; padding: 28px; position: relative; overflow: hidden; box-shadow: 6px 6px 0 var(--coral);
}
.mystery-card .eyebrow { color: var(--primary); }
.mystery-card .mystery-lines { font-size: clamp(22px, 4vw, 34px) !important; margin: 12px 0 !important; }
.mystery-cta { font-weight: 900; letter-spacing: .1em; font-size: 12px; color: var(--primary); }

.vibe-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.vibe-tile {
  text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 6px;
  padding: 16px; border: 2px solid var(--foreground); border-radius: 4px; background: var(--background);
  transition: transform .15s, box-shadow .15s;
}
.vibe-tile:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--foreground); }
.vibe-tile .vibe-icon { font-size: 30px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; border: 2px solid var(--foreground); background: var(--accent); }
.vibe-tile strong { font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.vibe-tile small { font-size: 12px; color: var(--muted-foreground); line-height: 1.35; }
.nearby-note { margin: -4px 0 18px; }

@media (max-width: 800px) {
  .quick-row { grid-template-columns: repeat(2, 1fr); }
  .vibe-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
   V2 — Something Weird
   ===================================================================== */
.weird-page { padding: 40px 0 120px; }
.weird-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; margin-top: 30px; }
.weird-copy h1 { font-size: clamp(48px, 8vw, 104px); line-height: .88; letter-spacing: -.05em; margin: 14px 0 18px; font-weight: 900; }
.weird-copy h1 em { font-style: normal; color: var(--highlight); }
.weird-levels { margin-top: 20px; }
.weird-card {
  background: var(--accent); border: 2px solid var(--foreground); border-radius: 6px;
  box-shadow: 8px 8px 0 var(--foreground); padding: 26px; position: relative; overflow: hidden;
}
.weird-card-top { display: flex; justify-content: space-between; font-weight: 800; font-size: 11px; letter-spacing: .12em; }
.weird-icon { display: block; font-size: 84px; margin: 20px 0 6px; transform: rotate(-5deg); }
.weird-card h2 { font-size: clamp(28px, 5vw, 44px); line-height: 1; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 900; text-transform: uppercase; }
.weird-card blockquote {
  margin: 0 0 20px; padding: 14px 18px; border-left: 5px solid var(--foreground);
  background: var(--background); font-size: 19px; font-style: italic; font-weight: 600;
}
.weird-card p { font-size: 16px; }
.weird-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.weird-links { display: flex; gap: 20px; margin-top: 16px; align-items: center; }
@media (max-width: 800px) {
  .weird-layout { grid-template-columns: 1fr; gap: 28px; }
  .weird-actions .btn { width: 100%; justify-content: center; }
}

/* =====================================================================
   V2 — Discover filters, Roll 2.0, Bored
   ===================================================================== */
.filter-stack { display: grid; gap: 12px; margin-top: 14px; }
.filter-row { display: grid; grid-template-columns: 82px 1fr; gap: 12px; align-items: center; }
.filter-label { font-size: 10px; font-weight: 900; letter-spacing: .14em; color: var(--muted-foreground); }
.filter-row .category-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: thin; }
.filter-row .filter-pill { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 600px) { .filter-row { grid-template-columns: 1fr; gap: 4px; } }

.roll-filters { margin: 0 0 22px; flex-wrap: wrap; }
.machine-title.tick { animation: sq-tick .11s ease-out; }
@keyframes sq-tick { from { transform: translateY(-14px); opacity: .25; } to { transform: none; opacity: 1; } }
.roll-page.rolling .roll-machine { animation: sq-shake .18s infinite alternate; }
@keyframes sq-shake { from { transform: translateX(-2px) rotate(-.15deg); } to { transform: translateX(2px) rotate(.15deg); } }
.roll-details { display: grid; gap: 12px; margin: 14px 0; }
.roll-details p { margin: 4px 0 0; font-size: 15px; line-height: 1.45; }
.roll-result + * { margin-top: 0; }
.bored-why { margin: 0 0 12px; font-size: 13px; }

/* =====================================================================
   V2 — Completion
   ===================================================================== */
.reflect-gap { display: block; margin-top: 22px; }
.reflect-note { margin-top: 18px; text-align: left; border: 1px dashed var(--foreground); border-radius: 4px; padding: 12px 14px; }
.reflect-note summary { cursor: pointer; font-weight: 800; font-size: 13px; }
.reflect-note label { display: block; margin: 12px 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.reflect-note input, .auth-form input, .auth-form select, .inline-form input, .form-row input {
  width: 100%; min-height: 46px; padding: 0 14px; border: 2px solid var(--foreground); border-radius: 4px;
  background: var(--background); color: var(--foreground);
}
.reflection-options button[aria-pressed="true"], .reflection-options button.active { background: var(--primary); }
.chain-next { font-size: 12px; font-weight: 800; letter-spacing: .06em; margin-top: 18px; }
.chain-next a { color: var(--highlight); }
.complete-again { margin-top: 12px; }
.notif-prompt {
  margin-top: 22px; padding: 16px; border: 2px solid var(--foreground); border-radius: 4px;
  background: var(--accent); display: flex; gap: 14px; justify-content: space-between; align-items: center; text-align: left; flex-wrap: wrap;
}
.notif-prompt p { margin: 4px 0 0; font-size: 13px; color: var(--muted-foreground); }
.notif-prompt-actions { display: flex; gap: 8px; }

/* Clear Card */
.clear-card-frame {
  width: 100%; max-width: 480px; margin: 0 auto; border: 3px solid var(--foreground); border-radius: 12px;
  box-shadow: 10px 10px 0 var(--foreground); overflow: hidden; background: var(--background);
  transform: rotate(1.2deg); transition: transform .3s;
}
.clear-card-frame:hover { transform: rotate(0deg) scale(1.01); }
.clear-card-frame canvas { display: block; width: 100%; height: auto; }
.card-controls { flex-wrap: wrap; }
@media (max-width: 800px) { .clear-card-frame { box-shadow: 6px 6px 0 var(--foreground); } }

/* =====================================================================
   V2 — Profile hub, account, settings, challenges
   ===================================================================== */
.profile-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 26px; }
.profile-tabs a {
  text-decoration: none; color: inherit; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 16px; border: 2px solid var(--foreground); border-radius: 99px;
}
.profile-tabs a.active { background: var(--foreground); color: var(--background); }
.compact-cover { padding-bottom: 36px; }
.compact-cover h1 { font-size: clamp(44px, 9vw, 88px); }
.narrow { max-width: 760px; }
.flavours { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.flavour { padding: 8px 14px; border: 2px solid var(--foreground); border-radius: 99px; background: var(--accent); font-weight: 800; font-size: 13px; }

.panel { border: 2px solid var(--foreground); border-radius: 6px; padding: 22px; margin-bottom: 18px; background: var(--card); }
.panel h2 { margin: 6px 0 10px; font-size: 24px; letter-spacing: -.02em; }
.panel p { line-height: 1.55; }
.panel-note { background: var(--accent); box-shadow: 5px 5px 0 var(--foreground); }
.panel-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--primary); }
.panel-cta h2 { margin: 6px 0 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.delivery-note { font-size: 13px; font-weight: 600; padding: 10px 12px; background: var(--accent); border-radius: 4px; }
.delivery-note a { color: var(--highlight); }

.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.switch-row small { display: block; font-size: 12px; color: var(--muted-foreground); margin-top: 2px; font-weight: 500; }
.switch-row input[type=checkbox] { width: 24px; height: 24px; accent-color: var(--foreground); flex: none; }
.switch-row input[type=time] { min-height: 40px; border: 2px solid var(--foreground); border-radius: 4px; padding: 0 10px; background: var(--background); }
.time-row { cursor: default; margin-bottom: 14px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--foreground); border-radius: 4px; overflow: hidden; margin-bottom: 18px; }
.seg button { padding: 12px; border: 0; background: transparent; font-weight: 900; font-size: 12px; letter-spacing: .08em; cursor: pointer; }
.seg button.active { background: var(--foreground); color: var(--background); }
.auth-form { display: grid; gap: 8px; }
.auth-form label, .form-row label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-top: 8px; }
.auth-form .btn { margin-top: 14px; }
.inline-form { display: flex; gap: 8px; }
.form-row { margin-top: 14px; }
.form-row.danger { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--destructive); }
.form-error { color: var(--destructive); font-weight: 700; font-size: 14px; margin: 6px 0; }
.profile-card { display: flex; align-items: center; gap: 16px; }
.profile-card h2 { margin: 0; }
.avatar { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); border: 2px solid var(--foreground); font-weight: 900; font-size: 26px; }
.sync-line { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.sync-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.sync-ok { background: #3fa34d; } .sync-syncing { background: var(--primary); } .sync-offline, .sync-error { background: var(--coral); }

.chal-card { display: flex; gap: 16px; padding: 18px; border: 2px solid var(--foreground); border-radius: 6px; margin-bottom: 12px; background: var(--card); }
.chal-card.completed { background: var(--primary); }
.chal-icon { font-size: 40px; width: 64px; height: 64px; flex: none; display: grid; place-items: center; background: var(--accent); border: 2px solid var(--foreground); border-radius: 12px; }
.chal-main { flex: 1; min-width: 0; }
.chal-main h3 { margin: 4px 0 6px; font-size: 20px; letter-spacing: -.02em; }
.chal-msg { font-style: italic; margin: 0 0 8px; }
.chal-progress { display: flex; gap: 16px; font-weight: 800; font-size: 13px; margin: 6px 0 10px; }
.chal-progress .done { color: #1f7a2d; }
.chal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.friend-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--border); }
.friend-row small { color: var(--muted-foreground); margin-left: 6px; }
.friend-row > span:last-child { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.friend-add { margin: 16px 0 6px; }
.friend-pick { display: grid; gap: 8px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px solid var(--foreground); border-radius: 4px; cursor: pointer; font-weight: 700; margin: 0 !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 15px !important; }
.pick.active { background: var(--primary); }
.pick input { width: 20px !important; min-height: 20px !important; accent-color: var(--foreground); }
.pick small { color: var(--muted-foreground); font-weight: 500; }
select { appearance: auto; }

@media (max-width: 600px) {
  .chal-card { flex-direction: column; }
  .inline-form { flex-direction: column; }
  .panel { padding: 18px; }
  .daily-actions .btn, .notif-prompt-actions .btn { flex: 1; }
}

/* Reduced motion: no shaking, ticking, tilting or smooth scroll */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .machine-title.tick, .roll-page.rolling .roll-machine { animation: none; }
  .clear-card-frame, .quick-btn, .vibe-tile, #toast { transition: none; }
  .clear-card-frame { transform: none; }
  .daily-icon { transform: none; }
}
.mystery-card { margin-top: 28px; }

/* Long quest titles must never force sideways scroll on phones */
.detail-hero > *, .weird-layout > *, .daily-card > *, .card-page-layout > * { min-width: 0; }
.detail-copy h1, .active-heading h1, .daily-main h2, .weird-card h2, .bored-choices h2 { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .detail-copy h1, .active-heading h1, .complete-inner h1 {
    font-size: clamp(32px, 10vw, 55px);
    letter-spacing: -0.05em;
  }
  .daily-main h2 { font-size: clamp(30px, 9.5vw, 48px); }
}
.detail-copy > p.daily-skips { font-size: 12px; margin: 10px 0 14px; color: var(--foreground); }

/* Profile tabs sit on the dark cover */
.progress-cover .profile-tabs a { border-color: var(--background); color: var(--background); }
.progress-cover .profile-tabs a:hover { background: rgba(255,255,255,.12); }
.progress-cover .profile-tabs a.active { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.progress-cover .daily-streak-line { background: var(--primary); color: var(--primary-foreground); margin-top: 16px; }


/* =====================================================================
   SIDEQUEST POLISH PASS — visual system
   Image-led, editorial, less clip-art, more real-world.
   ===================================================================== */
:root {
  --brand-red: var(--foreground);
  --ink: #171a17;
  --paper: #f7f5ee;
  --paper-2: #eeece3;
  --acid: #d9f34a;
  --line: rgba(23,26,23,.16);
  --shadow: 8px 8px 0 var(--ink);
}
body { background: var(--paper); color: var(--ink); }
.site-header { background: rgba(247,245,238,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { color: var(--brand-red) !important; font-weight: 950; letter-spacing: -.07em; }
.brand-dot { color: var(--brand-red) !important; }
.header-roll { border-radius: 999px !important; box-shadow: none !important; }
.hero-actions .bored-cta {
  background: var(--brand-red) !important; color: #fff !important; border-color: var(--brand-red) !important;
  box-shadow: 5px 5px 0 var(--ink); transform: rotate(-1deg);
}
.hero-actions .bored-cta:hover { transform: translate(-2px,-2px) rotate(-1deg); box-shadow: 7px 7px 0 var(--ink); }
.hero-actions .bored-cta::before { content: '●'; margin-right: 8px; font-size: 9px; }

/* Daily card: no stripes, no candy-pink poster. */
.daily-card { background: #e9f0d2 !important; box-shadow: var(--shadow); border-radius: 18px; border: 1px solid var(--ink); }
.daily-card::before { display:none !important; }
.daily-main h2 { max-width: 760px; }
.daily-side { align-items: flex-end; }
.daily-icon { position:relative; overflow:hidden; padding:0 !important; width:220px !important; height:220px !important; border-radius:20px !important; transform:rotate(2deg) !important; background:var(--ink) !important; box-shadow: 7px 7px 0 var(--brand-red) !important; }
.daily-icon img { width:100%; height:100%; object-fit:cover; display:block; }
.daily-icon span { position:absolute; left:14px; bottom:12px; color:#fff; font-size:11px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; background:var(--ink); padding:6px 8px; border-radius:999px; }

/* Image-led quest cards. */
.quest-card { overflow:hidden; border:1px solid var(--ink) !important; border-radius:18px !important; box-shadow: 5px 5px 0 var(--ink) !important; background:#fff !important; }
.quest-card:hover { transform:translateY(-4px) !important; box-shadow:8px 8px 0 var(--ink) !important; }
.quest-art { height:210px !important; position:relative; overflow:hidden; background:var(--ink) !important; border:0 !important; }
.quest-art-image { width:100%; height:100%; display:block; object-fit:cover; transition:transform .5s ease; }
.quest-card:hover .quest-art-image { transform:scale(1.045); }
.quest-art-scrim { position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,0) 45%,rgba(0,0,0,.65)); }
.quest-art .art-index { z-index:2; color:#fff !important; top:14px !important; left:14px !important; }
.quest-art-category { position:absolute; z-index:3; left:14px; bottom:14px; color:#fff; background:rgba(0,0,0,.72); padding:6px 9px; border-radius:999px; font-size:10px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.quest-art-icon { display:none !important; }
.quest-card-content { padding:20px !important; }
.quest-title-link h3 { font-size:clamp(21px,2vw,29px) !important; letter-spacing:-.035em !important; line-height:1 !important; }
.quest-card-content > p { color:#555b54; line-height:1.55; }
.quest-card-bottom { border-top:1px solid var(--line); padding-top:14px; margin-top:14px; }

/* Return loop */
.return-strip { margin:56px auto 0; max-width:1280px; padding:36px; background:var(--ink); color:#fff; border-radius:22px; display:grid; grid-template-columns: .8fr 1.2fr; gap:28px; align-items:center; }
.return-strip h2 { margin:10px 0 0; color:#fff; font-size:clamp(34px,5vw,68px); line-height:.88; letter-spacing:-.055em; }
.return-strip h2 em { color:var(--acid); font-style:normal; }
.return-actions { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.return-chip { cursor:pointer; text-align:left; min-height:115px; padding:18px; border:1px solid rgba(255,255,255,.24); border-radius:14px; background:#242824; color:#fff; display:flex; flex-direction:column; justify-content:space-between; transition:.2s ease; }
.return-chip:hover { transform:translateY(-4px); border-color:var(--acid); background:#30362d; }
.return-chip b { font-size:16px; letter-spacing:.1em; }
.return-chip span { color:#bfc5bc; font-size:12px; line-height:1.35; }

/* Optional account callout */
.sync-callout { margin:24px 0 0; padding:16px 18px; border:1px solid var(--line); background:var(--paper-2); border-radius:14px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; font-size:13px; }
.sync-callout strong { font-size:11px; letter-spacing:.1em; }
.sync-callout span { color:#60655e; }
.sync-callout a,.sync-ok { color:var(--brand-red) !important; font-weight:900; letter-spacing:.04em; }
.footer-note { color:var(--muted-foreground); font-size:11px; font-weight:800; letter-spacing:.08em; }

/* Profile now owns My Quests. */
.profile-tabs { flex-wrap:wrap; }
.profile-tabs a { white-space:nowrap; }

/* Discover on mobile becomes a single control. */
@media (max-width: 700px) {
  .return-strip { grid-template-columns:1fr; padding:24px; border-radius:18px; }
  .return-actions { grid-template-columns:1fr; }
  .return-chip { min-height:76px; }
  .quest-art { height:170px !important; }
  .quest-card-content { padding:16px !important; }
  .daily-card { padding:20px !important; }
  .daily-icon { width:100% !important; height:160px !important; transform:none !important; }
  .daily-side { align-items:stretch; }
  .filter-stack { margin-top:14px; padding:12px; background:var(--paper-2); border:1px solid var(--line); border-radius:14px; }
  .filter-row { display:grid !important; grid-template-columns:1fr !important; gap:8px !important; }
  .filter-row::before { content:'FILTER'; display:block; font-size:9px; font-weight:900; letter-spacing:.12em; color:var(--muted-foreground); }
  .filter-label { display:none !important; }
  .filter-row .category-filters { display:flex; flex-wrap:nowrap; overflow-x:auto; padding-bottom:2px; scrollbar-width:none; }
  .filter-row .category-filters::-webkit-scrollbar { display:none; }
  .filter-row .filter-pill { flex:0 0 auto; }
  .filter-row:first-child::before { content:'VIBE'; }
  .filter-row:nth-child(2)::before { content:'TIME'; }
  .filter-row:nth-child(3)::before { content:'WHERE'; }
  .filter-row:nth-child(4)::before { content:'TOPIC'; }
}


/* SIDEQUEST VISUAL RESET — photo-first, lime/ink/paper, no red takeover */
.brand { color: var(--foreground) !important; font-weight: 800 !important; letter-spacing: -0.04em !important; }
.brand-dot { color: var(--foreground) !important; }
.hero-actions .bored-cta { background: var(--primary) !important; color: var(--foreground) !important; border-color: var(--foreground) !important; box-shadow: 5px 5px 0 var(--foreground) !important; transform: none !important; }
.hero-actions .bored-cta:hover { transform: translate(-2px,-2px) !important; box-shadow: 7px 7px 0 var(--foreground) !important; }
.hero-actions .bored-cta::before { content: none !important; }
.daily-icon { box-shadow: 7px 7px 0 var(--foreground) !important; }
.daily-icon span { background: var(--primary) !important; color: var(--foreground) !important; }
.quest-art-category { background: var(--primary) !important; color: var(--foreground) !important; }
.sync-callout a,.sync-ok { color: var(--foreground) !important; }

/* Completion should feel like a payoff, not a form. */
.complete-page { background: radial-gradient(circle at 50% 10%, rgba(217,243,74,.42), transparent 38%), var(--background); }
.complete-inner { max-width: 920px; }
.completion-art { width:min(100%, 560px); height:260px; margin:0 auto 28px; position:relative; overflow:hidden; border:2px solid var(--foreground); border-radius:22px; box-shadow:10px 10px 0 var(--foreground); transform:rotate(-1deg); background:#dce8c8; }
.completion-art img { width:100%; height:100%; object-fit:cover; display:block; }
.completion-art::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 45%,rgba(0,0,0,.42)); }
.completion-art span { position:absolute; z-index:2; left:18px; bottom:16px; padding:8px 10px; background:var(--primary); color:var(--foreground); font-size:10px; font-weight:900; letter-spacing:.12em; border:1px solid var(--foreground); }
.complete-inner h1 em { color:var(--highlight); }
.reward-list { margin:32px 0; }
.reward-list strong { color:var(--foreground) !important; }
.reflection { margin-top:30px; padding:24px; border:1px solid var(--border); background:var(--background); border-radius:18px; box-shadow:6px 6px 0 var(--border); }
.reflection-options button { border:1px solid var(--foreground) !important; background:var(--background) !important; color:var(--foreground) !important; border-radius:999px !important; font-weight:900 !important; letter-spacing:.03em; }
.reflection-options button.active { background:var(--primary) !important; color:var(--foreground) !important; box-shadow:3px 3px 0 var(--foreground); }
.complete-again { margin-top:10px; }

.filter-mobile { display:none; }
@media (max-width:700px) {
  .filter-desktop { display:none !important; }
  .filter-mobile { display:grid; gap:8px; margin-top:12px; }
  .filter-dropdown { border:1px solid var(--border); background:var(--background); border-radius:12px; overflow:hidden; }
  .filter-dropdown summary { list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center; padding:14px 15px; font-size:10px; font-weight:900; letter-spacing:.12em; }
  .filter-dropdown summary::-webkit-details-marker { display:none; }
  .filter-dropdown summary::after { content:'+'; font-size:18px; line-height:1; }
  .filter-dropdown[open] summary::after { content:'−'; }
  .filter-dropdown summary b { margin-left:auto; margin-right:12px; font-size:10px; letter-spacing:.02em; font-weight:700; text-transform:none; color:var(--muted-foreground); }
  .filter-dropdown-options { display:flex; flex-wrap:wrap; gap:7px; padding:0 12px 12px; border-top:1px solid var(--border); }
  .filter-dropdown-options .filter-pill { margin-top:8px; }
  .completion-art { height:190px; box-shadow:7px 7px 0 var(--foreground); }
  .complete-page { padding:48px 18px 88px; }
  .complete-inner h1 { font-size:clamp(48px,15vw,76px); }
  .reflection { padding:18px; }
}

/* Five clean mobile destinations + a real central roll button. */
@media (max-width:700px) {
  .mobile-nav { grid-template-columns:repeat(5,1fr) !important; height:76px !important; padding:0 4px; }
  .mobile-nav a { color:var(--muted-foreground); gap:4px; font-size:9px !important; letter-spacing:.04em; }
  .mobile-nav a.mobile-active { color:var(--foreground) !important; font-weight:900; }
  .mobile-nav .nav-icon { width:21px; height:21px; display:grid; place-items:center; }
  .mobile-nav .nav-icon svg { width:20px; height:20px; }
  .mobile-nav .mobile-roll { width:52px; height:52px; margin:auto; border:2px solid var(--foreground); background:var(--primary); color:var(--foreground); border-radius:16px; transform:translateY(-14px) rotate(-4deg); box-shadow:4px 4px 0 var(--foreground); }
  .mobile-nav .roll-glyph { font-size:22px; line-height:1; }
}


/* =====================================================================
   SIDEQUEST V2.1 — surgical additions (appended; nothing above is removed)
   Palette: dark ink, warm cream, lime, restrained red.
   ===================================================================== */

/* ---- Roll: centred third destination, SVG die ---- */
.mobile-nav .roll-glyph { display: grid; place-items: center; line-height: 1; }
.mobile-nav .roll-glyph svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mobile-nav a.mobile-roll.mobile-active { box-shadow: 4px 4px 0 var(--foreground), 0 0 0 3px var(--background), 0 0 0 5px var(--foreground); }

/* ---- Timer ---- */
.timer-panel strong { display: block; font-variant-numeric: tabular-nums; }
.timer-bar { grid-column: 1 / -1; width: auto; justify-self: stretch; align-self: stretch; height: 8px; margin: 14px 0 12px; border: 1px solid var(--foreground); border-radius: 99px; overflow: hidden; background: var(--background); }
.timer-bar i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .25s linear; }
.timer-panel.timer-done { background: var(--primary); border-color: var(--foreground); }
.timer-panel.timer-done strong { animation: sq-pop .5s cubic-bezier(.2,1.4,.4,1); }
.timer-panel.timer-done .timer-bar i { background: var(--foreground); }

/* ---- Reminder time editor ---- */
.time-edit { display: flex; align-items: center; gap: 8px; flex: none; }
.time-edit input[type=time] { min-height: 44px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; border: 2px solid var(--foreground); border-radius: 10px; padding: 0 10px; background: var(--background); color: var(--foreground); }
.time-edit .btn[disabled] { opacity: .35; cursor: not-allowed; }
.time-row small b { color: var(--foreground); }
@media (max-width: 520px) {
  .time-row { flex-wrap: wrap; }
  .time-edit { width: 100%; }
  .time-edit input[type=time] { flex: 1; }
}

/* ---- Streak artifact ---- */
.streak-badge { display: inline-flex; align-items: center; gap: 14px; color: var(--foreground); }
.streak-seal { width: 60px; height: 60px; flex: none; display: grid; place-content: center; text-align: center; background: var(--primary); border: 2px solid var(--foreground); border-radius: 16px; box-shadow: 3px 3px 0 var(--foreground); transform: rotate(-4deg); }
.streak-seal b { font-family: var(--font-display); font-size: 26px; line-height: 1; letter-spacing: -.04em; }
.streak-seal small { font-size: 8px; font-weight: 900; letter-spacing: .14em; margin-top: 2px; }
.streak-meta { display: grid; gap: 7px; text-align: left; }
.streak-title { font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.streak-pips { display: flex; gap: 4px; }
.streak-pips i { width: 15px; height: 7px; border-radius: 99px; border: 1.5px solid currentColor; opacity: .45; }
.streak-pips i.on { background: currentColor; opacity: 1; }
.streak-next { font-size: 11px; font-weight: 700; color: var(--muted-foreground); }
.streak-mini { gap: 10px; }
.streak-mini .streak-seal { width: 46px; height: 46px; border-radius: 13px; }
.streak-mini .streak-seal b { font-size: 20px; }
.streak-inline { margin: 0 0 16px; }
.progress-cover .streak-badge { color: var(--background); margin-top: 18px; }
.progress-cover .streak-seal { border-color: var(--primary); color: var(--primary-foreground); box-shadow: 3px 3px 0 rgba(255,255,255,.22); }
.progress-cover .streak-pips i.on { background: var(--primary); border-color: var(--primary); }
.progress-cover .streak-next { color: rgba(255,255,255,.72); }
.complete-inner .streak-badge { margin: 4px auto 0; }

/* ---- Completion: collectible, celebratory ----
   Dark ink with cream text and lime payoffs, which is what the original
   completion stylesheet was built for. An earlier polish layer lightened the
   background without updating the text, leaving the headline, labels and
   reflection headings unreadable. Colours are now set explicitly here. */
.complete-page { position: relative; overflow: hidden; background: radial-gradient(circle at 50% 0%, rgba(217,243,74,.20), transparent 46%), var(--foreground); color: var(--background); }
.complete-inner { position: relative; z-index: 1; }
.complete-inner > .eyebrow { color: var(--primary); }
.complete-inner h1 { color: var(--background); animation: sq-rise .55s cubic-bezier(.2,.9,.3,1) both; }
.complete-inner h1 em { color: var(--primary); }
.complete-inner > p { color: rgba(247,245,238,.8); }
.completion-art { border-color: var(--background); box-shadow: 10px 10px 0 var(--primary); }
.completion-art span { animation: sq-stamp .55s .15s cubic-bezier(.2,1.5,.4,1) both; }
.completion-no { position: absolute; z-index: 2; right: 16px; top: 14px; font-style: normal; font-size: 10px; font-weight: 900; letter-spacing: .14em; color: var(--foreground); background: var(--background); padding: 6px 10px; border-radius: 99px; }

.reward-list { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 12px !important; max-width: 520px; margin: 30px auto !important; }
.reward-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px 14px; border: 1.5px dashed rgba(247,245,238,.38); border-radius: 16px; color: rgba(247,245,238,.62); background: transparent; }
.reward-tile svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 2px; }
.reward-list .reward-tile strong { color: inherit !important; font-size: 30px; line-height: 1; }
.reward-list .reward-tile span { display: block; color: inherit; text-align: center; line-height: 1.25; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.reward-tile.earned { border: 2px solid var(--primary); background: var(--primary); color: var(--foreground); box-shadow: 4px 4px 0 rgba(247,245,238,.28); animation: sq-stamp .5s cubic-bezier(.2,1.4,.4,1) both; }
.reward-tile.earned:nth-child(2) { animation-delay: .14s; }
.reward-tile.earned:nth-child(3) { animation-delay: .28s; }

.complete-inner .streak-badge { margin: 4px auto 0; color: var(--background); }
.complete-inner .streak-seal { border-color: var(--primary); color: var(--primary-foreground); box-shadow: 3px 3px 0 rgba(247,245,238,.25); }
.complete-inner .streak-pips i.on { background: var(--primary); border-color: var(--primary); }
.complete-inner .streak-next { color: rgba(247,245,238,.7); }

.reflection { background: rgba(247,245,238,.06); border: 1px solid rgba(247,245,238,.24); box-shadow: 6px 6px 0 rgba(0,0,0,.4); color: var(--background); text-align: center; }
.reflection .eyebrow { color: var(--primary); }
.reflection-options { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px !important; }
.reflection-options button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: auto !important; min-height: 76px; padding: 12px 6px !important; border-radius: 14px !important; border: 1.5px solid rgba(247,245,238,.55) !important; background: transparent !important; color: var(--background) !important; font-size: 11px !important; line-height: 1.15; letter-spacing: .05em; transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease; }
.reflection-options button span { font-size: inherit !important; }
.reflection-options button:hover { transform: translateY(-2px); border-color: var(--primary) !important; box-shadow: 3px 3px 0 var(--primary); }
.reflection-options button.active { background: var(--primary) !important; border-color: var(--primary) !important; color: var(--foreground) !important; box-shadow: 3px 3px 0 rgba(247,245,238,.3); transform: translateY(-2px); }
.rf-mark { width: 22px; height: 22px; display: grid; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; font-style: normal; font-size: 11px; font-weight: 900; }
.reflection-options button.active .rf-mark { background: var(--foreground); border-color: var(--foreground); color: var(--primary); font-size: 0; }
.reflection-options button.active .rf-mark::after { content: "✓"; font-size: 12px; }
.reflection .reflect-note { border-color: rgba(247,245,238,.4); border-radius: 12px; }
.reflection .reflect-note summary, .reflection .reflect-note label { color: var(--background); }
.reflection .reflect-note input { background: rgba(247,245,238,.08); color: var(--background); border: 1.5px solid rgba(247,245,238,.45); border-radius: 8px; }
.reflection .reflect-note input::placeholder { color: rgba(247,245,238,.5); }
.complete-inner .btn-lime { box-shadow: 5px 5px 0 rgba(247,245,238,.35); }
.complete-inner .btn-outline { border: 1.5px solid rgba(247,245,238,.6); color: var(--background); }
.complete-inner .btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.complete-inner .chain-next { color: rgba(247,245,238,.85); }
.complete-inner .chain-next a { color: var(--primary); }
.complete-inner .notif-prompt { background: var(--background); color: var(--foreground); border-radius: 14px; text-align: left; }

.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.confetti i { position: absolute; top: -18px; width: 8px; height: 14px; border: 1px solid rgba(247,245,238,.5); border-radius: 2px; animation: sq-fall 2.4s ease-in both; }
.confetti i:nth-child(1){left:4%;background:var(--primary);animation-delay:0.00s;animation-duration:2.00s;transform:rotate(0deg)}
.confetti i:nth-child(2){left:11%;background:var(--background);animation-delay:0.12s;animation-duration:2.35s;transform:rotate(37deg)}
.confetti i:nth-child(3){left:18%;background:var(--background);animation-delay:0.24s;animation-duration:2.70s;transform:rotate(74deg)}
.confetti i:nth-child(4){left:25%;background:var(--primary);animation-delay:0.36s;animation-duration:3.05s;transform:rotate(21deg)}
.confetti i:nth-child(5){left:32%;background:var(--brand-red);animation-delay:0.48s;animation-duration:2.00s;transform:rotate(58deg)}
.confetti i:nth-child(6){left:39%;background:var(--primary);animation-delay:0.00s;animation-duration:2.35s;transform:rotate(5deg)}
.confetti i:nth-child(7){left:46%;background:var(--background);animation-delay:0.12s;animation-duration:2.70s;transform:rotate(42deg)}
.confetti i:nth-child(8){left:53%;background:var(--background);animation-delay:0.24s;animation-duration:3.05s;transform:rotate(79deg)}
.confetti i:nth-child(9){left:60%;background:var(--primary);animation-delay:0.36s;animation-duration:2.00s;transform:rotate(26deg)}
.confetti i:nth-child(10){left:67%;background:var(--background);animation-delay:0.48s;animation-duration:2.35s;transform:rotate(63deg)}
.confetti i:nth-child(11){left:74%;background:var(--primary);animation-delay:0.00s;animation-duration:2.70s;transform:rotate(10deg)}
.confetti i:nth-child(12){left:81%;background:var(--brand-red);animation-delay:0.12s;animation-duration:3.05s;transform:rotate(47deg)}
.confetti i:nth-child(13){left:88%;background:var(--background);animation-delay:0.24s;animation-duration:2.00s;transform:rotate(84deg)}
.confetti i:nth-child(14){left:95%;background:var(--primary);animation-delay:0.36s;animation-duration:2.35s;transform:rotate(31deg)}

@keyframes sq-fall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(105vh) rotate(380deg); opacity: 0; } }
@keyframes sq-stamp { 0% { transform: scale(1.6) rotate(-8deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes sq-rise { 0% { transform: translateY(14px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes sq-pop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

@media (max-width: 1000px) {
  .active-columns aside { order: -1; margin-bottom: 8px; }
  .active-columns .timer-panel > :first-child { text-align: center; align-self: center; }
  .active-columns .timer-panel { text-align: center; border: 2px solid var(--foreground); border-radius: 16px; box-shadow: 5px 5px 0 var(--foreground); background: var(--background); }
  .active-columns .timer-panel.timer-done { background: var(--primary); }
}
@media (max-width: 700px) {
  .timer-panel strong { font-size: 52px; }
  .reward-list { gap: 8px !important; }
  .reward-tile { padding: 13px 4px 11px; }
  .reflection-options button { min-height: 70px; font-size: 10px !important; letter-spacing: .03em; }
}

/* ---- Launch splash (logo motion, once per session; the installed icon stays static) ---- */
#sq-splash { position: fixed; inset: 0; z-index: 9999; display: grid; place-content: center; justify-items: center; gap: 14px; background: #171a17; color: #f7f5ee; pointer-events: none; animation: sq-splash-out .45s ease 1.2s forwards; }
#sq-splash img { width: 92px; height: 92px; border-radius: 22px; animation: sq-logo-in .7s cubic-bezier(.2,1.4,.4,1) both; box-shadow: 0 0 0 3px #d9f34a; }
#sq-splash span { font-weight: 900; font-size: 22px; letter-spacing: -.06em; animation: sq-rise .5s .35s ease both; }
#sq-splash b { color: #d9f34a; }
.no-splash #sq-splash { display: none; }
@keyframes sq-logo-in { 0% { transform: scale(.55) rotate(-14deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes sq-splash-out { to { opacity: 0; visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  .confetti { display: none; }
  #sq-splash, #sq-splash img, #sq-splash span, .reward-tile.earned, .completion-art span, .complete-inner h1, .timer-panel.timer-done strong { animation: none !important; }
  #sq-splash { display: none; }
  .timer-bar i { transition: none; }
}


/* =====================================================================
   V3: dedicated auth pages, community Showcase, public profiles
   ===================================================================== */
.auth-page { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: calc(100vh - 80px); }
.auth-aside { background: var(--foreground); color: var(--background); padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.auth-aside h1 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 76px); line-height: .92; letter-spacing: -.05em; color: var(--background); margin: 0; }
.auth-aside h1 span { color: var(--primary); }
.auth-aside .eyebrow { color: var(--primary); }
.auth-aside p { color: rgba(247,245,238,.78); max-width: 34ch; margin: 0; }
.auth-back { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: inherit; opacity: .8; text-decoration: none; }
.auth-back:hover { opacity: 1; text-decoration: underline; }
.auth-main { padding: 48px 32px; display: flex; flex-direction: column; gap: 22px; align-items: center; justify-content: center; }
.auth-main > * { width: 100%; max-width: 440px; }
.auth-form { display: grid; gap: 16px; }
.auth-form h2 { margin: 0; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 800; font-size: 13px; }
.field-input { position: relative; display: flex; }
.field-input input, .field-input textarea { width: 100%; min-height: 48px; padding: 0 14px; font-size: 16px; border: 2px solid var(--foreground); border-radius: 12px; background: var(--background); color: var(--foreground); font-family: inherit; }
.field-input textarea { padding: 12px 14px; resize: vertical; }
.field-input input[type=password], .field-input input[type=text][autocomplete*=password] { padding-right: 76px; }
.field-input input:focus, .field-input textarea:focus { outline: 3px solid var(--primary); outline-offset: 1px; }
.field.has-error .field-input input { border-color: #b3261e; }
.field-error { color: #b3261e; font-weight: 700; font-size: 13px; }
.hint { color: var(--muted-foreground); font-size: 12px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; font-size: 11px; font-weight: 900; letter-spacing: .08em; color: var(--foreground); cursor: pointer; }
.pw-toggle:hover { background: rgba(0,0,0,.06); }
.auth-switch { margin: 0; font-weight: 700; }
.auth-switch a { color: var(--foreground); text-decoration: underline; text-underline-offset: 3px; }
.auth-guest { display: grid; gap: 10px; text-align: center; justify-items: center; }
.auth-guest .btn { width: 100%; justify-content: center; }
.auth-guest p { margin: 0; font-size: 13px; }
.form-error { color: #b3261e; font-weight: 700; }
@media (max-width: 800px) {
  .auth-page { grid-template-columns: 1fr; min-height: 0; }
  .auth-aside { padding: 28px 20px 24px; gap: 10px; }
  .auth-aside h1 { font-size: clamp(34px, 11vw, 52px); }
  .auth-aside p { display: none; }
  .auth-main { padding: 24px 16px 120px; }
}

/* avatars */
.avatar { color: var(--foreground); }
.avatar-xs { width: 30px; height: 30px; font-size: 14px; border-width: 1.5px; flex: none; }
.avatar-lg { width: 64px; height: 64px; font-size: 28px; }
.avatar-xl { width: 96px; height: 96px; font-size: 42px; flex: none; }
.av-sun { background: #f7d046; } .av-bolt { background: var(--primary); } .av-leaf { background: #9fd8a6; }
.av-wave { background: #9ecbf0; } .av-star { background: #f4a9b8; } .av-moon { background: #cdbcf0; }
.avatar-pick { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.avatar-pick legend { font-weight: 800; font-size: 13px; margin-bottom: 8px; padding: 0; }
.avatar-pick .pick { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 2px solid var(--foreground); border-radius: 99px; font-weight: 700; font-size: 13px; cursor: pointer; text-transform: capitalize; }
.avatar-pick .pick.active { background: var(--foreground); color: var(--background); }
.avatar-pick input { position: absolute; opacity: 0; pointer-events: none; }
.avatar-pick .pick:focus-within { outline: 3px solid var(--primary); outline-offset: 2px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check-row input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.profile-form { margin-top: 18px; }

/* community feed + posts */
.feed-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 8px 0 24px; }
.feed-title { font-size: 13px; letter-spacing: .14em; margin: 32px 0 14px; }
.feed-more { display: flex; justify-content: center; margin: 28px 0 8px; }
.end-note { text-align: center; margin-top: 24px; }
.showcase-post { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.post-author { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 14px; }
.post-author:hover strong { text-decoration: underline; }
.post-author small { opacity: .7; }
.post-reflection { display: inline-block; margin-top: 6px; padding: 3px 10px; border: 1.5px solid currentColor; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.post-note { margin: 10px 0 0; font-style: italic; }
.post-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.post-actions .link-btn, .post-actions a.link-btn { font-size: 13px; font-weight: 800; }

/* profile */
.pp-hero { display: flex; gap: 22px; align-items: center; margin: 18px 0 20px; }
.pp-hero h1 { margin: 0 0 4px; font-family: var(--font-display); font-size: clamp(30px, 6vw, 52px); letter-spacing: -.04em; }
.pp-bio { margin: 10px 0; max-width: 56ch; }
.pp-stats { margin: 0; font-size: 14px; }
.pp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pill { display: inline-block; padding: 8px 14px; border: 2px solid var(--foreground); border-radius: 99px; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
@media (max-width: 560px) { .pp-hero { flex-direction: column; align-items: flex-start; } .avatar-xl { width: 76px; height: 76px; font-size: 32px; } }
.friend-row .avatar-xs { margin-right: 8px; vertical-align: middle; }
.friend-row a { color: inherit; }
.feed-toolbar .seg { margin: 0; min-width: 260px; }
.pp-hero h1 { margin: 0 0 6px !important; line-height: 1 !important; }
.pp-hero > div { min-width: 0; }
.pp-hero p { margin-top: 0; }
.pp-hero .pp-bio { margin: 10px 0 8px; }

/* =====================================================================
   V3 — navigation, ongoing quest, Profile hub, Friends, Activity, Showcase, install
   ===================================================================== */

/* ---- avatars ---- */
.avatar-sm { width: 42px; height: 42px; font-size: 20px; flex: none; }
.avatar-md { width: 46px; height: 46px; font-size: 22px; flex: none; }
.av-fox { background: #f6b06a; } .av-owl { background: #c9b79c; } .av-cat { background: #f7d9a0; } .av-frog { background: #a8e08f; }
.av-crab { background: #f38b78; } .av-ghost { background: #e4e4f5; } .av-rocket { background: #aac4f5; } .av-cactus { background: #9fd8a6; }
.av-pizza { background: #f7d046; } .av-comet { background: #b9a8f0; } .av-mushroom { background: #f4a9b8; } .av-robot { background: #c4ccd4; }
.av-ufo { background: #8fe3d4; } .av-gem { background: #9ecbf0; } .av-flame { background: #f7a56a; } .av-cloud { background: #d8ecf8; }
.av-dino { background: #b6e07a; } .av-bee { background: #f7e05a; }
.avatar-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px; }
.avatar-grid legend { grid-column: 1 / -1; }
.avatar-grid .pick-av { flex-direction: column; justify-content: center; gap: 6px; padding: 10px 6px; border-radius: 8px; text-align: center; }
.avatar-grid .pick-av.active { background: var(--primary); color: var(--primary-foreground); box-shadow: 3px 3px 0 var(--foreground); }
.avatar-grid .pick-av .avatar { border-width: 2px; }
.pick-name { font-size: 11px; text-transform: capitalize; font-weight: 700; }

/* ---- ongoing quest bar ---- */
.ongoing-bar { display: flex; align-items: center; gap: 14px; padding: 10px max(20px, calc((100% - 1320px) / 2)); background: var(--foreground); color: var(--background); border-bottom: 2px solid var(--primary); }
.ongoing-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ongoing-copy strong { font-size: 11px; letter-spacing: .08em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ongoing-copy small { font-size: 11px; opacity: .75; }
.ongoing-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); flex: none; box-shadow: 0 0 0 0 var(--primary); animation: sq-pulse 1.8s infinite; }
@keyframes sq-pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .ongoing-pulse { animation: none; } }
@media (max-width: 800px) {
  .ongoing-bar { position: fixed; left: 8px; right: 8px; bottom: calc(81px + env(safe-area-inset-bottom)); z-index: 45; border: 2px solid var(--primary); border-radius: 8px; padding: 9px 12px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
  .main-content { padding-bottom: 56px; }
}

/* ---- conflict dialog ---- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10,14,10,.55); z-index: 90; display: grid; place-items: center; padding: 18px; }
.modal-card { background: var(--card); border: 2px solid var(--foreground); border-radius: 8px; box-shadow: 8px 8px 0 var(--foreground); padding: 26px; max-width: 520px; width: 100%; }
.modal-card h2, .conflict-panel h2 { margin: 6px 0 10px; font-size: 24px; letter-spacing: -.02em; }
.conflict-actions { display: grid; gap: 10px; margin-top: 18px; }
.conflict-actions .btn { width: 100%; text-align: center; }

/* ---- buttons / badges / chips ---- */
.btn-reject { background: transparent; color: var(--destructive); border: 2px solid var(--destructive); }
.btn-reject:hover:not(:disabled) { background: var(--destructive); color: var(--destructive-foreground); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.count-badge { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 99px; background: var(--destructive); color: #fff; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 2px solid var(--foreground); border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .06em; background: var(--card); }
.chip-ok { background: var(--primary); }
.section-back { padding-top: 22px; }
.cover-back { display: flex; width: fit-content; margin-bottom: 16px; font-size: 11px; padding: 6px 0; }
.progress-cover .back-link:hover { color: var(--primary); }

/* ---- friend requests ---- */
.requests-panel.has-requests { border-color: var(--destructive); box-shadow: 6px 6px 0 var(--destructive); }
.request-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.request-row, .friend-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.request-row { padding: 12px 0; border-top: 1px solid var(--border); }
.request-row:first-child { border-top: 0; }
.request-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.request-who > span { display: flex; flex-direction: column; min-width: 0; }
.request-who small { color: var(--muted-foreground); font-size: 12px; }
.request-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 520px) { .request-actions { width: 100%; } .request-actions .btn { flex: 1; } }

/* ---- Profile hub ---- */
.hub-head { display: flex; align-items: center; gap: 18px; }
.hub-head h1 { margin: 4px 0; }
.hub-meta { margin: 0; font-weight: 700; color: var(--muted-foreground); }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin: 6px 0 24px; }
.hub-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 20px; background: var(--card); border: 2px solid var(--foreground); border-radius: 8px; transition: .18s ease; margin-bottom: 14px; }
.hub-grid .hub-card { margin-bottom: 0; min-height: 104px; }
.hub-card:hover, .hub-card:focus-visible { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--foreground); background: var(--primary); }
.hub-attn { border-color: var(--destructive); }
.hub-icon { font-size: 34px; flex: none; }
.hub-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.hub-text strong { font-size: 17px; letter-spacing: -.01em; }
.hub-text small { color: var(--muted-foreground); font-size: 12.5px; line-height: 1.35; }
.hub-card:hover .hub-text small { color: var(--primary-foreground); }
.hub-arrow { font-weight: 900; font-size: 18px; }
.hub-resume { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 18px; background: var(--foreground); color: var(--background); border-radius: 8px; border: 2px solid var(--primary); }
.hub-resume > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.hub-resume small { opacity: .75; }
.hub-resume b { color: var(--primary); font-size: 12px; letter-spacing: .06em; }
.hub-note { color: var(--muted-foreground); font-size: 14px; }
.card-lock { font-weight: 800; color: var(--highlight); }
.hub-links { display: flex; gap: 20px; flex-wrap: wrap; margin: 8px 0 26px; font-size: 13px; font-weight: 700; }
.hub-links a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Activity ---- */
.highlight-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 26px; }
.highlight { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 2px solid var(--foreground); border-radius: 8px; background: var(--card); }
.highlight > span { font-size: 26px; }
.highlight small { color: var(--muted-foreground); }
.timeline { list-style: none; padding: 0; margin: 0 0 40px; border-left: 3px solid var(--foreground); }
.timeline li { position: relative; padding: 0 0 18px 26px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--primary); border: 2px solid var(--foreground); }
.timeline a { display: flex; flex-direction: column; gap: 2px; }
.timeline a:hover strong { color: var(--highlight); }
.timeline small { color: var(--muted-foreground); }
.tl-icon { position: absolute; left: 26px; opacity: 0; }

/* ---- install ---- */
.install-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 2px dashed var(--foreground); border-radius: 8px; background: var(--card); margin: 18px 0; }
.install-card > span { font-size: 28px; }
.install-card > div { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.install-card small { font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.install-card .btn { align-self: flex-start; margin-top: 6px; }
.install-banner { margin: 0; border-radius: 0; border-width: 0 0 2px; background: var(--primary); padding: 12px max(20px, calc((100% - 1320px) / 2)); align-items: center; }
.install-banner > span { font-size: 22px; }
.installed { border-style: solid; background: var(--primary); }

/* ---- Today ---- */
.daily-extras { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.week-strip { display: flex; gap: 8px; margin: 12px 0 18px; }
.wk { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wk i { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--foreground); display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 14px; background: var(--card); }
.wk-done i { background: var(--primary); }
.wk-today i { box-shadow: 0 0 0 3px var(--background), 0 0 0 5px var(--foreground); }
.wk b { font-size: 10px; color: var(--muted-foreground); }

/* ---- Showcase ---- */
.post-card { padding: 0 !important; overflow: hidden; border: 2px solid var(--foreground) !important; border-radius: 8px; min-height: 0 !important; justify-content: flex-start !important; transition: .18s ease; }
.post-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--foreground); }
.post-banner { background: var(--accent); display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 2px solid var(--foreground); }
.post-icon { font-size: 54px; line-height: 1; }
.post-type { font-size: 10px; font-weight: 800; letter-spacing: .1em; background: var(--background); border: 2px solid var(--foreground); border-radius: 99px; padding: 4px 10px; }
.post-body { padding: 18px 20px 6px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-body h2 { font-size: 22px; line-height: 1.15; margin: 0; letter-spacing: -.02em; }
.post-card .post-author { display: flex; align-items: center; gap: 10px; padding: 8px 20px; }
.post-card .post-actions { display: flex; gap: 14px; flex-wrap: wrap; padding: 10px 20px 16px; }
.showcase-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)) !important; align-items: start; }
.ready-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 40px; }
.ready-card { display: flex; gap: 14px; padding: 16px; border: 2px solid var(--foreground); border-left: 10px solid var(--accent); border-radius: 8px; background: var(--card); }
.ready-icon { font-size: 36px; }
.ready-main { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.ready-main small { color: var(--muted-foreground); }
.ready-main textarea { width: 100%; padding: 10px; border: 2px solid var(--foreground); border-radius: 4px; font-size: 14px; resize: vertical; background: var(--background); }
.ready-main .btn { align-self: flex-start; }

/* ---- public profile ---- */
.pp-card { display: block !important; border: 2px solid var(--foreground); border-radius: 10px; overflow: hidden; background: var(--card); margin: 18px 0 22px; padding: 0 0 22px; box-shadow: 6px 6px 0 var(--foreground); }
.pp-banner { height: 110px; border-bottom: 2px solid var(--foreground); background: linear-gradient(120deg, var(--primary), var(--blue)); }
.pp-banner.av-none { background: linear-gradient(120deg, var(--primary), var(--blue)); }
.pp-id { display: flex; align-items: flex-end; gap: 16px; padding: 0 24px; margin-top: -48px; }
.pp-id .avatar { border-width: 4px; box-shadow: 0 0 0 4px var(--card); }
.pp-id h1 { margin: 0; font-size: clamp(26px, 5vw, 40px); letter-spacing: -.03em; }
.pp-id p { margin: 2px 0 0; }
.pp-card .pp-bio { padding: 14px 24px 0; margin: 0; font-size: 16px; line-height: 1.55; }
.pp-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 24px 0; }
.pp-card .pp-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 16px 24px 0; }
.pp-highlight { display: flex; gap: 20px; align-items: center; padding: 22px; margin-bottom: 26px; border: 2px solid var(--foreground); border-left: 12px solid var(--accent); border-radius: 8px; background: var(--card); }
.pp-highlight h2 { margin: 4px 0 8px; font-size: 24px; letter-spacing: -.02em; }
.pp-highlight > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
@media (max-width: 600px) { .pp-id { flex-direction: column; align-items: flex-start; } .pp-highlight { flex-direction: column; align-items: flex-start; } }
.progress-cover .back-link { display: flex; width: fit-content; margin-bottom: 16px; font-size: 11px; padding: 6px 0; }

.pp-id { align-items: flex-start !important; }
.pp-id > div { padding-top: 56px; }
@media (max-width: 600px) { .pp-id > div { padding-top: 0; } }

/* =====================================================================
   Emoji mission tiles (V4). No photography: each quest carries its own
   emoji (data.js `icon`) and each category its own tint (--cat).
   ===================================================================== */
.quest-art {
  height: 148px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,.7), rgba(255,255,255,0) 55%),
    color-mix(in oklab, var(--cat, var(--primary)) 62%, #fff) !important;
  border-bottom: 1px solid var(--ink) !important;
}
.quest-emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 66px;
  line-height: 1;
  transform: translateY(-6px);
  filter: drop-shadow(0 6px 0 rgba(0,0,0,.12));
  transition: transform .25s ease;
  user-select: none;
}
.quest-card:hover .quest-emoji { transform: translateY(-6px) rotate(-6deg) scale(1.08); }
.quest-art .art-index { color: var(--foreground) !important; opacity: .65; }
.quest-art-category::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  border: 1px solid var(--foreground);
  background: var(--cat, #fff);
  vertical-align: 0;
}
/* completion screen */
.completion-art { display: flex; align-items: center; justify-content: center; background: var(--primary); }
.completion-art::after { display: none; }
.completion-emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-style: normal;
  font-size: 112px;
  line-height: 1;
  filter: drop-shadow(0 8px 0 rgba(0,0,0,.14));
}
@media (max-width: 700px) {
  .quest-art { height: 112px !important; }
  .quest-emoji { font-size: 52px; }
  .completion-emoji { font-size: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .quest-emoji { transition: none; }
  .quest-card:hover .quest-emoji { transform: translateY(-6px); }
}
