/* "Ugen i Lifeqora" – ugeopsummering kort for kort. Faste brandfarver (ens i lys og mørk). */
:root { --wr-plum: #2b2340; --wr-plum2: #46365f; --wr-coral: #f27757; --wr-lavender: #a79acb; --wr-sage: #6fae8d; --wr-sun: #e8b04a; }

/* Kortet på Overblik */
.week-recap-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 22px; padding: 22px 24px; margin-bottom: 22px; border: 0; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #5a4580 0%, var(--wr-plum) 55%, #1f1930 100%); background-color: var(--wr-plum); }
.week-recap-card .eyebrow { color: #f8c9b9; margin: 0 0 6px; }
.week-recap-card h2 { color: #fff; margin: 0 0 6px; font-size: 1.375rem; letter-spacing: -.4px; }
.week-recap-card p:not(.eyebrow) { color: #ddd5ea; margin: 0; font-size: .875rem; line-height: 1.6; }
.week-recap-card .wrc-copy { flex: 1; min-width: 0; }
.week-recap-card .button.primary { flex: none; background: var(--wr-coral); color: #2b1810; border-color: transparent; font-weight: 650; }
.wrc-art { position: relative; flex: none; width: 64px; height: 64px; }
.wrc-art i, .wr-flower i { position: absolute; width: 46%; height: 46%; }
.wrc-art i:nth-child(1), .wr-flower i:nth-child(1) { left: 0; top: 0; background: var(--wr-coral); border-radius: 100% 0 100% 0; }
.wrc-art i:nth-child(2), .wr-flower i:nth-child(2) { right: 0; top: 0; background: var(--wr-lavender); border-radius: 0 100% 0 100%; }
.wrc-art i:nth-child(3), .wr-flower i:nth-child(3) { left: 0; bottom: 0; background: var(--wr-lavender); border-radius: 0 100% 0 100%; }
.wrc-art i:nth-child(4), .wr-flower i:nth-child(4) { right: 0; bottom: 0; background: var(--wr-coral); border-radius: 100% 0 100% 0; }
@media (max-width: 650px) {
  .week-recap-card { flex-wrap: wrap; gap: 14px 16px; padding: 18px; }
  .wrc-art { width: 44px; height: 44px; }
  .week-recap-card .wrc-copy { flex: 1 1 calc(100% - 64px); }
  .week-recap-card .button.primary { width: 100%; }
}
.week-recap-link { display: flex; justify-content: flex-end; margin: 4px 0 14px; }

/* Selve opsummeringen */
dialog.week-recap { position: fixed; inset: 0; margin: auto; padding: 0; border: 0; background: transparent; color: #fff; width: min(430px, 100vw); height: min(780px, 100dvh); max-width: 100vw; max-height: 100dvh; overflow: visible; box-shadow: none; }
dialog.week-recap::backdrop { background: rgba(18, 13, 28, .78); }
.wr-frame { position: relative; height: 100%; border-radius: 28px; overflow: hidden; background: var(--wr-plum); box-shadow: 0 30px 90px rgba(0, 0, 0, .45); transition: background .5s; }
.week-recap[data-tone="coral"] .wr-frame { background: linear-gradient(160deg, #d9603f 0%, #b84a33 50%, #8f3524 100%); }
.week-recap[data-tone="lavender"] .wr-frame { background: linear-gradient(160deg, #8a76c2 0%, #6b58a3 50%, #4a3b7a 100%); }
.week-recap[data-tone="sun"] .wr-frame { background: linear-gradient(160deg, #ffd98a 0%, var(--wr-sun) 55%, #d9952c 100%); }
.week-recap[data-tone="sage"] .wr-frame { background: linear-gradient(160deg, #4f9a76 0%, #3a7d5d 50%, #285a43 100%); }
.week-recap[data-tone="plum"] .wr-frame, .week-recap[data-tone="finale"] .wr-frame { background: radial-gradient(120% 90% at 20% 0%, #6a5293 0%, var(--wr-plum) 55%, #19131f 100%); }
.week-recap[data-tone="sun"] { color: #2b1d0a; }
.week-recap[data-tone="sun"] .wr-title { color: inherit; }
.week-recap[data-tone="sun"] .wr-close { color: #2b1d0a; }
.week-recap[data-tone="sun"] .wr-progress span { background: rgba(43, 29, 10, .25); }
.week-recap[data-tone="sun"] .wr-progress span.done, .week-recap[data-tone="sun"] .wr-progress span.now::after { background: #2b1d0a; }
.week-recap[data-tone="sun"] .wr-prev { background: rgba(43, 29, 10, .15); color: #2b1d0a; }
.week-recap[data-tone="sun"] .wr-next { background: #2b1d0a; color: #ffd98a; }
.wr-progress { position: absolute; z-index: 3; top: max(14px, env(safe-area-inset-top)); left: 16px; right: 60px; display: flex; gap: 5px; }
.wr-progress span { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .3); overflow: hidden; position: relative; }
.wr-progress span.done, .wr-progress span.now { background: rgba(255, 255, 255, .95); }
.wr-close { position: absolute; z-index: 4; top: max(4px, calc(env(safe-area-inset-top) - 10px)); right: 6px; width: 48px; height: 48px; border: 0; background: transparent; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; border-radius: 50%; }
.wr-stage { position: absolute; inset: 0; display: flex; }
.wr-slide { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 70px 34px 96px; text-align: left; }
.wr-eyebrow { margin: 0 0 12px; font-size: .8125rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; opacity: .85; }
.wr-title { margin: 0 0 14px; font-size: clamp(2.4rem, 11vw, 3.4rem); line-height: 1.02; letter-spacing: -1.6px; color: #fff; text-wrap: balance; }
.wr-big { display: block; font-size: clamp(5rem, 28vw, 7.5rem); line-height: .95; letter-spacing: -4px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wr-big-row { display: flex; align-items: baseline; gap: 12px; margin: 0; }
.wr-of { font-size: 1.75rem; font-weight: 700; opacity: .85; }
.wr-lead { margin: 10px 0 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -.4px; }
.wr-sub { margin: 18px 0 0; font-size: 1.0625rem; line-height: 1.5; opacity: .92; max-width: 30ch; }
.wr-flame { display: block; font-size: 3.5rem; line-height: 1.1; margin: 10px 0 8px; }
.wr-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 1.0625rem; font-weight: 600; }
.wr-flower { position: relative; width: 110px; height: 110px; margin-top: 34px; }
.wr-podium { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; }
.wr-place { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.wr-place-1 { order: 2; } .wr-place-2 { order: 1; } .wr-place-3 { order: 3; }
.wr-avatar { width: 48px !important; height: 48px !important; font-size: 1.25rem !important; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); }
.wr-place-1 .wr-avatar { width: 60px !important; height: 60px !important; font-size: 1.5rem !important; }
.wr-name { font-weight: 700; font-size: .9375rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wr-points { font-size: .8125rem; opacity: .9; font-variant-numeric: tabular-nums; }
.wr-step { width: 100%; display: grid; place-items: center; border-radius: 12px 12px 4px 4px; background: rgba(255, 255, 255, .22); font-weight: 800; font-size: 1.25rem; }
.wr-place-1 .wr-step { height: 86px; background: rgba(255, 255, 255, .36); } .wr-place-2 .wr-step { height: 60px; } .wr-place-3 .wr-step { height: 42px; }
.wr-nav { position: absolute; z-index: 3; bottom: max(22px, env(safe-area-inset-bottom)); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .2); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.wr-prev { left: 22px; } .wr-next { right: 22px; background: rgba(255, 255, 255, .95); color: var(--wr-plum); }
.wr-prev:disabled { opacity: 0; pointer-events: none; }
.wr-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.wr-button { min-height: 50px; padding: 0 24px; border-radius: 25px; border: 2px solid rgba(255, 255, 255, .7); background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.wr-button.primary { background: #fff; color: var(--wr-plum); border-color: #fff; }
:is(.wr-close, .wr-nav, .wr-button):focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 500px) {
  dialog.week-recap { width: 100vw; height: 100dvh; }
  .wr-frame { border-radius: 0; }
  .wr-slide { padding: 74px 26px calc(100px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: no-preference) {
  .wr-slide > * { animation: wr-in .55s cubic-bezier(.2, .8, .3, 1) backwards; }
  .wr-slide > :nth-child(2) { animation-delay: .08s; } .wr-slide > :nth-child(3) { animation-delay: .16s; } .wr-slide > :nth-child(4) { animation-delay: .26s; } .wr-slide > :nth-child(5) { animation-delay: .36s; }
  .wr-big { animation: wr-pop .7s cubic-bezier(.3, 1.5, .5, 1) .05s backwards !important; }
  .wr-place { animation: wr-rise .6s cubic-bezier(.3, 1.4, .5, 1) backwards; }
  .wr-place-1 { animation-delay: .55s; } .wr-place-2 { animation-delay: .35s; } .wr-place-3 { animation-delay: .45s; }
  .wr-flame { animation: wr-flicker 1.4s ease-in-out infinite alternate; transform-origin: 50% 90%; }
  .wr-flower { animation: wr-spin 9s linear infinite; }
  .wr-progress span.now { background: rgba(255, 255, 255, .3); }
  .wr-progress span.now::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .95); transform-origin: left; animation: wr-bar .5s ease-out forwards; }
  dialog.week-recap[open] .wr-frame { animation: wr-open .4s cubic-bezier(.2, .8, .3, 1); }
  .wrc-art { animation: wr-spin 14s linear infinite; }
  @keyframes wr-in { from { opacity: 0; transform: translateY(18px); } }
  @keyframes wr-pop { from { opacity: 0; transform: scale(.6); } }
  @keyframes wr-rise { from { opacity: 0; transform: translateY(40px); } }
  @keyframes wr-flicker { from { transform: scale(1) rotate(-4deg); } to { transform: scale(1.12) rotate(4deg); } }
  @keyframes wr-spin { to { transform: rotate(360deg); } }
  @keyframes wr-bar { from { transform: scaleX(0); } }
  @keyframes wr-open { from { opacity: 0; transform: scale(.94) translateY(20px); } }
}

.wr-flower-art { width: min(240px, 62vw); margin: 4px 0 6px -10px; }
.wr-flower-art svg { width: 100%; height: auto; display: block; }
