/* Approved material direction. Scoped so the Cookie screen keeps its own artwork and UI. */
@font-face {
  font-family: 'VG Manrope';
  src: url('/weekly/fonts/Manrope-Variable.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

.mini-body.material-ui {
  --ink: #17223b;
  --muted: #5c6d89;
  --paper: #f0f5fc;
  --line: #dce5f2;
  --lime: #dceba2;
  --mat-milk: linear-gradient(145deg, #ffffffed 0%, #f8fbffda 58%, #f1f7ffdf 100%);
  --mat-track: linear-gradient(130deg, #dce6f4b0, #e8eef8b5);
  --mat-blue: radial-gradient(ellipse at 8% 0%, #8cc4ff70, transparent 54%), linear-gradient(155deg, #3265ff, #1945fa 58%, #2346ed);
  --mat-lime: radial-gradient(ellipse at 0% 0%, #ffffff80, transparent 65%), linear-gradient(140deg, #e5efb3, #d5e68e 68%, #dfeaab);
  --mat-edge: inset 0 1px 0 #fff, inset 1px 0 0 #ffffff9e, inset 0 -1px 0 #ffffffdc;
  --mat-lift: 0 7px 18px #304c7e12, 0 2px 4px #304c7e08;
  --mat-blue-edge: inset 0 1px 1px #c3e4ffb8, inset 1px 0 2px #b6d9ffa8, inset 0 -2px 5px #7aafff85;
  --mat-blue-lift: 0 7px 15px #2047ae20, 0 2px 4px #183ea81a;
  --mat-lime-edge: inset 0 1px 1px #fffff1d9, inset 1px 0 2px #ffffe8b0, inset 0 -2px 5px #f4f9d5a8;
  --mat-lime-lift: 0 7px 15px #5d76181a, 0 2px 4px #69842d0c;
  font-family: 'VG Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(ellipse at 50% 0%, #fff 0%, #f3f7fd 46%, #eaf1fb 100%);
  background-attachment: fixed;
  color: var(--ink);
}
.material-ui .mini-shell { background: transparent; }
.material-ui :is(button, input, select, .claim-reward) { font-family: inherit; }
.material-ui :is(button, a, summary):focus-visible { outline: 2px solid #163eeb; outline-offset: 3px; }
.material-ui :is(.mini-title, .section-title, .task-status-heading h1, .boost-task h1, .task-access h1) { color: var(--ink); }
.material-ui :is(.mini-lede, .tiny-copy, .task-status-lede, .boost-explanation, .gate-description, .gate-status, .gate-prizes span) { color: var(--muted); }

/* One surface and one edge treatment across cards, sheets and expanded details. */
.material-ui :is(.task-card, .friend-invitation, .history-day-events, .rules-pool, .rules-selection, .task-demo, .share-message-preview) {
  background: var(--mat-milk);
  border: 1px solid #dfe7f2;
  box-shadow: var(--mat-edge), var(--mat-lift);
}
.material-ui :is(.task-card, .friend-invitation) { border-radius: 17px; }
.material-ui .task-list { gap: 11px; }
.material-ui .task-row { background: transparent; }
.material-ui .task-title { color: #16213a; font-weight: 750; letter-spacing: -.3px; }
.material-ui .task-copy { color: var(--muted); font-size: 11px; line-height: 1.5; }
.material-ui .task-detail { color: #61728d; }
.material-ui .task-card.is-done { background: var(--mat-milk); }
.material-ui .task-card.is-done .task-art { opacity: 1; }
.material-ui .task-card.is-disabled { background: linear-gradient(145deg, #f8fbffc9, #edf3faad); box-shadow: var(--mat-edge), 0 3px 10px #304c7e08; }
.material-ui .task-card.is-disabled .task-title { color: #6a7890; }
.material-ui .task-card.is-claimable { border-color: #bdceff !important; }

.material-ui :is(.task-art, .history-event-art, .draw-open > span) {
  background: radial-gradient(ellipse at 15% 0%, #ffffff, transparent 65%), linear-gradient(145deg, #edf5ff, #e6efff 60%, #f4faff);
  border: 1px solid #d7e5fb;
  box-shadow: inset 0 1px 1px #fff, inset 0 -1px 1px #fff, 0 5px 9px #385d9814;
}
.material-ui :is(.task-art, .history-event-art) { border-radius: 12px; }
.material-ui :is(.task-art, .history-event-art) > svg { stroke: #3155ff; stroke-width: 1.85; }
.material-ui :is(.task-art, .history-event-art) .art-blue { fill: #dfeaff; }
.material-ui :is(.task-art, .history-event-art) .art-lime { fill: #d5e68e; }
.material-ui .task-arrow { color: #62789d; }
.material-ui .task-done { color: #427b18; }
.material-ui .task-done .icon { stroke-width: 2.1; }
.material-ui :is(.points, .history-award) {
  background: linear-gradient(145deg, #f4f9ff, #e3edff);
  color: #3155ed;
  box-shadow: inset 0 1px 1px #ffffff, inset 0 -1px 1px #fff, 0 3px 7px #365b9610;
}
.material-ui .task-card.is-done .points { background: linear-gradient(145deg, #eef5ff, #e2ebf7); color: #627392; }
.material-ui .points.growth { background: var(--mat-lime); color: #364b1c; box-shadow: var(--mat-lime-edge), 0 3px 7px #587f1610; }

/* Satin pool cards retain the existing blue / lime meaning. */
.material-ui :is(.balance-ticket, .draw-card.activity, .boost-hero, .prize-ticket) {
  background: var(--mat-blue);
  border: 1px solid #2d58f7;
  box-shadow: var(--mat-blue-edge), var(--mat-blue-lift);
  color: #fff;
}
.material-ui :is(.balance-ticket.growth, .draw-card.growth) {
  background: var(--mat-lime);
  border: 1px solid #cfdfa0;
  box-shadow: var(--mat-lime-edge), var(--mat-lime-lift);
  color: #16223a;
}
.mini-body.material-ui .balance-ticket { padding: 15px; border-radius: 17px; flex-wrap: wrap; }
.material-ui .balance-ticket .balance-label { font-size: 12px; font-weight: 750; letter-spacing: -.25px; }
.material-ui .balance-ticket .balance-value { font-size: 30px; font-weight: 800; letter-spacing: -1.1px; margin-left: auto; }
.material-ui :is(.balance-value, .points, .history-award) { font-variant-numeric: tabular-nums; }
.material-ui .balance-info { color: inherit; opacity: .76; }

.material-ui .draw-intro .draw-details {
  background: radial-gradient(ellipse at 20% 0%, #ffffffad, transparent 72%), linear-gradient(135deg, #e5faff, #d7f3fa 58%, #e9fbff);
  border: 1px solid #afe4f0;
  border-radius: 18px;
  box-shadow: var(--mat-edge), 0 7px 18px #287f9d12, 0 2px 4px #1c5e7e06;
}
.material-ui .draw-frequency { color: #55788b; font-weight: 650; letter-spacing: -.12px; }
.material-ui .draw-amount { color: #17233a; font-weight: 800; letter-spacing: -.85px; }
.material-ui .draw-brand { color: #007f9e; }
.material-ui .draw-open > span { width: 33px; height: 33px; border-radius: 11px; color: #1948fa; }
.material-ui .draw-open small { font-weight: 700; }

/* Recessed tracks; selected segments sit above them without changing the grid. */
.material-ui :is(.segmented, .progress-switch) {
  background: var(--mat-track);
  box-shadow: inset 0 1px 3px #536f9b0c, inset 0 0 0 1px #ffffffb0;
}
.material-ui .segmented { border-radius: 14px; }
.material-ui .progress-switch { border-radius: 12px; }
.material-ui :is(.segmented, .progress-switch) button { color: #627592; font-weight: 650; letter-spacing: -.15px; }
.material-ui :is(.segmented button.active, .progress-switch button[aria-pressed="true"]) {
  background: linear-gradient(155deg, #fff, #f7fbff 68%, #eaf3ff);
  color: #1648f8;
  box-shadow: inset 0 1px 1px #fff, inset 0 -1px 1px #ffffff, 0 3px 8px #355d8f1a;
}
.material-ui .segmented button { border-radius: 11px; }
.material-ui .progress-switch button { border-radius: 9px; }
.material-ui .task-tabs button { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; }
.material-ui .task-tab-label { white-space: nowrap; }
.material-ui .task-tab-count {
  display: inline-grid; place-items: center; flex: none;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 6px;
  background: var(--mat-blue); color: #fff; box-shadow: var(--mat-blue-edge), 0 2px 4px #2142b21a;
  font-size: 9px; line-height: 16px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0;
}
@media (max-width: 400px) {
  .material-ui .task-tabs button:has(.task-tab-count) { gap: 3px; padding-left: 3px; padding-right: 3px; font-size: 10px; }
  .material-ui .task-tab-count { min-width: 14px; height: 14px; line-height: 14px; padding: 0 3px; border-radius: 5px; }
}
@media (max-width: 360px) {
  .material-ui .task-tabs button:has(.task-tab-count) { gap: 2px; font-size: 9px; }
}
.material-ui .is-growth .progress-switch button[aria-pressed="true"],
.material-ui .history-switch button[data-history-tab="growth"][aria-selected="true"] {
  background: var(--mat-lime); color: #263819;
  box-shadow: var(--mat-lime-edge), 0 3px 8px #5a731b12;
}
.material-ui .history-switch button[data-history-tab="activity"][aria-selected="true"] {
  background: var(--mat-blue); color: #fff;
  box-shadow: var(--mat-blue-edge), 0 3px 8px #1940a523;
}
.material-ui .history-switch button[aria-selected="false"] { background: transparent; color: #627592; box-shadow: none; }
.material-ui .activity-progress-track {
  background: linear-gradient(145deg, #dfe8f5, #eaf0f8);
  box-shadow: inset 0 1px 3px #3c568c15, inset 0 -1px 0 #fff;
  border-radius: 11px;
}
.material-ui .progress-bar-fill {
  background: linear-gradient(150deg, #d4e3ff, #b7cdff);
  box-shadow: inset 0 1px 1px #f4faff, inset 0 -1px 2px #a6bfe9;
  border-right: 1px solid #9ab6ef80;
}
.material-ui .is-growth .progress-bar-fill { background: var(--mat-lime); box-shadow: var(--mat-lime-edge); border-right-color: #bdce6790; }
.material-ui .is-ready:not(.is-growth) .activity-progress-track { box-shadow: var(--mat-blue-edge), 0 4px 9px #264cae1a; }
.material-ui .is-ready:not(.is-growth) .progress-bar-fill { background: var(--mat-blue); box-shadow: var(--mat-blue-edge); border: 1px solid #2d58f7; border-radius: inherit; }
.material-ui .progress-bar-label { font-weight: 750; font-size: 11px; color: #273d60; letter-spacing: -.15px; }
.material-ui .is-ready:not(.is-growth) .progress-bar-label { color: #fff; }
.material-ui .is-growth .progress-bar-label { color: #334722; }

/* Available rewards have the same surface as primary actions, including grouped claims. */
.material-ui :is(.btn, .claim-reward) {
  background: var(--mat-blue); border: 1px solid #315afa; color: #fff;
  box-shadow: var(--mat-blue-edge), 0 4px 10px #2449af1c;
  font-weight: 750; animation: none;
  transition: transform 150ms ease, filter 150ms ease;
}
.material-ui .btn.light {
  background: var(--mat-milk); color: #264ff0; border-color: #dce6f8;
  box-shadow: var(--mat-edge), 0 4px 10px #324d8310;
}
.material-ui :is(.btn.lime, .claim-reward.growth, .friend-claim > .claim-reward) {
  background: var(--mat-lime); color: #253d19; border-color: #c8d991;
  box-shadow: var(--mat-lime-edge), 0 4px 10px #637d1c1a;
}
.material-ui .friend-claim { background: linear-gradient(145deg, #fbffef, #eaf6ce); border: 1px solid #dce8bd; box-shadow: var(--mat-edge), var(--mat-lift); border-radius: 16px; }
.material-ui .friend-claim-copy > span { color: #5e7246; }
.material-ui .friend-invitation h2 { font-weight: 750; letter-spacing: -.2px; }
.material-ui .friend-invitation p { color: var(--muted); }
.material-ui .reward-fly { font-family: inherit; background: var(--mat-blue); box-shadow: var(--mat-blue-edge), var(--mat-blue-lift); }
.material-ui .reward-fly.growth { background: var(--mat-lime); color: #253d19; box-shadow: var(--mat-lime-edge), var(--mat-lime-lift); }

/* Timeline: quiet separators inside raised day panels; statuses remain distinguishable. */
.material-ui .history-day > h2 { color: var(--ink); font-weight: 800; letter-spacing: -.55px; }
.material-ui .history-day > h2 span { color: var(--muted); font-weight: 500; }
.material-ui .history-event-copy h3 { color: var(--ink); font-weight: 750; letter-spacing: -.2px; }
.material-ui .history-event + .history-event { border-color: #dde6f380; box-shadow: 0 -1px 0 #ffffffb0; }
.material-ui :is(.history-event-copy time, .history-event-status) { color: var(--muted); }
.material-ui :is(.history-avatar, .friend-avatar, .profile-avatar) { background: linear-gradient(145deg, #f7fbff, #dce8ff); color: #3254c9; box-shadow: inset 0 1px 1px #fff, 0 3px 7px #385b9610; }
.material-ui .history-event[data-event="friend"] .history-event-art { border: 0; background: transparent; box-shadow: none; }
.material-ui .history-event.is-pending .history-avatar { background: linear-gradient(145deg, #f7faff, #e2e9f4); color: #60718d; }
.material-ui .history-avatar-check { background: var(--lime); }
.material-ui .history-event.is-pending:not(.is-available):not([data-status="claim"]) .history-event-status { background: linear-gradient(145deg, #eff4fc, #e6edf8); color: #586c8d; box-shadow: inset 0 1px 1px #fff; }
.material-ui .history-event:is(.is-available, [data-status="claim"]) .history-event-status { background: transparent; box-shadow: none; }
.material-ui #history-feed[aria-labelledby="history-tab-growth"] .history-award:not(.is-negative),
.material-ui .history-event[data-event="friend"]:not(.is-pending) .history-award {
  background: var(--mat-lime); color: #364c22; box-shadow: var(--mat-lime-edge), 0 3px 7px #647e2412;
}
.material-ui .history-award.is-negative { background: linear-gradient(145deg, #fbf5fa, #eee6ef); color: #785e70; }

/* Draws use the same pool surfaces. Opaque flaps ensure digits never show through. */
.material-ui .next-draw h1 { font-weight: 800; letter-spacing: -.65px; }
.material-ui .next-draw > p, .material-ui .next-draw > div > span { color: var(--muted); }
.material-ui .draw-card h2 { letter-spacing: -.8px; }
.material-ui .draw-card-heading p { font-weight: 600; }
.material-ui .draw-certificate {
  background: radial-gradient(ellipse at 0% 0%, #94efff88, transparent 65%), linear-gradient(140deg, #10b9d7, #0097bf);
  border-color: #72dcf4;
  box-shadow: inset 0 1px 1px #c5f9ff, inset 0 -1px 2px #6edcf1, 0 6px 12px #092e6e29;
}
.material-ui .draw-countdown { background: #143cbb3b; box-shadow: inset 0 1px 3px #12296d26, inset 0 -1px 0 #9cbcff75; }
.material-ui .growth .draw-countdown { background: #faffdec2; box-shadow: inset 0 1px 3px #788a2820, inset 0 -1px 0 #fff; }
.material-ui .draw-flip-digit, .material-ui .draw-flap { background: #3158e7; }
.material-ui .draw-flip-digit { box-shadow: inset 0 1px 0 #ffffff40, 0 2px 3px #17297316; border-radius: 4px; }
.material-ui .growth .draw-flip-digit, .material-ui .growth .draw-flap { background: #f4ffce; }
.material-ui .draw-countdown b { font-weight: 800; }
.material-ui .draw-countdown-cell:not(:last-child):after { opacity: .5; }
.material-ui .draw-check { background: linear-gradient(145deg, #fafff0, #d3eda7); color: #456a22; box-shadow: inset 0 1px 1px #fff, 0 2px 5px #4c691217; }
.material-ui .draw-card-footer > button { border-radius: 9px; font-weight: 750; }

/* Associated scenes, not just the default Task state. */
.material-ui :is(.rules-prize-count, .premium-chip, .pill, .task-state, .rule-breakdown, .info-box) { background: linear-gradient(145deg, #f7fbff, #e1ebfa); color: #3d5680; box-shadow: inset 0 1px 1px #fff; }
.material-ui :is(.rules-pool.growth .rules-prize-count, .task-state.credited, .access-symbol, .boost-hero > span) { background: var(--mat-lime); color: #375019; box-shadow: var(--mat-lime-edge), 0 4px 8px #637f1610; }
.material-ui .growth .rules-pool-dot { background: #aec761; }
.material-ui .rules-claim-note { background: linear-gradient(145deg, #f0f6ff, #e5edff); box-shadow: inset 0 1px 1px #fff; }
.material-ui :is(.rules-pool p, .rules-method p, .rules-selection li, .rules-claim-note p) { color: var(--muted); }
.material-ui .certificate { box-shadow: inset 0 1px 1px #e2fbffa1, 0 9px 17px #066a8a24; }
.material-ui .certificate-4 { background: linear-gradient(140deg, #14bbd5, #0099bf); }
.material-ui .story-media-preview { box-shadow: 0 10px 24px #233c7926, 0 0 0 1px #cddcf1; }
.material-ui .story-side { background: var(--mat-milk); box-shadow: var(--mat-edge), var(--mat-lift); border: 1px solid #dfe7f2; border-radius: 16px; padding: 16px; }
.material-ui .story-side .story-reward-row { gap: 8px; }
.material-ui .story-side .story-reward-row strong { font-size: 12px; }
.material-ui .story-side .story-reward-row small, .material-ui .story-reward-state { font-size: 11px; }
.material-ui .story-reward-row .claim-reward { padding: 8px; font-size: 10px; }
.material-ui .story-reward-row .claim-reward strong { font-size: 12px; }
.material-ui .story-media-widget { background: var(--mat-milk); box-shadow: var(--mat-edge), var(--mat-lift); }
.material-ui .gate-actions .btn.light { background: var(--mat-milk); border-color: #dce6f8; }
.material-ui .task-access { background: var(--mat-milk); border-radius: 22px; box-shadow: var(--mat-edge), var(--mat-lift); }
.material-ui :is(.winner-row, .profile-stat) { border-color: #dae4f2; }
.material-ui .empty-state > .icon, .material-ui .history-empty > .icon { color: #3155ec; filter: drop-shadow(0 4px 5px #345fbc1a); }
.material-ui .empty-state h2 { color: var(--ink); }
.material-ui #mini-modal { background: linear-gradient(145deg, #fff, #f1f6ff); border-color: #e6efff; box-shadow: var(--mat-edge), 0 24px 70px #112d6838; }
.material-ui #mini-modal::backdrop { background: #16243e66; backdrop-filter: blur(8px); }
.material-ui .modal-close { border-radius: 50%; background: #e9f0fb; color: #556b8d; }
.material-ui #balance-help { background: linear-gradient(145deg, #fff, #f2f7ff); border-color: #dce7f8; box-shadow: var(--mat-edge), 0 12px 30px #1e3d7829; color: #344c71; }
.material-ui #mini-toast { font-family: inherit; background: linear-gradient(145deg, #344764, #1b2d4a); box-shadow: inset 0 1px 0 #7c93b580, 0 8px 24px #18335d29; }

/* Fixed navigation is the only continually blurred layer. */
.material-ui .bottom-nav {
  background: linear-gradient(160deg, #ffffffef, #f5f9ffdc);
  border-top: 1px solid #fff;
  box-shadow: 0 -5px 22px #3a58880a, inset 0 1px 1px #fff;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 20px 20px 0 0;
}
.material-ui .bottom-nav .nav-item { color: #596d8f; font-size: 10px; font-weight: 600; }
.material-ui .bottom-nav .nav-item.active {
  background: radial-gradient(ellipse at 50% 0%, #ffffffb0, transparent 70%), linear-gradient(140deg, #e8f1ff, #e2eeff 65%, #f1f9ff);
  color: #174bfa;
  box-shadow: inset 0 1px 1px #faffff, inset 0 -1px 1px #fff, inset 0 0 0 1px #dce9ff, 0 4px 10px #365fa61c;
}
.material-ui .bottom-nav .nav-icon { width: 21px; height: 21px; stroke-width: 1.85; }
.material-ui .nav-item.active .nav-icon { filter: drop-shadow(0 2px 3px #2653f324); }

@media (hover: hover) {
  .material-ui :is(.btn, .claim-reward):not(:disabled):hover { filter: brightness(1.025); }
  .material-ui .task-action:hover { background: #e8f1ff33; }
  .material-ui .bottom-nav .nav-item:not(.active):hover { background: #e5eefc80; }
}
@media (max-width: 360px) {
  .mini-body.material-ui .balance-ticket { padding: 10px; gap: 3px; }
  .material-ui .balance-ticket .balance-label { font-size: 10.5px; }
  .material-ui .balance-ticket .balance-value { font-size: 26px; }
  .material-ui .task-title { font-size: 12px; }
  .material-ui .task-copy { font-size: 10px; }
  .material-ui .progress-bar-label { font-size: 10px; letter-spacing: -.2px; }
  .material-ui .bottom-nav .nav-item { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .material-ui :is(.btn, .claim-reward, .nav-item):active { transform: none; }
}
@media (forced-colors: active) {
  .material-ui :is(.balance-ticket, .draw-card, .task-card, .btn, .claim-reward, .activity-progress-track) { border: 1px solid ButtonText; }
  .material-ui .progress-bar-fill { background: Highlight; }
  .material-ui .bottom-nav .nav-item.active { outline: 1px solid Highlight; }
}
